/* =============================================================================
   ImPuls Agency — Quiz-Funnel · Styles
   CI 1:1 aus dem Figma-Referenzdesign (Pages – ImPuls Agency / Quiz):
   - Hintergrund #f0f0f0 · Cards weiß, Radius 7px · Pills 50px mit Soft-Shadow
   - Dark/Brand #161c26 · Muted/Slate #7b8690
   - Geist Mono → Pill, Labels, Headlines  ·  Inter → Fließtext, Optionen, Buttons
   Mobile-first: Ad-Traffic ist überwiegend mobil.
   ========================================================================== */

:root {
  --bg: #f0f0f0;             /* Seiten-Hintergrund */
  --surface: #ffffff;        /* Cards, Pills, Inputs */
  --ink: #161c26;            /* Dark/Brand: Buttons, CTA, aktiv, Selected */
  --headline: #000000;       /* Headlines (mono, schwarz) */
  --muted: #7b8690;          /* Slate: Labels, Optionstext, Secondary */
  --ink-soft: #3d444e;       /* dunkleres Slate für längeren Fließtext */
  --line: #e4e5e7;           /* feine Trennlinien auf Grau */
  --line-strong: #d3d5d8;
  --good: #1a8a4a;           /* dezentes Grün fürs 100%-Highlight */

  --radius: 7px;             /* Cards, Buttons, Inputs */
  --radius-pill: 50px;       /* Chips/Pills */
  --shadow-pill: 0 5px 2.5px rgba(0,0,0,0.03);
  --shadow-card: 0 1px 2px rgba(0,0,0,0.03), 0 6px 20px rgba(0,0,0,0.04);

  --font-mono: 'Geist Mono', ui-monospace, 'SF Mono', 'Menlo', monospace;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
/* hidden-Attribut schlägt jede display-Klasse (.trust/.progress-seg nutzen display:flex) */
[hidden] { display: none !important; }

body {
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--ink-soft);
  background: var(--bg);
  line-height: 1.5;
  min-height: 100dvh;
  overflow-x: hidden;   /* full-bleed Nav-Bar erzeugt keinen Scroll */
}

/* ---------------------------------------------------------------- App shell */
.app {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  max-width: 430px;          /* Mobile-Funnel-Breite (wie Figma ~390) */
  margin: 0 auto;
  padding: 0 15px;
}

/* ------------------------------------------------------------- Brand-Pill */
.topbar {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  /* Nav-Bar über die volle Bildschirmbreite (auch auf Desktop, wo die App nur 430px ist) */
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 25px 15px 0;
}
.brand-note {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.01em;
  color: var(--muted);
  text-align: center;
}
/* Ergebnis-Seite: Nav-Bar wird zum grünen Erfolgs-Banner (volle Breite, weiß, Inter) */
.topbar-result { display: none; }
.topbar--result {
  background: var(--good);          /* volle Bildschirmbreite via .topbar (100vw) */
  padding: 15px;
  gap: 0;
}
.topbar--result .brand-pill,
.topbar--result .brand-note { display: none; }
.topbar--result .topbar-result {
  display: block;
  font-family: var(--font-sans);   /* Inter */
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-align: center;
}
.sound-toggle {
  position: absolute;
  right: 0;
  top: 23px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 0;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-pill);
  color: var(--muted);
  cursor: pointer;
  transition: color .15s ease, transform .15s ease;
}
.sound-toggle:hover { color: var(--ink); transform: translateY(-1px); }
.sound-toggle svg { width: 16px; height: 16px; }
.sound-toggle .ico-off { display: none; }
.sound-toggle.is-muted .ico-on { display: none; }
.sound-toggle.is-muted .ico-off { display: block; }
.brand-pill {
  display: inline-flex;
  align-items: center;
  background: var(--surface);
  color: var(--muted);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.01em;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-pill);
  white-space: nowrap;
}

/* ------------------------------------------------- Segmentierte Progressbar */
.progress-seg {
  display: flex;
  gap: 10px;
  align-items: center;
  height: 3px;
  margin: 44px 0 0;
}
.progress-seg .seg {
  flex: 1 0 0;
  min-width: 1px;
  height: 3px;
  background: var(--surface);
  border-radius: 10px;
  position: relative;
  overflow: hidden;
}
.progress-seg .seg i {
  position: absolute;
  inset: 0;
  background: var(--ink);
  border-radius: 10px;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .95s cubic-bezier(.33,.9,.26,1);
}
.progress-seg .seg.is-done i { transform: scaleX(1); }
.progress-seg .seg.just-filled { animation: segPulse .55s ease both; }
@keyframes segPulse {
  0%   { box-shadow: 0 0 0 0 rgba(22,28,38,0); }
  45%  { box-shadow: 0 0 0 3px rgba(22,28,38,0.14); }
  100% { box-shadow: 0 0 0 0 rgba(22,28,38,0); }
}

/* --------------------------------------------------------------- Card stage */
.stage {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 50px 0 30px;
}
.screen { width: 100%; display: flex; flex-direction: column; will-change: transform, opacity, filter; }
/* Button nach unten schieben → gleiche Höhe über Slider/PLZ-Screen hinweg.
   Höhere Spezifität als .cta-row (margin-top:26px), sonst gewinnt die. */
.cta-row.cta-row--bottom { margin-top: auto; padding-top: 28px; }

/* Richtungsabhängige Übergänge — klein, schnell, mit leichtem Blur ("cool") */
.screen.enter-fwd  { animation: scrEnterFwd  .44s cubic-bezier(.16,.84,.36,1) both; }
.screen.enter-back { animation: scrEnterBack .44s cubic-bezier(.16,.84,.36,1) both; }
.screen.leave-fwd  { animation: scrLeaveFwd  .18s cubic-bezier(.4,0,1,.5) both; }
.screen.leave-back { animation: scrLeaveBack .18s cubic-bezier(.4,0,1,.5) both; }

@keyframes scrEnterFwd  { from { opacity: 0; transform: translateX(22px) scale(.99); filter: blur(4px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes scrLeaveFwd  { from { opacity: 1; transform: none; filter: blur(0); }              to { opacity: 0; transform: translateX(-16px) scale(.99); filter: blur(3px); } }
@keyframes scrEnterBack { from { opacity: 0; transform: translateX(-22px) scale(.99); filter: blur(4px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes scrLeaveBack { from { opacity: 1; transform: none; filter: blur(0); }              to { opacity: 0; transform: translateX(16px) scale(.99); filter: blur(3px); } }

/* Eyebrow / Chip */
.eyebrow {
  display: inline-flex;
  align-items: center;
  background: var(--surface);
  color: var(--muted);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.01em;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-pill);
}

/* Typography */
.q-step {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  margin: 0 0 25px;
}
h1.headline {
  font-family: var(--font-mono);
  font-size: clamp(26px, 6.4vw, 32px);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.18;
  color: var(--headline);
  margin: 26px 0 16px;
}
h2.question {
  font-family: var(--font-mono);
  font-size: clamp(22px, 5.6vw, 26px);
  font-weight: 500;
  letter-spacing: -0.005em;
  line-height: 1.28;
  color: var(--headline);
  margin: 0 0 8px;
}
.subline {
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin: 0 0 24px;
}
.microcopy {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.5;
  margin: 10px 0 0;
}
.microtrust {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  margin: 20px 0 0;
  line-height: 1.7;
}
.microtrust span { white-space: nowrap; }

/* --------------------------------------------------------- Option buttons */
.options { display: flex; flex-direction: column; gap: 10px; margin-top: 34px; }
.option {
  display: flex;
  align-items: center;
  gap: 15px;
  width: 100%;
  min-height: 56px;
  text-align: left;
  padding: 15px;
  background: var(--surface);
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.16px;
  color: var(--muted);
  cursor: pointer;
  transition: color .15s ease, background .15s ease, border-color .15s ease, transform .12s ease, box-shadow .15s ease;
  /* Gestaffeltes "Auflisten" beim Screen-Eintritt.
     fill-mode "backwards" (nicht "both"), damit der Hover-Transform danach greift. */
  animation: option-rise .52s cubic-bezier(.16,.84,.36,1) backwards;
  animation-delay: calc(var(--i, 0) * 60ms + 90ms);
}
@keyframes option-rise {
  from { opacity: 0; transform: translateY(14px) scale(.985); filter: blur(2px); }
  to   { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}
/* Klick-Feedback: kurzer "Pop" auf der gewählten Option */
.option.just-picked { animation: option-pop .34s cubic-bezier(.3,1.4,.5,1) both; }
@keyframes option-pop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.035); }
  100% { transform: scale(1); }
}
.option .opt-label {
  flex: 1;
  min-width: 0;
  display: block;
  white-space: nowrap;     /* immer einzeilig — JS passt die Größe an */
  overflow: hidden;
  line-height: 1.6;        /* mehr Luft, falls eine Antwort doch umbricht */
}
.option:hover { color: var(--ink); border-color: var(--line-strong); transform: translateY(-1px); box-shadow: var(--shadow-card); }
.option:active { transform: translateY(0); }
.option.selected {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.option .tick {
  flex: 0 0 16px;
  width: 16px; height: 16px;
  border: 1.5px solid #c2c7cd;
  border-radius: var(--radius-pill);
  display: grid; place-items: center;
  transition: border-color .15s ease, background .15s ease;
}
.option.selected .tick { background: #fff; border-color: #fff; }
.option .tick svg { width: 10px; height: 10px; color: var(--ink); opacity: 0; transition: opacity .12s ease; }
.option.selected .tick svg { opacity: 1; }

/* "Andere"-Option (Freitext) — dezent gestrichelt, bis sie gewählt ist */
.option--andere:not(.selected) { border-color: var(--line-strong); border-style: dashed; }
.andere-wrap {
  margin-top: 10px;
  animation: andere-in .35s cubic-bezier(.16,.84,.36,1);
}
.andere-wrap .field { margin-bottom: 0; }
@keyframes andere-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------- Form fields */
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  margin: 0 0 8px;
}
.field input,
.field select {
  width: 100%;
  padding: 16px 15px;
  font-family: var(--font-sans);
  font-size: 16px;            /* ≥16px → kein iOS-Zoom beim Fokus */
  font-weight: 500;
  letter-spacing: -0.16px;
  color: var(--ink);
  background: var(--surface);
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  box-shadow: var(--shadow-pill);
  transition: border-color .15s ease, box-shadow .15s ease;
  -webkit-appearance: none;
  appearance: none;
}
.field input::placeholder { color: var(--muted); }
.field select {
  color: var(--ink);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%237b8690' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  padding-right: 44px;
}
.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(22,28,38,0.08);
}
.field .field-hint {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  margin: 7px 0 0;
}
.field.invalid input,
.field.invalid select { border-color: #d23b3b; }
.field .error-msg {
  display: none;
  font-size: 12.5px;
  color: #d23b3b;
  margin: 6px 0 0;
}
.field.invalid .error-msg { display: block; }

/* -------------------------------------------------------------- Slider */
.slider-wrap { margin-top: 36px; }
.slider-value {
  text-align: center;
  font-family: var(--font-mono);
  font-weight: 300;
  font-size: clamp(56px, 17vw, 78px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--headline);
  font-variant-numeric: tabular-nums;
  margin-bottom: 26px;
}
.range {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 26px;          /* großer Touch-Bereich, Linie sitzt mittig */
  background: transparent;
  outline: none; cursor: pointer;
  margin: 0;
}
/* WebKit/Blink: sichtbare 6px-Linie + zentrierter Thumb */
.range::-webkit-slider-runnable-track {
  height: 6px; border-radius: 999px;
  background: linear-gradient(to right, var(--ink) var(--p, 22%), var(--line-strong) var(--p, 22%));
}
.range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--ink); border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(22,28,38,0.28);
  margin-top: -7px;                    /* (6 − 20) / 2 → exakt mittig auf der Linie */
  transition: transform .12s ease;
}
.range:active::-webkit-slider-thumb { transform: scale(1.18); }
/* Firefox */
.range::-moz-range-track { height: 6px; border-radius: 999px; background: var(--line-strong); }
.range::-moz-range-progress { height: 6px; border-radius: 999px; background: var(--ink); }
.range::-moz-range-thumb {
  width: 20px; height: 20px; border: 3px solid #fff; border-radius: 50%;
  background: var(--ink); box-shadow: 0 2px 8px rgba(22,28,38,0.28);
}
.slider-scale {
  display: flex; justify-content: space-between;
  margin-top: 14px;
  font-family: var(--font-mono); font-size: 12px; color: var(--muted);
}

/* ------------------------------------------------------------------ Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 19px 20px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.16px;
  transition: background .2s ease, transform .15s ease, box-shadow .2s ease;
  border: 0;
  cursor: pointer;
}
.btn:hover { background: #0d1118; transform: translateY(-1px); box-shadow: var(--shadow-card); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none; box-shadow: none; }
.btn svg { width: 18px; height: 18px; }
.btn--block { display: flex; width: 100%; }
.btn--lg { padding: 20px; font-size: 16px; }

.cta-row { margin-top: 26px; }
.safety-net {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.7;
  margin: 18px 0 0;
  text-align: center;
}

/* ---------------------------------------------------- Ergebnis-Seite (final) */
.result-banner {
  align-self: center;
  display: flex; align-items: center; gap: 9px;
  background: rgba(26,138,74,0.12);
  color: var(--good);
  font-family: var(--font-mono);
  font-size: 13px; font-weight: 500; letter-spacing: 0.01em;
  padding: 11px 18px;
  border-radius: var(--radius-pill);
  margin: 6px 0 0;
  animation: option-rise .5s cubic-bezier(.16,.84,.36,1) backwards;
}
.result-banner svg { width: 17px; height: 17px; flex: 0 0 17px; }

.reveal { text-align: center; padding: 30px 0 6px; }
.reveal-lead { margin: 0; font-size: 17px; line-height: 1.4; color: var(--ink-soft); text-wrap: balance; }
.reveal-amount {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: clamp(48px, 14vw, 72px);
  line-height: 1.02; letter-spacing: -0.03em;
  color: var(--good);
  margin: 8px 0;
  font-variant-numeric: tabular-nums;
  animation: quote-pop .7s cubic-bezier(.2,1.3,.4,1) both;
  animation-delay: .1s;
}
.reveal-sub {
  font-size: 13px; line-height: 1.55; color: var(--ink-soft);
  max-width: 42ch; margin: 18px auto 0; text-wrap: balance;
}
.reveal-sub strong { color: var(--headline); font-weight: 700; }
.reveal .hedge { text-align: center; margin-top: 14px; }

/* Abgerundeter Frame für „Deine nächsten Schritte" + Calendly */
.steps-frame {
  margin-top: 30px;
  padding: 24px 18px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
  animation: option-rise .55s cubic-bezier(.16,.84,.36,1) backwards;
  animation-delay: 60ms;
}

.steps-copy { text-align: center; }
.steps-eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
}
.steps-eyebrow svg {
  width: 15px; height: 15px; color: var(--good);
  animation: nudge 1.6s ease-in-out infinite;
}
@keyframes nudge { 0%,100% { transform: translateY(0); } 50% { transform: translateY(3px); } }

.cal-headline {
  font-family: var(--font-mono);
  font-size: clamp(18px, 4.6vw, 22px); font-weight: 500; line-height: 1.28;
  color: var(--headline); text-align: center;
  margin: 0 0 12px; text-wrap: balance;
}
.cal-sub {
  font-size: 13.5px; line-height: 1.6; color: var(--ink-soft);
  text-align: center; max-width: 46ch; margin: 0 auto 20px; text-wrap: pretty;
}
.cal-sub strong { color: var(--headline); font-weight: 600; }
.steps-frame .calendly-inline-widget {
  box-shadow: none; border: 1px solid var(--line);
  min-width: 320px; height: 700px;
}

/* Desktop: Ergebnis-Seite deutlich breiter, Frame 2-spaltig (Pitch | Kalender) */
@media (min-width: 880px) {
  .app.is-result .stage {
    width: 100vw; margin-left: calc(50% - 50vw);
    padding-left: 24px; padding-right: 24px; box-sizing: border-box;
  }
  .app.is-result .screen { max-width: 1040px; margin: 0 auto; }
  .app.is-result .reveal { max-width: 720px; margin: 0 auto; }
  .app.is-result .reveal-lead { font-size: 19px; }

  .app.is-result .steps-frame {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 440px;
    gap: 44px; align-items: center;
    max-width: 1040px; margin-left: auto; margin-right: auto;
    padding: 44px 48px;
  }
  .app.is-result .steps-copy { text-align: left; }
  .app.is-result .cal-headline { text-align: left; font-size: 26px; line-height: 1.25; margin-bottom: 16px; }
  .app.is-result .cal-sub { text-align: left; margin: 0; max-width: 40ch; font-size: 14.5px; }
  .app.is-result .steps-frame .calendly-inline-widget { height: 640px; }
}
.calendly-inline-widget {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background: var(--surface);
}
.cal-fineprint {
  font-family: var(--font-mono);
  font-size: 11.5px; line-height: 1.6; color: var(--muted);
  text-align: center; margin: 16px 0 0; text-wrap: balance;
}

/* --------------------------------------------------------------- Result UI */
.result-quote {
  text-align: center;
  padding: 8px 0 6px;
}
.result-quote .quote-label {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
}
.result-quote .quote-num {
  font-family: var(--font-mono);
  font-size: clamp(56px, 16vw, 80px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--headline);
  margin: 10px 0 0;
}
.result-quote .quote-num.is-100 { color: var(--good); }

.result-block {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 22px;
  margin: 12px 0 0;
}
.result-block.is-highlight {
  background: var(--ink);
  color: #fff;
}
.result-block h3 {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0 0 14px;
  color: var(--muted);
}
.result-block.is-highlight h3 { color: rgba(255,255,255,0.55); }
.result-block p { font-size: 15.5px; line-height: 1.6; margin: 0 0 8px; color: var(--ink-soft); }
.result-block.is-highlight p { color: rgba(255,255,255,0.92); }
.result-block p:last-child { margin-bottom: 0; }
.result-block .big-line {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--headline);
}
.result-block.is-highlight .big-line { color: #fff; }
.result-block strong { font-weight: 700; color: inherit; }

.money-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  font-size: 15.5px;
}
.money-row:last-of-type { border-bottom: 0; }
.money-row .label { color: rgba(255,255,255,0.6); }
.money-row .val { font-family: var(--font-mono); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; color: #fff; }
.money-row.is-total { padding-top: 13px; }
.money-row.is-total .label { color: #fff; }
.money-row.is-total .val { font-size: 19px; }

.hedge {
  font-size: 12.5px;
  color: var(--muted);
  font-style: italic;
  margin: 12px 0 0;
}

/* --------------------------------------------------------------- Spinner */
.btn .spinner {
  width: 17px; height: 17px;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.spin { animation: spin .8s linear infinite; }

/* ------------------------------------------------------ Laden / Berechnen */
.calc-head { text-align: center; margin-top: 12px; }
.calc-steps {
  list-style: none;
  margin: 34px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.calc-step {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-pill);
  font-family: var(--font-sans);
  font-size: 15.5px;
  font-weight: 500;
  letter-spacing: -0.13px;
  color: var(--muted);
  opacity: .45;
  transform: translateY(6px);
  transition: opacity .4s ease, transform .4s cubic-bezier(.16,.84,.36,1), color .3s ease;
}
.calc-step.is-active,
.calc-step.is-done { opacity: 1; transform: none; }
.calc-step.is-done { color: var(--ink); }

/* Lade-Kreis mit Prozent-Anzeige in der Mitte */
.calc-ring-wrap {
  position: relative;
  width: 170px; height: 170px;
  margin: 32px auto 10px;
}
.calc-ring { width: 170px; height: 170px; display: block; }
.calc-ring .cr-track { fill: none; stroke: var(--line-strong); stroke-width: 6; }
.calc-ring .cr-arc {
  fill: none; stroke: var(--ink); stroke-width: 6; stroke-linecap: round;
}
.calc-pct {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-weight: 300;                 /* dünnere Schrift */
  font-size: 44px;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--headline);
  font-variant-numeric: tabular-nums;
}
.calc-pct-inner { display: inline-flex; align-items: baseline; }  /* Zahl + % auf einer Linie */
.calc-pct-unit { margin-left: 1px; }   /* erbt Schriftart, -größe & -farbe der Zahl */

.calc-ico {
  position: relative;
  flex: 0 0 22px;
  width: 22px; height: 22px;
  display: grid; place-items: center;
  color: var(--muted);
}
.calc-ico::before {
  content: "";
  position: absolute;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--line-strong);
  transition: opacity .2s ease;
}
.calc-step.is-active .calc-ico::before,
.calc-step.is-done .calc-ico::before { opacity: 0; }
.calc-ico .spin { width: 20px; height: 20px; opacity: 0; }
.calc-step.is-active .calc-ico .spin { opacity: 1; }
.calc-check {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: var(--ink);
  opacity: 0; transform: scale(.4);
  transition: opacity .25s ease, transform .3s cubic-bezier(.3,1.5,.5,1);
}
.calc-check svg { width: 16px; height: 16px; }
.calc-step.is-done .calc-check { opacity: 1; transform: scale(1); }

/* ----------------------------------------------- Geblurtes Lock-Ergebnis */
.locked-result {
  position: relative;
  margin-top: 22px;
  padding: 28px 22px 24px;
  background: var(--surface);
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  text-align: center;
  overflow: hidden;
}
.locked-lock {
  width: 42px; height: 42px;
  margin: 0 auto 14px;
  display: grid; place-items: center;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-pill);
  box-shadow: 0 6px 18px rgba(22,28,38,0.22);
}
.locked-lock svg { width: 20px; height: 20px; }
.locked-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.locked-num {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 56px;
  line-height: 1;
  color: var(--headline);
  margin: 8px 0 14px;
  filter: blur(11px);
  user-select: none;
  pointer-events: none;
}
.locked-cap {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.55;
  max-width: 36ch;
  margin: 0 auto;
}

/* ---------------------------------------------------------------- Konfetti */
.confetti-canvas {
  position: fixed;
  inset: 0;
  width: 100vw; height: 100vh;
  pointer-events: none;
  z-index: 9999;
}

/* ------------------------------------------------------- Gate-Abstände */
.gate-head { margin-top: 34px; text-align: center; }   /* mehr Luft Box → Heading */
.gate-sub  { text-align: center; line-height: 1.32; }   /* engerer Zeilenabstand */
.gate-form { margin-top: 22px; }   /* weniger Abstand Subtext → erstes Feld */
/* Ausgewogene Zeilenumbrüche (gleich lange Zeilen statt 1 Wort allein) */
h1.headline, h2.question, .subline { text-wrap: balance; }
/* Gate-Heading immer einzeilig — höhere Spezifität als die balance-Regel oben,
   sonst setzt text-wrap den nowrap-Modus wieder zurück. JS schrumpft bei Bedarf. */
h2.question.gate-head { white-space: nowrap; text-wrap: nowrap; }
/* Party-Emoji "ploppt" beim Reveal */
.party { display: inline-block; animation: party-pop .55s cubic-bezier(.3,1.5,.5,1) .15s backwards; }
@keyframes party-pop {
  0%   { transform: scale(0) rotate(-18deg); opacity: 0; }
  60%  { transform: scale(1.22) rotate(8deg); }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}

/* -------------------------------------------- Score-Card (Referenz-Layout) */
.score-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 22px 0 6px;
  padding: 22px 20px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  animation: option-rise .55s cubic-bezier(.16,.84,.36,1) backwards;
  animation-delay: 40ms;
}
.score-lock {
  position: absolute; top: 15px; right: 15px;
  width: 24px; height: 24px;
  display: grid; place-items: center;
  color: var(--muted);
}
.score-lock svg { width: 19px; height: 19px; }
.score-gauge { position: relative; flex: 0 0 76px; width: 76px; height: 76px; }
.score-gauge svg { width: 76px; height: 76px; display: block; }
.score-gauge .g-track { fill: none; stroke: var(--line-strong); stroke-width: 6; }
.score-gauge .g-arc { fill: none; stroke: var(--good); stroke-width: 6; stroke-linecap: round; }
.score-gauge-val {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--font-mono); font-weight: 600; font-size: 18px;
  color: var(--headline);
  filter: blur(6px);
  user-select: none; pointer-events: none;
}
.score-body { flex: 1; min-width: 0; }
.score-label {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.score-bars { display: flex; gap: 6px; margin-bottom: 11px; filter: blur(5px); }
.score-bars span { height: 9px; border-radius: 4px; }
.score-bars span:nth-child(1) { flex: 2;   background: var(--good); }
.score-bars span:nth-child(2) { flex: 1.3; background: #d8a72a; }
.score-bars span:nth-child(3) { flex: 1;   background: #cf5a4e; }
.score-sub {
  font-size: 12px;
  letter-spacing: -0.12px;
  color: var(--ink-soft);
  font-weight: 400;
  white-space: nowrap;     /* immer einzeilig — JS passt bei Bedarf an */
  overflow: hidden;
}
.score-sub strong { color: var(--good); font-weight: 600; }

/* Vergleichs-Labels (temporär, bis eine Variante gewählt ist) */
.variant-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 20px 0 6px;
}
.variant-tag:first-child { margin-top: 2px; }

/* -------------------------------------- Score-Card Variante B (Navy, on-brand) */
.score-card-b {
  position: relative;
  margin: -18px 0 6px;   /* etwas näher an die Brand-Note oben */
  padding: 26px 22px 22px;
  background: var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  text-align: center;
  overflow: hidden;
  animation: option-rise .55s cubic-bezier(.16,.84,.36,1) backwards;
  animation-delay: 40ms;
}
.scb-lock {
  position: absolute; top: 15px; right: 15px;
  width: 24px; height: 24px;
  display: grid; place-items: center;
  color: rgba(255,255,255,0.45);
}
.scb-lock svg { width: 19px; height: 19px; }
.scb-label {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 10px;
}
.scb-num {
  font-family: var(--font-mono);
  font-weight: 300;
  font-size: 58px; line-height: 1;
  color: #fff;
  filter: blur(12px);
  user-select: none; pointer-events: none;
}
.scb-hint {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-top: 14px;
}
.scb-hint svg { width: 13px; height: 13px; }
.scb-divider { height: 1px; background: rgba(255,255,255,0.12); margin: 16px 0 14px; }
.scb-sub {
  font-family: var(--font-sans);
  font-size: 12px; letter-spacing: -0.12px;
  color: rgba(255,255,255,0.82);
  white-space: nowrap; overflow: hidden;
}
.scb-sub strong { color: #46c97e; font-weight: 600; }

/* ----------------------------------------------- Input mit Icon / Vorwahl */
.input-wrap { position: relative; }
.input-wrap.has-ico .input-ico {
  position: absolute; left: 15px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px;
  display: grid; place-items: center;
  color: var(--muted); pointer-events: none;
}
.input-wrap.has-ico .input-ico svg { width: 18px; height: 18px; }
.input-wrap.has-ico input { padding-left: 44px; }

.input-wrap.has-prefix {
  display: flex; align-items: center;
  background: var(--surface);
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  box-shadow: var(--shadow-pill);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input-wrap.has-prefix:focus-within {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(22,28,38,0.08);
}
.input-wrap.has-prefix .input-prefix {
  display: flex; align-items: center; gap: 7px;
  padding: 0 4px 0 15px;
  font-family: var(--font-sans); font-weight: 500; font-size: 16px;
  color: var(--ink); white-space: nowrap;
}
.input-wrap.has-prefix .flag { font-size: 18px; line-height: 1; }
/* Ländervorwahl-Dropdown */
.input-wrap.has-prefix .phone-cc {
  flex: 0 0 auto;               /* nur so breit wie der Inhalt */
  width: auto;
  -webkit-appearance: none; appearance: none;
  border: 0; outline: none;
  background-color: transparent;
  font-family: var(--font-sans); font-weight: 500; font-size: 16px;
  color: var(--ink);
  padding: 0 18px 0 15px;       /* Platz rechts für den kleinen Pfeil */
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 24 24' fill='none' stroke='%237b8690' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
}
.input-wrap.has-prefix input {
  flex: 1 1 auto; min-width: 0;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding-left: 2px;            /* dichter an der Vorwahl */
}
.field.invalid .input-wrap.has-prefix { border-color: #d23b3b; }

/* ----------------------------------------- CTA: sanfter "Wasser"-Schimmer */
.btn--shine { position: relative; overflow: hidden; isolation: isolate; }
.btn--shine::after,
.btn--shine::before {
  content: "";
  position: absolute; inset: -35%;
  z-index: 0; pointer-events: none;
}
.btn--shine::after {
  background: radial-gradient(46% 64% at 50% 50%, rgba(255,255,255,0.30), rgba(255,255,255,0) 72%);
  animation: btn-water 5.5s cubic-bezier(.45,.05,.35,.95) infinite;
}
.btn--shine::before {
  background: radial-gradient(36% 52% at 50% 50%, rgba(255,255,255,0.18), rgba(255,255,255,0) 72%);
  animation: btn-water2 7.3s cubic-bezier(.6,0,.4,1) infinite;
}
/* Unregelmäßige Wegpunkte (nicht-linear): schnell nach rechts, schnell zurück … */
@keyframes btn-water {
  0%   { transform: translate3d(-24%, 5%, 0) scale(1); }
  22%  { transform: translate3d(20%, -4%, 0) scale(1.12); }
  34%  { transform: translate3d(6%, 6%, 0) scale(1.0); }
  58%  { transform: translate3d(-18%, -3%, 0) scale(1.08); }
  78%  { transform: translate3d(10%, 4%, 0) scale(1.04); }
  100% { transform: translate3d(-24%, 5%, 0) scale(1); }
}
@keyframes btn-water2 {
  0%   { transform: translate3d(22%, -3%, 0) scale(1.06); }
  30%  { transform: translate3d(-20%, 5%, 0) scale(1.0); }
  46%  { transform: translate3d(-6%, -5%, 0) scale(1.1); }
  72%  { transform: translate3d(16%, 3%, 0) scale(1.02); }
  100% { transform: translate3d(22%, -3%, 0) scale(1.06); }
}

/* --------------------------------------------------- Sicherheits-Hinweis */
.secure-note {
  display: flex; align-items: center; justify-content: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px; line-height: 1.4;
  color: var(--muted);
  margin: 16px 0 0;
  white-space: nowrap;          /* immer einzeilig */
}
.secure-note svg { width: 14px; height: 14px; flex: 0 0 14px; color: var(--good); }

/* ------------------------------------------------------------------ Footer */
.site-footer {
  padding: 24px 0 28px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--muted);
}
.footer-links {
  display: flex; gap: 10px;
  align-items: center; justify-content: center;
  margin-bottom: 8px;
}
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--ink); text-decoration: underline; }
.footer-copy { color: var(--muted); }

/* --------------------------------------------------------------- Back link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  padding: 6px 0;
  margin-top: 16px;
}
.back-link:hover { color: var(--ink); }
.back-link svg { width: 15px; height: 15px; }

/* ----------------------------------------------------------- Trust-Strip */
.trust {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 8px 0 4px;
  margin-top: 8px;
}
.trust-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-strong);
  /* Eintritt mit Stagger */
  animation: trust-in .6s cubic-bezier(.16,.84,.36,1) both;
  animation-delay: calc(var(--i, 0) * 110ms + 150ms);
}
@keyframes trust-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.trust-num {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 30px;
  letter-spacing: -0.01em;
  color: var(--headline);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.trust-label {
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: -0.13px;
  color: var(--muted);
  text-align: right;
  line-height: 1.4;
}

/* Result-Blocks treten ebenfalls gestaffelt ein */
.result-quote { animation: option-rise .55s cubic-bezier(.16,.84,.36,1) both; animation-delay: 40ms; }
.result-block { animation: option-rise .55s cubic-bezier(.16,.84,.36,1) both; animation-delay: calc(var(--i, 0) * 90ms + 140ms); }
.result-quote .quote-num.is-100,
.result-quote .quote-num { animation: quote-pop .7s cubic-bezier(.2,1.3,.4,1) both; animation-delay: 180ms; }
@keyframes quote-pop {
  0%   { opacity: 0; transform: scale(.6); filter: blur(6px); }
  60%  { opacity: 1; transform: scale(1.06); filter: blur(0); }
  100% { transform: scale(1); }
}

/* ----------------------------------------------------------------- Desktop */
@media (min-width: 720px) {
  .stage { padding: 56px 0 40px; }
  .result-block { padding: 26px 28px; }
}

/* -------------------------------------------------- Reduced motion (a11y) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-delay: 0ms !important;
    transition-duration: .05ms !important;
    scroll-behavior: auto !important;
  }
}
