/* ==========================================================================
   Funnel: Slide-Fragebogen (Overlay) + Inline-Starter im Hero
   ========================================================================== */

/* --- Inline-Starter (Hero-Karte) -------------------------------------------- */
.starter {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-3);
  padding: var(--sp-6);
  position: relative;
}
.starter__flag {
  position: absolute; top: -14px; left: var(--sp-6);
  background: var(--c-cta); color: var(--c-ink);
  font-size: var(--fs-xs); font-weight: var(--fw-black);
  letter-spacing: .04em; text-transform: uppercase;
  padding: 6px 14px; border-radius: var(--r-pill);
}
.starter__title { font-size: var(--fs-lg); margin: var(--sp-2) 0 var(--sp-2); }
.starter__hint  { font-size: var(--fs-sm); color: var(--c-text-muted); margin-bottom: var(--sp-5); }
.starter__foot {
  margin-top: var(--sp-5); padding-top: var(--sp-4);
  border-top: 1px solid var(--c-line);
  display: flex; flex-wrap: wrap; gap: var(--sp-4);
  font-size: var(--fs-xs); color: var(--c-text-muted);
}
.starter__foot span { display: flex; align-items: center; gap: 6px; }
.starter__foot svg { width: 14px; height: 14px; color: var(--c-success); }

@media (max-width: 620px) {
  .starter {
    padding: var(--sp-5);
  }
  .starter__hint {
    margin-bottom: var(--sp-4);
  }
  .starter__foot {
    margin-top: var(--sp-4);
    padding-top: var(--sp-3);
    gap: var(--sp-3);
  }
}

/* --- Options-Karten (in Starter und Funnel identisch) ------------------------ */
.opts { display: grid; gap: var(--sp-3); }
.opts--2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.opts--3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
@media (max-width: 560px) { .opts--2, .opts--3 { grid-template-columns: 1fr; } }

.opt {
  display: flex; align-items: center; gap: var(--sp-4);
  width: 100%;
  padding: 16px 18px;
  text-align: left;
  background: var(--c-surface);
  border: 2px solid var(--c-line-strong);
  border-radius: var(--r-md);
  font: inherit;
  font-size: var(--fs-base);
  font-weight: var(--fw-semi);
  color: var(--c-ink);
  cursor: pointer;
  transition: border-color var(--dur) var(--ease),
              background var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.opt:hover { border-color: var(--c-brand); background: var(--c-brand-tint); }
.opt.is-selected {
  border-color: var(--c-brand);
  background: var(--c-brand-tint);
  box-shadow: inset 0 0 0 1px var(--c-brand);
}
.opt__icon {
  flex: 0 0 40px; width: 40px; height: 40px; border-radius: var(--r-sm);
  background: var(--c-brand-tint); color: var(--c-brand-dark);
  display: grid; place-items: center;
}
.opt.is-selected .opt__icon { background: var(--c-brand); color: #fff; }
.opt__icon svg { width: 20px; height: 20px; }
.opt__body { flex: 1 1 auto; min-width: 0; }
.opt__label { display: block; line-height: 1.3; }
.opt__desc  { display: block; font-size: var(--fs-xs); font-weight: var(--fw-normal); color: var(--c-text-muted); margin-top: 2px; }
.opt__check {
  flex: 0 0 22px; width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--c-line-strong);
  display: grid; place-items: center;
}
.opt.is-selected .opt__check { border-color: var(--c-brand); background: var(--c-brand); }
.opt__check svg { width: 12px; height: 12px; color: #fff; opacity: 0; }
.opt.is-selected .opt__check svg { opacity: 1; }
.opt--multi .opt__check { border-radius: var(--r-sm); }

/* --- Funnel-Overlay ------------------------------------------------------------ */
.funnel {
  position: fixed; inset: 0; z-index: 200;
  background: var(--c-surface-soft);
  display: none;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.funnel.is-open { display: flex; }
body.funnel-open { overflow: hidden; }

.funnel__bar {
  position: sticky; top: 0; z-index: 2;
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-line);
}
.funnel__bar-inner {
  max-width: 860px; margin-inline: auto;
  padding: 14px var(--gutter);
  display: flex; align-items: center; gap: var(--sp-4);
}
.funnel__back, .funnel__close {
  background: none; border: 0; cursor: pointer;
  padding: 8px; border-radius: var(--r-sm);
  color: var(--c-ink-3); display: grid; place-items: center;
}
.funnel__back:hover, .funnel__close:hover { background: var(--c-surface-soft); color: var(--c-ink); }
.funnel__back svg, .funnel__close svg { width: 20px; height: 20px; }
.funnel__back[hidden] { visibility: hidden; display: grid; }
.funnel__close { margin-left: auto; }

.progress { flex: 1 1 auto; }
.progress__track {
  height: 8px; border-radius: var(--r-pill);
  background: var(--c-surface-soft-2); overflow: hidden;
}
.progress__fill {
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--c-brand-light), var(--c-brand));
  border-radius: var(--r-pill);
  transition: width 280ms var(--ease);
}
.progress__label {
  display: block; margin-top: 5px;
  font-size: var(--fs-xs); font-weight: var(--fw-semi); color: var(--c-text-muted);
}

.funnel__body {
  flex: 1 1 auto;
  width: 100%; max-width: 720px;
  margin-inline: auto;
  padding: var(--sp-7) var(--gutter) var(--sp-9);
}

/* --- Slide ---------------------------------------------------------------------- */
.slide { display: none; }
.slide.is-active { display: block; animation: slide-in 260ms var(--ease); }
@keyframes slide-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .slide.is-active { animation: none; }
}

.slide__eyebrow {
  font-size: var(--fs-xs); font-weight: var(--fw-bold);
  letter-spacing: .09em; text-transform: uppercase;
  color: var(--c-brand); margin-bottom: var(--sp-3);
}
.slide__title { font-size: var(--fs-2xl); margin-bottom: var(--sp-3); }
.slide__hint  { color: var(--c-text-muted); font-size: var(--fs-sm); margin-bottom: var(--sp-6); }

.slide__foot {
  margin-top: var(--sp-6);
  display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center;
}
.slide__error {
  color: var(--c-danger); font-size: var(--fs-sm); font-weight: var(--fw-semi);
  margin-top: var(--sp-3);
}

.slide__aside {
  margin-top: var(--sp-6);
  padding: var(--sp-4) var(--sp-5);
  background: var(--c-brand-tint);
  border-radius: var(--r-md);
  font-size: var(--fs-sm);
  color: var(--c-brand-dark);
  display: flex; gap: 12px;
}
.slide__aside svg { width: 20px; height: 20px; flex: 0 0 20px; margin-top: 2px; }

/* --- Rückruf-Slots ----------------------------------------------------------------- */
.slots { display: grid; gap: var(--sp-5); }
.slots__day { }
.slots__day-title {
  font-size: var(--fs-sm); font-weight: var(--fw-bold);
  color: var(--c-ink); margin-bottom: var(--sp-3);
}
.slots__row { display: grid; gap: var(--sp-2); grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.slot {
  padding: 12px 10px;
  border: 2px solid var(--c-line-strong);
  border-radius: var(--r-md);
  background: #fff;
  font: inherit; font-size: var(--fs-sm); font-weight: var(--fw-semi);
  color: var(--c-ink); cursor: pointer; text-align: center;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.slot:hover { border-color: var(--c-brand); }
.slot.is-selected { border-color: var(--c-brand); background: var(--c-brand); color: #fff; }

/* --- Zusammenfassung ---------------------------------------------------------------- */
.summary {
  background: #fff; border: 1px solid var(--c-line);
  border-radius: var(--r-lg); padding: var(--sp-5);
  margin-bottom: var(--sp-6);
}
.summary dl { margin: 0; display: grid; gap: var(--sp-3); }
.summary__row {
  display: flex; justify-content: space-between; gap: var(--sp-4);
  padding-bottom: var(--sp-3); border-bottom: 1px solid var(--c-line);
  font-size: var(--fs-sm);
}
.summary__row:last-child { border-bottom: 0; padding-bottom: 0; }
.summary dt { color: var(--c-text-muted); }
.summary dd { margin: 0; font-weight: var(--fw-semi); text-align: right; }

/* --- Ergebnis / Danke ----------------------------------------------------------------- */
.result { text-align: center; padding-block: var(--sp-6); }
.result__icon {
  width: 84px; height: 84px; margin: 0 auto var(--sp-5);
  border-radius: 50%; background: var(--c-success-tint);
  display: grid; place-items: center;
}
.result__icon svg { width: 42px; height: 42px; color: var(--c-success); }
.result__title { font-size: var(--fs-2xl); margin-bottom: var(--sp-3); }
.result__text  { color: var(--c-ink-3); max-width: 52ch; margin-inline: auto; }
.result__next {
  margin-top: var(--sp-7); text-align: left;
  background: #fff; border: 1px solid var(--c-line);
  border-radius: var(--r-lg); padding: var(--sp-5);
}
.result__next h3 { font-size: var(--fs-md); }
.result__next ol { margin: 0; padding-left: 1.2em; color: var(--c-ink-3); font-size: var(--fs-sm); }

/* Tippgeber-Teaser auf der Danke-Seite.
   Bewusst ruhiger gehalten als der Kasten darüber: Der Weg zur Beratung ist
   die Hauptsache, die Empfehlung ein Angebot am Rand. Deshalb getönte Fläche
   statt weisser Karte und ein Brand-Button statt des Amber-CTA. */
.result__tip {
  margin-top: var(--sp-5);
  text-align: left;
  background: var(--c-brand-tint);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
}
.result__tip h3 {
  font-size: var(--fs-md);
  margin-bottom: var(--sp-2);
  color: var(--c-brand-dark);
}
.result__tip p {
  margin: 0 0 var(--sp-4);
  font-size: var(--fs-sm);
  color: var(--c-ink-3);
  max-width: 56ch;
}

/* --- Spinner ---------------------------------------------------------------------------- */
.spinner {
  width: 18px; height: 18px;
  border: 2.5px solid rgba(16,32,46,.25);
  border-top-color: var(--c-ink);
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.btn .spinner { margin-right: 2px; }

.funnel__trust {
  margin-top: var(--sp-7);
  display: flex; flex-wrap: wrap; gap: var(--sp-5);
  justify-content: center;
  font-size: var(--fs-xs); color: var(--c-text-muted);
}
.funnel__trust span { display: flex; align-items: center; gap: 6px; }
.funnel__trust svg { width: 14px; height: 14px; color: var(--c-success); }

/* Im schmalen Hero-Starter immer einspaltig — sonst brechen die Labels. */
.starter .opts--2,
.starter .opts--3 { grid-template-columns: minmax(0, 1fr); }
