/* ==========================================================================
   DERMA-FORTE® – Fragebogen Anwendungsbeobachtung
   Ergänzt style.css (Schriften, Tokens, Footer, Consent).
   Formensprache der Landingpage: dunkle Fläche mit runder Ecke unten rechts,
   oranger Kreis (Badge), Barlow Condensed für Headlines.
   ========================================================================== */
:root {
  --fb-tint: #eef2f5;
  --fb-line: #d3dce4;
  --fb-muted: #5b6875;
  --fb-error: #b4301f;
  --fb-w: 720px;
  --fb-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Kopf: Intro (groß) ↔ Fortschrittsleiste (kompakt) ---------- */
.fb-head {
  position: relative;
  z-index: 20;
  background: var(--farco-blau);
  color: #fff;
  border-bottom-right-radius: 36px;
}

/* Ein-/Ausklappen per grid-template-rows (0fr ↔ 1fr) */
.fb-bar,
.fb-hero {
  display: grid;
  transition: grid-template-rows 0.7s var(--fb-ease);
}

.fb-bar {
  grid-template-rows: 0fr;
}

.fb-hero {
  grid-template-rows: 1fr;
}

.fb-running .fb-bar {
  grid-template-rows: 1fr;
}

.fb-running .fb-hero {
  grid-template-rows: 0fr;
}

.fb-bar__clip,
.fb-hero__clip {
  min-height: 0;
  overflow: hidden;
}

/* Während des Ausfüllens bleibt der Fortschritt sichtbar */
.fb-running .fb-head {
  position: sticky;
  top: 0;
}

.fb-bar__inner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  max-width: calc(var(--fb-w) + 48px);
  margin: 0 auto;
  padding: 14px 24px 10px;
}

.fb-bar__brand {
  margin: 0;
  font-family: var(--font-condensed);
  font-size: 26px;
  line-height: 1;
  white-space: nowrap;
}

.fb-bar__brand sup {
  font-size: 0.6em;
  line-height: 0;
}

.fb-bar__brand span {
  display: none;
  margin-left: 8px;
  font-family: var(--font-sans);
  font-size: 14px;
  opacity: 0.75;
}

@media (min-width: 480px) {
  .fb-bar__brand span {
    display: inline;
  }
}

.fb-bar__count {
  margin: 0;
  font-weight: 500;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  opacity: 0.85;
  white-space: nowrap;
}

.fb-progress {
  position: relative;
  max-width: var(--fb-w);
  height: 4px;
  margin: 0 24px 16px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.16);
}

@media (min-width: 768px) {
  .fb-progress {
    margin-inline: auto;
  }
}

.fb-progress__fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: inherit;
  background: var(--badge-orange);
  transition: width 0.6s var(--fb-ease);
}

/* Leuchtpunkt an der Spitze */
.fb-progress__fill::after {
  content: "";
  position: absolute;
  right: -5px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 0 rgba(245, 127, 69, 0.7);
  transform: translateY(-50%);
}

.fb-progress.is-bump .fb-progress__fill::after {
  animation: fb-bump 0.7s ease-out;
}

@keyframes fb-bump {
  0% {
    box-shadow: 0 0 0 0 rgba(245, 127, 69, 0.75);
    transform: translateY(-50%) scale(1);
  }
  40% {
    transform: translateY(-50%) scale(1.5);
  }
  100% {
    box-shadow: 0 0 0 12px rgba(245, 127, 69, 0);
    transform: translateY(-50%) scale(1);
  }
}

/* Funken beim Abschluss eines Abschnitts */
.fb-spark {
  position: absolute;
  top: 50%;
  width: 7px;
  height: 7px;
  margin: -3.5px 0 0 -3.5px;
  border-radius: 50%;
  background: var(--badge-orange);
  pointer-events: none;
  animation: fb-spark 0.8s var(--fb-ease) forwards;
}

.fb-spark:nth-child(even) {
  background: #fff;
}

@keyframes fb-spark {
  from {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
  to {
    opacity: 0;
    transform: translate(var(--dx), var(--dy)) scale(0.3);
  }
}

/* ---------- Intro ---------- */
.fb-hero__inner {
  position: relative;
  display: grid;
  gap: 24px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px 24px 40px;
}

.fb-kicker {
  margin: 0 0 12px;
  color: var(--badge-orange);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.fb-hero__title {
  margin: 0;
  font-family: var(--font-condensed);
  font-weight: 400;
  font-size: 46px;
  line-height: 0.98;
}

.fb-hero__title span {
  display: block;
}

.fb-nowrap {
  white-space: nowrap;
}

.fb-hero__title sup {
  font-size: 0.6em;
  line-height: 0;
  vertical-align: 0.62em;
}

.fb-hero__lead {
  max-width: 34em;
  margin: 18px 0 0;
  font-size: 18px;
  line-height: 1.4;
}

.fb-hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  font-weight: 500;
  font-size: 15px;
}

.fb-hero__facts li::before {
  content: "";
  display: inline-block;
  vertical-align: 0.1em;
  margin-right: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--badge-orange);
}

.fb-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: 28px;
}

.fb-start {
  border: 0;
  cursor: pointer;
}

.fb-linkbtn {
  padding: 4px 0;
  border: 0;
  background: none;
  color: inherit;
  font: 500 16px/1.4 var(--font-sans);
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
  opacity: 0.85;
}

.fb-linkbtn:hover {
  opacity: 1;
}

.fb-hero__resume {
  flex-basis: 100%;
  margin: 0;
  font-size: 14px;
  opacity: 0.8;
}

/* Produktmotiv nur ab Tablet */
.fb-hero__visual {
  display: none;
}

.fb-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 104px;
  aspect-ratio: 1;
  margin: 0;
  border-radius: 50%;
  background: var(--badge-orange);
  color: #fff;
  font-weight: 600;
  font-size: 22px;
  line-height: 1.1;
  text-align: center;
}

@media (min-width: 600px) {
  .fb-head {
    border-bottom-right-radius: 48px;
  }

  .fb-bar__inner {
    max-width: calc(var(--fb-w) + 96px);
    padding: 16px 48px 10px;
  }

  .fb-progress {
    margin-inline: 48px;
  }

  .fb-hero__inner {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    align-items: center;
    padding: 48px 48px 56px;
  }

  .fb-hero__title {
    font-size: clamp(52px, 7.5vw, 80px);
  }

  .fb-hero__lead {
    font-size: 20px;
  }

  .fb-hero__visual {
    display: block;
    position: relative;
    align-self: stretch;
    min-height: 280px;
  }

  /* Bühne im Seitenverhältnis des Flaschenbilds; die Bubble ist daran verankert
     und liegt so auf jeder Breite leicht über der Schulter der Flasche */
  .fb-hero__product {
    position: absolute;
    left: 12%;
    top: 50%;
    width: 125%;
    aspect-ratio: 1792 / 1536;
    transform: translateY(-50%);
    container-type: inline-size;
  }

  .fb-hero__img {
    width: 100%;
    max-width: none;
    height: auto;
    pointer-events: none;
    user-select: none;
  }

  .fb-badge {
    position: absolute;
    left: 37%;
    top: 0;
    z-index: 1;
    width: 24%;
    font-size: 3.9cqw;
  }
}

@media (min-width: 768px) {
  .fb-progress {
    margin-inline: auto;
  }
}

@media (min-width: 1024px) {
  .fb-hero__inner {
    padding: 64px clamp(48px, 5.556vw, 80px) 72px;
  }
}

/* Intro-Animation wie auf der Startseite */
@media (prefers-reduced-motion: no-preference) {
  .fb-hero__product {
    animation: fb-hero-in 1.4s var(--fb-ease) both;
  }

  .fb-hero .fb-badge {
    animation:
      fade-in 0.7s ease-out 0.6s both,
      badge-pulse 3s ease-in-out 0.6s infinite;
    will-change: transform, opacity;
    backface-visibility: hidden;
  }
}

@keyframes fb-hero-in {
  from {
    opacity: 0;
    transform: translate(48px, -50%);
  }
  to {
    opacity: 1;
    transform: translate(0, -50%);
  }
}

/* ---------- Hauptbereich ---------- */
.fb-main {
  position: relative;
  flex: 1 0 auto;
  isolation: isolate;
  /* clip statt hidden: erzeugt keinen Scroll-Container, sonst greift position: sticky der Navigation nicht */
  overflow: hidden;
  overflow: clip;
  padding: 32px 24px 0;
}

/* Hintergrundformen aus dem Badge-Kreis abgeleitet */
.fb-main::before,
.fb-main::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}

.fb-main::before {
  right: -260px;
  top: 80px;
  width: 520px;
  aspect-ratio: 1;
  background: var(--fb-tint);
  opacity: 0.7;
}

.fb-main::after {
  left: -60px;
  bottom: 120px;
  width: 140px;
  aspect-ratio: 1;
  border: 2px solid rgba(245, 127, 69, 0.25);
}

.fb-form {
  display: flex;
  flex-direction: column;
  max-width: var(--fb-w);
  min-height: 100%;
  margin: 0 auto;
}

.fb-stage {
  position: relative;
  flex: 1 0 auto;
}

.fb-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.fb-noscript {
  max-width: var(--fb-w);
  margin: 0 auto 24px;
  padding: 16px 20px;
  border-radius: 12px;
  background: var(--fb-tint);
  font-weight: 500;
}

@media (min-width: 600px) {
  .fb-main {
    padding: 48px 48px 0;
  }
}

@media (min-width: 1024px) {
  .fb-main::before {
    right: -180px;
    top: 60px;
    width: 640px;
  }
}

/* ---------- Schritt ---------- */
.fb-step {
  padding-bottom: 8px;
}

.fb-step.is-leaving {
  position: absolute;
  inset: 0 0 auto;
  pointer-events: none;
}

.fb-step__kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--badge-orange);
  font-weight: 600;
  font-size: 13px;
  line-height: 1.2;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.fb-step__num {
  display: grid;
  place-items: center;
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--badge-orange);
  color: #fff;
  font-size: 13px;
  letter-spacing: 0;
}

.fb-step__lead {
  margin: 18px 0 0;
  color: var(--fb-muted);
  font-weight: 500;
  font-size: 16px;
}

.fb-step__title {
  margin: 14px 0 0;
  color: var(--farco-blau);
  font-weight: 600;
  font-size: clamp(24px, 4.4vw, 32px);
  line-height: 1.2;
  outline: none;
}

.fb-step__lead + .fb-step__title {
  margin-top: 6px;
}

/* Aussagen der Bewertungsskala als Zitat in Condensed */
.fb-step--skala .fb-step__title {
  font-family: var(--font-condensed);
  font-weight: 400;
  font-size: clamp(34px, 6vw, 48px);
  line-height: 1.05;
}

.fb-step__title sup,
.fb-step__kicker sup,
.fb-review sup,
.fb-plan sup {
  font-size: 0.6em;
  line-height: 0;
}

.fb-step__hint {
  margin: 8px 0 0;
  color: var(--fb-muted);
  font-size: 16px;
}

.fb-error {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0 0;
  color: var(--fb-error);
  font-weight: 500;
}

.fb-error::before {
  content: "!";
  display: grid;
  place-items: center;
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--fb-error);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
}

.fb-error[hidden] {
  display: none;
}

.fb-shake {
  animation: fb-shake 0.4s ease-in-out;
}

@keyframes fb-shake {
  20%,
  60% {
    transform: translateX(-6px);
  }
  40%,
  80% {
    transform: translateX(6px);
  }
}

/* Übergang zwischen Schritten: die neue Frage öffnet sich kreisförmig
   aus der orangen Abschnittsnummer (Formensprache des Badges) */
.fb-in-fwd,
.fb-in-back {
  /* kurz halten: clip-path blendet auch Klicks auf den noch verdeckten Bereich aus */
  animation: fb-circle-in 0.5s cubic-bezier(0.5, 0, 0.3, 1) both;
}

.fb-out-fwd,
.fb-out-back {
  animation: fade-in 0.2s ease-in reverse both;
}

@keyframes fb-circle-in {
  from {
    clip-path: circle(0 at 13px 13px);
  }
  to {
    clip-path: circle(150% at 13px 13px);
  }
}

/* Optionen erscheinen leicht gestaffelt */
.fb-in-fwd .fb-opt,
.fb-in-back .fb-opt,
.fb-in-fwd .fb-plan__item {
  animation: fb-rise 0.5s var(--fb-ease) both;
  animation-delay: calc(0.08s + var(--i, 0) * 0.04s);
}

@keyframes fb-rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

/* ---------- Antwortoptionen ---------- */
.fb-step__body {
  margin-top: 24px;
}

.fb-options {
  display: grid;
  gap: 10px;
}

.fb-opt {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 60px;
  padding: 14px 16px;
  overflow: hidden;
  border: 1.5px solid var(--fb-line);
  border-radius: 14px;
  background: #fff;
  color: var(--df-text-primary);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.3;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.fb-opt:hover {
  border-color: var(--farco-blau);
}

.fb-opt:active {
  transform: scale(0.985);
}

.fb-opt.is-checked {
  border-color: var(--farco-blau);
  background: var(--fb-tint);
  box-shadow: 0 6px 18px rgba(21, 42, 67, 0.08);
}

.fb-opt__input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.fb-opt:has(.fb-opt__input:focus-visible) {
  outline: 3px solid var(--badge-orange);
  outline-offset: 3px;
}

.fb-opt__mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 26px;
  height: 26px;
  border: 2px solid var(--fb-line);
  border-radius: 50%;
  background: #fff;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.3s var(--fb-ease);
}

.fb-options--multi .fb-opt__mark {
  border-radius: 8px;
}

.fb-opt__mark svg {
  width: 16px;
  height: 16px;
  stroke-dasharray: 20;
  stroke-dashoffset: 20;
  transition: stroke-dashoffset 0.3s ease 0.05s;
}

.fb-opt.is-checked .fb-opt__mark {
  border-color: var(--badge-orange);
  background: var(--badge-orange);
  animation: fb-pop 0.35s var(--fb-ease);
}

.fb-opt.is-checked .fb-opt__mark svg {
  stroke-dashoffset: 0;
}

@keyframes fb-pop {
  50% {
    transform: scale(1.25);
  }
}

.fb-opt__text {
  flex: 1 1 auto;
}

.fb-opt__key {
  flex: none;
  min-width: 24px;
  padding: 1px 6px;
  border: 1px solid var(--fb-line);
  border-radius: 6px;
  color: var(--fb-muted);
  font: 500 12px/18px var(--font-sans);
  text-align: center;
}

.fb-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(245, 127, 69, 0.22);
  transform: scale(0);
  pointer-events: none;
  animation: fb-ripple 0.65s ease-out forwards;
}

@keyframes fb-ripple {
  to {
    opacity: 0;
    transform: scale(1);
  }
}

/* Freitext zu einer Option („Sonstige“, „ja, welche“) */
.fb-extra {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 2px 0 6px 4px;
  animation: fb-rise 0.35s var(--fb-ease) both;
}

.fb-extra[hidden] {
  display: none;
}

.fb-extra__affix {
  flex: none;
  font-weight: 500;
}

.fb-extra .fb-input--zahl {
  width: 96px;
  text-align: center;
}

@media (min-width: 600px) {
  .fb-options--many {
    grid-template-columns: 1fr 1fr;
  }

  .fb-options--many .fb-extra {
    grid-column: 1 / -1;
  }
}

/* Bewertungsskala: ab Tablet vier Kacheln nebeneinander */
@media (min-width: 640px) {
  .fb-options--skala {
    grid-template-columns: repeat(4, 1fr);
  }

  .fb-options--skala .fb-opt {
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    min-height: 128px;
    padding: 18px 12px;
    text-align: center;
  }

  .fb-options--skala .fb-opt__text {
    flex: none;
  }

  .fb-options--skala .fb-opt__key {
    position: absolute;
    top: 8px;
    right: 8px;
  }
}

/* ---------- Eingabefelder ---------- */
.fb-input {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--fb-line);
  border-radius: 12px;
  background: #fff;
  color: var(--df-text-primary);
  font: 400 18px/1.4 var(--font-sans); /* ≥ 16px: kein Auto-Zoom unter iOS */
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.fb-input::placeholder {
  color: #8a96a2;
}

.fb-input:hover {
  border-color: #a9b6c2;
}

.fb-input:focus {
  border-color: var(--farco-blau);
  outline: none;
  box-shadow: 0 0 0 4px rgba(245, 127, 69, 0.28);
}

.fb-input[aria-invalid="true"] {
  border-color: var(--fb-error);
}

textarea.fb-input {
  min-height: 180px;
  resize: vertical;
}

/* Wundalter: drei Zahlenfelder */
.fb-duration {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.fb-duration__field {
  display: flex;
  flex-direction: column-reverse;
  gap: 8px;
  text-align: center;
}

.fb-duration__field .fb-input {
  padding-block: 16px;
  font-size: 30px;
  font-weight: 500;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.fb-duration__field label {
  color: var(--fb-muted);
  font-weight: 500;
  font-size: 15px;
}

/* Kontaktdaten */
.fb-fields {
  display: grid;
  gap: 16px;
}

.fb-field label {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 15px;
}

.fb-field__opt {
  color: var(--fb-muted);
  font-weight: 400;
}

@media (min-width: 600px) {
  .fb-fields {
    grid-template-columns: 1fr 1fr;
    gap: 18px 16px;
  }
}

/* ---------- Ablauf (Intro) ---------- */
/* zusätzlicher Freiraum zum Footer (Navigation ist im Intro ausgeblendet) */
.fb-intro {
  padding-bottom: 58px;
}

.fb-intro__title {
  margin: 0;
  color: var(--farco-blau);
  font-family: var(--font-condensed);
  font-weight: 400;
  font-size: clamp(34px, 6vw, 44px);
  line-height: 1;
}

.fb-plan {
  display: grid;
  gap: 0;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.fb-plan__item {
  position: relative;
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
}

/* Verbindungslinie zwischen den Kreisen */
.fb-plan__item + .fb-plan__item::before {
  content: "";
  position: absolute;
  left: 17px;
  top: -12px;
  height: 24px;
  border-left: 2px dotted var(--fb-line);
}

.fb-plan__num {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 2px solid var(--badge-orange);
  border-radius: 50%;
  color: var(--badge-orange);
  font-weight: 600;
}

.fb-plan__title {
  font-weight: 500;
  font-size: 18px;
}

.fb-plan__meta {
  color: var(--fb-muted);
  font-size: 14px;
  white-space: nowrap;
}

/* ---------- Navigation (mobil am unteren Rand angeheftet) ---------- */
.fb-nav {
  position: sticky;
  bottom: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  padding: 20px 0 calc(16px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(to top, #fff 75%, rgba(255, 255, 255, 0));
}

.fb-nav[hidden] {
  display: none;
}

.fb-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 4px;
  border: 0;
  background: none;
  color: var(--farco-blau);
  font: 500 17px/1 var(--font-sans);
  cursor: pointer;
}

.fb-back svg {
  width: 1em;
  height: 1em;
}

.fb-back:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.fb-back.is-hidden {
  visibility: hidden;
}

.fb-next,
.fb-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 56px;
  padding: 16px 24px;
  border: 0;
  border-radius: 10px;
  background: var(--farco-blau);
  color: #fff;
  font: 600 18px/1 var(--font-sans);
  cursor: pointer;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.fb-next {
  flex: 1 1 auto;
  max-width: 280px;
}

.fb-next:hover {
  background: var(--df-text-primary);
  box-shadow: 0 6px 18px rgba(21, 42, 67, 0.22);
}

.fb-next svg,
.fb-secondary svg {
  width: 1em;
  height: 1em;
  flex: none;
  transition: transform 0.2s ease;
}

.fb-next:hover svg {
  transform: translateX(4px);
}

/* „Absenden“ in Orange */
.fb-next--send {
  background: var(--badge-orange);
}

.fb-next--send:hover {
  background: #e86a2e;
}

.fb-next[aria-busy="true"] {
  opacity: 0.75;
  cursor: progress;
}

.fb-spinner {
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: fb-spin 0.8s linear infinite;
}

@keyframes fb-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (min-width: 600px) {
  .fb-nav {
    position: static;
    padding-block: 32px 48px;
    background: none;
  }

  .fb-next {
    flex: none;
    min-width: 200px;
  }
}

/* ---------- Übersicht vor dem Absenden ---------- */
.fb-review {
  display: grid;
  gap: 14px;
}

.fb-review__sec {
  padding: 18px 20px;
  border-radius: 16px;
  background: var(--fb-tint);
}

.fb-review__sec h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
  color: var(--farco-blau);
  font-weight: 600;
  font-size: 17px;
}

.fb-review__sec h3 .fb-step__num {
  width: 24px;
  height: 24px;
  font-size: 12px;
}

.fb-review dl {
  margin: 0;
}

.fb-review__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 12px;
  padding: 10px 0;
  border-top: 1px solid rgba(37, 55, 70, 0.1);
}

.fb-review__row:first-child {
  border-top: 0;
}

.fb-review dt {
  grid-column: 1;
  color: var(--fb-muted);
  font-size: 14px;
}

.fb-review dd {
  grid-column: 1;
  margin: 0;
  font-weight: 500;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.fb-review__edit {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  padding: 8px 0 8px 8px;
  border: 0;
  background: none;
  color: var(--farco-blau);
  font: 500 15px/1 var(--font-sans);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.fb-privacy {
  margin: 20px 0 0;
  color: var(--fb-muted);
  font-size: 14px;
  line-height: 1.5;
}

.fb-privacy a {
  color: var(--farco-blau);
  text-underline-offset: 2px;
}

/* ---------- Abschluss ---------- */
.fb-done {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 0 64px;
  text-align: center;
}

.fb-done__badge {
  display: grid;
  place-items: center;
  width: 148px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--badge-orange);
  box-shadow: 0 18px 40px rgba(245, 127, 69, 0.35);
}

.fb-done__badge svg {
  width: 64px;
  height: 64px;
  stroke-dasharray: 60;
  stroke-dashoffset: 0;
}

.fb-done__title {
  margin: 28px 0 0;
  color: var(--farco-blau);
  font-family: var(--font-condensed);
  font-weight: 400;
  font-size: clamp(40px, 7vw, 60px);
  line-height: 1.05;
  outline: none;
}

.fb-done p {
  max-width: 30em;
  margin: 14px 0 0;
  font-size: 18px;
}

.fb-done__more {
  margin-top: 36px;
}

.fb-secondary {
  border: 1.5px solid var(--farco-blau);
  background: #fff;
  color: var(--farco-blau);
}

.fb-secondary:hover {
  background: var(--fb-tint);
}

.fb-done__note {
  font-size: 14px !important;
  color: var(--fb-muted);
}

@media (prefers-reduced-motion: no-preference) {
  .fb-done__badge {
    animation:
      fb-badge-in 0.8s var(--fb-ease) both,
      badge-pulse 3s ease-in-out 1s infinite;
  }

  .fb-done__badge svg {
    stroke-dashoffset: 60;
    animation: fb-draw 0.6s ease-out 0.45s forwards;
  }

  .fb-done__title,
  .fb-done p,
  .fb-done__more {
    animation: fb-rise 0.6s var(--fb-ease) both;
  }

  .fb-done__title {
    animation-delay: 0.35s;
  }

  .fb-done p {
    animation-delay: 0.5s;
  }

  .fb-done__more {
    animation-delay: 0.7s;
  }
}

@keyframes fb-badge-in {
  from {
    opacity: 0;
    transform: scale(0.3);
  }
  60% {
    opacity: 1;
    transform: scale(1.08);
  }
  to {
    transform: scale(1);
  }
}

@keyframes fb-draw {
  to {
    stroke-dashoffset: 0;
  }
}

.fb-confetti {
  position: fixed;
  inset: 0;
  z-index: 100;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* ---------- Bewegung reduzieren ---------- */
@media (prefers-reduced-motion: reduce) {
  .fb-bar,
  .fb-hero {
    transition: none;
  }

  .fb-step,
  .fb-step *,
  .fb-progress * {
    animation: none !important;
  }
}
