/* ==========================================================================
   ews Volkslauf Bad Segeberg — Ergebnis-Portal
   Designsprache aus dem Elementor-Kit der Hauptseite, so wie sie die
   Rückblick-Seite (rueckblick-2026, "rb-"-Klassen) festgeschrieben hat:
     #094891 Blau · #158638 Grün · #E8EBE2 Salbei · #B0CC99 Hellgrün ·
     #74ADD1 Hellblau · #54595F Grau
   Schriften: Überschriften Expletus Sans = 1:1 das Kit. Der Fließtext ist
   bewusst **Open Sans** und damit NICHT die Kit-Vorgabe (dort steht Roboto) —
   er folgt der Rückblick-Seite, an die das Portal optisch andockt. Das ist
   eine Entscheidung, kein Versehen: nicht auf Roboto "korrigieren".
   Signatur des Kits ist der asymmetrische Radius 10px 10px 0 10px — er sitzt
   auf Karten, Buttons, Bildern und Eingabefeldern.
   ========================================================================== */

/* ---------- Schriften (selbst gehostet, kein Google-Aufruf) ---------- */
@font-face{
  font-family:"Expletus Sans";font-style:normal;font-weight:400 700;font-display:swap;
  src:url(fonts/expletus-sans-latin-ext.woff2) format("woff2");
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face{
  font-family:"Expletus Sans";font-style:normal;font-weight:400 700;font-display:swap;
  src:url(fonts/expletus-sans-latin.woff2) format("woff2");
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face{
  font-family:"Open Sans";font-style:normal;font-weight:300 800;font-stretch:100%;font-display:swap;
  src:url(fonts/open-sans-latin-ext.woff2) format("woff2");
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face{
  font-family:"Open Sans";font-style:normal;font-weight:300 800;font-stretch:100%;font-display:swap;
  src:url(fonts/open-sans-latin.woff2) format("woff2");
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

/* ---------- Tokens ---------- */
:root{
  --vl-blue:#094891;
  --vl-blue-dark:#063567;
  --vl-blue-soft:#74ADD1;
  --vl-green:#158638;
  --vl-green-dark:#0F6B2C;
  --vl-green-light:#B0CC99;
  --vl-sage:#E8EBE2;
  --vl-sage-soft:#F4F6F1;
  --vl-rule:#CFD6C8;
  --vl-rule-blue:rgba(9,72,145,.16);
  --vl-grey:#54595F;
  --vl-grey-soft:#7A8085;
  /* Einziger Zusatz zur Kit-Palette: Warn-Zustand (Bernstein aus dem Logo-Gelb
     abgeleitet). Wird ausschließlich für Fehl-/Hinweismeldungen benutzt. */
  --vl-amber:#C97B00;
  --vl-amber-bg:#FDF5E6;

  --vl-display:"Expletus Sans","Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  --vl-body:"Open Sans",Roboto,"Segoe UI",Helvetica,Arial,sans-serif;

  --vl-radius:10px 10px 0 10px;
  --vl-radius-sm:6px 6px 0 6px;
  --vl-shadow:0 14px 30px -24px rgba(9,72,145,.65);
  --vl-shadow-soft:0 12px 24px -22px rgba(9,72,145,.9);
  --vl-pad:clamp(3rem,7vw,6rem);
  --vl-wrap:1140px;

  /* --- Kompatibilität für /intern/ (Basic-Auth-Werkzeuge, nicht umgebaut).
     intern/index.html und intern/details.php referenzieren noch die alten
     Variablennamen des Vorgänger-Designs. Die Aliase halten sie lesbar,
     ohne dass dort Markup angefasst werden muss. --- */
  --ink:var(--vl-blue-dark);
  --ink-2:var(--vl-blue);
  --paper:#ffffff;
  --paper-dim:var(--vl-grey);
  --yellow:var(--vl-green);
  --yellow-soft:var(--vl-green-light);
  --blue:var(--vl-blue);
  --sky:var(--vl-blue-soft);
  --line:var(--vl-rule);
  --display:var(--vl-display);
  --body:var(--vl-body);
  --mono:var(--vl-body);
}

/* ---------- Grundlagen ---------- */
*,*::before,*::after{box-sizing:border-box}
body,h1,h2,h3,h4,p,ul,ol,figure,dl,dd{margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  background:#fff;color:var(--vl-grey);
  font-family:var(--vl-body);font-size:1rem;line-height:1.6;
  -webkit-font-smoothing:antialiased;
  /* Spaltenlayout, damit die Fußzeile (margin-block-start:auto) auch auf
     kurzen Seiten — Leerzustand der Fotosuche, Fehlerseite — unten sitzt
     und darunter kein weißer Streifen stehen bleibt. */
  min-height:100vh;
  min-height:100svh; /* moderne Browser: ohne Sprung durch mobile Browserleisten */
  display:flex;flex-direction:column;
}
body > *{flex:0 0 auto}
img{max-width:100%;height:auto}
::selection{background:var(--vl-green-light);color:var(--vl-blue-dark)}
a{color:var(--vl-blue);text-underline-offset:.18em}
a:focus-visible,button:focus-visible,input:focus-visible,summary:focus-visible{
  outline:3px solid var(--vl-blue);outline-offset:3px;
}
.hero a:focus-visible,.pagehead a:focus-visible,
.site-foot a:focus-visible,.hero button:focus-visible{outline-color:#fff}
.vh{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;
  clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0}

.wrap{width:100%;max-width:var(--vl-wrap);margin-inline:auto;padding-inline:20px}

/* ---------- Typografie ---------- */
.eyebrow{
  font-size:.75rem;font-weight:600;letter-spacing:.2em;text-transform:uppercase;
  color:var(--vl-green);margin:0 0 .9rem;
}
.hero .eyebrow,.pagehead .eyebrow{color:var(--vl-green-light)}
.section--sage .eyebrow{color:var(--vl-green-dark)}
h1,h2,h3,h4{font-family:var(--vl-display);font-weight:600;color:var(--vl-blue);line-height:1.15;letter-spacing:-.01em}
.lead{font-size:clamp(1.08rem,2.1vw,1.3rem);line-height:1.62;color:var(--vl-blue);max-width:56ch}
.yel{color:var(--vl-green)}

/* ---------- Kopfzeile ---------- */
.site-head{
  position:sticky;top:0;z-index:60;
  background:#fff;border-bottom:1px solid var(--vl-rule);
}
.site-head__inner{
  display:flex;align-items:center;justify-content:space-between;gap:1.25rem;
  min-height:74px;padding-block:.7rem;
}
.site-head__logo{display:inline-flex;align-items:center;line-height:0;text-decoration:none}
.site-head__logo img{width:190px;height:auto;display:block}
.site-head__nav{display:flex;align-items:center;gap:1.4rem;flex-wrap:wrap;justify-content:flex-end;
  min-width:0;text-align:right}
.site-head__nav a{
  font-size:.9rem;font-weight:600;color:var(--vl-blue);text-decoration:none;
  padding-block:.35rem;border-bottom:2px solid transparent;transition:border-color .2s ease,color .2s ease;
}
.site-head__nav a:hover,.site-head__nav a:focus-visible{border-bottom-color:var(--vl-green);color:var(--vl-green-dark)}
.site-head__nav a.is-home{color:var(--vl-grey)}
.site-head__nav a.is-home:hover,.site-head__nav a.is-home:focus-visible{color:var(--vl-blue)}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:.55em;
  font-family:var(--vl-body);font-weight:600;font-size:1rem;line-height:1.25;
  padding:.95rem 1.65rem;border-radius:var(--vl-radius);border:2px solid transparent;
  text-decoration:none;cursor:pointer;-webkit-appearance:none;appearance:none;
  transition:background-color .25s ease,color .25s ease,border-color .25s ease;
}
.btn--primary{background:var(--vl-green);color:#fff;border-color:var(--vl-green)}
.btn--primary:hover,.btn--primary:focus-visible{background:var(--vl-green-dark);border-color:var(--vl-green-dark);color:#fff}
.btn--outline{background:#fff;color:var(--vl-blue);border-color:var(--vl-blue)}
.btn--outline:hover,.btn--outline:focus-visible{background:var(--vl-blue);color:#fff;border-color:var(--vl-blue)}
.btn--ghost{background:transparent;color:#fff;border-color:rgba(255,255,255,.65)}
.btn--ghost:hover,.btn--ghost:focus-visible{background:#fff;color:var(--vl-blue);border-color:#fff}
.btn--sm{font-size:.85rem;padding:.6rem 1.05rem;border-radius:var(--vl-radius-sm)}
.btn .arr{transition:transform .25s ease}
.btn:hover .arr{transform:translateX(3px)}
.cta-row{display:flex;flex-wrap:wrap;gap:.85rem;margin-block-start:1.9rem}

/* ---------- Hero (Startseite) ---------- */
.hero{position:relative;isolation:isolate;overflow:hidden;background:var(--vl-blue);color:#fff}
.hero__media{
  position:absolute;inset:0;z-index:0;
  background-image:url(hero-volkslauf.jpg);
  background-size:cover;background-position:50% 42%;background-repeat:no-repeat;
  opacity:.72;
}
.hero__scrim{
  position:absolute;inset:0;z-index:1;
  /* Wie der Rückblick-Hero, oben etwas dichter: das Portal-Hero ist flacher,
     die Eyebrow läge sonst im hellen Himmelbereich. */
  background:linear-gradient(180deg,rgba(9,72,145,.54) 0%,rgba(9,72,145,.78) 52%,rgba(6,53,103,.95) 100%);
}
.hero__inner{
  position:relative;z-index:2;
  display:flex;flex-direction:column;justify-content:flex-end;
  min-height:min(64vh,520px);
  padding-block:clamp(3rem,10vw,5.5rem);
}
.hero h1{
  color:#fff;font-size:clamp(2.2rem,7vw,4.2rem);line-height:1.02;letter-spacing:-.02em;
  margin:0 0 1rem;max-width:15ch;text-wrap:balance;
}
.hero__rule{width:64px;height:4px;background:var(--vl-green-light);border:0;margin:0 0 1.6rem}
.hero__sub{
  font-size:clamp(1.05rem,2.2vw,1.35rem);line-height:1.55;color:rgba(255,255,255,.94);
  max-width:44ch;
}

/* ---------- Kennzahlen ---------- */
.stats{
  position:relative;z-index:2;
  display:grid;grid-template-columns:repeat(3,1fr);gap:1px;
  margin-block-start:clamp(2rem,5vw,3.2rem);
  border-block-start:1px solid rgba(255,255,255,.28);
}
.stats > div{padding:1.4rem 1.1rem 0;border-inline-start:1px solid rgba(255,255,255,.22)}
.stats > div:first-child{border-inline-start:0;padding-inline-start:0}
.stats .n{
  font-family:var(--vl-display);font-weight:600;color:#fff;
  font-size:clamp(1.9rem,5vw,2.9rem);line-height:1;letter-spacing:-.02em;
  font-variant-numeric:tabular-nums lining-nums;
}
.stats .k{
  margin-block-start:.45rem;
  font-size:.72rem;font-weight:600;letter-spacing:.14em;text-transform:uppercase;
  color:var(--vl-green-light);
}

/* ---------- Seitenkopf der Unterseiten ---------- */
.pagehead{background:var(--vl-blue);color:rgba(255,255,255,.9)}
.pagehead__inner{padding-block:clamp(2.2rem,5vw,3.4rem)}
.crumbs{
  font-size:.72rem;font-weight:600;letter-spacing:.16em;text-transform:uppercase;
  color:var(--vl-grey);margin-block-end:.9rem;
}
.pagehead .crumbs{color:var(--vl-green-light)}
.pagehead .crumbs a{color:var(--vl-green-light);text-decoration:none;border-bottom:1px solid rgba(176,204,153,.5)}
.pagehead .crumbs a:hover{color:#fff;border-bottom-color:#fff}
.pagehead h1{color:#fff;font-size:clamp(1.9rem,5.4vw,3rem);margin:0;max-width:22ch;text-wrap:balance}
.subline{margin-block-start:.8rem;font-size:1rem;line-height:1.6;color:var(--vl-grey);max-width:60ch}
.pagehead .subline{color:rgba(255,255,255,.9)}
.pagehead .subline b{color:#fff;font-weight:700}

/* ---------- Sektionen ---------- */
.section{padding-block:var(--vl-pad)}
.section--sage{background:var(--vl-sage)}
.section--tight{padding-block:clamp(2.5rem,5vw,4rem)}
.section-head{margin-block-end:2.4rem}
.section-head h2{font-size:clamp(1.7rem,4.6vw,2.6rem);margin:0;max-width:20ch;text-wrap:balance}
.wrap-page{padding-block:clamp(2.4rem,5vw,3.6rem) var(--vl-pad)}

/* ---------- Veranstaltungs-Karten ---------- */
.year-label{
  display:flex;align-items:center;gap:1rem;margin:0 0 1.1rem;
  font-family:var(--vl-body);font-weight:600;font-size:.72rem;letter-spacing:.16em;
  text-transform:uppercase;color:var(--vl-blue);
}
.year-label::after{content:"";flex:1;height:2px;background:var(--vl-blue);opacity:.25}
.events{display:grid;grid-template-columns:repeat(auto-fill,minmax(290px,1fr));gap:1.1rem}
/* T-1226/M2: Jahrgangs-Gruppe = Sprungziel `#j<Jahr>`. Der Kopf ist sticky
   (min-height 74px), deshalb braucht jedes Sprungziel `scroll-margin-top` —
   sonst rutscht die Jahres-Überschrift unter die Kopfzeile. */
.yeargroup + .yeargroup{margin-block-start:2.8rem}
.yeargroup,#ergebnisse,#einstiege{scroll-margin-top:6.25rem}
.event{
  position:relative;display:flex;flex-direction:column;
  background:#fff;border:1px solid var(--vl-rule-blue);border-radius:var(--vl-radius);
  box-shadow:var(--vl-shadow);padding:1.5rem 1.6rem 1.25rem;
  text-decoration:none;color:var(--vl-grey);
  transition:transform .25s ease,border-color .25s ease,box-shadow .25s ease;
}
.event:hover,.event:focus-visible{
  transform:translateY(-3px);border-color:var(--vl-green);
  box-shadow:0 18px 34px -22px rgba(9,72,145,.75);
}
.event h3{font-size:clamp(1.15rem,2.6vw,1.35rem);margin:0 0 .35rem;line-height:1.25}
/* Platz für das Kids-Abzeichen nur dort freihalten, wo eines sitzt. */
.event:has(.tag) h3{margin-inline-end:3.5rem}
.event .meta{font-size:.9rem;color:var(--vl-grey);font-variant-numeric:tabular-nums lining-nums}
.event .go{
  display:flex;align-items:center;justify-content:space-between;gap:1rem;
  margin-block-start:auto;padding-block:.85rem 0;
  border-block-start:1px solid var(--vl-rule);
  font-weight:600;font-size:.92rem;color:var(--vl-blue);
}
.event .meta{margin-block-end:1.2rem}
.event .go .arr{color:var(--vl-green);transition:transform .25s ease}
.event:hover .go .arr{transform:translateX(4px)}
.event .tag{
  position:absolute;top:1.15rem;right:1.15rem;
  font-size:.62rem;font-weight:600;letter-spacing:.14em;text-transform:uppercase;
  color:#fff;background:var(--vl-green);padding:.25rem .6rem;border-radius:var(--vl-radius-sm);
}

/* ---------- Einstiege (Startseite, T-1226) ----------
   Eine Aufgabe = ein Einstieg: Ergebnislisten, Urkunde, Fotos — drei
   gleichwertige Karten direkt unter dem Hero. Der Foto-Einstieg fehlt auf
   Deployments ohne Tabelle `lauffotos` (Strato); das Raster füllt die Lücke
   über auto-fit von allein, deshalb keine feste Spaltenzahl. */
.entries{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:1.1rem}
.entry{
  display:flex;flex-direction:column;text-decoration:none;color:var(--vl-grey);
  background:#fff;border:1px solid var(--vl-rule-blue);border-radius:var(--vl-radius);
  box-shadow:var(--vl-shadow);padding:1.6rem 1.7rem 1.25rem;
  transition:transform .25s ease,border-color .25s ease,box-shadow .25s ease;
}
.entry:hover,.entry:focus-visible{
  transform:translateY(-3px);border-color:var(--vl-green);
  box-shadow:0 18px 34px -22px rgba(9,72,145,.75);
}
.entry .lbl{font-size:.72rem;font-weight:600;letter-spacing:.18em;text-transform:uppercase;color:var(--vl-green-dark)}
.entry h3{font-size:clamp(1.2rem,2.8vw,1.45rem);margin:.55rem 0 .5rem;line-height:1.25}
.entry p{margin:0 0 1.2rem;font-size:.95rem;line-height:1.65;max-width:44ch}
.entry .go{
  display:flex;align-items:center;justify-content:space-between;gap:1rem;
  margin-block-start:auto;padding-block:.9rem 0;
  border-block-start:1px solid var(--vl-rule);
  font-weight:600;font-size:.92rem;color:var(--vl-blue);
}
.entry .go .arr{color:var(--vl-green);transition:transform .25s ease}
.entry:hover .go .arr{transform:translateX(4px)}

/* Folge-Schritt statt Alternative (T-1226): „Deine Urkunde herunterladen"
   führt auf denselben Anker wie „Ergebnislisten" — es ist Schritt 2 desselben
   Weges, keine zweite gleichwertige Möglichkeit. Die Karte bleibt anklickbar,
   tritt aber sichtbar zurück: keine weiße Fläche, kein Schatten, gestrichelte
   Kante. */
.entry--step{
  background:transparent;box-shadow:none;
  border-style:dashed;border-color:var(--vl-rule);
}
.entry--step:hover,.entry--step:focus-visible{
  background:#fff;box-shadow:var(--vl-shadow-soft);
}
.entry--step .lbl{color:var(--vl-grey-soft)}
.entry--step h3{color:var(--vl-blue-dark)}

/* Rückblick-Band (T-1226): der Rückblick ist keine der drei Aufgaben
   „Ergebnis / Urkunde / Foto", sondern ein Angebot daneben — deshalb eine
   eigene, ruhigere Zeile unter den Einstiegskarten statt einer vierten Karte. */
.rblink{
  display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;
  gap:.9rem 1.6rem;margin-block-start:1.4rem;
  padding:1.1rem 1.4rem;
  background:#fff;border:1px solid var(--vl-rule-blue);border-radius:var(--vl-radius);
}
.rblink__text{margin:0;font-size:.95rem;line-height:1.55;color:var(--vl-grey)}
.rblink__text b{color:var(--vl-blue);font-weight:600}
.rblink .btn{flex:0 0 auto}
@media (max-width:520px){
  .rblink{flex-direction:column;align-items:stretch}
  .rblink .btn{justify-content:center}
}

/* ---------- Werkzeugleiste, Suche, Formulare ---------- */
.toolbar{display:flex;gap:.85rem;flex-wrap:wrap;align-items:center;margin-block-end:1.4rem}
.fotoform{display:flex;gap:.85rem;flex-wrap:wrap;align-items:stretch;margin-block-end:1.6rem}
.search{position:relative;flex:1 1 260px;min-width:220px}
.search input{
  width:100%;background:#fff;color:var(--vl-grey);
  font-family:var(--vl-body);font-size:1rem;line-height:1.25;
  border:2px solid var(--vl-rule);border-radius:var(--vl-radius);
  padding:.9rem 1rem .9rem 2.9rem;
  transition:border-color .2s ease,box-shadow .2s ease;
}
.search input::placeholder{color:var(--vl-grey-soft)}
/* Ruhige Hervorhebung beim Tippen … */
.search input:focus{border-color:var(--vl-blue);box-shadow:0 0 0 3px rgba(9,72,145,.14)}
/* … aber ein echter, deutlich sichtbarer Fokusring bei Tastaturbedienung.
   Früher stand hier `outline:none` — das schlug die globale Fokusregel
   (a/button/input:focus-visible weiter oben) wegen höherer Spezifität und
   ließ nur den blassen box-shadow übrig. */
.search input:focus-visible{outline:3px solid var(--vl-blue);outline-offset:3px}
.search svg{position:absolute;left:1rem;top:50%;transform:translateY(-50%);color:var(--vl-blue);pointer-events:none}
.fotoform .btn{flex:0 0 auto}

/* ---------- Ergebnistabelle ---------- */
.tablecard{
  background:#fff;border:1px solid var(--vl-rule);border-radius:var(--vl-radius);
  box-shadow:var(--vl-shadow);overflow:hidden;
}
.table-responsive{width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
table{width:100%;border-collapse:collapse}
thead th{
  text-align:left;white-space:nowrap;
  font-size:.7rem;font-weight:600;letter-spacing:.16em;text-transform:uppercase;color:var(--vl-blue);
  padding:1rem 1.1rem;border-block-end:2px solid var(--vl-blue);
}
tbody td{padding:.85rem 1.1rem;border-block-end:1px solid var(--vl-rule);font-size:.95rem;vertical-align:middle}
tbody tr:last-child td{border-block-end:0}
/* Die (fast immer versteckte) Leerzeile am Tabellenende darf der letzten
   Datenzeile ihre randlose Darstellung nicht wegnehmen. */
tbody tr:nth-last-child(2):has(+ tr.leerzeile) td{border-block-end:0}
tbody tr:nth-child(even){background:var(--vl-sage-soft)}
/* Beim Filtern duerfen ausgeblendete Zeilen die Streifung nicht mitzaehlen.
   Browser ohne "of <selector>" behalten die einfache Regel darueber. */
@supports selector(:nth-child(even of :not([hidden]))){
  tbody tr:nth-child(even){background:transparent}
  tbody tr:nth-child(even of :not([hidden])){background:var(--vl-sage-soft)}
}
tbody tr[hidden]{display:none}
tbody tr:hover{background:#EAF1F8}
.pl{width:64px;font-family:var(--vl-display);font-weight:600;font-size:1.05rem;color:var(--vl-blue);
  font-variant-numeric:tabular-nums lining-nums}
.pl .plnum{display:inline-block;padding-inline-start:.55rem}
.pl .medal{
  display:inline-flex;align-items:center;justify-content:center;
  width:30px;height:30px;border-radius:50%;font-size:.9rem;line-height:1;
  background:var(--vl-sage);color:var(--vl-blue);
}
/* Medaillen-Kontrast: beide Kombinationen liegen ueber 4,5:1 (WCAG AA).
   Weiss auf --vl-green bzw. --vl-blue-soft tat das nicht. */
.pl.p1 .medal{background:var(--vl-green-dark);color:#fff}
.pl.p2 .medal{background:var(--vl-blue-soft);color:var(--vl-blue-dark)}
.pl.p3 .medal{background:var(--vl-green-light);color:var(--vl-blue-dark)}
.startnr{font-variant-numeric:tabular-nums lining-nums;color:var(--vl-grey);white-space:nowrap}
.name{font-weight:600;color:var(--vl-blue)}
.ak{color:var(--vl-grey);font-size:.9rem}
/* Disziplin-Spalte (nur bei gemischten Disziplinen gerendert) */
.dis{white-space:nowrap}
.time{font-family:var(--vl-display);font-weight:600;color:var(--vl-blue);white-space:nowrap;
  font-variant-numeric:tabular-nums lining-nums}
.btn-cert,.btn-foto{
  display:inline-flex;align-items:center;gap:.45em;white-space:nowrap;text-decoration:none;
  font-family:var(--vl-body);font-weight:600;font-size:.82rem;line-height:1.25;
  padding:.5rem .85rem;border-radius:var(--vl-radius-sm);border:2px solid transparent;
  transition:background-color .2s ease,color .2s ease,border-color .2s ease;
}
.btn-cert{background:#fff;color:var(--vl-blue);border-color:var(--vl-blue)}
.btn-cert:hover,.btn-cert:focus-visible{background:var(--vl-blue);color:#fff}
.btn-foto{background:#fff;color:var(--vl-green-dark);border-color:var(--vl-green)}
.btn-foto:hover,.btn-foto:focus-visible{background:var(--vl-green);color:#fff}
.btn-cert svg,.btn-foto svg{width:14px;height:14px;flex:0 0 auto}

/* ---------- Hinweise / Leerzustände ---------- */
.notice{
  background:var(--vl-sage);border-inline-start:4px solid var(--vl-blue);
  border-radius:var(--vl-radius);padding:1.15rem 1.35rem;
  font-size:1rem;line-height:1.7;color:var(--vl-grey);max-width:70ch;
}
.notice b{color:var(--vl-blue);font-weight:700}
.notice a{color:var(--vl-blue);font-weight:600}
.notice + .notice{margin-block-start:1rem}
.notice-warn{background:var(--vl-amber-bg);border-inline-start-color:var(--vl-amber)}
.notice-warn b{color:var(--vl-amber)}
.notice .startnr{font-weight:700;color:var(--vl-blue)}
.leer{color:var(--vl-grey);font-size:1.0625rem;line-height:1.7}
/* Vom Live-Filter erzeugte Zeile, wenn kein Eintrag passt. */
tbody tr.leerzeile,
tbody tr.leerzeile:hover{background:#fff}
tbody tr.leerzeile td{
  padding:1.9rem 1.1rem;border-block-end:0;text-align:center;
  color:var(--vl-grey);font-size:1.0625rem;line-height:1.7;
}

/* ---------- Fotosuche ---------- */
.fotocount{
  display:flex;align-items:baseline;gap:.6rem;flex-wrap:wrap;margin-block:1.8rem .9rem;
  font-size:.72rem;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--vl-grey);
}
.fotocount b{font-family:var(--vl-display);font-size:1.5rem;letter-spacing:-.02em;color:var(--vl-green);
  font-variant-numeric:tabular-nums lining-nums}
.fotocount .startnr{color:var(--vl-blue);font-weight:700}
.fotocount-hint{text-transform:none;letter-spacing:0;font-weight:400;color:var(--vl-grey);
  margin-inline-start:auto;font-size:.9rem}
.fotogrid{
  list-style:none;margin:0;padding:0;
  display:grid;gap:.6rem;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));
}
@media (min-width:700px){.fotogrid{gap:.9rem;grid-template-columns:repeat(auto-fill,minmax(200px,1fr))}}
.fotogrid li{margin:0}
.fotogrid a{
  position:relative;display:block;overflow:hidden;line-height:0;background:#fff;
  border-radius:var(--vl-radius);box-shadow:var(--vl-shadow-soft);
}
.fotogrid img{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:cover;
  transition:transform .4s cubic-bezier(.22,.61,.36,1)}
.fotogrid a:hover img,.fotogrid a:focus-visible img{transform:scale(1.05)}
.fotogrid .fotonr{
  position:absolute;left:.5rem;bottom:.5rem;line-height:1;
  font-size:.65rem;font-weight:600;letter-spacing:.1em;
  background:rgba(6,53,103,.82);color:#fff;border-radius:4px;padding:.25rem .45rem;
}
.fotohint{margin-block-start:1.6rem;font-size:.95rem;line-height:1.7;color:var(--vl-grey);max-width:70ch}

/* Dezenter Verweis auf die offiziellen PDF-Listen der Zeitnahme (T-1226).
   Bewusst als Fußnote unter der Liste — das Portal bleibt der Haupteinstieg. */
.pdfhinweis{
  display:flex;align-items:center;gap:.5rem;
  margin-block-start:1.8rem;font-size:.9rem;color:var(--vl-grey);
}
.pdfhinweis svg{flex:0 0 auto;color:var(--vl-blue)}
.pdfhinweis a{color:var(--vl-blue);text-decoration:underline}
.pdfhinweis a:hover,.pdfhinweis a:focus-visible{color:var(--vl-green-dark)}
/* Zweite Fußnote (Rückblick) rückt an die erste heran, statt den Abstand
   nach der Liste ein zweites Mal aufzumachen. */
.pdfhinweis + .pdfhinweis{margin-block-start:.55rem}

/* ---------- Lightbox ---------- */
.lightbox{
  position:fixed;inset:0;z-index:200;background:#04203f;
  display:flex;align-items:center;justify-content:center;padding:4vh 4vw;cursor:zoom-out;
}
.lightbox[hidden]{display:none}
.lightbox img{max-width:100%;max-height:92vh;border-radius:var(--vl-radius);cursor:zoom-in}
.lightbox-close{
  position:absolute;top:.9rem;right:.9rem;
  width:2.75rem;height:2.75rem;padding:0;
  display:inline-flex;align-items:center;justify-content:center;
  font:inherit;font-size:1.6rem;line-height:1;color:#fff;cursor:pointer;
  background:rgba(6,53,103,.72);border:1px solid rgba(255,255,255,.3);border-radius:var(--vl-radius-sm);
  transition:background-color .2s ease,border-color .2s ease;
}
.lightbox-close:hover{background:rgba(255,255,255,.16);border-color:rgba(255,255,255,.6)}
/* T-1226/G5: bewusst `:focus`, nicht nur `:focus-visible`. Die Lightbox setzt
   den Fokus per JS auf diesen Knopf — nach einem Mausklick trifft
   `:focus-visible` dann nicht zu und der Knopf war fokussiert, ohne dass man
   es sah (Tastatur-Nutzer wussten nicht, wo sie stehen). Der Ring ist hier
   hellgrün statt blau wie sonst: der Lightbox-Grund ist #04203f, Blau (#094891)
   käme darauf nur auf 1,8:1 und wäre praktisch unsichtbar. */
.lightbox-close:focus{outline:3px solid var(--vl-green-light);outline-offset:3px}

/* ---------- Fußzeile ---------- */
.site-foot{background:var(--vl-blue);color:rgba(255,255,255,.9);margin-block-start:auto}
.site-foot__inner{
  display:flex;justify-content:space-between;align-items:center;gap:1.25rem;flex-wrap:wrap;
  padding-block:clamp(2rem,4vw,2.8rem);
}
.site-foot__inner p{font-size:.9rem;line-height:1.7;max-width:62ch;margin:0}
.site-foot a{color:#fff;font-weight:600}
.site-foot__note{font-size:.7rem;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--vl-green-light)}

/* ---------- Fehlerseite ---------- */
.errorpage{
  min-height:100vh;display:flex;align-items:center;
  background:var(--vl-blue);color:rgba(255,255,255,.92);padding-block:var(--vl-pad);
}
.errorpage h1{color:#fff;font-size:clamp(2rem,6vw,3.4rem);margin:0 0 1rem}
.errorpage p{font-size:1.1rem;line-height:1.7;max-width:48ch}
.errorpage img{width:210px;margin-block-end:2rem;background:#fff;padding:.6rem .9rem;border-radius:var(--vl-radius)}

/* ==========================================================================
   Kompatibilität /intern/ — die Basic-Auth-Werkzeuge (Teilnehmer-Karte,
   Detailseite) wurden bewusst NICHT umgebaut, benutzen aber dieses
   Stylesheet. Die folgenden Regeln halten ihr Alt-Markup lesbar; für das
   öffentliche Portal sind sie ohne Wirkung.
   ========================================================================== */
body > header:not(.site-head){
  display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap;
  background:#fff;border-block-end:1px solid var(--vl-rule);
  padding:.85rem clamp(20px,4vw,40px);
}
header .brand{
  display:flex;align-items:center;gap:.7rem;text-decoration:none;
  font-family:var(--vl-display);font-weight:600;font-size:1.05rem;color:var(--vl-blue);
}
header .brand small{
  display:block;margin-block-start:.15rem;
  font-family:var(--vl-body);font-weight:600;font-size:.64rem;letter-spacing:.14em;
  text-transform:uppercase;color:var(--vl-grey);
}
header .brand .mark{display:inline-flex;gap:3px}
header .brand .mark i{width:9px;height:9px;border-radius:50%;background:var(--vl-green);display:inline-block}
header .brand .mark i:nth-child(2){background:var(--vl-blue-soft)}
header .brand .mark i:nth-child(3){background:var(--vl-blue)}
header .back{font-size:.85rem;font-weight:600;color:var(--vl-blue);text-decoration:none}
header .back:hover{color:var(--vl-green-dark)}
body > header:not(.site-head) ~ .wrap{padding-block:clamp(1.6rem,4vw,2.6rem) 4rem}
.title-row{display:flex;align-items:flex-end;justify-content:space-between;gap:1.5rem;flex-wrap:wrap}
.title-row h1{font-size:clamp(1.8rem,5vw,2.6rem)}
.chips{display:flex;gap:.5rem;flex-wrap:wrap}
.chip{
  display:inline-flex;align-items:center;cursor:pointer;user-select:none;
  font-size:.82rem;font-weight:600;line-height:1.25;
  padding:.5rem .9rem;border-radius:var(--vl-radius-sm);
  border:2px solid var(--vl-rule);background:#fff;color:var(--vl-blue);
  transition:background-color .2s ease,border-color .2s ease,color .2s ease;
}
.chip:hover{border-color:var(--vl-blue)}
.chip.active{background:var(--vl-blue);border-color:var(--vl-blue);color:#fff}
.intern-badge{
  font-size:.64rem;font-weight:700;letter-spacing:.14em;text-transform:uppercase;
  color:#fff;background:var(--vl-blue);padding:.3rem .7rem;border-radius:var(--vl-radius-sm);
}

/* ---------- Bewegung ---------- */
@keyframes vl-rise{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}
.hero__inner > *{animation:vl-rise .7s cubic-bezier(.22,.61,.36,1) both}
.hero__inner > *:nth-child(2){animation-delay:.08s}
.hero__inner > *:nth-child(3){animation-delay:.16s}
.hero__inner > *:nth-child(4){animation-delay:.24s}
.hero__inner > *:nth-child(5){animation-delay:.32s}
.hero__inner > *:nth-child(6){animation-delay:.40s}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation:none!important;transition:none!important}
}

/* ==========================================================================
   Mobil
   ========================================================================== */
@media (max-width:900px){
  .site-head__logo img{width:150px}
  .stats{grid-template-columns:1fr 1fr}
  .stats > div:nth-child(3){grid-column:1/-1;border-inline-start:0;padding-inline-start:0;
    border-block-start:1px solid rgba(255,255,255,.22);margin-block-start:1rem}
}
@media (max-width:640px){
  .site-head__inner{min-height:60px;gap:.75rem}
  .site-head__logo img{width:124px}
  .site-head__nav{gap:.9rem}
  /* Kein Platz für zwei Links: der Weg zurück zur Übersicht steckt auf den
     Unterseiten ohnehin im Brotkrumen-Pfad. */
  .site-head__nav a:not(.is-home){display:none}
  .site-head__nav a.is-home{font-size:.72rem;overflow-wrap:anywhere}
  .cta-row{flex-direction:column;align-items:stretch}
  .cta-row .btn{width:100%}
  /* In der Spalten-Richtung wirkt flex-basis auf die HÖHE — die Suchzeile
     bekommt deshalb ausdrücklich wieder ihre automatische Höhe. */
  .fotoform{flex-direction:column}
  .fotoform .search{flex:0 0 auto;width:100%}
  .fotoform .btn{width:100%}
  .stats{grid-template-columns:1fr 1fr;gap:0}
  .stats > div{padding:1.1rem .8rem 0}
  .stats .k{font-size:.65rem;letter-spacing:.1em}
  .event{padding:1.25rem 1.25rem 1rem}
  .entry{padding:1.35rem 1.25rem 1.1rem}
  .site-foot__inner{flex-direction:column;align-items:flex-start;gap:.6rem}

  /* --- Ergebnisliste: aus jeder Zeile wird eine Karte ---
     Gilt nur für die öffentliche Liste (.results); die interne
     Teilnehmer-Tabelle behält ihr horizontales Scrollen. */
  .results-card .tablecard{background:transparent;border:0;box-shadow:none;overflow:visible}
  .results-card .table-responsive{overflow:visible}
  table.results thead{position:absolute;width:1px;height:1px;overflow:hidden;
    clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}
  table.results,table.results tbody,table.results tr,table.results td{display:block;width:auto}
  table.results tr{
    display:flex;flex-wrap:wrap;align-items:center;gap:.3rem .7rem;
    background:#fff;border:1px solid var(--vl-rule-blue);border-radius:var(--vl-radius);
    box-shadow:var(--vl-shadow);padding:.85rem 1rem;margin-block-end:.7rem;
  }
  table.results tbody tr:nth-child(even){background:#fff}
  table.results tbody tr:hover{background:#fff}
  /* display:flex oben wuerde das hidden-Attribut sonst uebersteuern. */
  table.results tbody tr[hidden]{display:none}
  table.results td{padding:0;border:0}
  /* Die Leerzeile bleibt eine schlichte Karte ohne Spalten-Choreografie. */
  table.results tr.leerzeile{display:block}
  table.results tr.leerzeile td{padding:1.5rem .5rem;text-align:center}
  /* Zeile 1: Platz · Name · Zeit */
  table.results td.pl{order:10;width:auto}
  table.results td.name{order:20;flex:1 1 auto;font-size:1.05rem}
  table.results td.time{order:30;margin-inline-start:auto;font-size:1.05rem}
  table.results tr::before{content:"";order:35;flex-basis:100%;height:0}
  /* Zeile 2: Startnummer · Disziplin · Altersklasse · Platz AK */
  table.results td.startnr{order:40;font-size:.85rem;font-weight:600;color:var(--vl-blue)}
  table.results td.ak{order:41;font-size:.85rem}
  table.results td.ak:empty{display:none}
  table.results td.startnr + td.ak,
  table.results td.ak + td.ak{border-inline-start:1px solid var(--vl-rule);padding-inline-start:.7rem}
  table.results td[data-label]::before{content:attr(data-label) " ";color:var(--vl-grey)}
  /* Zeile 3: Aktionen */
  table.results tr::after{content:"";order:55;flex-basis:100%;height:0}
  table.results td.cert{order:60;margin-block-start:.35rem}
  table.results td.fotos{order:61;margin-block-start:.35rem}
  /* Der Gedankenstrich „kein Foto" braucht auf der Karte keinen Platz. */
  table.results td.fotos > .ak{display:none}
}
