/* MW Kartracing – Gestaltung (Aufgabe 2)
   Mobil zuerst, Umbrueche bei 768 px und 1200 px. Kein Framework, keine Fremdquellen.
   Farben: Anthrazit #16181C, Weiss #FFFFFF, Hellgrau #F2F3F5, Rennrot #E3191B (nur Akzent). */

/* ---------- Schriften (selbst gehostet, SIL OFL, siehe /schrift/OFL.txt) ---------- */
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 500; font-display: swap; src: url('/schrift/barlow-condensed-500.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 600; font-display: swap; src: url('/schrift/barlow-condensed-600.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 700; font-display: swap; src: url('/schrift/barlow-condensed-700.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 400; font-display: swap; src: url('/schrift/barlow-400.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 500; font-display: swap; src: url('/schrift/barlow-500.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 600; font-display: swap; src: url('/schrift/barlow-600.woff2') format('woff2'); }

:root {
  --anthrazit: #16181C;
  --anthrazit-2: #1F2228;
  --weiss: #FFFFFF;
  --hellgrau: #F2F3F5;
  --rot: #E3191B;
  --text: #16181C;
  --text-leise: #545A64;      /* 6.9:1 auf Weiss */
  --hell-leise: #B4BAC4;      /* 9.0:1 auf Anthrazit */
  --linie: #DADDE2;
  --kopf: 'Barlow Condensed', 'Arial Narrow', 'Roboto Condensed', sans-serif;
  --text-schrift: 'Barlow', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --rand: 20px;
  --breite: 1280px;
  --abstand: 88px;
}
@media (min-width: 768px) { :root { --rand: 40px; --abstand: 120px; } }
@media (min-width: 1200px) { :root { --rand: 64px; --abstand: 152px; } }

/* ---------- Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--weiss); color: var(--text);
  font-family: var(--text-schrift); font-size: 1.0625rem; line-height: 1.65; font-weight: 400;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
}
img, svg, picture { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--rot); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--kopf); font-weight: 700; text-transform: uppercase; letter-spacing: .02em; line-height: .95; margin: 0; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: calc(var(--breite) + 2 * var(--rand)); margin: 0 auto; padding: 0 var(--rand); }

.sprung { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--weiss); color: var(--anthrazit); padding: 10px 16px; font-weight: 600; }
.sprung:focus { left: 8px; }

/* Ueberzeile mit roter 4-px-Linie */
.ueberzeile {
  display: flex; align-items: center; gap: 14px; margin: 0 0 20px;
  font-family: var(--kopf); font-weight: 600; font-size: .95rem; letter-spacing: .2em; text-transform: uppercase; line-height: 1.2;
  color: var(--text-leise);
}
.ueberzeile::before { content: ''; flex: none; width: 40px; height: 4px; background: var(--rot); }
.dunkel .ueberzeile, .held .ueberzeile { color: var(--hell-leise); }

/* Knoepfe */
.knoepfe { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 0 26px;
  font-family: var(--kopf); font-weight: 600; font-size: 1.0625rem; letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
  border: 2px solid transparent; transition: background-color .2s, color .2s, border-color .2s;
}
.knopf::after { content: ''; width: 8px; height: 8px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); margin-left: 2px; }
.knopf--rot { background: var(--rot); color: var(--weiss); }
.knopf--rot:hover { background: #C41416; }
.knopf--hell { border-color: rgba(255,255,255,.55); color: var(--weiss); }
.knopf--hell:hover { border-color: var(--weiss); background: rgba(255,255,255,.08); }
.knopf--dunkel { border-color: var(--anthrazit); color: var(--anthrazit); }
.knopf--dunkel:hover { background: var(--anthrazit); color: var(--weiss); }
.textlink {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--kopf); font-weight: 600; font-size: 1.0625rem; letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
  border-bottom: 2px solid var(--rot); padding-bottom: 4px;
}

/* ---------- Kopf ---------- */
.kopf { position: relative; z-index: 20; background: var(--anthrazit); color: var(--weiss); }
.kopf--ueber { position: absolute; top: 0; left: 0; right: 0; background: linear-gradient(to bottom, rgba(10,11,13,.72), rgba(10,11,13,0)); }
.kopf-innen { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.marke { display: block; flex: none; }
.marke img { width: 150px; height: auto; }
.hauptnav ul { list-style: none; margin: 0; padding: 0; }
.hauptnav a { text-decoration: none; }
.menue-knopf {
  display: none; align-items: center; gap: 12px; background: none; border: 0; color: var(--weiss); padding: 10px 0; cursor: pointer;
  font-family: var(--kopf); font-weight: 600; font-size: 1rem; letter-spacing: .18em; text-transform: uppercase;
}
.menue-striche { position: relative; width: 26px; height: 12px; }
.menue-striche::before, .menue-striche::after { content: ''; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; transition: transform .25s, top .25s; }
.menue-striche::before { top: 0; }
.menue-striche::after { top: 10px; }

/* Mobil: ohne JS steht die Navigation offen unter dem Logo; mit JS als Vollbild-Menue */
.hauptnav { font-family: var(--kopf); font-weight: 600; text-transform: uppercase; letter-spacing: .14em; }
.kopf-innen { flex-wrap: wrap; }
.hauptnav ul { display: flex; flex-wrap: wrap; gap: 4px 18px; padding-bottom: 12px; }
.js .kopf-innen { flex-wrap: nowrap; }
.js .menue-knopf { display: inline-flex; }
.js .hauptnav {
  position: fixed; inset: 0; z-index: 30; background: var(--anthrazit); padding: 112px var(--rand) 40px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  visibility: hidden; opacity: 0; transition: opacity .25s, visibility 0s .25s; overflow-y: auto;
}
.js .hauptnav ul { display: block; padding: 0; border-top: 1px solid rgba(255,255,255,.12); }
.js .hauptnav li { border-bottom: 1px solid rgba(255,255,255,.12); }
.js .hauptnav li a { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; font-size: 2rem; font-weight: 700; letter-spacing: .04em; line-height: 1.1; }
.js .hauptnav li a[aria-current="page"] { color: var(--weiss); }
.js .hauptnav li a[aria-current="page"]::after { content: ''; width: 24px; height: 4px; background: var(--rot); }
.menue-offen .hauptnav { visibility: visible !important; opacity: 1 !important; transition: opacity .25s !important; }
.menue-offen { overflow: hidden; }
.menue-offen .kopf .marke, .menue-offen .menue-knopf { position: relative; z-index: 40; }
.menue-offen .menue-striche::before { top: 5px; transform: rotate(45deg); }
.menue-offen .menue-striche::after { top: 5px; transform: rotate(-45deg); }
.sprache { display: inline-flex; align-items: center; gap: 10px; font-size: 1rem; letter-spacing: .18em; text-decoration: none; color: rgba(255,255,255,.86); }
.sprache:hover { color: var(--weiss); }

@media (min-width: 1200px) {
  .kopf-innen { min-height: 96px; flex-wrap: nowrap; }
  .marke img { width: 188px; }
  .js .menue-knopf { display: none; }
  .hauptnav, .js .hauptnav {
    position: static; inset: auto; background: none; padding: 0; flex-direction: row; align-items: center; gap: 40px;
    visibility: visible; opacity: 1; overflow: visible;
  }
  .hauptnav ul, .js .hauptnav ul { display: flex; gap: 34px; border: 0; padding: 0; }
  .js .hauptnav li { border: 0; }
  .hauptnav li a, .js .hauptnav li a { display: block; position: relative; padding: 8px 0; font-size: 1rem; font-weight: 600; letter-spacing: .16em; color: rgba(255,255,255,.86); }
  .hauptnav li a:hover, .js .hauptnav li a:hover { color: var(--weiss); }
  .hauptnav li a[aria-current="page"], .js .hauptnav li a[aria-current="page"] { color: var(--weiss); }
  .hauptnav li a[aria-current="page"]::after, .js .hauptnav li a[aria-current="page"]::after { content: ''; position: absolute; left: 0; bottom: -2px; width: 100%; height: 4px; background: var(--rot); }
  .sprache { padding-left: 32px; border-left: 1px solid rgba(255,255,255,.22); }
}

/* ---------- Aufmacher ---------- */
.held { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; color: var(--weiss); background: var(--anthrazit); overflow: hidden; }
.held picture, .held-bild { position: absolute; inset: 0; width: 100%; height: 100%; }
.held-bild { object-fit: cover; object-position: 58% 0%; }
.held::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(12,13,16,.97) 0%, rgba(12,13,16,.90) 38%, rgba(12,13,16,.35) 64%, rgba(12,13,16,.25) 82%, rgba(12,13,16,.55) 100%);
}
.held-inhalt { position: relative; z-index: 2; padding-top: 140px; padding-bottom: 40px; }
.held-marke { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.held-wappen { width: 52px; flex: none; filter: drop-shadow(0 6px 18px rgba(0,0,0,.45)); }
.held-name { margin: 0; padding-left: 16px; border-left: 1px solid rgba(255,255,255,.28); font-family: var(--kopf); text-transform: uppercase; line-height: 1.25; }
.held-name span { display: block; }
.held-name span:first-child { font-weight: 600; font-size: 1rem; letter-spacing: .16em; color: var(--weiss); }
.held-name span:last-child { font-weight: 500; font-size: .9rem; letter-spacing: .2em; color: var(--hell-leise); }
.held h1 { font-size: clamp(3.5rem, 17.5vw, 8.75rem); line-height: .84; letter-spacing: .005em; margin: 0 0 24px; }
.held h1 span { display: block; }
.held h1 .rot { color: var(--rot); }
.held-lead { max-width: 30ch; font-size: 1.1875rem; line-height: 1.5; color: rgba(255,255,255,.9); margin-bottom: 32px; padding-left: 18px; border-left: 4px solid var(--rot); }
.held .knoepfe .knopf { flex: 1 1 100%; }
.held-fuss { display: none; }
@media (min-aspect-ratio: 1/1) {
  .held-bild { object-position: 60% 50%; }
  .held::after {
    background:
      linear-gradient(90deg, rgba(12,13,16,.94) 0%, rgba(12,13,16,.80) 30%, rgba(12,13,16,.30) 58%, rgba(12,13,16,0) 78%),
      linear-gradient(to top, rgba(12,13,16,.75) 0%, rgba(12,13,16,0) 45%),
      linear-gradient(to bottom, rgba(12,13,16,.45) 0%, rgba(12,13,16,0) 22%);
  }
}
@media (min-width: 768px) {
  .held-inhalt { padding-bottom: 88px; }
  .held-wappen { width: 64px; }
  .held-marke { gap: 20px; margin-bottom: 32px; }
  .held-name { padding-left: 20px; }
  .held-lead { font-size: 1.3125rem; }
  .held .knoepfe .knopf { flex: 0 0 auto; }
}
@media (min-width: 1200px) {
  .held-inhalt { padding-bottom: 104px; }
  .held h1 { font-size: 8.75rem; }
  .held-fuss {
    display: flex; position: absolute; right: var(--rand); bottom: 104px; z-index: 2; align-items: center; gap: 16px; margin: 0;
    font-family: var(--kopf); font-weight: 600; font-size: .85rem; letter-spacing: .28em; text-transform: uppercase; color: rgba(255,255,255,.75);
    writing-mode: vertical-rl;
  }
  .held-fuss::after { content: ''; width: 1px; height: 72px; background: rgba(255,255,255,.5); }
}

/* ---------- Zahlenkacheln ---------- */
.zahlen { background: var(--anthrazit); color: var(--weiss); border-top: 1px solid rgba(255,255,255,.08); }
.zahlen-raster { display: grid; grid-template-columns: 1fr; }
.zahl { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 26px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.zahl:last-child { border-bottom: 0; }
.zahl-wert { order: 2; font-family: var(--kopf); font-weight: 700; font-size: 3.5rem; line-height: 1; letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.zahl-name { order: 1; font-family: var(--kopf); font-weight: 600; font-size: .95rem; letter-spacing: .2em; text-transform: uppercase; color: var(--hell-leise); }
@media (min-width: 768px) {
  .zahlen-raster { grid-template-columns: repeat(3, 1fr); }
  .zahl { display: block; padding: 48px 0 52px 32px; border-bottom: 0; border-left: 1px solid rgba(255,255,255,.12); position: relative; }
  .zahl:first-child { padding-left: 0; border-left: 0; }
  .zahl-wert { display: block; font-size: 5.25rem; margin-top: 10px; }
  .zahl-name { display: block; }
}
@media (min-width: 1200px) { .zahl { padding: 64px 0 68px 56px; } .zahl-wert { font-size: 6.5rem; } }

/* ---------- Abschnitte ---------- */
.abschnitt { padding: var(--abstand) 0; }
.abschnitt--grau { background: var(--hellgrau); }
.abschnitt-kopf { margin-bottom: 44px; }
.abschnitt h2 { font-size: clamp(2.5rem, 9vw, 4.5rem); }
.abschnitt-kopf--zeile { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; }

/* ---------- Countdown ---------- */
.countdown { background: var(--hellgrau); color: var(--text); padding: var(--abstand) 0; position: relative; overflow: hidden; }
.countdown-raster { display: grid; gap: 36px; }
.countdown-uhr { display: flex; align-items: baseline; gap: 16px; border-bottom: 4px solid var(--rot); padding-bottom: 20px; }
.countdown-zahl, .countdown-heute { font-family: var(--kopf); font-weight: 700; font-size: 8rem; line-height: .8; font-variant-numeric: tabular-nums; }
.countdown-einheit { font-family: var(--kopf); font-weight: 600; font-size: 1.25rem; letter-spacing: .18em; text-transform: uppercase; color: var(--text-leise); line-height: 1.3; }
.countdown h2 { font-size: clamp(2.25rem, 8vw, 4rem); margin-bottom: 18px; }
.countdown-daten { list-style: none; margin: 0 0 32px; padding: 0; display: grid; gap: 4px; font-size: 1.125rem; color: var(--text-leise); }
.countdown-datum { font-family: var(--kopf); font-weight: 600; font-size: 1.5rem; letter-spacing: .06em; text-transform: uppercase; color: var(--text); }
@media (min-width: 768px) {
  .countdown-raster { grid-template-columns: auto 1fr; gap: 72px; align-items: end; }
  .countdown-uhr { flex-direction: column; gap: 14px; border-bottom: 0; border-right: 4px solid var(--rot); padding: 0 64px 0 0; }
  .countdown-zahl, .countdown-heute { font-size: 12rem; }
}
@media (min-width: 1200px) { .countdown-zahl, .countdown-heute { font-size: 15rem; } }

/* ---------- Fahrer ---------- */
.fahrer-raster { display: grid; gap: 40px; }
.fahrer-bild { position: relative; }
.fahrer-bild img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.fahrer-bild::after { content: ''; position: absolute; left: 0; bottom: -4px; width: 96px; height: 4px; background: var(--rot); }
.fahrer h2 { font-size: clamp(2.75rem, 11vw, 5.5rem); margin-bottom: 24px; }
.fahrer-text { font-size: 1.1875rem; color: var(--text-leise); max-width: 36ch; margin-bottom: 36px; }
.datenblatt { margin: 0 0 40px; border-top: 1px solid var(--linie); }
.datenblatt div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--linie); }
.datenblatt dt { font-family: var(--kopf); font-weight: 600; font-size: .95rem; letter-spacing: .2em; text-transform: uppercase; color: var(--text-leise); }
.datenblatt dd { margin: 0; font-family: var(--kopf); font-weight: 700; font-size: 1.625rem; text-transform: uppercase; letter-spacing: .03em; }
@media (min-width: 768px) {
  .fahrer-raster { grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
}
@media (min-width: 1200px) { .fahrer-raster { gap: 120px; } }

/* ---------- Beitraege ---------- */
/* Mobil: waagerecht wischbar, ohne die Seite zu verbreitern */
.beitraege-raster {
  display: grid; grid-auto-flow: column; grid-auto-columns: 80%; gap: 16px; list-style: none; padding: 0 var(--rand) 8px; margin: 0 calc(-1 * var(--rand));
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--rand); scrollbar-width: none;
}
.beitraege-raster::-webkit-scrollbar { display: none; }
.beitrag { scroll-snap-align: start; }
.beitrag a { display: block; text-decoration: none; }
.beitrag-bild { overflow: hidden; background: var(--anthrazit); }
.beitrag-bild img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform .6s ease, opacity .3s; }
.beitrag a:hover img { transform: scale(1.04); opacity: .92; }
.beitrag-text { margin: 18px 0 8px; font-size: 1.0625rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.beitrag-datum { font-family: var(--kopf); font-weight: 600; font-size: .9rem; letter-spacing: .18em; text-transform: uppercase; color: var(--text-leise); }
@media (min-width: 768px) { .beitraege-raster { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 0; padding: 0; overflow: visible; } }
@media (min-width: 1200px) { .beitraege-raster { gap: 40px; } }
.instagram-hinweis { display: grid; gap: 28px; padding: 44px 28px; background: var(--weiss); border-top: 4px solid var(--rot); }
.instagram-hinweis h2 { font-size: clamp(2.25rem, 8vw, 3.75rem); max-width: 18ch; margin-bottom: 20px; }
.instagram-hinweis p { color: var(--text-leise); font-size: 1.1875rem; max-width: 40ch; margin: 0; }
.instagram-name { font-family: var(--kopf); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
@media (min-width: 768px) { .instagram-hinweis { grid-template-columns: 1fr auto; align-items: end; padding: 64px; gap: 48px; } }
@media (min-width: 1200px) { .instagram-hinweis { padding: 88px 96px; } }

/* ---------- Partner-Querband ---------- */
.partnerband { position: relative; color: var(--weiss); background: var(--anthrazit); overflow: hidden; }
.partnerband picture, .partnerband-bild { position: absolute; inset: 0; width: 100%; height: 100%; }
.partnerband-bild { object-fit: cover; object-position: 45% 60%; }
.partnerband::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(12,13,16,.96) 0%, rgba(12,13,16,.86) 55%, rgba(12,13,16,.62) 100%); }
.partnerband-inhalt { position: relative; z-index: 2; padding-top: var(--abstand); padding-bottom: var(--abstand); }
.partnerband h2 { font-size: clamp(3rem, 13vw, 7rem); margin-bottom: 24px; }
.partnerband p { max-width: 44ch; font-size: 1.1875rem; color: rgba(255,255,255,.88); margin-bottom: 36px; }
@media (min-width: 768px) {
  .partnerband::after { background: linear-gradient(270deg, rgba(12,13,16,.95) 0%, rgba(12,13,16,.86) 42%, rgba(12,13,16,.30) 72%, rgba(12,13,16,.15) 100%); }
  .partnerband-bild { object-position: 30% 62%; }
  .partnerband-inhalt > * { margin-left: 46%; }
}
@media (min-width: 1200px) { .partnerband-inhalt { padding-top: 168px; padding-bottom: 168px; } .partnerband-inhalt > * { margin-left: 52%; } }

/* ---------- Unterseiten (Aufgabe 3) ---------- */
/* Seitenkopf: dunkles Band unter der Kopfzeile */
.seitenkopf { position: relative; background: var(--anthrazit); color: var(--weiss); padding: 56px 0 64px; border-top: 1px solid rgba(255,255,255,.08); overflow: hidden; }
.seitenkopf::after { content: ''; position: absolute; right: -6%; top: -30%; width: 46%; height: 160%; background: linear-gradient(105deg, transparent 0 46%, rgba(227,25,27,.10) 46% 50%, transparent 50% 58%, rgba(255,255,255,.035) 58% 70%, transparent 70%); pointer-events: none; }
.seitenkopf .wrap { position: relative; z-index: 1; }
.seitenkopf h1 { font-size: clamp(2.875rem, 13vw, 7rem); line-height: .88; margin: 0 0 28px; max-width: 14ch; }
.seitenkopf-lead { max-width: 44ch; margin: 0; padding-left: 18px; border-left: 4px solid var(--rot); font-size: 1.1875rem; line-height: 1.5; color: rgba(255,255,255,.88); }
@media (min-width: 768px) { .seitenkopf { padding: 88px 0 96px; } .seitenkopf-lead { font-size: 1.3125rem; } }
@media (min-width: 1200px) { .seitenkopf { padding: 112px 0 120px; } }

.fliesstext { color: var(--text-leise); max-width: 60ch; }
.kontakt-wege .fahrer-text, .fahrer-raster .fahrer-text { max-width: 46ch; }
.hinweis { font-size: 1.1875rem; color: var(--text-leise); max-width: 52ch; margin: 0; }
.abschnitt h3 { font-size: 1.75rem; line-height: 1; letter-spacing: .03em; margin: 0 0 12px; }

/* Fahrer: Datenblatt kann mehr Zeilen haben */
.fahrer .fliesstext { margin-bottom: 1em; }
.fahrer .fliesstext + .datenblatt { margin-top: 36px; }

/* Zeitstrahl */
.zeit { list-style: none; margin: 0; padding: 0 0 0 28px; position: relative; display: grid; gap: 56px; }
.zeit::before { content: ''; position: absolute; left: 0; top: 8px; bottom: 8px; width: 2px; background: var(--linie); }
.zeit-eintrag { position: relative; display: grid; gap: 22px; }
.zeit-eintrag::before { content: ''; position: absolute; left: -35px; top: 2px; width: 16px; height: 16px; background: var(--hellgrau); border: 4px solid var(--anthrazit); }
.zeit-eintrag--jetzt::before { background: var(--rot); border-color: var(--rot); }
.zeit-bild { order: 2; position: relative; background: var(--anthrazit); }
.zeit-foto { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.zeit-text { order: 1; }
.zeit-jahr { margin: 0 0 6px; font-family: var(--kopf); font-weight: 700; font-size: 3.25rem; line-height: .9; letter-spacing: .01em; color: var(--rot); font-variant-numeric: tabular-nums; }
.zeit-text h3 { font-size: 2rem; margin-bottom: 12px; }
.zeit-text p:not(.zeit-jahr):not(.zeit-marke) { color: var(--text-leise); margin: 0; max-width: 38ch; }
.zeit-marke { display: inline-block; margin: 16px 0 0; padding: 6px 12px; background: var(--anthrazit); color: var(--weiss); font-family: var(--kopf); font-weight: 700; font-size: 1.375rem; letter-spacing: .06em; line-height: 1; }
@media (min-width: 768px) {
  .zeit { padding-left: 40px; gap: 72px; }
  .zeit-eintrag { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
  .zeit-eintrag::before { left: -49px; top: 50%; margin-top: -8px; }
  .zeit-bild, .zeit-text { order: 0; }
  .zeit-foto { aspect-ratio: 1 / 1; }
  .zeit-jahr { font-size: 4.5rem; }
}
@media (min-width: 1000px) {
  .zeit { padding-left: 0; }
  .zeit::before { left: 50%; margin-left: -1px; }
  .zeit-eintrag { grid-template-columns: minmax(0, 1fr) 120px minmax(0, 1fr); gap: 0; }
  .zeit-eintrag::before { left: 50%; margin-left: -8px; }
  .zeit-bild { grid-column: 1; justify-self: end; width: 100%; max-width: 440px; }
  .zeit-text { grid-column: 3; grid-row: 1; }
  .zeit-eintrag--gerade .zeit-bild { grid-column: 3; justify-self: start; }
  .zeit-eintrag--gerade .zeit-text { grid-column: 1; grid-row: 1; text-align: right; justify-self: end; }
  .zeit-eintrag--gerade .zeit-text p:not(.zeit-jahr):not(.zeit-marke) { margin-left: auto; }
  .zeit-jahr { font-size: 5.5rem; }
}

/* Saison: Kalender */
.termine { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--linie); }
.termin { display: grid; gap: 8px; padding: 28px 0; border-bottom: 1px solid var(--linie); }
.termin-datum { margin: 0; font-family: var(--kopf); font-weight: 700; font-size: 1.5rem; letter-spacing: .04em; text-transform: uppercase; color: var(--rot); line-height: 1.1; }
.termin-heute { display: inline-block; margin-left: 10px; padding: 2px 8px; background: var(--rot); color: var(--weiss); font-size: .9rem; letter-spacing: .14em; vertical-align: middle; }
.termin h3 { font-size: 1.75rem; margin: 0 0 6px; }
.termin-ort { margin: 0; color: var(--text-leise); }
@media (min-width: 768px) { .termin { grid-template-columns: 280px 1fr; gap: 40px; align-items: baseline; } }

/* Saison: Ergebnisse je Rennwochenende */
.lauf { background: var(--weiss); border-top: 4px solid var(--rot); }
.lauf + .lauf { margin-top: 24px; }
.lauf-kopf { padding: 28px 24px 24px; border-bottom: 1px solid var(--linie); }
.lauf-datum { margin: 0 0 10px; font-family: var(--kopf); font-weight: 600; font-size: .95rem; letter-spacing: .2em; text-transform: uppercase; color: var(--text-leise); }
.lauf-kopf h3 { font-size: clamp(1.75rem, 6vw, 2.5rem); margin: 0 0 8px; }
.lauf-ort { margin: 0; font-size: 1.125rem; color: var(--text-leise); }
.lauf-inhalt { padding: 8px 24px 28px; }
.lauf-inhalt > .hinweis { padding-top: 20px; }
.lauf-daten { display: grid; grid-template-columns: 1fr 1fr; margin: 0; }
.lauf-daten div { padding: 18px 0; border-bottom: 1px solid var(--linie); }
.lauf-daten div:nth-child(odd) { padding-right: 16px; }
.lauf-daten dt { font-family: var(--kopf); font-weight: 600; font-size: .85rem; letter-spacing: .2em; text-transform: uppercase; color: var(--text-leise); margin-bottom: 4px; }
.lauf-daten dd { margin: 0; text-transform: uppercase; font-family: var(--kopf); font-weight: 700; font-size: 1.75rem; line-height: 1.1; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.lauf-rennen { list-style: none; margin: 8px 0 0; padding: 0; }
.lauf-rennen li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--linie); }
.lauf-rennen li:last-child { border-bottom: 0; }
.lauf-rennen-name { font-family: var(--kopf); font-weight: 600; font-size: 1rem; letter-spacing: .2em; text-transform: uppercase; color: var(--text-leise); }
.lauf-rennen-wert { font-family: var(--kopf); font-weight: 700; font-size: 2.25rem; line-height: 1; letter-spacing: .02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lauf-highlight { margin: 20px 0 0; padding: 14px 18px; background: var(--hellgrau); border-left: 4px solid var(--rot); font-size: 1.0625rem; line-height: 1.5; color: var(--text); }
.hinweis--folgt a { color: inherit; text-decoration-color: var(--rot); text-decoration-thickness: 2px; overflow-wrap: anywhere; }
.lauf-rennen-wert--leise { font-size: 1.5rem; color: var(--text-leise); }
@media (min-width: 768px) {
  .lauf { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .lauf-kopf { padding: 40px; border-bottom: 0; border-right: 1px solid var(--linie); }
  .lauf-inhalt { padding: 20px 40px 32px; }
  .lauf-daten { grid-template-columns: repeat(4, minmax(0, auto)); gap: 0 24px; }
  .lauf-daten div:nth-child(odd) { padding-right: 0; }
}

/* Medien: Galerie */
.galerie-raster { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
.galerie-raster figure { margin: 0; }
.galerie-raster picture { overflow: hidden; background: var(--anthrazit); }
.galerie-foto { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .6s ease; }
.galerie-raster li:hover .galerie-foto { transform: scale(1.03); }
.galerie-raster figcaption { margin-top: 12px; font-size: .9375rem; line-height: 1.45; color: var(--text-leise); padding-left: 12px; border-left: 2px solid var(--rot); }
.galerie-foto-name { white-space: nowrap; }
.galerie-rechte { margin: 40px 0 0; font-size: .9375rem; color: var(--text-leise); }
@media (min-width: 768px) { .galerie-raster { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 24px; } }
@media (min-width: 1200px) { .galerie-raster { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 48px 32px; } }

/* Zwei Kacheln nebeneinander (Medien, Partner, Kontakt) */
.kacheln-zwei { display: grid; gap: 24px; }
.kachel { background: var(--weiss); padding: 40px 24px; border-top: 4px solid var(--anthrazit); }
.abschnitt:not(.abschnitt--grau) .kachel { background: var(--hellgrau); }
.kachel--rot { border-top-color: var(--rot); }
.kachel h2 { font-size: clamp(2.25rem, 8vw, 3.25rem); margin-bottom: 20px; }
.kachel p { color: var(--text-leise); font-size: 1.125rem; max-width: 44ch; }
.kachel .knoepfe { margin-top: 32px; }
@media (min-width: 768px) { .kacheln-zwei { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; } .kachel { padding: 56px 48px; } }
@media (min-width: 1200px) { .kachel { padding: 72px 64px; } }

/* Partner */
.einleitung-raster { display: grid; gap: 40px; align-items: center; }
.einleitung-bild { position: relative; max-width: 460px; }
.einleitung-bild img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.einleitung-bild::after { content: ''; position: absolute; left: 0; bottom: -4px; width: 96px; height: 4px; background: var(--rot); }
@media (min-width: 768px) { .einleitung-raster { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; } .einleitung-bild { justify-self: end; width: 100%; } }
@media (min-width: 1200px) { .einleitung-raster { gap: 120px; } }
.einleitung-text { margin: 0; max-width: 30ch; font-family: var(--kopf); font-weight: 600; font-size: clamp(1.75rem, 6vw, 3rem); line-height: 1.12; letter-spacing: .01em; color: var(--text); }
.leistungen-raster { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; background: var(--linie); border: 2px solid var(--linie); }
.leistung { background: var(--weiss); padding: 36px 28px 40px; }
.leistung-nr { display: block; font-family: var(--kopf); font-weight: 700; font-size: 3rem; line-height: 1; color: var(--rot); margin-bottom: 24px; font-variant-numeric: tabular-nums; }
.leistung h3 { font-size: 1.875rem; margin-bottom: 14px; }
.leistung p { margin: 0; color: var(--text-leise); }
@media (min-width: 768px) { .leistungen-raster { grid-template-columns: repeat(2, minmax(0, 1fr)); } .leistung { padding: 48px 40px 52px; } }
@media (min-width: 1200px) { .leistungen-raster { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.reichweite .wrap { padding-top: var(--abstand); padding-bottom: calc(var(--abstand) * .6); }
.reichweite-kopf h2 { font-size: clamp(2.5rem, 9vw, 4.5rem); color: var(--weiss); }
.reichweite .zahlen-raster { padding: 0; margin-top: 24px; }
.reichweite .zahl:first-child { padding-left: 0; }
.reichweite-stand { margin: 24px 0 0; font-size: .9375rem; color: var(--hell-leise); }
.hinweis--folgt { display: inline-flex; align-items: center; gap: 12px; font-family: var(--kopf); font-weight: 600; font-size: 1.0625rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text); }
.hinweis--folgt::before { content: ''; width: 10px; height: 10px; background: var(--rot); flex: none; }

/* Kontakt */
.kontakt-raster { display: grid; gap: 56px; }
.kontakt-label { margin: 40px 0 10px; font-family: var(--kopf); font-weight: 600; font-size: .95rem; letter-spacing: .2em; text-transform: uppercase; color: var(--text-leise); }
.kontakt-mail { margin: 0; font-family: var(--kopf); font-weight: 700; font-size: clamp(1.625rem, 7.4vw, 3rem); line-height: 1.1; letter-spacing: .01em; overflow-wrap: anywhere; }
.kontakt-mail a { text-decoration: none; border-bottom: 4px solid var(--rot); }
.kontakt-mail a:hover { color: var(--rot); }
.kontakt-social { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 16px 32px; }
.kontaktformular-kachel { align-self: start; }
.kontaktformular-kachel > p { margin-bottom: 28px; }

/* Kontaktformular */
.formular { display: grid; gap: 22px; }
.feld { display: grid; gap: 8px; }
.feld label, .feld-falle label { font-family: var(--kopf); font-weight: 600; font-size: .95rem; letter-spacing: .2em; text-transform: uppercase; color: var(--text-leise); }
.feld-pflicht { color: var(--rot); }
.feld input, .feld select, .feld textarea {
  width: 100%; min-height: 52px; padding: 12px 16px; border: 2px solid var(--anthrazit); border-radius: 0; background: var(--weiss);
  font-family: var(--text-schrift); font-size: 1.0625rem; line-height: 1.4; color: var(--text); -webkit-appearance: none; appearance: none;
}
.feld select {
  padding-right: 48px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--anthrazit) 50%), linear-gradient(135deg, var(--anthrazit) 50%, transparent 50%);
  background-position: calc(100% - 24px) 50%, calc(100% - 17px) 50%; background-size: 7px 7px; background-repeat: no-repeat;
}
.feld textarea { min-height: 180px; resize: vertical; }
.feld input:hover, .feld select:hover, .feld textarea:hover { border-color: var(--rot); }
.feld input:focus-visible, .feld select:focus-visible, .feld textarea:focus-visible { outline: 3px solid var(--rot); outline-offset: 2px; border-color: var(--anthrazit); }
/* Lockfeld: fuer Menschen und Screenreader verborgen (zusaetzlich aria-hidden, tabindex -1) */
.feld-falle { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.formular-hinweis, .formular-ohne-skript { margin: 0; font-size: .9375rem; color: var(--text-leise); max-width: none; }
.formular-hinweis a, .formular-ohne-skript a { color: var(--text); }
.kachel .formular-hinweis, .kachel .formular-ohne-skript { max-width: none; font-size: .9375rem; }
.formular .knoepfe { margin-top: 6px; }
.formular .knopf { cursor: pointer; width: 100%; }
@media (min-width: 480px) { .formular .knopf { width: auto; } }
.danke .fahrer-text { max-width: 44ch; margin-bottom: 32px; }

/* Fehlerseite von kontakt.php */
.fehlerseite { margin: 0; background: var(--hellgrau); }
.fehlerseite .wrap { padding-top: 56px; padding-bottom: 56px; max-width: 760px; }
.fehlerseite .kachel { background: var(--weiss); border-top-color: var(--rot); }
.fehlerseite h1 { font-size: clamp(2.25rem, 9vw, 3.5rem); margin-bottom: 20px; }
.fehlerseite .kachel p { max-width: none; }
@media (min-width: 900px) { .kontakt-raster { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 80px; } }

/* Rechtstexte */
.rechtstext-innen { max-width: 760px; }
.rechtstext-einleitung { font-size: 1.1875rem; color: var(--text-leise); margin-bottom: 8px; }
.rechtstext h2 { font-size: 1.625rem; line-height: 1.1; letter-spacing: .04em; margin: 52px 0 16px; padding-top: 28px; border-top: 1px solid var(--linie); }
.rechtstext p, .rechtstext li { color: #2E333B; }
.rechtstext ul { margin: 0 0 1em; padding-left: 1.2em; }
.rechtstext li { margin-bottom: .35em; }
.rechtstext li::marker { color: var(--rot); }
.rechtstext address { font-style: normal; margin: 0 0 1em; line-height: 1.7; }
.rechtstext a { overflow-wrap: anywhere; }
.rechtstext-stand { margin: 56px 0 0; padding-top: 24px; border-top: 1px solid var(--linie); font-family: var(--kopf); font-weight: 600; font-size: .95rem; letter-spacing: .2em; text-transform: uppercase; color: var(--text-leise) !important; }

/* ---------- Fuss ---------- */
.fuss { background: #0F1013; color: var(--hell-leise); padding: 72px 0 40px; font-size: .9375rem; }
.fuss-raster { display: grid; gap: 40px; }
.fuss-marke { display: flex; align-items: center; gap: 20px; }
.fuss-marke img:first-child { width: 52px; }
.fuss-marke img:last-child { width: 168px; }
.fuss ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; }
.fuss a { text-decoration: none; font-family: var(--kopf); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; font-size: .95rem; color: rgba(255,255,255,.86); }
.fuss a:hover { color: var(--weiss); }
.fuss-unten { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.fuss-unten p { margin: 0; }
@media (min-width: 768px) { .fuss-raster { grid-template-columns: auto 1fr; align-items: center; } .fuss ul { justify-content: flex-end; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
