/* =========================================================
   Stadtsportverband Burscheid e.V.
   Farbwelt: "Bergischer Dreiklang" - Schiefer, Weiss, Gruen
   Schriften lokal eingebunden (keine Verbindung zu Drittanbietern)
   ========================================================= */

@font-face {
  font-family: "Inter";
  src: url("fonts/inter-400.woff") format("woff");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-600.woff") format("woff");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Heros Condensed";
  src: url("fonts/heroscn-700.woff") format("woff");
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  --slate: #26323A;        /* Schiefer */
  --slate-2: #34434C;
  --slate-text: #4E5D66;   /* Sekundaertext auf Weiss, Kontrast 6,6:1 */
  --paper: #F1F4F2;        /* kuehles Kalkweiss */
  --white: #FFFFFF;
  --green: #1E6B47;        /* Fensterladen-Gruen */
  --green-dark: #154F35;
  --green-tint: #DDEBE2;
  --signal: #F4C430;       /* Startnummern-Gelb, nur auf dunklem Grund / Fokus */
  --line: #C9D3CE;

  --font-display: "Heros Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --wrap: 74rem;
  --gap: clamp(1.25rem, 3vw, 2rem);
  --section: clamp(3.5rem, 8vw, 6.5rem);
  --radius-s: 4px;
  --radius-m: 10px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 5.5rem;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--slate);
  background: var(--white);
  font-feature-settings: "kern", "calt";
}

img, svg { max-width: 100%; height: auto; }

h1, h2 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.005em;
  margin: 0 0 1.25rem;
  hyphens: manual;
}
h1 { font-size: clamp(3rem, 8.5vw, 6.25rem); }
h2 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
h3 { font-size: 1.1875rem; line-height: 1.3; margin: 0 0 0.5rem; font-weight: 600; }
h4 { font-size: 1rem; margin: 0 0 0.5rem; font-weight: 600; }
p { margin: 0 0 1rem; }
ul, ol { padding: 0; margin: 0; }

a { color: var(--green-dark); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

/* Fokus: gut sichtbar auf hellem und dunklem Grund (WCAG 2.4.7 / 2.4.11) */
:focus-visible {
  outline: 3px solid var(--slate);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--signal);
  border-radius: 2px;
}
.section-slate :focus-visible,
.section-green :focus-visible,
.hero :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--signal);
  box-shadow: 0 0 0 6px var(--slate);
}
main:focus { outline: none; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--signal); color: var(--slate);
  padding: 0.75rem 1rem; font-weight: 600; border-radius: var(--radius-s);
}
.skip-link:focus { top: 1rem; }

.wrap { width: min(100% - 2 * var(--gap), var(--wrap)); margin-inline: auto; }

/* ---------- Kopfbereich ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 4.5rem;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.75rem;
  color: var(--slate); text-decoration: none;
}
.brand img { width: 70px; height: 56px; flex: none; border-radius: 4px; }
.brand-text {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.45rem; line-height: 1;
}
.brand-text span { display: block; color: var(--green); }

.main-nav { flex: 1 1 auto; min-width: 0; }
.main-nav ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 0.25rem; }
.main-nav a {
  display: inline-flex; align-items: center; min-height: 44px;
  padding: 0 0.85rem; border-radius: var(--radius-s);
  color: var(--slate); text-decoration: none; font-weight: 600; font-size: 0.98rem;
}
.main-nav a:hover { background: var(--paper); }
.main-nav a[aria-current] { box-shadow: inset 0 -3px 0 var(--green); }
.main-nav .nav-cta { background: var(--green); color: var(--white); margin-left: 0.5rem; }
.main-nav .nav-cta:hover { background: var(--green-dark); }

.nav-toggle {
  display: none;
  align-items: center; gap: 0.6rem;
  min-height: 44px; padding: 0 1rem;
  font: 600 1rem var(--font-body); color: var(--slate);
  background: var(--paper); border: 1px solid #7A8890; border-radius: var(--radius-s);
  cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 18px; height: 2px; background: currentColor; position: relative;
}
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 1240px) {
  .js .nav-toggle { display: inline-flex; }
  .js .main-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--gap) 1rem;
  }
  .js .main-nav[data-open="false"] { display: none; }
  .main-nav ul { flex-direction: column; align-items: stretch; }
  .main-nav a { width: 100%; padding: 0.25rem 0.75rem; }
  .main-nav .nav-cta { margin: 0.5rem 0 0; justify-content: center; }
  .no-js .header-inner { flex-wrap: wrap; padding-block: 0.75rem; }
  .no-js .main-nav { width: 100%; }
}

@media (max-width: 400px) {
  .header-inner { gap: 0.5rem; }
  .brand { gap: 0.5rem; min-width: 0; }
  .brand img { width: 44px; height: 35px; }
  .brand-text { font-size: 1.05rem; }
  .nav-toggle { padding: 0 0.7rem; flex: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--slate); color: var(--white);
}
.hero::after {
  /* Schieferschindeln - das Bergische Haus als Hintergrund */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: url("schiefer.svg");
  background-size: 56px 56px;
  -webkit-mask-image: linear-gradient(100deg, transparent 30%, #000 85%);
  mask-image: linear-gradient(100deg, transparent 30%, #000 85%);
}
.hero-inner { padding-block: clamp(4rem, 11vw, 8.5rem) clamp(3rem, 7vw, 5rem); }
.hero h1 { max-width: 11ch; margin-bottom: 1.75rem; }
.hero-lead { max-width: 36em; font-size: clamp(1.0625rem, 1.6vw, 1.25rem); color: #E4EAE7; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.hero-band { background: var(--green); }
.hero-band-inner { padding-block: 1rem; }
.hero-band p { margin: 0; }
.hero-band a { color: var(--white); font-weight: 600; margin-left: 0.25rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0.7rem 1.4rem;
  font: 600 1rem/1.2 var(--font-body);
  border-radius: var(--radius-s); border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
}
.btn-primary { background: var(--green); color: var(--white); border-color: var(--green); }
.btn-primary:hover { background: var(--green-dark); border-color: var(--green-dark); }
.hero .btn-primary { background: var(--white); color: var(--slate); border-color: var(--white); }
.hero .btn-primary:hover { background: var(--green-tint); border-color: var(--green-tint); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.7); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,.08); }
.btn[disabled] { opacity: .65; cursor: progress; }

/* ---------- Abschnitte ---------- */
.section { padding-block: var(--section); }
.section-paper { background: var(--paper); }
.section-slate { background: var(--slate); color: var(--white); }
.section-slate a { color: var(--white); }
.section-green { background: var(--green); color: var(--white); }
.section-green a { color: var(--white); }
.section-head { max-width: 46rem; margin-bottom: 2.5rem; }
.lead { font-size: 1.1875rem; }
.note, .small { font-size: 0.95rem; }

.split { display: grid; gap: clamp(2rem, 6vw, 5rem); grid-template-columns: 1fr; }
@media (min-width: 900px) { .split { grid-template-columns: 1.15fr 1fr; } }
.split > div > p { max-width: 38em; }

/* Aufgaben */
.tasks { display: grid; gap: 2rem 3rem; grid-template-columns: 1fr; margin-top: 2.5rem; }
@media (min-width: 720px) { .tasks { grid-template-columns: 1fr 1fr; } }
.task { border-left: 4px solid var(--green); padding-left: 1.25rem; }
.task p { color: var(--slate-text); margin: 0; max-width: 34em; }

/* ---------- Vereine ---------- */
.filter {
  display: grid; gap: 1.25rem; margin-bottom: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) { .filter { grid-template-columns: 18rem 1fr; align-items: end; } }
.chips { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chips legend { font-weight: 600; margin-bottom: 0.5rem; padding: 0; float: left; width: 100%; }
.chip {
  min-height: 44px; padding: 0 1rem;
  font: 600 0.95rem var(--font-body); color: var(--slate);
  background: var(--white); border: 1px solid #7A8890; border-radius: 999px; cursor: pointer;
}
.chip:hover { border-color: var(--slate); }
.chip[aria-pressed="true"] { background: var(--slate); border-color: var(--slate); color: var(--white); }
.chip[aria-pressed="true"]::before { content: "\2713\00a0"; }
.filter-status { grid-column: 1 / -1; margin: 0; font-size: 0.95rem; color: var(--slate-text); }

.clubs {
  list-style: none; display: grid; gap: 0;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 21rem), 1fr));
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.club {
  background: var(--white); padding: 1.5rem 1.5rem 1.35rem; display: flex; flex-direction: column;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.club[hidden] { display: none; }
.club h3 { font-size: 1.0625rem; }
.club-sports { color: var(--green-dark); font-weight: 600; margin-bottom: 0.25rem; }
.club-logo {
  height: 64px; margin-bottom: 1rem;
  display: flex; align-items: center;
}
.clubs-with-logos .club:not(.has-logo)::before {
  content: ""; display: block; height: 64px; margin-bottom: 1rem;
}
.club-logo img { max-height: 64px; max-width: 160px; width: auto; height: auto; object-fit: contain; }
.club-meta { color: var(--slate-text); font-size: 0.95rem; margin-bottom: 0.75rem; }
.club-link { margin-top: auto; font-weight: 600; overflow-wrap: anywhere; }
.club-link::after { content: "\00a0\2197"; }
.clubs-empty { background: var(--white); padding: 1.5rem; border-radius: var(--radius-m); border: 1px solid var(--line); }
.note { margin-top: 1.5rem; }

/* ---------- Stadtlauf ---------- */
.race { display: grid; gap: 2.5rem; grid-template-columns: 1fr; margin-bottom: 3rem; }
@media (min-width: 900px) { .race { grid-template-columns: 1fr 1.5fr; align-items: start; } }
.race-label { margin: 0; color: #C9D4CF; }
.lanes-caption { margin-bottom: 0.6rem; }
.lanes-leer { margin: 0; padding: 1rem 1.25rem; border: 2px dashed rgba(255,255,255,.6); border-radius: 8px; }
.race-day {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(3.25rem, 8vw, 5.5rem); line-height: 1; margin: 0.25rem 0 1rem;
  color: var(--signal); font-variant-numeric: tabular-nums;
}
.race-date p:last-child { color: #E4EAE7; max-width: 30em; }

/* Bahnen: jede Strecke eine Laufbahn */
.lanes {
  list-style: none;
  background: #A7432C; /* Tartanbahn */
  border-radius: var(--radius-m); overflow: hidden;
  border-top: 3px solid var(--white); border-bottom: 3px solid var(--white);
}
.lane {
  display: grid; grid-template-columns: 7.5rem 1fr; align-items: center; gap: 1rem;
  padding: 1.15rem 1.5rem; min-height: 5.25rem;
}
.lane + .lane { border-top: 2px dashed rgba(255,255,255,.85); }
.lane-dist { font-family: var(--font-display); font-weight: 700; font-size: 2.5rem; line-height: 1; color: var(--white); }
.lane-text { color: var(--white); }
@media (max-width: 520px) {
  .lane { grid-template-columns: 1fr; gap: 0.35rem; }
}

.race-info { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .race-info { grid-template-columns: 1.4fr 1fr; } }
.ticks { list-style: none; }
.ticks li { padding-left: 1.75rem; position: relative; margin-bottom: 0.6rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.5em;
  width: 0.75rem; height: 0.4rem; border-left: 2px solid var(--signal); border-bottom: 2px solid var(--signal);
  transform: rotate(-45deg);
}

/* Downloads */
.downloads { list-style: none; margin-bottom: 1.5rem; }
.downloads li { border-top: 1px solid var(--line); }
.downloads li:last-child { border-bottom: 1px solid var(--line); }
.downloads a {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  min-height: 48px; padding: 0.6rem 0; font-weight: 600; text-decoration: none;
}
.downloads a:hover span:first-child, .downloads a:hover { text-decoration: underline; }
.file-meta { font-weight: 400; color: var(--slate-text); }
.downloads-light li { border-color: rgba(255,255,255,.35); }
.downloads-light .file-meta { color: #C9D4CF; }

/* Ergebnislisten je Jahr (aufklappbar) */
.results-hint { color: #C9D4CF; margin-bottom: 0.75rem; }
.results-year { border-top: 1px solid rgba(255,255,255,.35); }
.results-year:last-of-type { border-bottom: 1px solid rgba(255,255,255,.35); }
.results-year summary {
  display: flex; align-items: center; gap: 0.6rem;
  min-height: 48px; padding: 0.5rem 0; cursor: pointer;
  font-weight: 600; list-style: none;
}
.results-year summary::-webkit-details-marker { display: none; }
.results-year summary::before {
  content: "+"; display: inline-grid; place-items: center;
  width: 1.5rem; height: 1.5rem; border: 2px solid var(--signal); border-radius: 50%;
  color: var(--signal); font-weight: 700; line-height: 1; flex: none;
}
.results-year[open] summary::before { content: "\2212"; }
.results-year .downloads { margin: 0 0 1rem 2.1rem; }
.results-year .downloads li:last-child { border-bottom: 0; }
.results-fallback { margin: 0 0 1rem 2.1rem; }

/* ---------- Sportabzeichen ---------- */
.disciplines { list-style: none; margin-bottom: 2rem; }
.disciplines li {
  padding: 1rem 0; border-bottom: 1px solid var(--line);
  color: var(--slate-text);
}
.disciplines li:first-child { border-top: 1px solid var(--line); }
.disciplines strong {
  display: block; color: var(--slate);
  font-family: var(--font-display); font-size: 1.75rem; line-height: 1.1;
}
.contact-card { background: var(--paper); border-radius: var(--radius-m); padding: 1.25rem 1.5rem; }
.contact-card p { margin: 0; color: var(--slate-text); }
.contact-card .contact-name { color: var(--slate); font-weight: 600; font-size: 1.125rem; margin-bottom: 0.5rem; }
.contact-card a { font-weight: 600; display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- Termine ---------- */
.events { list-style: none; margin-top: 2rem; border-top: 2px solid var(--slate); }
.event {
  display: grid; grid-template-columns: 1fr; gap: 0.25rem 2rem;
  padding: 1.5rem 0; border-bottom: 1px solid var(--line);
}
@media (min-width: 720px) { .event { grid-template-columns: 12rem 1fr; } }
.event-date {
  margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; line-height: 1.15;
  font-variant-numeric: tabular-nums;
}
.event p:last-child { margin: 0; color: var(--slate-text); }
.event-past .event-date, .event-past h3 { color: var(--slate-text); }
.badge {
  display: inline-block; vertical-align: middle; margin-left: 0.4rem;
  font: 600 0.8rem/1 var(--font-body); padding: 0.3rem 0.55rem;
  border: 1px solid var(--slate-text); border-radius: 999px; color: var(--slate-text);
}

/* ---------- Verband ---------- */
.board-title { font-family: var(--font-display); font-size: 2rem; margin-bottom: 1rem; }
.board { margin: 0; border-top: 2px solid var(--slate); }
.board div {
  display: grid; grid-template-columns: 1fr; padding: 0.9rem 0; border-bottom: 1px solid var(--line);
}
@media (min-width: 480px) { .board div { grid-template-columns: 12rem 1fr; gap: 1rem; } }
.board dt { color: var(--slate-text); }
.board dd { margin: 0; font-weight: 600; }

/* ---------- Kontakt ---------- */
.contact { display: grid; gap: clamp(2rem, 6vw, 5rem); grid-template-columns: 1fr; }
@media (min-width: 960px) { .contact { grid-template-columns: 1fr 1.35fr; } }
.contact-info address { font-style: normal; margin-bottom: 1rem; }
.contact-info p, .contact-info address { color: #EEF5F1; }

.form-panel {
  background: var(--white); color: var(--slate);
  border-radius: var(--radius-m); padding: clamp(1.5rem, 4vw, 2.5rem);
}
.form-panel a { color: var(--green-dark); }
.form-panel h3 { font-family: var(--font-display); font-size: 2rem; margin-bottom: 0.5rem; }
.form-hint { color: var(--slate-text); font-size: 0.95rem; }

.field { margin-bottom: 1.25rem; }
.field label { display: block; font-weight: 600; margin-bottom: 0.4rem; }
.req, .opt { font-weight: 400; font-size: 0.875rem; color: var(--slate-text); margin-left: 0.35rem; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"],
.field input[type="search"], .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 0.65rem 0.8rem;
  font: 400 1rem/1.4 var(--font-body); color: var(--slate);
  background: var(--white); border: 2px solid #7A8890; border-radius: var(--radius-s);
}
.field textarea { resize: vertical; min-height: 9rem; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--slate); }
.field [aria-invalid="true"] { border-color: #B3261E; border-width: 2px; }
.field-help { font-size: 0.9rem; color: var(--slate-text); margin: 0.35rem 0 0; }
.field-error {
  font-size: 0.95rem; color: #B3261E; font-weight: 600; margin: 0.4rem 0 0;
}
.field-error::before { content: "Fehler: "; }
.field-row { display: grid; gap: 0 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }

.field-check { display: grid; grid-template-columns: auto 1fr; gap: 0.75rem; align-items: start; }
.field-check input { width: 24px; height: 24px; margin: 0.15rem 0 0; accent-color: var(--green); }
.field-check label { font-weight: 400; margin: 0; }
.field-check .field-error { grid-column: 2; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.error-summary {
  border: 3px solid #B3261E; border-radius: var(--radius-s);
  padding: 1rem 1.25rem; margin-bottom: 1.5rem; background: #FDF2F1;
}
.error-summary ul { padding-left: 1.25rem; margin: 0; }
.error-summary a { color: #8C1D17; font-weight: 600; }
.form-result:empty { display: none; }
.form-result:focus { outline: 3px solid var(--slate); outline-offset: 2px; }
.form-result {
  border-radius: var(--radius-s); padding: 1rem 1.25rem; margin-bottom: 1.5rem; font-weight: 600;
}
.form-result.is-success { background: var(--green-tint); border-left: 6px solid var(--green); }
.form-result.is-error { background: #FDF2F1; border-left: 6px solid #B3261E; }
.btn-submit { width: 100%; }
@media (min-width: 640px) { .btn-submit { width: auto; } }

/* ---------- Fussbereich ---------- */
.site-footer { background: var(--slate); color: #E4EAE7; padding-block: 3rem; }
.site-footer a { color: var(--white); }
.footer-inner { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 820px) { .footer-inner { grid-template-columns: 1fr auto; align-items: end; } }
.footer-brand { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.15; color: var(--white); margin-bottom: 0.5rem; }
.site-footer p { margin: 0; }
.footer-links { list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }
.footer-links a { display: inline-flex; min-height: 44px; align-items: center; }

/* ---------- Unterseiten (Impressum, Datenschutz ...) ---------- */
.page-head { background: var(--slate); color: var(--white); position: relative; isolation: isolate; overflow: hidden; }
.page-head::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: url("schiefer.svg"); background-size: 56px 56px;
  -webkit-mask-image: linear-gradient(100deg, transparent 45%, #000 95%);
  mask-image: linear-gradient(100deg, transparent 45%, #000 95%);
}
.page-head .wrap { padding-block: clamp(3rem, 7vw, 5rem) clamp(2rem, 5vw, 3rem); }
.page-head h1 { font-size: clamp(2.5rem, 6vw, 4.25rem); margin: 0; }
.prose { max-width: 44rem; padding-block: var(--section); }
.prose h2 { font-size: clamp(1.75rem, 3.5vw, 2.25rem); margin-top: 2.75rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.75rem; }
.prose ul { padding-left: 1.25rem; margin-bottom: 1rem; }
.prose li { margin-bottom: 0.35rem; }
.prose address { font-style: normal; margin-bottom: 1rem; }
.todo {
  background: #FFF6D6; border-left: 6px solid var(--signal);
  padding: 0.75rem 1rem; border-radius: var(--radius-s);
}
.breadcrumb { margin-bottom: 1rem; }
.breadcrumb a { color: var(--white); }

/* Leichte Sprache: groesser, mehr Abstand */
.easy { font-size: 1.25rem; line-height: 1.7; }
.easy p { margin-bottom: 1.25rem; }
.easy h2 { margin-top: 3rem; }

/* ---------- Hochkontrast / Windows-Kontrastmodus ---------- */
@media (forced-colors: active) {
  .hero::after, .page-head::after { display: none; }
  .btn, .chip, .nav-toggle { border: 2px solid ButtonText; }
  .chip[aria-pressed="true"] { outline: 3px solid Highlight; }
  .lanes { border: 2px solid CanvasText; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Druck ---------- */
@media print {
  .site-header, .nav-toggle, .hero-actions, .filter, .form-panel, .skip-link, .hero::after { display: none !important; }
  .hero, .section-slate, .section-green, .site-footer, .page-head { background: none !important; color: #000 !important; }
  .section-slate a, .section-green a, .site-footer a { color: #000 !important; }
  .lanes { background: none; border: 1px solid #000; }
  .lane-dist, .lane-text, .race-day { color: #000 !important; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.85em; }
}
.prose .downloads { padding-left: 0; }

/* ---------- Bildergalerie ---------- */
.section-tight { padding-block: clamp(2rem, 5vw, 3.5rem); }
.gallery-years { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.gallery-years[hidden] { display: none; }
a.chip { display: inline-flex; align-items: center; text-decoration: none; }
a.chip[aria-current="page"] { background: var(--slate); border-color: var(--slate); color: var(--white); }
.gallery-status { color: var(--slate-text); font-size: 0.95rem; }
.gallery-grid {
  list-style: none; display: grid; gap: 0.5rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 11rem), 1fr));
  margin-bottom: 1.5rem;
}
.gallery-grid a { display: block; border-radius: var(--radius-s); overflow: hidden; background: var(--paper); }
.gallery-grid img {
  display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover;
}
.gallery-grid a:hover img { opacity: 0.88; }

/* Grossansicht */
.lightbox {
  width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh;
  margin: 0; padding: 0; border: 0;
  background: rgba(23, 30, 35, 0.97); color: var(--white);
}
.lightbox::backdrop { background: rgba(23, 30, 35, 0.85); }
.lightbox[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.lightbox-figure { margin: 0; display: flex; flex-direction: column; align-items: center; max-width: 100%; padding: 4.5rem 4.5rem 1rem; }
.lightbox-figure img { max-width: min(92vw, 1600px); max-height: 76vh; width: auto; height: auto; object-fit: contain; }
.lightbox-figure figcaption { margin-top: 0.75rem; text-align: center; max-width: 60ch; }
.lightbox-count { margin: 0 0 1rem; color: #C9D4CF; font-size: 0.95rem; }
.lightbox-btn {
  position: absolute; display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--white); color: var(--slate); border: 2px solid var(--white);
  font: 700 2rem/1 var(--font-body); cursor: pointer;
}
.lightbox-btn:hover { background: var(--green-tint); }
.lightbox-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox-close { right: 1rem; top: 1rem; font-size: 1.75rem; }
.lightbox :focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; box-shadow: none; }
@media (max-width: 640px) {
  .lightbox-figure { padding: 4.5rem 0.5rem 5.5rem; }
  .lightbox-prev, .lightbox-next { top: auto; bottom: 1rem; transform: none; }
  .lightbox-prev { left: calc(50% - 64px); }
  .lightbox-next { right: calc(50% - 64px); }
  .lightbox-count { position: absolute; top: 1.6rem; left: 1rem; }
}
@media (forced-colors: active) {
  .lightbox-btn { border: 2px solid ButtonText; }
}

/* ---------- Untermenue (Stadtlauf) ---------- */
.has-sub { position: relative; }
.sub-toggle {
  display: inline-flex; align-items: center; gap: 0.45rem; min-height: 44px;
  padding: 0 0.85rem; border: 0; border-radius: var(--radius-s); background: none; cursor: pointer;
  font: 600 0.98rem var(--font-body); color: var(--slate);
}
.sub-toggle:hover { background: var(--paper); }
.sub-arrow {
  width: 0.5rem; height: 0.5rem; margin-top: -0.2rem;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg);
}
.sub-toggle[aria-expanded="true"] .sub-arrow { transform: rotate(-135deg); margin-top: 0.2rem; }
.main-nav .submenu {
  display: none; list-style: none;
  position: absolute; top: calc(100% + 4px); left: 0; z-index: 60; min-width: 15rem;
  background: var(--white); border: 1px solid #7A8890; border-radius: var(--radius-m);
  padding: 0.4rem; box-shadow: 0 10px 24px rgba(38, 50, 58, 0.16);
}
.main-nav .submenu a { display: flex; width: 100%; padding: 0 0.85rem; justify-content: flex-start; gap: 0.35rem; }
.js .main-nav .sub-toggle[aria-expanded="true"] + .submenu { display: block; }
/* Ohne JavaScript: Untermenue bei Mauszeiger oder Tastaturfokus zeigen */
.no-js .main-nav .has-sub:hover .submenu, .no-js .main-nav .has-sub:focus-within .submenu { display: block; }
.main-nav .submenu .file-meta { font-weight: 400; }
@media (max-width: 1240px) {
  .main-nav .submenu { position: static; min-width: 0; border: 0; box-shadow: none; padding: 0 0 0.25rem 1rem; border-left: 3px solid var(--green-tint); border-radius: 0; margin-left: 0.75rem; }
  .sub-toggle { width: 100%; justify-content: space-between; padding: 0.25rem 0.75rem; }
  .no-js .main-nav .submenu { display: block; }
}

/* Aktionen beim Stadtlauf */
.race-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.section-slate .btn-primary { border-color: var(--green); }
.file-meta-inline { margin-left: 0.35rem; font-weight: 400; }

@media (max-width: 360px) {
  .brand img { width: 38px; height: 30px; }
  .brand-text { font-size: 0.95rem; }
}

/* Copyright und Website-Version in der Fusszeile */
.site-footer .footer-meta { margin-top: 1rem; font-size: 0.875rem; color: #C9D4CF; }

/* Bewegungspark */
.park-card { background: var(--white); border: 1px solid var(--line); margin-bottom: 1.5rem; }
.park-card h3 { margin-bottom: 0.5rem; }
.park-card p { color: var(--slate-text); margin-bottom: 0.75rem; }
.park-card .park-actions { margin: 1rem 0; }
.park-card .btn { color: var(--white); }
.park-help { border-left: 4px solid var(--green); padding-left: 1.25rem; }
.park-help p { color: var(--slate-text); margin: 0; }
.park-facts { margin: 0 0 1.25rem; border-top: 1px solid var(--line); }
.park-facts div { display: grid; grid-template-columns: 1fr; gap: 0.15rem 1rem; padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
@media (min-width: 560px) { .park-facts div { grid-template-columns: 7rem 1fr; } }
.park-facts dt { font-weight: 600; }
.park-facts dd { margin: 0; color: var(--slate-text); }
