/* Selbst gehostete Schriften — kein Google-Aufruf, kein Datenabfluss.
   Variable Schnitte: eine Datei deckt alle Gewichte ab. */

/* latin-ext */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 100% 125%;
  font-display: swap;
  src: url(../fonts/archivo-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 100% 125%;
  font-display: swap;
  src: url(../fonts/archivo-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(../fonts/jetbrains-mono-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(../fonts/jetbrains-mono-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext */
@font-face {
  font-family: 'Karla';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/karla-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: 'Karla';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/karla-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* =========================================================
   Fahrschule Kutlu — Design System
   Palette: Schweizer Strasseninfrastruktur
   Asphalt · Beton · Fussgängerstreifen-Gelb · Signalblau
   ========================================================= */

:root {
  /* Farbe — abgeleitet aus dem Logo (Tuerkis #0A9AA5 auf Schwarz) */
  --asphalt-900: #0e1013;   /* Header, Hero, dunkle Baender */
  --asphalt-800: #171a1f;
  --asphalt-700: #262b32;
  --asphalt-600: #39404a;

  --concrete-050: #fafaf9;
  --concrete-100: #f1f1ef;
  --concrete-200: #e3e3df;
  --concrete-300: #cbcbc5;

  --brand: #0a9aa5;         /* Logo-Tuerkis */
  --brand-hell: #17b7c3;    /* Hover */
  --brand-tief: #0a6e76;    /* Tuerkis-Text auf hellem Grund (AA-tauglich) */

  --ink: #0e1013;
  --ink-muted: #5b616c;
  --ink-onDark: #f1f1ef;
  --ink-onDark-muted: #9aa3ad;

  /* Raster */
  --wrap: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --band-y: clamp(4rem, 9vw, 7.5rem);
  --radius: 4px;

  /* Schrift — Archivo variabel (wdth/wght) fuer Titel, Karla fuer Fliesstext,
     JetBrains Mono fuer Labels, Preise und Daten. */
  --font-display: "Archivo", "Archivo Fallback", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Karla", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", "Consolas", monospace;

  /* Bewegung */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Reset / Basis ---------- */

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

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

body {
  margin: 0;
  background: var(--concrete-100);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 118, "wght" 800;
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

:focus-visible {
  outline: 3px solid var(--brand-tief);
  outline-offset: 3px;
  border-radius: 2px;
}

.band--dark :focus-visible,
.pagehead :focus-visible,
.site-header :focus-visible,
.site-footer :focus-visible { outline-color: var(--brand); }

/* ---------- Ladebildschirm ----------
   Deckt die Seite beim Start kurz ab, damit zuerst nur das Logo zu sehen
   ist. Ohne JavaScript blendet .intro{display:none} (im <noscript>) das
   sofort aus — die Seite ist dann von Anfang an normal sichtbar. */
.intro {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--asphalt-900);
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s var(--ease), visibility 0s linear 0.5s;
}
.intro.intro--weg {
  opacity: 0;
  visibility: hidden;
}
.intro__logo { width: clamp(200px, 42vw, 360px); height: auto; }

@media (prefers-reduced-motion: reduce) {
  .intro { display: none; }
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--brand);
  color: var(--ink);
  padding: 0.75rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
}
.skip-link:focus { left: 0; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Sprungziele nicht unter den klebenden Header rutschen lassen */
section[id], div[id] { scroll-margin-top: calc(var(--kopf-hoehe, 92px) + 18px); }

/* ---------- Layout-Primitive ---------- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.band { padding-block: var(--band-y); }
.band--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.band--dark { background: var(--asphalt-900); color: var(--ink-onDark); }
.band--asphalt { background: var(--asphalt-800); color: var(--ink-onDark); }
.band--brand { background: var(--brand); color: var(--ink); }
.band--light { background: var(--concrete-050); }

.band--dark h1, .band--dark h2, .band--dark h3,
.band--asphalt h1, .band--asphalt h2, .band--asphalt h3,
.pagehead h1, .pagehead h2 { color: #fff; }

/* ---------- Typografische Bausteine ---------- */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 1.25rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 3px;
  background: var(--brand);
  flex: none;
}
.band--dark .eyebrow,
.band--asphalt .eyebrow,
.pagehead .eyebrow,
.hero .eyebrow { color: var(--ink-onDark-muted); }
.band--brand .eyebrow { color: rgba(14, 16, 19, 0.72); }
.band--brand .eyebrow::before { background: var(--ink); }

.h-xl  { font-size: clamp(1.75rem, 1.05rem + 3.1vw, 2.875rem); }
.h-lg  { font-size: clamp(1.625rem, 1.05rem + 2.9vw, 3.5rem); }
.h-md  { font-size: clamp(1.5rem, 1.25rem + 1.1vw, 2rem); }
.h-sm  {
  font-size: 1.0625rem;
  font-variation-settings: "wdth" 105, "wght" 700;
  letter-spacing: 0;
}

.lead {
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
  line-height: 1.6;
  color: var(--ink-muted);
  max-width: 56ch;
}
.band--dark .lead,
.band--asphalt .lead,
.pagehead .lead,
.hero .lead { color: var(--ink-onDark-muted); }
.band--brand .lead { color: rgba(14, 16, 19, 0.80); }

.prose { max-width: 62ch; }
.prose p + p { margin-top: 0; }

/* Kategorie-Chip: technische Codes im Monospace, wie auf dem Ausweis */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.5rem 0.75rem;
  border: 1.5px solid currentColor;
  border-radius: 2px;
  white-space: nowrap;
}
.chip--fill {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--ink);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-variation-settings: "wdth" 108, "wght" 700;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
  padding: 0.95rem 1.6rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s var(--ease), background-color 0.18s var(--ease),
              color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.97); }

.btn--primary { background: var(--brand); color: var(--ink); border-color: var(--brand); }
.btn--primary:hover { background: var(--brand-hell); border-color: var(--brand-hell); }

.btn--ink { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--ink:hover { background: var(--asphalt-700); border-color: var(--asphalt-700); }

.btn--ghost { background: transparent; color: currentColor; border-color: currentColor; }
.btn--ghost:hover { background: currentColor; }
.band--dark .btn--ghost:hover,
.hero .btn--ghost:hover { color: var(--asphalt-900); }
.band--brand .btn--ghost:hover { color: var(--brand); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  margin-top: 2rem;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--asphalt-900);
  color: var(--ink-onDark);
  border-bottom: 1px solid var(--asphalt-700);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 80px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;      /* Trefferfläche, Logo bleibt gleich gross */
  text-decoration: none;
  flex: none;
}

/* Wortmarke ist das Logo selbst — keine nachgebaute Typo daneben. */
.brand img {
  height: 44px;
  width: auto;
  display: block;
}

.site-footer .brand img { height: 62px; }

.site-nav { display: flex; align-items: center; gap: 0.25rem; }

.site-nav a {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink-onDark-muted);
  padding: 0.5rem 0.85rem;
  border-radius: 3px;
  transition: color 0.16s var(--ease), background-color 0.16s var(--ease);
}
.site-nav a:hover { color: #fff; background: var(--asphalt-700); }

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  background: var(--brand);
  color: var(--ink);
  padding: 0.6rem 1rem;
  min-height: 44px;      /* Fingergrösse */
  border-radius: 3px;
  flex: none;
  transition: background-color 0.16s var(--ease);
}
.header-cta:hover { background: var(--brand-hell); }

.nav-toggle {
  display: none;
  min-height: 44px;      /* Fingergrösse — vorher nur 28px hoch */
  background: transparent;
  border: 1.5px solid var(--asphalt-600);
  border-radius: 3px;
  color: #fff;
  padding: 0.5rem 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background: var(--asphalt-900);
  color: var(--ink-onDark);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 80% at 78% 15%, rgba(10, 154, 165, 0.16), transparent 62%),
    radial-gradient(80% 60% at 8% 92%, rgba(10, 154, 165, 0.10), transparent 60%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding-block: clamp(3rem, 7vw, 6rem) clamp(3rem, 6vw, 5rem);
}

.hero__copy { max-width: none; }
.hero__title {
  color: #fff;
  font-variation-settings: "wdth" 108, "wght" 800;
}
.hero__title em {
  font-style: normal;
  color: var(--brand);
}
.hero__sub {
  margin-top: 1.5rem;
  font-size: clamp(1.0625rem, 1rem + 0.45vw, 1.3125rem);
  line-height: 1.55;
  color: var(--ink-onDark-muted);
  max-width: 46ch;
}

/* ---------- Sektions-Kopf ---------- */

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: clamp(1rem, 4vw, 3rem);
  align-items: end;
  margin-bottom: clamp(2.25rem, 4vw, 3.25rem);
}
.section-head > :last-child { margin-bottom: 0.35rem; }

/* ---------- Angebots-Karten ---------- */

.offer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 1.25rem;
}

.offer {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--concrete-200);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem 1.5rem;
  text-decoration: none;
  color: var(--ink);
  overflow: hidden;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease),
              border-color 0.2s var(--ease);
}
.offer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s var(--ease);
}
.offer:hover,
.offer:focus-visible {
  transform: translateY(-4px);
  border-color: var(--concrete-300);
  box-shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.45);
}
.offer:hover::before,
.offer:focus-visible::before { transform: scaleX(1); }

/* Der Schwerpunkt der Fahrschule wird staerker gezeigt als der Rest */
.offer--stark {
  background: var(--asphalt-900);
  border-color: var(--asphalt-900);
  color: var(--ink-onDark);
}
.offer--stark::before { transform: scaleX(1); }
.offer--stark .offer__title { color: #fff; }
.offer--stark .offer__cat { color: var(--brand); }
.offer--stark .offer__text { color: var(--ink-onDark-muted); }
.offer--stark:focus-visible { outline-color: var(--brand); }

.offer__cat {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-tief);
  margin-bottom: 0.9rem;
}
.offer__title { font-size: 1.375rem; margin-bottom: 0.65rem; }
.offer__text { color: var(--ink-muted); font-size: 0.9375rem; flex: 1; }
.offer__more {
  margin-top: 1.5rem;
  font-family: var(--font-display);
  font-variation-settings: "wdth" 108, "wght" 700;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.offer__more::after {
  content: "→";
  transition: transform 0.2s var(--ease);
}
.offer:hover .offer__more::after { transform: translateX(4px); }

/* ---------- Kurstermine ---------- */

.dates { border-top: 2px solid var(--asphalt-700); }

.date-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: clamp(0.75rem, 2.5vw, 2rem);
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--asphalt-700);
}

.date-row__date {
  grid-column: 1;
  grid-row: 1;
  font-family: var(--font-mono);
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.375rem);
  font-weight: 700;
  color: var(--brand);
  letter-spacing: -0.01em;
  min-width: 6.5ch;
}
.date-row__title {
  grid-column: 2;
  grid-row: 1;
  font-family: var(--font-display);
  font-variation-settings: "wdth" 108, "wght" 700;
  font-size: 1.0625rem;
  color: #fff;
}
.date-row__meta {
  grid-column: 3;
  grid-row: 1;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--ink-onDark-muted);
  white-space: nowrap;
}
.date-row__cta {
  grid-column: 4;        /* explizit, wie die anderen drei Spalten —
                             sonst greift sich der auto-plazierte Knopf
                             per Grid-Algorithmus die erste freie Spalte
                             und wirft Datum/Titel/Meta durcheinander */
  grid-row: 1;          /* bleibt oben rechts, auch wenn darunter
                           eine Beschreibung über alle Spalten läuft */
  font-family: var(--font-display);
  font-variation-settings: "wdth" 108, "wght" 700;
  font-size: 0.875rem;
  text-decoration: none;
  color: var(--asphalt-900);
  background: var(--brand);
  padding: 0.55rem 1rem;
  border-radius: 3px;
  white-space: nowrap;
  transition: background-color 0.16s var(--ease);
}
.date-row__cta:hover { background: var(--brand-hell); }

/* ---------- Split (Bild + Text) ---------- */

.split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.split--reverse { grid-template-columns: 1.15fr 0.85fr; }
.split--reverse .split__media { order: 2; }

.split__media { position: relative; }
.split__media img { border-radius: 6px; width: 100%; }
.split__media::after {
  content: "";
  position: absolute;
  inset: auto auto -14px -14px;
  width: 55%;
  height: 14px;
  background: var(--brand);
}

/* ---------- Faktenliste ---------- */

.facts {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--concrete-200);
}
.facts li {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr);
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--concrete-200);
}
.facts dt, .facts .facts__key {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding-top: 0.25rem;
}
.band--dark .facts { border-color: var(--asphalt-700); }
.band--dark .facts li { border-color: var(--asphalt-700); }
.band--dark .facts .facts__key { color: var(--ink-onDark-muted); }

/* ---------- Preise ---------- */

.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}
.price {
  background: #fff;
  border: 1px solid var(--concrete-200);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  color: var(--ink);   /* nicht vom Band erben — die Karte ist immer hell */
}
.price--feature { background: var(--asphalt-900); border-color: var(--asphalt-900); color: var(--ink-onDark); }
.price__label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.price--feature .price__label { color: var(--brand); }
.price__value {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 118, "wght" 800;
  font-size: clamp(2.25rem, 1.8rem + 1.8vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0.75rem 0 0.4rem;
}
.price--feature .price__value { color: #fff; }
/* Schlichter als die fette Zahl, aber ganz normaler Textfluss — kein
   inline-block, keine absolute Positionierung. Nur Gewicht (Punkt +
   Strich) und Laenge (nur Strich) werden angepasst. */
.price__suffix { font-variation-settings: "wdth" 100, "wght" 630; }
.price__strich {
  display: inline-block;
  transform: scaleX(0.55);
  transform-origin: left;
}
.price__note { font-size: 0.9375rem; color: var(--ink-muted); margin: 0; }
.price--feature .price__note { color: var(--ink-onDark-muted); }

/* ---------- Kontaktknöpfe ---------- */

.kontakt-knoepfe {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.kknopf {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 1.1rem 0.7rem 0.85rem;
  border: 1px solid var(--concrete-300);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.16s var(--ease), transform 0.16s var(--ease),
              box-shadow 0.16s var(--ease);
}
.kknopf:active { transform: translateY(0) scale(0.98); }
.kknopf:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -12px rgba(0, 0, 0, 0.4);
}

.kknopf__symbol {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 50%;
  background: var(--concrete-100);
  color: var(--ink);
  transition: background-color 0.16s var(--ease), color 0.16s var(--ease);
}
.kknopf:hover .kknopf__symbol { background: var(--brand); color: #fff; }

/* WhatsApp bekommt seine Signalfarbe — der wichtigste Weg zu Murat. */
.kknopf--wa .kknopf__symbol { background: var(--brand); color: #fff; }
.kknopf--wa:hover .kknopf__symbol { background: var(--brand-tief); }

.kknopf__text { display: flex; flex-direction: column; line-height: 1.25; }
.kknopf__text strong {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 108, "wght" 700;
  font-size: 0.9375rem;
  letter-spacing: 0;
}
.kknopf__text small {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-muted);
  margin-top: 0.1rem;
}

.band--dark .kknopf,
.band--asphalt .kknopf {
  background: var(--asphalt-800);
  border-color: var(--asphalt-700);
  color: var(--ink-onDark);
}
.band--dark .kknopf__symbol,
.band--asphalt .kknopf__symbol {
  background: var(--asphalt-700);
  color: var(--ink-onDark);
}
.band--dark .kknopf__text small,
.band--asphalt .kknopf__text small { color: var(--ink-onDark-muted); }

@media (max-width: 480px) {
  .kknopf { width: 100%; }
}

/* ---------- Formular ---------- */

.form { display: grid; gap: 1.1rem; }
.form__row { display: grid; gap: 1.1rem; grid-template-columns: 1fr 1fr; }

.field { display: grid; gap: 0.4rem; }
.field > label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
/* Auf dunklen Bändern braucht die Beschriftung die helle Variante —
   sonst steht sie bei 2.8:1 und ist kaum lesbar. */
.band--dark .field > label,
.band--asphalt .field > label,
.hero .field > label { color: var(--ink-onDark-muted); }
.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--concrete-300);
  border-radius: 3px;
  padding: 0.8rem 0.9rem;
  width: 100%;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--brand-tief);
  outline: none;
  box-shadow: 0 0 0 3px rgba(10, 154, 165, 0.22);
}
.field textarea { resize: vertical; min-height: 8rem; }
.form__hint { font-size: 0.8125rem; color: var(--ink-muted); margin: 0; }
.band--dark .form__hint,
.band--asphalt .form__hint { color: var(--ink-onDark-muted); }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--asphalt-900);
  color: var(--ink-onDark-muted);
  font-size: 0.9375rem;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: clamp(1.75rem, 4vw, 3rem);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2.5rem;
}
.site-footer h2 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 1rem;
  font-variation-settings: normal;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.15rem; }
.site-footer a {
  display: inline-block;
  padding-block: 0.6rem;   /* grössere Trefferfläche auf dem Handy */
  text-decoration: none;
  color: var(--ink-onDark-muted);
}
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.site-footer__brand p { max-width: 34ch; margin-top: 1.25rem; }

.site-footer__bottom {
  border-top: 1px solid var(--asphalt-700);
  padding-block: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}
.site-footer__bottom ul { display: flex; flex-wrap: wrap; gap: 1.25rem; align-items: center; }
.site-footer__bottom ul a { padding-block: 0.75rem; }

/* Urhebervermerk der Agentur — bewusst zurueckhaltend */
.made-by { color: var(--ink-onDark-muted); }
.made-by a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  padding-bottom: 1px;
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease);
}
.made-by a:hover { color: var(--brand); border-bottom-color: var(--brand); }

/* ---------- Innere Seitenköpfe ---------- */

.pagehead {
  background: var(--asphalt-900);
  color: var(--ink-onDark);
  position: relative;
  overflow: hidden;
}
.pagehead::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(90% 100% at 85% 0%, rgba(10, 154, 165, 0.17), transparent 60%);
}
.pagehead__inner {
  position: relative;
  padding-block: clamp(3rem, 6vw, 5rem) clamp(2.5rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: end;
}

/* ---------- Rechtstexte ---------- */

.legal { max-width: 68ch; }
.legal h2 {
  font-size: 1.25rem;
  margin-top: 2.75rem;
  margin-bottom: 0.75rem;
  padding-top: 1.25rem;
  border-top: 2px solid var(--brand);
}
.legal h2:first-of-type { margin-top: 0; }
.legal h3 { font-size: 1rem; margin-top: 1.75rem; margin-bottom: 0.5rem; }
.legal ul { padding-left: 1.25rem; margin: 0 0 1em; }
.legal li { margin-bottom: 0.35rem; }
.legal a { color: var(--brand-tief); text-underline-offset: 3px; }

/* Datum, bis wann die Rechtstexte gepflegt sind */
.rechtstext__stand {
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--concrete-200);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  color: var(--ink-muted);
}


/* ---------- Medienrahmen (Video, Fotos, Portraet) ---------- */
/* Startet mit [data-fehlt] = Platzhalter sichtbar. main.js entfernt das
   Attribut, sobald die Datei wirklich geladen ist. So sieht die Seite auch
   ohne fertige Fotos vollstaendig aus. */

.media {
  position: relative;
  border-radius: 6px;
  background: var(--asphalt-800);
  border: 1px solid var(--asphalt-700);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.media--video    { aspect-ratio: 16 / 9; width: 100%; }
.media--foto     { aspect-ratio: 4 / 3;  width: 100%; }
.media--portraet { aspect-ratio: 4 / 5;  width: 100%; }

.media__img,
.media__video { width: 100%; height: 100%; object-fit: cover; display: block; }

.media[data-fehlt] .media__img,
.media[data-fehlt] .media__video { display: none; }

.media--video .media__video { cursor: pointer; }

/* Ton-Schalter: kleines Badge unten rechts, nicht der grosse mittige
   Play-Knopf von frueher — das Video laeuft automatisch und durchgehend,
   hier geht es nur noch ums Ein-/Ausschalten des Tons. */
.media__ton {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: rgba(10, 14, 20, 0.55);
  backdrop-filter: blur(6px);
  color: #fff;
  cursor: pointer;
  transition: background-color 0.16s var(--ease), border-color 0.16s var(--ease);
}
.media__ton:hover { background: rgba(10, 14, 20, 0.75); border-color: rgba(255, 255, 255, 0.4); }
.media__ton svg { pointer-events: none; }
.media__ton-an[hidden], .media__ton-aus[hidden] { display: none; }
.media[data-fehlt] .media__ton { display: none; }

/* Dezenter Hinweis-Puls: macht sichtbar, dass sich der Ton einschalten
   laesst, solange niemand den Knopf beruehrt hat. Verschwindet per JS
   beim ersten Klick (main.js) — soll auffallen, nicht nerven.
   Basisfarbe wirkt auch ohne Animation (prefers-reduced-motion). */
.media__ton--hinweis { border-color: var(--brand); }
.js-anim .media__ton--hinweis { animation: ton-hinweis-puls 2.4s ease-out infinite; }
@keyframes ton-hinweis-puls {
  0%   { box-shadow: 0 0 0 0 rgba(10, 154, 165, 0.55); }
  70%  { box-shadow: 0 0 0 16px rgba(10, 154, 165, 0); }
  100% { box-shadow: 0 0 0 0 rgba(10, 154, 165, 0); }
}

.media__platzhalter {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  padding: clamp(1.25rem, 4vw, 2.25rem);
  /* oben Platz lassen, damit der Platzhalter nicht unter die Marke rutscht */
  padding-top: calc(14px + 2.25rem + clamp(1.25rem, 4vw, 2.25rem));
  text-align: center;
}
.media[data-fehlt] .media__platzhalter { display: flex; }

.media__platzhalter svg { color: var(--brand); opacity: 0.85; }
.media__platzhalter b {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 110, "wght" 700;
  font-size: 1rem;
  color: #fff;
}
.media__platzhalter span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.65;
  letter-spacing: 0.02em;
  color: var(--ink-onDark-muted);
  max-width: 36ch;
}

/* Im schmalen 16:9-Rahmen ist fuer den Dateipfad-Hinweis kein Platz.
   Die Ueberschrift genuegt — der Platzhalter verschwindet ohnehin,
   sobald das Video hinterlegt ist. */
@media (max-width: 560px) {
  .media--video .media__platzhalter span { display: none; }
}

.media__tag {
  position: absolute;
  top: 14px; left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(8, 9, 11, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 0.5rem 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  margin: 0;
}
.media__tag::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand);
  flex: none;
}

/* ---------- Mietflotte: Motorräder nebeneinander, je Front über Seite ---------- */

.foto-schaufenster {
  display: flex;
  gap: clamp(0.9rem, 3vw, 1.5rem);
  overflow-x: auto;
  padding-bottom: 0.25rem;
  /* Auf schmalen Screens bleiben die Spalten nebeneinander und man
     scrollt seitlich, statt sie zu stauchen oder zu stapeln. */
}

.foto-saeule {
  flex: 1 1 0;
  min-width: 150px;
  max-width: 280px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.foto-saeule__foto {
  display: block;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: var(--concrete-100);
  border: 1px solid var(--concrete-200);
}
.foto-saeule__foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.foto-saeule figcaption { text-align: center; }
.foto-saeule figcaption b {
  display: block;
  font-family: var(--font-display);
  font-variation-settings: "wdth" 110, "wght" 700;
  font-size: 0.9375rem;
  color: var(--ink);
}
.foto-saeule figcaption span {
  display: block;
  margin-top: 0.15rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-muted);
}
@media (max-width: 640px) {
  .foto-saeule { min-width: 130px; }
}

/* ---------- Badge (Hero-Ortsangabe) ---------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-onDark-muted);
  border: 1px solid var(--asphalt-700);
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  margin: 0 0 1.5rem;
}
.badge__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--brand);
  flex: none;
}

/* ---------- Aktiver Navigationspunkt beim Scrollen ---------- */

.site-nav a.is-active {
  color: #fff;
  box-shadow: inset 0 -3px 0 var(--brand);
  border-radius: 3px 3px 0 0;
}

/* ---------- WhatsApp-Button ---------- */

.btn svg { flex: none; }


/* ---------- Ausklappbare Bereiche ---------- */
/* Natives <details>: funktioniert ohne JavaScript, ist per Tastatur
   bedienbar und bleibt fuer Suchmaschinen im Dokument. */

.klapp {
  border: 1px solid var(--concrete-200);
  border-radius: var(--radius);
  background: #fff;
}
.band--light .klapp { background: #fff; }
.band--dark .klapp,
.band--asphalt .klapp {
  background: var(--asphalt-800);
  border-color: var(--asphalt-700);
}

.klapp + .klapp { margin-top: 0.85rem; }

.klapp__kopf {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 1.25rem;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-variation-settings: "wdth" 108, "wght" 700;
  font-size: 1rem;
  line-height: 1.35;
  color: var(--ink);
  border-radius: var(--radius);
  transition: color 0.16s var(--ease);
}
.klapp__kopf::-webkit-details-marker { display: none; }
.klapp__kopf::marker { content: ""; }
.klapp__kopf:hover { color: var(--brand-tief); }

.band--dark .klapp__kopf,
.band--asphalt .klapp__kopf { color: #fff; }
.band--dark .klapp__kopf:hover,
.band--asphalt .klapp__kopf:hover { color: var(--brand); }

.klapp__kopf:focus-visible {
  outline: 3px solid var(--brand-tief);
  outline-offset: -3px;
}
.band--dark .klapp__kopf:focus-visible { outline-color: var(--brand); }

/* Plus wird beim Oeffnen zum Minus */
.klapp__zeichen {
  position: relative;
  width: 24px;
  height: 24px;
  flex: none;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  opacity: 0.5;
  transition: transform 0.28s var(--ease), opacity 0.2s var(--ease);
}
.klapp__zeichen::before,
.klapp__zeichen::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: currentColor;
  transform: translate(-50%, -50%);
}
.klapp__zeichen::before { width: 10px; height: 1.6px; }
.klapp__zeichen::after  { width: 1.6px; height: 10px; transition: opacity 0.2s var(--ease); }

.klapp[open] > .klapp__kopf .klapp__zeichen { transform: rotate(180deg); opacity: 0.9; }
.klapp[open] > .klapp__kopf .klapp__zeichen::after { opacity: 0; }

.klapp__inhalt { padding: 0 1.25rem 1.35rem; }
.klapp[open] > .klapp__inhalt { animation: klapp-auf 0.28s var(--ease); }

@keyframes klapp-auf {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

/* Kurzhinweis neben der Klappzeile, z. B. "3 weitere Termine" */
.klapp__anzahl {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  font-variation-settings: normal;
}
.band--dark .klapp__anzahl { color: var(--ink-onDark-muted); }

/* Innenabstaende der eingeklappten Bausteine zuruecksetzen */
.klapp__inhalt > .price-grid,
.klapp__inhalt > .offer-grid { margin: 0; }
.klapp__inhalt > .facts { margin-top: 0; border-top: none; }
.klapp__inhalt > .dates { border-top: none; }

@media (max-width: 620px) {
  .klapp__kopf { padding: 0.95rem 1rem; font-size: 0.9375rem; }
  .klapp__inhalt { padding: 0 1rem 1.15rem; }
}

/* Schlanker Text-Aufklapper: erster Absatz bleibt sichtbar, Rest optional */
.mehr { margin-top: 0.15rem; }
.mehr__kopf {
  cursor: pointer;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--brand-tief);
}
.mehr__kopf:hover { color: var(--brand); }
.mehr__kopf::-webkit-details-marker { display: none; }
.mehr__kopf::marker { content: ""; }
.mehr__kopf::after {
  content: "";
  width: 7px; height: 7px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s var(--ease);
  margin-top: -3px;
}
.mehr[open] .mehr__kopf::after { transform: rotate(225deg); margin-top: 3px; }
.mehr__kopf .mehr__label-weniger { display: none; }
.mehr[open] .mehr__kopf .mehr__label-mehr { display: none; }
.mehr[open] .mehr__kopf .mehr__label-weniger { display: inline; }
.mehr__inhalt { margin-top: 0.6rem; animation: klapp-auf 0.28s var(--ease); }
.band--dark .mehr__kopf,
.band--asphalt .mehr__kopf { color: var(--brand); }

@media (max-width: 700px) {
  :root { --band-y: 3.1rem; }
  .section-head { margin-bottom: 1.75rem; }
  .band--tight { padding-block: 2.4rem; }
}


/* ---------- Kursliste und Buchung ---------- */

.kurs-info {
  color: var(--ink-onDark-muted);
  font-size: 0.9375rem;
  padding: 1.25rem 0;
  margin: 0;
}
.kurs-info a { color: var(--brand); }

/* Kein Abdunkeln beim Laden — der Hinweis muss lesbar bleiben. */

.kurs-frei {
  font-weight: 600;
  color: var(--brand);
}
.kurs-frei--knapp { color: #ffb03a; }

/* Kursbeschreibung aus dem Backoffice — Zeilenumbrüche bleiben erhalten */
.kurs-beschreibung {
  grid-column: 1 / -1;
  grid-row: 2;
  margin: 0.55rem 0 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--ink-onDark-muted);
  white-space: pre-line;
  max-width: 62ch;
}
.band--light .kurs-beschreibung { color: var(--ink-muted); }

/* Bild, das die Registernummer auf dem Lernfahrausweis zeigt */
.reg-bild {
  margin: 0.85rem 0 0;
  max-width: 380px;
}
.reg-bild img {
  width: 100%;
  height: auto;
  border: 1px solid var(--concrete-300);
  border-radius: var(--radius);
  background: #fff;
}
.reg-bild figcaption {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--ink-muted);
  margin-top: 0.5rem;
}
.band--dark .reg-bild figcaption,
.band--asphalt .reg-bild figcaption { color: var(--ink-onDark-muted); }

/* Für Menschen unsichtbar, für automatisierte Einträge sichtbar */
.honigtopf {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Einverständnis-Kästchen */
.zustimmung > label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  line-height: 1.55;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-muted);
  cursor: pointer;
}
.band--dark .zustimmung > label { color: var(--ink-onDark-muted); }
.zustimmung input[type="checkbox"] {
  width: 1.5rem;   /* 24px — Mindestgroesse nach WCAG 2.5.8 */
  height: 1.5rem;
  flex: none;
  margin-top: 0.15rem;
  accent-color: var(--brand);
}
.zustimmung a { color: var(--brand-tief); }
.band--dark .zustimmung a { color: var(--brand); }

/* Feldbezogene Fehlermeldung */
.feld-fehler {
  margin: 0.35rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #a3301c;
}
.band--dark .feld-fehler { color: #ff9d8a; }

.field [aria-invalid="true"] {
  border-color: #a3301c;
  box-shadow: 0 0 0 3px rgba(163, 48, 28, 0.14);
}
.band--dark .field [aria-invalid="true"] { border-color: #ff9d8a; }

/* Sammelmeldung unter dem Formular */
.form-meldung { margin: 0.85rem 0 0; font-size: 0.9375rem; }
.form-meldung:empty { display: none; }
.form-meldung--fehler {
  color: #a3301c;
  background: rgba(163, 48, 28, 0.08);
  border: 1px solid rgba(163, 48, 28, 0.35);
  border-radius: var(--radius);
  padding: 0.7rem 0.9rem;
}
.band--dark .form-meldung--fehler {
  color: #ff9d8a;
  background: rgba(255, 157, 138, 0.1);
  border-color: rgba(255, 157, 138, 0.4);
}

/* Bestätigung nach erfolgreicher Buchung */
.buchung-fertig {
  border: 2px solid var(--brand);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem;
  background: rgba(10, 154, 165, 0.08);
}
.buchung-fertig__titel {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 110, "wght" 800;
  font-size: 1.25rem;
  color: var(--brand);
  margin-bottom: 0.5rem;
}
.buchung-fertig__nr {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--ink-onDark-muted);
  margin-top: 0.75rem;
}

/* ---------- Reveal beim Scrollen ---------- */

/* Grundzustand: sichtbar. Erst wenn JS die Klasse .js-anim setzt, wird
   der Inhalt fuer die Einblend-Animation versteckt. Ohne JS (oder wenn
   der IntersectionObserver nicht ausloest) bleibt alles lesbar. */
.reveal { transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.js-anim .reveal {
  opacity: 0;
  transform: translateY(18px);
}
.js-anim .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 880px) {
  .nav-toggle { display: inline-block; order: 3; }

  .site-nav {
    order: 4;
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-bottom: 1rem;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 0.85rem; border-bottom: 1px solid var(--asphalt-700); }

  .site-header__inner {
    flex-wrap: wrap;
    padding-block: 0.7rem;
    min-height: 0;
    gap: 0.55rem;
  }
  .brand img { height: 32px; }
  .site-footer .brand img { height: 52px; }
  .header-cta { padding: 0.5rem 0.75rem; font-size: 0.75rem; min-height: 44px; }
  .nav-toggle { padding: 0.45rem 0.6rem; font-size: 0.6875rem; min-height: 44px; }
  .header-cta { order: 2; margin-left: auto; }
  .nav-toggle { margin-left: 0.5rem; }

  /* minmax(0,1fr) statt 1fr: sonst waechst die Spalte auf die
     min-content-Breite des Inhalts an und ragt aus dem Viewport. */
  .hero__inner,
  .pagehead__inner,
  .section-head,
  .split,
  .split--reverse { grid-template-columns: minmax(0, 1fr); }

  .hero__inner > *,
  .pagehead__inner > *,
  .section-head > *,
  .split > * { min-width: 0; }

  .split--reverse .split__media { order: 0; }
  .hero__copy { max-width: none; }
  .section-head > :last-child { margin-bottom: 0; }
}

@media (max-width: 620px) {
  /* Auf schmalen Schirmen untereinander: der Button bekommt eine eigene
     Zeile, damit auch längere Beschriftungen nicht seitlich rausragen. */
  .date-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.35rem;
    padding: 1.25rem 0;
  }
  /* Einspaltig: alle Kinder zurück auf die einzige Spalte und normalen
     Zeilenfluss, sonst legt der Browser für Spalte 2–4 zusätzliche
     implizite Spalten an, und die feste grid-row:1 von Datum/Titel/Meta
     stapelt sie übereinander statt untereinander. */
  .date-row__date,
  .date-row__title,
  .date-row__meta,
  .date-row__cta { grid-column: 1; grid-row: auto; }
  .date-row__cta {
    justify-self: start;
    white-space: normal;
    margin-top: 0.65rem;
  }
  /* Laengere Zeilen (z. B. die Ablauf-Schritte) muessen umbrechen duerfen. */
  .date-row__meta { white-space: normal; }
  .kurs-beschreibung { grid-row: auto; }

  .facts li { grid-template-columns: 1fr; gap: 0.15rem; }
  .form__row { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .btn { width: 100%; justify-content: center; }
}

@media (max-width: 400px) {
  /* Lange deutsche Komposita duerfen im Fliesstext auf schmalen
     Schirmen getrennt werden - Ueberschriften bleiben ungetrennt. */
  .lead, .prose p, .offer__text, .price__note { hyphens: auto; -webkit-hyphens: auto; }
}

/* ---------- Bewegung reduzieren ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js-anim .reveal { opacity: 1; transform: none; }
}

/* ---------- Druck ---------- */

@media print {
  .site-header, .nav-toggle { display: none; }
  body { background: #fff; color: #000; }
}


/* ---------- Einwilligung (Cookie-Banner) ---------- */
/* Liegt ueber dem Kopf (z-index 100) und dem Klapp-Menue, damit die
   Entscheidung nicht verdeckt werden kann. Beide Schaltflaechen sind
   gleich gross und gleich auffaellig — eine versteckte Ablehnung waere
   nach EDSA-Leitlinie unzulaessig. */

.einwilligung {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 200;
  background: var(--asphalt-800);
  border-top: 2px solid var(--brand);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.45);
  color: var(--ink-onDark);
  animation: einwilligung-auf 0.32s var(--ease);
}

@keyframes einwilligung-auf {
  from { transform: translateY(100%); }
  to   { transform: none; }
}

.einwilligung__inhalt {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(1.15rem, 3vw, 1.75rem) var(--gutter);
  display: grid;
  gap: clamp(1rem, 2.5vw, 2rem);
  align-items: center;
}

@media (min-width: 860px) {
  .einwilligung__inhalt {
    grid-template-columns: 1fr auto;
  }
}

.einwilligung__titel {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 108, "wght" 700;
  font-size: 1.0625rem;
  margin: 0 0 0.4rem;
  color: #fff;
}

.einwilligung__text p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.6;
  max-width: 62ch;
  color: var(--ink-onDark);
}

.einwilligung__text a {
  color: var(--brand);
  text-underline-offset: 3px;
}

.einwilligung__knoepfe {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Gleiche Groesse fuer beide Antworten — nur die Fuellung unterscheidet sie. */
.einwilligung__knopf {
  flex: 1 1 auto;
  justify-content: center;
  min-height: 44px;
  min-width: 11.5rem;
  font-size: 0.875rem;
  padding: 0.8rem 1.4rem;
}

.einwilligung__knopf--ja {
  background: var(--brand);
  color: var(--ink);
  border-color: var(--brand);
}
.einwilligung__knopf--ja:hover {
  background: var(--brand-hell);
  border-color: var(--brand-hell);
}

.einwilligung__knopf--nein {
  background: transparent;
  color: var(--ink-onDark);
  border-color: var(--asphalt-600);
}
.einwilligung__knopf--nein:hover {
  background: var(--asphalt-700);
  border-color: var(--concrete-300);
  color: #fff;
}

.einwilligung__knopf:active { transform: scale(0.97); }

@media (max-width: 479px) {
  .einwilligung__knopf { flex: 1 1 100%; }
  /* Auf kleinen Geraeten soll der Banner nicht den halben Bildschirm fuellen. */
  .einwilligung__inhalt { padding-top: 1rem; padding-bottom: 1rem; gap: 0.9rem; }
  .einwilligung__text p { font-size: 0.8125rem; line-height: 1.5; }
  .einwilligung__knoepfe { gap: 0.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .einwilligung { animation: none; }
}
