/* Volkslauf pages: overview + Ausschreibung (volkslauf.html), results archive (ergebnisse.html), chronicle (volkslauf-chronik.html).
   Builds on site.css tokens and components; only page-specific pieces live here. */

:root { --sticky-top: calc(env(safe-area-inset-top, 0px) + var(--head-h) + 52px); }
html { scroll-padding-top: calc(var(--sticky-top) + 16px); }

/* ---------- shared bits ---------- */
.ph { display: inline-block; padding: 3px 10px; border: 1.5px dashed var(--muted); border-radius: 999px; font: 700 13.5px/1.35 var(--text); color: var(--muted); background: var(--paper); }
.race-dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; background: var(--race); flex: none; }
.media-slot > div { position: relative; z-index: 1; }
.media-fill { position: relative; margin: 0; border-radius: 14px; overflow: hidden; background: var(--paper-3); }
.media-fill img, .media-fill video { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-fill figcaption { position: absolute; left: 10px; bottom: 10px; max-width: calc(100% - 20px); padding: 6px 12px; border-radius: 999px; background: rgb(12 24 32 / .72); color: #fff; font: 700 13px/1.3 var(--text); }
/* the bib is always white paper, so it keeps the light race colours in dark mode too (= --g/--y/--r light values) */
.bib[data-race="10"] { --race: #1a7d35; --race-on: #ffffff; }
.bib[data-race="21"] { --race: #f5b800; --race-on: #2d393e; }
.bib[data-race="30"] { --race: #d32f2f; --race-on: #ffffff; }

/* ---------- 1 · intro ---------- */
.vl-hero { padding-block: 44px 64px; }
.vl-hero-grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(28px, 5vw, 72px); align-items: end; }
.vl-title { font: 900 clamp(36px, 5.3vw, 78px)/.94 var(--display); letter-spacing: -.025em; margin: 0 0 22px; max-width: 14ch; overflow-wrap: anywhere; }
.vl-when { display: flex; align-items: center; gap: 12px; margin: 0 0 8px; font: 900 clamp(22px, 2.4vw, 32px)/1.15 var(--display); font-variant-numeric: tabular-nums; }
.vl-when .icon { width: .9em; height: .9em; color: var(--logo-blue); }
.vl-where { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 24px; font-weight: 700; }
.vl-where .icon { width: 20px; height: 20px; margin-top: 4px; color: var(--logo-blue); }
.vl-pitch { max-width: 54ch; margin: 0 0 28px; font-size: 19px; line-height: 1.6; }
/* Anmeldung noch zu: Hinweis an der Stelle des Anmelde-Buttons, bewusst ohne Pillenform, damit er nicht klickbar wirkt */
.vl-reg-soon { display: inline-flex; align-items: center; gap: 12px; margin: 0 12px 0 0; padding: 4px 0; color: var(--ink); }
.vl-reg-soon .icon { width: 24px; height: 24px; flex: none; color: var(--logo-blue); }
.vl-reg-soon > span { display: grid; line-height: 1.15; }
.vl-reg-soon-k { font-size: 14px; font-weight: 600; color: var(--muted); }
.vl-reg-soon strong { font: 900 19px/1.15 var(--display); color: var(--logo-blue); }
/* Laufwochenende: kein Kasten, sondern wie ein Aushang unter dem Text (Linie oben, zwei Tage nebeneinander) */
.vl-glance { margin-top: 36px; padding-top: 14px; border-top: 2px solid var(--ink); max-width: 640px; }
.vl-glance-h { font: 900 19px/1.2 var(--display); margin: 0 0 12px; }
.vl-days { list-style: none; margin: 0 0 14px; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 16px 36px; }
.vl-day { margin: 0 0 6px; font: 800 15px/1.3 var(--display); color: var(--muted); }
.vl-slots { margin: 0; display: grid; gap: 4px; }
.vl-slots div { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 10px; align-items: baseline; }
.vl-slots dt { font-weight: 900; font-size: 17px; white-space: nowrap; }
.vl-slots dd { margin: 0; font-size: 15.5px; line-height: 1.4; }
.vl-glance .stand-note { display: inline; margin: 0 14px 0 0; }
.vl-hero { padding-bottom: 48px; }
/* drone film behind the intro: video at the bottom layer, a paper wash keeps the copy legible (strong on the left
   under the text, lighter on the right where the arch is), the watercolour splash (z-index -1) sits on top,
   and the whole layer fades into the paper over --fade at the bottom. */
.vl-hero-has-film { --fade: clamp(120px, 14vw, 220px); padding-bottom: calc(var(--fade) * .55); }
.vl-hero-film { position: absolute; inset: 0; z-index: -2; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - var(--fade)), transparent);
          mask-image: linear-gradient(to bottom, #000 calc(100% - var(--fade)), transparent); }
.vl-hero-film .media-slot { display: none; }
.vl-hero-film .media-fill { position: absolute; inset: 0; border-radius: 0; background: none; }
.vl-hero-film { overflow: hidden; }
.vl-hero-film video { object-position: 42% 45%; }
/* wide screens: shift the clip right so the start arch lands between the copy and the card; its left edge fades in */
@media (min-width: 961px) {
  .vl-hero-film .media-fill { left: 14%; right: -14%;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 14%);
            mask-image: linear-gradient(to right, transparent, #000 14%); }
}
.vl-hero-film::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(to right, color-mix(in srgb, var(--paper) 90%, transparent) 0%,
                                        color-mix(in srgb, var(--paper) 80%, transparent) 38%,
                                        color-mix(in srgb, var(--paper) 35%, transparent) 70%,
                                        color-mix(in srgb, var(--paper) 15%, transparent) 100%); }
/* small pause control for the looping reel, tucked into the fade at the bottom right */
.vl-film-bar { position: absolute; right: max(16px, env(safe-area-inset-right, 0px)); bottom: 16px; }
.vl-film-toggle { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line);
  border-radius: 50%; background: color-mix(in srgb, var(--paper) 80%, transparent); color: var(--muted); cursor: pointer; }
.vl-film-toggle[hidden] { display: none; }
.vl-film-toggle .icon { width: 22px; height: 22px; }
.vl-film-toggle:hover { color: var(--ink); border-color: var(--ink); }
@media (max-width: 960px) {
  /* stacked layout: the copy runs full width, so the wash is even; the arch stays visible above the card */
  .vl-hero-film::after { background: linear-gradient(to bottom, color-mix(in srgb, var(--paper) 86%, transparent) 0%,
                                                               color-mix(in srgb, var(--paper) 80%, transparent) 60%,
                                                               color-mix(in srgb, var(--paper) 40%, transparent) 100%); }
}

/* ---------- 2 · bibs ---------- */
.vl-bibs { list-style: none; margin: 0; padding: 12px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3.4vw, 48px); }
.vl-race { display: flex; flex-direction: column; gap: 18px; height: 100%; color: var(--ink); text-decoration: none; border-radius: 14px; }
.vl-race .bib { --tilt: -1.4deg; transform: rotate(var(--tilt)); transition: transform .45s cubic-bezier(.16,1,.3,1), box-shadow .45s cubic-bezier(.16,1,.3,1); }
.vl-bibs li:nth-child(2) .bib { --tilt: 1.6deg; }
.vl-bibs li:nth-child(3) .bib { --tilt: -.6deg; }
.vl-race:hover .bib, .vl-race:focus-visible .bib { transform: rotate(0deg) translateY(-6px); box-shadow: 0 1px 2px rgb(20 40 60 / .18), 0 28px 54px -14px rgb(20 60 110 / .42); }
.vl-race .bib-band { padding-inline: 36px; flex-wrap: wrap; font-size: 14px; }
.vl-race .bib-num { font-size: clamp(64px, 7vw, 112px); }
.vl-race .bib-facts { margin-inline: 18px; }
.vl-race .bib-facts dd { font-size: 23px; }
.vl-race-text { margin: 6px 4px 0; color: var(--muted); font-size: 16px; line-height: 1.55; }
.vl-race .more { margin: auto 4px 0; color: var(--race-line); }
.vl-race[data-race="21"] .more { color: var(--ink); }

/* ---------- 3 · Ausschreibung ---------- */
/* set like the printed notice the club hangs up: no card, a heavy ink rule over contents and text, hairlines between clauses */
.as-head { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 12px clamp(28px, 5vw, 80px); align-items: end; margin-bottom: 28px; }
.as-head h2 { grid-column: 1 / -1; }
.as-stand { grid-column: 2; margin: 0; max-width: 66ch; color: var(--muted); font-size: 16px; line-height: 1.5; }
.as-stand strong { color: var(--ink); font: 800 16px/1.5 var(--display); }
.as-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.as-toc { position: sticky; top: calc(var(--sticky-top) + 20px); border-top: 3px solid var(--ink); padding-top: 14px; }
.as-toc-h { margin: 0 0 8px; font: 900 16px/1.2 var(--display); }
.as-toc ol { list-style: none; margin: 0 0 18px -12px; padding: 0; display: grid; gap: 1px; }
.as-toc ol a { display: block; padding: 7px 12px; border-radius: 999px; font: 800 14.5px/1.25 var(--display); color: var(--muted); text-decoration: none; }
.as-toc ol a:hover { color: var(--ink); background: var(--paper-2); }
.as-toc ol a[aria-current] { color: var(--ink); background: var(--paper-2); }
.as-doc { min-width: 0; border-top: 3px solid var(--ink); }
.as-sec { padding-block: 36px; border-top: 1px solid var(--line); }
.as-sec:first-child { padding-top: 24px; border-top: 0; }
.as-sec:last-child { padding-bottom: 0; }
.as-sec > .as-table:last-child tbody tr:last-child > *, .as-sec > .as-facts:last-child div:last-child { border-bottom: 0; } /* the clause rule below follows */
.as-sec h3 { font: 900 clamp(24px, 2.4vw, 30px)/1.1 var(--display); letter-spacing: -.01em; margin: 0 0 16px; }
.as-sec p { max-width: 66ch; margin: 0 0 14px; }
.as-sec p:last-child { margin-bottom: 0; }
.as-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.as-address { font-style: normal; line-height: 1.7; }

.as-table { width: 100%; border-collapse: collapse; margin: 0 0 18px; font-size: 16px; }
.as-table th, .as-table td { text-align: left; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); vertical-align: baseline; }
.as-table thead th { font: 700 13px/1.3 var(--text); color: var(--muted); padding-top: 0; }
.as-table .r { text-align: right; padding-right: 0; padding-left: 14px; }
.as-table td.num, .as-table td .num { font-weight: 800; font-size: 17px; white-space: nowrap; }
.as-table tbody th { font: 800 16px/1.3 var(--display); }
.as-table tbody th a { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration-color: var(--line); }
.as-table tbody th a:hover { text-decoration-color: currentColor; }
.as-time td:first-child { color: var(--muted); font-weight: 600; font-size: 15px; }
.as-facts { margin: 0 0 16px; display: grid; gap: 0; }
.as-facts div { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.as-facts div:first-child { border-top: 1px solid var(--line); }
.as-facts dt { font: 700 14px/1.5 var(--text); color: var(--muted); }
.as-facts dd { margin: 0; font-weight: 600; }

/* ---------- 4 · sponsors ---------- */
.sp-list { list-style: none; margin: 0; padding: 0; }
.sp-item { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); padding-block: 36px; border-top: 1px solid var(--line); align-items: start; }
.sp-item:last-child { border-bottom: 1px solid var(--line); }
.sp-logo { display: grid; place-items: center; height: 140px; padding: 24px 28px; background: #fff; border: 1px solid var(--line); border-radius: 14px; transition: box-shadow .2s; }
.sp-logo:hover { box-shadow: 0 6px 18px rgb(20 50 80 / .14); }
.sp-logo img { max-height: 72px; width: auto; max-width: 100%; }
.sp-body h3 { margin-bottom: 6px; }
.sp-body p { max-width: 64ch; margin: 0 0 12px; }
.sp-race { display: flex; align-items: center; gap: 8px; font: 800 15px/1.3 var(--display); color: var(--muted); }
.sp-links { display: flex; flex-wrap: wrap; gap: 10px 28px; }


/* ---------- 6 · final CTA ---------- */
.vl-final { padding-block: 88px; background: var(--paper-2); }
.vl-final-inner { position: relative; }
.vl-final h2 { max-width: 20ch; margin-bottom: 20px; }
.vl-final .t-lead { max-width: 52ch; margin-bottom: 28px; }
.vl-final { padding-bottom: clamp(240px, 26vw, 360px); }
.vl-inline { display: inline-flex; align-items: center; gap: 8px; }

/* ---------- ergebnisse.html ---------- */
.res-hero-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.res-hero h1 { margin-bottom: 18px; }
.res-latest { position: relative; background: #fff; color: #2d393e; border-radius: 14px; padding: 28px clamp(22px, 3vw, 36px) 26px; box-shadow: var(--shadow-lift); transform: rotate(.6deg); }
.res-latest-label { margin: 0 0 4px; font: 800 15px/1.3 var(--display); color: #56676e; }
.res-latest-year { margin: 0; font: 900 clamp(80px, 9vw, 132px)/.88 var(--display); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.res-latest h2 { margin: 10px 0 4px; font: 900 22px/1.2 var(--display); }
.res-latest-date { margin: 0 0 16px; font-weight: 600; color: #56676e; }
.res-latest ul { list-style: none; margin: 0 0 22px; padding: 14px 0 0; border-top: 2px dashed #d5dde2; display: grid; gap: 6px; }
.res-latest li { display: flex; align-items: center; gap: 10px; font: 800 15.5px/1.3 var(--display); }
.res-latest .actions { gap: 10px 18px; align-items: center; }
.res-latest .btn-ink { background: #2d393e; border-color: #2d393e; color: #fff; }
.res-latest a.more { color: #215dbb; }

.yr-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.yr { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 8px 24px; align-items: center; padding: 16px 4px; border-bottom: 1px solid var(--line); }
.yr-year { font: 900 34px/1 var(--display); font-variant-numeric: tabular-nums; color: var(--logo-blue); }
.yr-what { margin: 0; font: 800 17px/1.3 var(--display); }
.yr-what small { display: block; margin-top: 3px; font: 600 14px/1.4 var(--text); color: var(--muted); }
.yr .btn { white-space: nowrap; }
.yr-off .yr-year { color: var(--muted); }
.yr-off .yr-what { color: var(--muted); }
.yr-tag { font: 700 14px/1 var(--text); color: var(--muted); padding: 8px 12px; border: 1.5px dashed var(--line); border-radius: 999px; }
.res-side p { margin: 0 0 14px; max-width: 46ch; }
.res-side .t-title { margin-bottom: 14px; }

.best { border: 2px dashed var(--muted); border-radius: 14px; padding: clamp(22px, 3vw, 36px); background: var(--paper); }
.best-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 22px; }
.best-head .icon { width: 36px; height: 36px; color: var(--logo-blue); margin-top: 2px; }
.best-head h2 { margin-bottom: 8px; }
.best-head p { margin: 0; max-width: 60ch; color: var(--muted); }
.best .as-table { margin: 0; }
.best td { color: var(--muted); font-size: 15px; }

/* ---------- volkslauf-chronik.html ---------- */
.ch-jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; padding: 0; list-style: none; }
.ch-jump a { display: inline-block; padding: 9px 16px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font: 800 15px/1 var(--display); color: var(--ink); text-decoration: none; font-variant-numeric: tabular-nums; }
.ch-jump a:hover { background: var(--paper-2); }
.dec { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); gap: clamp(24px, 5vw, 72px); padding-block: 56px; border-top: 1px solid var(--line); }
.dec:first-child { border-top: 0; padding-top: 8px; }
.dec-head { align-self: start; position: sticky; top: calc(var(--sticky-top) + 20px); }
.dec-head h2 { font: 900 clamp(44px, 5vw, 72px)/.95 var(--display); letter-spacing: -.03em; margin: 0 0 10px; font-variant-numeric: tabular-nums; }
.dec-head p { margin: 0; color: var(--muted); max-width: 30ch; font-size: 16px; }
.dec-body { display: grid; gap: 20px; min-width: 0; }
/* years without a race: muted, the rail dotted; the next race: year in logo blue, rail dashed into the future */
.tl.tl-off { padding-bottom: 22px; }
.tl.tl-off .tl-year { color: var(--muted); font-size: 26px; }
.tl.tl-off::after { top: 36px; background: repeating-linear-gradient(var(--line) 0 3px, transparent 3px 8px); }
.tl.tl-off h3 { color: var(--muted); }
.tl.tl-next .tl-year { color: var(--logo-blue); }
.tl.tl-next::after { background: repeating-linear-gradient(var(--logo-blue) 0 8px, transparent 8px 14px); opacity: .5; }
.tl .more { margin-top: 10px; font-size: 15px; }
.clips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; padding: 6px 4px; }
.clip { margin: 0; }
.clip h3 { margin: 0 0 6px; font: 900 18px/1.25 var(--display); color: #2d393e; }
.clip p { margin: 0; font-size: 15px; line-height: 1.5; color: #5d6058; }
.clip .src { font-style: normal; }
.dec-media { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 16px; }
.dec-media > * { aspect-ratio: 4 / 3; }
.dec-media > .wide { aspect-ratio: auto; }
.dec-media.one { grid-template-columns: minmax(0, 1fr); }
.dec-media.one > * { aspect-ratio: 21 / 9; }
.dec-media.one > .media-slot:not([data-media]) { aspect-ratio: 3 / 1; }
.ch-years { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.ch-years > * { aspect-ratio: 3 / 4; min-width: 0; padding: 10px; }
.ch-years .media-fill { padding: 0; }
.ch-years .media-slot strong { font-size: 18px; }
.ch-years .media-slot span { font-size: 13px; }
.ch-years figcaption { left: 6px; right: 6px; bottom: 6px; max-width: none; border-radius: 10px; font-size: 12px; padding: 5px 8px; }
/* Archiv-Ausschnitte: Zeitungsfotos als leicht schräg liegende Papierstücke (Paper Object Rule) */
.clip-photo { padding: 10px 10px 8px; }
.clip-photo a { display: block; line-height: 0; }
.clip-photo img { display: block; width: 100%; height: auto; border-radius: 1px; }
.clip-photo figcaption { margin-top: 8px; font: 600 14px/1.45 var(--text); color: #3f4a4e; }
.clip-photo .src { margin-top: 6px; }
/* Ausschnitte zwischen den Jahren: in der Textspalte, die Schiene läuft ohne Unterbrechung daneben weiter */
.tl-clip { position: relative; padding: 4px 0 38px calc(var(--tl-col) + var(--tl-gap)); }
.tl-clip::after { content: ""; position: absolute; left: calc(var(--tl-col) + var(--tl-gap) / 2 - 1.5px); top: 0; bottom: 0; width: 3px; border-radius: 2px; background: var(--line); }
.tl-clip > .clip { max-width: 560px; }
.tl-clip.wide > .clip, .tl-clip.pair > .clip, .tl-clip.duo > .clip { max-width: none; }
.tl-clip.narrow > .clip { max-width: 340px; }
.tl-clip.pair { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 4.4fr); gap: 18px; align-items: start; }
.tl-clip .clip { transform: rotate(.5deg); }
.tl-clip:nth-of-type(even) .clip, .tl-clip.pair .clip + .clip { transform: rotate(-.6deg); }
/* Geschichten vom Streckenrand als Textausschnitt, neben einem Foto (.duo) oder allein */
.tl-clip.duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.tl-clip blockquote { margin: 8px 0 0; padding: 0; font-style: italic; color: #3f4a4e; font-size: 15px; }
@media (max-width: 700px) { .tl-clip.duo { grid-template-columns: minmax(0, 1fr); gap: 26px; } }
.clips.three { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
.clips .span-2 { grid-column: span 2; }
.ch-facts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 26px 0 0; padding: 0; list-style: none; }
.ch-facts li { display: grid; gap: 2px; }
.ch-facts b { font: 900 30px/1 var(--display); color: var(--logo-blue); font-variant-numeric: tabular-nums; }
.ch-facts span { font-size: 14.5px; color: var(--muted); max-width: 20ch; }
@media (max-width: 860px) { .clips.three { grid-template-columns: minmax(0, 1fr); } .clips .span-2 { grid-column: auto; } }
.ch-call { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(24px, 5vw, 72px); align-items: center; }
.ch-call h2 { margin-bottom: 18px; }
.ch-call p { max-width: 54ch; margin: 0 0 14px; }
.ch-call ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.ch-call li { display: flex; gap: 10px; align-items: center; font-weight: 700; }
.ch-call li .icon { width: 20px; height: 20px; color: var(--logo-blue); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .vl-bibs { gap: 28px; }
  .vl-race .bib-band { font-size: 13px; padding-inline: 32px; }
  .vl-race .bib-facts dd { font-size: 20px; }
}
@media (max-width: 960px) {
  .vl-hero-grid, .res-hero-grid, .ch-call { grid-template-columns: minmax(0, 1fr); }
  .vl-days { grid-template-columns: minmax(0, 1fr); }
  .vl-bibs { grid-template-columns: minmax(0, 1fr); max-width: 460px; margin-inline: auto; gap: 48px; }
  .vl-race .bib-num { font-size: clamp(84px, 22vw, 128px); }
  .vl-race .bib-band { font-size: 14px; padding-inline: 38px; }
  .vl-race .bib-facts dd { font-size: 24px; }
  .vl-bibs li:nth-child(n) .bib { --tilt: 1deg; }
  .vl-bibs li:nth-child(2) .bib { --tilt: -1deg; }
  .as-head, .as-layout { grid-template-columns: minmax(0, 1fr); }
  .as-stand { grid-column: 1; }
  .as-toc { position: static; }
  .as-toc ol { display: flex; flex-wrap: wrap; gap: 6px; margin-left: 0; }
  .as-toc ol a { background: var(--paper); border: 1px solid var(--line); padding: 8px 13px; }
  .as-toc-cta { display: none; }
  .sp-item { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .sp-logo { max-width: 340px; height: 120px; }
  .res-latest { max-width: 520px; }
  .dec { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-block: 44px; }
  .dec-head { position: static; }
}
@media (max-width: 700px) {
  .clips, .dec-media { grid-template-columns: minmax(0, 1fr); }
  .ch-years { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ch-years > :last-child { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
  .dec-media > .wide { aspect-ratio: 16 / 10; }
  .as-facts div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  /* tables become stacked rows */
  .as-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .as-table, .as-table tbody, .as-table tr, .as-table th, .as-table td { display: block; }
  .as-table tr { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .as-table th, .as-table td { border: 0; padding: 2px 0; text-align: left; }
  .as-table .r { text-align: left; padding-left: 0; }
  .as-races tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 16px; }
  .as-races tbody th { grid-column: 1 / -1; margin-bottom: 6px; }
  .as-races td::before { content: attr(data-label); display: block; font: 700 12px/1.3 var(--text); color: var(--muted); }
  .as-time tr { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 2px 12px; }
  .as-time td:first-child { grid-column: 1 / -1; font-size: 14px; }
  .best .as-table tr { display: grid; grid-template-columns: minmax(0, 1fr); }
  .best td::before { content: attr(data-label) ": "; font-weight: 700; color: var(--ink); }
  .yr { grid-template-columns: 76px minmax(0, 1fr); }
  .yr-year { font-size: 28px; }
  .yr > :last-child { grid-column: 2; justify-self: start; }
  .vl-final { padding-top: 56px; padding-bottom: 300px; }
}
@media (max-width: 420px) {
  .vl-race .bib-band { font-size: 13px; padding-inline: 34px; }
  .vl-race .bib-facts { margin-inline: 12px; }
  .vl-race .bib-facts dd { font-size: 21px; }
  .vl-slots div { grid-template-columns: 84px minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .vl-race .bib, .sp-logo, .arr-item .icon { transition: none; }
  .vl-race:hover .bib, .vl-race:focus-visible .bib { transform: rotate(var(--tilt)); }
}

/* ---------- Anfahrt map (Ausschreibung #anfahrt) ---------- */
.arr { --m-land: #ffffff; --m-urban: #f1f4f6; --m-industry: #eceff1; --m-park: #d7ece4; --m-forest: #b9e0d3; --m-water: #79d4f2;
  --m-building: #dfe8ee; --m-road: #d4dce1; --m-major: #b9c5cc; --m-track: #c3cfd5; --m-rail: #6f7f88; --m-mw: #f5b800; --m-mw-case: #b88900;
  margin-top: 22px; display: grid; gap: 18px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .arr { --m-land: #0c1820; --m-urban: #112029; --m-industry: #13232c; --m-park: #12302f;
  --m-forest: #1b4a47; --m-water: #146fa8; --m-building: #1d3241; --m-road: #24394a; --m-major: #36536a; --m-track: #2a4152; --m-rail: #6f8592; --m-mw: #c99a10; --m-mw-case: #7a5d05; } }
:root[data-theme="dark"] .arr { --m-land: #0c1820; --m-urban: #112029; --m-industry: #13232c; --m-park: #12302f;
  --m-forest: #1b4a47; --m-water: #146fa8; --m-building: #1d3241; --m-road: #24394a; --m-major: #36536a; --m-track: #2a4152; --m-rail: #6f8592; --m-mw: #c99a10; --m-mw-case: #7a5d05; }
.arr-map { position: relative; aspect-ratio: 16 / 10; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--m-land); }
.arr-map[hidden] { display: none; }
/* scroll scrub (js/volkslauf.js): the map holds still under the subnav while the extra scroll distance zooms it
   from "Umgebung" to "Rund um die Halle", then the page scrolls on. Off with reduced motion. */
.arr-scrub.is-scrub::after { content: ""; display: block; height: var(--scrub-len, 90vh); }   /* spacer, not padding: sticky stops at the content box */
.arr-scrub.is-scrub .arr-map { position: sticky; top: calc(var(--sticky-top) + max(16px, (100dvh - var(--sticky-top) - var(--map-h, 440px)) / 2)); z-index: 1; }
.arr-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.arr-svg path { fill: none; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.arr-svg .m-land { fill: var(--m-land); }
.arr-svg .m-urban { fill: var(--m-urban); } .arr-svg .m-industry { fill: var(--m-industry); } .arr-svg .m-park { fill: var(--m-park); }
.arr-svg .m-forest { fill: var(--m-forest); } .arr-svg .m-water { fill: var(--m-water); } .arr-svg .m-stream { stroke: var(--m-water); stroke-width: 1.5; }
.arr-svg .m-building { fill: var(--m-building); }
.arr-svg .m-track { stroke: var(--m-track); stroke-width: 1; stroke-dasharray: 3 3; }
.arr-svg .m-minor { stroke: var(--m-road); stroke-width: 2.5; }
.arr-svg .m-major { stroke: var(--m-major); stroke-width: 4; }
.arr-svg .m-rail-case { stroke: var(--m-rail); stroke-width: 3.5; }
.arr-svg .m-rail { stroke: var(--m-land); stroke-width: 1.5; stroke-dasharray: 6 6; }
.arr-svg .m-motorway-case { stroke: var(--m-mw-case); stroke-width: 6.5; }
.arr-svg .m-motorway { stroke: var(--m-mw); stroke-width: 4; }
.arr-pins { position: absolute; inset: 0; pointer-events: none; }
.arr-pin { position: absolute; left: 0; top: 0; pointer-events: auto; display: inline-flex; align-items: center; gap: 6px;
  margin: -16px 0 0 -16px; padding: 0 10px 0 0; height: 32px; border: 1.5px solid var(--ink); border-radius: 999px;
  background: var(--paper); color: var(--ink); font: 800 13px/1 var(--text); cursor: pointer; white-space: nowrap;
  box-shadow: 0 2px 8px rgb(20 40 60 / .22); transition: background-color .15s, color .15s; }
.arr-pin .icon { width: 29px; height: 29px; padding: 6px; flex: none; }
.arr-pin.is-left { flex-direction: row-reverse; padding: 0 0 0 10px; margin-left: auto; translate: calc(-100% + 32px) 0; }
.arr-pin.is-main, .arr-pin.is-on { background: var(--logo-blue); border-color: var(--logo-blue); color: #fff; }
.arr-pin.is-on { z-index: 2; outline: 3px solid color-mix(in srgb, var(--logo-blue) 35%, transparent); }
.arr-pin[hidden] { display: none; }
.arr-zoom { position: absolute; left: 10px; top: 10px; display: flex; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); padding: 3px; box-shadow: 0 2px 8px rgb(20 40 60 / .15); }
.arr-zoom button { border: 0; background: none; color: var(--ink); font: 700 13.5px/1 var(--text); padding: 8px 12px; border-radius: 999px; cursor: pointer; }
.arr-zoom button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.arr-attr { position: absolute; right: 6px; bottom: 4px; margin: 0 !important; font-size: 12px; color: var(--muted); background: color-mix(in srgb, var(--m-land) 80%, transparent); padding: 3px 8px; border-radius: 6px; }
.arr-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
.arr-list li { border-bottom: 1px solid var(--line); }
.arr-item { width: 100%; display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 12px 8px; margin: 0;
  border: 0; border-radius: 8px; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.arr-item .icon { width: 28px; height: 28px; padding: 5px; margin-top: -2px; border-radius: 50%; color: var(--logo-blue); transition: background-color .15s, color .15s; }
.arr-txt { display: grid; gap: 2px; min-width: 0; }
.arr-txt strong { font-weight: 800; }
.arr-txt span { color: var(--muted); font-size: 15px; line-height: 1.45; }
.arr-dist { font-size: 14px; color: var(--muted); white-space: nowrap; padding-top: 2px; }
.arr-item:hover { background: var(--paper-2); }
/* active place: tinted row + the icon filled like the active map pin (no side stripe) */
.arr-item[aria-pressed="true"] { background: var(--paper-3); }
.arr-item[aria-pressed="true"] .icon { background: var(--logo-blue); color: var(--paper); }
.arr-route { margin: 0 !important; }
@media (max-width: 700px) {
  .arr-map { aspect-ratio: 4 / 3.4; }
  .arr-list { grid-template-columns: minmax(0, 1fr); }
  .arr-zoom button { padding: 8px 10px; font-size: 13px; }
}

/* ---------- 3 · race day timeline: horizontal, moves sideways with the page scroll ----------
   Without JS, with reduced motion or when the strip doesn't fit the viewport height it is a plain swipe/scroll strip.
   With .is-scrub (js/volkslauf.js) the head + strip stay pinned and vertical scrolling pushes the strip to the left. */
.lt-band { overflow-x: clip; }
.lt { list-style: none; margin: 0; padding: 0 0 14px; position: relative; display: flex; gap: clamp(20px, 2.6vw, 36px);
      overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 2px; overscroll-behavior-x: contain; }
.lt:focus-visible { outline: 2px solid var(--logo-blue); outline-offset: 6px; border-radius: 4px; }
.lt-step { position: relative; flex: 0 0 clamp(260px, 26vw, 340px); display: flex; flex-direction: column; gap: 12px; scroll-snap-align: start; padding-top: 28px; }
/* line from dot to dot: each step draws its piece up to the next one */
.lt-step::after { content: ""; position: absolute; left: 16px; right: calc(-1 * clamp(20px, 2.6vw, 36px)); top: 7px; height: 2px; background: var(--line); }
.lt-step:last-child::after { right: 0; }
.lt-step::before { content: ""; position: absolute; left: 0; top: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--paper); border: 3px solid var(--logo-blue); box-sizing: border-box; z-index: 1; }
.lt-when { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.lt-day { font-size: 14.5px; font-weight: 700; color: var(--muted); line-height: 1.35; flex-basis: 100%; }
.lt-time { font: 900 clamp(24px, 2.4vw, 30px)/1.05 var(--display); letter-spacing: -.01em; }
.lt-media { aspect-ratio: 16 / 10; min-width: 0; border-radius: 12px; overflow: hidden; }
.lt-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* filled: a plain photo with its caption underneath, like a print in an album. The crop point comes from media.json
   "focus"; portraits are cropped to the same frame so the strip stays even. */
.lt-media.media-fill { aspect-ratio: auto; border-radius: 0; overflow: visible; background: none; margin: 0; }
.lt-media.media-fill img { height: auto; aspect-ratio: 16 / 10; border-radius: 4px; background: var(--paper-3); }
.lt-media.media-fill figcaption { position: static; max-width: none; margin-top: 8px; padding: 0; border-radius: 0; background: none; color: var(--muted); font: 600 14px/1.45 var(--text); }
.lt-body h3 { margin: 2px 0 8px; }
.lt-body p { margin: 0 0 10px; }
.lt-body p:last-child { margin-bottom: 0; }
/* pinned mode */
.lt-scrub.is-scrub::after { content: ""; display: block; height: var(--lt-len, 100vh); }   /* scroll distance for the sideways run */
.lt-scrub.is-scrub .lt-pin { position: sticky; top: var(--sticky-top); }   /* exact top comes from js/volkslauf.js */
.lt-scrub.is-scrub .lt { overflow: visible; scroll-snap-type: none; will-change: transform; }
.lt-scrub.is-scrub .section-head { margin-bottom: 22px; }
/* low windows (laptops): flatter photos, no captions, so the pinned block still fits */
@media (max-height: 860px) {
  .lt-scrub .lt-media:not(.media-fill), .lt-scrub .lt-media.media-fill img { aspect-ratio: 2 / 1; }
  .lt-scrub.is-scrub .lt-media figcaption { display: none; }
}
@media (max-width: 700px) {
  .lt-step { flex-basis: min(82vw, 320px); }
  .lt-scrub.is-scrub .lt-step { flex-basis: min(78vw, 320px); }
  .lt-step::before { width: 14px; height: 14px; }
  .lt-step::after { top: 6px; }
}

/* Ergebnisliste (ergebnisse.html#liste): raceresult widget behind a click */
.rr-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; margin-bottom: 24px; }
.rr-head .t-title { margin: 0; }
.rr-years { display: flex; flex-wrap: wrap; gap: 6px; }
.rr-years button { min-height: 40px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink); font: 800 15px/1 var(--display); font-variant-numeric: tabular-nums; cursor: pointer; transition: background .15s, border-color .15s; }
.rr-years button:hover { border-color: var(--ink); }
.rr-years button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.rr-gate { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: start; padding: clamp(22px, 3vw, 32px); border: 2px dashed var(--line); border-radius: 14px; background: var(--paper); }
.rr [hidden] { display: none; }
.rr-gate > .icon { width: 30px; height: 30px; color: var(--logo-blue); }
.rr-gate p { margin: 0 0 18px; max-width: 62ch; }
.rr-gate .actions { gap: 12px 22px; align-items: center; }
.rr-out { min-height: 240px; padding: clamp(12px, 2vw, 24px); border-radius: 14px; background: #fff; color: #2d393e; box-shadow: var(--shadow-lift); overflow-x: auto; }
.rr-wait, .rr-fail { margin: 0; font-weight: 600; color: var(--muted); }
.rr-out .rr-wait { color: #56676e; }
.rr-fail { padding: 18px 0; }
@media (prefers-reduced-motion: reduce) { .rr-years button { transition: none; } }
/* raceresult widget, matched to the site (class names from RRPublish) */
.rr-widget { font: 500 15px/1.45 var(--text); font-variant-numeric: tabular-nums; }
.rr-widget .ListControl { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin-bottom: 14px; }
.rr-widget .ListBack, .rr-widget .ListControlPDF { cursor: pointer; font: 800 15px/1.3 var(--display); color: #215dbb; }
.rr-widget .ListControlSearch { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.rr-widget .ListControlSearch input { width: min(320px, 60vw); min-height: 40px; padding: 0 14px; border: 1.5px solid #c9d3d8; border-radius: 999px; font: 600 15px/1 var(--text); color: #2d393e; background: #fff; }
.rr-widget .ListControlSearch input:focus { outline: 3px solid #215dbb; outline-offset: 1px; }
.rr-widget .ListControlSearch :is(.btnSearch, .btnClearSearch) { min-height: 40px; border: 0; border-radius: 999px; padding: 0 14px; background: #2d393e; color: #fff; font: 800 14px/1 var(--display); cursor: pointer; }
.rr-widget .ListControlSearch button:disabled { opacity: .45; cursor: default; }
.rr-widget .MainTable { width: 100%; border-collapse: collapse; }
.rr-widget .MainTable th { padding: 10px 8px; border-bottom: 2px solid #2d393e; font: 800 14px/1.25 var(--display); vertical-align: bottom; white-space: nowrap; }
.rr-widget .MainTable td { padding: 7px 8px; border-bottom: 1px solid #e3e9ec; vertical-align: top; }
.rr-widget .MainTable tr.Hover:hover td, .rr-widget .MainTable tbody tr:hover td { background: #f3f6f8; }
.rr-widget .listGrouping td, .rr-widget td.listGrouping { padding-top: 22px; border-bottom: 2px solid #c9d3d8; font: 900 18px/1.25 var(--display); color: #2d393e; background: none !important; }
.rr-widget .ListHeaderFooter { color: #56676e; font-size: 14px; }
.rr-widget .MainTable td, .rr-widget .MainTable th { word-break: normal; overflow-wrap: normal; hyphens: manual; }
@media (max-width: 640px) {
  .rr-widget { font-size: 14px; }
  .rr-widget .ListControlSearch { width: 100%; margin-left: 0; }
  .rr-widget .ListControlSearch input { flex: 1; width: auto; min-width: 0; }
  .rr-widget .MainTable th, .rr-widget .MainTable td { padding: 6px 5px; }
}
