/* =========================================================================
   MTGM Markenfamilie – Design-System
   Ein Stylesheet für alle drei Sites. Die einzige seitenabhängige Größe ist
   --accent (wird im <head> je Site gesetzt, siehe layouts/base.njk).
   Aufbau: 1 Font · 2 Tokens · 3 Base · 4 Layout · 5 Komponenten · 6 Utilities
   ========================================================================= */

/* --- 1. Schrift ----------------------------------------------------------
   Beide Schriften selbst hosten (DSGVO: kein Google-Fonts-CDN). Die woff2
   liegen unter assets/fonts/ (latin-Subset, aus Google Fonts / fontsource,
   OFL-Lizenz). Fehlt eine Datei, greift automatisch der Fallback-Stack –
   die Seite bleibt funktionsfähig. Schriften laut Briefing: Barlow
   Condensed (Headlines) + Barlow (Fließtext). */
@font-face {
  font-family: "Barlow Condensed";
  src: local("Barlow Condensed SemiBold"), local("BarlowCondensed-SemiBold"),
       url("../fonts/barlow-condensed-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: local("Barlow Condensed"), local("BarlowCondensed-Bold"),
       url("../fonts/barlow-condensed-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: local("Barlow"), local("Barlow-Regular"),
       url("../fonts/barlow-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: local("Barlow Medium"), local("Barlow-Medium"),
       url("../fonts/barlow-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: local("Barlow SemiBold"), local("Barlow-SemiBold"),
       url("../fonts/barlow-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: local("Barlow"), local("Barlow-Bold"),
       url("../fonts/barlow-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

/* --- 2. Design-Tokens ---------------------------------------------------- */
:root {
  /* Basis-Palette (für alle drei Sites identisch) */
  --ink: #161513;          /* Fast-Schwarz: Header, dunkle Flächen */
  --ink-deep: #0f0e0d;     /* Footer */
  --ink-line: #2a2825;     /* Trennlinien auf Dunkel */
  --ink-line-2: #3d3a35;   /* neutraler Badge/Border auf Dunkel */
  --surface-dark: #1f1d1a; /* Cards auf dunklem Grund */
  --paper: #F4F2EC;        /* warmes Off-White: helle Flächen */
  --paper-muted: #EEECE5;  /* abgesetzte helle Sektion */
  --card: #ffffff;
  --border: #DEDBD1;

  /* Canvas-Design-Vokabular (Abschnitt J) – kontextabhängige Tokens.
     Standardwerte = helle Flächen (Gym, Sicherheit, .closeblock). Auf
     dunklem Grund werden sie neu aufgelöst: global von `body.theme-dark`,
     lokal von `.section--ink` / `.section--dark-surface`. So funktioniert
     dieselbe Komponente hell wie dunkel, ohne Theme-Abfrage im Markup. */
  --surface-fg: var(--text);
  --surface-fg-muted: var(--text-muted);
  --hairline: var(--border);
  --panel: var(--card);
  --panel-border: var(--border);
  --figure-muted: #b9b6ac;
  --kicker: var(--text-faint);

  /* Text */
  --text: #161513;
  --text-muted: #4a4944;
  --text-faint: #6b6a63;
  --text-invert: #F4F2EC;
  --text-invert-muted: #c8c5bb;
  --text-invert-faint: #a8a59c;

  /* Akzent – gemeinsamer Marken-CTA. Default hier, je Site überschrieben.
     Auf Rot #C22E1F umstellen: einfach diese zwei Werte (bzw. die Site-
     Daten) ändern – der Rest des Systems zieht automatisch nach. */
  --accent: #FAD90A;
  --accent-hover: #D4B808;
  --accent-ink: #161513;   /* Textfarbe auf Akzentflächen */

  /* Badge/Pill (Sekundärakzent) */
  --badge-bg: #9B8706;
  --badge-ink: #F4F2EC;

  /* Platzhalter-Boxen (Scaffolding) */
  --ph-light: #DEDBD1;
  --ph-dark: #262420;

  /* Typografie */
  --font-head: "Barlow Condensed", "Barlow", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Barlow", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Maße */
  --container: 1280px;
  --radius: 8px;
  --radius-sm: 6px;
  --pill: 100px;
  --pad-y: clamp(32px, 6vw, 72px);
  --pad-x: clamp(20px, 5vw, 64px);
}

/* --- 3. Base ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  line-height: 1.5;
  background: var(--paper);
  color: var(--text);
  overflow-x: hidden;
}
body.theme-dark {
  background: var(--ink); color: var(--text-invert);
  /* Canvas-Tokens auf die festen Design-Werte der dunklen Landing (Promotion) */
  --surface-fg: var(--text-invert);
  --surface-fg-muted: var(--text-invert-muted);
  --hairline: #2f2d29;
  --panel: #1c1a18;
  --panel-border: #2a2825;
  --figure-muted: #4a4844;
  --kicker: #8d8b83;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.05;
  margin: 0;
}
h1 { font-size: clamp(30px, 5vw, 58px); }
h2 { font-size: clamp(24px, 3vw, 34px); }
h3 { font-size: clamp(18px, 2vw, 20px); font-weight: 700; }
p  { margin: 0; }
img { max-width: 100%; display: block; }
a  { color: inherit; }

/* --- 4. Layout ----------------------------------------------------------- */
.container { max-width: var(--container); margin-inline: auto; }

.section {
  padding: var(--pad-y) var(--pad-x);
  max-width: var(--container);
  margin-inline: auto;
}
.section--full { max-width: none; }          /* randlose Sektion (eigener bg) */
.section--paper { background: var(--paper); color: var(--text); }
/* Hairline oben/unten: setzt das abgesetzte Band gegen die Nachbarsektion ab,
   ohne wie eine harte Trennlinie zu wirken – der Tonunterschied trägt die
   Hauptarbeit, die Linie deutet die Kante nur an. */
.section--paper-muted {
  background: var(--paper-muted); color: var(--text);
  border-block: 1px solid rgba(22, 21, 19, 0.08);
}
.section--ink { background: var(--ink); color: var(--text-invert); }
.section--dark-surface { background: var(--surface-dark); color: var(--text-invert); }
/* Dunkle Bänder auf hellen Sites: Canvas-Tokens lokal auf die Dunkel-Werte,
   damit .section-head / .rowitem / .tile / .panelcard darin richtig lesen. */
.section--ink, .section--dark-surface {
  --surface-fg: var(--text-invert);
  --surface-fg-muted: var(--text-invert-muted);
  --hairline: #2f2d29;
  --panel: #1c1a18;
  --panel-border: #2a2825;
  --figure-muted: #4a4844;
  --kicker: #8d8b83;
}

.section__head {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px; margin-bottom: 24px;
}
.section > h2, .section__title { margin-bottom: 32px; }

/* Auto-fit-Raster: die Grundfigur fast aller Sektionen */
.grid { display: grid; gap: 24px; }
.grid--min140 { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.grid--min180 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.grid--min200 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.grid--min220 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.grid--min240 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.grid--min260 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--min280 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px; }
.grid--min320 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.stack { display: flex; flex-direction: column; gap: 6px; }
.stack--prose { gap: 16px; }
.grid--top { align-items: start; }

/* --- 5. Komponenten ------------------------------------------------------ */

/* Header + Nav */
.site-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
  padding: 16px 24px;
  background: var(--ink); color: var(--text-invert);
  border-bottom: 1px solid var(--ink-line);
}
.site-header__brand { display: flex; align-items: center; text-decoration: none; }
.wordmark {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(18px, 2vw, 22px); letter-spacing: 0.02em; color: var(--text-invert);
}
.wordmark__accent { color: var(--accent); }
.site-nav { display: flex; align-items: center; gap: clamp(10px, 3vw, 28px); flex-wrap: wrap; }
.site-nav__link { color: var(--text-invert); text-decoration: none; font-size: 15px; }
.site-nav__link:hover { color: var(--accent); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 28px; border: none; border-radius: var(--radius-sm);
  font-family: var(--font-body); font-weight: 700; font-size: 16px;
  text-decoration: none; white-space: nowrap; cursor: pointer;
}
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { background: var(--accent-hover); }
.btn--sm { padding: 10px 18px; font-size: 14px; }
/* CTA im Header ist etwas kompakter */
.site-nav .btn { padding: 10px 18px; font-size: 14px; }

/* Cards */
.card {
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border);
}
.card--flat { border: none; }
.card--dark { background: var(--surface-dark); border-color: var(--ink-line); color: var(--text-invert); }
.card--ink { background: var(--ink); color: var(--text-invert); border: none; }
.card--highlight { border: 2px solid var(--badge-bg); }
.card__body { padding: 20px; }
.card__body p { color: var(--text-muted); font-size: 15px; }
.card--dark .card__body p, .card--ink .card__body p { color: var(--text-invert-muted); }
.card__title { margin: 0 0 8px; }
.card--pos { position: relative; }
.card__flag { position: absolute; top: 16px; right: 16px; }

/* Badge / Pill */
.badge {
  display: inline-block; background: var(--badge-bg); color: var(--badge-ink);
  padding: 4px 10px; border-radius: var(--pill);
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
}
.badge--accent { background: var(--accent); color: var(--accent-ink); }
.badge--neutral { background: var(--ink-line-2); color: var(--text-invert); }
.badge--muted { background: var(--border); color: var(--text-faint); }

/* Platzhalter-Bildbox (nur Scaffolding) */
.ph {
  display: flex; align-items: center; justify-content: center;
  background:
    repeating-linear-gradient(135deg, rgba(22,21,19,0.08) 0 2px, transparent 2px 14px),
    var(--ph-light);
}
.ph--dark {
  background:
    repeating-linear-gradient(135deg, rgba(244,242,236,0.06) 0 2px, transparent 2px 14px),
    var(--ph-dark);
}
.ph__label { font-family: ui-monospace, monospace; font-size: 12px; color: var(--text-faint); }
.ph--dark .ph__label { color: var(--text-invert-faint); }
/* Bild oben in einer Card sitzt bündig ohne eigene Rundung */
.card .ph { border-radius: 0; }
/* freistehende Platzhalter (z.B. Karte, Widget) runden mit */
.section .ph, .hero__media .ph { border-radius: var(--radius); }

/* Hero */
.hero { position: relative; }
.hero__media .ph { border-radius: 0; align-items: flex-start; justify-content: flex-end; padding: 16px; }
.hero__inner {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(24px, 6vw, 64px);
  background: linear-gradient(90deg, rgba(22,21,19,0.78) 0%, rgba(22,21,19,0.3) 60%, rgba(22,21,19,0) 100%);
  color: var(--text-invert);
}
.hero__inner--bottom {
  justify-content: flex-end;
  background: linear-gradient(180deg, rgba(22,21,19,0.1) 0%, rgba(22,21,19,0.9) 100%);
}
.hero__eyebrow { color: var(--accent); text-transform: uppercase; letter-spacing: 0.08em; font-size: 13px; font-weight: 700; margin-bottom: 12px; }
.hero h1 { margin: 0 0 16px; max-width: 20ch; }
.hero__sub { font-size: clamp(15px, 1.8vw, 19px); max-width: 40ch; color: var(--text-invert-muted); margin: 0 0 28px; }

/* Große, selbstbewusste Zahlen (Termine, Auflagen, Preise) */
.display { font-family: var(--font-head); font-weight: 700; line-height: 0.9; }
.display--xl { font-size: clamp(48px, 7vw, 88px); color: var(--accent); }
.display--date { font-size: clamp(28px, 4vw, 40px); }

/* Preis-/Stat-Kachel */
.tile__value { font-family: var(--font-head); font-weight: 700; font-size: 30px; }
.tile__meta  { font-size: 13px; color: var(--text-faint); margin: 2px 0 10px; }
.tile__label { font-size: 15px; font-weight: 700; }
.card--dark .tile__meta, .card--ink .tile__meta { color: var(--text-invert-muted); }

/* Querbanner (z.B. Fightnight-Cross-Link) */
.banner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  padding: 20px var(--pad-x);
  background: var(--banner-bg, var(--accent)); color: var(--banner-ink, var(--accent-ink));
  font-family: var(--font-head); font-weight: 700; font-size: clamp(15px, 1.8vw, 18px);
}
.banner a { color: inherit; font-family: var(--font-body); font-weight: 700; font-size: 15px; white-space: nowrap; }
.banner--badge { --banner-bg: var(--badge-bg); --banner-ink: var(--badge-ink); }

/* Tabelle (Kursplan) – scrollt in eigenem Container */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
table.schedule { width: 100%; min-width: 560px; border-collapse: collapse; background: var(--card); font-size: 14px; }
table.schedule thead tr { background: var(--ink); color: var(--text-invert); }
table.schedule th { padding: 12px 16px; text-align: left; font-weight: 700; }
table.schedule td { padding: 12px 16px; vertical-align: top; border-top: 1px solid var(--paper-muted); }
table.schedule .muted { font-size: 12px; color: var(--text-faint); }

/* Kursplan / Kalender (aus src/_data/schedule.json, Positionen via
   `calendar`-Filter, gerendert in partials/schedule.njk).
   Wochenansicht mit Zeitachse + CSS-only Standort-Umschalter (kein JS). */

/* Umschalter */
.kursplan__radio { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.kursplan__toggle { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 20px; background: var(--paper-muted); border-radius: var(--pill); }
.kursplan__toggle-btn { padding: 9px 18px; border-radius: var(--pill); font-size: 14px; font-weight: 700; color: var(--text-faint); cursor: pointer; user-select: none; }
.kursplan__radio:focus-visible + .kursplan__toggle .kursplan__toggle-btn { outline: 2px solid var(--accent); outline-offset: 2px; }
/* Aktiver Standort: je Standort-Key eine Zeile. Neuer Standort -> hier ergänzen. */
#sched-ueberlingen:checked ~ .kursplan__toggle label[for="sched-ueberlingen"],
#sched-stockach:checked ~ .kursplan__toggle label[for="sched-stockach"] { background: var(--badge-bg); color: #fff; }

/* Kalender-Grid: Zeitspalte + 7 Tage; Zeilen = Zeittakt (var --cal-rows). */
.kursplan__scroll { overflow-x: auto; }
.cal {
  display: none; position: relative;
  grid-template-columns: auto repeat(7, minmax(84px, 1fr));
  grid-template-rows: auto repeat(var(--cal-rows), var(--cal-unit, 16px));
  column-gap: 6px; min-width: 720px;
}
/* Sichtbar ist nur der Kalender des gewählten Standorts (Radio ~ Container). */
#sched-ueberlingen:checked ~ .kursplan__scroll .cal[data-loc="ueberlingen"],
#sched-stockach:checked ~ .kursplan__scroll .cal[data-loc="stockach"] { display: grid; }

.cal__corner { grid-column: 1; grid-row: 1; }
.cal__dayhead {
  grid-row: 1; padding: 0 0 10px;
  font-family: var(--font-head); font-weight: 700; font-size: 15px;
  text-transform: uppercase; letter-spacing: 0.04em; color: var(--text);
}
.cal__time { grid-column: 1; padding-right: 10px; font-size: 11px; color: var(--text-faint); font-variant-numeric: tabular-nums; white-space: nowrap; transform: translateY(-0.6em); }
.cal__line { grid-column: 1 / -1; border-top: 1px solid var(--border); }
.cal__event {
  z-index: 1; margin: 1px 0; padding: 3px 8px; overflow: hidden;
  display: flex; flex-direction: column; gap: 1px;
  background: var(--card); border: 1px solid var(--border);
  border-left: 3px solid var(--accent); border-radius: 6px;
}
.cal__event-time { font-size: 11px; font-weight: 700; color: var(--text-faint); font-variant-numeric: tabular-nums; }
.cal__event-title { font-size: 12px; font-weight: 700; line-height: 1.2; }
.cal__event-note { font-size: 10px; font-weight: 400; color: var(--text-faint); }

/* Formular */
.form { display: flex; flex-direction: column; gap: 14px; max-width: 640px; }
.form input, .form select, .form textarea {
  padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--ink-line); background: #221f1c; color: var(--text-invert);
  font-family: var(--font-body); font-size: 15px;
}
.form textarea { resize: vertical; }
.form .btn { width: fit-content; }

/* Footer */
/* Footer — 1:1 aus dem Claude-Design-Canvas (dreispaltig, flex space-between,
   1180er Innenbreite). Das Innen-Padding sitzt auf __grid (nicht auf dem
   <footer>), damit die Spalten exakt mit der Sektions-Spalte fluchten.
   Gemeinsames Partial – gilt für alle drei Sites. */
.site-footer { background: var(--ink-deep); color: var(--text-invert-muted); padding: clamp(48px,7vw,88px) 0 36px; }
.site-footer__grid {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start;
  gap: clamp(32px,5vw,64px) clamp(48px,8vw,96px);
  max-width: 1180px; margin-inline: auto;
  padding-inline: clamp(20px,5vw,56px);
}
.site-footer__grid > div { display: flex; flex-direction: column; gap: 8px; }
.site-footer__head { color: var(--text-invert); font-family: var(--font-body); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.14em; margin: 0 0 10px; }
.site-footer p { font-size: 15px; margin: 0; }
.site-footer a { color: var(--text-invert-muted); text-decoration: none; font-size: 15px; }
.site-footer a:hover { color: var(--text-invert); }
.site-footer a.is-current { color: var(--text-invert); font-weight: 600; }
.site-footer .stack { gap: 8px; }
.site-footer__legal { text-align: center; font-size: 12px; color: var(--text-faint); }
.site-footer .site-footer__legal { margin: clamp(36px,5vw,56px) 0 0; }
/* Entwickler-Credit: Link in der Copyright-Zeile, gleiche Größe/Farbe. */
.site-footer__credit { color: inherit; text-decoration: none; border-bottom: 1px solid transparent; }
.site-footer__credit:hover, .site-footer__credit:focus-visible { border-bottom-color: currentColor; }

/* Mobil: die drei Spalten sauber untereinander statt schiefem Umbruch
   (space-between lässt sonst je Zeile eine andere Kante entstehen). */
@media (max-width: 767px) {
  .site-footer__grid { flex-direction: column; gap: 32px; align-items: center; text-align: center; }
  .site-footer__grid > div { width: 100%; align-items: center; }
  .site-footer .stack { align-items: center; }
}

/* --- 6. Utilities -------------------------------------------------------- */
.lead { font-size: 16px; color: var(--text-muted); }
.muted { color: var(--text-faint); }
.on-dark .muted, .card--dark .muted, .card--ink .muted,
.section--ink .muted, .section--dark-surface .muted { color: var(--text-invert-muted); }
.narrow { max-width: 640px; margin-inline: auto; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.text-accent { color: var(--accent); }
.center { text-align: center; }
.row { display: flex; gap: 32px; flex-wrap: wrap; align-items: center; }

/* =========================================================================
   MTGM – Refactor-Ergänzungen
   Diese Datei wird an das Ende von main.css angehängt (oder als zweites
   Stylesheet NACH main.css geladen). Späte Position ist Absicht: die ersten
   Blöcke überschreiben bestehende Regeln, danach folgen neue Komponenten.
   ========================================================================= */

/* --- A. Korrekturen an bestehenden Regeln -------------------------------- */

/* A1. Hero: der absolut positionierte Overlay konnte nicht mitwachsen – bei
   schmalen Viewports lief der Inhalt aus der Sektion heraus und überlappte
   die Folgesektion. Jetzt liegen Bild und Inhalt in EINER Grid-Zelle, die
   Sektion nimmt die Höhe des höheren Kindes an.
   `minmax(0,1fr)` ist zwingend: ohne sie leitet `aspect-ratio` am Bild eine
   intrinsische Breite ab und bläst die Spalte auf (Sonntagsspalten-Effekt). */
.hero { display: grid; grid-template-columns: minmax(0, 1fr); }
.hero__media { grid-area: 1 / 1; min-height: 100%; }
.hero__inner { grid-area: 1 / 1; position: static; inset: auto; }

/* A2. Gedämpfter Text: --text-faint (#6b6a63) erreicht auf dunklem Grund nur
   ~3.4:1. Auf Dunkel wird aufgehellt, nicht abgedunkelt. */
.site-footer__legal,
.on-dark .muted,
.card--dark .muted,
.card--ink .muted,
.ph--dark .ph__label { color: var(--text-invert-faint); }

/* A3. Platzhalter-Label auf heller Fläche: #6b6a63 auf #DEDBD1 = 3.9:1. */
:root { --text-faint-strong: #565550; }
.ph .ph__label { color: var(--text-faint-strong); }

/* A4. Akzentflächen tragen immer dunkle Tinte. #F4F2EC auf --badge-bg
   (#9B8706) ergibt 3.2:1 und fällt bei 11–14px durch.
   Ausnahme `.badge--neutral`: dunkle Fläche (--ink-line-2) -> helle Tinte
   bleibt (sonst #161513 auf #3d3a35 ≈ 1.7:1, „Ticketstart folgt" unlesbar). */
.badge:not(.badge--neutral) { color: var(--accent-ink); }
.banner { color: var(--banner-ink, var(--accent-ink)); }
.banner a { color: inherit; }

/* A5. Uhrzeiten im Kursplan: das subtile Gold auf Weiß ist zu hell. */
:root { --gold-deep: #695b04; }
.cal__event-time { color: var(--gold-deep); }

/* A6. Mehr Luft auf kleinen Viewports (Untergrenzen der clamp-Werte). */
:root {
  --pad-y: clamp(52px, 7vw, 72px);
  --pad-x: clamp(22px, 5vw, 64px);
}

/* --- B. Mobile Navigation ----------------------------------------------- */
/* Unter 860px klappt die Nav in ein VOLLBILD-Overlay (position: fixed) – es
   verschiebt das Layout nicht. Getoggelt von assets/js/site.js (setzt
   [data-nav-open] auf dem Header); ohne JS bleibt die Reihe sichtbar. */

.site-header { display: block; padding: 0; }
.site-header__bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 18px clamp(22px, 5vw, 32px);
}
.site-header__brand img { height: 44px; width: auto; }

.nav-toggle { display: none; }
.site-nav--panel { display: none; }

@media (max-width: 859px) {
  .site-nav--row { display: none; }
  .nav-toggle {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 5px; width: 46px; height: 46px; padding: 0;
    background: transparent; border: 1px solid var(--ink-line-2);
    border-radius: var(--radius-sm); cursor: pointer;
  }
  .nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text-invert); }

  /* Vollbild-Overlay: eigener Kopf (Marke + Schließen), Links darunter zentriert */
  .site-nav--panel {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: fixed; inset: 0; z-index: 40;
    padding: 0 clamp(24px, 8vw, 56px) 56px;
    background: var(--ink);
    overflow-y: auto; overscroll-behavior: contain;
    visibility: hidden; opacity: 0;
    transition: opacity 0.22s ease, visibility 0.22s;
  }
  .site-header[data-nav-open] .site-nav--panel { visibility: visible; opacity: 1; }

  .site-nav__panelhead {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    margin: 0 calc(-1 * clamp(24px, 8vw, 56px)) clamp(20px, 6vw, 40px);
    padding: 18px clamp(24px, 8vw, 56px);
    border-bottom: 1px solid var(--ink-line);
  }
  .site-nav__panelhead .wordmark { font-size: clamp(18px, 2vw, 22px); }
  .site-nav__panelhead .site-header__brand img { height: 40px; }
  .site-nav__close {
    flex: 0 0 auto;
    display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; padding: 0;
    background: transparent; border: 1px solid var(--ink-line-2);
    border-radius: var(--radius-sm); cursor: pointer;
    color: var(--text-invert); font-size: 26px; line-height: 1;
  }
  .site-nav__close:hover { border-color: var(--accent); color: var(--accent); }

  .site-nav__panellinks {
    flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 0;
  }
  .site-nav--panel .site-nav__link {
    font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.02em;
    font-size: clamp(24px, 8vw, 34px); padding: 20px 2px;
    border-bottom: 1px solid var(--ink-line);
  }
  .site-nav--panel .btn { margin-top: 28px; align-self: flex-start; }

  /* Seite hinter dem Overlay nicht mitscrollen */
  html:has(.site-header[data-nav-open]) { overflow: hidden; }
}

/* --- C. Raster mit fester Spaltenzahl ----------------------------------- */
/* `auto-fit` + minmax lässt bei 7 bzw. 4 Elementen eine Waisenreihe (6+1,
   3+1) entstehen. Feste Spaltenzahl verhindert das an jeder Breite. */
.grid--fixed4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--fixed3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--span2 { grid-column: span 2; }

@media (max-width: 859px) {
  .grid--fixed4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--fixed3 { grid-template-columns: minmax(0, 1fr); }
  .grid--fixed3 .grid--span2, .grid--fixed4 .grid--span2 { grid-column: span 2; }
}

/* Hervorgehobene Personenkarte (Inhaber im Trainerraster) */
.person--lead {
  display: flex; align-items: center; gap: 20px; text-align: left;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
}
.person--lead .ph { flex: 0 0 96px; aspect-ratio: 1/1; border-radius: var(--radius); }

/* --- D. Preistabelle ---------------------------------------------------- */
table.tariffs { width: 100%; min-width: 700px; border-collapse: collapse; background: var(--card); }
table.tariffs thead tr { background: var(--ink); color: var(--text-invert); }
table.tariffs th { padding: 14px 18px; text-align: left; font-weight: 700; font-size: 14px; }
table.tariffs td { padding: 16px 18px; vertical-align: top; border-top: 1px solid var(--paper-muted); }
table.tariffs .tariff__name { font-size: 15px; font-weight: 700; }
table.tariffs .tariff__hint { font-size: 13px; color: var(--text-faint-strong); margin-top: 2px; }
table.tariffs .tariff__price { font-family: var(--font-head); font-size: 26px; line-height: 1; }
table.tariffs .tariff__unit,
table.tariffs .tariff__alt { font-size: 12px; color: var(--text-faint-strong); margin-top: 4px; }
table.tariffs .tariff__alt { margin-top: 6px; }

/* --- E. Kursplan: Tagesspalten ----------------------------------------- */
/* Alternative zur Zeitachse: pro Tag eine Spalte, Einheiten gestapelt.
   Untergrenze der Spalten (7×104 + Gaps) MUSS unter min-width liegen,
   sonst schneidet overflow:hidden die letzte Spalte ab. */
.week { overflow-x: auto; }
.week__grid {
  display: grid; grid-template-columns: repeat(7, minmax(104px, 1fr));
  gap: 1px; min-width: 740px;
  background: var(--border); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.week__day { background: var(--card); display: flex; flex-direction: column; }
.week__dayhead {
  background: var(--ink); color: var(--text-invert);
  font-family: var(--font-head); font-size: 17px; letter-spacing: 0.06em;
  text-transform: uppercase; padding: 10px 12px;
}
.week__slots { display: flex; flex-direction: column; gap: 1px; background: var(--paper-muted); flex: 1; }
.week__slot { background: var(--card); padding: 10px 12px; }
.week__time { font-size: 12px; font-weight: 700; color: var(--gold-deep); font-variant-numeric: tabular-nums; }
.week__time__end { display: block; font-weight: 600; color: var(--text-faint-strong); }
.week__title { font-size: 13px; font-weight: 700; line-height: 1.25; margin-top: 2px; }
.week__note { font-size: 11px; color: var(--text-faint-strong); margin-top: 2px; }

/* Standort-Umschalter (JS-frei, Radio + Geschwister-Selektor) */
.locswitch { display: inline-flex; gap: 4px; padding: 4px; background: var(--paper-muted); border-radius: var(--pill); }
.locswitch__btn { padding: 9px 18px; border-radius: var(--pill); font-size: 14px; font-weight: 700; color: var(--text-muted); cursor: pointer; user-select: none; }
.locradio { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
#loc-ueberlingen:checked ~ .locswitch label[for="loc-ueberlingen"],
#loc-stockach:checked ~ .locswitch label[for="loc-stockach"] { background: var(--accent); color: var(--accent-ink); }
.locpane { display: none; }
#loc-ueberlingen:checked ~ .locpanes .locpane[data-loc="ueberlingen"],
#loc-stockach:checked ~ .locpanes .locpane[data-loc="stockach"] { display: block; }

/* --- F. Event-Seite ----------------------------------------------------- */
.fightcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.fightcards__item { margin: 0; }
.fightcards__cap { margin-top: 10px; }
.fightcards__cap .fight__pairing { font-size: 18px; margin-top: 6px; }
.fightcards__gyms { font-size: 13px; color: var(--text-invert-muted); margin-top: 2px; }
.fightcards__item .media { border-radius: var(--radius); }
.fightlist { display: flex; flex-direction: column; gap: 1px; background: var(--ink-line); border: 1px solid var(--ink-line); border-radius: var(--radius); overflow: hidden; }
.fight { background: var(--surface-dark); padding: 18px 20px; display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 20px; row-gap: 10px; align-items: center; }
.fight--result { grid-template-columns: 1fr auto; }
.fight__pairing { font-family: var(--font-head); font-size: 22px; letter-spacing: 0.02em; margin-top: 10px; }
.fight__meta { font-size: 13px; color: var(--text-invert-faint); margin-top: 2px; }
.fight__outcome { text-align: right; }
.fight__outcome-label { font-size: 13px; color: var(--text-invert-faint); }
.fight__winner { font-family: var(--font-head); font-size: 20px; letter-spacing: 0.02em; color: var(--accent); }
.fight__how { font-size: 13px; color: var(--text-invert-muted); }

@media (max-width: 859px) {
  .fight--result { grid-template-columns: minmax(0, 1fr); }
  .fight__outcome { text-align: left; }
}

/* Event-Karte mit grosser Datumszahl */
.eventlink { display: flex; align-items: center; gap: 18px; background: rgba(31,29,26,0.92); border: 1px solid var(--ink-line-2); border-radius: var(--radius); padding: 16px 20px; text-decoration: none; width: fit-content; max-width: 100%; }
.eventlink:hover { border-color: var(--accent); }
.eventlink__date { font-family: var(--font-head); font-size: clamp(30px, 4vw, 44px); line-height: 0.9; color: var(--accent); }

/* Archiv-Liste (ältere Auflagen ohne eigene Seite) */
.editionlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1px; background: var(--ink-line); border: 1px solid var(--ink-line); border-radius: var(--radius); overflow: hidden; }
.editionlist li { background: var(--surface-dark); padding: 14px 18px; display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.editionlist .roman { font-family: var(--font-head); font-size: 20px; color: var(--accent); min-width: 52px; }
.editionlist .year { font-size: 14px; color: var(--text-invert-faint); margin-left: auto; }

/* --- G. Kontakt ohne Formular ------------------------------------------ */
/* Zielhosting hat kein Formular-Backend: mailto + tel statt POST. */
.contactactions { display: flex; align-items: center; column-gap: 24px; row-gap: 14px; flex-wrap: wrap; }
.contactactions .tel { color: var(--text-invert); text-decoration: none; font-weight: 700; font-size: 16px; border-bottom: 1px solid var(--text-muted); }
.contactactions .tel:hover { border-bottom-color: var(--accent); }

/* =========================================================================
   H. Promotion-Refactor: echte Bilder, Ditix-Ticketing, Sponsoren
   Der `image`-Shortcode ersetzt `ph` an Call-Sites mit echtem Asset. Die
   Reihen-Visuals der Fightnight sind Hochkant-Plakate – die Event-Seite ist
   deshalb posterorientiert statt auf ein Breitband-Hero ausgelegt.
   ========================================================================= */

/* Bild-Grundklasse (Inline-Styles im Shortcode setzen aspect-ratio/fit). */
.media { background: var(--ph-dark); }

/* --- Hochkant-Plakate: alle Event-Visuals sind Poster im Format ~3:4. -----
   Statt sie in Breitband-Boxen zu beschneiden, tragen Landing-Hero,
   Event-Liste und Archiv dasselbe Split-Muster: Poster (3:4, ungeschnitten)
   links, Text rechts. `{% image src, "fill", … %}` lässt das Bild den
   .eventrow__poster-Rahmen füllen, der die Ratio vorgibt. */

/* Gemeinsamer Poster-Rahmen (Hero, Event-Liste, Archiv) */
.posterframe {
  position: relative; aspect-ratio: 3 / 4; background: var(--ink);
  border-radius: var(--radius); overflow: hidden;
}
.posterframe > .media,
.posterframe > .ph { position: absolute; inset: 0; width: 100%; height: 100%; }
.posterframe > .media { object-fit: cover; }

/* Banner-Hero — aus dem Claude-Design-Canvas: entsättigtes Bannerbild hinter
   dem überlagerten (transparenten) Header, Claim unten links, kein Poster.
   Von allen drei Landing-Seiten genutzt (`heroHeader: true` im Front-Matter).
   Das Bild ist optional (`heroImage` im Front-Matter). Ohne Bild bleibt die
   dunkle Fläche mit den beiden Verläufen – die Seite funktioniert sofort. */
.page-hero {
  position: relative; padding: 0; overflow: hidden;
  min-height: 82svh; display: flex; flex-direction: column;
  background: var(--ink); color: var(--text-invert);
}
.page-hero__img,
.page-hero > .media,
.page-hero > .ph {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border-radius: 0;
  object-fit: cover; object-position: 52% 40%;
  filter: grayscale(100%) contrast(88%) brightness(78%); opacity: 0.42;
}
.page-hero__grad-lin {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(22,21,19,0.82) 0%, rgba(22,21,19,0.35) 38%, rgba(22,21,19,0.86) 82%, #161513 100%);
}
.page-hero__grad-rad {
  position: absolute; inset: 0;
  background: radial-gradient(120% 80% at 50% 30%, rgba(22,21,19,0) 30%, rgba(22,21,19,0.75) 100%);
}
.page-hero__content {
  position: relative; z-index: 2; flex: 1;
  display: flex; flex-direction: column; justify-content: flex-end;
  gap: clamp(22px, 3vw, 30px);
  padding: clamp(56px, 10vw, 96px) clamp(20px, 5vw, 56px) clamp(48px, 7vw, 80px);
  max-width: 1180px; width: 100%; margin: 0 auto;
}
/* Der Header ist absolut über dem Hero -> oben etwas mehr Luft, damit er bei
   sehr niedrigen Viewports nicht auf den Claim trifft (Claim ist unten
   verankert, der Zuschlag ist sonst totes Feld). */
.has-hero-header .page-hero__content { padding-top: clamp(92px, 12vw, 112px); }
.page-hero__eyebrow {
  color: var(--accent); text-transform: uppercase; letter-spacing: 0.18em;
  font-size: 12px; font-weight: 600;
}
.page-hero__content h1 {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(42px, 9vw, 86px); line-height: 0.98; letter-spacing: 0.005em;
  margin: 0; max-width: 15ch; text-wrap: balance;
}
.page-hero__lead {
  margin: 0; font-size: clamp(16px, 1.6vw, 19px); color: var(--text-invert-muted);
  max-width: 46ch; text-wrap: pretty;
}
.page-hero__meta {
  display: flex; gap: 12px 20px; flex-wrap: wrap;
  font-size: 14px; color: var(--text-invert-faint);
}
.page-hero__cue {
  display: inline-flex; align-items: center; gap: 12px; width: fit-content;
  color: var(--text-invert); text-decoration: none;
  font-size: 15px; font-weight: 600; letter-spacing: 0.02em;
  border-bottom: 1px solid rgba(250,217,10,0.5); padding-bottom: 6px;
}
.page-hero__cue:hover { border-color: var(--accent); color: var(--accent); }
.page-hero__cue span { color: var(--accent); }

/* Hero-Claim mit rotierender Sportart – reines CSS, kein JS. Die Wortliste
   steht im Markup (src/gym/index.njk); das letzte Keyframe zeigt die
   Wort-Wiederholung, damit der Loop-Rücksprung nicht sichtbar ist.
   `prefers-reduced-motion` friert auf dem ersten Wort ein. */
/* --reel-step = Höhe einer Wortzeile = Schrittweite des Slides. Bewusst
   größer als die Zeilenhöhe, damit Unterlängen (das "y" in "Muay Thai")
   vollständig in ihrer Zelle bleiben und beim Weiterschieben restlos vom
   nächsten Wort verdeckt werden. */
.hero-rotator { --reel-step: 1.36em; }
.page-hero__content h1.hero-rotator { max-width: 18ch; }
/* Auf sehr schmalen Viewports das längste Wort ("Functional Fitness") sicher
   in eine Zeile bekommen. */
@media (max-width: 360px) {
  .page-hero__content h1.hero-rotator { font-size: 38px; }
}
.hero-rotator__slot {
  display: block; height: var(--reel-step); overflow: hidden;
}
.hero-rotator__reel {
  display: block;
  animation: hero-rotator-slide 10s cubic-bezier(0.7, 0, 0.3, 1) infinite;
}
.hero-rotator__word {
  display: block; height: var(--reel-step); line-height: var(--reel-step);
  color: var(--accent); white-space: nowrap;
}
.hero-rotator__tail { display: block; }
@keyframes hero-rotator-slide {
  0%,   15% { transform: translateY(0); }
  20%,  35% { transform: translateY(calc(var(--reel-step) * -1)); }
  40%,  55% { transform: translateY(calc(var(--reel-step) * -2)); }
  60%,  75% { transform: translateY(calc(var(--reel-step) * -3)); }
  80%,  95% { transform: translateY(calc(var(--reel-step) * -4)); }
  100%      { transform: translateY(calc(var(--reel-step) * -5)); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-rotator__reel { animation: none; }
}
.u-visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0); clip-path: inset(50%);
  overflow: hidden; white-space: nowrap;
}

/* Posterorientiertes Event-Hero (Auflagen-Seite) */
.event-hero { padding: 0; }
.event-hero__inner {
  max-width: var(--container); margin-inline: auto;
  padding: var(--pad-y) var(--pad-x);
  display: grid; gap: clamp(24px, 5vw, 56px);
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  align-items: center;
}
.event-hero__poster { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: 0 18px 50px rgba(0,0,0,0.45); }
.event-hero__poster .media { aspect-ratio: auto; object-fit: contain; background: transparent; }
.event-hero__subtitle {
  font-family: var(--font-head); font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; font-size: clamp(16px, 2vw, 22px);
  color: var(--accent); margin: 4px 0 16px;
}
.event-hero__meta { font-size: 14px; color: var(--text-invert-muted); margin-top: 8px; }
.event-hero .display--xl { margin-top: 8px; }

@media (max-width: 767px) {
  .event-hero__inner { grid-template-columns: minmax(0, 1fr); }
  .event-hero__poster { max-width: 300px; }
}

/* --- Event-Liste + Archiv: Split-Karte (Poster links, Text rechts) ------- */
.eventcards { display: flex; flex-direction: column; gap: 20px; max-width: 760px; }

.eventrow {
  display: grid;
  grid-template-columns: clamp(108px, 32%, 188px) minmax(0, 1fr);
  gap: clamp(16px, 3vw, 28px);
  background: var(--surface-dark);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none; color: inherit;
}
.eventrow--featured { border-color: var(--accent); }
.eventrow__poster { border-radius: 0; }          /* bündig an der Kartenkante */
.eventrow__body {
  display: flex; flex-direction: column; align-items: flex-start;
  padding: clamp(18px, 3vw, 24px) clamp(18px, 3vw, 24px) clamp(18px, 3vw, 24px) 0;
}
.eventrow__title { font-size: clamp(20px, 2.4vw, 26px); margin: 12px 0 6px; }
.eventrow__meta { font-size: 14px; color: var(--text-invert-muted); }
.eventrow__cta { margin-top: auto; align-self: flex-start; }
.eventrow__cta.muted { margin-top: 16px; }

/* Archiv: dieselbe Karte, kompakter, 4 nebeneinander */
.eventgrid { display: grid; gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.eventrow--sm { grid-template-columns: clamp(56px, 34%, 84px) minmax(0, 1fr); gap: 12px; }
.eventrow--sm .eventrow__body { padding: 12px 12px 12px 0; }
.eventrow--sm .roman { font-family: var(--font-head); font-size: 22px; color: var(--accent); }

@media (max-width: 859px) {
  .eventgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 460px) {
  .eventgrid { grid-template-columns: minmax(0, 1fr); }
}

/* Grosser CTA (Ticketkauf) */
.btn--lg { padding: 16px 34px; font-size: 17px; }

/* Ditix-Ticketaufruf (Link-out, kein eingebettetes Widget) */
.ticket-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 8px; }
.ticket-cta__note { font-size: 13px; color: var(--text-faint-strong); max-width: 60ch; }
.nowrap { white-space: nowrap; }

/* Sponsoren – tier-gestaffeltes Logoraster */
.sponsortier + .sponsortier { margin-top: 40px; }
.sponsortier__label {
  font-family: var(--font-body); font-weight: 700; font-size: 13px;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-faint-strong);
  margin: 0 0 16px; padding-bottom: 8px; border-bottom: 1px solid var(--border);
}
.sponsorgrid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  align-items: stretch;
}
.sponsorgrid--platin { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.sponsorgrid--gold   { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.sponsor {
  display: flex; align-items: center; justify-content: center;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; min-height: 110px;
}
.sponsor__link { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.sponsor__logo { max-height: 64px; width: auto; object-fit: contain; }
.sponsorgrid--platin .sponsor { min-height: 140px; }
.sponsorgrid--platin .sponsor__logo { max-height: 84px; }
.sponsor__name { font-weight: 700; font-size: 14px; text-align: center; color: var(--text-muted); }

/* --- I. Rechtstexte (Impressum / Datenschutz / AGB) --------------------
   Immer auf heller Fläche (section--paper) – lange Fliesstexte sind auf dem
   dunklen Promotion-Theme schwer lesbar. */
.prose { max-width: 72ch; }
.prose > :first-child { margin-top: 0; }
.prose h1 { margin-bottom: 24px; }
.prose h2 { font-size: clamp(19px, 2.2vw, 24px); margin: 40px 0 12px; }
.prose h3 { font-size: 16px; font-weight: 700; margin: 26px 0 6px; }
.prose p, .prose li { color: var(--text-muted); font-size: 15px; line-height: 1.7; }
.prose p { margin: 0 0 12px; }
.prose ul, .prose ol { margin: 0 0 12px; padding-left: 22px; }
.prose li { margin: 4px 0; }
.prose a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.prose address { font-style: normal; }
.prose hr { border: none; border-top: 1px solid var(--border); margin: 32px 0; }
/* Sichtbarer Platzhalter-Hinweis – vor Go-live entfernen. */
.prose__placeholder {
  display: inline-block; margin-bottom: 24px; padding: 8px 14px;
  background: #fdecc8; color: #7a5b00; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 700;
}
.prose__placeholder--inline { display: inline; margin: 0 2px; padding: 1px 6px; font-size: inherit; }

/* =========================================================================
   J. Canvas-Design-Vokabular — gemeinsame Landing-Sprache
   (Promotion, Gym, Sicherheit). Ursprung: der Claude-Design-Canvas der
   Promotion-Startseite. Bannerheader, Sektionskopf, Inhalts-Zeilen statt
   Karten, kompaktes Kachelraster, heller Abschluss-Block.

   Farben laufen über die kontextabhängigen Tokens aus Abschnitt 2
   (--surface-fg, --surface-fg-muted, --hairline, --panel, --panel-border,
   --figure-muted, --kicker): hell als Standard, dunkel via body.theme-dark
   bzw. lokal via .section--ink / .section--dark-surface. So rendert dieselbe
   Komponente auf der dunklen Promotion wie auf den hellen Schwester-Sites.

   Aktiv über die Body-Klassen `has-hero-header canvas-page`
   (Front-Matter `heroHeader: true`).
   ========================================================================= */

/* --- J1. Header als transparentes Banner über dem Hero ------------------- */
/* Der Header liegt absolut über dem Hero-Bild und scrollt mit weg – nicht
   sticky. Ohne `.has-hero-header` bleibt der reguläre klebende Header aktiv. */
.has-hero-header .site-header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 30;
  background: transparent; border-bottom: none;
}
.has-hero-header .site-header__bar { padding: 20px clamp(20px, 5vw, 56px); }
.has-hero-header .site-nav--row { gap: 32px; }
.has-hero-header .site-nav .btn {
  padding: 12px 22px; border-radius: 4px;
  font-weight: 600; font-size: 14px; letter-spacing: 0.02em;
}
/* Vollbild-Overlay-Nav ist auch hier deckend (kein durchscheinender Hero). */
.has-hero-header .site-nav--panel { background: var(--ink); }

/* Der Canvas rastert die ganze Landing auf 1180px mit einheitlichem
   Innen-Padding und großzügigen vertikalen Abständen. So fluchten Hero,
   Sektionen und Footer an derselben Kante. */
.canvas-page .section {
  max-width: 1180px;
  padding: clamp(56px, 9vw, 128px) clamp(20px, 5vw, 56px);
}

/* --- J2. Sektionskopf -------------------------------------------------- */
/* Barlow Condensed, Versalien, weite Laufweite – für jede Sektion gleich.
   Entweder als bare `h2` direkt in `.section` oder gruppiert in `.section-head`
   (mit optionalem `.section-head__meta` daneben). */
.canvas-page .section > h2 {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(28px, 4vw, 44px); line-height: 1;
  text-transform: uppercase; letter-spacing: 0.02em;
}
.section-head {
  display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap;
  margin-bottom: clamp(32px, 5vw, 56px);
}
.section-head--spread { justify-content: space-between; }
.section-head h2,
.closeblock__inner > h2 {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(28px, 4vw, 44px); line-height: 1; margin: 0;
  text-transform: uppercase; letter-spacing: 0.02em;
}
.section-head__meta { font-size: 14px; color: var(--text-faint); }

/* Einleitungsabsatz unter einem Sektionskopf */
.canvas-lead {
  font-size: clamp(15px, 1.6vw, 17px); color: var(--surface-fg-muted);
  max-width: 62ch; text-wrap: pretty;
}

/* --- J3. Inhalts-Zeilen (statt Karten) ------------------------------- */
.rowlist { display: flex; flex-direction: column; }
.rowitem {
  border-top: 1px solid var(--hairline);
  padding: clamp(28px, 4vw, 44px) 0;
  display: grid; grid-template-columns: 1fr; gap: clamp(24px, 3vw, 40px);
}
.rowlist > .rowitem:last-child { border-bottom: 1px solid var(--hairline); }
.rowitem--soon {
  border-bottom: 1px solid var(--hairline);
  padding: clamp(26px, 3.5vw, 38px) 0;
  display: flex; align-items: flex-start; gap: clamp(20px, 3vw, 36px); flex-wrap: wrap;
}
.rowitem__lead { display: flex; align-items: flex-start; gap: clamp(20px, 3vw, 36px); }
.rowitem__figure {
  font-family: var(--font-head); font-weight: 700; line-height: 0.85;
  font-size: clamp(46px, 7vw, 76px); color: var(--accent);
}
.rowitem--soon .rowitem__figure { font-size: clamp(34px, 5vw, 52px); color: var(--figure-muted); }
.rowitem__titles { display: flex; flex-direction: column; gap: 10px; }
.rowitem__kicker {
  text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 11px; font-weight: 600; color: var(--kicker);
}
.rowitem__title {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(26px, 3.4vw, 38px); line-height: 1.05; margin: 0;
}
.rowitem--soon .rowitem__body { display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 220px; }
.rowitem--soon .rowitem__title { font-size: clamp(22px, 2.6vw, 28px); color: var(--surface-fg); opacity: 0.92; }
.rowitem__when { margin: 0; font-size: 16px; color: var(--surface-fg-muted); }
.rowitem--soon .rowitem__when { font-size: 15px; color: var(--kicker); }
.rowitem__detail { display: flex; flex-direction: column; gap: 22px; }
.rowitem__facts { display: flex; gap: clamp(28px, 5vw, 56px); flex-wrap: wrap; margin: 0; }
.rowitem__fact { display: flex; flex-direction: column; gap: 4px; }
.rowitem__fact dt {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-faint);
}
.rowitem__fact dd { margin: 0; font-size: 17px; }
.rowitem__actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.rowitem__link { color: var(--surface-fg); text-decoration: none; font-size: 15px; padding: 15px 4px; }
.rowitem__link:hover { color: var(--accent); }
.rowitem__note { font-size: 13px; color: var(--text-faint); padding-top: 6px; }

/* Eckiger Vollton-Button (Zeilen-CTA, Hero-CTA). Nutzung: `btn btn--accent btn--solid`. */
.btn--solid {
  padding: 15px 26px; border-radius: 4px;
  font-weight: 600; font-size: 15px; letter-spacing: 0.02em;
}

/* --- J4. Kompaktes Kachelraster ------------------------------------- */
.tilegrid {
  display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
}
.tilegrid--wide { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
/* Eine einzelne horizontale Reihe (Einzelpreise); scrollt, wenn der Platz fehlt. */
.tilegrid--row {
  grid-template-columns: none; grid-auto-flow: column;
  grid-auto-columns: minmax(170px, 1fr);
  overflow-x: auto; scrollbar-width: thin; padding-bottom: 6px;
}
.tile {
  display: flex; flex-direction: column; gap: 4px;
  padding: 16px 12px; text-decoration: none; color: inherit;
  background: var(--panel); border: 1px solid var(--panel-border); border-radius: 4px;
}
.tilegrid--wide .tile { padding: 16px 18px; }
a.tile:hover { border-color: var(--accent); }
.tile__figure {
  font-family: var(--font-head); font-weight: 700; font-size: 22px;
  line-height: 1; color: var(--surface-fg);
}
.tile__cap { font-size: 12px; color: var(--text-faint); }
.tile__note { font-size: 11px; color: var(--text-faint); }
.tilegrid--wide .tile__cap { font-size: 15px; font-weight: 600; color: var(--surface-fg); }

/* --- J5. Panel-Karten (Formate, Leistungen, Trainer) ---------------- */
.cardgrid {
  display: grid; gap: clamp(20px, 3vw, 32px);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.panelcard {
  background: var(--panel); border: 1px solid var(--panel-border); border-radius: 6px;
  padding: clamp(26px, 3vw, 36px);
  display: flex; flex-direction: column; gap: 14px;
}
.panelcard__figure {
  font-family: var(--font-head); font-weight: 700; font-size: 40px;
  line-height: 0.9; color: var(--accent);
}
.panelcard h3 {
  font-family: var(--font-head); font-weight: 700;
  font-size: 24px; line-height: 1.1; margin: 0;
}
.panelcard p { margin: 0; font-size: 15px; color: var(--surface-fg-muted); text-wrap: pretty; }
.panelcard .muted { color: var(--surface-fg-muted); }
.panelcard a { font-weight: 600; font-size: 14px; text-decoration: none; margin-top: auto; }

/* Coach-Karte: quadratisches Portrait randlos oben, Text darunter. Bild
   kommt aus dem {% image %}-Shortcode (echtes <img class="media"> sobald
   `portrait` gesetzt ist, sonst .ph-Platzhalter). */
.panelcard--coach { overflow: hidden; }
/* Badge nicht auf Kartenbreite dehnen (Flex-Kind in Spalten-Container) */
.panelcard > .badge { align-self: flex-start; }
.panelcard__portrait { margin: calc(-1 * clamp(26px, 3vw, 36px)); margin-bottom: 2px; }
.panelcard__portrait > .ph,
.panelcard__portrait > .media { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 0; }

/* Mobile: Karten-Raster wird zum horizontalen Swipe-Slider statt hohem
   Stapel – Karten schmaler, die nächste lugt hervor. Nur mit `cardgrid--swipe`. */
@media (max-width: 767px) {
  .cardgrid--swipe {
    display: flex; gap: 16px;
    overflow-x: auto; scroll-snap-type: x proximity;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  .cardgrid--swipe::-webkit-scrollbar { display: none; }
  .cardgrid--swipe > * {
    flex: 0 0 clamp(220px, 76%, 300px);
    scroll-snap-align: start;
  }
}

/* --- J5a. Bildton-Overlay (Look & Feel) ---------------------------------
   Echte Fotos sind oft kontrastreicher/farbiger als die ruhige Seitenoptik.
   Ein dezenter Ton-Layer gleicht sie an: leicht entsättigt + weicher Kontrast
   (filter) plus Ink-Verlauf von unten (::after). Gilt für Trainer-Portraits,
   die Inhaber-Karte und Galerie-Slider – bewusst NICHT für Fightcards/Plakate
   (Grafiken mit eigenem Design). Stärke je Kontext über die Variablen
   steuerbar:  --tone-sat / --tone-contrast / --tone-flat / --tone-bottom. */
.panelcard__portrait,
.featured__portrait,
.slider__item { position: relative; isolation: isolate; }
.panelcard__portrait > .media,
.featured__portrait > .media,
.slider__item .media {
  filter: saturate(var(--tone-sat, 0.85)) contrast(var(--tone-contrast, 0.94));
  transition: filter 0.2s ease;
}
.panelcard__portrait::after,
.featured__portrait::after,
.slider__item::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to top, rgba(15,14,13,var(--tone-bottom, 0.30)) 0%, rgba(15,14,13,0) 55%),
    rgba(15,14,13,var(--tone-flat, 0.06));
  transition: opacity 0.2s ease;
}
/* Galerie: Overlay beim Hover zurücknehmen (Lightbox zeigt das Original). */
.slider__item:not(.slider__item--static):hover::after { opacity: 0.4; }
.slider__item:not(.slider__item--static):hover .media { filter: none; }

/* --- J5b. Hervorgehobene Karte (Erfolge: Inhaber) ------------------------ */
.featured {
  display: grid; gap: clamp(20px, 4vw, 44px); align-items: start;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  padding: clamp(20px, 3vw, 36px);
  background: var(--paper); border: 1px solid var(--panel-border);
  border-top: 4px solid var(--accent); border-radius: var(--radius);
  box-shadow: 0 18px 50px rgba(15,14,13,0.14);
}
.featured__body { display: flex; flex-direction: column; gap: 12px; }
.featured__name { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.05; margin: 0; }
.featured__title { margin: 0; font-weight: 600; color: var(--surface-fg-muted); }
.featured__actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 6px; }
.featured__video { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 10px; }
.featured__video { width: 100%; max-width: 760px; margin-inline: auto; }  /* Video + Label mittig in der Karte */
.featured-athletes__head { margin: clamp(48px, 7vw, 80px) 0 20px; }
@media (max-width: 767px) {
  .featured { grid-template-columns: minmax(0, 1fr); }
  .featured__portrait { max-width: 320px; }
}

/* --- J6. Heller Abschluss-Block ------------------------------------- */
/* Vollbreite, 1180er Innenspalte (fluchtet mit den Sektionen). Immer hell –
   auch auf dunklen Sites (Canvas: der „Über"-Block ist Paper trotz Dark-
   Theme). Setzt die Canvas-Tokens lokal auf die Hell-Werte zurück. */
.closeblock {
  background: var(--paper); color: var(--text);
  --surface-fg: var(--text); --surface-fg-muted: var(--text-muted);
  --hairline: var(--border); --panel: var(--card); --panel-border: var(--border);
  --figure-muted: #b9b6ac; --kicker: var(--text-faint);
}
.closeblock__inner {
  max-width: 1180px; margin-inline: auto;
  padding: clamp(56px, 9vw, 128px) clamp(20px, 5vw, 56px);
  display: flex; flex-direction: column; gap: 22px;
}
.closeblock__inner > p {
  margin: 0; font-size: clamp(16px, 1.5vw, 18px); color: var(--text-muted);
  max-width: 52ch; text-wrap: pretty;
}
.closeblock__stat { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-top: 6px; }
.closeblock__num {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(42px, 5vw, 56px); line-height: 1;
}
.closeblock__stat span + span { font-size: clamp(16px, 1.5vw, 18px); color: var(--text-muted); }
.closeblock__secondary {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--panel-border);
}
.closeblock__secondary > h3 { margin: 0; }
.closeblock__secondary > p { margin: 0; max-width: 56ch; font-size: clamp(16px, 1.5vw, 18px); color: var(--text-muted); text-wrap: pretty; }
.closeblock__link {
  color: var(--text); text-decoration: none; font-size: 15px; font-weight: 600;
  border-bottom: 1px solid rgba(22, 21, 19, 0.3); width: fit-content;
  padding-bottom: 5px; margin-top: 6px;
}
.closeblock__link:hover { border-bottom-color: var(--text); }

/* Pull-Quote (Sicherheit „Arbeitsweise") */
.pullquote { margin: 0; border-left: 3px solid var(--accent); padding: 4px 0 4px 24px; }
.pullquote p {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(22px, 2.8vw, 32px); line-height: 1.2; margin: 0;
}

@media (max-width: 767px) {
  .rowitem--soon { flex-direction: column; }
  .rowitem--soon .rowitem__note { padding-top: 0; }
}

/* =========================================================================
   K. Event-Seite: Standortkarte, Bild-Slider, Lightbox
   ========================================================================= */

/* --- K1. Standortkarte (OpenStreetMap, erst auf Klick geladen) -----------
   DSGVO: ohne Klick kein Request an osm.org. Die Karten-Kachel bleibt bis
   dahin ein Platzhalter mit Adresse, Lade-Button und externem Link. */
.mapembed {
  position: relative; aspect-ratio: 16 / 9;
  border-radius: var(--radius); overflow: hidden; background: var(--ph-dark);
}
.mapembed__prompt {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  gap: 14px; padding: clamp(16px, 4vw, 32px);
  background:
    repeating-linear-gradient(135deg, rgba(244,242,236,0.06) 0 2px, transparent 2px 14px),
    var(--ph-dark);
}
.mapembed__hint { margin: 0; font-size: 13px; color: var(--text-invert-muted); max-width: 44ch; }
.mapembed__ext { font-size: 13px; font-weight: 700; color: var(--accent); text-decoration: none; }
.mapembed__ext:hover { color: var(--text-invert); }
.mapembed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.mapembed__credit {
  position: absolute; right: 6px; bottom: 4px; z-index: 1;
  font-size: 10px; color: var(--text-invert-faint);
  background: rgba(15,14,13,0.6); padding: 2px 6px; border-radius: 4px;
}
.mapembed__credit a { color: inherit; }

/* --- K1b. Promo-Video (YouTube, erst auf Klick geladen) ------------------
   Hochkant-/4:5-Video neben Text; das Seitenverhältnis kommt inline aus
   events.json (video.ratio). */
.promovideo {
  display: grid; gap: clamp(24px, 5vw, 56px); align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
}
.promovideo--wide { grid-template-columns: minmax(0, 1fr) minmax(0, 560px); align-items: start; }
.ytembed {
  position: relative; width: 100%;
  border-radius: var(--radius); overflow: hidden; background: var(--ph-dark);
  box-shadow: 0 18px 50px rgba(0,0,0,0.45);
}
.ytembed::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(15,14,13,0.85) 0, rgba(15,14,13,0) 45%);
}
.ytembed.is-loaded::after { display: none; }
.ytembed__play {
  position: absolute; left: 50%; top: 50%; z-index: 1;
  transform: translate(-50%, -50%);
  width: 76px; height: 76px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; padding-left: 4px;
  background: var(--accent); color: var(--ink);
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
  transition: transform 0.15s ease, background 0.15s ease;
}
.ytembed__play:hover { background: var(--accent-hover); transform: translate(-50%, -50%) scale(1.06); }
.ytembed__play:focus-visible { outline: 3px solid var(--text-invert); outline-offset: 3px; }
.ytembed__hint {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; margin: 0;
  padding: 14px 16px; font-size: 12px; line-height: 1.4; color: var(--text-invert-muted);
}
.ytembed__hint a { color: var(--accent); font-weight: 700; text-decoration: none; }
.ytembed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

@media (max-width: 767px) {
  .promovideo { grid-template-columns: minmax(0, 1fr); }
  .ytembed { max-width: 420px; }
}

/* --- K2. Bild-Slider (horizontal, scroll-snap) --------------------------- */
.slider {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 10px; scrollbar-width: thin;
  overscroll-behavior-x: contain;
}
.slider__item {
  flex: 0 0 clamp(240px, 62vw, 380px); scroll-snap-align: start;
  margin: 0; padding: 0; border: 1px solid var(--ink-line);
  border-radius: var(--radius); overflow: hidden;
  background: var(--ph-dark); cursor: zoom-in;
  aspect-ratio: 4 / 3;
}
.slider__item .media { width: 100%; height: 100%; object-fit: cover; display: block; }
.slider__item .ph { width: 100%; height: 100%; }
.slider__item--static { cursor: default; }
.slider__item:not(.slider__item--static):hover { border-color: var(--accent); }
.slider__item:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* --- K3. Lightbox (vanilla <dialog>, aufgebaut von site.js) ------------- */
.lightbox {
  width: 100%; height: 100%; max-width: 100vw; max-height: 100vh;
  margin: 0; padding: 0; border: 0; background: rgba(15,14,13,0.94);
}
.lightbox::backdrop { background: rgba(15,14,13,0.92); }
.lightbox__img {
  position: absolute; inset: 0; margin: auto;
  max-width: 92vw; max-height: 86vh; width: auto; height: auto;
  object-fit: contain;
}
.lightbox__close, .lightbox__nav {
  position: absolute; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border: 0; border-radius: 50%;
  background: rgba(0,0,0,0.45); color: var(--text-invert);
  font-size: 30px; line-height: 1; cursor: pointer;
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(0,0,0,0.75); }
.lightbox__close:focus-visible, .lightbox__nav:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lightbox__close { top: 14px; right: 14px; }
.lightbox__prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__count {
  position: absolute; left: 0; right: 0; bottom: 16px; z-index: 2;
  text-align: center; font-size: 13px; color: var(--text-invert-muted);
}
