/* =========================================================
   Kaufmann-Motorsport - Design-System (eine Datei für alle Seiten)
   Farben, Schriften, Layout, Komponenten
   ========================================================= */

/* ---- Selbst gehostete Schriften (nichts wird extern geladen) ---- */
@font-face {
  font-family: "Saira Condensed";
  src: url("../fonts/saira-condensed-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Saira Condensed";
  src: url("../fonts/saira-condensed-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("../fonts/barlow-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("../fonts/barlow-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("../fonts/barlow-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ---- Farb- und Basiswerte (aus dem Logo abgeleitet) ---- */
:root {
  --bg: #191d1b;           /* dunkles Anthrazit statt fast Schwarz */
  --surface: #222724;
  --surface-2: #2d332f;
  --deep: #121514;         /* die dunkelsten Bänder und der Fuß */
  --text: #f4f6f4;
  --muted: #a3aba6;
  --line: #3a413d;

  /* Marke: Grün und Gelb aus dem Logo */
  --green-logo: #008737;   /* exakt aus dem Logo */
  --green: #35cf70;        /* aufgehellt: Text, Links, Icons auf dunklem Grund */
  --green-btn: #0b7a34;    /* Buttonfläche mit weißer Schrift, ausreichend Kontrast */
  --green-btn-hover: #0a6a2d;
  --yellow: #fbda00;       /* zweiter Akzent: Zahlen, Marken, Hervorhebungen */
  --yellow-dim: #d7bb08;

  --accent: var(--green);        /* Rückwärtskompatibilität */
  --accent-hover: var(--green-btn-hover);

  --font-head: "Saira Condensed", "Arial Narrow", "Segoe UI", sans-serif;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;

  --wrap: 1220px;
  --wrap-wide: 1480px;
  --gap: clamp(1.5rem, 4vw, 3rem);
  --radius: 3px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 78px;
}

/* ---- Reset / Grundlagen ---- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; max-width: 100%; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
/* <picture> soll das Layout nicht verändern, die Regeln gelten dem img */
picture { display: contents; }
/* Wegen display:contents wird das source-Element sonst selbst zur Raster-
   oder Flexzelle und schiebt die Bilder in falsche Spalten. */
picture > source { display: none; }

/* Inline-Icons (per icon()-Helfer, ohne class) grundsätzlich klein halten */
svg:not([class]) {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
  vertical-align: -0.125em;
}

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.7rem, 7.5vw, 5.75rem); line-height: 0.92; }
h2 { font-size: clamp(1.9rem, 4.6vw, 3.25rem); line-height: 0.96; }
h3 { font-size: clamp(1.3rem, 2.7vw, 1.75rem); }
h4 { font-size: clamp(1.05rem, 2vw, 1.2rem); }

/* Sehr lange deutsche Wörter auf schmalen Bildschirmen trennen statt überlaufen lassen */
@media (max-width: 700px) {
  h1, h2, h3, h4 { hyphens: auto; overflow-wrap: break-word; }
}

p { margin: 0 0 1rem; }

/* Übergroße Display-Zeile für Hero-Bereiche */
.display {
  font-size: clamp(3rem, 11vw, 8rem);
  line-height: 0.86;
  letter-spacing: -0.01em;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Sprunglink für Tastatur / Screenreader */
.skip-link {
  position: fixed;
  left: 8px;
  top: -80px;
  background: var(--green-btn);
  color: #fff;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  padding: 0.7rem 1.1rem;
  border-radius: var(--radius);
  z-index: 300;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 10px; }

/* ---- Layout-Helfer ---- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1.15rem, 4vw, 2.25rem);
}
.wrap--wide { max-width: var(--wrap-wide); }
.wrap--narrow { max-width: 820px; }

.section { padding-block: clamp(4rem, 11vw, 8.5rem); }
.section--tight { padding-block: clamp(2rem, 5vw, 3.5rem); }
.section--alt { background: var(--surface); }
.section--dark { background: var(--deep); }
.section + .section--alt,
.section--alt + .section,
.section--dark + .section,
.section + .section--dark { border-top: 1px solid var(--line); }

.eyebrow {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
/* Balken im Logo-Verlauf: grün nach gelb */
.eyebrow::before {
  content: "";
  width: 34px;
  height: 3px;
  background: linear-gradient(to right, var(--green) 0%, var(--green) 45%, var(--yellow) 55%, var(--yellow) 100%);
  display: inline-block;
  flex-shrink: 0;
}
/* In der Eyebrow reicht der Balken als Markierung, Icons dort ausblenden */
.eyebrow svg { display: none; }

.lead {
  font-size: clamp(1.15rem, 2.3vw, 1.45rem);
  line-height: 1.55;
  color: var(--text);
  max-width: 62ch;
}

.muted { color: var(--muted); }
.center { text-align: center; }
.mx-auto { margin-inline: auto; }
.maxw-60 { max-width: 60ch; }

/* ---- Buttons ---- */
.btn {
  --btn-bg: var(--green-btn);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  font-size: 0.98rem;
  padding: 0.95rem 1.8rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bg);
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn:hover { background: var(--green-btn-hover); border-color: var(--green-btn-hover); transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; transition: transform 0.2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  border-color: var(--line);
}
.btn--ghost:hover {
  --btn-bg: transparent;
  background: var(--surface-2);
  border-color: var(--muted);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.5rem;
}

/* Textlink mit Pfeil */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
  transition: gap 0.15s ease, color 0.15s ease;
}
.arrow-link:hover { gap: 0.75rem; color: var(--accent); }
.arrow-link svg { width: 16px; height: 16px; }

/* ---- Kopf / Navigation ---- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), backdrop-filter 0.3s var(--ease);
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(18,21,20,0.88), rgba(18,21,20,0));
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(20, 24, 22, 0.94);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}
.site-header.is-scrolled::before { opacity: 0; }
/* Seiten ohne Vollbild-Hero brauchen Abstand unter dem festen Kopf */
body:not(.has-hero) main { padding-top: var(--header-h); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
}
.brand__logo {
  display: block;
  height: 50px;
  width: auto;
  transition: height 0.3s var(--ease);
}
.site-header.is-scrolled .brand__logo { height: 42px; }
@media (max-width: 1200px) { .brand__logo { height: 46px; } }
@media (max-width: 480px) { .brand__logo { height: 40px; } }

/* =========================================================
   NAVIGATION
   Grundregel: nichts bewegt sich horizontal. Kein Menüinhalt
   verlässt den sichtbaren Bereich. Aufklappen läuft rein
   vertikal über Höhe und Deckkraft.
   ========================================================= */
.nav__links {
  display: flex;
  align-items: stretch;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__links li { display: flex; }

/* Ein Menüpunkt */
.nav__link {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius);
  text-decoration: none;
  color: #cbd2cd;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  font-size: 0.86rem;
  isolation: isolate;
  transition: color 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.3s var(--ease);
}
.nav__label { display: block; white-space: nowrap; }

/* dünner Balken unter dem aktiven Punkt, wächst aus der Mitte */
.nav__link::after {
  content: "";
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.3rem;
  height: 2px;
  background: linear-gradient(to right, var(--green), var(--yellow));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.28s var(--ease);
}
.nav__link:hover,
.nav__link:focus-visible { color: #fff; }
.nav__link:hover::after,
.nav__link:focus-visible::after,
.nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: #fff; }

/* Dezenter Schein bei Hover und Fokus */
.nav__link::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -1;
  border-radius: calc(var(--radius) + 3px);
  background: radial-gradient(120% 120% at 50% 100%, rgba(53, 207, 112, 0.22), rgba(53, 207, 112, 0) 70%);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.nav__link:hover::before,
.nav__link:focus-visible::before { opacity: 1; }

/* Beschreibung: im Ruhezustand zu, klappt nach unten auf */
.nav__desc {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transform: translateY(-4px);
  transition:
    grid-template-rows 0.3s var(--ease),
    opacity 0.25s var(--ease),
    transform 0.3s var(--ease),
    margin-top 0.3s var(--ease);
  font-family: var(--font-body);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--muted);
  margin-top: 0;
}
.nav__desc > span { overflow: hidden; min-height: 0; display: block; }

.nav__link:hover .nav__desc,
.nav__link:focus-visible .nav__desc,
.nav__link.is-open .nav__desc {
  grid-template-rows: 1fr;
  opacity: 1;
  transform: translateY(0);
  margin-top: 0.4rem;
}
.nav__link:hover .nav__desc { color: #cbd2cd; }

/* Kurzer Aktivierungsimpuls beim Klick: gelb nach grün, dann Seitenwechsel */
.nav__link.is-activating { color: #fff; }
.nav__link.is-activating::before {
  opacity: 1;
  background: radial-gradient(120% 140% at 50% 100%, rgba(251, 218, 0, 0.5), rgba(53, 207, 112, 0.3) 45%, rgba(53, 207, 112, 0) 75%);
  animation: navPulse 0.42s var(--ease) forwards;
}
@keyframes navPulse {
  0% { inset: -2px; opacity: 0.6; }
  55% { inset: -8px; opacity: 1; }
  100% { inset: -12px; opacity: 0; }
}
.nav__link.is-activating::after { transform: scaleX(1); }

/* Auf der Desktop-Leiste ist kein Platz für Beschreibungen unter jedem Punkt */
@media (min-width: 1241px) {
  .nav__link .nav__desc { display: none; }
  .nav__link { padding-block: 0.6rem; }
}

.nav__panel {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.nav__cta { flex-shrink: 0; }
.nav__cta .btn { padding: 0.55rem 1rem; font-size: 0.85rem; }

/* Eigenstaendige mobile Menuestruktur (Accordion). Auf der Desktop-Breite
   unsichtbar, die Desktop-Leiste .nav__links bleibt dort unveraendert. */
.mnav { display: none; }

.nav__toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  color: var(--text);
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav__toggle:hover { border-color: var(--green); background: rgba(255, 255, 255, 0.05); }
.nav__toggle svg { width: 22px; height: 22px; }
.nav__toggle .icon-close { display: none; }
.nav__toggle[aria-expanded="true"] .icon-open { display: none; }
.nav__toggle[aria-expanded="true"] .icon-close { display: block; }

/* ---- Menü unter 1240px: eigener Durchgang, rein vertikal ---- */
@media (max-width: 1240px) {
  .nav__toggle { display: inline-flex; }
  .nav__panel {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    width: 100%;
    max-width: 100vw;
    background: #141817;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s var(--ease), visibility 0s linear 0.28s;
    padding: 1.75rem clamp(1.15rem, 5vw, 2.25rem) 3rem;
    overflow-y: auto;
    overscroll-behavior: contain;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
  }
  .nav__panel.is-open {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.28s var(--ease);
  }

  /* Die Desktop-Leiste wird auf Mobile durch .mnav (Accordion) ersetzt */
  .nav__links { display: none; }

  .nav__link {
    padding: 0.85rem 0.9rem;
    font-size: 1.15rem;
    letter-spacing: 0.02em;
    border-radius: var(--radius);
    line-height: 1.2;
  }
  .nav__link::after { left: 0.9rem; right: auto; width: 42px; bottom: 0.5rem; transform-origin: left; }

  /* ---- Mobile-Accordion: maximal sechs Hauptpunkte plus Kontakt-Knopf ----
     Jeder geschlossene Punkt soll nur so hoch sein wie Text + Innenabstand,
     keine zusaetzlichen festen Hoehen oder min-height-Werte. */
  .mnav { display: flex; flex-direction: column; list-style: none; margin: 0; padding: 0; }
  .mnav__item { border-bottom: 1px solid var(--line); }
  .mnav__row { display: flex; align-items: stretch; gap: 0.25rem; }
  .mnav__link { flex: 1; min-width: 0; }

  /* Eigener Tipp-Bereich fürs Auf-/Zuklappen, getrennt vom eigentlichen
     Link, damit ein Antippen nie beides gleichzeitig auslöst. Die Höhe
     folgt per align-items:stretch automatisch der Zeile, kein eigenes
     min-height noetig. */
  .mnav__toggle {
    flex-shrink: 0;
    width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 0;
    color: var(--muted);
    cursor: pointer;
  }
  .mnav__toggle svg { width: 18px; height: 18px; transition: transform 0.25s var(--ease), color 0.25s var(--ease); }
  .mnav__toggle[aria-expanded="true"] svg { transform: rotate(180deg); color: var(--green); }
  .mnav__item.is-current > .mnav__row .mnav__link { color: #fff; }

  /* Untermenü: zu im Ruhezustand, klappt rein vertikal auf. max-height
     statt grid-template-rows: 0fr/1fr, weil Letzteres bei aktivem
     "reduzierte Bewegung" (transition-duration wird dann auf nahe 0
     erzwungen) nicht zuverlaessig auf den Zielwert aufloest. 480px deckt
     das laengste Untermenue (Leistungen, 5 Punkte) komfortabel ab. */
  .mnav__sub {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.3s var(--ease), opacity 0.25s var(--ease), margin 0.3s var(--ease);
  }
  .mnav__sub.is-open { max-height: 480px; opacity: 1; margin-block: 0.15rem 0.5rem; }
  .mnav__sublist {
    min-height: 0;
    overflow: hidden;
    list-style: none;
    margin: 0 0 0 0.9rem;
    padding: 0;
    border-left: 2px solid var(--line);
  }
  .mnav__sublink {
    display: block;
    padding: 0.5rem 0.7rem 0.5rem 0.9rem;
    color: var(--muted);
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.25;
    border-radius: var(--radius);
  }
  .mnav__sublink:hover,
  .mnav__sublink:focus-visible { color: #fff; background: rgba(255, 255, 255, 0.05); }
  .mnav__sublink[aria-current="page"] { color: var(--green); }
  .mnav__sublink.is-activating { color: #fff; background: rgba(53, 207, 112, 0.15); }

  /* Einträge blenden gestaffelt ein, nur vertikal */
  .nav__panel.is-open .mnav > li,
  .nav__panel.is-open .nav__cta {
    animation: navIn 0.42s var(--ease) both;
  }
  .nav__panel.is-open .mnav > li:nth-child(1) { animation-delay: 0.04s; }
  .nav__panel.is-open .mnav > li:nth-child(2) { animation-delay: 0.08s; }
  .nav__panel.is-open .mnav > li:nth-child(3) { animation-delay: 0.12s; }
  .nav__panel.is-open .mnav > li:nth-child(4) { animation-delay: 0.16s; }
  .nav__panel.is-open .mnav > li:nth-child(5) { animation-delay: 0.2s; }
  .nav__panel.is-open .mnav > li:nth-child(6) { animation-delay: 0.24s; }
  .nav__panel.is-open .nav__cta { animation-delay: 0.28s; }
}
@keyframes navIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* ---- Untermenü ---- */
.nav__item { position: relative; }
.nav__item > .nav__link .nav__label { display: inline-flex; align-items: center; gap: 0.4rem; }
.nav__item > .nav__link .nav__label::after {
  content: "";
  width: 5px;
  height: 5px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  opacity: 0.6;
}

.mega {
  position: absolute;
  top: 100%;
  left: 0;
  transform: translateY(6px);
  min-width: 440px;
  max-width: min(560px, calc(100vw - 2rem));
  background: #1b201d;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.85rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  display: grid;
  gap: 0.15rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0s linear 0.22s;
}
/* Untermenüs weiter rechts nach innen ziehen, damit nichts aus dem Bild läuft */
.nav__links li:nth-last-child(-n + 3) .mega { left: auto; right: 0; }

.nav__item:hover .mega,
.nav__item:focus-within .mega {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
}

.mega__link {
  position: relative;
  display: block;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  isolation: isolate;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.mega__title {
  display: block;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.92rem;
  font-weight: 600;
}
.mega__desc {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transform: translateY(-4px);
  font-family: var(--font-body);
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--muted);
  transition:
    grid-template-rows 0.28s var(--ease),
    opacity 0.22s var(--ease),
    transform 0.28s var(--ease),
    margin-top 0.28s var(--ease);
  margin-top: 0;
  overflow: hidden;
}
.mega__desc > * { min-height: 0; }
.mega__link:hover .mega__desc,
.mega__link:focus-visible .mega__desc,
.mega__link[aria-current="page"] .mega__desc {
  grid-template-rows: 1fr;
  opacity: 1;
  transform: translateY(0);
  margin-top: 0.2rem;
}
.mega__link::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: var(--radius);
  background: linear-gradient(to right, rgba(53, 207, 112, 0.16), rgba(53, 207, 112, 0));
  opacity: 0;
  transition: opacity 0.22s var(--ease);
}
.mega__link:hover::before,
.mega__link:focus-visible::before { opacity: 1; }
.mega__link:hover { color: #fff; }
.mega__link.is-activating::before {
  opacity: 1;
  background: linear-gradient(to right, rgba(251, 218, 0, 0.32), rgba(53, 207, 112, 0.2) 60%, rgba(53, 207, 112, 0));
}

@media (max-width: 1240px) {
  .mega {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    min-width: 0;
    max-width: none;
    box-shadow: none;
    border: 0;
    background: transparent;
    padding: 0.35rem 0 0.9rem 0.9rem;
    border-left: 2px solid var(--line);
    margin: 0.35rem 0 0.75rem;
  }
  .mega__link { padding: 0.6rem 0.6rem; color: var(--muted); }
  .mega__title { font-size: 1rem; }
  .nav__item > .nav__link .nav__label::after { display: none; }
  @media (hover: none) {
    .mega__desc { grid-template-rows: 1fr; opacity: 1; transform: none; margin-top: 0.2rem; }
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav__panel { transition: none; }
  .nav__panel.is-open .nav__links li,
  .nav__panel.is-open .nav__cta { animation: none; }
  .nav__link.is-activating::before { animation: none; }
  .nav__desc, .mega__desc { transition: opacity 0.01ms; transform: none; }
  .nav__link:hover .nav__desc,
  .nav__link:focus-visible .nav__desc,
  .nav__link.is-open .nav__desc,
  .mega__link:hover .mega__desc,
  .mega__link:focus-visible .mega__desc { transform: none; }
}

/* ---- Hero: großformatiges Bild mit Text darüber ---- */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  min-height: clamp(520px, 82vh, 900px);
  display: flex;
  align-items: flex-end;
  isolation: isolate;
}
.hero--sub { min-height: clamp(380px, 56vh, 620px); }

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.06);
  animation: heroZoom 14s var(--ease) forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }

.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, var(--bg) 2%, rgba(25,29,27,0.84) 32%, rgba(25,29,27,0.44) 62%, rgba(25,29,27,0.5) 100%),
    linear-gradient(to right, rgba(25,29,27,0.9) 0%, rgba(25,29,27,0.38) 55%, rgba(25,29,27,0.16) 100%);
}

.hero__inner {
  width: 100%;
  padding-block: calc(var(--header-h) + clamp(2rem, 6vw, 4rem)) clamp(3rem, 9vw, 6.5rem);
  position: relative;
}
.hero__title { margin-bottom: 0.35em; max-width: 16ch; }
.hero__title .accent { color: var(--green); }
.hero .lead { max-width: 54ch; color: #dfe4e0; }
.hero .btn-row { margin-top: 2rem; }

/* feine Linie unten links als Motorsport-Detail */
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.14);
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.76rem;
  color: var(--muted);
}
.hero__meta strong { color: var(--yellow); font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  .hero__bg img { animation: none; transform: none; }
}

/* ---- Echte Bilder in Slots ---- */
.media {
  display: block;
  width: 100%;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.media.ratio-16-9 { aspect-ratio: 16 / 9; }
.media.ratio-4-3 { aspect-ratio: 4 / 3; }
.media.ratio-3-2 { aspect-ratio: 3 / 2; }
.media.ratio-1-1 { aspect-ratio: 1 / 1; }
.media.ratio-4-5 { aspect-ratio: 4 / 5; }
.media.ratio-3-4 { aspect-ratio: 3 / 4; }
/* Bild in seinem eigenen Seitenverhältnis, nichts wird beschnitten */
.media--free {
  aspect-ratio: auto;
  height: auto;
  object-fit: contain;
}
.media.hero-ph { aspect-ratio: 4 / 5; }
@media (max-width: 620px) {
  .media.ratio-4-5, .media.ratio-3-4 { aspect-ratio: 4 / 3; }
}
@media (max-width: 900px) { .media.hero-ph { aspect-ratio: 3 / 2; } }
.card__media img.media,
.card__media .media { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }

/* ---- Platzhalter-Bildflächen ---- */
.media-ph {
  position: relative;
  width: 100%;
  background:
    linear-gradient(135deg, var(--surface-2) 0%, var(--surface) 55%, var(--deep) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--muted);
}
.media-ph::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, transparent 0 14px, rgba(255,255,255,0.015) 14px 15px);
  pointer-events: none;
}
.media-ph__icon {
  width: 38%;
  max-width: 96px;
  height: auto;
  color: var(--accent);
  opacity: 0.9;
}
.media-ph__label {
  position: absolute;
  left: 12px;
  bottom: 10px;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.68rem;
  color: var(--muted);
}
.media-ph.ratio-16-9 { aspect-ratio: 16 / 9; }
.media-ph.ratio-4-3 { aspect-ratio: 4 / 3; }
.media-ph.ratio-1-1 { aspect-ratio: 1 / 1; }
.media-ph.ratio-3-2 { aspect-ratio: 3 / 2; }
.media-ph.hero-ph { aspect-ratio: 4 / 5; }
@media (max-width: 900px) {
  .media-ph.hero-ph { aspect-ratio: 3 / 2; }
}

/* ---- Platzhalter-Hinweis für Texte ---- */
.ph-note {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  border: 1px dashed var(--accent);
  border-radius: var(--radius);
  padding: 0.3rem 0.6rem;
  margin: 0 0 1rem;
}

/* ---- Karten / Raster ---- */
.grid {
  display: grid;
  gap: clamp(1.2rem, 3vw, 2rem);
}
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

.card {
  --card-pad: clamp(1.5rem, 3vw, 2.1rem);
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--card-pad);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), background 0.25s var(--ease);
}
.card--link { text-decoration: none; color: inherit; display: block; }
.card--link::after {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 100%;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.card--link:hover { border-color: var(--green); transform: translateY(-4px); background: var(--surface-2); }
.card--link:hover::after { transform: scaleX(1); }
.card__media { overflow: hidden; }
.card__media img { transition: transform 0.6s var(--ease); will-change: transform; }
.card--link:hover .card__media img { transform: scale(1.05); }
.card__icon {
  display: inline-flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--green);
  margin-bottom: 1rem;
}
.card__icon svg { width: 22px; height: 22px; }
.card h3, .card__titel { margin-bottom: 0.35em; }
.card__titel { font-size: clamp(1.3rem, 2.7vw, 1.75rem); }
.card p:last-child { margin-bottom: 0; }
.card__media { margin: calc(var(--card-pad) * -1) calc(var(--card-pad) * -1) var(--card-pad); }
.card__media .media-ph { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }

.tag {
  display: inline-block;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  margin-bottom: 0.8rem;
}

/* Nummerierte Schritte */
.steps { counter-reset: step; display: grid; gap: 1rem; padding: 0; list-style: none; margin: 1.5rem 0 0; }
.steps li {
  position: relative;
  padding-left: 3.4rem;
  min-height: 2.4rem;
}
.steps li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--yellow);
}

/* Merkmal-Listen mit Häkchen */
.ticks { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 0.6rem; }
.ticks li { position: relative; padding-left: 1.7rem; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 10px;
  height: 10px;
  background: var(--accent);
  transform: rotate(45deg);
}

/* Definitionsraster (z. B. Saison-Daten) */
.spec {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.4rem 1.5rem;
  margin: 1rem 0 0;
}
.spec dt { color: var(--muted); font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.85rem; }
.spec dd { margin: 0; }

/* Tabelle (Kalender / Ergebnisse) */
.table-wrap { overflow-x: auto; margin-top: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); }
table.data {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}
table.data th,
table.data td {
  text-align: left;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
}
table.data th {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  color: var(--muted);
  background: var(--surface);
}
table.data tr:last-child td { border-bottom: 0; }

/* FAQ */
.faq { margin-top: 1.5rem; border-top: 1px solid var(--line); }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
}
.faq summary {
  cursor: pointer;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 1.1rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.4rem; line-height: 1; transition: transform 0.15s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > p { margin-top: 0.8rem; margin-bottom: 0; color: var(--muted); }

/* Zweispaltiger Textblock */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  align-items: center;
}
.split--top { align-items: start; }
.split--media-right .split__media { order: 2; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split--media-right .split__media { order: 0; }
}

/* Kontaktleiste */
.contactbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.contactbar__facts { display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; }
.contactbar__facts a { color: var(--text); text-decoration: none; }
.contactbar__facts a:hover { color: var(--accent); }

/* CTA-Block */
.cta-block {
  text-align: center;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, var(--surface) 0%, var(--deep) 100%);
  border-radius: var(--radius);
  padding: clamp(2rem, 6vw, 4rem);
}
.cta-block h2 { margin-bottom: 0.3em; }
.cta-block p { color: var(--muted); max-width: 52ch; margin-inline: auto; }

/* ---- Formular ---- */
.form {
  display: grid;
  gap: 1.2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.3rem, 4vw, 2.2rem);
}
.form__row { display: grid; gap: 1.2rem; }
@media (min-width: 640px) { .form__row--2 { grid-template-columns: 1fr 1fr; } }

.field { display: grid; gap: 0.4rem; }
.field label {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  color: var(--muted);
}
.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.75rem 0.9rem;
  width: 100%;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--accent); outline: none; }

/* Honigtopf: für Menschen unsichtbar */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__hint { font-size: 0.9rem; color: var(--muted); }
.form__hint a { color: var(--text); }

.notice {
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  border: 1px solid var(--line);
  margin-bottom: 1.5rem;
}
.notice--ok { border-color: var(--green-btn); background: rgba(11, 122, 52, 0.15); }
.notice--error { border-color: #d64545; background: rgba(214, 69, 69, 0.14); }

/* ---- Rechtstexte (AGB) ---- */
.legal h2 {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
}
.legal h2:first-of-type { margin-top: 2rem; }
.legal h3 { margin-top: 2rem; font-size: 1.05rem; }
.legal p { margin-top: 0.9rem; }
.legal__nr {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 0.35rem;
}
/* Absatznummer hängt links neben dem Text */
.legal__abs { padding-left: 2.6rem; text-indent: -2.6rem; }
.legal__abs > span { display: inline-block; width: 2.6rem; text-indent: 0; color: var(--muted); }
.legal__box {
  margin-top: 2rem;
  padding: clamp(1.2rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  background: var(--surface);
}
.legal__box h3:first-of-type { margin-top: 1rem; }
.legal__line {
  height: 1px;
  background: var(--line);
  margin-top: 1.4rem;
}
.toc {
  margin-top: 2rem;
  padding: 1.2rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.toc__title {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.6rem;
}
.toc ol { margin: 0; padding-left: 1.4rem; }
.toc li { margin-top: 0.35rem; font-size: 0.95rem; }
.toc a { color: var(--text); text-decoration: none; border-bottom: 1px solid transparent; }
.toc a:hover, .toc a:focus-visible { color: var(--accent); border-bottom-color: var(--accent); }
/* Sprungziele nicht unter den fixen Kopf rutschen lassen */
.legal h2[id] { scroll-margin-top: calc(var(--header-h) + 1.5rem); }

/* ---- Fuß ---- */
.site-footer {
  background: var(--deep);
  border-top: 1px solid var(--line);
  padding-block: clamp(2.5rem, 6vw, 4rem) 1.5rem;
  font-size: 0.95rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--gap);
}
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }

.footer__grid h2 {
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 1rem;
}
.footer__grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.footer__grid a { color: var(--muted); text-decoration: none; }
.footer__grid a:hover { color: var(--text); }

.footer__logo { height: 60px; width: auto; display: block; }
.footer__contact { margin-top: 1.2rem; color: var(--muted); font-size: 0.9rem; line-height: 1.9; }
.footer__contact a { color: var(--muted); text-decoration: none; }
.footer__contact a:hover { color: var(--text); }
.footer__brandline { color: var(--muted); max-width: 34ch; margin-top: 1rem; }

.socials { display: flex; gap: 0.6rem; margin-top: 1rem; flex-wrap: wrap; }
.socials--lg { justify-content: center; margin-top: 1.5rem; }
.socials--lg a { width: 52px; height: 52px; }
.socials--lg svg { width: 24px; height: 24px; }
.socials a {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  transition: color 0.15s ease, border-color 0.15s ease;
}
.socials a:hover { color: var(--text); border-color: var(--accent); }
.socials svg { width: 20px; height: 20px; }

.footer__bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.88rem;
}
.footer__bottom a { color: var(--muted); text-decoration: none; }
.footer__bottom a:hover { color: var(--text); }

/* ---- Zeitstrahl ---- */
.timeline {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  border-left: 2px solid var(--line);
}
.timeline li {
  position: relative;
  padding: 0 0 2rem 1.75rem;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 6px;
  width: 12px;
  height: 12px;
  background: var(--green);
  border: 2px solid var(--bg);
  transform: rotate(45deg);
}
.timeline li:last-child { padding-bottom: 0; }
.timeline__year {
  display: inline-block;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
  color: var(--yellow);
  margin-bottom: 0.35rem;
}
.timeline h3 { margin: 0 0 0.3em; }
.timeline p { margin: 0; }
.timeline a { color: var(--green); }

/* Große Zeitachse für die Motorsport-Historie */
.timeline--big { border-left: 0; margin-top: 2.5rem; }
.timeline--big li {
  display: grid;
  grid-template-columns: minmax(140px, 200px) 1fr;
  gap: clamp(1rem, 4vw, 3rem);
  align-items: start;
  padding: clamp(1.75rem, 4vw, 2.75rem) 0;
  border-top: 1px solid var(--line);
  transition: border-color 0.5s var(--ease);
}
.timeline--big li::before { display: none; }
.timeline--big li:last-child { border-bottom: 1px solid var(--line); padding-bottom: clamp(1.75rem, 4vw, 2.75rem); }
.timeline--big li.is-visible { border-top-color: var(--green); }
.timeline--big .timeline__year {
  font-size: clamp(2.25rem, 5.5vw, 4rem);
  line-height: 0.9;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0;
  transition: color 0.5s var(--ease);
}
.timeline--big li.is-visible .timeline__year { color: var(--yellow); }
.timeline--big h3 { font-size: clamp(1.15rem, 2.4vw, 1.5rem); }
.timeline--big p { color: var(--muted); max-width: 62ch; }
@media (max-width: 700px) {
  .timeline--big li { grid-template-columns: 1fr; gap: 0.75rem; }
}

.pagehead--media { padding-bottom: clamp(1.5rem, 4vw, 2.5rem); }

/* ---- Prozesskette ---- */
.chain {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0;
  margin: 2rem 0 0;
  padding: 0;
}
.chain li {
  list-style: none;
  display: flex;
  align-items: center;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.8rem;
  color: var(--muted);
}
.chain li::after {
  content: "\203A";
  color: var(--green);
  margin: 0 0.55rem;
  font-size: 1.1rem;
  line-height: 1;
}
.chain li:last-child::after { display: none; }
.chain li.is-key { color: var(--text); }
.chain li.is-key::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--yellow);
  transform: rotate(45deg);
  margin-right: 0.4rem;
}

/* ---- Partner-Logos ---- */
.partner-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 3vw, 1.75rem);
  margin-top: 2rem;
}
@media (max-width: 720px) { .partner-strip { grid-template-columns: 1fr 1fr; } }
@media (max-width: 440px) { .partner-strip { grid-template-columns: 1fr; } }
.partner-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1.6rem 1.25rem;
  min-height: 150px;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.partner-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4); }
.partner-card img { height: 66px; width: auto; max-width: 80%; object-fit: contain; }
.partner-card__name {
  font-family: var(--font-head);
  text-transform: uppercase;
  font-weight: 700;
  color: #14171a;
  letter-spacing: 0.02em;
  font-size: 1.2rem;
  text-align: center;
}
.partner-card__place {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: #5a6066;
  text-transform: none;
  letter-spacing: 0;
}
@media (prefers-reduced-motion: reduce) { .partner-card:hover { transform: none; } }

/* =========================================================
   EDITORIAL-BAUSTEINE
   ========================================================= */

/* Abschnittskopf mit Nummer, wie im Magazin */
.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}
.sec-head__text { max-width: 46ch; }
.sec-head h2 { margin-bottom: 0.25em; }
.sec-head p { color: var(--muted); margin: 0; }
.sec-num {
  font-family: var(--font-head);
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--yellow);
  opacity: 0.4;
  letter-spacing: -0.02em;
  user-select: none;
}

/* Volle Breite: Bildband mit Text darüber */
.band {
  position: relative;
  isolation: isolate;
  min-height: clamp(420px, 62vh, 700px);
  display: flex;
  align-items: center;
  overflow: hidden;
  border-block: 1px solid var(--line);
}
.band__bg { position: absolute; inset: 0; z-index: -2; }
.band__bg img { width: 100%; height: 100%; object-fit: cover; }
.band__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(18,21,20,0.93) 0%, rgba(18,21,20,0.74) 45%, rgba(18,21,20,0.32) 100%);
}
.band__inner { padding-block: clamp(3rem, 7vw, 5rem); max-width: 58ch; }
.band--center .band__inner { max-width: 62ch; margin-inline: auto; text-align: center; }
.band--center .band__bg::after {
  background: linear-gradient(to bottom, rgba(18,21,20,0.8), rgba(18,21,20,0.88));
}
.band--center .eyebrow { justify-content: center; }
.band--center .lead { margin-inline: auto; }
.band--center .btn-row { justify-content: center; }

/* Editorial-Bilderpaar: großes Bild plus Text, versetzt */
.feature {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem) var(--gap);
  align-items: center;
}
.feature__media { grid-column: 1 / span 7; grid-row: 1; }
.feature__text { grid-column: 8 / span 5; grid-row: 1; }
.feature--flip .feature__media { grid-column: 6 / span 7; grid-row: 1; }
.feature--flip .feature__text { grid-column: 1 / span 5; grid-row: 1; }
.feature__media img,
.feature__media .media-ph { width: 100%; }
@media (max-width: 900px) {
  .feature__media, .feature__text,
  .feature--flip .feature__media, .feature--flip .feature__text {
    grid-column: 1 / -1;
    grid-row: auto;
  }
}

/* Bildkachel mit Text unten drauf, für Fahrzeuge und Projekte */
.tile {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  isolation: isolate;
  background: var(--surface);
}
.tile__media { position: relative; }
.tile__media img,
.tile__media .media-ph { width: 100%; border: 0; border-radius: 0; }
.tile__media img { transition: transform 0.7s var(--ease); will-change: transform; }
.tile:hover .tile__media img { transform: scale(1.06); }
.tile__body {
  position: absolute;
  inset: auto 0 0 0;
  padding: clamp(1.25rem, 2.5vw, 1.9rem);
  background: linear-gradient(to top, rgba(15,18,17,0.96) 30%, rgba(15,18,17,0.82) 62%, rgba(15,18,17,0) 100%);
}
.tile__body h3, .tile__body h2 { margin-bottom: 0.25em; }
.tile__body h2 { font-size: clamp(1.3rem, 2.7vw, 1.75rem); }
.tile__body p { color: #cfd6d1; margin: 0; font-size: 0.98rem; }
.tile__tag {
  display: inline-block;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--yellow);
  margin-bottom: 0.6rem;
}
.tile__more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  transition: gap 0.2s var(--ease);
}
.tile:hover .tile__more { gap: 0.75rem; color: var(--green); }
.tile--tall .tile__media img { aspect-ratio: 3 / 4; object-fit: cover; }
/* Kachelraster, in dem jedes Bild seine eigene Höhe behält */
.grid--free { align-items: start; }

/* Technische Datenblöcke */
.datagrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 2rem;
  min-height: 120px;
}
.datagrid dt::before {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  background: var(--yellow);
  margin-bottom: 0.7rem;
}
.datagrid > div { background: var(--surface); padding: clamp(1.2rem, 2.5vw, 1.75rem); }
.datagrid dt {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.datagrid dd {
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  line-height: 1.15;
  text-transform: uppercase;
}
.datagrid dd small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.9rem;
  text-transform: none;
  color: var(--muted);
  margin-top: 0.35rem;
  line-height: 1.4;
}

/* Technikgruppen als Spalten */
.techcols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-top: 2.5rem;
}
.techcols section { border-top: 2px solid var(--green); padding-top: 1.25rem; }
.techcols h3 { font-size: 1.1rem; letter-spacing: 0.08em; margin-bottom: 1rem; }
.techcols dl { display: grid; gap: 0.85rem; margin: 0; }
.techcols dt {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  color: var(--muted);
}
.techcols dd { margin: 0.15rem 0 0; }

/* Sticky-Ablauf: Bild bleibt stehen, Schritte laufen durch */
.flow { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: var(--gap); align-items: start; }
.flow__sticky { position: sticky; top: calc(var(--header-h) + 2rem); }
.flow__sticky img,
.flow__sticky .media-ph { width: 100%; }
.flow__steps { display: grid; gap: clamp(1.5rem, 3vw, 2.25rem); }
.flow__step {
  border-left: 2px solid var(--line);
  padding: 0.25rem 0 0.25rem 1.75rem;
  position: relative;
  transition: border-color 0.4s var(--ease);
}
.flow__step::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 0.55rem;
  width: 12px;
  height: 12px;
  background: var(--line);
  border: 2px solid var(--bg);
  transform: rotate(45deg);
  transition: background 0.4s var(--ease);
}
.flow__step.is-visible { border-color: var(--green); }
.flow__step.is-visible::before { background: var(--green); }
.flow__num {
  font-family: var(--font-head);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--yellow);
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.4rem;
}
.flow__step h3 { margin-bottom: 0.35em; }
.flow__step p { color: var(--muted); margin: 0; }
@media (max-width: 900px) {
  .flow { grid-template-columns: 1fr; }
  .flow__sticky { position: static; }
}

/* Horizontale Galerie */
.railwrap { position: relative; }
.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 34vw);
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 1rem;
  margin-top: 2rem;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.rail > * { scroll-snap-align: start; }
.rail img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); }
.rail::-webkit-scrollbar { height: 6px; }
.rail::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }
.rail-hint {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 0.75rem;
}
@media (max-width: 620px) { .rail { grid-auto-columns: 82vw; } }

/* Statistik-Zeile */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-top: 2.5rem;
}
.stats > div { border-top: 1px solid var(--line); padding-top: 1.25rem; }
.stats b {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1;
  font-weight: 700;
  color: var(--yellow);
}
.stats span {
  display: block;
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.92rem;
}

/* ---- Sanftes Einblenden beim Scrollen ---- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
/* gestaffelt in Rastern */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal-stagger.is-visible > * { opacity: 1; transform: none; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.24s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.32s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; transition: none; }
  .reveal-stagger.is-visible > * { transition-delay: 0s; }
  .btn:hover, .card--link:hover, .partner-card:hover { transform: none; }
  .tile:hover .tile__media img,
  .card--link:hover .card__media img { transform: none; }
  /* Zeitachse und Ablauf sofort im Endzustand */
  .timeline--big li { border-top-color: var(--green); }
  .timeline--big .timeline__year { color: var(--green); }
  .flow__step { border-color: var(--green); }
  .flow__step::before { background: var(--green); }
  .flow__sticky { position: static; }
  .mega { transition: none; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---- Kleinkram ---- */
.stack > * + * { margin-top: 1rem; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
hr.rule { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

.pagehead {
  position: relative;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  padding-block: clamp(4rem, 10vw, 7rem) clamp(2.75rem, 6vw, 4.5rem);
  overflow: hidden;
}
.pagehead::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(115deg, transparent 0 42px, rgba(255,255,255,0.013) 42px 43px);
  pointer-events: none;
}
.pagehead > .wrap { position: relative; }
.pagehead p.lead { color: var(--muted); }

/* ---- Markenclaim ---- */
.claim {
  background: var(--deep);
  border-block: 1px solid var(--line);
  padding-block: clamp(1.6rem, 4vw, 2.6rem);
}
.claim__text {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(0.7rem, 2.6vw, 2rem);
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: clamp(0.95rem, 2.4vw, 1.6rem);
  line-height: 1.2;
  color: var(--text);
  text-align: center;
}
.claim__text span {
  display: inline-flex;
  align-items: center;
  gap: clamp(0.7rem, 2.6vw, 2rem);
}
/* Raute als Trenner, in der Logofarbe Gelb */
.claim__text span + span::before {
  content: "";
  flex: none;
  width: 0.42em;
  height: 0.42em;
  transform: rotate(45deg);
  background: var(--yellow);
}

.footer__claim {
  margin: 0.9rem 0 0.6rem;
  font-family: var(--font-head);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  color: var(--text);
}

/* Auf schmalen Bildschirmen untereinander, sonst beginnt eine Zeile
   mit einer Raute und das sieht aus wie ein Fehler. */
@media (max-width: 640px) {
  .claim__text { flex-direction: column; gap: 0.35rem; }
  .claim__text span + span::before { display: none; }
}

/* =========================================================
   SOCIAL-MEDIA-FEED
   Neuer Bereich. Nutzt ausschliesslich die vorhandenen Farb-,
   Schrift- und Bewegungswerte des bestehenden Designs.
   ========================================================= */
.feed { margin-top: clamp(2rem, 5vw, 3rem); }

/* Filterknoepfe */
.feed__filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: clamp(1.4rem, 3vw, 2rem);
}
/* display:flex wuerde das hidden-Attribut sonst ueberstimmen */
.feed__filter[hidden], .feed__chip[hidden] { display: none; }
.feed__chip {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  font-size: 0.78rem;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.6rem 1.1rem;
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.feed__chip:hover { color: var(--text); border-color: var(--muted); }
.feed__chip.is-active {
  color: var(--bg);
  background: var(--green);
  border-color: var(--green);
}

/* Raster */
.feed__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 2.2vw, 1.6rem);
}
@media (max-width: 1100px) { .feed__grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 820px)  { .feed__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px)  { .feed__grid { grid-template-columns: 1fr; } }

/* Platzhalter waehrend des Ladens, damit nichts springt */
.feed__skelett {
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(100deg, var(--surface-2) 30%, #363d38 50%, var(--surface-2) 70%);
  background-size: 250% 100%;
  animation: feedPuls 1.6s linear infinite;
}
@keyframes feedPuls {
  from { background-position: 130% 0; }
  to   { background-position: -30% 0; }
}

/* Kachel */
.feed__card {
  display: flex;
  flex-direction: column;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
  animation: feedRein 0.5s var(--ease) both;
  animation-delay: var(--verzoegerung, 0ms);
}
.feed__card:hover,
.feed__card:focus-visible {
  border-color: var(--green);
  transform: translateY(-4px);
}
@keyframes feedRein {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

.feed__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--deep);
}
/* contain statt cover: Vorschaubilder werden vollstaendig gezeigt und nicht
   angeschnitten. Quer- und Hochformate passen so in dasselbe Raster. */
.feed__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.7s var(--ease);
}
.feed__card:hover .feed__media img { transform: scale(1.04); }

/* Wenn kein Vorschaubild vorliegt: Plattformzeichen auf dunklem Grund */
.feed__media--leer {
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, var(--surface-2), var(--deep));
}
.feed__ersatz { width: 38%; height: 38%; color: var(--line); }

/* Plattformkennung auf dem Bild */
.feed__marke {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.32rem 0.62rem;
  background: rgba(18, 21, 20, 0.82);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.66rem;
  font-weight: 600;
  color: var(--text);
  backdrop-filter: blur(4px);
}
.feed__marke svg { width: 14px; height: 14px; color: var(--green); flex: none; }
.feed__card[data-plattform="instagram"] .feed__marke svg,
.feed__card[data-plattform="facebook"] .feed__marke svg { color: var(--yellow); }

.feed__body {
  padding: 0.95rem 1rem 1.05rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}
.feed__titel {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--text);
  /* Hoehe begrenzen, damit die Kacheln gleichmaessig bleiben */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.feed__meta {
  margin: 0;
  margin-top: auto;
  padding-top: 0.3rem;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.68rem;
  color: var(--muted);
  transition: color 0.2s var(--ease);
}
.feed__card:hover .feed__meta { color: var(--green); }

.feed__hinweis {
  margin: 1.4rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.feed__fuss {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: clamp(1.6rem, 3vw, 2.4rem);
}
.feed__stand {
  margin: 0;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  .feed__skelett { animation: none; }
  .feed__card { animation: none; }
  .feed__card:hover, .feed__card:focus-visible { transform: none; }
  .feed__card:hover .feed__media img { transform: none; }
}



/* Rechenaufgabe im Kontaktformular, optisch abgesetzt vom Rest */
.field--rechnung {
  border: 1px solid var(--line);
  border-left: 3px solid var(--green);
  border-radius: var(--radius);
  padding: 1rem 1.1rem 0.9rem;
  background: var(--surface);
}
.field--rechnung input { max-width: 16rem; }
.field--rechnung .form__hint { margin: 0.6rem 0 0; font-size: 0.85rem; }
