/* Fahrschule Waidner — Tokens siehe docs/design.md */

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

:root {
  --gelb: #f0ca00;
  --schwarz: #1e1e1e;
  --weiss: #ffffff;
  --blau: #005387;
  --asphalt: #45494e;
  --linie: #d9dadb;

  --schrift: "Barlow", system-ui, sans-serif;
  --schild: "Barlow Condensed", "Arial Narrow", sans-serif;

  --breite: 68rem;
  --rand: clamp(1rem, 4vw, 2.5rem);
  color-scheme: light;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--weiss);
  color: var(--schwarz);
  font-family: var(--schrift);
  font-size: clamp(1.0625rem, 0.95rem + 0.4vw, 1.1875rem);
  line-height: 1.45;
  font-feature-settings: "kern" 1;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { hyphens: none; line-height: 1.1; margin: 0; }
p { margin: 0 0 0.75em; }

a { color: var(--blau); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--blau); outline-offset: 3px; }

.huelle { max-width: var(--breite); margin: 0 auto; padding: 0 var(--rand); }

.sprung {
  position: absolute; left: -999px; top: 0;
  background: var(--schwarz); color: var(--weiss); padding: 0.5rem 1rem;
}
.sprung:focus { left: 1rem; top: 1rem; z-index: 10; }

/* Offene Kundenangaben — sichtbar, damit sie nicht live gehen */
.todo {
  background: #fde8e6;
  color: #9b1c10;
  outline: 1px dashed #bb1e10;
  padding: 0 0.25em;
}

/* ── Kopf ─────────────────────────────────────────── */

.kopf { border-bottom: 1px solid var(--linie); }
.kopf .huelle {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.75rem 2rem; padding-top: 1rem; padding-bottom: 1rem;
}

/* Wortmarke: kleine Ortstafel */
.marke {
  display: inline-block;
  font-family: var(--schild);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--schwarz);
  text-decoration: none;
  background: var(--gelb);
  border-radius: 0.3rem;
  padding: 0.45rem 0.8rem 0.4rem;
  box-shadow: inset 0 0 0 2px var(--gelb), inset 0 0 0 4px var(--schwarz);
}
.marke:hover { text-decoration: none; }

.navi ul { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; list-style: none; margin: 0; padding: 0; }
.navi a { color: var(--schwarz); font-weight: 600; text-decoration: none; }
.navi a:hover { text-decoration: underline; }

/* ── Einstieg ─────────────────────────────────────── */

.einstieg { padding: clamp(2.5rem, 7vw, 5rem) 0 clamp(3rem, 8vw, 6rem); }

.einstieg h1 {
  font-family: var(--schild);
  font-weight: 700;
  font-size: clamp(2.25rem, 1.5rem + 3.6vw, 4.25rem);
  max-width: 16ch;
}
.einstieg .lead {
  margin-top: 1rem;
  max-width: 34em;
  color: var(--asphalt);
  font-size: 1.125em;
}

.standorte {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 3rem clamp(2rem, 5vw, 4rem);
  margin-top: clamp(2.5rem, 6vw, 4rem);
}

.standort { display: flex; flex-direction: column; align-items: flex-start; }

/* Ortstafel nach StVO Zeichen 310: gelb, schwarzer Rand mit gelbem Außenstreifen */
.ortstafel {
  width: 100%;
  max-width: 26rem;
  background: var(--gelb);
  border-radius: 0.6rem;
  box-shadow: inset 0 0 0 0.35rem var(--gelb), inset 0 0 0 0.75rem var(--schwarz);
  padding: 1.6rem 1.5rem 1.4rem;
  text-align: center;
}
.ortstafel h2 {
  font-family: var(--schild);
  font-weight: 700;
  font-size: clamp(2.25rem, 1.8rem + 2vw, 3.25rem);
  letter-spacing: 0.01em;
}
.ortstafel .kreis {
  display: block;
  margin-top: 0.35rem;
  font-family: var(--schild);
  font-weight: 600;
  font-size: 1.25rem;
}

/* Zusatzzeichen: weiß, schwarzer Rand, direkt unter der Tafel */
.zusatz {
  width: 100%;
  max-width: 26rem;
  margin: 0.5rem 0 0;
  border: 0.3rem solid var(--schwarz);
  border-radius: 0.35rem;
  padding: 0.7rem 1rem;
  font-family: var(--schild);
  font-weight: 600;
  font-size: 1.375rem;
  line-height: 1.25;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.zusatz dt { display: inline; }
.zusatz dd { display: inline; margin: 0; }
.zusatz div + div { margin-top: 0.15rem; }
.zusatz .zeit { font-weight: 700; }

.adresse { margin-top: 1.25rem; font-style: normal; }
.adresse p { margin: 0; }
.adresse a { display: inline-block; margin-top: 0.4rem; font-weight: 600; }
.hinweis { margin-top: 0.75rem; color: var(--asphalt); font-size: 0.9375em; max-width: 26rem; }

/* ── Abschnitte ───────────────────────────────────── */

.abschnitt { padding: clamp(3rem, 8vw, 5.5rem) 0; border-top: 1px solid var(--linie); }

.abschnitt > .huelle > h2 {
  font-family: var(--schild);
  font-weight: 700;
  font-size: clamp(1.875rem, 1.4rem + 2vw, 2.75rem);
  margin-bottom: 0.5rem;
}
.abschnitt .intro { color: var(--asphalt); max-width: 36em; }

.gruppen {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
  gap: 2.5rem clamp(2rem, 5vw, 4rem);
  margin-top: 2.5rem;
}
.gruppe h3 {
  font-size: 1.25rem;
  font-weight: 600;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--schwarz);
}

.klassen { list-style: none; margin: 0; padding: 0; }
.klassen li {
  display: grid;
  grid-template-columns: 4.25rem 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--linie);
}
.kuerzel {
  font-family: var(--schild);
  font-weight: 700;
  font-size: 1.625rem;
  line-height: 1.1;
}
.klassen p { margin: 0; max-width: 34em; }
.klassen .klein { color: var(--asphalt); font-size: 0.9375em; margin-top: 0.2rem; }

.kontaktliste { margin: 1.5rem 0 0; display: grid; gap: 0.75rem; max-width: 36em; }
.kontaktliste div { display: grid; grid-template-columns: 7rem 1fr; gap: 1rem; }
.kontaktliste dt { font-weight: 600; }
.kontaktliste dd { margin: 0; }

/* ── Fuß ──────────────────────────────────────────── */

.fuss { background: var(--schwarz); color: #e6e6e6; padding: 2.5rem 0; font-size: 0.9375em; }
.fuss .huelle { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; }
.fuss a { color: var(--weiss); }
.fuss ul { display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.fuss p { margin: 0; }

/* ── Rechtsseiten ─────────────────────────────────── */

.text { padding: clamp(2.5rem, 7vw, 4.5rem) 0; }
.text h1 { font-family: var(--schild); font-weight: 700; font-size: clamp(2rem, 1.5rem + 2vw, 3rem); margin-bottom: 1.5rem; }
.text h2 { font-size: 1.25rem; font-weight: 600; margin: 2rem 0 0.5rem; }
.text p, .text address { max-width: 36em; font-style: normal; }

.sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
