/* ============================================================
   zo24.css — Design-Elevation NUR für ZulassungOnline24.
   Additive Schicht über style.css. Wird bewusst NICHT als
   Shared Asset nach public-bund/ kopiert (siehe build.js) —
   das Bundeszulassungsportal bleibt unberührt.
   Tokens: design.md „Amtlich Premium“ — keine neuen Farben.
   ============================================================ */

/* ---------- Anker-Komfort (Sticky-Header ausgleichen) ---------- */

[id] { scroll-margin-top: 96px; }

/* ---------- Prozess als Timeline (echte Reihenfolge, verbundene Strecke)
   Die Schritt-Karten behalten ihre Nummern-Plaketten; eine gestrichelte
   Fahrbahnlinie verbindet sie — Motiv: Markierung auf Asphalt. ---------- */

.steps li { position: relative; }
.steps li:not(:last-child)::after {
  content: '';
  position: absolute;
  left: calc(var(--space-lg) + 22px);
  top: 74px;
  bottom: calc(-1 * var(--space-md) - 1px);
  width: 2px;
  background: repeating-linear-gradient(180deg, var(--blau) 0 7px, transparent 7px 15px);
  opacity: 0.5;
}

/* ---------- Fahrbahnmarkierung am oberen Rand dunkler Fakten-Bänder ---------- */

.fakten-band { position: relative; }
.fakten-band::before {
  content: '';
  position: absolute;
  top: 14px; left: 0; right: 0;
  height: 3px;
  background: repeating-linear-gradient(90deg, rgba(245, 243, 236, 0.32) 0 28px, transparent 28px 66px);
  pointer-events: none;
}

/* ---------- Vergleichs-Duell: „Mit uns“-Spalte als markierte Fahrspur ---------- */

table.vergleich thead th:nth-child(2) {
  background: var(--blau);
  border-left: 2px solid var(--blau);
  border-right: 2px solid var(--blau);
}
table.vergleich td.wir {
  border-left: 2px solid rgba(11, 78, 162, 0.32);
  border-right: 2px solid rgba(11, 78, 162, 0.32);
  background: rgba(11, 78, 162, 0.07);
}
table.vergleich tbody tr:last-child td.wir {
  border-bottom: 2px solid rgba(11, 78, 162, 0.32);
}

/* ---------- Preistabellen: Zeilenfokus beim Abfahren mit der Maus ---------- */

table.preise tbody tr { transition: background-color 120ms ease; }
table.preise tbody tr:hover { background: rgba(11, 78, 162, 0.045); }

/* Breite Tabellen mobil: erste Spalte bleibt beim Seitwärts-Scrollen stehen */
.table-wrap--fix1 th:first-child,
.table-wrap--fix1 td:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  background: var(--white);
  box-shadow: 6px 0 8px -6px rgba(26, 26, 46, 0.18);
}
.table-wrap--fix1 thead th:first-child { background: var(--ink); }
.table-wrap--fix1 tbody tr:hover td:first-child { background: #F1F5FB; }

/* ---------- Bezirks-Chips im Hero (Motiv-Wiederholung Kennzeichen) ---------- */

.bezirk-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: var(--space-lg) 0 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.bezirk-chips .plate-chip { font-size: 0.72rem; }
html.motion .hero .bezirk-chips { animation: mAuf 0.65s var(--ease-out) 0.34s backwards; }

/* ---------- Anker-Chips (FAQ- und Preisseiten-Navigation) ---------- */

.anker-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: var(--space-md) 0 0;
  padding: 0;
}
.anker-chips a {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-utility);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  padding: 0.4em 0.95em;
  text-decoration: none;
  transition: border-color 140ms ease, color 140ms ease;
}
.anker-chips a:hover { border-color: var(--blau); color: var(--blau); }

/* ---------- Ratgeber-/Verweis-Karten: ganzflächig klickbar + Mikro-Lift ---------- */

.artikel-card { position: relative; transition: box-shadow 180ms var(--ease-out), translate 180ms var(--ease-out); }
.artikel-card:hover { translate: 0 -3px; box-shadow: 0 14px 30px rgba(26, 26, 46, 0.12); }
.artikel-card h3 a::after { content: ''; position: absolute; inset: 0; }
.artikel-card:hover h3 a { color: var(--blau); }

/* ---------- End-CTA-Box: Plate-Band-Echo statt anonymer Farbfläche ---------- */

.cta-final .cta-box { position: relative; overflow: hidden; }
.cta-final .cta-box::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 10px;
  background: rgba(255, 255, 255, 0.22);
}

/* ---------- Footer: Gold-Haarlinie als Abschluss (Premium, sparsam) ---------- */

.site-footer { border-top: 2px solid var(--gold); }
.footer-col ul a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Footer: Zahlarten & Versand (28.07.2026, Restyle „dezent") ----- */
/* Vorbild 247zulassungsdienst: kleine weisse, abgerundete Chips unter
   Mini-Ueberschriften im Spalten-Stil — links in der Brand-Spalte, keine
   Trenner, keine Labels dazwischen. Markenwortzuege als Inline-SVG.
   „Demnaechst"-Zahlarten leicht gedimmt, per title/aria erklaert. */

.footer-badges { margin-top: var(--space-lg); }
.footer-badges .fb-h {
  font-size: 0.78rem;
  font-family: var(--font-utility);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-on-dark-soft);
  font-weight: 600;
  margin: 0 0 0.55rem;
}
.footer-badges .fb-reihe {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: var(--space-md);
}
.footer-badges .fb-reihe:last-child { margin-bottom: 0; }
.fb-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  min-width: 52px;
  padding: 0 9px;
  background: #fff;
  border-radius: var(--radius-soft);
}
.fb-chip svg { display: block; height: 13px; width: auto; }
.fb-bald { opacity: 0.55; }

/* ---------- Kassenbon: Zahlweg-Unterzeile (online vs. Gebührenbescheid) ---------- */

.rechner-out .zahlweg {
  display: block;
  font-size: 0.7rem;
  line-height: 1.4;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

/* ---------- Rechner: Gesamtbetrag tickt kurz bei Änderung (Blickführung) ---------- */

@keyframes betragTick { from { scale: 1.07; color: var(--blau-dark); } }
.rechner-out .row--total .betrag.tick { display: inline-block; animation: betragTick 180ms var(--ease-out); }

/* ============================================================
   Mobile-UX-Runde 28.07.2026 — ZO24-exklusive Fixes
   ============================================================ */

/* ---------- Anker-Chips: Tap-Höhe ≥44px auf Touch/Mobil ---------- */

@media (max-width: 820px), (pointer: coarse) {
  .anker-chips a { min-height: 44px; padding-block: 0.3em; }
}

/* ---------- Kennzeichen-Rechner: Fokus unübersehbar (Ring + Offset-Glow) ---------- */

.plate:focus-within {
  box-shadow:
    0 0 0 3px var(--blau),
    0 0 0 7px rgba(11, 78, 162, 0.25),
    inset 0 2px 1px rgba(255, 255, 255, 0.9),
    inset 0 -3px 5px rgba(26, 26, 46, 0.2);
}

/* ---------- Tarifcheck-CTA: Weiß auf ZO24-Gold nur 3,3:1 → Ink 5,2:1 (AA).
   Nur hier — Bund-Gold ist dunkler, dort besteht Weiß. ---------- */

.tc-cta, .tc-cta:hover, .tc-cta:focus-visible { color: var(--ink); }

/* ---------- Mobile-Menü: aktiver Punkt als markierte Zeile statt Unterstrich ---------- */

@media (max-width: 980px) {
  .nav-list .nav-link { border-radius: var(--radius-soft); padding-inline: 0.75rem; }
  .nav-list .nav-link::after { display: none; }
  .nav-list .nav-link--active {
    background: rgba(11, 78, 162, 0.08);
    box-shadow: inset 3px 0 0 var(--blau);
    color: var(--blau);
  }
}

/* ---------- Footer-Links: Tap-Pitch mobil ~44px statt 32px ---------- */

@media (max-width: 820px) {
  .footer-col ul { gap: 0.1rem; }
  .footer-col a { display: inline-block; padding: 0.6rem 0; }
}

/* ---------- Vertikaler Rhythmus mobil: Sektionen 48px statt 64px
   (die 400px-Stufe aus style.css mit 32px bleibt unberührt) ---------- */

@media (min-width: 401px) and (max-width: 640px) {
  section { padding: 3rem 0; }
}
@media (max-width: 640px) {
  .editorial-row, .editorial-row--reverse { padding: 2.5rem 0; }
  .editorial-visual { min-height: 160px; }
}

/* ---------- Prozess-Karten mobil: engeres Padding, Fahrbahnlinie folgt ---------- */

@media (max-width: 560px) {
  .steps li { padding: var(--space-md); }
  .steps li:not(:last-child)::after { left: calc(var(--space-md) + 22px); }
}

/* ---------- Logo-Kennzeichen: EU-Band mit Mini-Sternenkranz + „D"
   (Echo des großen Rechner-Schilds und des Favicons; nur ZO24-Layout) ---------- */

.logo-plate-band {
  width: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5px;
}
.logo-plate-stars {
  width: 6px;
  height: 6px;
  box-sizing: border-box;
  border: 1px dashed #FFD617;
  border-radius: 50%;
  flex-shrink: 0;
}
.logo-plate-d {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 6.5px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
}
