.tw-widget,
.tw-widget * {
  box-sizing: border-box;
}

.tw-widget {
  --tw-bg: #fff4f3;
  --tw-card: #ffffff;
  --tw-ink: #14161c;
  --tw-muted: #6b7689;
  --tw-soft: #eaeaea;
  --tw-line: #e7e7ea;
  --tw-primary: #f4a9a5;
  --tw-primary-strong: #ee9591;
  --tw-primary-soft: #ffd6d3;
  --tw-accent: #ffd400;
  --tw-accent-strong: #f0c500;
  --tw-deep: #b5524d;
  --tw-shadow: 0 18px 50px rgba(244, 169, 165, 0.22);
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  color: var(--tw-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

.tw-shell {
  overflow: hidden;
  border-radius: 24px;
  padding: 16px;
  background: var(--tw-bg);
  box-shadow: var(--tw-shadow);
}

.tw-header {
  padding: 24px 22px 18px;
  border: 1px solid var(--tw-line);
  border-bottom: 1px solid var(--tw-soft);
  border-radius: 16px 16px 0 0;
  background: var(--tw-card);
}

.tw-kicker {
  margin: 0 0 6px;
  color: var(--tw-primary);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tw-title {
  margin: 0;
  font-size: clamp(1.5rem, 4.6vw, 2.35rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.tw-subtitle {
  max-width: 680px;
  margin: 10px 0 0;
  color: var(--tw-muted);
  font-size: 1rem;
}

.tw-progress-row {
  display: grid;
  gap: 8px;
  margin-top: 20px;
}

.tw-progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--tw-ink);
  font-size: 0.9rem;
  font-weight: 800;
}

.tw-progress-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--tw-soft);
}

.tw-progress-fill {
  width: var(--tw-progress, 20%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--tw-accent), var(--tw-primary));
  transition: width 280ms ease;
}

.tw-content {
  padding: 22px;
  border: 1px solid var(--tw-line);
  border-top: 0;
  border-radius: 0 0 16px 16px;
  background: var(--tw-card);
}

.tw-step {
  animation: tw-step-in 240ms ease both;
}

.tw-step-title {
  margin: 0;
  font-size: clamp(1.25rem, 3.5vw, 1.75rem);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

.tw-step-copy {
  margin: 8px 0 0;
  color: var(--tw-muted);
  overflow-wrap: anywhere;
}

.tw-card {
  border: 1px solid var(--tw-line);
  border-radius: 18px;
  background: var(--tw-card);
  box-shadow: 0 12px 30px rgba(244, 169, 165, 0.12);
}

.tw-question-card {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.tw-options {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.tw-choice {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 64px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 14px 15px;
  border: 1px solid #c0c0c0;
  border-radius: 14px;
  background: #ffffff;
  color: var(--tw-ink);
  font: inherit;
  text-align: left;
  /* Theme-Override: viele WP-Themes setzen white-space auf Buttons,
     wodurch unser Wrap nicht greift und der Text rechts abgeschnitten
     wird (siehe Bugreport "Eltern und Geschwister können relevant
     werd…"). Hier hart auf normal stellen. */
  white-space: normal;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.tw-choice:hover {
  transform: translateY(-1px);
  border-color: #515151;
  background: #ececec;
}

.tw-choice:focus-visible,
.tw-nav-button:focus-visible,
.tw-cta:focus-visible,
.tw-pdf-button:focus-visible,
.tw-number-button:focus-visible,
.tw-number-input:focus-visible {
  outline: 3px solid rgba(244, 169, 165, 0.55);
  outline-offset: 3px;
}

.tw-choice[aria-pressed="true"] {
  border-color: #f4a9a5;
  background: #f4a9a5;
  box-shadow: none;
}

.tw-choice-mark {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border: 2px solid #c0c0c0;
  border-radius: 999px;
  background: #ffffff;
}

.tw-choice:hover .tw-choice-mark {
  border-color: #515151;
}

.tw-choice[aria-pressed="true"] .tw-choice-mark {
  border-color: #ffffff;
  background: transparent;
}

.tw-choice[aria-pressed="true"] .tw-choice-mark::after {
  width: 12px;
  height: 12px;
  content: "";
  border-radius: 999px;
  background: #ffffff;
}

.tw-choice[aria-pressed="true"] .tw-choice-hint {
  color: #6b3f3d;
}

/* Der zweite Spalten-Wrapper im .tw-choice-Grid muss min-width: 0 haben,
   damit Label+Hint umbrechen können statt aus der Card herauszulaufen
   (Default min-width: auto bei Grid-Items). Kein overflow: hidden hier –
   falls das umgebende WordPress-Theme white-space: nowrap auf Buttons
   setzt, würde overflow: hidden den Text abschneiden statt umbrechen.
   white-space: normal weiter unten überschreibt das Theme defensiv. */
.tw-choice-text {
  min-width: 0;
  width: 100%;
  display: block;
}

.tw-choice-label,
.tw-choice-hint {
  /* Manche WordPress-Themes setzen white-space: nowrap auf Buttons oder
     ihre Inhalte. Ohne diesen Override würde der Text trotz
     overflow-wrap: anywhere niemals umbrechen und stattdessen rechts aus
     der Card herausragen bzw. abgeschnitten werden. .tw-widget erhöht
     die Spezifität über die Theme-Defaults. */
  white-space: normal;
}
.tw-widget .tw-choice-label,
.tw-widget .tw-choice-hint {
  white-space: normal;
}

.tw-choice-label {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  /* Explicit colour so the label never inherits a white hover colour
     from a surrounding WordPress theme's "button:hover" rule. */
  color: var(--tw-ink);
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.25;
}

.tw-choice-hint {
  display: block;
  margin-top: 2px;
  color: var(--tw-muted);
  font-size: 0.88rem;
  font-weight: 500;
  /* Lange Sätze („Eltern und Geschwister können relevant werden") brechen
     jetzt zuverlässig um, statt rechts aus der Card auszubrechen. */
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.4;
}

.tw-children-panel {
  display: none;
  margin-top: 14px;
  padding: 18px;
  border: 1px solid var(--tw-line);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(244, 169, 165, 0.12);
}

.tw-children-panel.is-visible {
  display: block;
  animation: tw-panel-in 180ms ease both;
}

.tw-field-label {
  display: block;
  margin-bottom: 10px;
  color: var(--tw-ink);
  font-size: 1.05rem;
  font-weight: 700;
}

.tw-number-control {
  display: grid;
  grid-template-columns: 48px minmax(80px, 128px) 48px;
  gap: 10px;
  align-items: center;
}

.tw-number-button,
.tw-number-input {
  height: 48px;
  border: 1px solid #c0c0c0;
  border-radius: 12px;
  background: #ffffff;
  color: var(--tw-ink);
  font: inherit;
}

.tw-number-button {
  font-size: 1.35rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease;
}

/* After a click the button keeps focus; without this an explicit rule a
   theme's "button:focus/:active" style would repaint it (e.g. pink fill).
   Keep the standard look — the :hover rule below still wins while hovered. */
.tw-widget .tw-number-button:focus,
.tw-widget .tw-number-button:active {
  border-color: #c0c0c0;
  background: #ffffff;
  color: var(--tw-ink);
}

.tw-widget .tw-number-button:hover {
  border-color: #515151;
  background: #ececec;
  color: var(--tw-ink);
}

.tw-number-input {
  width: 100%;
  padding: 0 10px;
  text-align: center;
  font-weight: 800;
}

.tw-note {
  margin: 16px 0 0;
  padding: 12px 14px;
  border: 1px solid var(--tw-primary);
  border-radius: 14px;
  background: var(--tw-bg);
  color: var(--tw-muted);
  font-size: 0.92rem;
}

.tw-nav {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 14px 0 0;
}

/* A WordPress theme's "button { display: ... }" rule (or our own display:grid)
   overrides the UA [hidden] rule, so hidden elements — the nav on the result
   step, the "Zurück" button on step 1 — stayed visible. Enforce hiding. */
.tw-widget [hidden] {
  display: none !important;
}

.tw-nav-button,
.tw-cta,
.tw-pdf-button {
  min-height: 54px;
  padding: 0 18px;
  /* Grid/flex items default to min-width:auto and never shrink below their
     content size. A WordPress theme inflating button padding or font could
     therefore push the button past its track and out of the widget on the
     right. Forcing border-box + width:100% + min-width:0 keeps every button
     inside its column regardless of theme styles. */
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  border: 0;
  border-radius: 14px;
  font: inherit;
  font-weight: 850;
  color: var(--tw-ink);
  cursor: pointer;
  transition: transform 160ms ease, opacity 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

/* .tw-widget prefix raises specificity above a theme's "button:hover",
   so the button text keeps its dark colour on hover. */
.tw-widget .tw-nav-button:hover,
.tw-widget .tw-cta:hover,
.tw-widget .tw-pdf-button:hover {
  transform: translateY(-1px);
  color: var(--tw-ink);
}

.tw-nav-button:disabled,
.tw-pdf-button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none;
}

/* All button colours use the .tw-widget prefix (specificity 0,2,0 / 0,2,1) so a
   WordPress theme's "button:hover/:focus/:active" rules cannot repaint them —
   e.g. a button keeping focus after a click stays its intended colour. */
.tw-widget .tw-button-back {
  background: var(--tw-primary);
  color: var(--tw-ink);
}

.tw-widget .tw-button-back:hover {
  background: var(--tw-primary-strong);
}

.tw-widget .tw-button-next {
  background: var(--tw-accent);
  color: var(--tw-ink);
  box-shadow: 0 14px 26px rgba(255, 212, 0, 0.30);
}

.tw-widget .tw-button-next:hover {
  background: var(--tw-accent-strong);
}

.tw-widget .tw-button-restart {
  background: #f1f1f3;
  color: var(--tw-ink);
}

.tw-widget .tw-button-restart:hover {
  background: #e8e8eb;
}

.tw-widget .tw-cta {
  background: var(--tw-primary);
  color: var(--tw-ink);
  box-shadow: 0 14px 26px rgba(244, 169, 165, 0.32);
}

.tw-widget .tw-cta:hover {
  background: var(--tw-primary-strong);
}

.tw-result-grid {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.tw-result-side {
  display: grid;
  gap: 14px;
}

.tw-law-card,
.tw-free-card {
  padding: 18px;
}

.tw-law-card {
  background: #ffffff;
}

.tw-free-card {
  border-color: var(--tw-primary);
  background: var(--tw-bg);
  box-shadow: 0 16px 38px rgba(244, 169, 165, 0.24);
}

/* No own surface — the explanation blocks sit directly inside the pink
   .tw-section wrapper so the white sub-cards keep their own shape. */
.tw-explanation-card {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

/* Pink "halo" wrapper around the result-page sections: a soft rosé card
   contains the white inner card so the white surface feels framed and
   grouped. Used for the law card and the explanations group; the free
   share card stays a standalone pink card. The background is more saturated
   than the shell so the wrapper is clearly distinct from the surrounding
   surface. */
.tw-section {
  padding: 10px;
  border: 1px solid var(--tw-primary-soft);
  border-radius: 20px;
  background: #ffe6e2;
}

.tw-card-title {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: 0;
}

.tw-card-copy {
  margin: 8px 0 0;
  color: var(--tw-muted);
  overflow-wrap: anywhere;
}

.tw-card-title {
  overflow-wrap: anywhere;
}

.tw-summary-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.tw-summary-top > div {
  min-width: 0;
}

.tw-summary-label {
  margin: 0;
  color: var(--tw-muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.tw-summary-value {
  margin: 4px 0 0;
  font-size: clamp(2rem, 9vw, 3.25rem);
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.tw-free-label {
  margin: 4px 0 0;
  color: var(--tw-deep);
  font-weight: 850;
}

.tw-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--tw-primary-soft);
  color: var(--tw-deep);
  font-size: 0.84rem;
  font-weight: 850;
  white-space: nowrap;
}

.tw-bars {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.tw-bar-row {
  display: grid;
  gap: 7px;
}

.tw-bar-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.95rem;
  font-weight: 800;
}

.tw-bar-label {
  min-width: 0;
  overflow-wrap: anywhere;
}

.tw-bar-percent {
  color: var(--tw-muted);
  white-space: nowrap;
}

.tw-bar-track {
  height: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--tw-soft);
}

.tw-bar-fill {
  width: var(--tw-share, 0%);
  height: 100%;
  border-radius: inherit;
  background: var(--tw-bar-color, var(--tw-primary));
  transform-origin: left center;
  animation: tw-bar-in 520ms ease both;
}

.tw-explanation {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tw-explanation-block + .tw-explanation-block {
  margin-top: 14px;
}

.tw-explanation-block > .tw-card-title {
  margin-bottom: 10px;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
}

.tw-explanation li {
  padding: 14px;
  border: 1px solid var(--tw-line);
  border-radius: 14px;
  background: #ffffff;
  color: var(--tw-muted);
}

.tw-explanation strong {
  color: var(--tw-ink);
}

.tw-explanation-free {
  padding: 14px;
  border: 1px solid var(--tw-line);
  border-radius: 14px;
  background: #ffffff;
  color: var(--tw-muted);
}

.tw-explanation-free p {
  margin: 0;
}

.tw-explanation-free strong {
  color: var(--tw-ink);
}

.tw-actions {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.tw-free-card .tw-cta {
  width: 100%;
}

.tw-free-actions {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.tw-widget .tw-pdf-button {
  border: 0;
  background: var(--tw-accent);
  color: var(--tw-ink);
  box-shadow: 0 12px 24px rgba(255, 212, 0, 0.28);
}

.tw-widget .tw-pdf-button:hover {
  background: var(--tw-accent-strong);
}

.tw-pdf-error {
  margin: 12px 0 0;
  padding: 10px 12px;
  border: 1px solid var(--tw-primary);
  border-radius: 12px;
  background: var(--tw-bg);
  color: var(--tw-deep);
  font-size: 0.9rem;
}

.tw-legal {
  margin: 16px 0 0;
  padding: 13px 14px;
  border: 1px solid var(--tw-primary-soft);
  border-radius: 14px;
  background: var(--tw-bg);
  color: var(--tw-muted);
  font-size: 0.92rem;
}

.tw-source {
  margin-top: 10px;
  color: var(--tw-muted);
  font-size: 0.82rem;
}

.tw-source a {
  color: var(--tw-deep);
  font-weight: 800;
}

@keyframes tw-step-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes tw-panel-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes tw-bar-in {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

.tw-contact-card,
.tw-thanks-card {
  padding: 22px;
  background: #ffffff;
}

.tw-form {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.tw-form-field {
  display: grid;
  gap: 8px;
}

.tw-form .tw-field-label {
  display: block;
  margin: 0;
  color: var(--tw-ink);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.005em;
}

.tw-form-input {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  height: 52px;
  padding: 0 16px;
  border: 1.5px solid var(--tw-line);
  border-radius: 14px;
  background: #ffffff;
  color: var(--tw-ink);
  font: inherit;
  font-size: 1rem;
  font-weight: 500;
  box-shadow: 0 1px 2px rgba(20, 22, 28, 0.04);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.tw-form-input::placeholder {
  color: #a8b0bd;
  font-weight: 400;
}

.tw-widget .tw-form-input:hover {
  border-color: var(--tw-primary-soft);
}

.tw-widget .tw-form-input:focus,
.tw-widget .tw-form-input:focus-visible {
  outline: none;
  border-color: var(--tw-primary);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(244, 169, 165, 0.18);
}

/* DSGVO-Checkbox: ein verstecktes <input> auf der gleichen Position wie das
   sichtbare ".tw-consent-mark". Klick aufs Mark / Label togglet die echte
   Checkbox und der Haken erscheint per ::after. */
.tw-consent {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  margin: 2px 0 0;
  padding: 4px 0;
  cursor: pointer;
}

.tw-consent-box {
  position: relative;
  width: 22px;
  height: 22px;
  margin-top: 2px;
}

.tw-consent-checkbox {
  position: absolute;
  inset: 0;
  width: 22px;
  height: 22px;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.tw-consent-mark {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 2px solid #c0c0c0;
  border-radius: 7px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(20, 22, 28, 0.05);
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
  pointer-events: none;
}

.tw-consent-checkbox:checked + .tw-consent-mark {
  border-color: var(--tw-primary);
  background: var(--tw-primary);
}

.tw-consent-checkbox:checked + .tw-consent-mark::after {
  content: "";
  width: 11px;
  height: 6px;
  border-left: 2.5px solid #ffffff;
  border-bottom: 2.5px solid #ffffff;
  transform: rotate(-45deg) translateY(-1px);
}

.tw-consent-checkbox:focus-visible + .tw-consent-mark {
  outline: 3px solid rgba(244, 169, 165, 0.55);
  outline-offset: 2px;
}

.tw-widget .tw-consent:hover .tw-consent-mark {
  border-color: var(--tw-primary);
}

.tw-consent-text {
  color: var(--tw-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.tw-widget .tw-consent-text a {
  color: var(--tw-deep);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.tw-widget .tw-consent-text a:hover {
  color: var(--tw-primary-strong);
}

.tw-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.tw-form-error {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--tw-primary);
  border-radius: 12px;
  background: var(--tw-bg);
  color: var(--tw-deep);
  font-size: 0.92rem;
}

.tw-form-actions {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}

.tw-form-hint {
  margin: 6px 0 0;
  color: var(--tw-muted);
  font-size: 0.88rem;
}

.tw-thanks-follow-up {
  margin: 12px 0 0;
  padding: 14px;
  border: 1px solid var(--tw-primary-soft);
  border-radius: 14px;
  background: var(--tw-bg);
  color: var(--tw-deep);
  font-weight: 700;
}

.tw-thanks-actions {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

/* Mobile-Optimierungen: enger gepacktes Padding, kleinere Border-Radii,
   und etwas zurückgenommene Schriftgrößen damit die Karten in 360–390 px
   breiten Viewports nicht erdrückend wirken. Greift nur unter 480 px. */
@media (max-width: 480px) {
  .tw-shell {
    padding: 10px;
    border-radius: 18px;
  }

  .tw-header {
    padding: 18px 16px 14px;
    border-radius: 12px 12px 0 0;
  }

  .tw-content {
    padding: 16px;
    border-radius: 0 0 12px 12px;
  }

  /* Header */
  .tw-title {
    /* Default clamp(1.5rem, 4.6vw, 2.35rem) – 1.5rem als floor ist auf 360-px-
       Screens noch zu raumgreifend; gezielt zurücknehmen. */
    font-size: 1.45rem;
  }

  .tw-subtitle {
    font-size: 0.92rem;
  }

  .tw-progress-meta {
    font-size: 0.82rem;
  }

  /* Wizard – Antwort-Buttons */
  .tw-choice {
    /* Etwas knapperes Padding + kompakterer Hint, damit lange Antworten
       wie "Eltern und Geschwister können relevant werden" auf 360-px-
       Screens nicht so eng am Rand sitzen. */
    padding: 12px 13px;
    min-height: 60px;
    gap: 10px;
  }

  .tw-choice-label {
    font-size: 1rem;
  }

  .tw-choice-hint {
    font-size: 0.82rem;
  }

  /* Wizard – Schritt 2: Anzahl-Kinder-Panel */
  .tw-children-panel {
    padding: 14px;
    border-radius: 14px;
  }

  .tw-field-label {
    font-size: 1rem;
  }

  .tw-number-control {
    /* Default minmax(80px, 128px) für die Mitte: bei 360 px Viewport stoßen
       die zwei 48-px-Buttons + 80-px-Input + 2×10 px Gap ans Limit, sobald
       das Theme zusätzliches Padding bringt. min auf 64 px senken. */
    grid-template-columns: 48px minmax(64px, 128px) 48px;
    gap: 8px;
  }

  .tw-note {
    /* Hinweis in Schritt 3 ("Da Kinder vorhanden sind, …") soll sauber
       umbrechen, falls der Text vom Admin angepasst wurde. */
    padding: 10px 12px;
    font-size: 0.88rem;
    overflow-wrap: anywhere;
  }

  /* Ergebnisseite */
  .tw-law-card,
  .tw-free-card {
    padding: 14px;
  }

  .tw-summary-top {
    /* Pill ("Frei gestaltbar") + Summary-Block: weniger Gap, damit der Pill
       nicht in eine neue Zeile rutscht, wenn die Karte schmal wird. */
    gap: 10px;
  }

  .tw-summary-value {
    /* 9vw bei 360 px = 32 px, das ist OK. Aber bei 24 % o.ä. mit Komma kann
       die Zahl unverhältnismäßig groß wirken. Etwas straffen. */
    font-size: clamp(1.85rem, 8.5vw, 2.6rem);
  }

  .tw-pill {
    /* Bisher white-space: nowrap. Bei stark übersetztem oder angepasstem
       Label ("Frei gestaltbar") soll auf engen Screens umbrechen dürfen,
       sonst kann das Pill aus der Card herauslaufen. */
    white-space: normal;
    font-size: 0.78rem;
    padding: 4px 10px;
    min-height: 28px;
  }

  .tw-bars {
    gap: 10px;
    margin-top: 16px;
  }

  .tw-bar-meta {
    font-size: 0.88rem;
  }

  .tw-explanation li,
  .tw-explanation-free {
    padding: 12px;
  }

  .tw-explanation-block > .tw-card-title {
    font-size: 1rem;
  }

  .tw-section {
    /* Pink Halo-Wrapper braucht auf Mobile weniger Innenabstand, sonst
       wirkt die innere weiße Karte gequetscht. */
    padding: 6px;
    border-radius: 16px;
  }

  /* Kontaktformular */
  .tw-contact-card,
  .tw-thanks-card {
    padding: 16px;
  }

  .tw-form {
    gap: 14px;
    margin-top: 16px;
  }

  .tw-form-input {
    /* 52 px sind auf Mobile ok, aber das Padding 0 16 px kürzen für mehr
       Schreibplatz bei langen Adressen. */
    height: 48px;
    padding: 0 14px;
    font-size: 0.95rem;
  }

  .tw-consent {
    grid-template-columns: 22px 1fr;
    gap: 10px;
  }

  .tw-consent-text {
    font-size: 0.85rem;
  }

  .tw-form-hint,
  .tw-form-error {
    font-size: 0.85rem;
  }

  .tw-thanks-follow-up {
    padding: 12px;
    font-size: 0.92rem;
  }

  /* Defensiver Overflow-Schutz für alle Text-Container der Ergebnis-,
     Kontakt- und Dankesseite. Greift nur falls jemand eine sehr lange
     URL/Mailadresse in den Texten unterbringt. */
  .tw-legal,
  .tw-source,
  .tw-card-copy,
  .tw-summary-label,
  .tw-thanks-follow-up,
  .tw-form-hint,
  .tw-form-error,
  .tw-consent-text {
    overflow-wrap: anywhere;
  }
}

@media (min-width: 680px) {
  .tw-header {
    padding: 30px 34px 22px;
  }

  .tw-content {
    padding: 28px 34px;
  }

  .tw-law-card,
  .tw-free-card {
    padding: 24px;
  }

  .tw-section {
    padding: 14px;
  }

  .tw-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tw-form-actions {
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 14px;
  }

  .tw-contact-card,
  .tw-thanks-card {
    padding: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tw-widget *,
  .tw-widget *::before,
  .tw-widget *::after {
    animation-duration: 1ms !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}
