/* Anfrage-Strecke: eine Frage pro Schritt */
body.funnel { background: #fff; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.f-top { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.82); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); }
.f-top .wrap-wide { height: 84px; padding-bottom: 18px; box-sizing: border-box; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.f-top .logo { color: var(--ink); }
.f-top .logo-img { height: 43px; }
.f-top-r { display: flex; align-items: center; gap: 18px; font-size: 13px; color: var(--ink-2); }
.f-top-r .lock { display: inline-flex; align-items: center; gap: 6px; }
.f-top-r .lock svg { width: 14px; height: 14px; color: var(--ok); }
.f-close { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: #f0f0f3; color: var(--ink-2); text-decoration: none !important; font-size: 18px; line-height: 1; }
.f-close:hover { background: #e6e6ea; color: var(--ink); }
.f-prog { position: relative; height: 3px; background: #f0f0f3; }
/* Blaue Linie, darauf unter dem Logo die Restzeit als blaue Pille */
.f-prog i { display: block; height: 100%; width: 0; background: var(--blue); border-radius: 0 3px 3px 0; transition: width .6s var(--ease-out); }
.f-pill { position: absolute; left: calc((100% - min(var(--wrap-wide), 100% - 44px)) / 2); top: 50%; transform: translateY(-50%); display: inline-flex; align-items: center; height: 36px; padding: 0 18px; border-radius: 980px; background: var(--blue); color: #fff; font-size: 14.5px; font-weight: 500; font-style: normal; letter-spacing: -.01em; white-space: nowrap; }
.f-pill:empty { display: none; }
@media (max-width: 600px) { .f-top .wrap-wide { height: 72px; padding-bottom: 16px; } .f-top .logo-img { height: 38px; } .f-pill { height: 32px; padding: 0 15px; font-size: 13.5px; } }

.f-main { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; width: min(1120px, 100% - 44px); margin: 0 auto; padding: clamp(36px, 7vh, 80px) 0 60px; }
.f-stage { position: relative; max-width: 660px; width: 100%; justify-self: center; }
.f-meta { display: flex; align-items: center; justify-content: space-between; min-height: 32px; margin-bottom: 18px; }
.f-back { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; padding: 6px 0; color: var(--link); font-size: 15px; cursor: pointer; visibility: hidden; }
.f-back.show { visibility: visible; }
.f-back::before { content: "‹"; font-size: 22px; line-height: 1; transform: translateY(-1px); }

.f-step { animation: fIn .55s var(--ease-out) both; }
body { overflow-x: clip; } /* Einflug von rechts darf auf dem iPhone kein seitliches Scrollen auslösen */
.f-step.back { animation-name: fInBack; }
@keyframes fIn { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
@keyframes fInBack { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: none; } }
.f-q { font-size: clamp(30px, 4.4vw, 44px); line-height: 1.1; font-weight: 700; letter-spacing: -.03em; margin: 0; }
.f-sub { margin: 12px 0 0; font-size: 17px; color: var(--ink-2); }
.f-body { margin-top: 30px; }

.opts { display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 1fr; gap: 12px; } /* alle Kacheln gleich hoch, auch wenn ein Text umbricht */
.opts.c3 { grid-template-columns: repeat(3, 1fr); }
.opts.list { grid-template-columns: 1fr; }
.opt {
  position: relative;
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
  min-height: 116px; padding: 18px 18px 16px;
  border: 0; border-radius: 18px; background: #f5f5f7;
  box-shadow: inset 0 0 0 1.5px transparent;
  text-align: left; cursor: pointer;
  transition: box-shadow .2s var(--ease), background .2s var(--ease), transform .2s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.opt:hover { background: #efeff2; }
.opt:active { transform: scale(.98); }
/* Gewählt: blaue Fläche, Icon und Text weiß */
.opt[aria-pressed="true"], .opt[aria-pressed="true"]:hover { background: var(--blue); color: #fff; box-shadow: none; }
.opt[aria-pressed="true"] b, .opt[aria-pressed="true"] small { color: #fff; }
.opt[aria-pressed="true"] small { opacity: .85; }
.opt[aria-pressed="true"] .key { color: #fff; border-color: rgba(255,255,255,.5); }
.opt-ico { width: 44px; height: 44px; color: var(--ink); }
.opt[aria-pressed="true"] .opt-ico { color: #fff; }
.opt b { font-size: 17px; font-weight: 600; letter-spacing: -.015em; line-height: 1.25; }
.opt small { display: block; margin-top: 2px; font-size: 13px; font-weight: 400; color: var(--ink-2); }
.opt .key { position: absolute; right: 14px; top: 12px; font-size: 11px; color: var(--ink-3); border: 1px solid var(--line); border-radius: 5px; padding: 0 5px; line-height: 17px; }
.opts.list .opt { flex-direction: row; align-items: center; min-height: 68px; padding: 14px 18px; }
.opts.list .opt-ico { width: 32px; height: 32px; flex: none; }
.opt .tick { position: absolute; right: 14px; top: 14px; width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line); display: grid; place-items: center; transition: background .2s, box-shadow .2s; }
.opt .tick svg { width: 13px; height: 13px; color: #fff; opacity: 0; }
.opt[aria-pressed="true"] .tick { background: #fff; box-shadow: none; }
.opt[aria-pressed="true"] .tick svg { opacity: 1; color: var(--blue); }
.opts.list .opt .tick { top: 50%; transform: translateY(-50%); }
@media (hover: none) { .opt .key { display: none; } }
@media (max-width: 560px) {
  .opts, .opts.c3 { grid-template-columns: 1fr 1fr; gap: 10px; }
  .opt { min-height: 104px; padding: 14px; }
  .opt-ico { width: 36px; height: 36px; }
  .opt b { font-size: 16px; }
}

.f-actions { display: flex; align-items: center; gap: 16px; margin-top: 28px; }
.f-actions .btn { min-width: 180px; }
.f-actions .skip { border: 0; background: none; color: var(--link); font-size: 15px; cursor: pointer; padding: 8px 0; }
@media (max-width: 560px) { .f-actions .btn { flex: 1; } }

/* Felder */
.fld { position: relative; display: block; margin-bottom: 12px; }
.fld input {
  width: 100%; height: 62px; padding: 24px 18px 8px;
  border: 0; border-radius: 14px; background: #f5f5f7;
  box-shadow: inset 0 0 0 1.5px transparent;
  font: inherit; font-size: 17px; color: var(--ink); outline: 0;
  transition: box-shadow .2s, background .2s;
}
.fld input:focus { background: #fff; box-shadow: inset 0 0 0 2px var(--blue); }
.fld span { position: absolute; left: 18px; top: 21px; font-size: 17px; color: var(--ink-3); pointer-events: none; transition: transform .2s var(--ease), font-size .2s, top .2s; transform-origin: left top; }
.fld input:focus + span, .fld input:not(:placeholder-shown) + span { top: 10px; font-size: 12px; }
.fld.err input { box-shadow: inset 0 0 0 2px #e30000; background: #fff5f5; }
.fld-msg { min-height: 18px; margin: -6px 0 8px 4px; font-size: 13px; color: #d70015; }
.fld-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .fld-row { grid-template-columns: 1fr; gap: 0; } }
.fld-big input { height: 76px; font-size: 30px; font-weight: 600; letter-spacing: .08em; padding-top: 28px; }
.fld-big span { top: 26px; font-size: 19px; }
.fld-big input:focus + span, .fld-big input:not(:placeholder-shown) + span { top: 12px; font-size: 12px; }
.plz-ok { display: flex; align-items: center; gap: 10px; min-height: 26px; font-size: 15px; color: var(--ink-2); }
.plz-ok.ok { color: var(--ok); }
.plz-ok svg { width: 18px; height: 18px; }

.f-label { display: block; font-size: 14px; color: var(--ink-2); margin: 8px 0 8px 2px; }
.consent { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; padding: 16px; border-radius: 14px; background: #f5f5f7; font-size: 13px; line-height: 1.45; color: var(--ink-2); cursor: pointer; }
.consent input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--blue); cursor: pointer; }
.consent.err { box-shadow: inset 0 0 0 2px #e30000; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Dach: Form und Ausrichtung auf einem Screen, kompakte Kacheln */
.opts.mini { grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 18px; }
.opts.mini .opt { min-height: 0; padding: 14px 10px 12px; gap: 8px; align-items: center; text-align: center; }
.opts.mini .opt-ico { width: 32px; height: 32px; }
.opts.mini .opt b { font-size: 14px; }
@media (max-width: 760px) { .opts.mini { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1240px) { .opts.mini { grid-template-columns: repeat(5, 1fr); } }

/* Paket aus dem Konfigurator bestätigen */
.paket { padding: 26px 26px 22px; border-radius: 22px; background: #f5f5f7; }
.paket-kopf b { display: block; font-size: 44px; font-weight: 700; letter-spacing: -.035em; line-height: 1; font-variant-numeric: tabular-nums; }
.paket-kopf span { display: block; margin-top: 6px; font-size: 14px; color: var(--ink-2); }
.paket-liste { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 18px 0 0; padding: 0; }
.paket-liste li { padding: 7px 14px; border-radius: 980px; background: #fff; font-size: 15px; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.paket-preis { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.paket-preis span { display: block; font-size: 13px; color: var(--ink-2); }
.paket-preis b { font-size: 26px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }

/* Kleine Hilfetexte */
.f-hint { margin: -6px 0 6px 4px; font-size: 13px; line-height: 1.4; color: var(--ink-3); }
.f-tipp { margin: -4px 0 10px 4px; font-size: 14px; color: var(--ink-2); }
.f-tipp button { border: 0; background: none; padding: 0; font: inherit; font-weight: 600; color: var(--link); cursor: pointer; }
.consent + .consent { margin-top: 8px; }
.f-note { margin: 14px 2px 0; font-size: 12px; line-height: 1.45; color: var(--ink-3); }
.f-wa { margin: 16px 0 0; text-align: center; font-size: 14px; color: var(--ink-2); } /* WhatsApp für Fragen kurz vor dem Absenden */

/* Danke-Seite */
.danke-box { max-width: 460px; margin: 6px auto 14px; padding: 18px 20px; border-radius: 18px; background: #f5f5f7; text-align: left; }
.danke-box b { display: block; font-size: 16px; }
.danke-box span { display: block; margin: 4px 0 12px; font-size: 14px; color: var(--ink-2); }
.danke-box ul { margin: 8px 0 0; padding-left: 20px; font-size: 15px; color: var(--ink-2); }
.danke-box .seg { grid-auto-flow: row; grid-template-columns: 1fr 1fr; }

/* Größen-Schritt */
.size-card { padding: 26px 24px 22px; border-radius: 22px; background: #0b0b0c; color: #f5f5f7; overflow: hidden; position: relative; }
.size-card .stage { height: 210px; perspective: 1400px; }
.size-card .array { --rx: 0deg; --rz: 0deg; } /* orthogonale Draufsicht, nichts ragt über den Regler */
/* Werte links, Modulfeld rechts */
.size-main { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: center; gap: 20px; }
.size-top { position: relative; z-index: 2; }
.size-top b { display: block; font-size: 44px; font-weight: 700; letter-spacing: -.035em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.size-top strong { display: block; margin-top: 10px; font-size: 26px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.size-top span { display: block; margin-top: 6px; font-size: 14px; color: #a1a1a6; }
/* Module in der Draufsicht heller, Glanz nur ein Hauch */
.size-card .cell {
  background:
    repeating-linear-gradient(90deg, transparent 0 calc(16.66% - .5px), rgba(255,255,255,.12) calc(16.66% - .5px) 16.66%),
    repeating-linear-gradient(0deg, transparent 0 calc(10% - .5px), rgba(255,255,255,.08) calc(10% - .5px) 10%),
    linear-gradient(160deg, #3e5a96 0%, #273f73 55%, #1d3060 100%);
  box-shadow: inset 0 0 0 1px rgba(190,210,255,.32);
}
.size-card .cell::before { background: rgba(255,255,255,.2); }
.size-card .cell::after { background: linear-gradient(115deg, transparent 44%, rgba(255,255,255,.08) 50%, transparent 56%); }
@media (max-width: 600px) {
  .size-main { grid-template-columns: 1fr; gap: 6px; }
  .size-top b { font-size: 40px; }
  .size-top strong { margin-top: 6px; font-size: 22px; }
}
.size-card input[type="range"]::-webkit-slider-runnable-track { background: linear-gradient(90deg, #fff var(--p), #3a3a3c var(--p)); }
.size-card input[type="range"]::-moz-range-track { background: linear-gradient(90deg, #fff var(--p), #3a3a3c var(--p)); }
.size-card .range-scale { color: #86868b; }
.reco { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 8px 12px; border-radius: 10px; background: rgba(255,255,255,.1); color: #f5f5f7; font-size: 13px; border: 0; cursor: pointer; }
.unsure { display: flex; align-items: center; gap: 12px; margin-top: 22px; font-size: 19px; font-weight: 600; letter-spacing: -.015em; color: var(--ink); cursor: pointer; } /* gleiche Schrift wie „Dein Wunschpaket“ */
.unsure input { flex: none; width: 24px; height: 24px; margin: 0; accent-color: var(--blue); }

/* Seitenleiste */
.f-side { position: sticky; top: 90px; align-self: start; }
.f-sum { padding: 24px 22px; border-radius: 22px; background: #f5f5f7; }
.f-sum h2 { margin: 0 0 14px; font-size: 19px; letter-spacing: -.015em; }
.f-sum dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 9px 14px; font-size: 14px; }
.f-sum dt { color: var(--ink-2); }
.f-sum dd { margin: 0; text-align: right; font-weight: 500; }
.f-sum dd.empty { color: var(--ink-3); font-weight: 400; }
.f-sum dd.flash { animation: flash 1s var(--ease); }
@keyframes flash { 0% { color: var(--blue); } 100% { color: inherit; } }
.f-sum .pr { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.f-sum .pr span { display: block; font-size: 13px; color: var(--ink-2); }
.f-sum .pr b { display: block; font-size: 26px; font-weight: 700; letter-spacing: -.03em; margin-top: 2px; font-variant-numeric: tabular-nums; }
.f-sum .pr small { font-size: 11px; color: var(--ink-3); }
.f-trust { list-style: none; margin: 16px 0 0; padding: 0 6px; display: grid; gap: 10px; font-size: 14px; color: var(--ink-2); }
.f-trust li { display: flex; gap: 10px; align-items: center; }
.f-trust svg { width: 18px; height: 18px; color: var(--ok); flex: none; }
/* Ruhige Vertrauens-Karte: echte Anlage, ohne Bewegung und ohne Link */
.f-praxis { display: flex; align-items: center; gap: 14px; margin: 20px 0 0; padding: 10px; border-radius: 18px; background: #f5f5f7; }
.f-praxis picture { flex: none; }
.f-praxis img { display: block; width: 104px; height: 72px; border-radius: 11px; object-fit: cover; object-position: 50% 35%; }
.f-praxis figcaption { padding: 0 6px 0 0; }
.f-praxis b { display: block; font-size: 15px; letter-spacing: -.01em; }
.f-praxis span { display: block; margin-top: 2px; font-size: 13px; color: var(--ink-2); }
@media (max-width: 960px) {
  .f-main { grid-template-columns: 1fr; gap: 0; padding-top: 28px; }
  .f-side { display: none; }
}
/* Referenz-Spalte (echte Anlage) neben dem Wunschpaket */
.f-ref { display: none; }
.f-ref-kopf { margin: 0 0 14px; }
.f-ref-kopf span { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.f-ref-kopf b { display: block; font-size: 19px; letter-spacing: -.015em; }
.f-ref figure { margin: 0 0 11px; }
.f-ref img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 8.4; object-fit: cover; border-radius: 16px; background: #f5f5f7; }
.f-ref figure:nth-of-type(1) img { object-position: 50% 35%; }
.f-ref figcaption { margin-top: 8px; }
.f-ref figcaption b { display: block; font-size: 15px; letter-spacing: -.01em; }
.f-ref figcaption span { display: block; font-size: 13px; color: var(--ink-2); }
.f-ref-frage { display: inline-flex; margin-top: 3px; align-items: center; min-height: 34px; padding: 0 16px; border-radius: 980px; background: #ececf0; color: var(--ink); font-size: 14px; font-weight: 500; text-decoration: none !important; transition: background .2s; }
.f-ref-frage:hover { background: #e2e2e7; }
@media (min-width: 1240px) {
  .f-main { grid-template-columns: minmax(0, 1fr) 320px 290px; gap: 40px; width: min(1320px, 100% - 64px); }
  .f-stage { max-width: none; justify-self: stretch; } /* füllt die Spalte: gleiche Abstände zu Wunschpaket und Referenz */
  .opts.c3 { grid-template-columns: repeat(2, 1fr); } /* schmalere Frage-Spalte: Kacheln zweispaltig */
  .f-ref { display: block; align-self: start; }
  /* Kacheln, Wunschpaket und erstes Foto oben auf einer Linie (--oben/--kopf setzt funnel.js je Schritt) */
  .f-side { margin-top: var(--oben, 0px); }
  .f-ref { margin-top: max(0px, calc(var(--oben, 0px) - var(--kopf, 0px))); }
  .f-main.bereit .f-side, .f-main.bereit .f-ref { transition: margin-top .35s var(--ease-out); }
  .f-praxis { display: none; } /* ersetzt durch die Referenz-Spalte */
}

/* Fertig */
.done { text-align: center; padding-top: 10px; }
.done-badge { position: relative; width: 120px; height: 120px; margin: 0 auto 30px; }
.done-badge::before { content: none; }
.done-badge div { position: relative; width: 100%; height: 100%; border-radius: 50%; background: var(--ok); display: grid; place-items: center; animation: pop .7s var(--ease-out) both; }
.done-badge svg { width: 56px; height: 56px; color: #fff; }
.done-badge svg path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .5s .45s var(--ease-out) forwards; }
@keyframes pop { from { transform: scale(.3); opacity: 0; } 60% { transform: scale(1.08); opacity: 1; } to { transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.done .f-q { max-width: 560px; margin: 0 auto; }
.timeline { list-style: none; margin: 40px auto 0; padding: 0; max-width: 460px; text-align: left; }
.timeline li { position: relative; padding: 0 0 26px 46px; }
.timeline li::before { content: attr(data-n); position: absolute; left: 0; top: -2px; width: 30px; height: 30px; border-radius: 50%; background: #f5f5f7; display: grid; place-items: center; font-size: 14px; font-weight: 600; }
.timeline li:first-child::before { background: var(--ok); color: #fff; content: "✓"; }
.timeline li::after { content: ""; position: absolute; left: 14.5px; top: 32px; bottom: 2px; width: 1px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline b { display: block; font-size: 17px; }
.timeline span { color: var(--ink-2); font-size: 15px; }
.f-err { margin-top: 16px; padding: 14px 16px; border-radius: 14px; background: #fff5f5; color: #a00; font-size: 14px; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn .spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.f-foot { padding: 20px 0 30px; font-size: 12px; color: var(--ink-3); text-align: center; }
.f-foot a { color: var(--ink-2); margin: 0 8px; }
