/* =========================================================
   Rund um den Sachsenring – Stylesheet (nach Designentwurf 1)
   ========================================================= */

@font-face {
  font-family: 'Archivo';
  font-style: normal; font-display: swap;
  font-weight: 100 900; font-stretch: 62% 125%;
  src: url(../fonts/archivo-latin-ext-wdth-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal; font-display: swap;
  font-weight: 100 900; font-stretch: 62% 125%;
  src: url(../fonts/archivo-latin-wdth-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --gruen: #1f6f2f;
  --gruen-dunkel: #0e3b18;
  --tinte: #141714;
  --text-2: #4b554c;
  --linie: #dfe5df;
  --nebel: #eef2ee;
  --gelb: #f4c300;
  --silber: #c9d1c9;
  --bronze: #c98a4a;
  --rot: #d62b2b;
  --breite: 1280px;
  --radius: 12px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--tinte); font-family: 'Archivo', system-ui, sans-serif; font-size: 17px; line-height: 1.55; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gruen); text-underline-offset: 3px; }
a:hover { color: var(--gruen-dunkel); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--gelb); outline-offset: 2px; }
h1, h2, h3, h4 { line-height: 1.1; margin: 0 0 .5em; }

.wrap { max-width: var(--breite); margin: 0 auto; padding: 0 24px; }
.abschnitt { padding: 64px 0; }
.abschnitt--nebel { background: var(--nebel); }
.abschnitt--dunkel { background: var(--tinte); color: #fff; }
.abschnitt--gruen { background: var(--gruen); color: #fff; }
.springen { position: absolute; left: -9999px; top: 0; background: var(--gelb); color: var(--tinte); padding: 12px 16px; z-index: 10; font-weight: 700; }
.springen:focus { left: 8px; }

.titel-xl, .titel-l, .titel-m { font-weight: 900; font-stretch: 82%; text-transform: uppercase; letter-spacing: 0; }
.titel-xl { font-size: clamp(38px, 6vw, 64px); line-height: .95; }
.titel-l { font-size: clamp(30px, 4.4vw, 44px); line-height: 1; }
.titel-m { font-size: clamp(26px, 3.4vw, 36px); line-height: 1; }
.kicker { display: block; font-size: 14px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gruen); margin-bottom: 8px; }
.abschnitt--dunkel .kicker, .abschnitt--gruen .kicker, .hero__panel .kicker { color: var(--gelb); }
.leise { color: var(--text-2); }
.kopfzeile { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 28px; }
.kopfzeile h2 { margin: 0; }
.mehr { font-weight: 700; }

/* Curb-Streifen */
.curbs { height: 8px; background: repeating-linear-gradient(90deg, var(--rot) 0 28px, #fff 28px 56px); }

/* ---------- Kopf ---------- */
.kopf { border-bottom: 1px solid var(--linie); background: #fff; }
.kopf__innen { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding-top: 16px; padding-bottom: 16px; }
.marke { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--tinte); }
.marke:hover { color: var(--tinte); }
.marke__zeichen { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 10px; background: var(--gruen); color: #fff; flex: 0 0 auto; }
.marke__text { display: flex; flex-direction: column; line-height: 1; }
.marke__name { font-size: 22px; font-weight: 850; font-stretch: 88%; text-transform: uppercase; }
.marke__zusatz { font-size: 13px; font-weight: 500; color: var(--text-2); margin-top: 6px; }
.menue-knopf { display: none; align-items: center; gap: 8px; min-height: 44px; padding: 10px 14px; border: 1px solid var(--linie); border-radius: 8px; background: #fff; font: inherit; font-weight: 700; color: var(--tinte); cursor: pointer; }
.hauptmenue { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.hauptmenue a { padding: 12px 14px; font-size: 16px; font-weight: 600; color: var(--tinte); text-decoration: none; border-radius: 6px; }
.hauptmenue a:hover { background: var(--nebel); }
.hauptmenue a[aria-current="page"] { color: var(--gruen); text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }
.hauptmenue .knopf { margin-left: 8px; }

/* ---------- Knöpfe ---------- */
.knopf { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 8px; border: 2px solid transparent; font: inherit; font-size: 16px; font-weight: 800; text-decoration: none; cursor: pointer; }
.knopf--gruen { background: var(--gruen); color: #fff; }
.knopf--gruen:hover { background: var(--gruen-dunkel); color: #fff; }
.knopf--gelb { background: var(--gelb); color: var(--tinte); }
.knopf--gelb:hover { background: #ffd633; color: var(--tinte); }
.knopf--rand { border-color: currentColor; color: inherit; background: transparent; }
.knopf--weiss { background: #fff; color: var(--gruen-dunkel); }
.hauptmenue .knopf--gruen { padding: 12px 20px; font-weight: 700; color: #fff; }
.hauptmenue .knopf--gruen:hover { background: var(--gruen-dunkel); }
.knopfreihe { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--gruen-dunkel); }
.hero__bild { width: 100%; height: clamp(380px, 52vw, 640px); object-fit: cover; object-position: center 40%; }
.hero__lage { position: absolute; left: 0; right: 0; bottom: 0; }
.hero__panel { background: var(--gruen); color: #fff; padding: 34px 40px 40px; max-width: 660px; }
.hero__panel h1 { margin: 0 0 12px; }
.hero__panel p { margin: 0 0 22px; font-size: 20px; font-weight: 500; }

/* ---------- Zahlenleiste ---------- */
.zahlen { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; padding-block: 28px; }
.zahl b { display: block; font-size: 40px; font-weight: 900; font-stretch: 82%; color: var(--gelb); line-height: 1.1; }
.zahl span { font-size: 15px; color: #d6dcd6; }

/* ---------- Podium ---------- */
.karten { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.karte { border: 1px solid var(--linie); border-radius: var(--radius); padding: 22px 22px 18px; display: flex; flex-direction: column; gap: 14px; background: #fff; }
.karte h3 { margin: 0; font-size: 22px; font-weight: 800; font-stretch: 90%; }
.karte__meta { font-size: 14px; color: var(--text-2); }
.karte .pdf { margin-top: auto; font-size: 14px; font-weight: 700; }
.podium { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.podium li { display: flex; gap: 12px; align-items: flex-start; }
.platz { flex: 0 0 auto; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--nebel); color: var(--tinte); font-size: 14px; font-weight: 800; }
.platz--1 { background: var(--gelb); } .platz--2 { background: var(--silber); } .platz--3 { background: var(--bronze); }
.person { display: flex; flex-direction: column; min-width: 0; }
.person b { font-size: 16px; }
.person span { font-size: 14px; color: var(--text-2); }

/* Ergebniszeilen (Rennseite) */
.ergebnisse { display: flex; flex-direction: column; gap: 14px; }
.ergebnis { border: 1px solid var(--linie); border-radius: var(--radius); display: flex; flex-wrap: wrap; overflow: hidden; }
.ergebnis__kopf { flex: 1 1 240px; min-width: 0; padding: 20px 22px; background: var(--nebel); display: flex; flex-direction: column; gap: 6px; }
.ergebnis__kopf h3 { margin: 0; font-size: 22px; font-weight: 800; font-stretch: 90%; }
.ergebnis__kopf span { font-size: 15px; color: var(--text-2); }
.ergebnis .podium { flex: 999 1 520px; min-width: 0; padding: 14px 22px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px 20px; align-content: center; }
.ergebnis .platz { width: 30px; height: 30px; }

/* ---------- Galerie & Video ---------- */
.galerie-video { display: flex; flex-wrap: wrap; gap: 32px; }
.galerie-video > :first-child { flex: 999 1 640px; min-width: 0; }
.galerie-video > :last-child { flex: 1 1 340px; min-width: 0; }
.bildraster { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.bildraster a:first-child { grid-column: span 2; grid-row: span 2; }
.bildraster img, .bildgitter img { width: 100%; height: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 8px; }
.bildgitter { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.bildgitter a, .bildraster a { display: block; border-radius: 8px; overflow: hidden; }
.video { position: relative; border-radius: 10px; overflow: hidden; background: var(--tinte); aspect-ratio: 16 / 9; }
.video img { width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__hinweis { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 20px; text-align: center; color: #fff; font-size: 13px; line-height: 1.4; }
.video__hinweis .knopf { border-radius: 999px; }
.video__hinweis a { color: #fff; }

/* Großansicht */
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(10, 14, 10, .97); display: none; align-items: center; justify-content: center; padding: 56px 16px; }
.lightbox[aria-hidden="false"] { display: flex; }
.lightbox img { max-height: 100%; max-width: 100%; border-radius: 6px; }
.lightbox button { position: absolute; min-width: 48px; min-height: 48px; border: 0; border-radius: 999px; background: #fff; color: var(--tinte); font: inherit; font-size: 22px; font-weight: 800; cursor: pointer; }
.lightbox .zu { top: 12px; right: 12px; }
.lightbox .zurueck { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox .vor { right: 12px; top: 50%; transform: translateY(-50%); }

/* ---------- Zweispalter Peloton / Statistik ---------- */
.duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 24px; }
.kachel { border-radius: 14px; padding: 36px; display: flex; flex-direction: column; gap: 14px; }
.kachel h2 { margin: 0; font-size: 32px; font-weight: 900; font-stretch: 85%; }
.kachel p { margin: 0; }
.kachel > a:last-child { margin-top: auto; font-weight: 700; }
.kachel--dunkel { background: var(--tinte); color: #fff; }
.kachel--dunkel p { color: #e3e8e3; font-size: 18px; }
.kachel--dunkel .kicker, .kachel--dunkel > a:last-child { color: var(--gelb); }
.kachel--rand { border: 1px solid var(--linie); }
.rangliste { list-style: none; margin: 0; padding: 0; }
.rangliste li { display: flex; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--linie); }
.rangliste li > span { flex: 1 1 auto; display: flex; flex-direction: column; }
.rangliste li > b { font-size: 26px; font-weight: 900; font-stretch: 82%; color: var(--gruen); }

/* Geschichte-Band */
.band { display: flex; flex-wrap: wrap; align-items: center; gap: 0 48px; }
.band > div { flex: 1 1 420px; min-width: 0; padding: 64px 0; }
.band > img { flex: 1 1 520px; min-width: 0; height: 440px; object-fit: cover; }
.band p { font-size: 18px; }

/* Förderer */
.foerderer { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.foerderer li { display: grid; place-items: center; min-height: 88px; padding: 12px; border: 1px solid var(--linie); border-radius: 10px; text-align: center; font-size: 14px; font-weight: 600; color: var(--text-2); }
.foerderer a { display: grid; place-items: center; width: 100%; height: 100%; text-decoration: none; color: inherit; }
.foerderer img { max-height: 64px; width: auto; object-fit: contain; }

/* ---------- Seitenkopf (Unterseiten) ---------- */
.seitenkopf { background: var(--tinte); color: #fff; }
.seitenkopf__innen { display: flex; flex-wrap: wrap; gap: 0 48px; align-items: stretch; }
.seitenkopf__text { flex: 1 1 520px; min-width: 0; padding: 40px 0 48px; display: flex; flex-direction: column; gap: 14px; }
.seitenkopf__text h1 { margin: 0; }
.seitenkopf__bild { flex: 1 1 420px; min-width: 0; height: 420px; object-fit: cover; }
.pfad { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: #cfd8cf; }
.pfad a { color: #cfd8cf; }
.marker { align-self: flex-start; padding: 6px 12px; border-radius: 999px; background: #2c3a2e; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.marker--offen { background: var(--gelb); color: var(--tinte); }
.eckdaten { display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 18px; }
.eckdaten span { display: inline-flex; align-items: center; gap: 8px; }
.sprungmenue { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.sprungmenue a { padding: 10px 16px; border-radius: 8px; border: 1px solid #5d6a5f; color: #fff; font-size: 15px; font-weight: 600; text-decoration: none; }
.sprungmenue a:first-child { background: var(--gelb); border-color: var(--gelb); color: var(--tinte); font-weight: 800; }

/* ---------- Tabellen ---------- */
.tabellenbox { overflow-x: auto; border: 1px solid var(--linie); border-radius: var(--radius); background: #fff; }
.tabelle { width: 100%; border-collapse: collapse; font-size: 16px; }
.tabelle th { background: var(--tinte); color: #fff; text-align: left; font-weight: 700; padding: 13px 16px; white-space: nowrap; }
.tabelle td { padding: 12px 16px; border-top: 1px solid var(--linie); vertical-align: top; }
.tabelle tbody tr:nth-child(even) td { background: #f7f9f7; }
.tabelle .zahlspalte { text-align: right; white-space: nowrap; }
.tabelle td small { display: block; color: var(--text-2); font-size: 14px; }
.tabelle--statistik { min-width: 900px; }

/* Downloads */
.dateiliste { list-style: none; margin: 0; padding: 0; border: 1px solid var(--linie); border-radius: var(--radius); overflow: hidden; background: #fff; }
.dateiliste li + li { border-top: 1px solid var(--linie); }
.dateiliste a { display: flex; align-items: center; gap: 14px; padding: 14px 18px; color: var(--tinte); text-decoration: none; }
.dateiliste a:hover { background: var(--nebel); }
.dateiliste b { flex: 1 1 auto; font-weight: 600; }
.etikett { flex: 0 0 auto; padding: 4px 8px; border-radius: 6px; background: var(--gruen); color: #fff; font-size: 12px; font-weight: 800; }
.zweispaltig { display: flex; flex-wrap: wrap; gap: 32px; }
.zweispaltig > :first-child { flex: 999 1 560px; min-width: 0; }
.zweispaltig > :last-child { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.nachbar { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border-radius: var(--radius); background: #fff; border: 1px solid var(--linie); text-decoration: none; color: var(--tinte); }
.nachbar b { font-size: 18px; }
.nachbar span { font-size: 15px; color: var(--text-2); }
.nachbar--dunkel { background: var(--tinte); border-color: var(--tinte); color: #fff; }
.nachbar--dunkel span { color: var(--gelb); }

/* Archiv */
.archiv-jahr { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; padding: 18px 0; border-top: 1px solid var(--linie); }
.archiv-jahr > b { font-size: 30px; font-weight: 900; font-stretch: 82%; color: var(--gruen); line-height: 1.1; }
.archiv-jahr ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.archiv-jahr a { display: block; padding: 12px 16px; border-radius: 10px; background: var(--nebel); text-decoration: none; color: var(--tinte); }
.archiv-jahr a:hover { background: #e2e9e2; }
.archiv-jahr a b { display: block; }
.archiv-jahr a span { font-size: 14px; color: var(--text-2); }

/* Statistik-Reiter */
.reiter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.reiter a { padding: 10px 16px; border-radius: 8px; border: 1px solid var(--linie); text-decoration: none; color: var(--tinte); font-weight: 600; }
.reiter a[aria-current="page"] { background: var(--gruen); border-color: var(--gruen); color: #fff; }
.kennz { display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 4px; background: var(--nebel); font-size: 12px; font-weight: 700; color: var(--text-2); }
.legende { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 6px 24px; margin: 24px 0 0; font-size: 14px; color: var(--text-2); }
.legende dt { font-weight: 700; color: var(--tinte); }
.legende div { display: flex; gap: 8px; }

/* Fließtext */
.fliesstext { max-width: 820px; }
.fliesstext h2 { font-size: 28px; font-weight: 850; font-stretch: 88%; margin-top: 1.6em; }
.fliesstext h3 { font-size: 22px; font-weight: 800; margin-top: 1.4em; }
.fliesstext img { border-radius: 8px; margin: 1em 0; }
.fliesstext table { border-collapse: collapse; width: 100%; margin: 1em 0; font-size: 15px; display: block; overflow-x: auto; }
.fliesstext td, .fliesstext th { border: 1px solid var(--linie); padding: 8px 10px; text-align: left; }
.fliesstext blockquote { margin: 1em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--gruen); }

.hinweisbox { padding: 18px 22px; border-radius: var(--radius); background: #fff7d6; border: 1px solid #ecd27a; }

/* ---------- Fuß ---------- */
.fuss { background: var(--gruen-dunkel); color: #fff; }
.fuss__spalten { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; padding-block: 56px 32px; }
.fuss__spalten > div { display: flex; flex-direction: column; gap: 6px; font-size: 16px; }
.fuss__spalten b { color: var(--gelb); }
.fuss a { color: #fff; }
.fuss__name { font-size: 20px; font-weight: 850; font-stretch: 88%; text-transform: uppercase; line-height: 1.15; }
.fuss__zeile { border-top: 1px solid #2c5a36; padding-block: 18px 28px; font-size: 14px; color: #cfd8cf; }

/* ---------- Handy ---------- */
@media (max-width: 860px) {
  .menue-knopf { display: inline-flex; }
  .kopf__innen { flex-wrap: wrap; }
  .marke__name { font-size: 18px; }
  .marke__zusatz { font-size: 12px; }
  .marke__zeichen { width: 44px; height: 44px; }
  .hauptmenue { display: none; width: 100%; flex-direction: column; align-items: stretch; padding-bottom: 8px; }
  .hauptmenue[data-offen="true"] { display: flex; }
  .hauptmenue a { padding: 14px 8px; border-bottom: 1px solid var(--linie); border-radius: 0; }
  .hauptmenue .knopf { margin: 10px 0 0; border-radius: 8px; }
  .hero__lage { position: static; }
  .hero__panel { max-width: none; margin: 0 -24px; padding: 28px 24px 32px; }
  .bildraster { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .archiv-jahr { grid-template-columns: 1fr; gap: 8px; }
  .band > img { height: 280px; margin: 0 -24px 0; max-width: none; width: calc(100% + 48px); }
  .seitenkopf__bild { height: 240px; margin: 0 -24px; max-width: none; width: calc(100% + 48px); }
  .kachel { padding: 26px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
