/* Prämienkompass – Gestaltung nach deutschen Verkehrszeichen und Kennzeichen.
   Verkehrsblau (RAL 5017) trägt Navigation und Rechner, Verkehrsgelb (RAL 1023)
   ist ausschließlich der Frist vorbehalten. */

@font-face { font-family: "Barlow"; src: url(/fonts/Barlow-400.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url(/fonts/Barlow-400i.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Barlow"; src: url(/fonts/Barlow-600.woff2) format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url(/fonts/BarlowCondensed-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url(/fonts/BarlowCondensed-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --papier: #f2f4f5;
  --flaeche: #ffffff;
  --text: #1f2a30;
  --leise: #56646c;
  --linie: #d3dade;
  --link: #00538a;
  --blau: #00538a;        /* Verkehrsblau */
  --blau-tief: #003f6b;
  --blau-hauch: #e7eff6;
  --gelb: #f5c400;        /* Verkehrsgelb */
  --schild-schwarz: #000;
  --schein: #e2ebdc;      /* Papierton der Zulassungsbescheinigung */
  --schein-linie: #b9c9ae;
  --schmal: "Barlow Condensed", "Arial Narrow", sans-serif;
  --breit: "Barlow", system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --papier: #141a1d;
    --flaeche: #1b2327;
    --text: #e6ecef;
    --leise: #a1afb6;
    --linie: #2f3a40;
    --link: #8cc3ef;
    --blau-hauch: #16293a;
    --schein: #2a3327;
    --schein-linie: #46553f;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body {
  margin: 0;
  background: var(--papier);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--breit);
  font-kerning: normal;
}
img { max-width: 100%; height: auto; display: block; }
.kontaktbild img { margin: .25em 0 1em; }
a { color: var(--link); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--gelb); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: var(--flaeche); padding: 8px 12px; z-index: 10; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

/* ── Typografie ───────────────────────────────────────── */
h1, h2, h3 { font-family: var(--schmal); font-weight: 700; line-height: 1.08; letter-spacing: -.005em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.25rem); margin: 2.2em 0 .5em; }
h3 { font-size: 1.35rem; font-weight: 600; margin: 0 0 .25em; }
p, ul, ol, dl { margin: 0 0 1em; }
.lead { font-size: 1.2rem; line-height: 1.5; margin-top: .8em; max-width: 38em; }
.meta, .kleingedruckt { color: var(--leise); font-size: .875rem; }
.inhalt > p, .inhalt > ul, .inhalt > ol, .inhalt > h2 { max-width: 40em; }

/* ── Kennzeichen (das eine laute Element) ─────────────── */
.kennzeichen {
  --h: clamp(64px, 9vw, 92px);
  display: inline-flex; align-items: stretch; height: var(--h);
  background: #fff; color: var(--schild-schwarz);
  border: calc(var(--h) * .045) solid var(--schild-schwarz); border-radius: calc(var(--h) * .1);
  font-family: var(--schmal); font-weight: 600; font-size: calc(var(--h) * .74); line-height: 1;
  box-shadow: 0 1px 0 rgba(0,0,0,.08), 0 10px 24px -14px rgba(0,30,60,.45);
  white-space: nowrap; user-select: none;
}
.kz-eu {
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  width: calc(var(--h) * .42); padding: calc(var(--h) * .08) 0 calc(var(--h) * .06);
  background: #039; color: #fff; margin: -1px 0 -1px -1px; border-radius: calc(var(--h) * .06) 0 0 calc(var(--h) * .06);
}
.kz-eu svg { width: 70%; height: auto; }
.kz-eu b { font-family: var(--breit); font-weight: 600; font-size: calc(var(--h) * .26); }
.kz-zeichen { display: flex; align-items: center; padding: 0 calc(var(--h) * .16); letter-spacing: .02em; }
.kz-zeichen:empty { display: none; }
.kz-plaketten { display: flex; flex-direction: column; justify-content: center; gap: calc(var(--h) * .06); }
.kz-plaketten i { width: calc(var(--h) * .27); height: calc(var(--h) * .27); border-radius: 50%; display: block; }
.kz-plaketten i:first-child { background: radial-gradient(circle at 50% 50%, #fff 0 22%, #5bb6e6 23% 100%); }
.kz-plaketten i:last-child { background: radial-gradient(circle at 50% 50%, #cfd4d6 0 40%, #9aa3a7 41% 100%); }
.kennzeichen--klein { --h: 30px; box-shadow: none; }
.kennzeichen--klein .kz-zeichen { font-size: 22px; padding: 0 6px; }

/* ── Schilder ─────────────────────────────────────────── */
.schild-blau {
  background: var(--blau); color: #fff; border-radius: 10px;
  box-shadow: inset 0 0 0 5px var(--blau), inset 0 0 0 7px #fff;
}
.schild-gelb {
  background: var(--gelb); color: #000; border-radius: 6px;
  box-shadow: inset 0 0 0 4px var(--gelb), inset 0 0 0 6px #000;
}
.schild-gelb a { color: #000; }

/* ── Kopf ─────────────────────────────────────────────── */
.kopf { background: var(--flaeche); border-bottom: 1px solid var(--linie); }
.kopf-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 32px; padding-top: 12px; padding-bottom: 12px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-family: var(--schmal); font-weight: 700; font-size: 1.4rem; }
.kopf nav ul { display: flex; flex-wrap: wrap; gap: 2px 22px; list-style: none; margin: 0; padding: 0; }
.kopf nav a { display: inline-block; padding: 8px 0; color: var(--text); text-decoration: none; font-weight: 600; font-size: .95rem; border-bottom: 3px solid transparent; }
.kopf nav a:hover { border-bottom-color: var(--linie); }
.kopf nav a[aria-current="page"] { border-bottom-color: var(--blau); }
@media (max-width: 719px) {
  .kopf nav { width: 100%; overflow-x: auto; }
  .kopf nav ul { flex-wrap: nowrap; }
  .kopf nav a { white-space: nowrap; }
}

/* ── Knopf ────────────────────────────────────────────── */
.knopf {
  display: inline-block; background: var(--blau); color: #fff; text-decoration: none;
  font-family: var(--schmal); font-weight: 600; font-size: 1.25rem; letter-spacing: .01em;
  padding: 12px 22px; border-radius: 6px; margin-top: 8px;
}
.knopf:hover { background: var(--blau-tief); }

/* ── Startseite: Hero ─────────────────────────────────── */
.hero { display: grid; gap: 32px; padding: 40px 0 16px; align-items: center; }
.hero-text .kennzeichen { margin-bottom: 28px; }
.hero h1 { max-width: 13em; }
.hero-bild { position: relative; }
.hero-bild img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }
.hero-bild .frist { margin: -40px 16px 0; position: relative; }
@media (min-width: 960px) {
  .hero { grid-template-columns: 1.1fr .9fr; gap: 56px; padding-top: 56px; }
  .hero-bild .frist { position: absolute; left: -48px; right: auto; bottom: -28px; margin: 0; max-width: 360px; }
}

/* ── Frist ────────────────────────────────────────────── */
.frist { padding: 16px 20px 14px; margin: 24px 0; max-width: 40em; }
.frist p { margin: 0; }
.frist-haupt { font-family: var(--schmal); font-weight: 700; font-size: 1.45rem; line-height: 1.15; }
.frist-countdown { display: block; font-weight: 600; font-size: 1.1rem; }
.frist-neben { font-size: .9rem; margin-top: 6px !important; }

/* ── Vergleich ────────────────────────────────────────── */
.vergleich-block { padding-top: 40px; }
.vergleich-kopf { max-width: 40em; }
.vergleich-kopf h2 { margin-top: 1em; }
.vergleich-kopf p { color: var(--leise); }
.vergleich-raster { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
@media (min-width: 1040px) {
  .vergleich-raster { grid-template-columns: 300px minmax(0, 1fr); }
  .rechner { position: sticky; top: 16px; }
}

.rechner { padding: 24px 26px 26px; }
.rechner h2 { font-size: 1.6rem; margin: 0 0 14px; }
.rechner-form { display: grid; gap: 14px; }
.rechner-form label { display: grid; gap: 4px; font-weight: 600; font-size: .95rem; }
.rechner-form input, .rechner-form select {
  font: inherit; font-weight: 400; color: #000; background: #fff;
  border: 0; border-radius: 4px; padding: 10px 12px; min-height: 46px; width: 100%;
}
.rechner-ergebnis { display: block; margin-top: 20px; padding-top: 16px; border-top: 2px solid rgba(255,255,255,.5); }
.rechner-ergebnis .betrag { display: block; font-family: var(--schmal); font-weight: 700; font-size: 3.2rem; line-height: 1; }
.rechner-ergebnis .zusatz { display: block; margin-top: 6px; font-size: .95rem; line-height: 1.4; }

.tabelle-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; background: var(--flaeche); border: 1px solid var(--linie); border-radius: 6px; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
caption { text-align: left; padding: 12px 16px; color: var(--leise); font-size: .85rem; caption-side: bottom; border-top: 1px solid var(--linie); }
th, td { padding: 12px 16px; text-align: left; vertical-align: baseline; border-bottom: 1px solid var(--linie); }
thead th { background: var(--blau); color: #fff; font-family: var(--schmal); font-weight: 600; font-size: 1.05rem; border-bottom: 0; white-space: nowrap; }
tbody tr:last-child > * { border-bottom: 0; }
tbody th { font-weight: 600; white-space: nowrap; }
.zahl { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rang { color: var(--leise); font-family: var(--schmal); font-weight: 600; font-size: 1.1rem; width: 2.5em; }
.praemie { font-family: var(--schmal); font-weight: 700; font-size: 1.35rem; }
.express small { display: block; color: var(--leise); font-size: .8rem; }
td.besonderheit { color: var(--leise); }
.vergleich tbody tr:first-child { background: var(--blau-hauch); }
.vergleich tbody tr:first-child .rang { color: var(--blau); }
.vergleich tr.ausgeblendet { display: none; }
@media (max-width: 640px) {
  .vergleich .besonderheit { display: none; }
  th, td { padding: 10px 10px; }
}

/* ── Fahrzeugschein ───────────────────────────────────── */
.fahrzeugschein { margin: 24px 0; max-width: 440px; }
.fs-blatt {
  background: var(--schein);
  background-image: repeating-linear-gradient(135deg, transparent 0 7px, rgba(255,255,255,.22) 7px 8px);
  border: 1px solid var(--schein-linie); border-radius: 3px; padding: 14px 18px 8px;
  transform: rotate(-1.2deg);
}
.fs-kopf { font-family: var(--schmal); font-weight: 600; font-size: 1.05rem; margin: 0 0 8px; padding-bottom: 6px; border-bottom: 1px solid var(--schein-linie); }
.fahrzeugschein dl { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; margin: 0; }
.fahrzeugschein dl div { padding: 6px 8px; border-radius: 2px; }
.fahrzeugschein dl div:not(.fs-treffer) { grid-column: 1 / -1; }
.fahrzeugschein dt { font-size: .75rem; color: var(--leise); }
.fahrzeugschein dd { margin: 0; font-family: var(--schmal); font-weight: 600; font-size: 1.15rem; }
.fs-treffer { background: var(--flaeche); box-shadow: 0 0 0 2px var(--blau); }
.fahrzeugschein figcaption { margin-top: 14px; font-size: .9rem; color: var(--leise); }

.berechtigt { display: grid; gap: 8px 56px; align-items: center; margin-top: 24px; }
@media (min-width: 900px) { .berechtigt { grid-template-columns: 1fr 440px; } }
.berechtigt p { max-width: 36em; }

/* ── Ablauf ───────────────────────────────────────────── */
.ablauf { display: grid; gap: 24px 56px; align-items: start; margin-top: 24px; }
.ablauf-bild img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; }
@media (min-width: 900px) { .ablauf { grid-template-columns: 400px 1fr; } .ablauf h2 { margin-top: 0; } .ablauf { margin-top: 72px; } }
.ablauf-liste { list-style: none; padding: 0; counter-reset: s; max-width: 36em; }
.ablauf-liste li { counter-increment: s; position: relative; padding: 0 0 18px 56px; }
.ablauf-liste li::before {
  content: counter(s); position: absolute; left: 0; top: -2px;
  width: 38px; height: 38px; display: grid; place-items: center;
  font-family: var(--schmal); font-weight: 700; font-size: 1.3rem;
  border: 2px solid var(--text); border-radius: 50%;
}
.ablauf-liste li:not(:last-child)::after { content: ""; position: absolute; left: 19px; top: 40px; bottom: 2px; border-left: 2px dashed var(--linie); }
.ablauf-liste strong { display: block; }

/* ── Bevor du dich festlegst ──────────────────────────── */
.achtung dl { display: grid; gap: 0 40px; max-width: none; }
@media (min-width: 720px) { .achtung dl { grid-template-columns: 1fr 1fr; } }
.achtung dl div { padding: 16px 0; border-top: 2px solid var(--text); }
.achtung dt { font-family: var(--schmal); font-weight: 700; font-size: 1.3rem; }
.achtung dd { margin: 4px 0 0; color: var(--leise); }

/* ── FAQ ──────────────────────────────────────────────── */
.faq { max-width: 46em; }
.faq details { border-bottom: 1px solid var(--linie); }
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 40px 16px 0; position: relative;
  font-weight: 600; font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2px solid var(--blau); border-bottom: 2px solid var(--blau); transform: rotate(45deg);
  transition: transform .2s ease;
}
@media (prefers-color-scheme: dark) { .faq summary::after { border-color: var(--link); } }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details > div { padding: 0 0 18px; max-width: 40em; }
.mehr { margin-top: 20px; }

/* ── Ratgeberseiten ───────────────────────────────────── */
.seitenkopf { padding: 28px 0 8px; display: grid; gap: 28px; align-items: end; }
.seitenkopf h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); max-width: 16em; }
.seitenkopf-bild img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 4px; }
@media (min-width: 960px) { .seitenkopf.mit-bild { grid-template-columns: 1.15fr .85fr; gap: 56px; padding-top: 40px; } }
.crumbs { font-size: .875rem; color: var(--leise); margin-bottom: 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { color: var(--leise); }

.mit-seitenleiste { display: grid; gap: 40px; align-items: start; padding-bottom: 24px; }
@media (min-width: 960px) { .mit-seitenleiste { grid-template-columns: minmax(0, 1fr) 300px; gap: 64px; } .seitenleiste { position: sticky; top: 16px; margin-top: 40px; } }
.seitenleiste { background: var(--flaeche); border: 1px solid var(--linie); border-top: 6px solid var(--blau); border-radius: 4px; padding: 18px 20px 16px; }
.seitenleiste h2 { font-size: 1.4rem; margin: 0 0 10px; }
.seitenleiste ol { list-style: none; padding: 0; margin: 0 0 14px; }
.seitenleiste li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--linie); }
.seitenleiste strong { font-family: var(--schmal); font-size: 1.25rem; }
.seitenleiste .knopf { display: block; text-align: center; font-size: 1.1rem; }
.seitenleiste p { margin: 10px 0 0; font-size: .8rem; color: var(--leise); }

.schritte { padding-left: 0; list-style: none; counter-reset: s; max-width: 40em; }
.schritte > li { counter-increment: s; position: relative; padding: 0 0 8px 56px; }
.schritte > li::before {
  content: counter(s); position: absolute; left: 0; top: -4px; width: 38px; height: 38px;
  display: grid; place-items: center; font-family: var(--schmal); font-weight: 700; font-size: 1.3rem;
  background: var(--blau); color: #fff; border-radius: 50%;
}
.hinweis { border-left: 4px solid var(--blau); background: var(--blau-hauch); padding: 14px 18px; max-width: 40em; margin: 24px 0; }
.hinweis p { margin: 0; }
.weiter { margin-top: 28px; font-weight: 600; font-size: 1.1rem; }
.modelle th[scope="row"] { font-family: var(--schmal); font-size: 1.15rem; }
.modelle td:last-child { color: var(--leise); }
.nachweise { font-size: .9rem; }

/* ── Fuß ──────────────────────────────────────────────── */
.fuss { margin-top: 80px; background: #1f2a30; color: #c9d3d8; font-size: .9rem; }
.fuss-inner { padding-top: 32px; padding-bottom: 40px; }
.fuss-claim { max-width: 44em; }
.fuss strong { color: #fff; }
.fuss ul { display: flex; flex-wrap: wrap; gap: 6px 24px; list-style: none; padding: 0; margin: 16px 0 0; }
.fuss a { color: #fff; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
