/* ══════════════════════════════════════════════════════════════════════════
   kfz.frischholz-partner.de — Beitrags-Check
   Gestaltung: Kennzeichen-/Fahrzeugschein-Anmutung, mobil zuerst.
   ══════════════════════════════════════════════════════════════════════════ */

:root {
  --ground:   #FAFAF8;
  --surface:  #FFFFFF;
  --sunken:   #F1F3F6;
  --ink:      #14181D;
  --muted:    #5C6672;
  --line:     #E2E6EA;
  --accent:   #0B5FD0;
  --accent-ink:#FFFFFF;
  --accent-soft:#E8F0FC;
  --signal:   #12925A;
  --signal-soft:#E4F4EC;
  --danger:   #C0392B;
  --shadow:   0 1px 2px rgba(20,24,29,.06), 0 8px 24px -12px rgba(20,24,29,.18);

  --step: clamp(.9rem, .85rem + .3vw, 1rem);
  --radius: 6px;
  --wrap: 40rem;

  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground:  #101418;
    --surface: #171C22;
    --sunken:  #1E242B;
    --ink:     #E9ECEF;
    --muted:   #98A3B0;
    --line:    #2A323B;
    --accent:  #4D93F0;
    --accent-ink:#0A1220;
    --accent-soft:#17263C;
    --signal:  #3FBF85;
    --signal-soft:#122A20;
    --danger:  #F0705F;
    --shadow:  0 1px 2px rgba(0,0,0,.4), 0 8px 24px -12px rgba(0,0,0,.7);
  }
}
:root[data-theme="dark"] {
  --ground:  #101418;
  --surface: #171C22;
  --sunken:  #1E242B;
  --ink:     #E9ECEF;
  --muted:   #98A3B0;
  --line:    #2A323B;
  --accent:  #4D93F0;
  --accent-ink:#0A1220;
  --accent-soft:#17263C;
  --signal:  #3FBF85;
  --signal-soft:#122A20;
  --danger:  #F0705F;
  --shadow:  0 1px 2px rgba(0,0,0,.4), 0 8px 24px -12px rgba(0,0,0,.7);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.015em;
  text-wrap: balance;
  margin: 0;
}
h1 { font-size: clamp(1.75rem, 1.35rem + 1.9vw, 2.75rem); }
h2 { font-size: clamp(1.3rem, 1.15rem + .7vw, 1.7rem); }
h3 { font-size: 1.1rem; }
p  { margin: 0; }
a  { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 3px;
}

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 1.25rem; }
.stack { display: flex; flex-direction: column; }
.eyebrow {
  font-family: var(--font-display);
  font-size: .7rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted);
}
.lede { font-size: 1.05rem; color: var(--muted); max-width: 34rem; }
.num  { font-variant-numeric: tabular-nums; }

/* ── Kopf ──────────────────────────────────────────────────────────────── */
.top {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--ground) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.top__in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 3.5rem; }
.brand { display: flex; align-items: center; gap: .55rem; font-family: var(--font-display); font-weight: 700; letter-spacing: -.01em; color: var(--ink); text-decoration: none; font-size: .95rem; }
/* Miniatur-Kennzeichen als Wortmarke */
.plate {
  display: inline-flex; align-items: stretch;
  border: 1.5px solid var(--ink); border-radius: 3px; overflow: hidden;
  background: #fff; height: 1.35rem;
}
.plate__eu { width: .5rem; background: var(--accent); }
.plate__txt {
  font-family: var(--font-display); font-weight: 700; font-size: .72rem;
  letter-spacing: .06em; color: #14181D; padding: 0 .3rem;
  display: flex; align-items: center;
}
.top__tel { font-weight: 600; font-size: .85rem; white-space: nowrap; }

/* ── Held: die erste Frage ist der Held ────────────────────────────────── */
.hero { padding: clamp(1.75rem, 1rem + 3vw, 3.25rem) 0 1rem; }
.hero__grid { display: flex; flex-direction: column; gap: 1.5rem; }
.hero h1 span { color: var(--accent); }

/* ── Funnel-Karte ──────────────────────────────────────────────────────── */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
/* Blaues EU-Band an der Kante — das Erkennungszeichen der Seite */
.card::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 5px;
  background: var(--accent);
}
.card__body { padding: 1.5rem 1.25rem 1.25rem 1.6rem; }
@media (min-width: 30rem) { .card__body { padding: 1.75rem 1.75rem 1.5rem 2.1rem; } }

.progress { display: flex; gap: 4px; padding: 0 0 1.25rem 0; }
.progress i {
  height: 3px; flex: 1; border-radius: 99px; background: var(--line);
  transition: background .25s ease;
}
.progress i.on { background: var(--accent); }

.step { display: none; }
.step.on { display: block; animation: rise .22s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.step__q { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; line-height: 1.2; letter-spacing: -.01em; }
.step__hint { color: var(--muted); font-size: .875rem; margin-top: .4rem; }
.step__gruppe {
  font-family: var(--font-display); font-size: .7rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  margin: 1.25rem 0 .5rem;
}
.step__felder { margin-top: 1.25rem; }
.step .btn { margin-top: 1.25rem; }
.step .btn.btn--ghost { margin-top: .25rem; }

/* Beitragsanzeige in Plattenschrift */
.amount {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 1.8rem + 3.5vw, 3.5rem);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
  line-height: 1;
  display: flex; align-items: baseline; gap: .3rem;
}
.amount small { font-size: .95rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }

input[type="range"] { width: 100%; accent-color: var(--accent); height: 2rem; }

/* Auswahlkacheln */
.fields { display: grid; gap: .9rem; align-items: start; }
.fields.zwei { grid-template-columns: 1fr 1fr; }
@media (max-width: 26rem) { .fields.zwei { grid-template-columns: 1fr; } }

.choices { display: grid; gap: .5rem; }
.choices.two { grid-template-columns: repeat(2, 1fr); }
.choices.three { grid-template-columns: repeat(3, 1fr); }
.choice {
  font: inherit; font-weight: 600; text-align: left;
  min-height: 3.1rem; display: flex; flex-direction: column; justify-content: center;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: .8rem .9rem; cursor: pointer;
  transition: border-color .15s, background .15s, transform .1s;
}
.choice:hover { border-color: var(--accent); }
.choice:active { transform: scale(.99); }
.choice[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.choice small { display: block; font-weight: 400; color: var(--muted); font-size: .8rem; margin-top: .1rem; }

label.field { display: flex; flex-direction: column; gap: .35rem; }
/* Beschriftung ist EIN Element — sonst rutscht der Zusatz in Klammern
   in eine eigene Zeile und die Spalten stehen nicht mehr auf einer Linie. */
.field__t {
  display: block;
  font-size: .8rem; font-weight: 600; color: var(--muted);
  line-height: 1.3; min-height: 1.3em;
}
.field__t em { font-style: normal; font-weight: 400; }
.field__hint { font-size: .75rem; color: var(--muted); min-height: 1.15em; }
input[type="text"], input[type="tel"], input[type="email"], input[type="number"], select {
  font: inherit; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0 .8rem; height: 2.85rem; width: 100%;
  appearance: none; -webkit-appearance: none;
}
/* Eigener Pfeil, sonst sieht die Auswahl auf jedem System anders hoch aus */
select {
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
                    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 1.05rem) 1.22rem, calc(100% - .8rem) 1.22rem;
  background-size: .3rem .3rem, .3rem .3rem;
  background-repeat: no-repeat;
  padding-right: 2.2rem;
}
input::placeholder { color: color-mix(in srgb, var(--muted) 70%, transparent); }

.btn {
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  background: var(--accent); color: var(--accent-ink);
  border: 0; border-radius: var(--radius);
  padding: .95rem 1.25rem; width: 100%;
  cursor: pointer; transition: filter .15s, transform .1s;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: scale(.99); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn--ghost { background: transparent; color: var(--muted); font-weight: 600; font-size: .85rem; width: auto; padding: .5rem 0; }

.consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .78rem; color: var(--muted); line-height: 1.5; }
.consent input { margin-top: .2rem; width: 1.05rem; height: 1.05rem; accent-color: var(--accent); flex: none; }

.trustline { display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: .78rem; color: var(--muted); }
.trustline span { display: flex; align-items: center; gap: .35rem; }
.tick { color: var(--signal); font-weight: 700; }

.formerror { color: var(--danger); font-size: .82rem; font-weight: 600; }

/* Danke-Zustand */
.done { text-align: left; }
.done__mark {
  width: 2.75rem; height: 2.75rem; border-radius: 50%;
  background: var(--signal-soft); color: var(--signal);
  display: grid; place-items: center; font-size: 1.4rem; font-weight: 700;
  margin-bottom: 1rem;
}

/* ── Abschnitte ────────────────────────────────────────────────────────── */
section { padding: clamp(2.5rem, 2rem + 2.5vw, 4rem) 0; }
section + section { border-top: 1px solid var(--line); }

.cols { display: grid; gap: 1.5rem; }
@media (min-width: 44rem) { .cols.three { grid-template-columns: repeat(3, 1fr); } }

.item h3 { margin-bottom: .35rem; }
.item p { color: var(--muted); font-size: .92rem; }
.item__n {
  font-family: var(--font-display); font-weight: 700; font-size: .72rem;
  letter-spacing: .1em; color: var(--accent); display: block; margin-bottom: .5rem;
}

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1rem 0;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  display: flex; justify-content: space-between; gap: 1rem; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.25rem; line-height: 1; flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 1rem; color: var(--muted); }

.person { display: flex; gap: 1rem; align-items: center; }
.person__ph {
  width: 3.5rem; height: 3.5rem; flex: none; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.1rem;
}

/* ── Artikel (Ratgeber) ────────────────────────────────────────────────── */
.article { max-width: 36rem; }
.article > * + * { margin-top: 1.1rem; }
.article h2 { margin-top: 2.25rem; }
.article ul, .article ol { padding-left: 1.15rem; color: var(--ink); }
.article li + li { margin-top: .4rem; }
.article table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.article th, .article td { text-align: left; padding: .55rem .5rem; border-bottom: 1px solid var(--line); }
.article th { font-family: var(--font-display); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.scroller { overflow-x: auto; }
.note {
  background: var(--sunken); border-radius: var(--radius);
  padding: 1rem 1.1rem; font-size: .9rem;
}

.cta-band { background: var(--sunken); border-radius: var(--radius); padding: 1.5rem 1.25rem; }

.linklist { display: grid; gap: .5rem; padding: 0; margin: 0; list-style: none; }
.linklist a { display: block; padding: .75rem 0; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 600; color: var(--ink); }
.linklist a:hover { color: var(--accent); }
.linklist small { display: block; font-weight: 400; color: var(--muted); font-size: .82rem; }

/* ── Fuß ───────────────────────────────────────────────────────────────── */
footer { border-top: 1px solid var(--line); padding: 2rem 0 3rem; font-size: .82rem; color: var(--muted); }
footer .stack { gap: .75rem; }
footer a { color: var(--muted); }
.footlinks { display: flex; flex-wrap: wrap; gap: .35rem 1rem; }

/* Klebender Handlungsaufruf auf Unterseiten (mobil) */
.sticky-cta {
  position: sticky; bottom: 0; z-index: 15;
  background: color-mix(in srgb, var(--ground) 92%, transparent);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  padding: .75rem 0 calc(.75rem + env(safe-area-inset-bottom));
}
[hidden] { display: none !important; }

/* Aufklappbare Schluesselnummern im Fahrzeug-Schritt */
.hsn { margin-top: 1rem; border-top: 1px solid var(--line); padding-top: .9rem; }
.hsn summary {
  cursor: pointer; list-style: none;
  font-size: .85rem; font-weight: 600; color: var(--accent);
  display: flex; align-items: center; gap: .4rem;
}
.hsn summary::-webkit-details-marker { display: none; }
.hsn summary::before { content: "+"; font-size: 1.05rem; line-height: 1; }
.hsn[open] summary::before { content: "–"; }

/* Wortmarke der Nicht-Kfz-Sparten — das Kennzeichen passt dort nicht */
.sigil {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.5rem; height: 1.5rem; border-radius: 5px;
  background: var(--accent); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: .68rem;
  letter-spacing: .02em;
}

/* Aufgelöstes Fahrzeug zu HSN/TSN */
.treffer {
  margin-top: .75rem; padding: .6rem .75rem;
  border-radius: var(--radius); font-size: .85rem; font-weight: 600;
  background: var(--sunken); color: var(--muted);
}
.treffer[data-zustand="treffer"] { background: var(--signal-soft); color: var(--signal); }
.treffer[data-zustand="leer"] { font-weight: 400; }
.treffer[data-zustand="suche"] { font-weight: 400; opacity: .7; }

/* Zahlweise umschalten (Monat / Jahr) */
.umschalter {
  display: inline-flex; gap: 2px; padding: 2px;
  background: var(--sunken); border-radius: var(--radius); margin-top: 1.25rem;
}
.umschalter .um {
  font: inherit; font-size: .8rem; font-weight: 600;
  border: 0; background: transparent; color: var(--muted);
  padding: .45rem .9rem; border-radius: 4px; cursor: pointer;
}
.umschalter .um[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }

/* ── Nachfrage nach dem Absenden ─────────────────────────────────────── */
.ueberlagerung {
  position: fixed; inset: 0; z-index: 60;
  background: color-mix(in srgb, #0A0D11 62%, transparent);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem; overflow-y: auto;
  animation: einblenden .18s ease both;
}
@keyframes einblenden { from { opacity: 0; } to { opacity: 1; } }
.ueberlagerung__box {
  position: relative; width: 100%; max-width: 34rem;
  max-height: calc(100vh - 2rem); overflow-y: auto;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 24px 60px -20px rgba(0,0,0,.5);
  padding: 1.5rem 1.35rem;
}
@media (min-width: 30rem) { .ueberlagerung__box { padding: 1.9rem 1.9rem; } }
.ueberlagerung__zu {
  position: absolute; top: .6rem; right: .6rem;
  border: 0; background: transparent; color: var(--muted);
  font-size: 1rem; line-height: 1; padding: .5rem; cursor: pointer; border-radius: 4px;
}
.ueberlagerung__zu:hover { color: var(--ink); background: var(--sunken); }

.stufe { margin-top: 1.35rem; }
.stufe__kopf {
  display: flex; align-items: center; gap: .55rem;
  font-family: var(--font-display); font-weight: 700; font-size: .98rem;
}
.stufe__marke {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.4rem; height: 1.4rem; border-radius: 4px; flex: none;
  font-size: .72rem; font-weight: 700; color: #fff;
}
.stufe__marke--a { background: var(--danger); }
.stufe__marke--b { background: var(--muted); }
.stufe__hinweis { font-size: .8rem; color: var(--muted); margin: .25rem 0 .6rem 1.95rem; }

.wahl {
  display: flex; gap: .65rem; align-items: flex-start;
  padding: .6rem .7rem; margin-left: 1.95rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  cursor: pointer; transition: border-color .15s, background .15s;
}
.wahl + .wahl { margin-top: .4rem; }
.wahl:hover { border-color: var(--accent); }
.wahl:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.wahl input { margin-top: .15rem; width: 1.05rem; height: 1.05rem; accent-color: var(--accent); flex: none; }
.wahl span { font-size: .88rem; line-height: 1.35; }
.wahl small { display: block; color: var(--muted); font-weight: 400; font-size: .78rem; margin-top: .1rem; }
