﻿/* BU-Lückencheck – Richtung „The sentence is the layout“, Palette „Frost and slate“, Schrift Switzer */
/* Switzer (Fontshare, ITF Free Font License), lokal gehostet */
@font-face { font-family: "Switzer"; src: url("fonts/switzer-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Switzer"; src: url("fonts/switzer-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Switzer"; src: url("fonts/switzer-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
:root {
  --bg: #f7f9fa;
  --surface: #ecf0f2;
  --surface-2: #dde4e8;
  --ink: #1f3038;
  --ink-2: #2b414b;
  --muted: #5d6b72;
  --accent: #0d7480;
  --accent-ink: #ffffff;
  --alarm: #b3412e;
  --alarm-soft: #f1dcd7;
  --ok: #0d7480;

  --font: "Switzer", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --step-display: clamp(3.1rem, 0.8rem + 8vw, 8.75rem);

  --margin: clamp(1rem, 2.6vw, 2.5rem);
  --maxw: 1240px;
  --gutter: clamp(1rem, 2vw, 2rem);
  --section: clamp(6rem, 12vw, 12rem);
  --radius: 0px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: var(--step-body); line-height: 1.5; letter-spacing: -0.005em; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, figure, ul, ol, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.035em; line-height: 0.98; text-wrap: balance; }
p { max-width: 62ch; text-wrap: pretty; }
b, strong { font-weight: 600; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--accent-ink); }
[hidden] { display: none !important; }
.wrap { width: min(100% - 2 * var(--margin), var(--maxw)); margin-inline: auto; }
.small { font-size: var(--step-small); line-height: 1.45; }
.muted { color: var(--muted); }
.ink { color: var(--ink); }
.nums { font-variant-numeric: tabular-nums lining-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.link-plain { text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 0.07em; }
.head-xl { font-size: clamp(2.6rem, 1rem + 5.4vw, 6.25rem); }
.head-l { font-size: var(--step-head); }

/* ---------- buttons ---------- */
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: 0 1.4rem; background: var(--accent); color: var(--accent-ink); border-radius: var(--radius); text-decoration: none; font-weight: 500; white-space: nowrap; transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease; }
.button:active { transform: scale(0.97); }
.button-big { min-height: 3.75rem; padding: 0 2rem; font-size: var(--step-body); }
.button-light { background: var(--bg); color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .button:hover { background: #0a5f69; }
  .button-light:hover { background: var(--surface); }
}

/* ---------- views ---------- */
.view { min-height: 100svh; }

/* ---------- hero ---------- */
.hero { background: var(--ink); color: var(--bg); min-height: 100svh; display: grid; grid-template-rows: auto 1fr auto; padding-bottom: 1.5rem; }
.hero-bar { display: flex; justify-content: space-between; align-items: center; padding-top: 1.25rem; }
.wordmark { font-weight: 600; font-size: 1rem; letter-spacing: -0.01em; text-decoration: none; }
.hero-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 2.5rem; align-items: center; padding-block: clamp(2.5rem, 7vh, 5rem); }
.hero-copy { grid-column: 1 / span 7; display: grid; gap: 1.5rem; align-content: center; }
.hero-pre { font-size: var(--step-lead); line-height: 1.3; color: #9fd3d9; font-weight: 500; max-width: 32ch; }
.hero-title { font-size: clamp(2.6rem, 0.6rem + 5.4vw, 6.25rem); line-height: 0.98; letter-spacing: -0.045em; }
.lines .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.lines [data-line] { display: block; }
.hero-sub { font-size: var(--step-lead); line-height: 1.35; color: #d6dfe3; max-width: 36ch; }

.trust { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem 1.5rem; margin-top: 0.5rem; max-width: 40rem; }
.trust li { display: flex; gap: 0.6rem; align-items: center; font-size: 0.9375rem; line-height: 1.3; color: #d6dfe3; }
.trust svg, .quiz-trust svg { width: 1.25rem; height: 1.25rem; flex: none; fill: #9fd3d9; }

.calc { grid-column: 8 / -1; background: var(--bg); color: var(--ink); padding: clamp(1.25rem, 2.4vw, 2rem); display: grid; gap: 1rem; }
.calc-title { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; }
.calc-row { display: grid; grid-template-columns: 1fr auto; align-items: baseline; row-gap: 0.25rem; }
.calc-row label, .calc-label { font-size: 0.9375rem; color: var(--muted); }
.calc-row output { font-weight: 600; font-size: 1.375rem; letter-spacing: -0.02em; }
.calc-row input[type=range], .calc-row .switch { grid-column: 1 / -1; color: var(--ink); }
.calc .switch { background: var(--surface); margin-top: 0.35rem; }
.calc .switch button { color: var(--muted); }
.calc .switch button[aria-checked=true] { background: var(--ink); color: var(--bg); }
.calc-live { background: var(--alarm-soft); padding: 0.9rem 1rem; font-size: 1.0625rem; line-height: 1.4; }
.calc-live strong { color: #fff; background: var(--alarm); padding: 0 0.25em; white-space: nowrap; font-size: 1.15em; }
.calc-progress { height: 6px; background: var(--surface-2); }
.calc-progress span { display: block; height: 100%; width: 11.1%; background: var(--accent); transition: width 600ms var(--ease-out); }
.calc-step { margin-top: -0.4rem; }
.calc-cta { width: 100%; }
.calc-micro { text-align: center; color: var(--muted); margin-top: -0.3rem; }
@media (hover: hover) and (pointer: fine) { .calc-cta:hover { background: #0a5f69; } }

.hero-author { display: flex; align-items: center; gap: 0.75rem; color: #d6dfe3; }
.portrait-xs { width: 2.5rem; height: 2.5rem; background: var(--ink-2); flex: none; float: none; margin: 0; display: block; }

.switch { display: grid; grid-template-columns: 1fr 1fr; background: var(--ink); padding: 3px; gap: 3px; }
.switch button { min-height: 2.75rem; font-size: 0.9375rem; color: #b9c6cc; transition: background-color var(--t-hover) ease, color var(--t-hover) ease; }
.switch button[aria-checked=true] { background: var(--bg); color: var(--ink); font-weight: 500; }

input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 2rem; background: transparent; cursor: pointer; touch-action: pan-y; }
input[type=range]::-webkit-slider-runnable-track { height: 6px; background: var(--surface-2); }
input[type=range]::-moz-range-track { height: 6px; background: var(--surface-2); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -10px; background: var(--accent); border: 3px solid var(--bg); border-radius: 50%; transition: transform var(--t-press) var(--ease-out); }
input[type=range]::-moz-range-thumb { width: 22px; height: 22px; background: var(--accent); border: 3px solid var(--bg); border-radius: 50%; }
input[type=range]:active::-webkit-slider-thumb { transform: scale(1.15); }
.r-field-ink input[type=range]::-webkit-slider-runnable-track { background: #4a6470; }
.r-field-ink input[type=range]::-moz-range-track { background: #4a6470; }

.sticky-cta { position: fixed; inset: auto 0 0 0; z-index: 20; padding: 0.75rem var(--margin) calc(0.75rem + env(safe-area-inset-bottom)); background: var(--ink); transform: translateY(110%); transition: transform 300ms var(--ease-out); }
.sticky-cta.is-on { transform: none; }
.sticky-cta .button { width: 100%; }
@media (min-width: 761px) { .sticky-cta { display: none !important; } }

.quiz-trust { display: flex; gap: 0.5rem; align-items: center; color: var(--muted); margin-top: 0.9rem; }
.quiz-trust svg { fill: var(--accent); width: 1rem; height: 1rem; }

@media (max-width: 1000px) {
  .hero-copy { display: contents; }
  .hero-copy > *, .calc { grid-column: 1 / -1; }
  .hero-pre { order: 1; } .hero-title { order: 2; } .hero-sub { order: 3; } .calc { order: 4; } .trust { order: 5; }
  .calc { max-width: 560px; }
}
@media (max-width: 760px) {
  .hero-grid { padding-block: 1.5rem 2rem; row-gap: 1.75rem; }
  .hero-pre { font-size: 1.0625rem; }
  .hero-title { font-size: 10.6vw; }
  .hero-sub { font-size: 1.125rem; }
  .trust { grid-template-columns: 1fr; gap: 0.6rem; }
  .hero-author { padding-bottom: 1rem; }
  body[data-view=landing] { padding-bottom: 5.25rem; }
}

/* ---------- sections ---------- */
.section { padding-block: calc(var(--section) / 2); }
main > .section:first-child { padding-top: var(--section); }

.how-bar { display: flex; gap: 6px; margin-top: 4rem; }
.how-bar li { flex: var(--grow) 1 0; min-width: 12%; display: grid; grid-template-rows: auto auto; }
.how-dur { display: block; padding: 20px; height: 22vh; min-height: 9rem; font-size: clamp(1.25rem, 2vw, 1.875rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.how-bar li:nth-child(1) .how-dur { background: var(--surface-2); color: var(--ink); }
.how-bar li:nth-child(2) .how-dur { background: var(--accent); color: var(--accent-ink); }
.how-bar li:nth-child(3) .how-dur { background: var(--ink); color: var(--bg); }
.how-txt { display: block; padding-top: 1rem; max-width: 26ch; font-size: 1.0625rem; }
@media (max-width: 760px) {
  .how-bar { flex-direction: column; }
  .how-bar li:nth-child(1) { background: var(--surface-2); color: var(--ink); }
  .how-bar li:nth-child(2) { background: var(--accent); color: var(--accent-ink); }
  .how-bar li:nth-child(3) { background: var(--ink); color: var(--bg); }
  .how-dur { height: auto; min-height: 0; padding: 20px 20px 0; font-size: 1.375rem; background: none !important; }
  .how-txt { padding: 0.5rem 20px 20px; }
  .how-bar li:nth-child(3) .how-txt { min-height: 8rem; }
}

.stats { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 3rem; align-items: center; }
.stats-copy { grid-column: 1 / span 6; }
.stats-text { font-size: clamp(1.375rem, 1rem + 1vw, 1.875rem); line-height: 1.2; letter-spacing: -0.02em; color: var(--muted); max-width: 26ch; }
.stats-text b { color: var(--ink); font-weight: 600; }
.stats-src { margin-top: 2rem; }
.stats-h { grid-column: 1 / -1; }
.why-chart { grid-column: 7 / -1; margin: 0; background: var(--surface); padding: clamp(1.25rem, 3vw, 2.5rem); }
.why-cap { font-weight: 600; font-size: 1.125rem; letter-spacing: -0.01em; margin-bottom: 1.5rem; max-width: 34ch; }
.why-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
.why-list li { display: grid; gap: 0.35rem; }
.why-row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.why-name { font-weight: 500; }
.why-val { font-weight: 600; font-size: 1.25rem; letter-spacing: -0.02em; }
.why-bar { display: block; height: 14px; background: var(--surface-2); }
.why-bar i { display: block; height: 100%; width: calc(var(--w) * 2.5%); background: var(--ink); }
.why-list li.top .why-bar i { background: var(--alarm); }
.why-list li.top .why-val { color: var(--alarm); }
.why-desc { color: var(--muted); }
@media (max-width: 860px) { .stats-copy, .why-chart { grid-column: 1 / -1; } }
@media (prefers-reduced-motion: no-preference) {
  .js .why-bar i { width: 0; transition: width 1200ms var(--ease-out); transition-delay: calc(var(--n, 0) * 140ms); }
  .js .why-chart.is-in .why-bar i { width: calc(var(--w) * 2.5%); }
}

.about { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); padding-block: 140px; }
.band { background: var(--surface); }
.about-facts { grid-column: 1 / span 2; display: grid; gap: 1.5rem; align-content: start; }
.about-body { grid-column: 3 / -1; }
.about-p { font-size: clamp(1.25rem, 0.9rem + 0.9vw, 1.75rem); line-height: 1.2; letter-spacing: -0.02em; max-width: 40ch; }
.about-p + .about-p { margin-top: 1.2em; }
.portrait { float: left; width: 3.6em; height: 3.6em; margin: 0.12em 0.5em 0 0; background: var(--surface-2); color: var(--muted); font-size: 1em; display: grid; place-items: center; text-align: center; }
.portrait { font-size: inherit; }
.about .portrait { font-size: clamp(1.25rem, 0.9rem + 0.9vw, 1.75rem); }
.portrait-sm { width: 4.5rem; height: 4.5rem; float: none; margin: 0; font-size: 0.75rem; }
@media (max-width: 760px) {
  .about { display: flex; flex-direction: column-reverse; gap: 2rem; padding-block: 5rem; }
  .about-facts { grid-template-columns: repeat(3, 1fr); gap: 0.75rem; font-size: 0.8125rem; }
  .about .portrait { width: 4.6em; height: 4.6em; font-size: 22px; }
  .about-p { font-size: 22px; line-height: 1.25; }
}

.faq-list { margin: 80px 24px 0 33.33%; display: grid; gap: 0; }
.faq-list details { padding: 18px 24px; margin-inline: -24px; transition: background-color var(--t-hover) ease; }
.faq-list details[open] { background: var(--surface); }
.faq-list summary { font-size: clamp(1.1875rem, 1rem + 0.5vw, 1.5rem); cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; width: 10px; height: 10px; flex: none; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); transition: transform var(--t-hover) var(--ease-out); }
.faq-list details[open] summary::after { transform: rotate(-135deg); }
.faq-list details p { margin-top: 0.9rem; max-width: 48ch; font-size: 1.0625rem; }
@media (max-width: 760px) { .faq-list { margin: 3rem 0 0; } .faq-list details { margin-inline: calc(var(--margin) * -1); padding-inline: var(--margin); } }

.cta { padding-bottom: var(--section); }
.cta-line { font-size: clamp(2.4rem, 0.8rem + 5.6vw, 6.25rem); line-height: 1.05; letter-spacing: -0.04em; max-width: 13em; }
.cta-field { width: 2.6em; height: 1.05em; padding: 0 0.15em; vertical-align: -0.12em; background: var(--surface); border: 0; border-radius: var(--radius); font: inherit; letter-spacing: inherit; color: var(--ink); -moz-appearance: textfield; }
.cta-field::-webkit-inner-spin-button { -webkit-appearance: none; }
.cta-field::placeholder { color: #a5b0b6; }
.cta-btn { display: inline-block; height: 1.05em; padding: 0 0.25em; vertical-align: -0.12em; background: var(--accent); color: var(--accent-ink); font: inherit; letter-spacing: inherit; line-height: 1; transition: transform var(--t-press) var(--ease-out); }
.cta-btn:active { transform: scale(0.97); }
.cta-note { margin-top: 1.5rem; }

.footer { background: var(--accent); color: var(--accent-ink); min-height: 90svh; display: grid; grid-template-rows: auto 1fr auto; padding-block: 40px 28px; }
.footer-top { display: grid; grid-template-columns: 1fr 1fr auto; gap: var(--gutter); align-items: start; }
.footer-top p { max-width: 40ch; }
.footer-main { display: flex; align-items: flex-end; padding-block: 4rem 2rem; }
.footer-contact { font-size: clamp(2.5rem, 8vw, 7rem); font-weight: 600; letter-spacing: -0.045em; line-height: 0.95; text-decoration: none; }
.footer-meta { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
@media (max-width: 760px) { .footer-top { grid-template-columns: 1fr; } .footer-contact { font-size: 12vw; } .footer-meta { flex-direction: column; } }

/* ---------- quiz ---------- */
.quiz-bar { display: flex; align-items: center; gap: 1rem; padding-block: 1rem; position: sticky; top: 0; background: var(--bg); z-index: 5; }
.quiz-back { font-size: 0.9375rem; color: var(--muted); min-height: 2.75rem; padding-right: 0.5rem; text-decoration: underline; text-underline-offset: 0.2em; }
.quiz-progress { flex: 1; height: 6px; background: var(--surface-2); }
.quiz-progress span { display: block; height: 100%; width: 0; background: var(--accent); transition: width 500ms var(--ease-out); }
.quiz-stage { max-width: 760px; margin-inline: auto; padding-block: clamp(2rem, 8vh, 5rem) 3rem; min-height: calc(100svh - 4.75rem); display: flex; flex-direction: column; }
.quiz-fact { min-height: 2.9em; color: var(--accent); max-width: 52ch; }
.q-title { font-size: clamp(2.1rem, 1rem + 3.6vw, 3.75rem); margin: 0.5rem 0 0.75rem; }
.q-hint { color: var(--muted); margin-bottom: 2rem; }
.q-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.q-cards.one { grid-template-columns: 1fr; }
.q-card { min-height: 4.5rem; padding: 1rem 1.1rem; background: var(--surface); text-align: left; display: grid; align-content: center; gap: 0.15rem; transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.q-card small { font-size: 0.875rem; color: var(--muted); }
.q-card:active { transform: scale(0.98); }
.q-card[aria-checked=true] { background: var(--ink); color: var(--bg); }
.q-card[aria-checked=true] small { color: #b9c6cc; }
@media (hover: hover) { .q-card:hover { background: var(--surface-2); } .q-card[aria-checked=true]:hover { background: var(--ink); } }
.q-slider { padding: 1.4rem 1.2rem 1.1rem; background: var(--surface); color: var(--ink); margin-bottom: 8px; }
.q-slider .q-row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.q-slider output { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem); font-weight: 600; letter-spacing: -0.03em; }
.q-slider input[type=range] { color: var(--ink); margin-top: 0.5rem; }
.q-sub { margin-top: 0.75rem; font-size: 0.9375rem; color: var(--muted); }
.quiz-actions { margin-top: auto; padding-top: 2rem; }
.quiz-actions .button { width: 100%; }
@media (min-width: 761px) { .quiz-actions .button { width: auto; } }
.q-anim { animation: q-in 420ms var(--ease-out); }
@keyframes q-in { from { opacity: 0; transform: translateX(24px); } }

/* ---------- analyse ---------- */
.analyse-stage { min-height: 100svh; display: grid; align-content: center; gap: 2.5rem; max-width: 900px; margin-inline: auto; }
.analyse-list { display: grid; gap: 0.9rem; font-size: var(--step-lead); }
.analyse-list li { color: #a5b0b6; transition: color 300ms ease; display: flex; gap: 0.75rem; align-items: center; }
.analyse-list li::before { content: ""; width: 0.7em; height: 0.7em; background: var(--surface-2); flex: none; transition: background-color 300ms ease; }
.analyse-list li.done { color: var(--ink); }
.analyse-list li.done::before { background: var(--accent); }

/* ---------- result ---------- */
.r-hero { padding-block: clamp(3rem, 10vh, 7rem) clamp(4rem, 10vh, 7rem); display: grid; gap: 1.5rem; justify-items: start; }
.r-intro { font-size: var(--step-lead); line-height: 1.3; max-width: 30ch; }
.r-number { font-size: clamp(4rem, 1rem + 12vw, 12rem); line-height: 0.9; letter-spacing: -0.05em; color: var(--alarm); }
.r-unit { display: block; font-size: 0.28em; letter-spacing: -0.03em; color: var(--ink); margin-top: 0.3em; }
.r-lifetime { font-size: var(--step-lead); line-height: 1.3; max-width: 36ch; }
.r-lifetime strong { background: var(--alarm-soft); padding: 0 0.2em; }

.r-sec { padding-block: calc(var(--section) / 2); }
.r-split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 2.5rem; align-items: center; }
.r-copy { grid-column: 1 / span 5; display: grid; gap: 1.25rem; align-content: start; }
.r-fig, .r-facts, .lead-form, .lead-done { grid-column: 7 / -1; }
@media (max-width: 860px) { .r-copy, .r-fig, .r-facts, .lead-form, .lead-done { grid-column: 1 / -1; } }
.r-field { background: var(--surface); padding-block: calc(var(--section) / 2); }
.r-field-ink { background: var(--ink); color: var(--bg); }
.r-field-ink .slider { background: var(--ink-2); color: var(--bg); }
.r-fig svg { width: 100%; height: auto; overflow: visible; }
.r-fig svg text { font-family: var(--font); }

.seg { display: inline-grid; grid-auto-flow: column; background: var(--surface); padding: 3px; gap: 3px; justify-self: start; }
.seg button { min-height: 2.75rem; padding: 0 0.9rem; font-size: 0.9375rem; color: var(--muted); }
.seg button[aria-checked=true] { background: var(--ink); color: var(--bg); font-weight: 500; }

.months { display: grid; grid-template-columns: repeat(12, 1fr); gap: 5px; }
.months span { aspect-ratio: 1; background: var(--accent); transform-origin: 50% 100%; }
.months span.out { background: var(--alarm); }
.months span.yr { position: relative; }
.r-fig figcaption { margin-top: 1rem; display: flex; gap: 1.5rem; flex-wrap: wrap; }
.legend { display: inline-flex; align-items: center; gap: 0.45rem; }
.legend::before { content: ""; width: 0.9em; height: 0.9em; background: var(--c); }

.people { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; max-width: 420px; }
.people span { aspect-ratio: 1 / 2.2; background: var(--surface-2); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 220'%3E%3Ccircle cx='50' cy='28' r='26'/%3E%3Cpath d='M12 220V100c0-22 16-38 38-38s38 16 38 38v120z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 220'%3E%3Ccircle cx='50' cy='28' r='26'/%3E%3Cpath d='M12 220V100c0-22 16-38 38-38s38 16 38 38v120z'/%3E%3C/svg%3E") center / contain no-repeat; }
.people span.hit { background: var(--alarm); }
.people-cap { margin: 0.75rem 0 2.5rem; font-weight: 500; }
.causes { display: grid; gap: 0.7rem; }
.cause { display: grid; grid-template-columns: 11rem 1fr 3rem; gap: 0.75rem; align-items: center; font-size: 0.9375rem; }
.cause-bar { height: 14px; background: var(--surface-2); }
.cause-bar i { display: block; height: 100%; background: var(--ink); width: 0; transition: width 900ms var(--ease-out); }
.cause:first-child .cause-bar i { background: var(--alarm); }
.cause span:last-child { text-align: right; }
@media (max-width: 520px) { .cause { grid-template-columns: 8.5rem 1fr 2.5rem; font-size: 0.875rem; } }

.slider { padding: 1.2rem; display: grid; grid-template-columns: 1fr auto; align-items: baseline; row-gap: 0.4rem; }
.slider label { font-size: 0.9375rem; }
.slider output { font-size: 2rem; font-weight: 600; letter-spacing: -0.03em; }
.slider input { grid-column: 1 / -1; }

.r-facts { display: grid; gap: 8px; }
.r-facts li { background: var(--surface); padding: 1.25rem 1.4rem; display: grid; gap: 0.2rem; }
.r-facts b { font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.4rem); letter-spacing: -0.03em; line-height: 1.05; }

.r-lead-sec { background: var(--surface); }
.advisor { display: flex; gap: 1rem; align-items: center; }
.lead-form { display: grid; gap: 1rem; background: var(--bg); padding: clamp(1.25rem, 3vw, 2.25rem); }
.lead-done { background: var(--bg); padding: clamp(1.25rem, 3vw, 2.25rem); display: grid; gap: 1rem; }
.lf-row { display: grid; gap: 0.35rem; border: 0; padding: 0; }
.lf-row > label, .lf-row legend { font-size: 0.9375rem; font-weight: 500; }
.field { width: 100%; min-height: 3.25rem; padding: 0.7rem 0.9rem; background: var(--surface); border: 0; border-radius: var(--radius); font-size: max(1rem, var(--step-body)); }
.field:focus { outline: 2px solid var(--accent); outline-offset: 0; }
.field[aria-invalid=true] { outline: 2px solid var(--alarm); }
.lf-time { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.lf-time legend { width: 100%; margin-bottom: 0.35rem; }
.lf-time label { display: inline-flex; gap: 0.4rem; align-items: center; min-height: 2.75rem; }
.lf-check { display: grid; grid-template-columns: auto 1fr; gap: 0.75rem; font-size: 0.9375rem; line-height: 1.45; }
.lf-check input, .lf-time input { width: 1.25rem; height: 1.25rem; accent-color: var(--accent); margin: 0.1rem 0 0; }
.lf-error { color: var(--alarm); min-height: 1.2em; }
.lead-form .button { width: 100%; }

.r-foot { padding-block: 3rem; display: grid; gap: 1rem; }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .lines [data-line] { transform: translateY(105%); animation: line-up 900ms var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 110ms + 150ms); }
  .js .calc { animation: chip-in 800ms var(--ease-out) 450ms backwards; }
  .js .hero-pre, .js .hero-sub, .js .trust { animation: chip-in 700ms var(--ease-out) backwards; }
  .js .hero-pre { animation-delay: 80ms; } .js .hero-sub { animation-delay: 380ms; } .js .trust { animation-delay: 560ms; }
  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js .how-bar li { clip-path: inset(0 100% 0 0); transition: clip-path 1100ms var(--ease-in-out); transition-delay: calc(var(--n, 0) * 140ms); }
  .js .how-bar.is-in li { clip-path: inset(0); }
  .js .months span { animation: pop 380ms var(--ease-out) backwards; animation-delay: calc(var(--n, 0) * 18ms); }
}
@keyframes line-up { to { transform: none; } }
@keyframes chip-in { from { opacity: 0; translate: 0 18px; } }
@keyframes pop { from { opacity: 0; transform: scale(0.3); } }
@media (max-width: 760px) and (prefers-reduced-motion: no-preference) { .js .how-bar li { clip-path: inset(0 0 100% 0); } }
.credits { padding-top: 1.5rem; }
.credits a { color: inherit; }

/* ---------- Bewertungen ---------- */
.stars { display: inline-flex; gap: 2px; vertical-align: -0.15em; }
.stars svg { width: 1.05em; height: 1.05em; fill: #e3a008; }
.calc-rating { display: flex; gap: 0.5rem; align-items: center; justify-content: center; flex-wrap: wrap; text-align: center; margin-top: -0.2rem; }
.reviews { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 2.5rem; align-items: start; }
.rev-score { grid-column: 1 / span 5; display: grid; gap: 1.25rem; align-content: start; }
.rev-stars { display: flex; gap: 0.75rem; align-items: center; font-size: var(--step-lead); }
.rev-stars .stars svg { width: 1.4em; height: 1.4em; }
.rev-list { grid-column: 7 / -1; display: grid; gap: 2rem; }
.rev-list li { display: grid; gap: 0.6rem; }
.rev-list blockquote { margin: 0; }
.rev-list blockquote p { font-size: clamp(1.25rem, 1rem + 0.8vw, 1.75rem); line-height: 1.25; letter-spacing: -0.02em; max-width: 30ch; }
.rev-list li:first-child blockquote p { font-size: clamp(1.375rem, 1rem + 1vw, 1.875rem); max-width: 34ch; }
.rev-note { grid-column: 1 / -1; max-width: 70ch; }
@media (max-width: 860px) { .rev-score, .rev-list { grid-column: 1 / -1; } }

.hero-title.is-long { font-size: clamp(2.1rem, 0.6rem + 3.4vw, 4.25rem); line-height: 1.02; }
@media (max-width: 760px) { .hero-title.is-long { font-size: 8.6vw; } }

/* Bewertungen auf der Ergebnisseite, neben dem Formular */
.rev-intro { margin-top: 0.5rem; }
.rev-list.rev-compact { grid-column: auto; gap: 1.1rem; }
.rev-compact li { padding: 1rem 1.1rem; background: var(--bg); }
.rev-compact blockquote p, .rev-compact li:first-child blockquote p { font-size: 1.125rem; line-height: 1.4; letter-spacing: -0.01em; max-width: 46ch; }
.rev-note.rev-note-compact { grid-column: auto; }

/* Was du erfährst */
.learn { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 2.5rem; align-items: start; }
.learn > h2 { grid-column: 1 / span 5; font-size: clamp(2rem, 1.3rem + 2vw, 3.25rem); }
.learn-list { grid-column: 6 / -1; list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; }
.learn-list li { display: grid; grid-template-columns: 2rem 1fr; gap: 1rem; align-items: start; font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem); line-height: 1.45; }
.learn-list svg { width: 2rem; height: 2rem; padding: 0.3rem; background: var(--accent); fill: var(--accent-ink); }
.learn-list span { max-width: 58ch; }
@media (max-width: 860px) { .learn > h2, .learn-list { grid-column: 1 / -1; max-width: none; } }

.hero-bar { gap: 1rem; }
@media (max-width: 400px) { .wordmark { font-size: 0.9375rem; } .hero-bar .button { padding: 0 1rem; } }

/* Über mich mit Foto */
.about { align-items: center; }
.about-photo { grid-column: 1 / span 4; margin: 0; }
.about-photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; background: #fff; }
.about-body { grid-column: 6 / -1; }
.about-facts { grid-column: auto; display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; margin-top: 2rem; }
img.portrait-xs { width: 2.75rem; height: 2.75rem; object-fit: cover; background: #fff; }
@media (max-width: 760px) {
  .about { flex-direction: column; align-items: stretch; }
  .about-photo { max-width: 300px; }
  .about-facts { display: flex; gap: 0.75rem 2rem; }
}

/* Zeitleiste auf der Ergebnisseite */
.tl { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; align-items: stretch; }
.tl-col { flex: 1 1 0; min-width: 0; display: grid; grid-template-rows: auto 240px auto auto; gap: 0.6rem; }
.tl-last { flex-grow: 1.7; }
.tl-when { font-weight: 600; font-size: 1rem; line-height: 1.25; min-height: 2.6em; }
.tl-when small, .tl-what small { display: block; font-weight: 400; color: var(--muted); font-size: 0.8125rem; margin-top: 0.15rem; }
.tl-bar { display: flex; flex-direction: column; justify-content: flex-end; background: var(--surface); }
.tl-gap { flex: 0 0 calc(var(--gap) * 100%); background: var(--alarm); }
.tl-inc { flex: 0 0 calc(var(--inc) * 100%); background: var(--ink); }
.tl-what { font-size: 0.9375rem; line-height: 1.3; }
.tl-amt { display: grid; gap: 0.1rem; }
.tl-amt b { font-size: 1.125rem; letter-spacing: -0.02em; }
.tl-amt em { font-style: normal; font-weight: 600; color: var(--alarm); }
.tl-amt em.tl-ok { color: var(--muted); font-weight: 400; }
#r-tl-cap { margin-top: 1rem; }
.months span.ok { background: #8fa2ab; }
@media (max-width: 600px) {
  .tl { flex-direction: column; gap: 1.25rem; }
  .tl-col { grid-template-columns: 1fr auto; grid-template-rows: auto auto auto; column-gap: 1rem; row-gap: 0.4rem; }
  .tl-when { grid-column: 1; min-height: 0; }
  .tl-amt { grid-column: 2; grid-row: 1 / span 2; text-align: right; }
  .tl-what { grid-column: 1; grid-row: 2; }
  .tl-bar { grid-column: 1 / -1; grid-row: 3; height: 18px; flex-direction: row; justify-content: flex-start; }
  .tl-inc { order: 1; } .tl-gap { order: 2; }
}
@media (prefers-reduced-motion: no-preference) {
  .js .tl-bar { clip-path: inset(100% 0 0 0); transition: clip-path 1000ms var(--ease-out); transition-delay: calc(var(--n, 0) * 160ms); }
  .js .tl.is-in .tl-bar { clip-path: inset(0); }
}
@media (max-width: 600px) and (prefers-reduced-motion: no-preference) {
  .js .tl-bar { clip-path: inset(0 100% 0 0); }
}

/* Pulsierender Start-Button (Rechner-Karte und mitlaufender Button am Handy) */
.calc-cta, .sticky-cta .button { position: relative; isolation: isolate; }
@media (prefers-reduced-motion: no-preference) {
  .calc-cta, .sticky-cta .button { animation: cta-pulse 2.4s ease-in-out infinite; }
  .calc-cta::after, .sticky-cta .button::after {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    border: 2px solid var(--accent); animation: cta-ring 2.4s ease-out infinite;
  }
  .calc-cta:hover, .calc-cta:focus-visible, .sticky-cta .button:hover { animation-play-state: paused; }
  .calc-cta:hover::after, .calc-cta:focus-visible::after { animation: none; opacity: 0; }
}
@keyframes cta-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.035); } }
@keyframes cta-ring { 0% { opacity: 0.8; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(1.06, 1.4); } }

/* Start-Button leicht abgerundet, Ring folgt der Rundung */
.calc-cta, .sticky-cta .button { border-radius: 12px; }
.calc-cta::after, .sticky-cta .button::after { border-radius: inherit; }

/* Einwilligungs-Fenster */
.consent { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: var(--margin); background: rgba(15, 30, 38, 0.55); }
.consent[hidden] { display: none; }
.consent-box { width: min(100%, 520px); background: var(--bg); color: var(--ink); padding: clamp(1.25rem, 3vw, 2rem); display: grid; gap: 1rem; box-shadow: 0 20px 60px rgba(15, 30, 38, 0.35); }
.consent-head { display: flex; align-items: center; gap: 0.9rem; }
.consent-avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: 50% 12%; background: #fff; flex: none; }
.consent-h { font-weight: 600; font-size: 1.375rem; letter-spacing: -0.02em; line-height: 1.2; }
.consent-t { font-size: 1rem; line-height: 1.5; max-width: none; }
.consent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.consent-btn, .consent-btn[data-consent="no"] { width: 100%; background: var(--ink); color: var(--bg); }
.consent-btn:hover, .consent-btn[data-consent="no"]:hover { background: var(--ink-2); }
.consent-legal { color: var(--muted); max-width: none; }
.consent-legal a { color: inherit; }
@media (max-width: 600px) { .consent { place-items: end center; padding: 0.75rem; } }
@media (prefers-reduced-motion: no-preference) { .consent:not([hidden]) .consent-box { animation: chip-in 450ms var(--ease-out); } }
button.consent-open { font: inherit; color: inherit; padding: 0; }
.consent-box:focus { outline: none; }

.r-step { font-size: var(--step-lead); font-weight: 500; color: var(--accent); margin-bottom: -0.5rem; }

/* ---------- Quiz als Chat ---------- */
#quiz { display: flex; flex-direction: column; min-height: 100svh; }
#quiz[hidden] { display: none; }
.chat { flex: 1; }
.chat-log.wrap, .dock-inner.wrap { width: min(100% - 2 * var(--margin), 680px); }
.chat-log { list-style: none; margin: 0 auto; padding: 1.5rem 0 1rem; display: flex; flex-direction: column; gap: 0.5rem; }
.msg { display: flex; gap: 0.6rem; align-items: flex-end; max-width: 88%; }
.msg-bot { align-self: flex-start; }
.msg-me { align-self: flex-end; justify-content: flex-end; }
.msg-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; object-position: 50% 12%; background: #fff; flex: none; }
.msg-bot.msg-cont { padding-left: calc(36px + 0.6rem); }
.msg-bot + .msg-me, .msg-me + .msg-bot { margin-top: 0.6rem; }
.msg-bubble { padding: 0.75rem 1rem; font-size: 1.0625rem; line-height: 1.45; border-radius: 18px; }
.msg-bot .msg-bubble { background: var(--surface); color: var(--ink); border-bottom-left-radius: 6px; }
.msg-me .msg-bubble { background: var(--accent); color: var(--accent-ink); border-bottom-right-radius: 6px; }
.msg-q .msg-bubble { font-size: 1.25rem; line-height: 1.3; }
.msg-q .msg-bubble b { font-weight: 600; letter-spacing: -0.01em; }
.typing { display: inline-flex; gap: 4px; padding: 0.3rem 0.1rem; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); opacity: 0.4; }
@media (prefers-reduced-motion: no-preference) {
  .msg { animation: msg-in 320ms var(--ease-out); }
  .typing i { animation: typing 1s infinite ease-in-out; }
  .typing i:nth-child(2) { animation-delay: 0.15s; } .typing i:nth-child(3) { animation-delay: 0.3s; }
  .dock:not([hidden]) .dock-anim { animation: msg-in 380ms var(--ease-out); }
}
@keyframes msg-in { from { opacity: 0; transform: translateY(10px); } }
@keyframes typing { 0%, 60%, 100% { opacity: 0.35; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
.dock { position: sticky; bottom: 0; z-index: 4; background: var(--bg); padding: 0.9rem 0 calc(0.9rem + env(safe-area-inset-bottom)); box-shadow: 0 -10px 24px rgba(15, 30, 38, 0.06); }
.dock[hidden] { display: none; }
.dock .quiz-actions { margin-top: 0.75rem; padding-top: 0; }
.dock .quiz-actions:has(#q-next[hidden]) { display: none; }
.dock .quiz-trust { margin-top: 0.6rem; }
.dock .q-cards { gap: 6px; }
.dock .q-card { min-height: 3.5rem; }
@media (max-width: 600px) { .msg { max-width: 94%; } .msg-bubble { font-size: 1rem; } .msg-q .msg-bubble { font-size: 1.125rem; } }

.dock .q-slider .q-row label { font-size: 0.9375rem; color: var(--muted); }
.dock .q-slider output { white-space: nowrap; }

.chat-note.wrap { width: min(100% - 2 * var(--margin), 680px); margin: 1rem auto 0; text-align: center; color: var(--muted); }
