/* ============================================================
   Bundeszulassungsportal — amtlich-formelles Theme
   Überschreibt die Tokens aus style.css. Palette: Bundesfarben
   als Signal (Flagge), Bundesblau als Akzent, Dokument-Serif.
   ============================================================ */

:root {
  --paper: #FCFCFA;
  --paper-alt: #F1F0EC;
  --ink: #14181F;
  --ink-soft: #444B57;
  --ink-line: #2A313D;
  --blau: #1D4E89;
  --blau-dark: #143A68;
  --blau-hell: #9DC1E8;
  --gold: #8B6914;
  --gold-hell: #C99B2F;
  --line: #D7D5CE;
  --text-on-dark: #F2F1EC;
  --text-on-dark-soft: #AEB4BF;

  --font-display: 'Source Serif 4', Georgia, serif;
  --font-body: 'Libre Franklin', system-ui, sans-serif;

  --radius-soft: 3px;
  --radius-plate: 4px;

  --flag-schwarz: #000000;
  --flag-rot: #DD0000;
  --flag-gold: #FFCE00;
}

/* Amtliche Typo: Serif-Headlines ohne negatives Tracking */
h1, h2, h3, h4 { letter-spacing: 0; font-weight: 600; }
h1 { font-size: clamp(1.9rem, 4.8vw, 3.1rem); }

/* Zwei-Stimmen-H1: amtliche Feststellung + menschliche Antwort */
.h1-antwort {
  display: block;
  margin-top: 0.15em;
  font-style: italic;
  font-weight: 400;
  color: var(--blau);
}

/* Flaggen-Disziplin: kein Full-Bleed-Streifen — Tricolore nur an der Wortmarke */
.flag-stripe { display: none; }

/* Kennzeichnungs-Banner (gov.uk-Muster): sichtbar, ehrlich, mit Tag */
.topbar {
  background: var(--paper-alt);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.topbar p {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0.45rem var(--space-lg);
  font-size: 0.78rem;
  letter-spacing: 0.01em;
}
.topbar .tag {
  font-family: var(--font-utility);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 1px solid var(--ink);
  padding: 0.15em 0.5em;
  margin-right: 0.6em;
}

/* Logo: schmaler vertikaler Tricolore-Balken an der Wortmarke */
.logo-flag {
  display: inline-flex;
  flex-direction: column;
  width: 8px;
  height: 28px;
  border: 0;
  flex-shrink: 0;
}
.logo-flag span { flex: 1; }
.logo-flag span:nth-child(1) { background: var(--flag-schwarz); }
.logo-flag span:nth-child(2) { background: var(--flag-rot); }
.logo-flag span:nth-child(3) { background: var(--flag-gold); }

.logo-word--bund {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 400;
}
.logo-word--bund strong { font-weight: 700; }

.site-header {
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
}

/* Buttons: kantiger, dokumentenhaft */
.btn { border-radius: 3px; font-family: var(--font-body); font-weight: 600; }
.btn:hover { transform: none; box-shadow: none; }
.btn-primary:hover { background: var(--blau-dark); }

/* Nav in Franklin */
.nav-link { font-family: var(--font-body); }

/* Rundes Prüf-Siegel (kein Hoheitszeichen, kein Adler) */
.siegel-rund {
  width: 168px;
  height: 168px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  outline: 1px solid var(--gold);
  outline-offset: 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  text-align: center;
  padding: 1rem;
  background: var(--paper);
  color: var(--ink);
}
.siegel-rund .siegel-titel {
  font-family: var(--font-utility);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold);
}
.siegel-rund .siegel-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.3;
}

/* Gebührentafel (amtlicher Aushang) */
.tafel {
  background: var(--paper);
  border: 2px solid var(--ink);
  padding: var(--space-lg);
}
.tafel h2, .tafel h3 {
  font-size: 1.05rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: var(--space-sm);
}
.tafel .row {
  display: flex;
  justify-content: space-between;
  gap: var(--space-md);
  padding: 0.35rem 0;
  font-size: 0.95rem;
  border-bottom: 1px dotted var(--line);
}
.tafel .row:last-of-type { border-bottom: 0; }
.tafel .row .betrag { font-family: var(--font-utility); white-space: nowrap; }
.tafel .fussnote { font-size: 0.78rem; color: var(--ink-soft); margin: var(--space-sm) 0 0; }

/* Aktenzeichen-Label über Überschriften */
.az {
  font-family: var(--font-utility);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blau);
  display: block;
  margin-bottom: var(--space-sm);
}

/* Karten/Tabellen kantig */
.rechner, .steps li, .bento-cell, details.faq, .artikel-card, .kontakt-card,
table.preise { border-radius: 0; }
.plate, .plate-chip { border-radius: 6px; }
.cta-final .cta-box { border-radius: 0; background: var(--ink); }
.cta-final .btn { color: var(--ink); }

/* Kicker in Blau, Mono bleibt */
.kicker { color: var(--blau); }

/* Fakten-Band: goldene Einheiten beibehalten, Serif-Zahlen */
.fakt .fakt-wert { font-family: var(--font-display); }

/* Amtliche Gebührentafel: Linienwerk statt Dunkel-Balken, lfd. Nummern */
table.preise { border: 0; border-top: 2px solid var(--ink); border-radius: 0; }
table.preise thead th {
  background: transparent;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 2px solid var(--ink);
}
table.preise tbody { counter-reset: pos; }
table.preise tbody td:first-child::before {
  counter-increment: pos;
  content: counter(pos) "  ";
  font-family: var(--font-utility);
  font-size: 0.78rem;
  color: var(--ink-soft);
  white-space: pre;
}

/* Gebührentafel: Gesamtbetrag als Dokument-Zahl */
.tafel .betrag strong {
  font-family: var(--font-display);
  font-size: 1.5em;
  letter-spacing: -0.01em;
}
.tafel .row { align-items: baseline; }

/* Merkblatt-Metazeile (Stand/Rechtsgrundlage) */
.dok-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 2rem;
  margin: 0 0 var(--space-md);
  padding: var(--space-sm) 0;
  border-top: 3px solid var(--ink);
  border-bottom: 1px solid var(--line);
  font-size: 0.85rem;
}
.dok-meta dt {
  font-family: var(--font-utility);
  text-transform: uppercase;
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
}
.dok-meta dd { margin: 0; }
.dok-meta > div { display: flex; align-items: baseline; gap: 0.5rem; }

/* Prägestempel statt Plakette: Doppelring, Dokument-Ästhetik */
.plakette {
  border-radius: 2px;
  border: 1.5px solid var(--ring);
  box-shadow: inset 0 0 0 3px var(--paper), inset 0 0 0 4.5px var(--ring);
  width: 40px;
  height: 40px;
  font-size: 0.56rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--paper);
}
.plakette::after { display: none; }

/* Fokus nach gov.uk-Muster: Flaggen-Gold als funktionale Interaktionsfarbe */
a:focus-visible {
  outline: 3px solid transparent;
  background: var(--flag-gold);
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 -2px var(--flag-gold), 0 4px var(--ink);
  border-radius: 0;
}
.btn:focus-visible, input:focus-visible, select:focus-visible,
summary:focus-visible, .nav-toggle:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--flag-gold);
  outline-offset: 0;
  box-shadow: 0 0 0 6px var(--ink);
  border-radius: 0;
}
