/* ULTRA Bike 2027 – Stylesheet nach DESIGN.md (Richtung A „Rennlinie“).
   Farben aus dem Logo, alles eckig, keine Schatten. Schriften selbst gehostet (SIL OFL). */

@font-face { font-family: 'Barlow Condensed'; font-weight: 600; font-style: normal; font-display: swap; src: url('../fonts/barlow-condensed-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 800; font-style: normal; font-display: swap; src: url('../fonts/barlow-condensed-latin-800-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 400; font-style: normal; font-display: swap; src: url('../fonts/barlow-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 500; font-style: normal; font-display: swap; src: url('../fonts/barlow-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 600; font-style: normal; font-display: swap; src: url('../fonts/barlow-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-weight: 500; font-style: normal; font-display: swap; src: url('../fonts/jetbrains-mono-latin-500-normal.woff2') format('woff2'); }

:root {
  --ink: #081F20;      /* Text, Linien, dunkle Bänder */
  --red: #AD2120;      /* nur Signal: Anmeldung, „ULTRA“, erste/aktive Strecke */
  --paper: #FFFFFF;
  --mist: #F3F3F3;
  --line: #D9DADB;
  --muted: #5E6266;
  --photo: #3A3D40;
  --f-title: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --f-text: 'Barlow', Arial, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, monospace;
  --pad: 48px;
  --max: 1280px;
}
@media (max-width: 760px) { :root { --pad: 20px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--f-text); font-size: 18px; line-height: 1.5; }
@media (max-width: 760px) { body { font-size: 17px; } }
img { max-width: 100%; display: block; }
a { color: var(--ink); }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
h1, h2, h3 { margin: 0; font-family: var(--f-title); font-weight: 800; line-height: 0.95; text-transform: uppercase; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.mono { font-family: var(--f-mono); font-size: 13px; letter-spacing: 0.08em; }
.muted { color: var(--muted); }
.ultra { color: var(--red); }
.offen { color: var(--muted); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 8px; top: 8px; z-index: 50; background: var(--paper); padding: 8px 12px; }

/* Buttons */
.btn { display: inline-block; text-decoration: none; padding: 14px 26px; min-height: 44px; font-family: var(--f-title); font-weight: 600; font-size: 20px; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.2; border: 2px solid transparent; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: #8F1B1A; color: #fff; }
.btn-secondary { border-color: var(--ink); color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: #fff; }
.on-photo .btn-secondary { border-color: #fff; color: #fff; }
.on-photo .btn-secondary:hover { background: #fff; color: var(--ink); }
.btn-small { padding: 10px 18px; font-size: 18px; }

/* Familienleiste (Black Forest ULTRA) – im Menü; im Fuß und auf der Startseite als Band */
.family a { color: #C9CBCD; text-decoration: none; }
.family a:hover { color: #fff; text-decoration: underline; }
.family [aria-current] { color: #fff; font-weight: 700; }
.family-label { color: #8E9496; margin-right: 4px; }

/* Kopf */
.site-head { border-bottom: 1px solid var(--line); background: var(--paper); position: fixed; top: 0; left: 0; right: 0; z-index: 30;
  transition: background .25s, box-shadow .25s, border-color .25s; }
.site-head .wrap { height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 24px; transition: height .25s; }
.logo img { height: 68px; width: auto; transition: height .25s; }
/* Fixierte Kopfzeile wie ultra-trailrun.de: bleibt beim Scrollen stehen, ab 40px Scrolltiefe fester Hintergrund und etwas schmaler (assets/js) */
body:not(.has-stage) { padding-top: 85px; }
html { scroll-padding-top: 96px; }
.site-head.is-solid { background: rgba(255,255,255,.96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); box-shadow: 0 6px 24px rgba(8,31,32,.08); }
.site-head.is-solid .wrap { height: 64px; }
.site-head.is-solid .logo img { height: 50px; }
.nav { display: flex; gap: 36px; font-family: var(--f-title); font-weight: 600; font-size: 19px; letter-spacing: 0.06em; text-transform: uppercase; }
.nav a { text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
.nav a[aria-current="page"] { color: var(--red); border-bottom-color: var(--red); }
.head-right { display: flex; align-items: center; gap: 16px; }
.site-head .lang { margin-right: 8px; }
.lang { font-family: var(--f-mono); font-size: 13px; display: inline-flex; align-items: center; gap: 8px; }
.lang a { text-decoration: none; padding: 4px 2px; }
.lang a[aria-current] { font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.lang [aria-hidden] { opacity: 0.45; }
.site-foot .lang a { color: #fff; }
.menu-btn, .menu-close { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border: 2px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; font-family: var(--f-title); font-weight: 600; font-size: 18px; letter-spacing: 0.06em; text-transform: uppercase; }
.menu-btn:hover, .menu-close:hover { background: var(--ink); color: #fff; }
@media (max-width: 1080px) {
  .nav { display: none; }
  .site-head .lang { display: none; }
  .site-head .wrap { height: 68px; }
  .logo img { height: 50px; }
  body:not(.has-stage) { padding-top: 69px; }
  html { scroll-padding-top: 76px; }
  .site-head.is-solid .wrap { height: 56px; }
  .site-head.is-solid .logo img { height: 40px; }
  .head-right { gap: 8px; }
  .menu-btn span { display: none; }
  .menu-btn { padding: 8px 10px; }
}

/* Menü (Vollbild, gleiche Gliederung wie BFUTR) */
.menu { position: fixed; inset: 0; z-index: 100; background: var(--paper); overflow-y: auto; display: flex; flex-direction: column; }
.menu[hidden] { display: none; }
.menu-top { height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); max-width: none; }
.menu-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 48px; padding-top: 48px; padding-bottom: 48px; flex-grow: 1; }
.menu-head { margin: 0 0 16px; font-family: var(--f-mono); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.menu-head a { color: var(--muted); }
.menu-head-2 { margin-top: 32px; }
.menu-list .menu-head a, .menu .menu-head a { display: inline; padding: 0; font-family: var(--f-mono); font-weight: 500; font-size: 13px; letter-spacing: 0.12em; color: var(--muted); }
.menu > .wrap { width: 100%; }
.menu-hidden { opacity: 0.55; }
.menu-tag { margin-left: 10px; font-family: var(--f-mono); font-weight: 500; font-size: 11px; letter-spacing: 0.1em; vertical-align: middle; border: 1px solid currentColor; padding: 2px 6px; }
.menu-list a { display: block; padding: 8px 0; text-decoration: none; font-family: var(--f-title); font-weight: 600; font-size: 24px; text-transform: uppercase; letter-spacing: 0.02em; }
.menu-race { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); text-decoration: none; }
.menu-race .race-name { font-size: 64px; }
.menu-all { display: block; padding-top: 16px; border-top: 1px solid var(--line); font-family: var(--f-mono); font-size: 13px; }
.menu-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 16px; padding-bottom: 16px; background: var(--ink); color: #fff; max-width: none; }
.menu-foot .mono { color: #C9CBCD; }
.family-menu { font-family: var(--f-mono); font-size: 13px; letter-spacing: 0.08em; }
@media (max-width: 1080px) {
  .menu-top { height: 68px; }
  .menu-top .lang { display: none; }
  .menu-grid { grid-template-columns: 1fr 1fr; gap: 32px; padding-top: 24px; }
  .menu-grid > :first-child { grid-column: 1 / -1; }
  .menu-race .race-name { font-size: 48px; }
  .menu-list a { font-size: 20px; padding: 6px 0; }
}
@media (max-width: 520px) { .menu-grid { grid-template-columns: 1fr; } .menu-close span { display: none; } .menu-top .btn { display: none; } }

/* Countdown (wie ultra-trailrun.de) */
.hero-top { position: absolute; top: 48px; left: 0; right: 0; }
.countdown { display: flex; flex-direction: column; gap: 6px; color: #fff; }
.countdown-label { display: flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; }
.pulse { width: 10px; height: 10px; background: var(--red); border-radius: 50%; box-shadow: 0 0 0 0 rgba(173,33,32,0.7); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(173,33,32,0.7); } 70% { box-shadow: 0 0 0 12px rgba(173,33,32,0); } 100% { box-shadow: 0 0 0 0 rgba(173,33,32,0); } }
.countdown-num { font-family: var(--f-title); font-weight: 800; font-size: 120px; line-height: 0.85; }
.countdown-unit { margin-left: 12px; font-family: var(--f-mono); font-weight: 500; font-size: 16px; letter-spacing: 0.04em; }
@media (max-width: 760px) { .hero-top { top: 24px; } .countdown-num { font-size: 72px; } .hero.on-photo { min-height: 840px; } }

/* HERO-UCI-Logo (offizielle Datei) */
.wc-mark { display: inline-block; line-height: 0; }
.wc-mark img { width: auto; display: block; }
.wc-mark-hero { position: absolute; right: var(--pad); bottom: 56px; }
.wc-mark-hero img { height: 150px; }
.wc-mark-band img { height: 130px; }
.wc-mark-foot img { height: 84px; }
.wc-mark-box img { height: 84px; }
@media (max-width: 760px) { .wc-mark-hero { display: none; } .wc-mark-band img { height: 110px; } }

/* Hero */
.hero { position: relative; min-height: 880px; background: var(--photo); color: #fff; overflow: hidden; display: flex; align-items: flex-end; isolation: isolate; }
.hero picture, .hero > img { position: absolute; inset: 0; z-index: -2; }
.hero picture img, .hero > img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8,31,32,0) 35%, rgba(8,31,32,0.78) 100%); }
.hero .wrap { width: 100%; padding-bottom: 56px; display: flex; flex-direction: column; gap: 20px; }
.hero .kicker { font-family: var(--f-mono); font-size: 14px; letter-spacing: 0.14em; }
.hero h1 img { height: 340px; width: auto; }
.hero .date { display: flex; align-items: center; gap: 4px 16px; flex-wrap: wrap; }
.hero .date-sep { font-family: var(--f-title); font-weight: 600; font-size: 40px; color: var(--red); }
.hero .date strong { font-family: var(--f-title); font-weight: 600; font-size: 40px; letter-spacing: 0.02em; }
.rule { display: inline-block; width: 64px; height: 4px; background: var(--red); }
.actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.credit { position: absolute; top: 20px; right: var(--pad); font-family: var(--f-mono); font-size: 12px; color: #D5D7D8; }
@media (max-width: 760px) {
  .hero { min-height: 600px; }
  .hero picture img { object-position: 30% center; }
  .hero h1 img { height: 170px; }
  .hero .date strong { font-size: 30px; }
  .hero .date { flex-direction: column; align-items: flex-start; }
  .hero .date-sep { display: none; }
  .hero .actions { flex-direction: column; }
  .hero .actions .btn { text-align: center; }
  .hero .wrap { padding-bottom: 44px; }
  .hero .credit { top: auto; bottom: 12px; right: var(--pad); left: auto; font-size: 10px; }
}

/* Abschnitte */
.section { padding: 72px 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.section-head h2 { font-size: 64px; }
@media (max-width: 760px) { .section { padding: 48px 0; } .section-head h2 { font-size: 40px; } }

/* Streckenkarten */
.races { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.races-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.race-card { text-decoration: none; background: var(--mist); border-top: 6px solid var(--ink); padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.race-card.is-first { border-top-color: var(--red); }
.race-name { font-family: var(--f-title); font-weight: 800; line-height: 0.85; font-size: 112px; letter-spacing: -0.01em; }
.race-name .ultra { font-size: 0.4em; }
.race-card .was { font-size: 18px; }
@media (max-width: 900px) { .races, .races-2 { grid-template-columns: 1fr; gap: 16px; } .race-card { padding: 20px; flex-direction: row; justify-content: space-between; align-items: flex-end; } .race-card .race-name { font-size: 88px; } .race-card .meta { display: none; } }

/* Band (World Cup u. a.) */
.band { background: var(--ink); color: #fff; padding: 48px 0; }
.band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.band .mono { color: #C9CBCD; display: block; margin-bottom: 10px; }
.band h2 { font-size: 52px; }
.band a { color: #fff; font-family: var(--f-title); font-weight: 600; font-size: 20px; letter-spacing: 0.06em; text-transform: uppercase; }
@media (max-width: 760px) { .band h2 { font-size: 40px; } }

/* Streckenseite */
.crumb { font-family: var(--f-mono); font-size: 13px; color: var(--muted); margin: 40px 0 28px; }
.crumb a { color: var(--muted); }
.race-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; padding-bottom: 48px; }
.race-head h1 { font-size: 236px; line-height: 0.8; text-transform: none; letter-spacing: -0.01em; }
.race-head .sub { font-family: var(--f-title); font-weight: 600; font-size: 32px; letter-spacing: 0.04em; text-transform: uppercase; margin-top: 12px; display: block; }
.race-head .cta { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 6px solid var(--red); background: var(--mist); margin: 0; }
.facts div { padding: 24px; border-right: 1px solid var(--line); }
.facts div:last-child { border-right: 0; }
.facts dt { font-family: var(--f-mono); font-size: 13px; letter-spacing: 0.12em; color: var(--muted); text-transform: uppercase; }
.facts dd { margin: 8px 0 0; font-family: var(--f-title); font-weight: 800; font-size: 48px; line-height: 1; }
.facts-note { margin-top: 10px; font-family: var(--f-mono); font-size: 12px; color: var(--muted); }
.photo-band { position: relative; margin-top: 48px; height: 480px; background: var(--photo); overflow: hidden; }
.photo-band img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.photo-band .credit { top: auto; bottom: 20px; left: var(--pad); right: auto; }
.profile svg { width: 100%; height: auto; display: block; }
.cols { display: flex; gap: 64px; }
.cols > :first-child { flex: 3; } .cols > :last-child { flex: 2; }
.stops { list-style: none; margin: 0; padding: 0; counter-reset: stop; }
.stops li { display: flex; gap: 20px; padding: 14px 0; border-top: 1px solid var(--line); counter-increment: stop; }
.stops li:last-child { border-bottom: 1px solid var(--line); }
.stops li::before { content: counter(stop, decimal-leading-zero); width: 32px; flex-shrink: 0; font-family: var(--f-mono); font-size: 13px; color: var(--red); padding-top: 4px; }
.stops b { font-weight: 600; width: 260px; flex-shrink: 0; }
.stops span { color: var(--muted); }
.links a { display: flex; justify-content: space-between; padding: 16px 0; border-top: 1px solid var(--line); text-decoration: none; font-family: var(--f-title); font-weight: 600; font-size: 22px; text-transform: uppercase; }
.links a:last-child { border-bottom: 1px solid var(--line); }
h2.small { font-size: 48px; margin-bottom: 20px; }
@media (max-width: 900px) {
  .race-head h1 { font-size: min(112px, 22vw); }
  .race-head .sub { font-size: 22px; }
  .race-head .cta { align-items: stretch; width: 100%; }
  .race-head .cta .btn { text-align: center; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts div { border-bottom: 1px solid var(--line); }
  .facts div:nth-child(2n) { border-right: 0; }
  .facts dd { font-size: 32px; }
  .photo-band { height: 300px; }
  .cols { flex-direction: column; gap: 40px; }
  .stops li { flex-wrap: wrap; gap: 4px 14px; }
  .stops b { width: auto; }
  .stops span { width: 100%; padding-left: 46px; }
  h2.small { font-size: 36px; }
}

/* Platzhalterseiten */
.stub { padding-top: 96px; padding-bottom: 96px; }
.stub h1 { font-size: 96px; margin-bottom: 24px; }
@media (max-width: 760px) { .stub h1 { font-size: 52px; } }

/* Startseite: World Cup, Aktuelles, Familie, Newsletter */
.umfrage-band { background: var(--red); }
.umfrage-band .mono { color: #fff; }
.umfrage-band p { margin: 8px 0 0; max-width: 640px; }
.umfrage-band .btn-primary { background: #fff; color: var(--ink); }
.wc-band .wrap { justify-content: flex-start; gap: 40px; }
.wc-band .wc-text { flex-grow: 1; }
.news-item { border-top: 1px solid var(--line); padding-top: 16px; }
.news-item h3 { font-size: 30px; margin: 8px 0 10px; }
.fam-band { background: var(--ink); color: #fff; }
.fam-band h2 { color: #fff; }
.fam-band .section-head .mono { color: #C9CBCD; }
.fam-card { text-decoration: none; color: #fff; border-top: 6px solid #3A4B4C; padding: 28px 0 0; display: flex; flex-direction: column; gap: 14px; }
.fam-card img { height: 120px; width: auto; max-width: 100%; object-fit: contain; object-position: left center; }
.fam-card.is-here { border-top-color: var(--red); }
a.fam-card:hover { color: #fff; border-top-color: #fff; }
.fam-go { color: #C9CBCD; }
@media (max-width: 900px) { .fam-card img { height: 96px; } }
.nl-band { background: var(--red); }
.nl-band .mono { color: #fff; opacity: 0.85; }
@media (max-width: 900px) { .wc-band .wrap { flex-direction: column; align-items: flex-start; } }

/* Übersichtsseiten (Rennen, Event, Über uns) */
.page-title { font-size: 96px; margin-bottom: 16px; }
.lead { font-size: 22px; max-width: 760px; margin-bottom: 40px; }
.hub-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-bottom: 96px; }
.hub-card { position: relative; text-decoration: none; background: var(--mist); border-top: 6px solid var(--ink); padding: 24px 24px 56px; display: flex; flex-direction: column; gap: 8px; min-height: 180px; }
.hub-card:hover { border-top-color: var(--red); }
.hub-title { font-family: var(--f-title); font-weight: 800; font-size: 34px; line-height: 1; text-transform: uppercase; }
.hub-card .go { position: absolute; bottom: 20px; right: 24px; font-size: 24px; }
@media (max-width: 900px) { .hub-grid { grid-template-columns: 1fr; gap: 12px; } .hub-card { min-height: 0; } .page-title { font-size: 52px; } .lead { font-size: 19px; } }

/* World-Cup-Kasten auf ULTRA110 */
.wc-box { display: flex; gap: 20px; align-items: flex-start; margin-top: 32px; padding: 20px; background: var(--mist); border-top: 6px solid var(--red); }
.wc-box p { margin: 0 0 8px; font-size: 16px; }
.wc-box a { font-family: var(--f-title); font-weight: 600; font-size: 18px; text-transform: uppercase; letter-spacing: 0.04em; }

/* Fuß – 3 Spalten wie BFUTR + Folgen + Veranstalter */
.site-foot { background: var(--ink); color: #fff; padding: 56px 0 32px; }
.foot-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) 1.4fr; gap: 32px; }
.foot-head { margin: 0 0 12px; font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: #8E9496; }
.foot-grid > div a { display: block; padding: 4px 0; color: #fff; text-decoration: none; }
.site-foot a:hover { text-decoration: underline; color: #fff; }
.site-foot address { font-style: normal; font-family: var(--f-mono); font-size: 13px; line-height: 1.9; }
.site-foot address a { color: #fff; }
.foot-end { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; margin-top: 48px; padding-top: 32px; border-top: 1px solid #2A3B3C; }
.foot-end img { height: 72px; width: auto; }
.foot-family { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.foot-family .mono { color: #8E9496; }
.foot-family a { color: #fff; }
.foot-family [aria-current] { font-weight: 700; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid address { grid-column: 1 / -1; } }

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

/* Fließtext aus content/*.md */
.prose { max-width: 760px; font-size: 18px; line-height: 1.6; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; text-transform: uppercase; font-size: 34px; line-height: 1.05; margin-top: 1.6em; }
.prose h3 { font-family: 'Barlow Condensed', sans-serif; font-weight: 600; text-transform: uppercase; font-size: 24px; margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .35em; }
.prose a { color: inherit; text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 3px; }
.prose table { border-collapse: collapse; width: 100%; font-size: 16px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-family: 'JetBrains Mono', monospace; font-weight: 500; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.prose blockquote { border-left: 4px solid var(--red); padding-left: 16px; }
.stub.has-text { padding-bottom: 120px; }
.stub.has-text .lead { margin-bottom: 48px; }
@media (max-width: 760px) { .prose { font-size: 17px; } .prose h2 { font-size: 28px; } .prose table { display: block; overflow-x: auto; } }
.lang-note { font-family: 'JetBrains Mono', monospace; font-size: 13px; line-height: 1.5; color: var(--muted); border-left: 3px solid var(--red); padding: 6px 0 6px 12px; margin-bottom: 28px; }
.lang-note a { color: var(--ink); }

/* Bausteine aus data/*.yaml */
.data-block { margin: 1.2em 0; }
.data-block h3:first-child { margin-top: 0; }
.data-table { border-collapse: collapse; width: 100%; font-size: 16px; margin: .6em 0 1.4em; }
.data-table th, .data-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table th { font-family: 'JetBrains Mono', monospace; font-weight: 500; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.data-table td.mono { font-family: 'JetBrains Mono', monospace; white-space: nowrap; }
.data-notes { font-size: 15px; color: var(--muted); }
details.faq { border-bottom: 1px solid var(--line); padding: 14px 0; }
details.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details.faq summary::after { content: '+'; font-family: 'JetBrains Mono', monospace; color: var(--red); }
details.faq[open] summary::after { content: '–'; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq > :not(summary) { margin-top: .6em; }
.partner-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin: .6em 0 1.6em; }
.partner { display: flex; align-items: center; justify-content: center; min-height: 96px; border: 1px solid var(--line); padding: 16px; text-decoration: none; color: var(--ink); }
@media (max-width: 760px) { .data-table { display: block; overflow-x: auto; } }

/* Seitenbausteine (build/blocks.py) */
.note { border-left: 4px solid var(--ink); background: var(--mist); padding: 16px 20px; }
.note-wichtig { border-left-color: var(--red); }
.note > :first-child { margin-top: 0; }
.prose p > .btn { margin: 4px 12px 4px 0; text-decoration: none; }
.prose .btn-primary { color: #fff; }
.prose .btn-secondary { color: var(--ink); }
.prose .btn-secondary:hover { color: #fff; }
figure.fig { margin: 1.6em 0; }
figure.fig img, .galerie img, .karte img { display: block; width: 100%; height: auto; }
figure.grafik-fig { max-width: 400px; }
figure.grafik-fig svg { display: block; width: 100%; height: auto; }
.grafik .g-titel { fill: var(--muted); font-family: var(--f-title); font-weight: 800; font-size: 15px; letter-spacing: .08em; }
.grafik .g-land { fill: #E4E6E7; stroke: #fff; stroke-width: 1; }
figure.grafik-fig.karte-gross { max-width: 760px; }
.grafik .g-dot circle { fill: var(--ink); stroke: #fff; stroke-width: 2; }
.grafik .g-dot-x circle { fill: var(--red); }
.grafik .g-dot text { fill: var(--ink); font-family: var(--f-title); font-weight: 600; font-size: 16px; letter-spacing: .02em; paint-order: stroke; stroke: #fff; stroke-width: 4px; stroke-linejoin: round; }
.grafik .g-dot-x text { fill: var(--red); font-weight: 800; }
.grafik .g-pin path { fill: var(--ink); }
.grafik .g-pin text { fill: #fff; font-family: var(--f-title); font-weight: 600; font-size: 15px; letter-spacing: .04em; }
figure.fig figcaption, .karte figcaption { font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--muted); margin-top: 8px; }
.galerie { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 1.2em 0; }
.galerie figure { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; }
.galerie img { height: 100%; object-fit: cover; }
.kennzahlen { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0; border-top: 2px solid var(--ink); margin: 1.4em 0; }
.kennzahlen > div { padding: 16px 16px 16px 0; border-bottom: 1px solid var(--line); }
.kz-wert { display: block; font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 56px; line-height: 1; }
.kennzahlen .mono { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
ul.downloads { list-style: none; padding: 0; border-top: 1px solid var(--line); }
ul.downloads li + li { margin-top: 0; }
ul.downloads a { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
ul.downloads a:hover span:first-child { text-decoration: underline; text-decoration-color: var(--red); }
.karte { margin: 1.4em 0; }
.karte-leer { aspect-ratio: 16 / 7; background: var(--mist) repeating-linear-gradient(45deg, transparent 0 14px, rgba(8,31,32,.05) 14px 15px); display: flex; align-items: center; justify-content: center; }
.karte figcaption { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; }
.karte figcaption b { color: var(--ink); font-family: 'Barlow', sans-serif; font-size: 16px; }
.karte figcaption span { display: flex; gap: 16px; }
.karte figcaption a { color: var(--ink); }
@media (max-width: 760px) { .kz-wert { font-size: 44px; } .galerie { grid-template-columns: 1fr 1fr; } }
ul.aid { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
ul.aid a { display: inline-block; border: 1px solid var(--line); padding: 8px 12px; text-decoration: none; color: var(--ink); font-size: 16px; }
ul.aid a:hover { border-color: var(--ink); }
.profile-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.profile-svg { display: block; width: 100%; min-width: 760px; height: auto; }
.profile-svg .ax { font: 500 12px 'JetBrains Mono', monospace; fill: #5E6266; }
.profile-svg .pl { font: 600 13px 'Barlow', sans-serif; fill: #081F20; }
.profile-svg .hi { font: 500 13px 'JetBrains Mono', monospace; fill: #AD2120; }
.stops .km { font-style: normal; font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--muted); margin-right: 6px; }
/* World-Cup-Logo in der Box: nicht von .links a strecken/stauchen lassen */
.links a.wc-mark { display: block; flex: 0 0 auto; padding: 0; border: 0; }
.wc-box .wc-mark img { height: 84px; width: auto; max-width: none; aspect-ratio: 484 / 379; }
.btn-primary .btn-race .num { color: var(--ink); }

/* Hall of Fame (Ergebnisse) */
.hof-top > div { display: flex; flex-direction: column; gap: 4px; }
.hof-top b { font-size: 18px; }
.hof-year { margin-top: 1.6em; }
.prose .hof-jahr { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 40px; line-height: 1; margin: 0 0 .2em; color: var(--ink); }
.hof-year .data-table td:first-child { font-family: 'JetBrains Mono', monospace; font-size: 13px; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); white-space: nowrap; }
details.hof-more { margin-top: 2em; border-top: 2px solid var(--ink); padding-top: 14px; }
details.hof-more > summary { cursor: pointer; font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: 24px; text-transform: uppercase; list-style: none; display: flex; justify-content: space-between; }
details.hof-more > summary::after { content: '+'; color: var(--red); font-family: 'JetBrains Mono', monospace; }
details.hof-more[open] > summary::after { content: '–'; }
details.hof-more > summary::-webkit-details-marker { display: none; }
.hof-year .data-table { table-layout: fixed; } .hof-year .data-table th:first-child { width: 34%; }
.wc-tag { display: inline-block; font-family: 'JetBrains Mono', monospace; font-size: 10px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--red); border: 1px solid var(--red); padding: 1px 5px; line-height: 1.4; vertical-align: 2px; margin-left: 6px; white-space: nowrap; }
.wc-alt { display: block; margin-top: 4px; font-size: 14px; color: var(--muted); }
.wc-alt .wc-tag { margin-left: 0; margin-right: 4px; }
.hof-year tr.is-wc td { background: #FBF4F4; }
.hof-note { margin-top: 1.4em; font-size: 14px; color: var(--muted); }
@media (max-width: 760px) { .hof-year .data-table { display: table; font-size: 14px; } .hof-year .data-table th, .hof-year .data-table td { padding: 8px 6px; } .hof-year .data-table th:first-child { width: 30%; } .hof-year .data-table td:first-child { white-space: normal; font-size: 11px; } }

/* World Cup: Kalender und Rennporträts */
.wc-kalender tr.wc-heim td { background: var(--mist); }
.wc-kalender tr.wc-heim td:first-child { box-shadow: inset 3px 0 0 var(--red); }
.wc-kalender td:last-child { font-size: 13px; }
@media (max-width: 760px) { .wc-kalender { display: table; font-size: 15px; } .wc-kalender th, .wc-kalender td { padding: 8px 6px; } .wc-kalender td.mono { white-space: normal; font-size: 12px; } }
.wc-rennen { border-top: 1px solid var(--line); padding: 20px 0 8px; }
.wc-rennen.wc-heim { border-top: 3px solid var(--red); }
.prose .wc-rennen h3 { margin: 6px 0 4px; }
.wc-runde { color: var(--muted); text-transform: uppercase; }
.wc-heim .wc-runde { color: var(--red); }
.prose .wc-meta { color: var(--muted); margin: 0 0 10px; font-size: 13px; }
.wc-links a { margin-right: 20px; }

/* Partner: Logos oder Schriftzug, solange das Logo fehlt */
.p-logo { display: block; max-width: 100%; width: auto; object-fit: contain; }
.p-wort { font-family: var(--f-title); font-weight: 800; text-transform: uppercase; letter-spacing: .04em; line-height: 1; text-align: center; color: var(--ink); }
.p-sec { margin: 56px 0 0; }
.prose h2.p-stufe { display: flex; align-items: center; gap: 16px; font-size: 15px; font-family: var(--f-mono); font-weight: 500; letter-spacing: .14em; color: var(--muted); margin: 0 0 20px; }
.prose h2.p-stufe::before, .prose h2.p-stufe::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.p-logo-box { display: flex; align-items: center; justify-content: center; width: 100%; }
.p-rolle { display: block; margin-top: 10px; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; text-align: center; }
.prose .p-card a, .prose .p-cell, .prose .p-grid a { text-decoration: none; }
/* Hauptpartner */
.p-card { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: center; padding: 32px 0; border-top: 1px solid var(--line); }
.p-cards-haupt .p-card { border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); padding: 48px 0; }
.p-logo-link { display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--mist); padding: 28px; min-height: 150px; }
.p-haupt .p-logo-link { min-height: 220px; }
.p-haupt .p-logo-box { height: 130px; --lh: 80px; } .p-haupt .p-wort { font-size: 48px; }
.p-gold .p-logo-box { height: 78px; --lh: 48px; } .p-gold .p-wort { font-size: 28px; }
.prose .p-text h3 { margin: 0 0 8px; font-size: 24px; }
.prose .p-text p { margin: 0 0 10px; }
.p-web { font-family: var(--f-mono); font-size: 13px; }
/* Logoraster */
.p-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.p-grid-supporter { grid-template-columns: repeat(4, 1fr); }
.p-cell { display: flex; flex-direction: column; align-items: center; justify-content: center; background: #fff; padding: 28px 20px; min-height: 140px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .2s; }
.p-cell:hover { background: var(--mist); }
.p-cell .p-logo-box { height: 64px; --lh: 40px; } .p-cell .p-wort { font-size: 20px; }
.p-grid-supporter .p-cell { min-height: 110px; } .p-grid-supporter .p-logo-box { height: 52px; --lh: 32px; } .p-grid-supporter .p-wort { font-size: 16px; }
@media (max-width: 760px) {
  .p-card { grid-template-columns: 1fr; gap: 20px; }
  .p-grid, .p-grid-supporter { grid-template-columns: repeat(2, 1fr); }
  .p-haupt .p-wort { font-size: 36px; }
}
/* Banderole Startseite */
.p-band { padding-bottom: 64px; }
.p-band .section-head a { color: var(--ink); }
.p-marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.p-track { display: flex; width: max-content; list-style: none; margin: 0; padding: 0; animation: p-lauf 60s linear infinite; }
.p-marquee:hover .p-track, .p-marquee:focus-within .p-track { animation-play-state: paused; }
.p-track li { flex: none; display: flex; align-items: center; justify-content: center; width: 220px; height: 120px; padding: 0 28px; }
.p-track a { display: flex; align-items: center; justify-content: center; width: 100%; height: 64px; --lh: 40px; text-decoration: none; opacity: .75; transition: opacity .2s; }
.p-track a:hover { opacity: 1; }
.p-track .p-wort { font-size: 20px; white-space: nowrap; }
@keyframes p-lauf { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .p-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; } .p-track li[aria-hidden], .p-track li:has(a[aria-hidden]) { display: none; } }
/* Partnerzeile Footer */
.foot-partner { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.15); padding-top: 28px; margin-top: 40px; }
.foot-partner .mono { color: #C9CBCD; text-transform: uppercase; letter-spacing: .1em; }
.foot-partner-logos { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; }
.foot-partner-logos a, .foot-partner-logos span { display: flex; align-items: center; height: 44px; --lh: 32px; opacity: .85; }
.foot-partner-logos a:hover { opacity: 1; text-decoration: none; }
.foot-partner .p-wort { color: #fff; font-size: 18px; }
/* OK-Stellen */
details.stelle ul { margin: .4em 0 .6em; padding-left: 1.2em; }
.prose .stelle-wann { font-size: 13px; color: var(--muted); margin: 0 0 .4em; }
.prose .stelle-wann b { color: var(--ink); font-weight: 500; margin-right: 6px; }

/* Bühne: großes Foto oben auf Inhaltsseiten, Kopfzeile liegt abgesoftet darüber */
.logo .logo-neg { display: none; }
.has-stage .site-head:not(.is-solid) { background: transparent; border-bottom-color: transparent; color: #fff; }
.has-stage .site-head:not(.is-solid) .logo-pos { display: none; }
.has-stage .site-head:not(.is-solid) .logo-neg { display: block; }
.has-stage .site-head:not(.is-solid) .nav a { color: #fff; }
.has-stage .site-head:not(.is-solid) .nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--red); }
.has-stage .site-head:not(.is-solid) .nav a:hover { color: #fff; border-bottom-color: rgba(255,255,255,.6); }
.has-stage .site-head:not(.is-solid) .lang a { color: #fff; }
.has-stage .site-head:not(.is-solid) .menu-btn { border-color: rgba(255,255,255,.8); color: #fff; }
.has-stage .site-head:not(.is-solid) .menu-btn:hover { background: #fff; color: var(--ink); }
.stage { position: relative; min-height: clamp(480px, 46vw, 640px); background: var(--photo); color: #fff; overflow: hidden; display: flex; align-items: flex-end; isolation: isolate; }
.stage picture { position: absolute; inset: 0; z-index: -2; }
.stage picture img { width: 100%; height: 100%; object-fit: cover; object-position: var(--stage-pos, center 40%); }
.stage::after { content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(8,31,32,.72) 0%, rgba(8,31,32,.2) 22%, rgba(8,31,32,0) 40%, rgba(8,31,32,.25) 62%, rgba(8,31,32,.88) 100%); }
.stage-body { width: 100%; padding-top: 140px; padding-bottom: 48px; }
.stage .crumb { color: #D5D7D8; margin: 0 0 18px; }
.stage .crumb a { color: #fff; }
.stage .page-title { color: #fff; font-size: clamp(56px, 8vw, 112px); margin-bottom: 14px; }
.stage .lead { color: #E8E9EA; margin-bottom: 0; max-width: 720px; }
.stage .credit { top: auto; bottom: 16px; right: var(--pad); }
.stub-staged { padding-top: 56px; }
@media (max-width: 760px) {
  .stage { min-height: 460px; }
  .stage-body { padding-top: 110px; padding-bottom: 36px; }
  .stage .page-title { font-size: clamp(44px, 13vw, 64px); }
  .stage .credit { font-size: 10px; bottom: 8px; }
  .stub-staged { padding-top: 40px; }
}
.hub-staged { padding-top: 56px; }
.races-staged { padding-top: 56px; }
.race-staged { padding-top: 40px; }
.stage .section-head { margin-bottom: 0; border: 0; }
.stage .section-head .mono { color: #D5D7D8; }
.stage .race-head { padding-bottom: 0; }
.stage .race-head h1, .stage .race-head .sub { color: #fff; }
.stage .race-head h1 .num { color: #fff; }
@media (max-width: 760px) { .hub-staged, .races-staged { padding-top: 40px; } .race-staged { padding-top: 28px; } }

/* Film (selbst gehostet, ::: film) */
.film { margin: 32px 0; }
.film-frame { position: relative; aspect-ratio: 16 / 9; background: var(--ink); overflow: hidden; }
.film-frame video { width: 100%; height: 100%; display: block; object-fit: cover; background: var(--ink); }
.film figcaption { margin-top: 8px; color: var(--muted); font-size: 13px; }
.film-offen .film-frame { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: #fff; text-align: center; }
.film-icon { display: inline-flex; align-items: center; justify-content: center; width: 72px; height: 72px; border: 2px solid #fff; border-radius: 50%; font-size: 26px; padding-left: 4px; opacity: 0.7; }
.film-titel { font-family: var(--f-title); font-weight: 800; font-size: 36px; text-transform: uppercase; letter-spacing: 0.02em; }
.film-offen .mono { color: #C9CBCD; }

/* Kacheln (::: kacheln) */
.kacheln { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin: 24px 0; }
.kachel { position: relative; display: block; text-decoration: none !important; aspect-ratio: 3 / 2; overflow: hidden; background: var(--ink); color: #fff; text-decoration: none; }
.kachel picture, .kachel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.kachel::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,31,32,0.85), rgba(8,31,32,0) 60%); }
.kachel-text { position: absolute; left: 20px; right: 20px; bottom: 18px; z-index: 1; display: flex; flex-direction: column; gap: 4px; }
.kachel-text b { color: #fff; font-family: var(--f-title); font-weight: 800; font-size: 30px; text-transform: uppercase; line-height: 1; }
.kachel-text .mono { color: #C9CBCD; font-size: 12px; }
.kachel .go { position: absolute; right: 0; bottom: 0; font-size: 24px; transition: transform 0.2s; }
.kachel:hover .go { transform: translateX(4px); }
.kachel:hover img { transform: scale(1.03); transition: transform 0.4s; }
.race-card .meta .nw { white-space: nowrap; }
.stage .section-head + .lead { margin-top: 20px; }

/* Startbild (Aufbau wie ULTRA Gravel, 03.12.2026): Logo frei stehend, darunter ruhige Leiste – Claim links, Eckdaten + Knöpfe rechts */
.hero::after { background: linear-gradient(180deg, rgba(30,25,20,.32) 0%, rgba(30,25,20,.18) 40%, rgba(30,25,20,.8) 100%); }
.hero .hero-top { flex-direction: row; justify-content: space-between; align-items: flex-start; gap: 24px; padding-bottom: 0; }
.hero-top .wc-mark-hero { position: static; }
.hero-top .wc-mark-hero img { height: 120px; }
.hero .hero-main { gap: 0; padding-top: 240px; }
.hero-logo { margin: 0 0 clamp(48px, 7vw, 96px); line-height: 0; }
.hero .hero-logo img { height: clamp(150px, 19vw, 260px); width: auto; }
.hero-bottom { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px 64px; align-items: end; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.35); }
.hero .claim { margin: 0; font-family: var(--f-title); font-weight: 800; font-size: clamp(44px, 5.6vw, 80px); line-height: 0.92; text-transform: uppercase; max-width: 9em; }
.hero-info { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.hero-facts { display: flex; gap: 0; margin: 0; }
.hero-facts div { padding: 0 24px; border-left: 2px solid var(--red); }
.hero-facts div:first-child { padding-left: 0; border-left: 0; }
.hero-facts dt { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,.75); margin-bottom: 4px; }
.hero-facts dd { margin: 0; font-family: var(--f-title); font-weight: 600; font-size: 28px; letter-spacing: 0.02em; text-transform: uppercase; white-space: nowrap; }
.hero-info .actions { margin-top: 0; }
@media (max-width: 1000px) { .hero-bottom { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .hero .hero-main { padding-top: 170px; }
  .hero-logo { margin-bottom: 40px; }
  .hero-facts { flex-wrap: wrap; row-gap: 12px; column-gap: 28px; }
  .hero-facts div, .hero-facts div:first-child { padding: 0 0 0 12px; border-left: 2px solid var(--red); }
  .hero-facts dd { font-size: 22px; }
  .hero-info { align-items: stretch; width: 100%; }
}
.hero-facts dd.hero-region { margin-top: 6px; font-family: var(--f-mono); font-weight: 500; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,.75); }

/* Farbbilder (12/2026): warmer statt petrolfarbener Verlauf */
.stage::after { background: linear-gradient(180deg, rgba(30,25,20,.7) 0%, rgba(30,25,20,.2) 22%, rgba(30,25,20,0) 40%, rgba(30,25,20,.25) 62%, rgba(30,25,20,.86) 100%); }
.kachel::after { background: linear-gradient(to top, rgba(30,25,20,.85), rgba(30,25,20,0) 60%); }
