/* Onest (SIL OFL, lokal gehostet – keine Verbindung zu Google) */
@font-face { font-family: "Onest"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/onest-latin-700.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: "Onest"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/onest-latin-ext-700.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; }

/* =====================================================================
   Leipziger Triathlon – Website
   Farben angelehnt an die bisherige Seite: Nachtblau, Triathlon-Blau,
   Gelbgruen und das Gelb der Leipziger Gruppe.
   ===================================================================== */

:root {
  --navy: #0e203a;
  --navy-2: #16304f;
  --blue: #2980b9;
  --blue-dark: #1d6293;
  --lime: #e0e801;
  --sun: #f4be00;
  --ink: #1b2532;
  --muted: #5d6b7b;
  --line: #dde4ec;
  --bg: #f4f7fa;
  --white: #fff;

  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: "Onest", var(--font);
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgb(14 32 58 / .06), 0 8px 24px rgb(14 32 58 / .08);
  --shadow-lg: 0 18px 50px rgb(14 32 58 / .18);
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--white); }
img { max-width: 100%; height: auto; }
a { color: var(--blue-dark); text-underline-offset: .18em; }
a:hover { color: var(--blue); }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -.01em; color: var(--navy); margin: 0 0 .5em; overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; } /* lange Woerter wie "Sonnenwendschwimmen" am Handy trennen */
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; letter-spacing: -.02em; line-height: 1.12; }
h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.4rem); }
h2 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.section { padding-block: clamp(40px, 6vw, 80px); }
.section-news { padding-top: clamp(28px, 4vw, 48px); }
.section-top { margin-top: 48px; }
.section-dark { background: var(--navy); color: #dfe8f3; }
.section-dark h2 { color: var(--white); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-title { margin-top: 2em; }
.section > .section-title:first-child { margin-top: 0; }
.eyebrow, .kicker { font-family: var(--font); line-height: 1.4; text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; }
.kicker { color: var(--lime); margin-bottom: .6em; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--sun); color: var(--navy); padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 700; }
.skip-link:focus { top: 12px; }
main:focus { outline: none; }

/* ---------- Buttons & Links */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 46px; padding: 10px 22px; border-radius: 999px; border: 2px solid transparent; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; transition: transform .15s, background .15s, color .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-dark); color: var(--white); }
.btn-accent { background: var(--lime); color: var(--navy); }
.btn-accent:hover { background: #f0f73a; color: var(--navy); }
.btn-light { background: var(--white); color: var(--navy); }
.btn-ghost { border-color: rgb(255 255 255 / .7); color: var(--white); }
.btn-ghost:hover { background: rgb(255 255 255 / .12); color: var(--white); }
.btn-small { min-height: 40px; padding: 6px 16px; background: var(--blue); color: var(--white); }
.link-arrow, .more, .link-back { font-weight: 700; text-decoration: none; }
.link-arrow::after, .more::after { content: " →"; }
.link-back::before { content: "← "; }

/* ---------- Sponsor-Leiste & Kopf */
/* Sponsorenleiste wie bisher: 70 px hoch, Text + Logo der Leipziger Gruppe rechts */
.sponsor-bar { background: var(--sun); color: #002b5c; height: 70px; }
.sponsor-bar-inner { display: flex; justify-content: flex-end; align-items: center; gap: 24px; height: 100%; }
.sponsor-bar p { margin: 0; padding-top: 18px; font-size: .95rem; font-weight: 500; line-height: 1.2; }
.sponsor-bar a { display: block; flex-shrink: 0; }
.sponsor-bar img { display: block; height: 42px; width: auto; }
@media (max-width: 768px) {
  .sponsor-bar-inner { gap: 12px; }
  .sponsor-bar p { font-size: 10px; padding-top: 14px; }
  .sponsor-bar img { height: 28px; }
}

.site-header { position: sticky; top: 0; z-index: 50; background: rgb(14 32 58 / .97); backdrop-filter: saturate(1.3) blur(8px); box-shadow: 0 1px 0 rgb(255 255 255 / .06); }
/* Kopf wie bisher: Logo 106x112 oben links, Menue unten rechts; beim Scrollen kompakt */
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 142px; padding-block: 15px 15px; transition: min-height .25s, padding .25s; }
.brand { display: block; flex-shrink: 0; line-height: 0; }
.brand img { height: 112px; width: auto; transition: height .25s; }
@media (min-width: 1061px) {
  .site-header .main-nav { align-self: flex-end; padding-bottom: 2px; transition: padding .25s; }
  .site-header.is-compact .header-inner { min-height: var(--header-h); padding-block: 8px; }
  .site-header.is-compact .brand img { height: 58px; }
  .site-header.is-compact .main-nav { align-self: center; padding-bottom: 0; }
}

.main-nav { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.main-nav > ul { display: flex; list-style: none; margin: 0; padding: 0; gap: 2px; }
.main-nav li { position: relative; }
.main-nav a { display: block; padding: 10px 12px; color: #e9eef4; text-decoration: none; font-weight: 600; font-size: .95rem; border-radius: var(--radius-sm); }
.main-nav > ul > li > a:hover, .main-nav > ul > li.is-active > a { color: var(--lime); }
.main-nav > ul > li.is-active > a { box-shadow: inset 0 -3px 0 var(--lime); border-radius: 0; }
.sub-nav { position: absolute; top: 100%; left: 0; min-width: 240px; list-style: none; margin: 0; padding: 8px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s; }
.sub-nav a { color: var(--ink); font-weight: 500; }
.sub-nav a:hover { background: var(--bg); color: var(--blue-dark); }
.sub-nav a { white-space: nowrap; }
.sub-nav a[aria-current="page"] { background: var(--bg); color: var(--blue-dark); font-weight: 700; }
.has-sub:hover > .sub-nav, .has-sub:focus-within > .sub-nav, .has-sub.is-open > .sub-nav { opacity: 1; visibility: visible; transform: none; }
.main-nav > ul > li:nth-last-child(-n+2) > .sub-nav { left: auto; right: 0; } /* hintere Menuepunkte (Ergebnisse) nach links aufklappen, sonst ragt das Menue ueber den Rand */
.sub-toggle { display: none; }
.nav-search input { width: 190px; height: 38px; border-radius: 999px; border: 1px solid rgb(255 255 255 / .25); background: rgb(255 255 255 / .08); color: var(--white); padding: 0 14px; font: inherit; font-size: .9rem; }
.nav-search input::placeholder { color: #aebdcd; }
.nav-search input:focus { background: var(--white); color: var(--ink); outline: none; }
.nav-toggle { display: none; }

@media (max-width: 1060px) {
  .header-inner { min-height: var(--header-h); padding-block: 8px; }
  .brand img { height: 60px; }
  .nav-toggle { display: grid; place-items: center; margin-left: auto; width: 48px; height: 48px; border: 0; background: transparent; cursor: pointer; }
  .nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after { display: block; width: 26px; height: 3px; border-radius: 2px; background: var(--white); position: relative; transition: .2s; }
  .nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bar::before { top: -8px; } .nav-toggle-bar::after { top: 8px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { top: 0; transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { top: 0; transform: rotate(-45deg); }
  /* kein backdrop-filter am Kopf: er macht den Kopf zum Bezugsrahmen fuer das fixierte Menue (Menue waere nur so hoch wie der Kopf) */
  .site-header { backdrop-filter: none; background: var(--navy); }
  .main-nav { position: fixed; inset: var(--nav-top, var(--header-h)) 0 0 0; flex-direction: column; align-items: stretch; gap: 16px; padding: 16px var(--gutter) 40px; background: var(--navy); overflow-y: auto; display: none; }
  .main-nav.is-open { display: flex; }
  .main-nav > ul { flex-direction: column; }
  .main-nav > ul > li { display: grid; grid-template-columns: 1fr auto; border-bottom: 1px solid rgb(255 255 255 / .08); }
  .main-nav a { padding: 14px 4px; font-size: 1.1rem; }
  .main-nav > ul > li.is-active > a { box-shadow: none; }
  .sub-toggle { display: block; width: 48px; border: 0; background: transparent; color: var(--white); cursor: pointer; }
  .sub-toggle::before { content: "▾"; font-size: 1.1rem; display: inline-block; transition: .2s; }
  .sub-toggle[aria-expanded="true"]::before { transform: rotate(180deg); }
  .sub-nav { position: static; grid-column: 1 / -1; box-shadow: none; background: transparent; padding: 0 0 8px 12px; display: none; opacity: 1; visibility: visible; transform: none; }
  .has-sub:hover > .sub-nav { display: none; }
  .has-sub.is-open > .sub-nav { display: block; }
  .sub-nav a { color: #c9d6e6; }
  .sub-nav a:hover { background: transparent; color: var(--lime); }
  .sub-nav a { white-space: normal; }
  .sub-nav a[aria-current="page"] { background: transparent; color: var(--lime); }
  .nav-search input { width: 100%; height: 46px; }
  body.nav-open { overflow: hidden; }
}

/* ---------- Hero (Startseite) */
.hero { position: relative; min-height: clamp(300px, 44vh, 440px); display: grid; align-items: end; color: var(--white); background: var(--navy) var(--bg) center / cover no-repeat; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(14 32 58 / .15) 0%, rgb(14 32 58 / .35) 45%, rgb(14 32 58 / .9) 100%); }
.hero-inner { padding-block: 40px; display: grid; gap: 20px; align-items: end; }
.hero-text { display: grid; gap: 6px; }
@media (min-width: 900px) { .hero-inner { grid-template-columns: 1fr auto; gap: 40px; } .hero-next { margin-top: 0; min-width: 260px; } }
.hero h1 { color: var(--white); font-size: clamp(2.2rem, 1.3rem + 3.6vw, 4rem); text-transform: uppercase; margin: 0; text-shadow: 0 2px 30px rgb(0 0 0 / .3); }
.hero-sub { font-size: clamp(1.05rem, 1rem + .4vw, 1.3rem); max-width: 34em; text-wrap: balance; color: #e6edf5; }
.hero-next { justify-self: start; display: flex; align-items: center; gap: 16px; margin-top: 4px; padding: 14px 22px 14px 14px; border-radius: var(--radius); background: rgb(255 255 255 / .1); border: 1px solid rgb(255 255 255 / .25); backdrop-filter: blur(10px); color: var(--white); text-decoration: none; transition: background .15s, transform .15s; }
.hero-next:not(.has-cal) { padding-left: 22px; }
.hero-next-text { display: grid; gap: 2px; }
/* Kalenderblatt: Monat oben (gelb), Tag gross */
.hero-cal { flex-shrink: 0; display: grid; width: 64px; border-radius: 10px; overflow: hidden; text-align: center; background: var(--white); box-shadow: 0 6px 18px rgb(0 0 0 / .25); }
.hero-cal span { background: var(--lime); color: var(--navy); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; padding: 3px 0; }
.hero-cal strong { font-family: var(--font-head); font-size: 2rem; line-height: 1; color: var(--navy); padding: 6px 0 8px; }
.hero-next:hover { transform: translateY(-2px); }
.hero-next:hover { background: rgb(255 255 255 / .18); color: var(--white); }
.hero-next-label { text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; color: var(--lime); font-weight: 700; }
.hero-next strong { font-size: 1.25rem; }

/* ---------- Seitenkopf */
.page-header, .event-hero { position: relative; color: var(--white); background: var(--navy) var(--bg) center / cover no-repeat; isolation: isolate; }
.page-header::before, .event-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgb(14 32 58 / .95) 0%, rgb(14 32 58 / .78) 50%, rgb(14 32 58 / .45) 100%); }
.page-header .container { padding-block: clamp(36px, 6vw, 72px); }
.page-header h1, .event-hero h1 { color: var(--white); max-width: 26ch; }
.page-header h1 { font-size: clamp(1.8rem, 1.2rem + 2.4vw, 3rem); max-width: 36ch; } /* Platz fuer "Ergebnisse - Sonnenwendschwimmen" in einer Zeile */
.page-sub { font-size: 1.15rem; color: #dbe5f0; max-width: 60ch; margin: 0; }
.event-hero .container { padding-block: clamp(48px, 8vw, 110px); }
.event-hero .event-actions { margin-top: 24px; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 18px; font-size: .85rem; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.breadcrumb a { color: #c9d6e6; text-decoration: none; }
.breadcrumb a:hover { color: var(--lime); }
.breadcrumb span { color: var(--white); }

/* ---------- Karten */
.card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.card-media { aspect-ratio: 16 / 10; background: var(--navy-2); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.card:hover .card-media img { transform: scale(1.04); }
.card-media img.is-placeholder { object-fit: contain; padding: 18%; opacity: .5; }
.card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-body time { font-size: .8rem; font-weight: 700; color: var(--blue); text-transform: uppercase; letter-spacing: .08em; }
.card-body h3 { margin: 0; font-size: 1.12rem; }
.card-body p { color: var(--muted); font-size: .95rem; margin: 0; }
.card-body .more { margin-top: auto; padding-top: 10px; font-size: .9rem; }

.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 24px; }
.news-card--large { grid-column: 1 / -1; }
.news-more { display: flex; justify-content: center; margin-top: 32px; }
.news-more .btn[aria-busy="true"] { opacity: .7; cursor: progress; }
.news-card.is-new { animation: news-in .45s ease both; }
@keyframes news-in { from { opacity: 0; transform: translateY(12px); } }
@media (prefers-reduced-motion: reduce) { .news-card.is-new { animation: none; } }
@media (min-width: 900px) {
  .news-card--large .card-link { display: grid; grid-template-columns: 1.35fr 1fr; }
  .news-card--large .card-media { aspect-ratio: auto; min-height: 320px; }
  .news-card--large .card-body { padding: 36px; justify-content: center; }
  .news-card--large h3 { font-size: 1.7rem; }
  .news-card--large p { font-size: 1.05rem; }
}

/* ---------- Veranstaltungen */
.events-teaser { background: var(--bg); }
.event-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 24px; }
.event-card { position: relative; min-height: 340px; display: flex; align-items: end; border-radius: var(--radius); overflow: hidden; color: var(--white); background: var(--navy) var(--bg) center / cover; box-shadow: var(--shadow); isolation: isolate; }
.event-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(14 32 58 / 0) 20%, rgb(14 32 58 / .92) 85%); transition: background .2s; }
.event-card:hover::before { background: linear-gradient(180deg, rgb(14 32 58 / .1) 0%, rgb(14 32 58 / .95) 75%); }
.event-card-body { padding: 24px; }
.event-card h2, .event-card h3 { color: var(--white); margin: 0 0 .3em; font-size: 1.5rem; }
.event-card h2 a, .event-card h3 a { color: inherit; text-decoration: none; }
.event-card p { color: #dbe5f0; font-size: .95rem; }
.event-date, .event-card .event-date { display: inline-block; background: var(--lime); color: var(--navy); font-weight: 800; padding: 3px 10px; border-radius: 6px; font-size: .85rem; margin-bottom: 10px; }
.event-date--big { font-size: 1rem; padding: 6px 14px; }
.race-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 20px; margin: 1.6em 0 2em; }
.race-grid .event-card { min-height: 380px; }
.race-grid .event-card::before { background: linear-gradient(180deg, rgb(14 32 58 / .05) 0%, rgb(14 32 58 / .55) 35%, rgb(14 32 58 / .95) 62%); }
.race-grid .event-card:hover::before { background: linear-gradient(180deg, rgb(14 32 58 / .15) 0%, rgb(14 32 58 / .65) 30%, rgb(14 32 58 / .97) 58%); }
.race-grid .event-card h3 { margin-top: 0; font-size: 1.9rem; }
.prose figure { margin: 1.6em 0; }
.prose figure img { display: block; width: 100%; height: auto; }
.prose figcaption { font-size: .85rem; color: #6b7889; margin-top: 6px; }
.event-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Ergebnisse auf der Startseite */
.results-teaser { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; }
@media (min-width: 900px) { .results-teaser { grid-template-columns: 1.1fr 1fr; } }
.search-big { display: flex; gap: 10px; flex-wrap: wrap; }
.search-big input, .search-small input { flex: 1; min-width: 200px; height: 52px; border-radius: 999px; border: 2px solid transparent; padding: 0 22px; font: inherit; }
.search-big--light { display: block; max-width: 720px; margin-bottom: 40px; }
.search-big--light label { display: block; font-weight: 700; margin-bottom: 8px; color: var(--navy); }
.search-row { display: flex; gap: 10px; flex-wrap: wrap; }
.search-big--light input { border-color: var(--line); background: var(--bg); }
.search-big--light input:focus { border-color: var(--blue); outline: none; background: var(--white); }
.latest-results { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.latest-results a { display: flex; gap: 16px; align-items: center; padding: 14px 18px; border-radius: var(--radius-sm); background: rgb(255 255 255 / .06); color: var(--white); text-decoration: none; border-left: 4px solid var(--blue); transition: background .15s; }
.latest-results a:hover { background: rgb(255 255 255 / .12); border-left-color: var(--lime); }
.latest-date { font-variant-numeric: tabular-nums; color: var(--lime); font-weight: 700; font-size: .9rem; }

/* ---------- Inhaltsseiten */
.layout-article { display: grid; gap: 48px; grid-template-columns: minmax(0, 1fr); } /* minmax(0,…): breite Tabellen/Leisten duerfen die Spalte am Handy nicht aufblaehen */
@media (min-width: 1000px) { .layout-article { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; } }
.aside { display: grid; gap: 20px; }
.aside-title { font-size: 1.1rem; }
.prose { max-width: 75ch; overflow-wrap: break-word; }
.prose a, .info-box a, .notice a { overflow-wrap: anywhere; }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose img { border-radius: var(--radius-sm); }
.prose .bild-links { float: left; margin: 4px 24px 12px 0; max-width: 45%; }
.prose .bild-rechts { float: right; margin: 4px 0 12px 24px; max-width: 45%; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .3em; }
/* Tabellen im Redaktionstext: kompakt, bei Bedarf seitlich scrollbar statt ueber den Rand */
.prose table { border-collapse: collapse; width: 100%; max-width: 100%; margin: 1.2em 0; font-size: .9rem; line-height: 1.4; display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.prose th, .prose td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose thead th { background: var(--navy); color: var(--white); font-weight: 700; white-space: nowrap; }
.prose tbody tr:nth-child(even) td { background: #f6f8fb; }
.prose td p { margin: 0; }
/* Platzierungen 1-3 als Medaille (Klassen platz_1..3 aus dem alten CMS) */
.prose td.platz_1, .prose td.platz_2, .prose td.platz_3 { width: 1%; padding-right: 0; font-size: 0; }
.prose td.platz_1::before, .prose td.platz_2::before, .prose td.platz_3::before { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font: 800 .75rem/1 var(--font); color: #3b2a00; box-shadow: inset 0 -2px 0 rgb(0 0 0 / .15); }
.prose td.platz_1::before { content: "1"; background: linear-gradient(145deg, #ffe680, #e0b100); }
.prose td.platz_2::before { content: "2"; background: linear-gradient(145deg, #f1f3f5, #b4bcc6); color: #2c3540; }
.prose td.platz_3::before { content: "3"; background: linear-gradient(145deg, #f0c39a, #c27a3c); color: #3a1f08; }
.prose tbody td[colspan] { font-weight: 700; color: var(--navy); }
/* Bestenliste aus der Ergebnis-DB (Platzhalter [top3 …]) */
.top3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 14px; margin: 1.4em 0 .6em; }
.top3-race { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow); overflow: hidden; }
.prose .top3-race h3 { margin: 0; padding: 10px 14px; background: var(--navy); color: var(--white); font-size: 1.05rem; }
.prose .top3-race h4 { margin: 0; padding: 8px 14px 2px; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--blue-dark); }
.prose .top3-list { list-style: none; margin: 0; padding: 0 0 6px; }
.prose .top3-list li { display: grid; grid-template-columns: 24px 1fr auto; gap: 10px; align-items: start; margin: 0; padding: 7px 14px; font-size: .9rem; line-height: 1.3; }
.prose .top3-list li + li { border-top: 1px solid var(--line); }
.top3-name a { font-weight: 700; color: var(--navy); text-decoration: none; }
.top3-name a:hover { text-decoration: underline; }
.top3-name small { display: block; color: #6b7889; font-size: .8rem; }
.top3-time { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.medal { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font: 800 .75rem/1 var(--font); background: var(--bg); color: var(--navy); box-shadow: inset 0 -2px 0 rgb(0 0 0 / .12); }
.medal-1 { background: linear-gradient(145deg, #ffe680, #e0b100); color: #3b2a00; }
.medal-2 { background: linear-gradient(145deg, #f1f3f5, #b4bcc6); color: #2c3540; }
.medal-3 { background: linear-gradient(145deg, #f0c39a, #c27a3c); color: #3a1f08; }
.prose .top3-more { margin-top: 0; font-size: .9rem; }
/* alte CMS-Tabellen (class="responsive") haben links eine leere Abstandsspalte */
.prose table.responsive th:first-child, .prose table.responsive td:first-child { display: none; }
/* Veranstaltungsuebersicht (Tabelle class="events") */
.prose-wide { max-width: none; }
.events-overview table.events { display: table; overflow: visible; margin: 0; border-collapse: separate; border-spacing: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); font-size: 1rem; }
.events-overview table.events th:first-child, .events-overview table.events td:first-child { display: none; }
.events-overview table.events thead th { background: var(--navy); padding: 14px 16px; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; }
.events-overview table.events thead th:nth-child(2) { border-top-left-radius: calc(var(--radius) - 1px); }
.events-overview table.events thead th:last-child { border-top-right-radius: calc(var(--radius) - 1px); }
.events-overview table.events td { padding: 16px; vertical-align: middle; }
.events-overview table.events tbody tr:last-child td { border-bottom: 0; }
.events-overview table.events tbody tr { transition: background .15s; }
.events-overview table.events tbody tr:hover { background: #f4f7fb; }
.events-overview table.events td p { margin: 0; }
/* Vorschaubild: quadratisch, fuellt die ganze Zeilenhoehe */
.events-overview table.events td:nth-child(2) { position: relative; width: 112px; height: 112px; padding: 0; }
.events-overview table.events td:nth-child(2) img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0; margin: 0; }
.events-overview table.events tbody tr:last-child td:nth-child(2) img { border-bottom-left-radius: calc(var(--radius) - 1px); }
.events-overview table.events td:nth-child(3) { padding-left: 20px; }
.events-overview table.events td:nth-child(3) { color: var(--ink); }
.events-overview table.events td:nth-child(3) a { font-weight: 800; font-size: 1.08rem; color: var(--navy); text-decoration: none; }
.events-overview table.events td:nth-child(3) a:hover { text-decoration: underline; }
.events-overview table.events td:nth-child(3) strong { color: var(--blue-dark, var(--navy)); }
.events-overview table.events td:nth-child(4) { font-weight: 700; color: var(--navy); white-space: nowrap; }
.events-overview table.events td:nth-child(7) { white-space: nowrap; font-weight: 700; }
.events-overview table.events td:nth-child(6) a { display: inline-block; padding: 6px 16px; border-radius: 999px; background: var(--lime); color: var(--navy); font-weight: 800; text-decoration: none; }
.events-overview table.events td:nth-child(6) a:hover { background: var(--navy); color: var(--white); }
@media (max-width: 900px) {
  .events-overview table.events, .events-overview table.events tbody { display: block; background: none; border: 0; box-shadow: none; }
  .events-overview table.events thead { display: none; }
  .events-overview table.events tbody { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
  .events-overview table.events tr { display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 14px; padding: 16px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
  .events-overview table.events td { display: block; padding: 0; border: 0; white-space: normal; }
  .events-overview table.events td:nth-child(4), .events-overview table.events td:nth-child(7) { white-space: normal; overflow-wrap: anywhere; }
  .events-overview table.events td:first-child { display: none; }
  .events-overview table.events td:nth-child(2) { position: static; width: auto; height: auto; grid-row: span 5; }
  .events-overview table.events td:nth-child(2) img, .events-overview table.events tbody tr:last-child td:nth-child(2) img { position: static; width: 64px; height: 64px; border-radius: var(--radius-sm); }
  .events-overview table.events td:nth-child(3) { padding-left: 0; }
  .events-overview table.events td:nth-child(3) { margin-bottom: 8px; }
  .events-overview table.events td:nth-child(n+4) { display: grid; grid-template-columns: 6.5em 1fr; gap: 8px; padding: 4px 0; border-top: 1px solid var(--line); font-size: .95rem; }
  .events-overview table.events td:nth-child(n+4)::before { font-weight: 600; color: #6b7889; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; padding-top: 2px; }
  .events-overview table.events td:nth-child(4)::before { content: "Wann"; }
  .events-overview table.events td:nth-child(5)::before { content: "Wo"; }
  .events-overview table.events td:nth-child(6)::before { content: "Anmeldung"; }
  .events-overview table.events td:nth-child(7)::before { content: "Start"; }
  .events-overview table.events td:nth-child(6) a { justify-self: start; padding: 3px 14px; }
}
.prose blockquote { margin: 1.5em 0; padding: 12px 24px; border-left: 4px solid var(--lime); background: var(--bg); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--radius-sm); }
/* Hinweis-/Warnkaesten: Symbol im Kreis statt Rand links */
.prose .hinweis, .prose .warnung, .notice { position: relative; padding: 16px 20px 16px 60px; border-radius: var(--radius-sm); background: #eaf4fb; --icon-bg: var(--blue); --icon-fg: var(--white); --icon: "i"; }
.prose .hinweis::before, .prose .warnung::before, .notice::before { content: var(--icon); position: absolute; left: 18px; top: 15px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--icon-bg); color: var(--icon-fg); font: 800 1rem/1 var(--font-head); box-shadow: 0 2px 6px rgb(14 32 58 / .15); }
.prose .warnung { background: #fff6d6; --icon-bg: var(--sun); --icon-fg: var(--navy); --icon: "!"; }
.prose .eckdaten { list-style: none; padding: 0; margin: 0 0 1.6em; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.prose .eckdaten li { margin: 0; padding: 14px 12px; background: var(--navy); color: #dbe5f0; border-radius: var(--radius-sm); font-size: .85rem; line-height: 1.3; text-align: center; }
.prose .eckdaten strong { display: block; font-family: var(--font-head); font-size: 1.55rem; line-height: 1.1; color: var(--lime); margin-bottom: 2px; }
.prose .accordion h3 { font-size: 1.1rem; margin-top: 1.2em; }
.prose .accordion h3:first-child { margin-top: 0; }
.prose a.button { display: inline-block; padding: 10px 20px; border-radius: 999px; background: var(--blue); color: var(--white); text-decoration: none; font-weight: 700; }
.article-image { margin: 0 0 28px; }
.article-image img { width: 100%; border-radius: var(--radius); cursor: zoom-in; }
.link-list { list-style: none; padding: 0; display: grid; gap: 8px; margin: 2em 0; }
.link-list a { display: block; padding: 12px 16px; border-radius: var(--radius-sm); background: var(--bg); font-weight: 600; text-decoration: none; }
.link-list a::after { content: " →"; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 1.5em 0 1.2em; }
.chips a, .chips button { display: inline-block; padding: 7px 14px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); color: var(--navy); font: inherit; font-size: .88rem; font-weight: 600; text-decoration: none; cursor: pointer; }
.chips a:hover, .chips button:hover { border-color: var(--blue); color: var(--blue-dark); }
.chips button[aria-pressed="true"] { background: var(--navy); color: var(--white); border-color: var(--navy); }

.accordion { display: grid; gap: 10px; margin-top: 1.5em; }
/* Inhaltsverzeichnis der aufgeklappten Abschnitte */
/* Sprungleiste zu den Abschnitten: klebt beim Scrollen unter dem Menue, aktueller Abschnitt hervorgehoben */
.jumpbar { position: sticky; top: var(--header-h); z-index: 20; margin: 2em 0 1.2em; background: rgb(255 255 255 / .96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.jumpbar.is-stuck { box-shadow: 0 8px 16px -12px rgb(14 32 58 / .35); }
.jumpbar-track { display: flex; gap: 6px; padding: 10px 0; overflow-x: auto; scrollbar-width: none; scroll-behavior: smooth; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent); }
.jumpbar-track::-webkit-scrollbar { display: none; }
.prose .jumpbar a { flex: none; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--navy); font-size: .86rem; font-weight: 600; line-height: 1.3; text-decoration: none; white-space: nowrap; transition: background .15s, color .15s, border-color .15s; }
.prose .jumpbar a:hover { border-color: var(--blue); color: var(--blue-dark); }
.prose .jumpbar a.is-current { background: var(--navy); border-color: var(--navy); color: var(--white); }
html:has(.jumpbar) { scroll-padding-top: calc(var(--header-h) + 72px); }
.jumpbar ~ .sections-open .section-block { scroll-margin-top: 0; } /* Abstand kommt schon aus scroll-padding (Menue + Leiste) */
/* Abschnitte aufgeklappt (Ausschreibungen): klare Trennung, Sprungziel unter dem festen Kopf */
.sections-open { display: grid; gap: 0; grid-template-columns: minmax(0, 1fr); }
.section-block { padding: 26px 0; border-top: 1px solid var(--line); scroll-margin-top: 110px; }
.section-block:first-child { border-top: 0; padding-top: 8px; }
.prose .section-block h2 { font-size: 1.45rem; margin: 0 0 .6em; }
.prose .section-block h3 { font-size: 1.1rem; margin: 1.2em 0 .4em; }
.prose .section-block > :last-child { margin-bottom: 0; }
@media (min-width: 640px) { .prose .section-block table { display: table; } }
/* keine doppelte Linie: letzte Tabellenzeile ohne Unterstrich, wenn danach die Abschnittslinie kommt */
.prose .section-block > table:last-child { margin-bottom: 0; }
.prose .section-block > table:last-child tbody tr:last-child td { border-bottom: 0; }
.accordion details, .faq-item { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); overflow: hidden; }
.accordion summary, .faq-item summary { list-style: none; cursor: pointer; padding: 16px 52px 16px 20px; position: relative; font-weight: 700; color: var(--navy); }
.accordion summary::-webkit-details-marker, .faq-item summary::-webkit-details-marker { display: none; }
.accordion summary h2 { font-size: 1.1rem; margin: 0; }
/* Icon: Kreis mit Querbalken (::after) + Laengsbalken (::before), der sich beim Oeffnen flach dreht */
.accordion summary::after, .faq-item summary::after { content: ""; position: absolute; right: 18px; top: calc(50% - 14px); width: 28px; height: 28px; border-radius: 50%; color: var(--blue-dark); background: linear-gradient(currentColor, currentColor) center / 12px 2px no-repeat, #e6eef7; transition: background-color .25s, color .25s, rotate .35s ease; }
.accordion summary::before, .faq-item summary::before { content: ""; position: absolute; z-index: 1; right: 31px; top: calc(50% - 6px); width: 2px; height: 12px; background: var(--blue-dark); transition: rotate .35s ease, background-color .25s; }
details:not([open]) > summary:hover::after { background-color: #d3e1ef; }
details[open] > summary::after { color: var(--navy); background-color: var(--lime); rotate: 180deg; }
details[open] > summary::before { background-color: var(--navy); rotate: 90deg; }
details[open] > summary { border-bottom: 1px solid var(--line); }
.details-body { padding: 18px 20px 6px; }
.accordion-plain { margin-bottom: 1em; }

/* Seitenleiste: Karten mit klarer Hierarchie */
.subnav, .info-box, .side-list { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 1px 2px rgb(14 32 58 / .04), 0 6px 18px rgb(14 32 58 / .04); }
.info-box { padding: 20px 22px 22px; }
.subnav h2, .info-box h2 {
  font-family: var(--font-head); font-size: 1.05rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.3;
  color: var(--navy); margin: 0 0 10px;
}
/* Bereichsnavigation: Eintraege ueber die volle Kartenbreite */
.subnav { padding: 18px 0 10px; overflow: hidden; }
.subnav h2 { padding: 0 22px 12px; margin: 0; border-bottom: 1px solid var(--line); }
.subnav ul { list-style: none; margin: 0; padding: 4px 0 0; }
.subnav li + li::before { content: ""; display: block; height: 1px; margin: 0 22px; background: var(--line); }
.subnav a { position: relative; display: block; padding: 11px 22px; border-left: 3px solid transparent; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .96rem; line-height: 1.4; transition: background .15s, color .15s; }
.subnav a:hover { background: var(--bg); color: var(--blue-dark); }
.subnav a[aria-current="page"] { background: #e8f2fa; border-left-color: var(--blue); color: var(--blue-dark); }
.subnav li:has(> a[aria-current="page"])::before, .subnav li:has(> a[aria-current="page"]) + li::before { background: transparent; }
/* Infoboxen der Veranstaltung: eine Karte, Abschnitte durch duenne Linien getrennt */
.side-list > .info-box { background: none; border: 0; border-radius: 0; box-shadow: none; padding: 18px 22px; }
.side-list > .info-box + .info-box { border-top: 1px solid var(--line); }
.side-list > .info-box h2 { font-size: .98rem; margin-bottom: 6px; }
.info-box-body { font-size: .93rem; color: var(--muted); line-height: 1.55; }
.info-box-body strong, .info-box-body b { color: var(--ink); }
.info-box-body p { margin: 0 0 .4em; }
.info-box-body > :last-child { margin-bottom: 0; }
.info-box-body a { font-weight: 600; text-decoration: none; }
.info-box-body a:hover { text-decoration: underline; }
.info-box-body img { border-radius: var(--radius-sm); }
.search-small { display: flex; gap: 8px; }
.search-small input { height: 44px; min-width: 0; border-color: var(--line); padding: 0 16px; }
.search-small .btn { flex: none; height: 44px; padding: 0 18px; }

/* ---------- FAQ */
.faq-search { margin-bottom: 28px; }
.faq-search label { display: block; font-weight: 700; margin-bottom: 6px; color: var(--navy); }
.faq-search input { width: 100%; height: 52px; border-radius: 999px; border: 2px solid var(--line); padding: 0 22px; font: inherit; background: var(--bg); }
.faq-search input:focus { border-color: var(--blue); outline: none; background: var(--white); }
.faq-group { margin-bottom: 28px; display: grid; gap: 8px; }
.faq-group h2 { font-size: 1.2rem; margin: 0 0 6px; }

/* ---------- Ergebnisse */
.series-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 24px; }
.series-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 6px; }
.series-card h2 { font-size: 1.35rem; margin: 0; }
.series-card h2 a { color: var(--navy); text-decoration: none; }
.series-card h2 a:hover { color: var(--blue); }
.series-latest { margin-top: auto; display: grid; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--bg); text-decoration: none; color: var(--ink); border-left: 4px solid var(--lime); }
.series-latest span:first-child { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--blue-dark); font-weight: 700; }

.edition-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.edition-list a { display: grid; grid-template-columns: 70px 1fr auto auto; gap: 16px; align-items: center; padding: 14px 18px; border-radius: var(--radius-sm); background: var(--bg); text-decoration: none; color: var(--ink); transition: background .15s; }
.edition-list a:hover { background: #e7eef5; }
.edition-year { font-weight: 800; color: var(--blue-dark); font-variant-numeric: tabular-nums; }
.edition-title { font-weight: 700; color: var(--navy); }
.edition-date, .edition-cats { color: var(--muted); font-size: .9rem; }
@media (max-width: 700px) { .edition-list a { grid-template-columns: 56px 1fr; } .edition-date, .edition-cats { grid-column: 2; } }

.tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 24px; scrollbar-width: thin; }
.tabs a { flex-shrink: 0; padding: 9px 16px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); text-decoration: none; color: var(--navy); font-weight: 600; font-size: .9rem; }
.tabs a:hover { border-color: var(--blue); }
.tabs a[aria-current="page"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.table-tools { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.table-tools h2 { font-size: 1.3rem; margin: 0; }
.filter input { height: 44px; width: min(360px, 100%); border-radius: 999px; border: 1px solid var(--line); padding: 0 18px; font: inherit; background: var(--bg); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table.results { width: 100%; border-collapse: collapse; font-size: .95rem; font-variant-numeric: tabular-nums; }
table.results th { position: sticky; top: 0; background: var(--navy); color: var(--white); text-align: left; padding: 12px 14px; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
table.results th[data-sort] { cursor: pointer; user-select: none; }
table.results th[aria-sort="ascending"]::after { content: " ▲"; color: var(--lime); }
table.results th[aria-sort="descending"]::after { content: " ▼"; color: var(--lime); }
table.results td { padding: 11px 14px; border-top: 1px solid var(--line); vertical-align: top; }
table.results tbody tr:nth-child(even) { background: #f9fbfc; }
table.results tbody tr:hover { background: #eef5fb; }
table.results td.place { font-weight: 800; color: var(--navy); width: 1%; }
table.results td.time { white-space: nowrap; }
table.results td.name a { font-weight: 700; text-decoration: none; }
table.results td.name a:hover { text-decoration: underline; }
.status { font-size: .75rem; font-weight: 700; color: var(--muted); text-transform: uppercase; }
.show-sm { display: none; }
@media (max-width: 760px) {
  .hide-sm { display: none; }
  .show-sm { display: block; font-size: .85rem; }
  table.results th, table.results td { padding: 10px 8px; }
}
@media (max-width: 1000px) { .hide-md { display: none; } }

/* Namensvorschlaege (Autocomplete) */
.ac { position: relative; flex: 1; min-width: 0; display: flex; }
.ac > input { flex: 1; width: 100%; }
.search-big .ac, .finder-form .ac { min-width: 200px; }
.ac-list { position: absolute; top: calc(100% + 6px); left: 0; right: 0; min-width: 260px; z-index: 60; list-style: none; margin: 0; padding: 6px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); max-height: 340px; overflow-y: auto; text-align: left; }
.ac-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 12px; border-radius: 6px; cursor: pointer; color: var(--ink); font-size: .95rem; }
.ac-list li[aria-selected="true"], .ac-list li:hover { background: #eaf3fa; }
.ac-name mark { background: none; color: var(--blue-dark); font-weight: 800; }
.ac-count { flex-shrink: 0; font-size: .78rem; color: var(--muted); }
.nav-search .ac-list { left: auto; right: 0; width: 360px; }
/* gemeinsame Suche: gruppierte Vorschlaege und Trefferseite */
.ac-list li.ac-group { display: block; padding: 8px 12px 4px; cursor: default; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); background: none !important; }
.ac-list li.ac-group + li { margin-top: 0; }
.ac-kind { flex-shrink: 0; font-size: .72rem; color: var(--muted); }
.search-block { margin-top: 36px; }
.search-block h2 { margin-bottom: 6px; }
.search-hits { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 4px; }
.search-hits li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.search-hits h3 { margin: 4px 0 6px; font-size: 1.2rem; }
.search-hits h3 a { color: var(--navy); text-decoration: none; }
.search-hits h3 a:hover { text-decoration: underline; }
.search-hits p { margin: 0; color: #4a5768; font-size: .95rem; }
.search-hits mark, .ac-name mark { background: #fff3a6; color: inherit; padding: 0 1px; border-radius: 2px; }
.search-hits .eyebrow { color: var(--blue-dark); }
@media (max-width: 1060px) { .nav-search .ac-list { width: auto; left: 0; } }

/* Ergebnisse im bisherigen Aufbau */
.finder { display: grid; grid-template-columns: 1fr; border-radius: var(--radius); background: var(--navy); position: relative; z-index: 2; color: var(--white); margin-bottom: 36px; box-shadow: var(--shadow); }
@media (min-width: 800px) { .finder { grid-template-columns: 1.2fr 1fr; } }
.finder-media { min-height: 220px; background: var(--navy-2) var(--bg) center / cover; border-radius: var(--radius) var(--radius) 0 0; }
@media (min-width: 800px) { .finder-media { border-radius: var(--radius) 0 0 var(--radius); } }
.finder-body { padding: clamp(24px, 4vw, 40px); align-self: center; }
.finder-body h2 { color: var(--white); margin-bottom: .3em; }
.finder-form { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.finder-form input { flex: 1; min-width: 180px; height: 48px; border: 0; border-radius: var(--radius-sm); padding: 0 16px; font: inherit; }
.finder-form .btn { border-radius: var(--radius-sm); height: 48px; min-height: 0; padding-block: 0; align-self: flex-start; } /* gleiche Hoehe wie das Suchfeld */
table.results--events td a { font-weight: 600; text-decoration: none; }
table.results--events .year-row th { background: #e8eef4; color: var(--navy); font-size: .95rem; letter-spacing: 0; text-transform: none; position: static; }
.results-select { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px 24px; margin-bottom: 20px; }
.results-select label { display: grid; gap: 6px; font-weight: 700; color: var(--navy); min-width: 0; }
.results-select select {
  width: 100%; min-width: 0; min-height: 50px; padding: 10px 44px 10px 14px; line-height: 1.4;
  border: 1px solid #c7d2de; border-radius: var(--radius-sm); font: inherit; font-weight: 600; color: var(--ink);
  text-overflow: ellipsis; cursor: pointer; appearance: none; -webkit-appearance: none;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%2316304f' d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 16px center / 12px 8px;
}
.results-select select:hover { border-color: var(--blue); }
.results-select select:focus { border-color: var(--blue); outline: 3px solid rgb(41 128 185 / .2); }
.results-links { margin-bottom: 20px; }
.results-links p { margin: 0 0 10px; }
.photo-link { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
a.pdf::before { content: ""; display: inline-block; width: 1em; height: 1.15em; margin-right: .4em; vertical-align: -.15em; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 18'%3E%3Cpath d='M2 0h8l6 6v10a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V2a2 2 0 0 1 2-2zm7 1.5V7h5.5z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 18'%3E%3Cpath d='M2 0h8l6 6v10a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V2a2 2 0 0 1 2-2zm7 1.5V7h5.5z'/%3E%3C/svg%3E") center / contain no-repeat; }
.table-tools .hits { margin: 0; }
.table-tools .page-size { display: flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--muted); }
.table-tools .page-size select { height: 40px; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 8px; font: inherit; }
.table-tools .filter { display: flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--muted); }
.table-tools .filter input { width: min(240px, 100%); }
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 18px 0; }
.pager button { min-width: 40px; height: 40px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--white); color: var(--navy); font: inherit; font-weight: 700; cursor: pointer; }
.pager button[aria-current="page"] { background: var(--navy); color: var(--white); border-color: var(--navy); }
.pager button:disabled { opacity: .4; cursor: default; }
.pager span { align-self: center; color: var(--muted); }
table.results td.name { font-weight: 700; }
table.results td.nowrap, .table-tools .filter span { white-space: nowrap; }

/* Ergebnis-Detailseite */
.athlete { display: grid; gap: 40px; }
.result-card { display: grid; grid-template-columns: auto 1fr; gap: 24px 40px; padding: 28px 32px; border-radius: var(--radius); background: var(--navy); color: var(--white); box-shadow: var(--shadow); }
.result-main { display: flex; gap: 36px; padding-right: 40px; border-right: 1px solid rgb(255 255 255 / .15); }
.result-figure { display: grid; align-content: start; }
.result-figure span, .result-facts dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--lime); }
.result-figure strong { font-family: var(--font-head); font-size: clamp(2.4rem, 1.8rem + 2vw, 3.4rem); line-height: 1.05; font-variant-numeric: tabular-nums; }
.result-facts { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px 28px; align-content: center; }
.result-facts div { margin: 0; }
.result-facts .is-wide { grid-column: 1 / -1; }
.result-facts dt { color: #9fb3c8; }
.result-facts dd { margin: 4px 0 0; font-weight: 700; color: var(--white); line-height: 1.35; }
.result-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px; padding-top: 20px; border-top: 1px solid rgb(255 255 255 / .15); }
.btn.pdf::before { background: currentColor; }
.btn-ghost-dark { border-color: var(--line); color: var(--navy); background: var(--white); }
.btn-ghost-dark:hover { border-color: var(--blue); color: var(--blue-dark); }
.athlete-block h2 { font-size: 1.5rem; margin-bottom: 16px; }
/* Zwischenzeiten: Balken nach Zeitanteil + Werte */
.split-bar { display: flex; height: 14px; gap: 2px; margin-bottom: 14px; }
.split-bar span { display: block; flex-basis: 0; min-width: 4px; position: relative; cursor: help; transition: filter .15s, box-shadow .15s; }
.split-bar span:first-child { border-radius: 999px 0 0 999px; }
.split-bar span:last-child { border-radius: 0 999px 999px 0; }
.split-bar span:hover { filter: brightness(1.15); box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--c); z-index: 2; }
/* Tooltip mit Teilstrecke, Zeit und Anteil */
.split-bar span::after { content: attr(data-tip) "  " attr(data-time) "  ·  " attr(data-share); position: absolute; bottom: calc(100% + 12px); left: 50%; translate: -50% 4px; white-space: pre; padding: 6px 10px; border-radius: 6px; background: var(--navy); color: var(--white); font-size: .8rem; font-weight: 700; font-variant-numeric: tabular-nums; box-shadow: var(--shadow); opacity: 0; pointer-events: none; z-index: 3; transition: opacity .15s, translate .15s; }
.split-bar span::before { content: ""; position: absolute; bottom: calc(100% + 6px); left: 50%; translate: -50% 4px; border: 6px solid transparent; border-bottom: 0; border-top-color: var(--navy); opacity: 0; z-index: 3; transition: opacity .15s, translate .15s; }
.split-bar span:hover::after, .split-bar span:hover::before { opacity: 1; translate: -50% 0; }
.split-bar span:first-child::after { left: 0; translate: 0 4px; } .split-bar span:first-child:hover::after { translate: 0 0; }
.split-bar span:last-child::after { left: auto; right: 0; translate: 0 4px; } .split-bar span:last-child:hover::after { translate: 0 0; }
.split-swim { --c: var(--blue); }
.split-bike { --c: var(--lime); }
.split-run { --c: var(--navy); }
.split-t { --c: #b8c4d2; }
.split-bar span { background: var(--c); }
.splits { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
/* Kachel je Teilstrecke: Ring zeigt den Anteil an der Gesamtzeit (wie ein Fortschrittskreis) */
.splits li { padding: 14px 16px; border-radius: var(--radius-sm); background: var(--bg); display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; margin: 0; }
.split-ring { grid-row: 1 / 3; width: 40px; height: 40px; border-radius: 50%; background: conic-gradient(var(--c) calc(var(--p) * 1%), #dfe6ee 0); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 5px)); mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 5px)); }
.split-label { font-size: .8rem; color: var(--muted); }
.split-label em { font-style: normal; font-weight: 700; color: var(--navy); margin-left: 4px; }
.splits strong { font-size: 1.3rem; font-variant-numeric: tabular-nums; color: var(--navy); line-height: 1.2; }
.athlete-bottom { display: grid; grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr); gap: 32px; align-items: start; }
.athlete-bottom.no-video { grid-template-columns: 1fr; }
.athlete-bottom.no-video .athlete-more ul { display: flex; flex-wrap: wrap; gap: 10px 32px; }
.finish-video { width: 100%; aspect-ratio: 16 / 9; background: var(--navy); border-radius: var(--radius); display: block; }
.athlete-more { margin-top: 0; }
.athlete-more ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.athlete-more li { margin: 0; }
.athlete-bottom:not(.no-video) .athlete-more { margin-top: 52px; }
@media (max-width: 820px) {
  .result-card { grid-template-columns: 1fr; padding: 22px; }
  .result-main { padding-right: 0; padding-bottom: 20px; border-right: 0; border-bottom: 1px solid rgb(255 255 255 / .15); }
  .athlete-bottom { grid-template-columns: 1fr; }
  .athlete-bottom:not(.no-video) .athlete-more { margin-top: 0; }
}

.notice { background: var(--bg); }
.notice--ok { background: #ecf8ec; --icon-bg: #2e9a46; --icon: "✓"; }
.notice--error { background: #fdeeee; --icon-bg: #c93a3a; --icon: "!"; }
.notice ul { margin: 0; padding-left: 1.1em; }

/* ---------- Fotos */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 22px; }
.gallery-card { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--white); }
.gallery-card[hidden] { display: none; }
.gallery-card a { color: inherit; text-decoration: none; display: block; }
.gallery-card h2 { font-size: 1.1rem; margin: 2px 0 0; }
.gallery-card .eyebrow { color: var(--blue); font-size: .72rem; }
.gallery-card p { color: var(--muted); font-size: .9rem; margin: 0; }
.photo-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 8px; }
.photo-grid a { display: block; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--radius-sm); background: var(--bg); }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.photo-grid a:hover img { transform: scale(1.05); }
.page-gallery { margin-top: 2.2em; }
.prose .photo-grid { padding-left: 0; }
.prose .photo-grid li { margin: 0; }

.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgb(6 14 26 / .94); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: transparent; }
.lightbox-figure { margin: 0; display: grid; justify-items: center; gap: 10px; }
.lightbox img { max-width: 92vw; max-height: 82vh; object-fit: contain; border-radius: 6px; }
.lightbox-caption { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 4px 14px; max-width: 92vw; padding: 0 12px; font-size: .82rem; line-height: 1.4; color: rgb(255 255 255 / .7); text-align: center; }
.lightbox-caption[hidden] { display: none; }
.lightbox .lightbox-rights { position: static; width: auto; height: auto; padding: 0; border-radius: 0; background: none; font: inherit; font-size: .82rem; color: rgb(255 255 255 / .7); text-decoration: underline; text-underline-offset: .2em; }
.lightbox .lightbox-rights:hover { background: none; color: var(--lime); }
.lightbox .lightbox-rights[hidden] { display: none; }
.lightbox button { position: absolute; border: 0; background: rgb(255 255 255 / .12); color: var(--white); width: 52px; height: 52px; border-radius: 50%; font-size: 2rem; line-height: 1; cursor: pointer; }
.lightbox button:hover { background: rgb(255 255 255 / .25); }
.lightbox-close { top: 18px; right: 18px; }
.lightbox-prev { left: 18px; top: 50%; translate: 0 -50%; }
.lightbox-next { right: 18px; top: 50%; translate: 0 -50%; }

/* ---------- Sponsoren */
/* Sponsorenleiste: farbige Logos in weissen Kacheln wie auf der bisherigen Seite */
.sponsors-strip { background: var(--bg); padding-block: 48px 56px; text-align: center; border-top: 1px solid var(--line); }
.sponsors-strip .eyebrow { font-family: var(--font-head); font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); letter-spacing: -.01em; text-transform: none; color: var(--navy); margin: 0 0 28px; }
.logo-row { list-style: none; margin: 0 auto; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.logo-row li { flex: 0 1 170px; margin: 0; }
.logo-row a { display: grid; place-items: center; height: 120px; padding: 16px 20px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s, border-color .2s; }
.logo-row a:hover { transform: translateY(-3px); border-color: var(--blue); box-shadow: 0 10px 28px rgb(14 32 58 / .14); }
.logo-row img { max-height: 84px; max-width: 100%; width: auto; height: auto; object-fit: contain; }
@media (max-width: 520px) { .logo-row { gap: 12px; } .logo-row li { flex-basis: calc(50% - 6px); } .logo-row a { height: 100px; padding: 12px; } }
.sponsor-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.sponsor-grid a { display: grid; gap: 12px; place-items: center; text-align: center; padding: 24px 16px; min-height: 128px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); height: 100%; transition: .2s; }
.sponsor-grid a:hover { border-color: var(--blue); box-shadow: var(--shadow); }
.sponsor-grid img { max-height: 80px; width: auto; }
.sponsor-grid span { font-size: .88rem; }

/* ---------- Formulare */
.form { display: grid; gap: 20px; max-width: 760px; margin-top: 24px; }
.form label { font-weight: 600; color: var(--navy); min-width: 0; }
.form > label, .form .field { display: grid; gap: 6px; min-width: 0; align-content: start; }
.form input, .form textarea { width: 100%; min-width: 0; font: inherit; font-weight: 400; padding: 13px 16px; border-radius: var(--radius-sm); border: 1px solid #c7d2de; background: #fbfcfd; color: var(--ink); transition: border-color .15s, background .15s, box-shadow .15s; }
.form input::placeholder, .form textarea::placeholder { color: #9aa6b4; }
.form input:hover, .form textarea:hover { border-color: #a9b7c6; }
.form input:focus, .form textarea:focus { border-color: var(--blue); background: var(--white); outline: none; box-shadow: 0 0 0 4px rgb(41 128 185 / .15); }
.form textarea { resize: vertical; min-height: 170px; line-height: 1.55; }
.form .req { color: #c93a3a; font-weight: 700; }
.form .opt { margin-left: 4px; font-size: .8rem; font-weight: 500; color: var(--muted); }
.form .has-error input, .form .has-error textarea { border-color: #c93a3a; background: #fffafa; }
.form .has-error input:focus, .form .has-error textarea:focus { box-shadow: 0 0 0 4px rgb(201 58 58 / .15); }
.field-error { margin: 0; font-size: .87rem; font-weight: 600; color: #b42f2f; }
.field-foot { display: flex; justify-content: space-between; gap: 12px; }
.field-count { margin-left: auto; font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.form-row--2 { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.form .check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; font-size: .93rem; line-height: 1.5; color: var(--ink); cursor: pointer; }
.form .check input { flex: none; margin: 2px 0 0; width: 20px; height: 20px; padding: 0; accent-color: var(--blue); cursor: pointer; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding-top: 4px; }
.form-note { margin: 0; font-size: .82rem; color: var(--muted); }
.form .btn { justify-self: start; }
.hp { position: absolute !important; left: -9999px; }

/* Kontaktseite */
.contact-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 1px 2px rgb(14 32 58 / .04), 0 10px 30px rgb(14 32 58 / .06); padding: clamp(20px, 4vw, 36px); }
.contact .form { margin-top: 20px; }
.contact-intro { max-width: 760px; }
.contact-intro h2 { margin: 0 0 8px; font-size: clamp(1.4rem, 2.4vw, 1.8rem); color: var(--navy); }
.contact-intro p { margin: 0; color: var(--muted); }
.contact .notice { max-width: 760px; margin-top: 20px; }
.contact .notice p { margin: 0; }
.contact-done { max-width: 760px; text-align: center; padding-block: clamp(32px, 6vw, 56px); }
.contact-done-icon { display: inline-grid; place-items: center; width: 64px; height: 64px; margin-bottom: 14px; border-radius: 50%; background: #e6f5e9; color: #2e9a46; font: 800 1.8rem/1 var(--font-head); }
.contact-done h2 { margin: 0 0 8px; color: var(--navy); }
.contact-done p { max-width: 48ch; margin: 0 auto 22px; color: var(--muted); }

/* ---------- Footer */
.site-footer { background: var(--navy); color: #c3cfdd; font-size: .95rem; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); padding-block: 56px; }
.site-footer h2 { font-family: var(--font); color: var(--white); font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { color: #dfe8f3; text-decoration: none; }
.site-footer a:hover { color: var(--lime); }
.social { grid-auto-flow: column; justify-content: start; gap: 16px !important; }
.footer-bar { background: var(--lime); color: var(--navy); font-size: .85rem; font-weight: 600; }
.footer-bar .container { padding-block: 12px; }

/* ---------- Seitenzahlen & Fehler */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 40px; }
.pagination a, .pagination span { min-width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; text-decoration: none; font-weight: 700; }
.pagination a { background: var(--bg); color: var(--navy); }
.pagination span { background: var(--navy); color: var(--white); }
.error-page { text-align: center; max-width: 720px; }
.error-page .kicker { color: var(--blue); font-size: 1rem; }
.debug { text-align: left; background: var(--bg); padding: 16px; overflow-x: auto; }

/* Nach-oben-Pfeil */
.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 70; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: var(--lime); box-shadow: 0 6px 20px rgb(14 32 58 / .3); opacity: 0; translate: 0 12px; pointer-events: none; transition: opacity .2s, translate .2s, background .15s; }
.to-top::before { content: ""; width: 14px; height: 14px; border-left: 3px solid currentColor; border-top: 3px solid currentColor; rotate: 45deg; margin-top: 6px; }
.to-top.is-visible { opacity: 1; translate: 0 0; pointer-events: auto; }
body.nav-open .to-top { opacity: 0; pointer-events: none; }
.to-top:hover { background: var(--blue-dark); }
/* "Bearbeiten"-Lasche am rechten Rand, nur fuer angemeldete Redakteure */
.edit-tab { position: fixed; right: 0; top: 50%; z-index: 80; writing-mode: vertical-rl; rotate: 180deg; translate: 0 -50%; padding: 16px 9px; border-radius: 0 8px 8px 0; background: var(--lime); color: var(--navy); font-weight: 700; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; box-shadow: 0 4px 16px rgb(14 32 58 / .35); transition: padding .15s, background .15s, color .15s; }
.edit-tab:hover, .edit-tab:focus-visible { background: var(--navy); color: var(--lime); padding-bottom: 22px; }
@media print { .edit-tab { display: none; } }
@media print { .to-top { display: none !important; } }

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

@media print {
  .site-header, .sponsor-bar, .sponsors-strip, .site-footer, .aside, .nav-toggle, .table-tools .filter { display: none !important; }
  .page-header, .event-hero, .hero { background: none !important; color: #000; }
  .page-header::before, .event-hero::before, .hero::before { display: none; }
  .page-header h1, .event-hero h1, .hero h1 { color: #000; }
  details { display: block; } details > * { display: block !important; }
}

/* ---------- Eingebettete Inhalte (Zwei-Klick-Loesung) */
.embed { position: relative; width: 100%; max-width: 100%; margin: 0 0 1.2em; border-radius: var(--radius); overflow: hidden; background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: var(--white); }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed-consent { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 8px; padding: 20px; text-align: center; overflow: auto; }
.embed-title { margin: 0; font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; }
.embed-text { margin: 0; max-width: 46ch; font-size: .88rem; line-height: 1.5; color: rgb(255 255 255 / .8); }
.embed-text a, .embed-actions a { color: var(--lime); }
.embed-actions { margin: 6px 0 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 18px; font-size: .9rem; }
@media (max-width: 520px) { .embed:not(.is-loaded) { aspect-ratio: auto !important; min-height: 240px; } .embed-consent { position: static; } }

/* ---------- Fotogalerie: Mosaik */
.page-header .gallery-meta { display: grid; gap: 10px; margin-top: 18px; max-width: 70ch; }
.gallery-meta-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin: 0; font-size: .95rem; color: #c9d6e6; }
.gallery-meta-line span { display: inline-flex; align-items: center; gap: 8px; }
.gallery-meta-line span + span:not(.gallery-meta-rights)::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--lime); margin-right: 10px; }
@media (max-width: 599px) { .gallery-meta-line { flex-direction: column; align-items: flex-start; gap: 4px; } .gallery-meta-line span + span::before { display: none; } }
.gallery-meta .prose { color: #dbe5f0; font-size: .95rem; }
.gallery-meta .prose p { margin: 0 0 .35em; }
.gallery-meta .prose > :last-child { margin-bottom: 0; }
.gallery-meta .prose hr { display: none; }
.gallery-meta .prose a { color: var(--lime); font-weight: 600; }
.gallery-meta .prose a:hover { color: var(--white); }
.gallery-meta .embed { max-width: 520px; margin-top: 8px; }
.photo-mosaic { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; grid-template-columns: repeat(auto-fill, minmax(min(46%, 190px), 1fr)); grid-auto-rows: clamp(120px, 16vw, 200px); grid-auto-flow: dense; }
.photo-mosaic li, .photo-mosaic a { height: 100%; }
.photo-mosaic a { position: relative; display: block; overflow: hidden; border-radius: 6px; background: var(--bg); }
.photo-mosaic img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.photo-mosaic a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgb(14 32 58 / .35), transparent 45%); opacity: 0; transition: opacity .3s; }
.photo-mosaic a:hover img, .photo-mosaic a:focus-visible img { transform: scale(1.06); }
.photo-mosaic a:hover::after, .photo-mosaic a:focus-visible::after { opacity: 1; }
.photo-mosaic .is-big { grid-column: span 2; grid-row: span 2; }
.photo-mosaic .is-wide { grid-column: span 2; }
.photo-mosaic .is-tall { grid-row: span 2; }
.gallery-rights-btn { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; font: inherit; color: var(--lime); font-weight: 600; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.gallery-rights-btn::before { content: "i"; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--lime); color: var(--navy); font: 800 .72rem/1 var(--font-head); text-decoration: none; }
.gallery-rights-btn:hover { color: var(--white); }
.modal { width: min(560px, calc(100% - 32px)); max-height: calc(100dvh - 48px); padding: 0; border: 0; border-radius: var(--radius); box-shadow: var(--shadow-lg); color: var(--ink); background: var(--white); }
.modal::backdrop { background: rgb(14 32 58 / .6); backdrop-filter: blur(3px); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.modal-head h2 { margin: 0; font-size: 1.15rem; color: var(--navy); }
.modal-close { flex: none; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--bg); font-size: 1.5rem; line-height: 1; color: var(--navy); cursor: pointer; }
.modal-close:hover { background: var(--line); }
.modal-body { padding: 18px 22px 22px; font-size: .95rem; line-height: 1.6; }
.modal-body p { margin: 0 0 .8em; }
.modal-body p:last-child { margin-bottom: 0; }
/* ---------- Bilder-Slider im Seitenkopf (Startseite, Veranstaltungen) */
.hero-slides { position: absolute; inset: 0; z-index: -2; overflow: hidden; background: var(--navy); }
/* Neues Bild blendet UEBER dem alten ein (kein Durchscheinen des Hintergrunds), Zoom laeuft per transform auf eigener Ebene */
.hero-slide { position: absolute; inset: 0; z-index: 0; background: center / cover no-repeat; opacity: 0; transform: scale(1.06) translateZ(0); backface-visibility: hidden; will-change: opacity, transform; }
.hero-slide.is-first { background-image: var(--s); }
@media (max-width: 700px) { .hero-slide.is-first { background-image: var(--s-sm, var(--s)); } }
.hero-slide.is-prev { z-index: 1; opacity: 1; transform: scale(1) translateZ(0); }
.hero-slide.is-active { z-index: 2; opacity: 1; transform: scale(1) translateZ(0); transition: opacity 1.6s ease-in-out, transform 9s cubic-bezier(.2, .6, .35, 1); }
.hero-slide.is-first { z-index: 2; opacity: 1; transition: transform 9s cubic-bezier(.2, .6, .35, 1); } /* erstes Bild: sofort sichtbar, zoomt nach dem Laden */
@media (prefers-reduced-motion: reduce) { .hero-slide, .hero-slide.is-active { transition: none; transform: none; } }

/* ---------- Fockeberglauf-Bestenlisten */
.records-tabs { margin-bottom: 24px; }
.records-tabs a { display: inline-flex; padding: 7px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--navy); font-weight: 600; font-size: .9rem; text-decoration: none; }
.records-tabs a:hover { border-color: var(--blue); color: var(--blue-dark); }
.records-tabs a[aria-current="page"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.records-grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.records-grid h2 { font-size: 1.3rem; margin: 0 0 12px; }
table.records td.num, table.records th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.records tr.is-podium td { font-weight: 700; }
.records-top3 th[scope="rowgroup"] { position: static; text-transform: none; letter-spacing: 0; text-align: left; vertical-align: top; white-space: nowrap; background: var(--bg); color: var(--navy); font-size: .9rem; }
.records-top3 th[scope="rowgroup"] span { font-weight: 400; color: var(--muted); }
.records-top3 tr.records-run td, .records-top3 tr.records-run th { border-top: 2px solid var(--line); }
.records-sex { color: var(--muted); font-size: .85rem; white-space: nowrap; }
.records-time { display: block; font-size: .82rem; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- Sponsoren-Slider in der Seitenleiste */
.side-sponsors h2 { margin-bottom: 12px; }
.side-sponsors-stage { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius-sm); background: var(--white); border: 1px solid var(--line); overflow: hidden; }
.side-sponsor { position: absolute; inset: 0; display: grid; place-items: center; padding: 22px; opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility 0s linear .8s; }
.side-sponsor.is-active { opacity: 1; visibility: visible; transition: opacity .8s ease; }
.side-sponsor img { max-width: 100%; max-height: 100%; object-fit: contain; }
.side-sponsors-more { margin: 10px 0 0; font-size: .88rem; }
.side-sponsors-more a { font-weight: 600; text-decoration: none; }
.side-sponsors-more a:hover { text-decoration: underline; }

/* Handy: grosse Seitenueberschriften etwas kleiner, damit lange Woerter (Sonnenwendschwimmen) ganz passen */
@media (max-width: 480px) { .event-hero h1, .page-header h1 { font-size: 1.85rem; } }

/* ---------- Infotabellen (z. B. Fockeberglauf): gleiche Breite und gleiche erste Spalte in allen Abschnitten */
.prose table.info-table { display: table; table-layout: fixed; width: 100%; overflow: visible; }
.prose table.info-table th, .prose table.info-table td { overflow-wrap: anywhere; }
.prose table.info-table :is(th, td):first-child { width: 34%; }
.prose table.info-table tbody td:first-child { font-weight: 700; color: var(--navy); }
.prose table.info-table thead th { white-space: normal; }

/* ---------- Kopfzeile mobil: Schriftzug mittig zwischen Logo und Menue-Knopf */
.brand-name { display: none; }
@media (max-width: 1060px) {
  .header-inner { position: relative; }
  .brand-name { display: block; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); margin: 0; font-family: var(--font-head); font-weight: 800; font-size: clamp(1rem, .8rem + 1.2vw, 1.3rem); letter-spacing: .04em; text-transform: uppercase; color: var(--white); text-decoration: none; white-space: nowrap; pointer-events: auto; }
  .brand-name:hover { color: var(--lime); }
  /* Startseite: Schriftzug steht schon oben in der Kopfzeile -> Hero-Ueberschrift nur fuer Screenreader/Suchmaschinen */
  .hero h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
}

/* ---------- Startseite mobil */
@media (max-width: 700px) {
  /* dunkler Verlauf hinter dem Text, damit er auf hellen Bildern lesbar bleibt */
  .hero::before { background: linear-gradient(180deg, rgb(14 32 58 / .25) 0%, rgb(14 32 58 / .55) 35%, rgb(14 32 58 / .85) 70%, rgb(14 32 58 / .95) 100%); }
  .hero h1 { font-size: clamp(1.75rem, 1.2rem + 3vw, 2.2rem); overflow-wrap: normal; hyphens: manual; }
  .section-news .section-head h2 { font-size: 1.7rem; }
  .latest-results a { border-left: 0; padding: 12px 14px; gap: 12px; }
  .latest-results strong { font-size: .95rem; }
  .latest-date { font-size: .8rem; }
}

/* Seiten mit Sponsoren-Slider in der Seitenleiste: am Handy steht der Slider schon unter dem Inhalt, Leiste unten waere doppelt */
@media (max-width: 999px) { .has-side-sponsors .sponsors-strip { display: none; } }

/* Sponsorenseite: Logos im 4:3-Format wie in der Seitenleiste */
.sponsor-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); margin: 0 0 40px; }
.sponsor-grid li { margin: 0; }
.sponsor-grid a { aspect-ratio: 4 / 3; min-height: 0; height: auto; padding: 22px; background: var(--white); box-shadow: var(--shadow); }
.sponsor-grid a:hover { transform: translateY(-3px); }
.sponsor-grid img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
@media (max-width: 520px) { .sponsor-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .sponsor-grid a { padding: 14px; } }

/* Veranstaltungskopf: Infotext (eine Angabe pro Zeile) darf breiter laufen */
.event-hero .page-sub { max-width: 80ch; }

/* Fototeaser in der Seitenleiste (Fockeberglauf, Sonnenwendschwimmen) */
.side-photos h2 { margin-bottom: 12px; }
.side-photos-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.side-photos-grid li { margin: 0; }
.side-photos-grid a { display: block; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius-sm); background: var(--bg); }
.side-photos-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.side-photos-grid a:hover img { transform: scale(1.06); }
@media (prefers-reduced-motion: reduce) { .side-photos-grid img { transition: none; } }


/* News-Detailseite: nur der Artikel, ohne Seitenleiste – angenehme Zeilenlaenge */
.news-detail > .prose { max-width: 820px; }

/* Sponsorbalken oben schwarz/weiss, Farbe nur im Logo (gelbes L der Leipziger Gruppe) */
.sponsor-bar { background: var(--white); color: var(--ink); border-bottom: 1px solid var(--line); }
@media (max-width: 768px) { .sponsor-bar { background: var(--sun); color: #002b5c; border-bottom: 0; } } /* mobil wieder Leipziger-Gelb */
.sponsor-bar picture { display: block; }

/* Nummer + Wort in Ueberschriften zusammenhalten (siehe headline()) */
.nobr { white-space: nowrap; hyphens: none; -webkit-hyphens: none; }
/* Seitenueberschriften nur an festen Stellen trennen (weiche Trennstriche aus soft_hyphens(), z. B. "Sonnenwend-schwimmen"),
   die automatische Trennung des Browsers waehlt sonst Stellen wie "Kulk-witzer" oder "Sonnenwends-chwimmen" */
h1 { hyphens: manual; -webkit-hyphens: manual; }
/* Handy: kleinere Kopie des Kopfbilds (--bg-sm, siehe thumb()) */
@media (max-width: 700px) { .page-header, .event-hero, .hero { background-image: var(--bg-sm, var(--bg)); } }
/* grosse oder hochaufloesende Bildschirme: groessere Kopie (--bg-lg / --s-lg, 2400 px), sonst wirkt das Bild weich */
@media (min-width: 1601px), (min-width: 1000px) and (min-resolution: 1.5dppx) {
  .page-header, .event-hero, .hero { background-image: var(--bg-lg, var(--bg)); }
  .hero-slide.is-first { background-image: var(--s-lg, var(--s)); }
}

/* Statistik-Diagramm (Vorlage Statistik) */
.stats-chart { margin: 24px 0; }
.stats-chart svg { width: 100%; height: auto; display: block; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.stats-chart .grid { stroke: var(--line); stroke-width: 1; }
.stats-chart .ylab { font-size: 12px; fill: #5b6b7f; text-anchor: end; }
.stats-chart .xlab { font-size: 12px; fill: #5b6b7f; text-anchor: middle; }
.stats-chart .line { fill: none; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.stats-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 0; margin: 0 0 12px; font-weight: 600; }
.stats-legend li { display: flex; align-items: center; gap: 8px; }
.stats-legend span { width: 18px; height: 4px; border-radius: 2px; display: inline-block; }
.stats-table { margin-top: 16px; }
.stats-table summary { cursor: pointer; font-weight: 700; color: var(--blue); }
.stats-table .table-wrap { margin-top: 12px; }
.stats-plot { position: relative; touch-action: pan-y; }
.stats-chart .cursor { stroke: #9aa8b8; stroke-width: 1; }
.stats-chart circle { transition: r .12s; }
.stats-chart circle.is-active { r: 6; stroke: var(--white); stroke-width: 2; }
.stats-tip { position: absolute; z-index: 2; pointer-events: none; display: grid; gap: 3px; min-width: 170px; padding: 10px 12px;
  background: rgb(255 255 255 / .96); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 6px 20px rgb(14 32 58 / .15); font-size: .88rem; line-height: 1.35; white-space: nowrap; }
.stats-tip strong { font-size: .95rem; color: var(--navy); }
.stats-tip span { display: flex; align-items: center; gap: 6px; }
.stats-tip i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
