@import url('https://fonts.googleapis.com/css2?family=Barlow+Semi+Condensed:wght@500;600;700&family=Fira+Sans:ital,wght@0,400;0,500;0,600;1,400&family=Noto+Sans+Arabic:wght@500;600&display=swap');

/* ==========================================================================
   Fahrschule Weserstrom — theme.css
   Leitidee: Zeichen, die jede Sprache sprechen.
   Grammatik: Wegweiser lenken (gelb) · Zusatzzeichen schränken ein (weiß,
   schwarz umrandet) · Markierung trennt Spuren (weiß auf Asphalt).
   Breakpoints: 40em (Telefon quer / kleines Tablet), 56em (Menü → Leiste),
   72em (Streckenband waagerecht, volle Kopfzeile).
   ========================================================================== */

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body, h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote, fieldset { margin: 0; }
ul, ol, fieldset, legend { padding: 0; }
fieldset { border: 0; min-width: 0; }
img, svg { display: block; max-width: 100%; }
input, button, select, textarea { font: inherit; color: inherit; }
button, summary, select { cursor: pointer; }
table { border-collapse: collapse; }

/* 2 Tokens --------------------------------------------------------------- */
:root {
  /* Palette */
  --c-weiss: #FFFFFF;        /* Signalweiß: Grund, Markierung, Zusatzzeichen */
  --c-asphalt: #33373B;      /* Asphalt: Text, Fahrbahn-Flächen */
  --c-gelb: #F6C200;         /* Verkehrsgelb: nur Wegweisung */
  --c-schwarz: #000000;      /* Tafelschwarz: nur auf Gelb und Zusatzzeichen */
  --c-gehweg: #E4E6E3;       /* Gehweggrau: ruhige Flächen */
  --c-rot: #B3261E;          /* Haltelinienrot: Fehler, Achtung */
  /* abgeleitet */
  --c-text-2: #5A5F64;       /* Nebentext auf Weiß, 6,4 : 1 */
  --c-asphalt-text: #D6D9D7; /* Nebentext auf Asphalt, 8 : 1 */
  --c-gruen: #1F6E43;        /* nur Status „gesendet“ */

  /* Schrift */
  --f-sign: "Barlow Semi Condensed", "Fira Sans", "Noto Sans Arabic", "Arial Narrow", sans-serif;
  --f-text: "Fira Sans", "Noto Sans Arabic", "Segoe UI", system-ui, sans-serif;
  --f-arab: "Noto Sans Arabic", "Fira Sans", "Segoe UI", sans-serif;

  --fs-schild: clamp(2.35rem, 1rem + 5.4vw, 5.6rem);
  --fs-seite: clamp(2rem, 1.2rem + 3.4vw, 4rem);
  --fs-h2: clamp(1.85rem, 1.2rem + 2.6vw, 3.1rem);
  --fs-ziel: clamp(1.35rem, 1rem + 1.5vw, 2.2rem);
  --fs-h3: clamp(1.3rem, 1.1rem + .7vw, 1.6rem);
  --fs-zusatz: 1.125rem;
  --fs-lead: clamp(1.125rem, 1rem + .4vw, 1.3rem);
  --fs-text: 1.0625rem;
  --fs-klein: .9375rem;

  /* Raum */
  --measure: 64ch;
  --gutter: clamp(1rem, 4vw, 3rem);
  --flow: clamp(2.75rem, 1.6rem + 4.2vw, 5.5rem);
  --gap: clamp(1.25rem, .8rem + 1.6vw, 2.25rem);
  --sign-pad: clamp(1rem, .6rem + 1.5vw, 1.75rem);

  /* Form: Radien folgen den Schildern, nicht einem Einheitswert */
  --r-schild: 1rem;
  --r-face: .55rem;
  --r-zusatz: .4rem;
  --r-feld: .25rem;
  --linie: 3px;

  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* 3 Grundtypografie ------------------------------------------------------ */
body {
  font-family: var(--f-text);
  font-size: var(--fs-text);
  line-height: 1.62;
  color: var(--c-asphalt);
  background: var(--c-weiss);
  overflow-wrap: break-word;
}

h1, h2, h3, h4 {
  font-family: var(--f-sign);
  font-weight: 700;
  line-height: 1.02;
  overflow-wrap: break-word;
  hyphens: auto;
  text-wrap: balance;
}
h1 { font-size: var(--fs-seite); letter-spacing: -.005em; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 600; line-height: 1.12; letter-spacing: .005em; }
h4 { font-size: 1.2rem; font-weight: 600; line-height: 1.2; }

p { max-width: var(--measure); }
p, dd, li { text-wrap: pretty; }
strong, b { font-weight: 600; }
small { font-size: var(--fs-klein); }

[lang="ar"] { font-family: var(--f-arab); line-height: 1.9; }

.lead { font-size: var(--fs-lead); line-height: 1.55; max-width: 52ch; }

a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: .2em;
}
a:hover { background: var(--c-gelb); color: var(--c-schwarz); text-decoration-color: var(--c-schwarz); }

::selection { background: var(--c-gelb); color: var(--c-schwarz); }

/* Fokus: wie ein Schild — gelber Hof, schwarze Linie. Sichtbar auf Weiß und Asphalt. */
:focus-visible {
  outline: 3px solid var(--c-schwarz);
  outline-offset: 2px;
  box-shadow: 0 0 0 8px var(--c-gelb);
}

/* 4 Hilfsklassen --------------------------------------------------------- */
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -6rem;
  z-index: 100;
  padding: .8rem 1.2rem;
  background: var(--c-gelb);
  color: var(--c-schwarz);
  font-family: var(--f-sign);
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
  border-radius: var(--r-zusatz);
  box-shadow: inset 0 0 0 4px var(--c-gelb), inset 0 0 0 6.5px var(--c-schwarz);
}
.skip-link:focus { top: .75rem; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* 5 Layout --------------------------------------------------------------- */
.wrap { width: min(100% - 2 * var(--gutter), 78rem); margin-inline: auto; }

/* Der einzige Ort für Abstände zwischen Abschnitten. */
main > section { padding-block: var(--flow-top, var(--flow)) var(--flow); }

.section-head {
  display: grid;
  gap: 1rem;
  justify-items: start;
  margin-bottom: clamp(1.75rem, 1rem + 2vw, 3rem);
}
.section-head h2 { max-width: 22ch; }

.more { margin-top: clamp(1.75rem, 1rem + 2vw, 2.75rem); }

/* 6 Kopf und Navigation -------------------------------------------------- */
.masthead { background: var(--c-weiss); position: relative; z-index: 20; }

.masthead__bar {
  display: grid;
  grid-template-columns: 1fr auto auto;
  grid-template-areas:
    "brand toggle call"
    "nav nav nav";
  align-items: center;
  column-gap: .5rem;
  padding-block: .75rem;
}

.brand {
  grid-area: brand;
  display: flex;
  align-items: center;
  gap: .7rem;
  min-height: 44px;
  justify-self: start;
  text-decoration: none;
  border-radius: var(--r-zusatz);
}
.brand:hover { background: none; color: inherit; }
.brand__mark { width: 2.75rem; height: 2.75rem; flex: none; }
.brand__text { display: grid; line-height: 1; }
.brand__name {
  font-family: var(--f-sign);
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: -.005em;
}
.brand__kind { font-size: .875rem; color: var(--c-text-2); margin-top: .25rem; }

.nav-toggle {
  grid-area: toggle;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 44px;
  padding: .35rem .8rem;
  background: var(--c-weiss);
  color: var(--c-schwarz);
  border: var(--linie) solid var(--c-schwarz);
  border-radius: var(--r-zusatz);
  font-family: var(--f-sign);
  font-weight: 600;
  font-size: 1.1rem;
  line-height: 1;
}
.nav-toggle svg { width: 1.25rem; height: 1.25rem; }
.nav-toggle .i-close { display: none; }
.nav-toggle[aria-expanded="true"] { background: var(--c-gelb); }
.nav-toggle[aria-expanded="true"] .i-open { display: none; }
.nav-toggle[aria-expanded="true"] .i-close { display: block; }

#site-nav { grid-area: nav; display: none; }
#site-nav[data-open="true"] { display: block; margin-top: .75rem; }

.nav__list { list-style: none; border-top: var(--linie) solid var(--c-schwarz); }
.nav__list a {
  display: flex;
  align-items: center;
  min-height: 3.25rem;
  padding: .5rem .25rem;
  font-family: var(--f-sign);
  font-weight: 600;
  font-size: 1.35rem;
  line-height: 1.1;
  text-decoration: none;
  border-bottom: 2px solid var(--c-gehweg);
}
.nav__list a[aria-current="page"] { box-shadow: inset .5rem 0 0 var(--c-gelb); padding-left: 1rem; }

@media (min-width: 56em) {
  .masthead__bar { grid-template-areas: "brand nav call"; column-gap: 1.25rem; }
  .nav-toggle { display: none; }
  #site-nav,
  #site-nav[data-open="true"] { display: block; margin-top: 0; }
  .nav__list { display: flex; gap: .15rem; border-top: 0; }
  .nav__list a {
    min-height: 44px;
    padding: .35rem .6rem;
    font-size: 1.15rem;
    border-bottom: 0;
    border-radius: var(--r-zusatz);
  }
  .nav__list a[aria-current="page"] { box-shadow: inset 0 -.3rem 0 var(--c-gelb); padding-left: .6rem; }
}

.masthead__call {
  grid-area: call;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 44px;
  min-width: 44px;
  justify-content: center;
  padding: .4rem .75rem;
  background: var(--c-gelb);
  color: var(--c-schwarz);
  font-family: var(--f-sign);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  border-radius: var(--r-zusatz);
  box-shadow: inset 0 0 0 3px var(--c-gelb), inset 0 0 0 5.5px var(--c-schwarz);
}
.masthead__call svg { width: 1.2rem; height: 1.2rem; flex: none; }
.masthead__call:hover { background: var(--c-schwarz); color: var(--c-gelb); box-shadow: inset 0 0 0 3px var(--c-schwarz), inset 0 0 0 5.5px var(--c-gelb); }

/* Nummer nur, wo sie Platz hat — der Link bleibt immer da (Name über sr-only-Text). */
@media (max-width: 29.99em) {
  .masthead__num { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .brand__kind { display: none; }
}
@media (min-width: 56em) and (max-width: 71.99em) {
  .masthead__num { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
}

/* 7 Knöpfe --------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 3.25rem;
  padding: .75rem 1.4rem;
  background: var(--c-gelb);
  color: var(--c-schwarz);
  border: 0;
  border-radius: var(--r-zusatz);
  font-family: var(--f-sign);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  box-shadow: inset 0 0 0 4px var(--c-gelb), inset 0 0 0 6.5px var(--c-schwarz);
}
.btn:hover {
  background: var(--c-schwarz);
  color: var(--c-gelb);
  box-shadow: inset 0 0 0 4px var(--c-schwarz), inset 0 0 0 6.5px var(--c-gelb);
}
.btn svg { width: 1.2rem; height: 1.2rem; flex: none; }

.btn--zusatz { background: var(--c-weiss); box-shadow: inset 0 0 0 var(--linie) var(--c-schwarz); }
.btn--zusatz:hover { background: var(--c-gehweg); color: var(--c-schwarz); box-shadow: inset 0 0 0 var(--linie) var(--c-schwarz); }

.btn[disabled],
.btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }

.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* 8 Wegweiser ------------------------------------------------------------ */
.sign {
  background: var(--c-gelb);
  color: var(--c-schwarz);
  border-radius: var(--r-schild);
  padding: .5rem;
}
.sign__face {
  border: var(--linie) solid var(--c-schwarz);
  border-radius: var(--r-face);
  overflow: hidden;
}
.sign__title {
  padding: var(--sign-pad) var(--sign-pad) calc(var(--sign-pad) + .25rem);
  font-size: var(--fs-schild);
  line-height: .96;
  letter-spacing: -.01em;
}
.sign__place {
  display: block;
  margin-bottom: .7rem;
  font-size: clamp(1.1rem, 1rem + .4vw, 1.35rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .005em;
}

.routes { list-style: none; }
.routes > li { border-top: var(--linie) solid var(--c-schwarz); }

.route {
  display: grid;
  grid-template-columns: clamp(2.1rem, 1.6rem + 1.6vw, 3.1rem) minmax(0, 1fr);
  column-gap: clamp(.75rem, .5rem + 1vw, 1.5rem);
  align-items: center;
  min-height: 3.5rem;
  padding: .75rem var(--sign-pad);
  color: var(--c-schwarz);
  text-decoration: none;
}
.route__arrow {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  fill: currentColor;
  transform: rotate(var(--dir, 0deg));
}
.route__dest {
  font-family: var(--f-sign);
  font-weight: 600;
  font-size: var(--fs-ziel);
  line-height: 1.05;
  letter-spacing: .005em;
}
.route__dest--klein { font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem); overflow-wrap: anywhere; }
.route__note {
  grid-column: 2;
  font-family: var(--f-sign);
  font-weight: 500;
  font-size: 1.05rem;
  line-height: 1.25;
}
.route--icon { grid-template-columns: 1.6rem minmax(0, 1fr); }

.route:hover,
.route:focus-visible { background: var(--c-schwarz); color: var(--c-gelb); }
.route:focus-visible { outline: 3px solid var(--c-gelb); outline-offset: -8px; box-shadow: none; }

@media (min-width: 40em) {
  .route { grid-template-columns: clamp(2.1rem, 1.6rem + 1.6vw, 3.1rem) minmax(0, 1fr) auto; }
  .route--icon { grid-template-columns: 1.6rem minmax(0, 1fr); }
  .route__note { grid-column: auto; max-width: 17ch; text-align: right; }
}

/* 9 Zusatzzeichen -------------------------------------------------------- */
.zusatz {
  display: inline-block;
  max-width: 100%;
  padding: .4rem .85rem;
  background: var(--c-weiss);
  color: var(--c-schwarz);
  border: var(--linie) solid var(--c-schwarz);
  border-radius: var(--r-zusatz);
  font-family: var(--f-sign);
  font-weight: 600;
  font-size: var(--fs-zusatz);
  line-height: 1.2;
}

.zusatz--list { display: block; margin-top: .6rem; padding: 0; overflow: hidden; }
.zusatz__label { padding: .5rem .85rem; border-bottom: 2px solid var(--c-schwarz); }
.zusatz__langs { list-style: none; display: grid; grid-template-columns: 1fr 1fr; }
.zusatz__langs li {
  padding: .5rem .85rem;
  font-family: var(--f-text);
  font-weight: 500;
  font-size: 1.05rem;
  line-height: 1.4;
}
.zusatz__langs li:nth-child(even) { border-left: 2px solid var(--c-schwarz); }
.zusatz__langs li:nth-child(n + 3) { border-top: 2px solid var(--c-schwarz); }
.zusatz__langs [lang="ar"] { font-family: var(--f-arab); line-height: 1.4; }

@media (min-width: 40em) {
  .zusatz--list { display: inline-flex; align-items: stretch; }
  .zusatz__label { display: flex; align-items: center; border-bottom: 0; border-right: 2px solid var(--c-schwarz); }
  .zusatz__langs { grid-template-columns: repeat(4, auto); }
  .zusatz__langs li { display: flex; align-items: center; }
  .zusatz__langs li + li { border-left: 2px solid var(--c-schwarz); }
  .zusatz__langs li:nth-child(n + 3) { border-top: 0; }
}

/* 10 Startseite: Hero ---------------------------------------------------- */
.hero { --flow-top: clamp(.75rem, .25rem + 2vw, 2.25rem); }
.hero__grid { display: grid; gap: var(--gap); }
.hero__aside { display: grid; gap: 1.1rem; align-content: start; }
.hero__addr { font-size: var(--fs-klein); color: var(--c-text-2); }

@media (min-width: 56em) {
  .hero__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: start; }
  .hero__post { grid-column: 1 / span 8; }
  .hero__aside { grid-column: 9 / -1; padding-top: .75rem; }
}

/* 11 Fahrspuren (die vier Sprachen) -------------------------------------- */
.lanes { background: var(--c-asphalt); color: var(--c-weiss); }
.lanes .lead { color: var(--c-asphalt-text); }
.lanes a:hover { background: var(--c-gelb); color: var(--c-schwarz); }

.lanes__road {
  list-style: none;
  display: grid;
  border-block: 4px solid var(--c-weiss);
}
.lane { position: relative; display: grid; gap: .45rem; align-content: start; padding: 1.5rem 0 1.75rem; }
.lane + .lane::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  right: 0;
  height: 4px;
  background: repeating-linear-gradient(to right, var(--c-weiss) 0 1.5rem, transparent 1.5rem 3.5rem);
}
.lane__lang {
  font-family: var(--f-text);
  font-weight: 600;
  font-size: clamp(1.65rem, 1.2rem + 1.4vw, 2.35rem);
  line-height: 1.15;
}
.lane__lang[lang="ar"] { font-family: var(--f-arab); line-height: 1.3; }
.lane__phrase { font-size: 1.15rem; line-height: 1.5; }
.lane__phrase[lang="ar"] { font-size: 1.25rem; line-height: 1.8; }
.lane__note { font-size: var(--fs-klein); color: var(--c-asphalt-text); margin-top: .35rem; }
.lanes__foot { margin-top: clamp(1.5rem, 1rem + 1.5vw, 2.5rem); color: var(--c-asphalt-text); }
.lanes__foot a { color: var(--c-weiss); }

@media (min-width: 56em) {
  .lanes__road { grid-template-columns: repeat(4, minmax(0, 1fr)); border-block: 0; border-inline: 4px solid var(--c-weiss); }
  .lane { padding: 2rem clamp(1rem, .5rem + 1.2vw, 1.75rem) 2.5rem; }
  .lane + .lane::before {
    top: 0;
    bottom: 0;
    left: -2px;
    right: auto;
    width: 4px;
    height: auto;
    background: repeating-linear-gradient(to bottom, var(--c-weiss) 0 1.5rem, transparent 1.5rem 3.5rem);
  }
}

/* 12 Checkliste ---------------------------------------------------------- */
.checklist { list-style: none; display: grid; gap: 1.75rem var(--gap); }
.checklist > li { position: relative; padding-left: 2.75rem; }
.checklist > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .05rem;
  width: 1.75rem;
  height: 1.75rem;
  background: var(--c-weiss);
  border: var(--linie) solid var(--c-schwarz);
  border-radius: .2rem;
}
.checklist > li::after {
  content: "";
  position: absolute;
  left: .6rem;
  top: .3rem;
  width: .55rem;
  height: 1rem;
  border: solid var(--c-schwarz);
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}
.checklist h3 { margin-bottom: .4rem; }
.checklist p { max-width: 46ch; }

@media (min-width: 56em) {
  .checklist { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* 13 Geteilt + Entscheidungsbaum ----------------------------------------- */
.split { display: grid; gap: var(--gap); }
.split__text { display: grid; gap: 1.1rem; align-content: start; justify-items: start; }
.split__text .btn-row,
.split__text .btn { margin-top: .5rem; }

@media (min-width: 56em) {
  .split {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    column-gap: clamp(2rem, 1rem + 3vw, 4.5rem);
    align-items: start;
  }
}

.junction {
  background: var(--c-gehweg);
  border-radius: var(--r-schild);
  padding: clamp(1.25rem, .8rem + 1.5vw, 2rem);
}
.junction__cap {
  margin-bottom: 1.1rem;
  font-family: var(--f-sign);
  font-weight: 600;
  font-size: 1.2rem;
  line-height: 1.2;
}
.junction__node {
  display: inline-block;
  padding: .25rem .65rem;
  background: var(--c-weiss);
  color: var(--c-schwarz);
  border: var(--linie) solid var(--c-schwarz);
  border-radius: var(--r-zusatz);
  font-family: var(--f-sign);
  font-weight: 600;
  font-size: 1.15rem;
  line-height: 1.2;
}
.junction__node--ziel { background: var(--c-asphalt); border-color: var(--c-asphalt); color: var(--c-weiss); }

.junction__tree,
.junction__tree ul { list-style: none; }
.junction__tree li { position: relative; padding: 0 0 1.1rem 2.4rem; }
.junction__tree li:last-child { padding-bottom: 0; }
.junction__tree li::before {
  content: "";
  position: absolute;
  left: .6rem;
  top: 0;
  width: 1.5rem;
  height: 1.1rem;
  border-left: 4px solid var(--c-asphalt);
  border-bottom: 4px solid var(--c-asphalt);
  border-bottom-left-radius: .75rem;
}
.junction__tree li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: .6rem;
  top: 0;
  bottom: 0;
  border-left: 4px solid var(--c-asphalt);
}
.junction__tree p { margin-top: .35rem; font-size: var(--fs-klein); line-height: 1.45; max-width: 36ch; }
/* Text vor einer weiteren Abzweigung: Die Linie läuft durch ihn hindurch weiter. */
.junction__tree .junction__via {
  margin: 0 0 0 .6rem;
  padding: .4rem 0 .9rem 1.8rem;
  border-left: 4px solid var(--c-asphalt);
}

/* 14 Tabelle ------------------------------------------------------------- */
/* Breite begrenzt, damit die Beschreibungsspalte unter 80 Zeichen bleibt. */
.table-wrap { max-width: 56rem; border-top: 4px solid var(--c-asphalt); }
.table { width: 100%; font-size: 1rem; line-height: 1.45; }
.table caption { text-align: left; padding: .75rem 0; font-family: var(--f-sign); font-weight: 600; font-size: 1.15rem; }
.table th,
.table td { padding: .9rem 1.25rem .9rem 0; text-align: left; vertical-align: top; border-bottom: 2px solid var(--c-gehweg); }
.table thead th {
  font-family: var(--f-sign);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--c-text-2);
  border-bottom-color: var(--c-asphalt);
}
.table tbody th {
  font-family: var(--f-sign);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.1;
  white-space: nowrap;
}
.table td:last-child { white-space: nowrap; }

@media (max-width: 39.99em) {
  .table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .table,
  .table tbody,
  .table tr,
  .table th,
  .table td { display: block; }
  .table tr { padding: 1rem 0; border-bottom: 2px solid var(--c-gehweg); }
  .table th,
  .table td { padding: .2rem 0; border: 0; }
  .table td:last-child { white-space: normal; }
  .table td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-family: var(--f-sign);
    font-weight: 600;
    font-size: .95rem;
    color: var(--c-text-2);
  }
}

/* 15 Hinweis mit Schild (Ferienkurs) ------------------------------------- */
.callout { display: grid; gap: var(--gap); align-items: start; }
.callout__sign { display: grid; justify-items: start; max-width: 30rem; }
.callout__sign .sign { width: 100%; }
.callout__sign .zusatz { margin-top: .6rem; }
.callout__text { display: grid; gap: 1.1rem; }

@media (min-width: 56em) {
  .callout { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(2rem, 1rem + 3vw, 4.5rem); }
}

.notice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .9rem;
  align-items: start;
  max-width: 46rem;
  padding: 1rem 1.25rem;
  background: var(--c-weiss);
  border: var(--linie) solid var(--c-schwarz);
  border-radius: var(--r-zusatz);
}
.notice__icon { width: 2rem; height: 2rem; }
.notice__title { font-family: var(--f-sign); font-weight: 600; font-size: 1.2rem; line-height: 1.2; margin-bottom: .2rem; }
.notice--achtung { border-color: var(--c-rot); }

/* 16 Streckenband (echte Reihenfolge) ------------------------------------ */
.route-steps { list-style: none; counter-reset: halt; display: grid; }
.route-steps > li { counter-increment: halt; position: relative; padding: 0 0 2.25rem 3.6rem; }
.route-steps > li::before {
  content: "";
  position: absolute;
  left: .45rem;
  top: 0;
  bottom: 0;
  width: 1.25rem;
  background:
    repeating-linear-gradient(to bottom, var(--c-weiss) 0 .9rem, transparent .9rem 1.8rem) center / 3px 100% no-repeat,
    var(--c-asphalt);
}
/* Die Haltemarke steht an der Satzkante, das Band läuft mittig durch sie. */
.route-steps > li::after {
  content: counter(halt);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  background: var(--c-weiss);
  color: var(--c-schwarz);
  border: var(--linie) solid var(--c-schwarz);
  border-radius: .3rem;
  font-family: var(--f-sign);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1;
}
.route-steps > li:last-child { padding-bottom: 0; }
.route-steps > li:last-child::before { bottom: auto; height: 1.5rem; }
.route-steps h3 { padding-top: .15rem; margin-bottom: .4rem; font-size: clamp(1.25rem, 1.15rem + .3vw, 1.4rem); }
.route-steps p { font-size: var(--fs-klein); line-height: 1.5; max-width: 40ch; }

@media (min-width: 72em) {
  .route-steps { grid-template-columns: repeat(var(--halte, 6), minmax(0, 1fr)); }
  .route-steps > li { padding: 3.5rem 1.5rem 0 0; }
  .route-steps > li::before {
    top: .5rem;
    bottom: auto;
    left: 0;
    right: 0;
    width: auto;
    height: 1.25rem;
    background:
      repeating-linear-gradient(to right, var(--c-weiss) 0 .9rem, transparent .9rem 1.8rem) center / 100% 3px no-repeat,
      var(--c-asphalt);
  }
  .route-steps > li::after { top: .05rem; left: 0; }
  .route-steps > li:last-child::before { height: 1.25rem; right: auto; width: 1.5rem; }
}

/* 17 Ortstafel und Kontaktfakten ----------------------------------------- */
.kontakt__grid { display: grid; gap: var(--gap); }
.kontakt__text { display: grid; gap: 1.1rem; align-content: start; justify-items: start; }

@media (min-width: 56em) {
  .kontakt__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: clamp(2rem, 1rem + 3vw, 4.5rem);
    align-items: start;
  }
}

.ortstafel { max-width: 30rem; }
.ortstafel__head { padding: 1.25rem var(--sign-pad) 1.35rem; text-align: center; }
.ortstafel__name {
  margin-inline: auto;
  font-family: var(--f-sign);
  font-weight: 700;
  font-size: clamp(2.6rem, 1.6rem + 4vw, 4.4rem);
  line-height: 1;
  letter-spacing: -.01em;
}
.ortstafel__sub,
.ortstafel__addr { margin-inline: auto; font-family: var(--f-sign); line-height: 1.25; }
.ortstafel__sub { font-weight: 600; font-size: 1.3rem; margin-top: .3rem; }
.ortstafel__addr { font-weight: 500; font-size: 1.1rem; margin-top: .6rem; }

.facts { width: 100%; border-top: 3px solid var(--c-asphalt); }
.facts > div {
  display: grid;
  grid-template-columns: minmax(6.5rem, 9rem) minmax(0, 1fr);
  gap: 1rem;
  padding: .8rem 0;
  border-bottom: 2px solid var(--c-gehweg);
}
.facts dt { font-family: var(--f-sign); font-weight: 600; font-size: 1.1rem; line-height: 1.4; }
.facts dd { overflow-wrap: anywhere; }

/* Auf dem Telefon steht die Frage über der Antwort, damit die Antwort die volle Breite hat. */
@media (max-width: 39.99em) {
  .facts > div { grid-template-columns: minmax(0, 1fr); gap: .2rem; }
}

/* 18 CTA ----------------------------------------------------------------- */
.cta {
  display: grid;
  gap: 1.25rem;
  justify-items: start;
  padding: clamp(1.5rem, 1rem + 2vw, 3rem);
  background: var(--c-gehweg);
  border-radius: var(--r-schild);
}
.cta h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); max-width: 24ch; }
.cta p { max-width: 52ch; }

@media (min-width: 56em) {
  .cta { grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 3rem; }
  .cta > .btn,
  .cta > .btn-row { grid-column: 2; grid-row: 1 / span 2; }
}

/* 19 Fließtext, Tafeln, FAQ ---------------------------------------------- */
.prose { max-width: var(--measure); }
.prose > * + * { margin-top: 1.05em; }
.prose h2 { margin-top: 2.2em; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); }
.prose h3 { margin-top: 1.8em; }
.prose > :first-child { margin-top: 0; }
.prose h2 + *,
.prose h3 + * { margin-top: .6em; }
.prose ul,
.prose ol { padding-left: 1.4rem; }
.prose ul { list-style: square; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--c-asphalt); font-weight: 600; }
.prose blockquote { border-left: 4px solid var(--c-asphalt); padding-left: 1.25rem; }

.tafeln { list-style: none; display: flex; flex-wrap: wrap; gap: .75rem; align-items: flex-start; }
.tafel {
  min-width: 8.5rem;
  max-width: 100%;
  padding: .6rem .95rem .7rem;
  background: var(--c-weiss);
  color: var(--c-schwarz);
  border: var(--linie) solid var(--c-schwarz);
  border-radius: var(--r-zusatz);
}
.tafel__wert { display: block; font-family: var(--f-sign); font-weight: 700; font-size: 1.6rem; line-height: 1.05; }
.tafel__text { display: block; margin-top: .2rem; font-size: .95rem; line-height: 1.35; max-width: 24ch; }

.faq { max-width: 52rem; border-top: 3px solid var(--c-asphalt); }
.faq details { border-bottom: 2px solid var(--c-gehweg); }
.faq summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1.6rem;
  gap: 1rem;
  align-items: center;
  min-height: 44px;
  padding: 1rem 0;
  list-style: none;
  font-family: var(--f-sign);
  font-weight: 600;
  font-size: clamp(1.2rem, 1.05rem + .5vw, 1.45rem);
  line-height: 1.2;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  width: 1.6rem;
  height: 1.6rem;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath d='M24 3 42 22H30.5v23h-13V22H6z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath d='M24 3 42 22H30.5v23h-13V22H6z'/%3E%3C/svg%3E") center / contain no-repeat;
  transform: rotate(90deg);
}
.faq details[open] summary::after { transform: rotate(180deg); }
.faq summary:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .2em; }
.faq__body { padding: 0 0 1.4rem; }
.faq__body > * + * { margin-top: .8em; }

/* 20 Formular ------------------------------------------------------------ */
.form { display: grid; gap: 1.25rem; max-width: 42rem; }
.form__grid { display: grid; gap: 1.25rem; }
.form__field { display: grid; gap: .4rem; align-content: start; }
.form__field > label,
.form__legend {
  font-family: var(--f-sign);
  font-weight: 600;
  font-size: 1.15rem;
  line-height: 1.2;
}
.form__hint { font-size: var(--fs-klein); color: var(--c-text-2); }

.form__input {
  width: 100%;
  min-height: 3.25rem;
  padding: .7rem .9rem;
  background: var(--c-weiss);
  color: var(--c-asphalt);
  border: 2px solid var(--c-asphalt);
  border-radius: var(--r-feld);
  font-size: 1.0625rem;
  line-height: 1.4;
}
.form__input::placeholder { color: var(--c-text-2); opacity: 1; }
.form__input:hover { border-color: var(--c-schwarz); }
.form__input:focus-visible { border-color: var(--c-schwarz); }
textarea.form__input { min-height: 9rem; resize: vertical; }
select.form__input {
  appearance: none;
  padding-right: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath transform='rotate(180 24 24)' d='M24 3 42 22H30.5v23h-13V22H6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .9rem center;
  background-size: 1.1rem;
}

.form__input[aria-invalid="true"],
.form__field.is-invalid .form__input,
.form__field[data-invalid="true"] .form__input {
  border-color: var(--c-rot);
  box-shadow: inset .35rem 0 0 var(--c-rot);
}

.form__error { color: var(--c-rot); font-weight: 500; font-size: var(--fs-klein); line-height: 1.4; }
.form__error:empty { display: none; }
.form__error:not(:empty)::before {
  content: "";
  display: inline-block;
  width: 1rem;
  height: .9rem;
  margin-right: .4rem;
  vertical-align: -.05em;
  background: var(--c-rot);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.form__check { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .75rem; align-items: start; }
.form__check input { width: 1.5rem; height: 1.5rem; margin: .1rem 0 0; accent-color: var(--c-schwarz); }
.form__check label { font-family: var(--f-text); font-weight: 400; font-size: var(--fs-klein); line-height: 1.5; }

.form__actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }

.form__status {
  max-width: 42rem;
  padding: .85rem 1rem .85rem 1.25rem;
  border-left: 6px solid var(--c-asphalt);
  background: var(--c-gehweg);
  font-weight: 500;
}
.form__status:empty { display: none; }
.form__status[data-state="pending"] {
  border-left-color: var(--c-asphalt);
  background:
    repeating-linear-gradient(to right, var(--c-asphalt) 0 .9rem, transparent .9rem 1.8rem) left bottom / 100% 3px no-repeat,
    var(--c-gehweg);
}
.form__status[data-state="success"] { border-left-color: var(--c-gruen); background: var(--c-weiss); color: var(--c-gruen); box-shadow: inset 0 0 0 2px var(--c-gruen); }
.form__status[data-state="error"] { border-left-color: var(--c-rot); background: var(--c-weiss); color: var(--c-rot); box-shadow: inset 0 0 0 2px var(--c-rot); }

@media (min-width: 40em) {
  .form__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form__field--wide { grid-column: 1 / -1; }
}

/* 21 Karte --------------------------------------------------------------- */
.map-frame {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--c-gehweg);
  border: var(--linie) solid var(--c-schwarz);
  border-radius: var(--r-zusatz);
}
.map-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.map-caption { margin-top: .6rem; font-size: var(--fs-klein); color: var(--c-text-2); }

@media (min-width: 56em) {
  .map-frame { aspect-ratio: 16 / 9; }
}

/* 22 Unterseiten: Seitenschild, Rechtstexte ------------------------------ */
.page-sign { --flow-top: clamp(.75rem, .25rem + 2vw, 2.25rem); }
.page-sign .sign { max-width: 56rem; }
.page-sign__row {
  display: grid;
  grid-template-columns: clamp(2.1rem, 1.6rem + 2vw, 3.4rem) minmax(0, 1fr);
  column-gap: clamp(.75rem, .5rem + 1vw, 1.5rem);
  align-items: center;
  padding: var(--sign-pad);
}
.page-sign__row--plain { grid-template-columns: minmax(0, 1fr); }
.page-sign__row .route__arrow { align-self: center; }
.page-sign h1 { font-size: var(--fs-seite); line-height: 1; }
.page-sign .zusatz { margin-top: .6rem; }
.page-sign__lead { margin-top: clamp(1.25rem, 1rem + 1vw, 2rem); }

.legal { max-width: var(--measure); }
.legal > * + * { margin-top: .9rem; }
.legal h2 { margin-top: 2.4rem; font-size: clamp(1.45rem, 1.2rem + 1vw, 1.9rem); }
.legal h3 { margin-top: 1.6rem; font-size: 1.25rem; }
.legal address { font-style: normal; }
.legal ul { padding-left: 1.4rem; list-style: square; }

.gap {
  padding: .05rem .35rem;
  background: var(--c-gehweg);
  border: 2px dashed var(--c-rot);
  border-radius: .2rem;
  font-weight: 500;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* 23 Fuß ----------------------------------------------------------------- */
.site-foot {
  padding-block: clamp(2.75rem, 1.75rem + 3vw, 4.25rem) 1.5rem;
  background: var(--c-asphalt);
  color: var(--c-weiss);
  /* Randlinie: die durchgezogene weiße Linie am Ende der Fahrbahn */
  box-shadow: inset 0 1rem 0 var(--c-asphalt), inset 0 calc(1rem + 4px) 0 var(--c-weiss);
}
.site-foot__grid { display: grid; gap: 2rem; }
.site-foot__name { font-family: var(--f-sign); font-weight: 700; font-size: 1.55rem; line-height: 1.1; margin-bottom: .6rem; }
.site-foot__title { font-family: var(--f-sign); font-weight: 600; font-size: 1.15rem; margin-bottom: .4rem; color: var(--c-asphalt-text); }
.site-foot ul { list-style: none; }
.site-foot li a { display: inline-flex; align-items: center; min-height: 44px; }
.site-foot a { color: var(--c-weiss); }
.site-foot a:hover { color: var(--c-schwarz); background: var(--c-gelb); }
.site-foot__meta {
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 2px solid rgba(255, 255, 255, .22);
  font-size: .875rem;
  color: var(--c-asphalt-text);
}

@media (min-width: 56em) {
  .site-foot__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr); }
}

/* 24 Styleguide ---------------------------------------------------------- */
.sg-block + .sg-block { margin-top: clamp(2.5rem, 2rem + 2vw, 4rem); }
.form + .sg-block { margin-top: 1rem; }
.sg-block > h3 { margin-bottom: 1rem; }
.sg-note { font-size: var(--fs-klein); color: var(--c-text-2); margin-top: .6rem; }
.sg-swatches { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: 1rem; }
.sg-swatch { border: 2px solid var(--c-asphalt); border-radius: var(--r-zusatz); overflow: hidden; }
.sg-swatch__chip { height: 5.5rem; background: var(--sw); border-bottom: 2px solid var(--c-asphalt); }
.sg-swatch__meta { padding: .6rem .8rem .75rem; font-size: .9rem; line-height: 1.4; }
.sg-swatch__meta strong { display: block; font-family: var(--f-sign); font-size: 1.15rem; }
.sg-scale { display: grid; gap: 1.25rem; }
.sg-scale > div { display: grid; gap: .3rem; padding-bottom: 1rem; border-bottom: 2px solid var(--c-gehweg); }
.sg-scale__meta { font-size: .875rem; color: var(--c-text-2); }
.sg-demo { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.sg-demo--stack { display: grid; gap: 1rem; justify-items: start; }
.sg-dark { padding: 1.25rem; background: var(--c-asphalt); color: var(--c-weiss); border-radius: var(--r-zusatz); }

.sg-scale p { hyphens: auto; }
.t-schild { font-family: var(--f-sign); font-weight: 700; font-size: var(--fs-schild); line-height: .96; letter-spacing: -.01em; }
.t-seite { font-family: var(--f-sign); font-weight: 700; font-size: var(--fs-seite); line-height: 1; }
.t-h2 { font-family: var(--f-sign); font-weight: 700; font-size: var(--fs-h2); line-height: 1.02; }
.t-ziel { font-family: var(--f-sign); font-weight: 600; font-size: var(--fs-ziel); line-height: 1.05; }
.t-h3 { font-family: var(--f-sign); font-weight: 600; font-size: var(--fs-h3); line-height: 1.12; }
.t-zusatz { font-family: var(--f-sign); font-weight: 600; font-size: var(--fs-zusatz); line-height: 1.2; }
.t-klein { font-size: var(--fs-klein); }

/* 25 Bewegung — nur auf Wunsch des Systems ------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  a,
  .btn,
  .route,
  .nav-toggle,
  .masthead__call,
  .form__input {
    transition: background-color .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
  }
  .faq summary::after { transition: transform .22s var(--ease); }

  /* Der eine orchestrierte Moment: Die Spurmarkierung wird aufgetragen. */
  .lanes.is-visible .lane + .lane::before {
    animation: markierung-quer 1.1s var(--ease) calc(var(--i, 1) * 170ms) both;
  }
  .form__status[data-state="pending"] { animation: markierung-laeuft 1s linear infinite; }
}

@media (prefers-reduced-motion: no-preference) and (min-width: 56em) {
  .lanes.is-visible .lane + .lane::before { animation-name: markierung-laengs; }
}

@keyframes markierung-quer {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}
@keyframes markierung-laengs {
  from { clip-path: inset(0 0 100% 0); }
  to { clip-path: inset(0 0 0 0); }
}
@keyframes markierung-laeuft {
  from { background-position: 0 100%, 0 0; }
  to { background-position: 1.8rem 100%, 0 0; }
}

/* 26 Druck --------------------------------------------------------------- */
@media print {
  .masthead, .nav-toggle, .site-foot nav, .skip-link { display: none; }
  .lanes { background: none; color: var(--c-asphalt); }
  .lane__note, .lanes .lead { color: var(--c-asphalt); }
}

/* === unterseiten: pfeilrichtung === */
/* Pfeilrichtung ohne style-Attribut: dieselbe Custom Property --dir wie auf der Startseite. */
.route__arrow--links-oben { --dir: -45deg; }
.route__arrow--links { --dir: -90deg; }
.route__arrow--rechts-oben { --dir: 45deg; }
.route__arrow--rechts { --dir: 90deg; }

/* === theorie: grosse spuren === */
/* Versatz der aufgetragenen Markierung ohne style-Attribut. */
.lanes__road > .lane:nth-child(2) { --i: 1; }
.lanes__road > .lane:nth-child(3) { --i: 2; }
.lanes__road > .lane:nth-child(4) { --i: 3; }
.lanes--gross .lane { gap: .6rem; }
.lanes--gross .lane__lang { font-size: clamp(1.85rem, 1.2rem + 2vw, 2.8rem); }
.lanes--gross .lane__phrase { font-weight: 500; }
.lanes--gross .lane__text { margin-top: .5rem; font-size: var(--fs-text); line-height: 1.62; color: var(--c-weiss); }
.lanes--gross .lane__text + .lane__text { margin-top: .25rem; }

/* === leistungen: vergleichszeile === */
/* Die Zeile „Theorie auf“ überspannt alle Spalten und darf umbrechen. */
.table td[colspan] { white-space: normal; }

/* === bf17: streckenband mit vier halten === */
.route-steps--4 { --halte: 4; }

/* === umschreibung: hinweis unter der checkliste === */
.checklist + .notice { margin-top: clamp(1.75rem, 1rem + 2vw, 2.75rem); }

/* === kontakt: karten-einwilligung === */
/* Inhalt des Karten-iframes, bevor Google Maps geladen wird: Gehweggrau, ein gelber Knopf. */
.map-consent {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: .8rem;
  min-height: 100vh;
  padding: clamp(1rem, 4vw, 2.5rem);
  background: var(--c-gehweg);
  font-size: var(--fs-klein);
  line-height: 1.5;
}
.map-consent__title { font-family: var(--f-sign); font-weight: 700; font-size: var(--fs-h3); line-height: 1.12; }
.map-consent p { max-width: 52ch; }

/* === umschreibung: gestapeltes sprachen-zusatzzeichen === */
/* Im schmalen Hinweis-Schild bleibt das Zusatzzeichen zweireihig wie auf dem Telefon. */
@media (min-width: 40em) {
  .zusatz--stack { display: block; }
  .zusatz--stack .zusatz__label { display: block; border-right: 0; border-bottom: 2px solid var(--c-schwarz); }
  .zusatz--stack .zusatz__langs { grid-template-columns: 1fr 1fr; }
  .zusatz--stack .zusatz__langs li + li { border-left: 0; }
  .zusatz--stack .zusatz__langs li:nth-child(even) { border-left: 2px solid var(--c-schwarz); }
  .zusatz--stack .zusatz__langs li:nth-child(n + 3) { border-top: 2px solid var(--c-schwarz); }
}
