/* =====================================================================
   Alpen-Racing – Stylesheet
   Mobile first: Grundregeln gelten für Smartphones, darunter folgen
   Anpassungen für Tablet (ab 720 px) und Desktop (ab 1024 px).

   FARBEN & SCHRIFTEN zentral unter :root ändern.
   ===================================================================== */

/* ---------- Schriften (lokal, keine externen Server) ---------- */
@font-face {
  font-family: "Barlow Condensed";
  src: url("../fonts/barlow-condensed-latin-700-italic.woff2") format("woff2");
  font-weight: 700; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("../fonts/barlow-condensed-latin-600-normal.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("../fonts/barlow-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("../fonts/barlow-latin-600-normal.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}

/* ---------- Gestaltungswerte ---------- */
:root {
  --c-bg:        #0d0e10;   /* Seitenhintergrund (fast Schwarz) */
  --c-surface:   #16181c;   /* Anthrazit – Flächen, Karten */
  --c-surface-2: #1f2228;   /* helleres Anthrazit */
  --c-line:      #2e323a;   /* Trennlinien */
  --c-text:      #f5f5f6;   /* Haupttext */
  --c-muted:     #b0b4bd;   /* Nebentext */
  --c-red:       #e30613;   /* Akzentrot – Flächen & Buttons */
  --c-red-dark:  #b8040f;   /* Rot für Hover */
  --c-red-text:  #ff5a5f;   /* Rot für Text auf dunklem Grund (kontraststark) */
  --c-light:     #f3f3f1;
  /* Formatfarben – wie auf den Alpen-Cup-Terminplakaten */
  --c-sprint:    #0a6cc2;   /* Blau */
  --c-blitz:     #c2410c;   /* Orange */
  --c-endurance: #e30613;   /* Rot */   /* heller Abschnittshintergrund */
  --c-ink:       #121316;   /* Text auf hellem Grund */

  --f-display: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --f-body:    "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --radius: 4px;
  --container: 1200px;
  --gutter: 1.25rem;
  --header-h: 64px;
  --section-y: 4rem;
}

/* ---------- Basis ---------- */
[hidden] { display: none !important; }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1rem; }
h1, h2, h3 {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  margin: 0 0 1rem;
}
h1 { font-size: clamp(2.6rem, 11vw, 5.75rem); }
h2 { font-size: clamp(2rem, 7vw, 3.5rem); }
h3 { font-size: 1.6rem; }

:focus-visible { outline: 3px solid var(--c-red-text); outline-offset: 3px; border-radius: 2px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--c-red); color: #fff; padding: .6rem 1rem; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .75rem 1.5rem;
  font-family: var(--f-display); font-weight: 700; font-style: italic;
  font-size: 1.15rem; letter-spacing: .04em; text-transform: uppercase; text-decoration: none;
  border: 2px solid transparent; border-radius: var(--radius);
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
  cursor: pointer;
}
.btn-primary { background: var(--c-red); color: #fff; }
.btn-primary:hover { background: var(--c-red-dark); }
.btn-ghost { border-color: rgba(255,255,255,.55); color: #fff; background: transparent; }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-sm { min-height: 40px; padding: .45rem 1rem; font-size: 1rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .4rem; padding: .35rem 0;
  font-family: var(--f-display); font-weight: 700; font-style: italic; text-transform: uppercase;
  letter-spacing: .04em; font-size: 1.1rem; color: var(--c-red-text); text-decoration: none;
}
.link-arrow::after { content: "→"; font-style: normal; transition: transform .15s ease; }
.link-arrow:hover::after { transform: translateX(4px); }

/* Platzhalter-Texte deutlich erkennbar */
.placeholder-note {
  color: #ffd27a; font-size: .95rem;
  border-left: 3px dashed #ffd27a; padding-left: .75rem;
}

/* ---------- Header / Navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13,14,16,.94);
  border-bottom: 1px solid var(--c-line);
  backdrop-filter: blur(8px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.brand img { width: auto; height: 34px; max-width: 62vw; }
.brand-name {
  font-family: var(--f-display); font-style: italic; font-weight: 700;
  text-transform: uppercase; font-size: 1.35rem; letter-spacing: .03em;
}

.nav-toggle {
  display: inline-flex; align-items: center; gap: .6rem;
  min-height: 44px; padding: 0 .75rem; margin-right: -.75rem;
  background: none; border: 0; color: var(--c-text);
  font: 600 1rem var(--f-body); cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 22px; height: 2px; background: currentColor; transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

/* Mobil: ausklappbares Menü */
.main-nav {
  position: fixed; inset: var(--header-h) 0 auto 0;
  background: var(--c-bg); border-bottom: 1px solid var(--c-line);
  padding: .5rem var(--gutter) 1.5rem;
  display: none;
}
.main-nav.is-open { display: block; }
.main-nav ul { list-style: none; margin: 0 0 1rem; padding: 0; }
.main-nav li a {
  display: block; padding: .9rem 0; border-bottom: 1px solid var(--c-line);
  font-family: var(--f-display); font-style: italic; font-weight: 700; text-transform: uppercase;
  font-size: 1.6rem; letter-spacing: .02em; text-decoration: none;
}
.main-nav li a:hover { color: var(--c-red-text); }
.nav-cta { width: 100%; }
/* Ohne JavaScript ist das Menü immer sichtbar */
.no-js .nav-toggle { display: none; }
.no-js .main-nav { display: block; position: static; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: calc(100svh - var(--header-h));
  display: flex; align-items: flex-end;
  padding: 6rem 0 2.5rem;
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% center; z-index: -2; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(13,14,16,.35) 0%, rgba(13,14,16,.55) 45%, rgba(13,14,16,.96) 100%),
    linear-gradient(90deg, rgba(13,14,16,.78) 0%, rgba(13,14,16,.35) 50%, rgba(13,14,16,0) 75%);
}
.hero::after { /* roter Akzentstreifen */
  content: ""; position: absolute; left: 0; bottom: 0; width: 38%; height: 6px; background: var(--c-red);
  clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
}
.eyebrow {
  display: inline-block; margin-bottom: 1rem;
  font-family: var(--f-display); font-weight: 600; text-transform: uppercase; letter-spacing: .12em; font-size: .95rem;
  color: #fff; border-left: 4px solid var(--c-red); padding-left: .6rem;
}
.hero h1 { max-width: 14ch; }
@media (min-width: 1024px) { .hero h1 { max-width: 18ch; } }
.hero-lead { max-width: 38rem; font-size: 1.125rem; color: #e4e5e8; margin-bottom: 1.75rem; }
.hero .btn-row .btn { flex: 1 1 100%; }

.next-event {
  margin-top: 2rem; display: grid; gap: .15rem;
  padding: 1rem 1.1rem; max-width: 30rem;
  background: rgba(22,24,28,.9); border: 1px solid var(--c-line); border-left: 4px solid var(--c-red);
}
.next-event-label { font-family: var(--f-display); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; font-size: .85rem; color: var(--c-muted); }
.next-event-title { font-weight: 600; }
.next-event a { color: var(--c-red-text); font-weight: 600; }

/* ---------- Abschnitte allgemein ---------- */
.section { padding: var(--section-y) 0; }
.kicker {
  font-family: var(--f-display); font-weight: 600; text-transform: uppercase;
  letter-spacing: .14em; font-size: .95rem; color: var(--c-red-text); margin-bottom: .5rem;
}
.section-head { margin-bottom: 2rem; max-width: 46rem; }
.section-lead { color: var(--c-muted); font-size: 1.125rem; }

.split { display: grid; gap: 2rem; align-items: center; }
.split-media { margin: 0; position: relative; }
.split-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.split-media::before { /* dezenter roter Rahmenakzent */
  content: ""; position: absolute; top: -10px; left: -10px; width: 64px; height: 64px;
  border-top: 4px solid var(--c-red); border-left: 4px solid var(--c-red);
}

/* Vorstellung */
.facts { list-style: none; padding: 0; margin: 1.75rem 0 0; display: grid; gap: 1px; background: var(--c-line); border: 1px solid var(--c-line); }
.facts li { background: var(--c-surface); padding: .9rem 1rem; display: grid; }
.facts strong { font-family: var(--f-display); font-style: italic; text-transform: uppercase; font-size: 1.3rem; letter-spacing: .02em; }
.facts span { color: var(--c-muted); font-size: .95rem; }

/* Rennformate */
.formats { background: var(--c-surface); }
.cards { display: grid; gap: 1.25rem; }
.card {
  background: var(--c-bg); border: 1px solid var(--c-line); border-radius: var(--radius);
  display: flex; flex-direction: column; overflow: hidden;
  transition: border-color .2s ease, transform .2s ease;
}
.card:hover { border-color: #4a4f59; }
.card-media { position: relative; }
.card-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.tag {
  position: absolute; left: 0; bottom: 0;
  background: var(--c-red); color: #fff; padding: .3rem .9rem .3rem .75rem;
  font-family: var(--f-display); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: .9rem;
  clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}
.card-body { padding: 1.4rem 1.25rem 1.25rem; display: flex; flex-direction: column; flex: 1; }
.card-facts { margin: 0 0 1rem; display: grid; gap: .9rem; }
.card-facts dt { font-family: var(--f-display); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; font-size: .85rem; color: var(--c-muted); }
.card-facts dd { margin: .1rem 0 0; }
.card { border-top: 3px solid var(--card-color, var(--c-red)); }
.card-sprint { --card-color: var(--c-sprint); }
.card-blitz { --card-color: var(--c-blitz); }
.card-endurance { --card-color: var(--c-endurance); }
.card .tag { background: var(--card-color, var(--c-red)); }
.card-links { margin-top: auto; display: flex; flex-direction: column; gap: .1rem; padding-top: .5rem; border-top: 1px solid var(--c-line); }
.link-file { display: inline-block; padding: .4rem 0; color: var(--c-text); font-size: .95rem; text-underline-offset: 3px; }
.link-file::before { content: "↓ "; color: var(--c-muted); }
.link-file:hover { color: var(--c-red-text); }
.cup-logo { width: 170px; height: auto; margin-bottom: 1.25rem; }
.included { margin-top: 2rem; padding: 1.25rem 1.25rem .25rem; background: var(--c-bg); border-left: 4px solid var(--c-red); border-radius: var(--radius); color: var(--c-muted); font-size: .98rem; }
.included strong { color: var(--c-text); }
.included a { color: var(--c-red-text); font-weight: 600; }

/* Termine */
.filter { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.25rem; }
.chip {
  min-height: 44px; padding: .4rem 1.1rem;
  background: transparent; color: var(--c-text);
  border: 1px solid #50555f; border-radius: 999px;
  font: 600 1rem var(--f-body); cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
}
.chip:hover { border-color: #fff; }
.chip[aria-pressed="true"] { background: #fff; color: var(--c-ink); border-color: #fff; }

.sample-banner {
  margin-bottom: 1.25rem; padding: .85rem 1rem;
  background: rgba(255,210,122,.1); border: 1px dashed #ffd27a; color: #ffe3a8; border-radius: var(--radius); font-size: .98rem;
}

.event-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--c-line); }
.event {
  display: grid; grid-template-columns: 4.5rem 1fr; gap: .25rem 1rem;
  padding: 1.25rem 0; border-bottom: 1px solid var(--c-line);
}
.event-date { grid-row: span 2; text-align: center; background: var(--c-surface); border-top: 3px solid var(--c-red); padding: .45rem 0 .5rem; align-self: start; }
.event-day { display: block; font-family: var(--f-display); font-style: italic; font-weight: 700; font-size: 2.1rem; line-height: 1; }
.event-month { display: block; font-family: var(--f-display); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: .9rem; }
.event-weekday { display: block; color: var(--c-muted); font-size: .8rem; }
.event-main { min-width: 0; }
.event-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .6rem; margin-bottom: .3rem; }
.badge {
  display: inline-block; padding: .1rem .55rem; border-radius: 2px;
  font-family: var(--f-display); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: .82rem;
  background: var(--c-surface-2); color: #fff; border: 1px solid #454a54;
}
.badge-sprint { background: var(--c-sprint); border-color: var(--c-sprint); }
.badge-blitz { background: var(--c-blitz); border-color: var(--c-blitz); }
.badge-endurance { background: var(--c-endurance); border-color: var(--c-endurance); }
.badge-finale { background: #fff; color: var(--c-ink); border-color: #fff; }
.badge-sample { background: transparent; border: 1px dashed #ffd27a; color: #ffd27a; }
.event-title { font-family: var(--f-body); font-style: normal; text-transform: none; font-size: 1.15rem; font-weight: 600; line-height: 1.3; margin: 0 0 .2rem; }
.event-program { margin: 0 0 .1rem; font-weight: 600; color: #e4e5e8; }
.event-place { color: var(--c-muted); margin: 0; font-size: .98rem; }
.btn-more { margin-top: 1.25rem; width: 100%; }
.event-footnote { margin-top: 1.5rem; color: var(--c-muted); font-size: .95rem; max-width: 46rem; }
.event-note { color: var(--c-muted); margin: .2rem 0 0; font-size: .92rem; }
.event-action { grid-column: 2; margin-top: .6rem; }
.event-action .btn { min-height: 44px; }
.event-closed {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem;
  border: 1px solid var(--c-line); color: var(--c-muted); border-radius: var(--radius); font-weight: 600; font-size: .95rem;
}
.event-empty { padding: 1.5rem 0; color: var(--c-muted); }

/* Racing School */
.split-media-portrait img { aspect-ratio: 4 / 5; object-position: center top; }
.school { background: var(--c-surface); }
.programs { display: grid; gap: 1rem; margin: 1.5rem 0; }
.program { background: var(--c-bg); border: 1px solid var(--c-line); border-top: 3px solid var(--c-red); padding: 1.25rem; border-radius: var(--radius); }
.program h3 { font-size: 1.5rem; margin-bottom: .5rem; }
.program p:last-child { margin-bottom: 0; }

/* Verein */
.checklist { list-style: none; padding: 0; margin: 0 0 1.25rem; }
.checklist li { position: relative; padding-left: 1.75rem; margin-bottom: .55rem; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .55em; width: 14px; height: 8px;
  background: var(--c-red); clip-path: polygon(0 0, 100% 0, calc(100% - 4px) 100%, 0 100%);
}

/* Galerie */
.gallery-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.gallery-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.gallery-more { margin-top: 1.25rem; color: var(--c-muted); }
.gallery-more a { color: var(--c-red-text); font-weight: 600; }

/* Anmeldung – heller Abschnitt als Kontrast */
.signup { background: var(--c-light); color: var(--c-ink); }
.signup .kicker { color: #c00511; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; counter-reset: step; }
.steps li {
  counter-increment: step; position: relative;
  background: #fff; border: 1px solid #dedfe2; border-radius: var(--radius);
  padding: 1.25rem 1.25rem 1.25rem 4.25rem;
}
.steps li::before {
  content: counter(step);
  position: absolute; left: 1.1rem; top: 1.05rem;
  font-family: var(--f-display); font-style: italic; font-weight: 700; font-size: 2.4rem; line-height: 1; color: #c00511;
}
.steps h3 { font-size: 1.4rem; margin-bottom: .35rem; }
.steps p { margin: 0; }
.steps a { color: #c00511; font-weight: 600; word-break: break-word; }
.signup .placeholder-note { color: #7a4b00; border-color: #c98a1a; }
.signup-info { display: grid; gap: 1.5rem; margin-top: 2rem; }
.signup-info > div { background: #fff; border: 1px solid #dedfe2; border-radius: var(--radius); padding: 1.25rem; }
.signup-info h3 { font-size: 1.4rem; margin-bottom: .5rem; }
.signup-info p { margin-bottom: 0; }
.downloads { list-style: none; margin: 0 0 .75rem; padding: 0; }
.downloads a { display: inline-block; padding: .35rem 0; color: #c00511; font-weight: 600; text-underline-offset: 3px; }
.downloads a::before { content: "↓ "; }
.downloads-note { color: #4a4d55; font-size: .92rem; }

/* Partner */
.partner-grid { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.partner-grid li { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 1rem; height: 112px; display: flex; align-items: center; justify-content: center; }
.partner-grid img { width: auto; height: auto; max-width: 100%; max-height: 64px; }
.partner-grid a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.partners-cta { color: var(--c-muted); }
.partners-cta a { color: var(--c-red-text); font-weight: 600; }

/* Kontakt */
.contact { background: var(--c-surface); border-top: 4px solid var(--c-red); }
.contact-inner { display: grid; gap: 2rem; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--c-line); border: 1px solid var(--c-line); }
.contact-list li { background: var(--c-bg); padding: 1rem 1.15rem; display: grid; gap: .1rem; }
.contact-label { font-family: var(--f-display); font-weight: 600; text-transform: uppercase; letter-spacing: .12em; font-size: .85rem; color: var(--c-muted); }
.club-address { font-style: normal; color: var(--c-muted); margin-top: 1rem; line-height: 1.5; }
.contact-value { font-size: 1.15rem; font-weight: 600; word-break: break-word; }
a.contact-value { color: #fff; text-decoration-color: var(--c-red); text-underline-offset: 4px; text-decoration-thickness: 2px; }
a.contact-value:hover { color: var(--c-red-text); }

/* Footer */
.site-footer { padding: 2.5rem 0; border-top: 1px solid var(--c-line); color: var(--c-muted); font-size: .95rem; }
.footer-inner { display: grid; gap: 1.25rem; }
.footer-brand { display: flex; align-items: center; gap: .9rem; }
.footer-brand img { width: auto; height: 40px; }
.footer-brand p { margin: 0; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; }
.footer-links a { display: inline-block; padding: .4rem 0; color: var(--c-text); }
.footer-copy { margin: 0; }

/* Unterseiten (Impressum / Datenschutz) */
.legal { padding: 3rem 0 4rem; max-width: 46rem; }
.legal h1 { font-size: clamp(2.2rem, 8vw, 3.5rem); }
.legal h2 { font-size: 1.6rem; margin-top: 2rem; }
.legal dl { display: grid; gap: .6rem; }
.legal dt { font-weight: 600; }
.legal dd { margin: 0 0 .5rem; }
.legal a { color: var(--c-red-text); }


/* ---------- Racing School: Inhalte & Pakete ---------- */
.subhead { font-size: clamp(1.7rem, 5vw, 2.4rem); margin: 3.5rem 0 1.25rem; }
.topics { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--c-line); border: 1px solid var(--c-line); counter-reset: topic; }
.topics li { background: var(--c-bg); padding: 1.25rem 1.25rem 1.25rem 4rem; position: relative; counter-increment: topic; }
.topics li::before {
  content: counter(topic, decimal-leading-zero); position: absolute; left: 1.15rem; top: 1.1rem;
  font-family: var(--f-display); font-style: italic; font-weight: 700; font-size: 1.6rem; color: var(--c-red-text);
}
.topics h4, .package h4, .membership-col h4,
.topics h3, .package h3, .membership-col h3 {
  font-family: var(--f-display); font-style: italic; font-weight: 700; text-transform: uppercase;
  font-size: 1.35rem; letter-spacing: .02em; line-height: 1.1; margin: 0 0 .4rem;
}
.topics p { margin: 0; color: var(--c-muted); }
.packages { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: 1rem; }
.package { background: var(--c-bg); border: 1px solid var(--c-line); border-top: 3px solid var(--c-red); border-radius: var(--radius); padding: 1.25rem; display: flex; flex-direction: column; }
.package-note { margin: 0 0 .75rem; color: var(--c-muted); font-size: .92rem; }
.package dl { margin: 0 0 1rem; display: grid; gap: .6rem; }
.package dt { font-family: var(--f-display); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; font-size: .82rem; color: var(--c-muted); }
.package dd { margin: 0; }
.package-price { margin: auto 0 1rem; font-size: 1rem; color: var(--c-muted); }
.package-price strong { display: block; font-family: var(--f-display); font-style: italic; font-size: 2.2rem; line-height: 1; color: var(--c-text); }
.package .btn { align-self: flex-start; }
.packages-info { color: var(--c-muted); }

.academy { margin-top: 3.5rem; display: grid; gap: 1.5rem; padding: 1.5rem; background: var(--c-bg); border: 1px solid var(--c-line); border-left: 4px solid var(--c-red); border-radius: var(--radius); }
.academy h3 { font-size: clamp(1.7rem, 5vw, 2.3rem); }
.academy-text p:last-child { margin-bottom: 0; }
.academy-compare { display: grid; gap: .25rem; align-content: start; }
.academy-compare p { color: var(--c-muted); margin-bottom: .6rem; }
.academy-compare strong { color: var(--c-text); }
.academy-compare .btn { justify-self: start; margin-top: .5rem; }

/* ---------- Instruktoren ---------- */
.team { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.team-card { background: var(--c-bg); border: 1px solid var(--c-line); border-top: 3px solid var(--c-red); border-radius: var(--radius); overflow: hidden; }
.team-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; }
.team-body { padding: 1.1rem 1.25rem 1.25rem; }
.team-body h4, .team-body h3 { font-family: var(--f-display); font-style: italic; font-weight: 700; text-transform: uppercase; font-size: 1.6rem; line-height: 1.05; margin: 0 0 .25rem; }
.team-role { margin: 0 0 .6rem; color: var(--c-red-text); font-family: var(--f-display); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: .9rem; }
.team-body > p:not(.team-role) { color: var(--c-muted); }
.team-body a { color: var(--c-red-text); font-weight: 600; }
.team-facts { margin: 0 0 1rem; display: grid; gap: .5rem; padding: .75rem 0; border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); }
.team-facts div { display: grid; grid-template-columns: 9.5rem 1fr; gap: .75rem; }
.team-facts dt { font-family: var(--f-display); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: .82rem; color: var(--c-muted); padding-top: .15rem; }
.team-facts dd { margin: 0; font-weight: 600; }
.team-quote { margin: 0; padding: .25rem 0 .25rem 1rem; border-left: 3px solid var(--c-red); font-family: var(--f-display); font-style: italic; font-weight: 700; font-size: 1.35rem; line-height: 1.2; color: #fff; }
.team-quote::before { content: "„"; } .team-quote::after { content: "“"; }
@media (min-width: 720px) { .team { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .team { grid-template-columns: 1fr; gap: 1.25rem; } .team-card { display: grid; grid-template-columns: 320px 1fr; } .team-card img { height: 100%; aspect-ratio: auto; min-height: 400px; } .team-body { padding: 1.75rem 2rem; align-self: center; } .team-body > p:not(.team-role) { max-width: 46rem; } }

/* ---------- Mitgliedschaft ---------- */
.membership .subhead { margin-top: 3.5rem; }
.membership-grid { display: grid; gap: 1px; background: var(--c-line); border: 1px solid var(--c-line); }
.membership-col { background: var(--c-surface); padding: 1.25rem; }
.membership-col .checklist { margin: 0; }
.fees { margin: 0; display: grid; gap: .75rem; }
.fees div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; border-bottom: 1px solid var(--c-line); padding-bottom: .6rem; }
.fees dt { color: var(--c-muted); }
.fees dd { margin: 0; font-family: var(--f-display); font-style: italic; font-weight: 700; font-size: 1.8rem; line-height: 1; }
.fees-note { margin: .75rem 0 0; color: var(--c-muted); font-size: .95rem; }
.plainlist { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; color: var(--c-muted); font-size: .98rem; }
.membership-cta { margin-top: 1.25rem; display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; }
.membership-cta p { margin: 0; }

/* Partner ohne Logo */
.partner-grid .partner-text a {
  font-family: var(--f-display); font-style: italic; font-weight: 700; text-transform: uppercase;
  font-size: 1.35rem; letter-spacing: .04em; text-decoration: none; text-align: center; color: var(--c-text);
}
.partner-grid .partner-text a:hover { color: var(--c-red-text); }

/* Rechtstexte */
.legal-table { overflow-x: auto; margin: 1rem 0 1.5rem; }
.legal table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: .55rem .7rem; border-bottom: 1px solid var(--c-line); }
.legal th { font-family: var(--f-display); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: .82rem; color: var(--c-muted); }
.legal h2 { scroll-margin-top: calc(var(--header-h) + 16px); }
.legal-address { font-style: normal; line-height: 1.6; margin-bottom: 1rem; }
.legal ul { padding-left: 1.2rem; }
.legal li { margin-bottom: .35rem; }


/* ---------- Cupwertung (wertung.html) ---------- */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.standings-title { font-size: clamp(2.6rem, 10vw, 5rem); }
.season-tabs { display: flex; gap: .25rem; overflow-x: auto; overflow-y: hidden; scroll-margin-top: calc(var(--header-h) + 1rem); border-bottom: 1px solid var(--c-line); margin-bottom: 1rem; scrollbar-width: thin; }
.season-tabs .tab {
  position: relative; flex: 0 0 auto; min-height: 52px; padding: .5rem 1.1rem; background: none; border: 0; cursor: pointer;
  font-family: var(--f-display); font-style: italic; font-weight: 700; font-size: 1.7rem; letter-spacing: .02em; color: var(--c-muted);
}
.season-tabs .tab:hover { color: var(--c-text); }
.season-tabs .tab[aria-selected="true"] { color: #fff; }
.season-tabs .tab[aria-selected="true"]::after {
  content: ""; position: absolute; left: .6rem; right: .6rem; bottom: 0; height: 4px; background: var(--c-red);
  clip-path: polygon(0 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}
.class-tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.75rem; }
.class-tabs .tab {
  min-height: 44px; padding: .4rem 1.1rem; cursor: pointer; border-radius: 2px;
  background: transparent; color: var(--c-text); border: 1px solid #50555f;
  font-family: var(--f-display); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: .95rem;
  border-left: 4px solid var(--tab-color, var(--c-red));
}
.class-tabs .tab-sprint { --tab-color: var(--c-sprint); }
.class-tabs .tab-endurance { --tab-color: var(--c-endurance); }
.class-tabs .tab:hover { border-color: #fff; border-left-color: var(--tab-color); }
.class-tabs .tab[aria-selected="true"] { background: var(--tab-color); border-color: var(--tab-color); color: #fff; }

.standings-panel { --fmt: var(--c-sprint); }
.standings-panel.fmt-endurance { --fmt: var(--c-endurance); }
.standings-head { border-left: 4px solid var(--fmt); padding-left: 1rem; margin-bottom: 1.25rem; }
.standings-class { margin-bottom: .25rem; font-size: clamp(1.8rem, 6vw, 2.6rem); }
.standings-meta { margin: 0; color: var(--c-muted); font-family: var(--f-display); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; font-size: .9rem; }
.standings-note { margin: .5rem 0 0; color: var(--c-muted); font-size: .95rem; }

.table-scroll { overflow-x: auto; border: 1px solid var(--c-line); border-radius: var(--radius); background: var(--c-bg); }
.table-scroll:focus-visible { outline-offset: 2px; }
.standings-table { width: 100%; border-collapse: separate; border-spacing: 0; font-variant-numeric: tabular-nums; font-size: .98rem; }
.standings-table th, .standings-table td { padding: .55rem .6rem; text-align: center; white-space: nowrap; border-bottom: 1px solid var(--c-line); }
.standings-table thead th {
  background: #000; color: #fff; position: sticky; top: 0; z-index: 2;
  font-family: var(--f-display); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: .85rem;
  border-bottom: 3px solid var(--fmt);
}
.standings-table thead th.race { min-width: 3.1rem; }
.race-label { display: block; }
.race-sub { display: block; font-family: var(--f-body); text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--c-muted); font-size: .78rem; }
.standings-table tbody tr:nth-child(even) td, .standings-table tbody tr:nth-child(even) th { background: #121316; }
.standings-table tbody tr:hover td, .standings-table tbody tr:hover th { background: var(--c-surface-2); }
.standings-table .col-pos { width: 3.2rem; position: sticky; left: 0; z-index: 1; background: var(--c-bg); }
.standings-table .col-name {
  text-align: left; font-weight: 600; position: sticky; left: 3.2rem; z-index: 1; background: var(--c-bg);
  box-shadow: 1px 0 0 var(--c-line); max-width: 15rem; overflow: hidden; text-overflow: ellipsis;
}
.standings-table thead .col-pos, .standings-table thead .col-name { z-index: 3; background: #000; }
.standings-table tbody tr:nth-child(even) .col-pos, .standings-table tbody tr:nth-child(even) .col-name { background: #121316; }
.standings-table .col-total { font-family: var(--f-display); font-style: italic; font-weight: 700; font-size: 1.25rem; color: #fff; }
.standings-table thead .col-total { font-style: normal; font-size: .85rem; }
.standings-table .col-gap { color: var(--c-muted); }
.standings-table td.race { color: #d9dbe0; }
.standings-table td.race.top { color: #fff; font-weight: 700; }
.standings-table td.dns { color: #5c616b; }
.standings-table td.streich, .legend-cell.streich { color: #7c818c; text-decoration: line-through; text-decoration-color: var(--c-red-text); }
.pos-badge {
  display: inline-flex; align-items: center; justify-content: center; min-width: 2rem; height: 2rem; padding: 0 .3rem;
  font-family: var(--f-display); font-style: italic; font-weight: 700; font-size: 1.1rem; color: var(--c-muted);
}
.pos-badge.p1, .pos-badge.p2, .pos-badge.p3 { color: #111; border-radius: 2px; clip-path: polygon(0 0, 100% 0, calc(100% - 5px) 100%, 0 100%); }
.pos-badge.p1 { background: #f2c230; }
.pos-badge.p2 { background: #c9ccd3; }
.pos-badge.p3 { background: #c8783a; }
.standings-table tr.podium .col-name { color: #fff; }
.standings-table tr.p1 .col-total { color: #f2c230; }
.gap-row td { text-align: left !important; color: var(--c-muted); font-style: italic; background: var(--c-surface) !important; }

.standings-legend { list-style: none; padding: 0; margin: 1.25rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; color: var(--c-muted); font-size: .92rem; }
.standings-legend li { display: flex; align-items: center; gap: .4rem; }
.standings-legend .pos-badge { min-width: 1.6rem; height: 1.6rem; font-size: .95rem; }
.legend-cell { display: inline-block; min-width: 1.6rem; text-align: center; font-weight: 600; }

/* Link auf die Cupwertung von der Startseite */
.cup-standings-link { margin-top: 1.5rem; }


/* ---------- Unterseite Alpen-Cup ---------- */
.page-hero { position: relative; isolation: isolate; overflow: hidden; padding: 4rem 0 3rem; }
.page-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(13,14,16,.6), rgba(13,14,16,.97)); }
.page-hero-tall { min-height: calc(85svh - var(--header-h)); display: flex; align-items: flex-end; }
.page-hero-tall .page-hero-bg { object-position: 60% center; }
.page-hero h1 { font-size: clamp(3rem, 12vw, 6rem); }
.page-hero .cup-logo { margin-bottom: 1rem; }
.format-jump { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; }
.format-jump a {
  min-height: 44px; display: inline-flex; align-items: center; padding: .4rem 1rem; text-decoration: none;
  font-family: var(--f-display); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: .95rem;
  border: 1px solid #50555f; border-left: 4px solid var(--fj); background: rgba(13,14,16,.6);
}
.format-jump a:hover { border-color: #fff; border-left-color: var(--fj); }
.fj-sprint { --fj: var(--c-sprint); } .fj-blitz { --fj: var(--c-blitz); } .fj-endurance { --fj: var(--c-endurance); }
.card[id] { scroll-margin-top: calc(var(--header-h) + 16px); }
.cards-compact .card-body p { color: var(--c-muted); }
.link-plain::before { content: none; }
.cup-more { margin-top: 2rem; }
.cup-docs-grid { display: grid; gap: 2.5rem; }
.downloads-dark a { color: var(--c-red-text); }
.downloads-note-dark { color: var(--c-muted); font-size: .92rem; }
.cup-standings-teaser { background: var(--c-surface); border: 1px solid var(--c-line); border-left: 4px solid var(--c-red); padding: 1.5rem; border-radius: var(--radius); }
.cup-standings-teaser h2 { font-size: clamp(1.8rem, 6vw, 2.6rem); }
.cup-standings-teaser p:not(.kicker) { color: var(--c-muted); }
@media (min-width: 720px) { .cup-docs-grid { grid-template-columns: 1fr 1fr; align-items: start; } .page-hero { padding: 6rem 0 4rem; } }

/* =====================================================================
   TABLET (ab 720 px)
   ===================================================================== */
@media (min-width: 720px) {
  :root { --gutter: 2rem; --section-y: 5.5rem; }
  .hero .btn-row .btn { flex: 0 0 auto; }
  .facts { grid-template-columns: repeat(3, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .programs { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .partner-grid { grid-template-columns: repeat(3, 1fr); }
  .signup-info { grid-template-columns: 1fr 1fr; }
  .btn-more { width: auto; }
  .topics { grid-template-columns: 1fr 1fr; }
  .topics li:last-child { grid-column: 1 / -1; }
  .packages { grid-template-columns: 1fr 1fr; }
  .membership-grid { grid-template-columns: repeat(3, 1fr); }
  .event { grid-template-columns: 5.5rem 1fr auto; align-items: center; gap: 0 1.5rem; }
  .event-date { grid-row: auto; }
  .event-action { grid-column: auto; margin-top: 0; }
  .footer-inner { grid-template-columns: 1fr auto; align-items: center; }
  .footer-copy { grid-column: 1 / -1; }
}

/* =====================================================================
   DESKTOP (ab 1024 px)
   ===================================================================== */
@media (min-width: 1024px) {
  :root { --header-h: 76px; --section-y: 7rem; }
  .nav-toggle { display: none; }
  .main-nav {
    display: flex; align-items: center; gap: 2rem;
    position: static; background: none; border: 0; padding: 0;
  }
  .main-nav ul { display: flex; gap: 1.75rem; margin: 0; }
  .main-nav li a {
    border: 0; padding: .5rem 0; font-size: 1.2rem; letter-spacing: .05em; position: relative;
  }
  .main-nav li a::after {
    content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--c-red);
    transition: right .2s ease;
  }
  .main-nav li a:hover { color: #fff; }
  .main-nav li a:hover::after, .main-nav li a:focus-visible::after { right: 0; }
  .nav-cta { width: auto; }

  .hero { padding-bottom: 4rem; }
  .hero-content { display: grid; grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr 1fr; gap: 4.5rem; }
  .split-reverse .split-media { order: -1; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: .75rem; }
  .topics { grid-template-columns: repeat(6, 1fr); }
  .topics li { grid-column: span 2; }
  .topics li:nth-child(n+4) { grid-column: span 3; }
  .packages { grid-template-columns: repeat(4, 1fr); }
  .academy { grid-template-columns: 3fr 2fr; gap: 3rem; padding: 2.5rem; }
  .partner-grid { grid-template-columns: repeat(6, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .cup-logo { width: 200px; }
  .contact-inner { grid-template-columns: 1fr 1fr; align-items: center; gap: 4rem; }
  .split .facts { grid-template-columns: 1fr; }
  .event { grid-template-columns: 6rem 1fr auto; padding: 1.5rem 0; }
  .event-title { font-size: 1.3rem; }
}

/* Weniger Bewegung, wenn im System eingestellt */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Druck (Rechtstexte, z. B. dsgvo.pdf) ---------- */
@media print {
  body { background: #fff; color: #111; font-size: 11pt; }
  .site-header, .site-footer, .skip-link, .print-hide { display: none !important; }
  .legal { max-width: none; padding: 0; }
  .legal h1, .legal h2 { color: #111; break-after: avoid; }
  .legal a { color: #111; }
  .kicker { color: #b8040f; }
  .placeholder-note { color: #7a4b00; border-color: #c98a1a; }
}

.team-quote-wrap { margin: 0; }
.team-quote-by { margin-top: .4rem; padding-left: 1rem; color: var(--c-muted); font-size: .92rem; }

/* ---------- Kopfzeile Desktop (ab 1024 px) – Logo links, Menü rechts ---------- */
#instruktoren { scroll-margin-top: calc(var(--header-h) + 16px); }
@media (min-width: 1024px) {
  .site-header .header-inner { gap: 2rem; }
  .brand { flex: 0 0 auto; }
  .brand img { height: clamp(30px, 2.5vw, 40px); max-width: none; }
  .main-nav { margin-left: auto; gap: clamp(1rem, 1.6vw, 2rem); }
  .main-nav ul { gap: clamp(.8rem, 1.35vw, 1.6rem); }
  .main-nav li a { font-size: clamp(.95rem, 1vw, 1.12rem); letter-spacing: .03em; white-space: nowrap; }
  .nav-cta { padding-left: .9rem; padding-right: .9rem; }
}

/* =====================================================================
   v5 – Unterseiten, Veranstaltungsseiten, Brotkrümel
   ===================================================================== */
picture { display: contents; }
picture > source { display: none; }
.breadcrumb { background: var(--c-surface); border-bottom: 1px solid var(--c-line); font-size: .9rem; }
.breadcrumb ol { list-style: none; margin: 0; padding: .55rem 0; display: flex; flex-wrap: wrap; gap: .2rem .5rem; color: var(--c-muted); }
.breadcrumb li + li::before { content: "›"; margin-right: .5rem; color: var(--c-muted); }
.breadcrumb a { color: var(--c-text); text-underline-offset: 3px; }
.breadcrumb [aria-current] { color: var(--c-muted); }

.page-title { font-size: clamp(2.6rem, 10vw, 5rem); }
.hero-lead-dark { font-size: clamp(1.15rem, 2.6vw, 1.4rem); font-weight: 600; color: #fff; }
.subhead-first { font-size: clamp(1.6rem, 4.5vw, 2.2rem); margin: 0 0 1.25rem; }
.card-title-link { text-decoration: none; }
.card-title-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.events-more { margin-top: 1.75rem; }
.event-title a { text-decoration: none; }
.event-title a:hover, .event-title a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.badge-status { background: #ffd27a; color: #121316; }
.archiv-lead { color: var(--c-muted); }
[data-terminliste="archiv"] .event { opacity: .8; }

/* Veranstaltungs- und Formatseiten */
.event-hero .hero-lead, .format-hero .hero-lead { max-width: 46rem; }
.event-hero h1 { font-size: clamp(2.4rem, 9vw, 4.75rem); }
.event-hero::after, .format-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--c-red); }
.event-hero-sprint::after, .format-hero-sprint::after { background: var(--c-sprint); }
.event-hero-blitz::after, .format-hero-blitz::after { background: var(--c-blitz); }
.event-grid, .event-more-grid { display: grid; gap: 2rem; }
.event-facts { gap: 0; border-top: 1px solid var(--c-line); }
.event-facts > div { padding: .8rem 0; border-bottom: 1px solid var(--c-line); }
.event-side { display: grid; gap: 1rem; align-content: start; }
.event-box { background: var(--c-surface); border: 1px solid var(--c-line); border-top: 3px solid var(--c-red); border-radius: var(--radius); padding: 1.25rem; }
.event-box h2 { font-size: 1.5rem; margin-bottom: .6rem; }
.event-box p:last-child { margin-bottom: 0; }
.event-box-note { color: var(--c-muted); font-size: .95rem; }
.same-day { margin-top: 1.25rem; }
.same-day a, .event-links a, .prose a, .archiv-lead a, .event-footnote a, .signup-more a, .notfound a:not(.link-arrow) { color: var(--c-red-text); }
.notice { margin: 1.25rem 0 0; padding: .8rem 1rem; background: rgba(13,14,16,.85); border-left: 4px solid #ffd27a; border-radius: var(--radius); max-width: 46rem; }
.notice a { color: #ffd27a; }
.page-hero .btn-row { margin-top: 1.5rem; }
.event-cta { margin-top: 1.5rem; }
.signup .event-cta .btn-primary { color: #fff; }
.event-nav { display: grid; gap: .75rem; margin-bottom: 1rem; }
.event-nav-link { display: block; padding: .8rem 1rem; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); text-decoration: none; }
.event-nav-link span { display: block; font-family: var(--f-display); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; color: var(--c-muted); }
.event-nav-link:hover { border-color: var(--c-muted); }
.event-links .link-arrow { margin-bottom: .25rem; }

.prose { max-width: 50rem; }
.prose h3 { font-size: 1.5rem; margin-top: 2rem; }
.format-more { background: var(--c-surface); }
.format-cta .contact-inner { align-items: start; }
.format-switch { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; }
.offer-facts { margin: 2.5rem 0 0; }
.signup-short .steps { margin-bottom: 1rem; }
.signup-more a { color: #c00511; font-weight: 600; }

/* Cupwertung – Podien */
.podium-table { width: 100%; border-collapse: collapse; font-size: .98rem; }
.podium-table th, .podium-table td { text-align: left; vertical-align: top; padding: .6rem .7rem; border-bottom: 1px solid var(--c-line); }
.podium-table thead th { font-family: var(--f-display); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: .82rem; color: var(--c-muted); }
.podium-table a { color: var(--c-red-text); white-space: nowrap; }
.podium-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.podium-list .pos-badge { margin-right: .35rem; }
.podium-punkte { color: var(--c-muted); font-size: .88rem; }

/* Fußzeile mit Seitenlinks */
.footer-links-main { margin-bottom: .75rem; padding-bottom: .75rem; border-bottom: 1px solid var(--c-line); }
@media (min-width: 720px) {
  .footer-inner { grid-template-columns: 1fr; align-items: start; }
  .footer-brand p { max-width: none; }
}

/* 404 */
.notfound-links { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: .25rem; }

@media (min-width: 720px) {
  .event-more-grid { grid-template-columns: 1fr 1fr; }
  .event-nav { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .event-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 3rem; }
}
@media print {
  .breadcrumb { display: none !important; }
}
@media (min-width: 1024px) { .signup-short .steps { grid-template-columns: repeat(3, 1fr); } }

/* Über uns & FAQ */
.intro-links { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; margin-top: 1.25rem; }
.format-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.format-list h3 { font-size: 1.45rem; }
.format-list h3 a { text-decoration: none; }
.format-list h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.format-list p { margin: 0; color: var(--c-muted); }
.format-box-sprint { border-top-color: var(--c-sprint); }
.format-box-blitz { border-top-color: var(--c-blitz); }
.format-list-note { margin-top: 1.5rem; color: var(--c-muted); }
.format-list-note a, .format-cta p a, .downloads-note a { color: var(--c-red-text); }
.signup .downloads-note a { color: #c00511; font-weight: 600; }
.faq h2 { font-size: clamp(1.7rem, 5vw, 2.4rem); margin: 3rem 0 1rem; padding-top: 1.25rem; border-top: 1px solid var(--c-line); scroll-margin-top: calc(var(--header-h) + 16px); }
.faq h3 { font-family: var(--f-body); font-style: normal; text-transform: none; font-weight: 600; font-size: 1.2rem; line-height: 1.3; margin: 1.75rem 0 .5rem; }
.faq-jump { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.5rem 0 0; }
.faq-jump a { display: inline-flex; align-items: center; min-height: 44px; padding: .4rem .9rem; border: 1px solid var(--c-line); border-radius: 999px; text-decoration: none; background: var(--c-surface); }
.faq-jump a:hover { border-color: var(--c-muted); }
@media (min-width: 720px) { .format-list { grid-template-columns: repeat(3, 1fr); } }

/* Zeitplan auf Terminseiten */
.event-schedule { background: var(--c-surface); }
.zeitplan-grid { display: grid; gap: 1.5rem; }
.zeitplan h3 { font-size: 1.35rem; margin-bottom: .6rem; }
.zeitplan h3 a { color: var(--c-red-text); }
.zeitplan-table { width: 100%; border-collapse: collapse; background: var(--c-bg); border: 1px solid var(--c-line); border-top: 3px solid var(--c-red); }
.zeitplan-table th, .zeitplan-table td { text-align: left; padding: .6rem .8rem; border-bottom: 1px solid var(--c-line); }
.zeitplan-table th { font-family: var(--f-display); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; color: var(--c-muted); }
.zp-zeit { white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 600; width: 1%; }
@media (min-width: 900px) { .zeitplan-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Downloads: eine Spalte pro Sprache ---------- */
.format-downloads, .event-downloads { background: var(--c-surface); border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); }
.lang-intro { color: var(--c-muted); max-width: 62ch; margin: 0 0 1.5rem; }
.lang-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.lang-col { background: var(--c-bg); border: 1px solid var(--c-line); border-top: 3px solid var(--c-red); border-radius: 4px; padding: 1.1rem 1.1rem .6rem; }
.lang-head { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem .75rem; margin-bottom: .75rem; }
.lang-flags { display: inline-flex; gap: .35rem; }
.lang-flags img { display: block; width: 30px; height: 20px; border: 1px solid rgba(255,255,255,.25); border-radius: 2px; }
.lang-name { font-weight: 700; font-size: 1.1rem; }
.lang-note { margin-left: auto; font-size: .8rem; color: var(--c-muted); text-transform: uppercase; letter-spacing: .04em; }
.lang-files { list-style: none; margin: 0; padding: 0; }
.lang-files li + li { border-top: 1px solid var(--c-line); }
.lang-files a { display: flex; flex-direction: column; gap: .15rem; padding: .7rem 0; color: var(--c-text); text-decoration: none; }
.lang-files a:hover .dl-name, .lang-files a:focus-visible .dl-name { color: var(--c-red-text); text-decoration: underline; text-underline-offset: 3px; }
.dl-name { font-weight: 600; }
.dl-name::before { content: "↓ "; color: var(--c-red-text); }
.dl-meta { font-size: .85rem; color: var(--c-muted); }
.lang-ics { margin: 1.25rem 0 0; }
@media (min-width: 800px) { .lang-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Dokumente-Leiste unter dem Seitenkopf ---------- */
.doc-bar { background: var(--c-surface-2); border-bottom: 1px solid var(--c-line); padding: 1rem 0; }
.doc-bar-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 1.5rem; }
.doc-bar-text { display: flex; align-items: center; gap: .85rem; }
.doc-bar-icon { flex: none; display: grid; place-items: center; width: 44px; height: 52px; background: var(--c-red); color: #fff; font-weight: 800; font-size: .8rem; letter-spacing: .05em; border-radius: 3px 12px 3px 3px; }
.doc-bar-title { margin: 0; font-weight: 700; font-size: 1.1rem; }
.doc-bar-sub { margin: .1rem 0 0; color: var(--c-muted); font-size: .9rem; }
.doc-bar-links { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.doc-btn { display: inline-flex; align-items: center; gap: .5rem; padding: .55rem .9rem; min-height: 44px; background: var(--c-bg); border: 1px solid var(--c-line); border-radius: 4px; color: var(--c-text); font-weight: 600; text-decoration: none; }
.doc-btn:hover, .doc-btn:focus-visible { border-color: var(--c-red); background: var(--c-surface); }
.doc-btn-flags { display: inline-flex; gap: .25rem; }
.doc-btn-flags img { display: block; border: 1px solid rgba(255,255,255,.25); border-radius: 2px; }
.doc-bar-all { color: var(--c-red-text); font-weight: 600; padding: .55rem .25rem; text-underline-offset: 3px; }
@media (max-width: 599px) { .doc-btn { flex: 1 1 auto; justify-content: center; } }

/* Dateilinks im Download-Bereich als deutliche Kacheln */
.lang-files { display: grid; gap: .6rem; padding-bottom: .5rem; }
.lang-files li + li { border-top: 0; }
.lang-files a { flex-direction: row; align-items: center; gap: .75rem; padding: .7rem .8rem; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: 4px; }
.lang-files a:hover, .lang-files a:focus-visible { border-color: var(--c-red); }
.dl-badge { flex: none; display: grid; place-items: center; width: 34px; height: 40px; background: var(--c-red); color: #fff; font-weight: 800; font-size: .7rem; border-radius: 2px 9px 2px 2px; }
.dl-text { display: flex; flex-direction: column; gap: .15rem; }
.dl-name::before { content: none; }

/* ---------- Sprachumschalter DE | EN (oben rechts) ---------- */
.brand { margin-right: auto; }
.lang-switch { display: inline-flex; align-items: center; margin-right: .5rem; border: 1px solid var(--c-line); border-radius: 999px; padding: 2px; }
.lang-switch a {
  display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 32px; padding: 0 .55rem;
  border-radius: 999px; color: var(--c-muted); font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-decoration: none;
}
.lang-switch a:hover { color: var(--c-text); }
.lang-switch a[aria-current] { background: var(--c-surface-2); color: var(--c-text); }
.lang-switch a:focus-visible { outline-offset: 1px; }
@media (min-width: 1024px) {
  .lang-switch { order: 3; margin: 0 0 0 1.25rem; }
  .main-nav { order: 2; }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  .main-nav { gap: 1rem; }
  .main-nav ul { gap: .85rem; }
  .main-nav li a { font-size: 1rem; letter-spacing: .03em; }
  .brand img { height: 30px; }
  .lang-switch { margin-left: .75rem; }
  .lang-switch a { min-width: 34px; padding: 0 .4rem; }
}
@media (max-width: 479px) {
  .nav-toggle-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .brand img { max-width: 52vw; height: 30px; }
  .lang-switch a { min-width: 36px; padding: 0 .4rem; }
}
.notfound-en { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--c-line); }

/* ---------- Fotos im Fließtext und Bildpaare ---------- */
.prose-figure { margin: 2rem 0; }
.prose-figure img { display: block; width: 100%; height: auto; border-radius: 4px; }
.prose-figure figcaption, .photo-pair figcaption { margin-top: .6rem; color: var(--c-muted); font-size: .9rem; }
@media (min-width: 900px) {
  .prose-figure-portrait { float: right; width: 38%; max-width: 360px; margin: .25rem 0 1.25rem 2rem; }
}
.prose::after { content: ""; display: block; clear: both; }
.photo-pair { display: grid; gap: 1.25rem; margin-top: 1.5rem; }
.photo-pair figure { margin: 0; }
.photo-pair img { display: block; width: 100%; height: auto; border-radius: 4px; }
@media (min-width: 900px) {
  .photo-pair { grid-template-columns: 1fr 2.25fr; align-items: start; }
  .photo-pair figure:first-child img { aspect-ratio: 2 / 3; object-fit: cover; }
  .photo-pair figure:last-child img { aspect-ratio: 3 / 2; object-fit: cover; }
}
