/*
 * Public site styles: the prototype's css/style.css, split into contiguous parts.
 * The parts are imported in the original order and their rules are unchanged, so the
 * cascade is exactly the prototype's. Fonts are self-hosted from public/fonts.
 *//* latin-ext */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url('/fonts/archivo-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url('/fonts/archivo-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;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/inter-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/inter-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;
}
/* ==========================================================================
   SC Steinlach – Prototyp "Alpine Bold"
   ========================================================================== */
:root {
  --hdr-h: 80px;      /* Höhe des fixen Headers */
  /* Einheitliche Höhen für Buttons und Eingabefelder in der ganzen Anwendung */
  --ctl-h: 48px;      /* normale Buttons, Formularfelder */
  --ctl-h-sm: 40px;   /* kleine Buttons, Filter, Chips */
  --ctl-h-xs: 34px;   /* Bedienelemente in Tabellenzeilen */
  --blue: #0033a0;        /* SCS-Blau aus dem Logo */
  --blue-700: #002476;
  --blue-50: #eef3ff;
  --ice: #d9e6ff;
  --night: #07112b;       /* Nachthimmel / dunkle Flächen */
  --night-2: #0e1b3d;
  --snow: #f6f8fc;
  --white: #ffffff;
  --ink: #0b1426;
  --muted: #5a6478;
  --line: #e2e7f0;
  --signal: #ff4d1c;      /* Torstangen-Rot: nur für Aktionen & Live-Infos */
  --signal-50: #fff1ec;
  --ok: #10a36a;

  --font-display: "Archivo", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --r-sm: 4px;
  --r: 8px;
  --r-lg: 12px;
  --shadow: 0 1px 2px rgba(7,17,43,.06), 0 8px 24px rgba(7,17,43,.08);
  --shadow-lg: 0 24px 60px rgba(7,17,43,.22);
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
}
*, *::before, *::after { box-sizing: border-box; }
/* Anchor jumps (e.g. #saisons, #team) stop below the fixed header instead of behind it. */
html { scroll-behavior: smooth; scroll-padding-top: var(--hdr-h); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--snow);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

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

/* ---------- Typo ---------- */
.display, h1, h2, h3 {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.02;
  margin: 0;
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.8rem); }
h2 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); }
h3 { font-size: clamp(1.08rem, 1.4vw, 1.28rem); letter-spacing: -0.01em; line-height: 1.15; }
.eyebrow {
  font-family: var(--font-display);
  font-stretch: 110%;
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
  display: inline-flex; align-items: center; gap: .6em;
}
.eyebrow::before { content: ""; width: 22px; height: 3px; background: currentColor; border-radius: 2px; }
.lead { font-size: clamp(1rem, 1.2vw, 1.12rem); color: var(--muted); max-width: 60ch; }
.hl { color: var(--blue); }
.on-dark .hl { color: #8fb0ff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  height: var(--ctl-h); padding: 0 1.5em;
  border-radius: 6px;
  border: 0;
  font-weight: 650;
  font-size: .98rem;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: none; }
.btn-primary { background: var(--signal); color: #fff; box-shadow: 0 8px 22px rgba(255,77,28,.35); }
.btn-primary:hover { background: #ec3d0c; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-700); }
.btn-ghost { background: rgba(255,255,255,.14); color: #fff; backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.35); }
.btn-ghost:hover { background: rgba(255,255,255,.24); }
.btn-line { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-line:hover { border-color: var(--ink); }
.btn-sm { height: var(--ctl-h-sm); padding: 0 1.1em; font-size: .9rem; }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }
/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .25s, box-shadow .25s, color .25s;
  color: #fff;
}
.site-header .bar { display: flex; align-items: center; gap: 28px; height: var(--hdr-h); }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-stretch: 115%; font-weight: 800; letter-spacing: -.01em; }
/* Logo: weiße Variante (logo-dark.svg) über Fotos/dunklen Flächen, Original sobald der Header weiß ist */
.brand-logo { display: block; transition: transform .2s; }
.brand:hover .brand-logo { transform: rotate(-2deg) scale(1.03); }
.brand-logo img { height: 60px; width: auto; filter: drop-shadow(0 2px 8px rgba(7,17,43,.35)); }
.brand-logo .logo-on-light { display: none; filter: none; }
.site-header.solid .logo-on-dark, .site-header.light .logo-on-dark { display: none; }
.site-header.solid .logo-on-light, .site-header.light .logo-on-light { display: block; }
.brand-logo-lg { display: inline-block; }
.brand-logo-lg img { height: 76px; filter: none; }
.brand small { display: block; white-space: nowrap; font-family: var(--font-body); font-stretch: 100%; font-weight: 500; font-size: .72rem; opacity: .75; letter-spacing: .02em; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { white-space: nowrap; padding: .55em .95em; border-radius: 6px; font-weight: 550; font-size: .95rem; opacity: .92; }
.nav a:hover, .nav a.active { background: rgba(255,255,255,.14); opacity: 1; }
.burger { display: none; background: none; border: 0; color: inherit; padding: 8px; }
.site-header.solid, .site-header.light {
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
}
.site-header.solid .nav a:hover, .site-header.solid .nav a.active,
.site-header.light .nav a:hover, .site-header.light .nav a.active { background: var(--blue-50); color: var(--blue); }

@media (max-width: 1100px) {
  .nav { display: none; }
  .burger { display: block; margin-left: auto; }
  .nav.open {
    display: flex; flex-direction: column; position: fixed; inset: var(--hdr-h) 0 auto 0;
    background: #fff; color: var(--ink); padding: 12px var(--gutter) 24px; box-shadow: var(--shadow-lg);
  }
  .nav.open a { padding: .9em 0; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1.1rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: flex-end;
  color: #fff; overflow: hidden; background: var(--night);
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.4s ease; }
.hero-media img.on { opacity: 1; animation: kenburns 9s ease-out forwards; }
.hero-media img:nth-child(even).on { animation-name: kenburns2; }
@keyframes kenburns { from { transform: scale(1.14) translate(1.5%, 1%); } to { transform: scale(1.02) translate(0, 0); } }
@keyframes kenburns2 { from { transform: scale(1.02) translate(0, 0); } to { transform: scale(1.14) translate(-1.5%, -1%); } }
.hero.paused .hero-media img.on, .hero.paused .ch.on .ch-bar i { animation-play-state: paused; }

/* Kapitel-Leiste unter dem Text: ein Balken je Bild, der aktuelle füllt sich */
.hero-chapters { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; margin-top: -8px; }
.ch { all: unset; cursor: pointer; display: grid; gap: 4px; padding: 10px 0 4px; color: #fff; opacity: .6; transition: opacity .3s; }
.ch:hover, .ch.on { opacity: 1; }
.ch:focus-visible { outline: 2px solid #fff; outline-offset: 4px; border-radius: 2px; }
.ch-bar { display: block; height: 3px; background: rgba(255,255,255,.28); border-radius: 99px; overflow: hidden; margin-bottom: 8px; }
.ch-bar i { display: block; height: 100%; width: 0; background: #fff; border-radius: 99px; }
.ch.seen .ch-bar i { width: 100%; }
.ch.on .ch-bar i { animation: chfill 7s linear forwards; }
@keyframes chfill { from { width: 0; } to { width: 100%; } }
.ch-tag { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.ch-title { font-size: .9rem; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-caption { display: none; }
@media (prefers-reduced-motion: reduce) {
  .hero-media img.on { animation: none; }
  .ch.on .ch-bar i { animation: none; width: 100%; }
}
@media (max-width: 700px) {
  .hero-chapters { gap: 6px; }
  .ch { padding: 12px 0; }
  .ch-tag, .ch-title { display: none; }
  .ch-bar { margin: 0; }
  .ch-caption { display: block; grid-column: 1 / -1; color: #fff; font-size: .9rem; opacity: .9; }
  .ch-caption b { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; margin-right: 6px; }
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(7,17,43,.92) 0%, rgba(7,17,43,.55) 45%, rgba(7,17,43,.05) 75%),
    linear-gradient(0deg, rgba(7,17,43,.85) 0%, rgba(7,17,43,0) 45%);
}
.hero .wrap { position: relative; z-index: 2; width: 100%; padding-top: calc(var(--hdr-h) + 24px); padding-bottom: 22px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: end; }
.hero h1 { text-wrap: balance; font-size: min(clamp(2.2rem, 4.6vw, 3.9rem), 8.5svh); }
.hero h1 em { font-style: normal; color: transparent; -webkit-text-stroke: 2px #fff; }
.hero p { font-size: clamp(1rem, 1.3vw, 1.15rem); opacity: .88; max-width: 46ch; margin: 14px 0 22px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }

.next-card {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-radius: var(--r-lg); padding: 22px; justify-self: end; width: min(100%, 400px);
}
.next-card .label { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 0 rgba(255,77,28,.6); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(255,77,28,0); } 100% { box-shadow: 0 0 0 0 rgba(255,77,28,0); } }
.next-card h3 { margin: 10px 0 4px; font-size: 1.35rem; }
.next-card .meta { opacity: .8; font-size: .92rem; }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 18px 0; }
.countdown div { background: rgba(7,17,43,.45); border-radius: 6px; padding: 10px 4px; text-align: center; }
.countdown b { display: block; font-family: var(--font-display); font-stretch: 125%; font-size: 1.6rem; line-height: 1.1; }
.countdown span { font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; opacity: .75; }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .next-card { justify-self: stretch; width: 100%; }
  .hero-chapters { order: 1; margin-top: 0; }
  .next-card { order: 2; }
  .hero::after { background: linear-gradient(0deg, rgba(7,17,43,.95) 10%, rgba(7,17,43,.35) 70%, rgba(7,17,43,.25)); }
}

/* ---------- Capacity ---------- */
.cap { margin-top: 12px; }
.cap-bar { height: 6px; background: rgba(127,140,170,.25); border-radius: 99px; overflow: hidden; }
.cap-bar i { display: block; height: 100%; background: var(--ok); border-radius: 99px; }
.cap-bar i.low { background: var(--signal); }
.cap-text { display: flex; justify-content: space-between; font-size: .82rem; margin-top: 6px; color: var(--muted); }
.on-dark .cap-text, .next-card .cap-text { color: rgba(255,255,255,.8); }
.cap-text b { color: var(--ink); font-weight: 650; }
.next-card .cap-text b { color: #fff; }

/* ---------- Stats strip ---------- */
.stats { background: var(--blue); color: #fff; }
.stats .wrap { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; }
.stat { padding: 28px 20px; border-left: 1px solid rgba(255,255,255,.18); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat b { font-family: var(--font-display); font-stretch: 125%; font-weight: 800; font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1; display: block; }
.stat span { opacity: .8; font-size: .92rem; }
@media (max-width: 720px) {
  .stats .wrap { grid-auto-flow: row; grid-template-columns: 1fr 1fr; }
  .stats .stat:first-child:nth-last-child(odd) { grid-column: 1 / -1; }
  .stat { padding: 20px 0 20px 16px; }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.18); }
}
/* ---------- Sections ---------- */
section { padding: clamp(32px, 3.6vw, 52px) 0; }
/* direkt unter dem Kopfband weniger Luft */
.page-hero + section, .ev-hero + section { padding-top: clamp(24px, 2.4vw, 34px); }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 24px; flex-wrap: wrap; }
.sec-head h2 { margin-top: 10px; max-width: 26ch; }
.on-dark { background: var(--night); color: #fff; }
.on-dark .eyebrow { color: #8fb0ff; }
.on-dark .lead { color: rgba(255,255,255,.72); }

/* ---------- Chips ---------- */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; justify-content: center; white-space: nowrap;
  border: 1.5px solid var(--line); background: #fff; color: var(--ink);
  height: var(--ctl-h-sm); padding: 0 1em; border-radius: 6px; font-weight: 600; font-size: .9rem;
  transition: all .15s;
}
.chip:hover { border-color: var(--ink); }
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }
/* auf dunklem Kopfband: aktiver Reiter hell */
.page-hero .chip.active { background: #fff; color: var(--night); border-color: #fff; }
/* ---------- Event cards ---------- */
.events { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 22px; }
.scroller { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, 360px); gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 18px; margin: 0 -4px; scrollbar-width: thin; }
.scroller > * { scroll-snap-align: start; }
.ev {
  background: #fff; border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.ev:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.ev-img { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.ev-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.ev:hover .ev-img img { transform: scale(1.05); }
.ev-date {
  position: absolute; left: 14px; top: 14px; background: #fff; color: var(--ink);
  border-radius: 8px; padding: 8px 12px; text-align: center; line-height: 1; box-shadow: var(--shadow);
}
.ev-date b { display: block; font-family: var(--font-display); font-stretch: 125%; font-size: 1.5rem; }
.ev-date span { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--blue); }
.ev-type { position: absolute; right: 14px; top: 14px; }
.tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .4em .8em; border-radius: 4px; background: var(--blue-50); color: var(--blue); }
.tag.kurs { background: #e6f7ef; color: #087a4e; }
.tag.dark { background: rgba(7,17,43,.7); color: #fff; backdrop-filter: blur(6px); }
.tag.hot { background: var(--signal); color: #fff; }
.ev-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.ev-body h3 { margin-bottom: 8px; }
.ev-body p { color: var(--muted); font-size: .94rem; margin: 0 0 14px; }
.ev-meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: .85rem; color: var(--muted); }
.ev-meta span { display: inline-flex; align-items: center; gap: 5px; }
.ev-foot { margin-top: auto; padding-top: 16px; display: flex; align-items: end; justify-content: space-between; gap: 12px; }
.price b { font-family: var(--font-display); font-stretch: 125%; font-size: 1.5rem; }
.price small { display: block; color: var(--muted); font-size: .78rem; }
.ico { width: 16px; height: 16px; flex: none; }

/* ---------- Bento (Abteilungen) ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 220px; gap: 18px; }
.tile { position: relative; border-radius: var(--r-lg); overflow: hidden; padding: 26px; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; background: var(--night-2); isolation: isolate; transition: transform .2s; }
.tile:hover { transform: translateY(-3px); }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s; }
.tile:hover img { transform: scale(1.05); }
.tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(7,17,43,.9), rgba(7,17,43,.05) 70%); }
.tile.plain::before { display: none; }
.tile h3 { font-size: clamp(1.4rem, 2.2vw, 2rem); }
.tile p { margin: 8px 0 0; opacity: .82; font-size: .95rem; max-width: 40ch; }
.tile .go { position: absolute; top: 22px; right: 22px; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.16); display: grid; place-items: center; backdrop-filter: blur(6px); transition: background .2s, transform .2s; }
.tile:hover .go { background: var(--signal); transform: rotate(-45deg); }
.t-lehr { grid-column: span 4; grid-row: span 2; }
.t-renn { grid-column: span 2; grid-row: span 2; }
.t-lang { grid-column: span 3; background: linear-gradient(135deg, #0e2a6b, #1d4fc4); }
.t-gym { grid-column: span 3; background: linear-gradient(135deg, #1a1f36, #3b2f6b); }
.tile .big-ico { position: absolute; right: -10px; bottom: -20px; width: 160px; height: 160px; opacity: .12; z-index: -1; }
@media (max-width: 860px) {
  .bento { grid-template-columns: 1fr 1fr; grid-auto-rows: 200px; }
  .t-lehr { grid-column: span 2; grid-row: span 2; }
  .t-renn { grid-column: span 2; grid-row: span 1; }
  .t-lang, .t-gym { grid-column: span 1; }
}
@media (max-width: 520px) {
  .t-lang, .t-gym { grid-column: span 2; }
}

/* ---------- News ---------- */
.news-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 22px; }
.news-feature { position: relative; border-radius: var(--r-lg); overflow: hidden; min-height: 460px; display: flex; align-items: flex-end; color: #fff; isolation: isolate; }
.news-feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.news-feature::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(7,17,43,.92), rgba(7,17,43,0) 65%); }
.news-feature .inner { padding: 30px; }
.news-feature h3 { font-size: clamp(1.35rem, 2vw, 1.75rem); margin: 10px 0; }
.news-feature p { opacity: .85; margin: 0; }
.news-list { display: flex; flex-direction: column; gap: 4px; }
.news-item { display: grid; grid-template-columns: 96px 1fr; gap: 18px; padding: 16px; border-radius: var(--r); transition: background .15s; align-items: center; }
.news-item:hover { background: #fff; box-shadow: var(--shadow); }
.news-thumb { width: 96px; height: 96px; border-radius: 8px; overflow: hidden; background: var(--blue); display: grid; place-items: center; color: #fff; font-family: var(--font-display); font-stretch: 125%; font-weight: 800; }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-item h3 { font-size: 1.08rem; margin: 4px 0; }
.news-item p { margin: 0; color: var(--muted); font-size: .9rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-date { font-size: .78rem; color: var(--muted); font-weight: 600; }
.news-date .tag { margin-right: 6px; font-size: .65rem; }
@media (max-width: 860px) { .news-grid { grid-template-columns: 1fr; } .news-feature { min-height: 360px; } }

/* ---------- Membership ---------- */
.member { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: start; }
/* Like .split: the right column starts level with the heading, not with the eyebrow above it. */
@media (min-width: 901px) { .member:has(> div > .eyebrow:first-child) > :not(:has(> .eyebrow:first-child)) { margin-top: 40px; } }
.perks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.perks li { display: flex; gap: 12px; align-items: flex-start; }
.perks .ck { flex: none; width: 26px; height: 26px; border-radius: 50%; background: rgba(143,176,255,.18); color: #8fb0ff; display: grid; place-items: center; }
.fees { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fee { background: var(--night-2); border: 1px solid rgba(255,255,255,.1); border-radius: var(--r-lg); padding: 24px; position: relative; transition: border-color .2s, transform .2s; }
.fee:hover { border-color: rgba(143,176,255,.6); transform: translateY(-3px); }
.fee h3 { font-size: 1.15rem; }
.fee .desc { opacity: .7; font-size: .88rem; }
.fee .amt { font-family: var(--font-display); font-stretch: 125%; font-weight: 800; font-size: 2.1rem; margin-top: 18px; line-height: 1; }
.fee .amt small { font-family: var(--font-body); font-stretch: 100%; font-size: .85rem; font-weight: 500; opacity: .7; }
@media (max-width: 900px) { .member { grid-template-columns: 1fr; gap: 36px; } }
@media (max-width: 460px) { .fees { grid-template-columns: 1fr; } }
/* ---------- Sponsors ---------- */
.sponsors { padding: 18px 0 40px; background: #fff; border-top: 1px solid var(--line); }
.sponsors p { text-align: center; color: var(--muted); font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; margin: 0 0 28px; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 64px; width: max-content; animation: marquee 30s linear infinite; }
.marquee img { height: 56px; width: auto; filter: grayscale(1); opacity: .7; transition: all .2s; mix-blend-mode: multiply; }
.marquee a { flex: none; display: block; }
.marquee a:hover img, .marquee a:focus-visible img { filter: none; opacity: 1; }
/* Hovering or focusing a logo stops the strip so it can be clicked. */
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: rgba(255,255,255,.75); padding: 72px 0 28px; font-size: .94rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.site-footer h4 { color: #fff; font-family: var(--font-display); font-stretch: 115%; font-size: .95rem; margin: 0 0 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a:hover { color: #fff; }
.foot-cta { font-family: var(--font-display); font-stretch: 112%; font-weight: 800; font-size: clamp(1.35rem, 2.4vw, 1.9rem); color: #fff; line-height: 1.2; margin-bottom: 40px; }
.foot-cta a { color: #8fb0ff; white-space: nowrap; }
.foot-cta a:hover { color: #fff; }
.social { display: flex; gap: 10px; margin-top: 18px; }
.social a { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.08); display: grid; place-items: center; }
.social a:hover { background: var(--blue); }
.foot-bottom { margin-top: 56px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .84rem; }
.foot-bottom nav { display: flex; gap: 18px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
/* ---------- Page header (Unterseiten) ---------- */
.page-hero { padding: calc(var(--hdr-h) + 28px) 0 36px; background: var(--night); color: #fff; position: relative; overflow: hidden; }
.page-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.page-hero .wrap { position: relative; }
.page-hero h1 { font-size: clamp(1.8rem, 3.3vw, 2.7rem); }
.page-hero .lead { color: rgba(255,255,255,.78); margin-top: 12px; }

/* ---------- Programm-Liste ---------- */
.toolbar { display: flex; gap: 14px; justify-content: space-between; align-items: center; flex-wrap: wrap; margin-bottom: 30px; position: sticky; top: var(--hdr-h); z-index: 10; background: rgba(246,248,252,.92); backdrop-filter: blur(10px); padding: 14px 0; }
.month { font-family: var(--font-display); font-stretch: 125%; font-weight: 800; font-size: 1.1rem; margin: 40px 0 16px; display: flex; align-items: center; gap: 14px; color: var(--muted); }
.month::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.row-ev { display: grid; grid-template-columns: 92px 200px 1fr auto; gap: 24px; align-items: center; background: #fff; border-radius: var(--r-lg); padding: 16px; box-shadow: var(--shadow); margin-bottom: 14px; transition: transform .2s, box-shadow .2s; }
.row-ev:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
/* Club dates (no booking): slim row without image, price and places. */
.row-ev.club { grid-template-columns: 92px 1fr auto; padding: 12px 16px; box-shadow: none; border: 1px solid var(--line); }
.row-ev.club:hover { box-shadow: var(--shadow); }
.row-ev.club .row-date b { font-size: 1.6rem; }
.row-ev.club .row-date span { color: var(--muted); }
.row-ev.club .row-main h3 { margin: 6px 0 4px; font-size: 1.12rem; }
.row-ev.club .row-side { min-width: 0; }
.row-date { text-align: center; line-height: 1; }
.row-date b { display: block; font-family: var(--font-display); font-stretch: 125%; font-size: 2rem; font-weight: 800; }
.row-date span { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--blue); }
.row-date small { display: block; margin-top: 6px; color: var(--muted); font-size: .75rem; }
.row-img { width: 200px; height: 130px; border-radius: 8px; overflow: hidden; }
.row-img img { width: 100%; height: 100%; object-fit: cover; }
.row-main h3 { margin: 8px 0 6px; }
.row-main p { margin: 0 0 10px; color: var(--muted); font-size: .94rem; }
.row-side { text-align: right; min-width: 170px; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.row-side .cap { width: 170px; margin: 0; }
.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
@media (max-width: 900px) {
  .row-ev { grid-template-columns: 70px 1fr; }
  .row-img { display: none; }
  .row-side { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; text-align: left; }
  .row-side .cap { width: 140px; }
  .row-ev.club { grid-template-columns: 70px 1fr; }
  .row-ev.club .row-side { display: none; }
}

/* ---------- Event-Detail ---------- */
.ev-hero { position: relative; min-height: 52vh; display: flex; align-items: flex-end; color: #fff; background: var(--night); overflow: hidden; }
.ev-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ev-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7,17,43,.95) 5%, rgba(7,17,43,.2) 70%); }
.ev-hero .wrap { position: relative; z-index: 2; width: 100%; padding-top: calc(var(--hdr-h) + 40px); padding-bottom: 40px; }
.ev-hero h1 { font-size: clamp(1.8rem, 3.6vw, 3rem); max-width: 18ch; margin: 16px 0; }
.ev-hero .ev-meta { color: rgba(255,255,255,.85); font-size: 1rem; gap: 22px; }
.detail { display: grid; grid-template-columns: 1fr 380px; gap: 48px; align-items: start; }
.detail .prose p { font-size: 1.1rem; color: #2c3547; }
.detail h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 48px 0 18px; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.checks li { background: #fff; border-radius: var(--r); padding: 16px 18px; display: flex; gap: 12px; align-items: flex-start; box-shadow: var(--shadow); }
.checks .ck { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; }
.timeline { list-style: none; padding: 0; margin: 0; border-left: 2px dashed var(--ice); margin-left: 8px; }
.timeline li { position: relative; padding: 0 0 22px 28px; }
.timeline li::before { content: ""; position: absolute; left: -8px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--blue); }
.timeline b { font-family: var(--font-display); font-stretch: 115%; display: block; }
.contact-card { display: flex; gap: 16px; align-items: center; background: #fff; border-radius: var(--r-lg); padding: 18px; box-shadow: var(--shadow); }
.avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: var(--blue); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-stretch: 125%; font-weight: 800; font-size: 1.2rem; flex: none; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }

.book { position: sticky; top: 116px; background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 26px; }
.book .price-big { font-family: var(--font-display); font-stretch: 125%; font-weight: 800; font-size: 2.6rem; line-height: 1; }
.toggle { display: grid; grid-template-columns: 1fr 1fr; background: var(--snow); border-radius: 6px; padding: 4px; margin: 16px 0; }
.toggle button { border: 0; background: transparent; padding: .6em; border-radius: 6px; font-weight: 600; font-size: .9rem; color: var(--muted); }
.toggle button.on { background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.facts { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 12px; font-size: .93rem; }
.facts li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.facts li span { color: var(--muted); }
.facts li b { text-align: right; font-weight: 600; }
.book .btn { width: 100%; justify-content: center; }
.book .hint { font-size: .8rem; color: var(--muted); text-align: center; margin-top: 12px; }
@media (max-width: 960px) {
  .detail { grid-template-columns: 1fr; }
  .book { position: static; }
  .checks { grid-template-columns: 1fr; }
}
/* ---------- Modal / Booking ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(7,17,43,.6); backdrop-filter: blur(6px); }
.modal.open { display: flex; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.dialog { background: #fff; border-radius: var(--r-lg); width: min(100%, 560px); max-height: 92vh; overflow: auto; padding: 28px; box-shadow: var(--shadow-lg); animation: up .25s ease; }
@keyframes up { from { transform: translateY(20px); } }
.dialog-head { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.dialog-head h3 { font-size: 1.4rem; }
.x { border: 0; background: var(--snow); width: 38px; height: 38px; border-radius: 50%; font-size: 1.2rem; flex: none; }
.steps { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; margin: 20px 0 24px; }
.steps div { height: 5px; border-radius: 99px; background: var(--line); }
.steps div.on { background: var(--blue); }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: .85rem; font-weight: 600; }
.field input:not([type=checkbox]):not([type=radio]), .field select { height: var(--ctl-h); }
.field input, .field select, .field textarea { font: inherit; padding: .8em 1em; border: 1.5px solid var(--line); border-radius: 6px; background: #fff; outline: none; transition: border-color .15s, box-shadow .15s; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-50); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .grid2 { grid-template-columns: 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; margin: 10px 0; }
/* Checkbox mit fester Größe – darf vom Text daneben nicht gestaucht werden */
.check input {
  flex: none; appearance: none; -webkit-appearance: none; margin: 1px 0 0;
  width: 22px; height: 22px; border: 2px solid #b8c2d4; border-radius: 6px; background: #fff;
  display: grid; place-items: center; cursor: pointer; transition: background .15s, border-color .15s;
}
.check input::after { content: ""; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) translate(-1px, -1px); opacity: 0; }
.check input:checked { background: var(--blue); border-color: var(--blue); }
.check input:checked::after { opacity: 1; }
.check input:focus-visible { outline: 3px solid var(--ice); outline-offset: 2px; }
.check span { line-height: 1.5; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.seg label { border: 1.5px solid var(--line); border-radius: 8px; padding: 14px; cursor: pointer; display: block; }
.seg input { display: none; }
.seg input:checked + span { color: var(--blue); }
.seg label:has(input:checked) { border-color: var(--blue); background: var(--blue-50); }
.seg b { display: block; }
.seg small { color: var(--muted); }
.summary { background: var(--snow); border-radius: var(--r); padding: 16px; margin: 10px 0 16px; font-size: .93rem; }
.summary div { display: flex; justify-content: space-between; padding: 4px 0; }
.summary .total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; font-weight: 700; font-size: 1.05rem; }
.dialog-foot { display: flex; justify-content: space-between; gap: 10px; margin-top: 18px; }
.success { text-align: center; padding: 20px 0; }
.success .big { width: 84px; height: 84px; border-radius: 50%; background: #e6f7ef; color: var(--ok); display: grid; place-items: center; margin: 0 auto 18px; }
/* ---------- Lehrteam ---------- */
.levels { display: grid; grid-template-columns: repeat(4, 1fr); column-gap: 14px; row-gap: 14px; }
/* Kacheln teilen sich die Zeilen (subgrid): Nummer, Titel und die drei Angaben stehen nebeneinander auf gleicher Höhe */
.level { display: grid; grid-template-rows: subgrid; grid-row: span 8; row-gap: 0; align-content: start; background: #fff; border: 2px solid transparent; border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow); }
.level .n { font-family: var(--font-display); font-stretch: 125%; font-weight: 800; font-size: 3rem; line-height: 1; color: var(--blue); }
.level h3 { margin: 8px 0 10px; }
.level dl { display: grid; grid-template-rows: subgrid; grid-row: span 6; margin: 0; font-size: .88rem; }
.level dt { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; margin-top: 10px; }
.level dd { margin: 2px 0 0; }
.slope { height: 10px; border-radius: 99px; background: linear-gradient(90deg, #10a36a, #1d6bff, #0b1426); margin: 28px 0 8px; position: relative; }
.slope-labels { display: flex; justify-content: space-between; font-size: .78rem; color: var(--muted); font-weight: 600; }
@media (max-width: 900px) { .levels { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .levels { grid-template-columns: 1fr; } }

.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 18px; }
.person { background: #fff; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s; }
.person:hover { transform: translateY(-3px); }
.person .ph { aspect-ratio: 1; background: linear-gradient(135deg, var(--blue), #3d6bff); display: grid; place-items: center; color: #fff; font-family: var(--font-display); font-stretch: 125%; font-weight: 800; font-size: 2.4rem; position: relative; }
.person .ph.sb { background: linear-gradient(135deg, #0b1426, #34417a); }
.person .ph img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.person .info { padding: 14px 16px 16px; }
.person b { display: block; font-size: .98rem; }
.person small { color: var(--muted); font-size: .82rem; }
.person .role { display: inline-block; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--signal); margin-bottom: 2px; }

/* ---------- Konzept ---------- */
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.sw { border-radius: var(--r); overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.sw div { height: 110px; }
.sw p { margin: 0; padding: 12px 14px; font-size: .85rem; }
.sw p b { display: block; font-size: .95rem; }
.cmp { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.cmp > div { background: #fff; border-radius: var(--r-lg); padding: 26px; box-shadow: var(--shadow); }
.cmp ul { margin: 12px 0 0; padding-left: 1.1em; }
.cmp li { margin: 4px 0; }
.cmp .old { color: var(--muted); }
.cmp h3 small { font-family: var(--font-body); font-stretch: 100%; font-weight: 500; font-size: .8rem; color: var(--muted); display: block; margin-top: 4px; letter-spacing: 0; }
@media (max-width: 760px) { .cmp { grid-template-columns: 1fr; } }
.stack { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.stack > div { background: #fff; border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow); }
.stack h3 { font-size: 1.1rem; margin: 10px 0 6px; }
.stack p { margin: 0; color: var(--muted); font-size: .93rem; }
/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, .reveal { animation: none !important; transition: none !important; opacity: 1 !important; transform: none !important; }
}

.proto-note { position: fixed; left: 16px; bottom: 16px; z-index: 60; background: var(--ink); color: #fff; font-size: .78rem; padding: .55em 1em; border-radius: 4px; opacity: .85; }
.proto-note a { text-decoration: underline; }
/* ---------- Mobile-Feinschliff ---------- */
.price b { white-space: nowrap; }
@media (max-width: 640px) {
  .page-hero h1 { font-size: clamp(1.7rem, 8vw, 2.3rem); overflow-wrap: anywhere; hyphens: auto; }
  .page-hero { padding: calc(var(--hdr-h) + 28px) 0 36px; }
  .toolbar { flex-direction: column; align-items: stretch; gap: 10px; padding: 10px 0; }
  .toolbar .chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); scrollbar-width: none; }
  .toolbar .chips::-webkit-scrollbar { display: none; }
  .chip { white-space: nowrap; }
  .row-side { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 10px 16px; }
  .row-side .cap { grid-column: 1 / -1; width: 100%; order: -1; }
  .row-side .btn { justify-self: end; }
  .row-main h3 { font-size: 1.2rem; }
  .sec-head .chips { flex-wrap: nowrap; overflow-x: auto; width: 100%; scrollbar-width: none; }
  .hero h1 { font-size: clamp(2.1rem, 9.5vw, 2.9rem); }
}
@media (max-width: 1100px) {
  .site-header .bar { gap: 12px; }
}
@media (max-width: 440px) {
  .brand-logo img { height: 52px; }
}
/* ---------- Rennteam ---------- */
.racer-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
/* Landscape head shots as in the Jahresheft (477x312); older 3:4 portraits are cropped to the face. */
.person .ph.portrait { aspect-ratio: 3/2; }
.person .ph.portrait img { object-position: 50% 30%; }
.person .jg { position: absolute; right: 10px; bottom: 10px; z-index: 2; background: rgba(7,17,43,.75); backdrop-filter: blur(6px); color: #fff; font-size: .95rem; padding: .2em .55em; border-radius: 8px; }
.races { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.race { display: grid; grid-template-columns: 70px 1fr; gap: 18px; background: var(--snow); border-radius: var(--r-lg); padding: 20px; align-items: start; }
.race h3 { font-size: 1.15rem; }
.pdfs { display: flex; flex-wrap: wrap; gap: 8px; }
.pdf { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1.5px solid var(--line); border-radius: 6px; padding: .4em .5em .4em .9em; font-size: .85rem; font-weight: 600; transition: border-color .15s; }
.pdf:hover { border-color: var(--blue); color: var(--blue); }
.pdf span { background: var(--signal-50); color: var(--signal); font-size: .65rem; font-weight: 800; padding: .25em .5em; border-radius: 4px; }
.places { display: flex; gap: 5px; }
.places i { font-style: normal; font-family: var(--font-display); font-stretch: 115%; font-weight: 800; font-size: .85rem; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1.5px solid var(--line); }
.places i.p1 { background: #f5c518; border-color: #f5c518; color: #3a2c00; }
.places i.p2 { background: #d5dbe5; border-color: #d5dbe5; }
.places i.p3 { background: #e0a370; border-color: #e0a370; color: #3d1f05; }
@media (max-width: 420px) { .races { grid-template-columns: 1fr; } }

/* "Rennteam Steckbriefe" and "Rennergebnisse" stay below the header while their section scrolls,
   so you always see which part (and season) you are in. */
.sec-head.sticky-head { position: sticky; top: var(--hdr-h); z-index: 7; margin-bottom: 8px; padding: 14px 0 12px; background: rgba(246,248,252,.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
#saisons .sec-head.sticky-head { background: rgba(255,255,255,.94); }
/* "Kader & Ergebnisse": season switch, squad list of a past season, races */
.season-switch { margin: 4px 0 28px; }
#saisons .sub-head { font-size: 1.15rem; margin: 8px 0 14px; color: var(--muted); }
#saisons .sub-head ~ .sub-head { margin-top: 36px; }
.squad-list { background: var(--snow); border-radius: var(--r-lg); padding: 20px 22px; }
.squad-list > div + div { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.squad-list b { display: block; font-family: var(--font-display); font-stretch: 112%; font-size: .95rem; margin-bottom: 6px; }
.squad-list ul { list-style: none; margin: 0; padding: 0; columns: 200px; column-gap: 28px; }
.squad-list li { font-size: .94rem; padding: 2px 0; break-inside: avoid; }
.squad-list li span { color: var(--muted); font-size: .85rem; }
/* Race card: title with optional "Highlight" tag, tally of podium places, overlay button */
.race-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tally { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 12px 0 2px; font-size: .88rem; font-weight: 600; }
.tally > span { display: inline-flex; align-items: center; gap: 6px; }
.tally i { font-style: normal; font-family: var(--font-display); font-stretch: 115%; font-weight: 800; font-size: .7rem; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; }
.tally i.p1 { background: #f5c518; color: #3a2c00; }
.tally i.p2 { background: #d5dbe5; }
.tally i.p3 { background: #e0a370; color: #3d1f05; }
.tally .starters { color: var(--muted); font-weight: 500; }
.race .pdfs { margin-top: 12px; align-items: center; }
/* Results overlay: centred on desktop, a sheet from the bottom on phones */
.results-dialog { width: min(100%, 720px); }
.results-meta { margin: 4px 0 0; color: var(--muted); font-size: .92rem; }
.results-scroll { margin-top: 18px; overflow-x: auto; }
.result-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.result-table th { text-align: left; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 0 8px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.result-table th abbr { text-decoration: none; cursor: help; }
.result-table td { padding: 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.result-table td:nth-child(2) { white-space: normal; font-weight: 600; }
.result-table .place { text-align: center; width: 56px; }
.result-table .places { justify-content: center; }
.result-table .tag { font-size: .66rem; }
.result-table .none { color: var(--muted); }
.results-pdfs { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.results-pdfs > span { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 640px) {
  .modal.sheet { align-items: flex-end; padding: 0; }
  .modal.sheet .dialog { width: 100%; max-height: 88vh; border-radius: var(--r-lg) var(--r-lg) 0 0; padding: 22px 16px; }
  .result-table td, .result-table th { padding-left: 4px; padding-right: 4px; }
  .result-table .place { width: 42px; }
}
/* Overall standings of a season */
.standings { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.standings li { display: grid; grid-template-columns: 40px auto 1fr; gap: 12px; align-items: center; background: var(--snow); border-radius: var(--r); padding: 10px 14px; }
.standings li > span:last-child { color: var(--muted); }
@media (max-width: 560px) { .standings li { grid-template-columns: 40px 1fr; } .standings li > span:last-child { grid-column: 2; } }
/* Race photo at the top of the results overlay */
.results-photo { display: block; width: calc(100% + 56px); max-width: none; height: 200px; object-fit: cover; margin: -28px -28px 20px; border-radius: var(--r-lg) var(--r-lg) 0 0; }
@media (max-width: 640px) { .results-photo { width: calc(100% + 32px); margin: -22px -16px 16px; height: 160px; } }
/* ---------- Fließtext (Artikel, Rechtliches) ---------- */
.prose-wrap { max-width: 760px; margin: 0 auto; }
.rich { font-size: 1rem; color: #2c3547; }
.rich h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin: 40px 0 14px; color: var(--ink); }
.rich h3, .rich h4 { font-family: var(--font-display); font-stretch: 112%; font-weight: 800; font-size: 1.15rem; margin: 32px 0 10px; color: var(--ink); letter-spacing: -.01em; }
.rich p { margin: 0 0 16px; }
.rich ul, .rich ol { padding-left: 1.3em; margin: 0 0 16px; }
.rich li { margin: 6px 0; }
.rich blockquote { margin: 0 0 18px; padding: 6px 0 6px 18px; border-left: 4px solid var(--blue); color: var(--ink); font-size: 1.1rem; }
.rich hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }
.rich img { display: block; max-width: 100%; height: auto; border-radius: var(--r); margin: 8px 0 18px; }
.rich a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.rich table { width: 100%; border-collapse: collapse; margin: 10px 0 22px; font-size: .95rem; background: #fff; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.rich td, .rich th { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.rich > h2:first-child { display: none; }
.toc { position: sticky; top: calc(var(--hdr-h) + 24px); display: grid; gap: 4px; font-size: .9rem; }
.toc a { padding: 6px 12px; border-radius: 6px; color: var(--muted); }
.toc a:hover { background: #fff; color: var(--blue); }
.legal { display: grid; grid-template-columns: 240px 1fr; gap: 48px; align-items: start; }
.legal.single { grid-template-columns: 1fr; }
.legal .toc:empty { display: none; }
/* erste sichtbare Zeile des Textes auf Höhe des Inhaltsverzeichnisses */
.legal .rich > h2:first-child + * { margin-top: 0; }
.legal .toc a { padding: 6px 12px; line-height: 1.35; }
@media (max-width: 900px) { .legal { grid-template-columns: 1fr; } .toc { position: static; display: flex; flex-wrap: wrap; } }
.art-hero { position: relative; aspect-ratio: 21/9; max-height: 460px; border-radius: var(--r-lg); overflow: hidden; margin: -64px 0 36px; box-shadow: var(--shadow-lg); background: var(--blue); }
.art-hero img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
@media (max-width: 640px) { .art-hero { margin-top: -32px; aspect-ratio: 4/3; } }
.page-hero.with-img { padding-bottom: 96px; }
@media (max-width: 640px) { .page-hero.with-img { padding-bottom: 60px; } }
/* ---------- Vorstand ---------- */
.board-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
.member-card { background: #fff; border-radius: var(--r-lg); padding: 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; }
/* Board photos are 3:4 portraits: shown whole (no round crop that cuts off heads and chins). */
.member-card .avatar { width: 108px; height: 144px; border-radius: 12px; font-size: 1.6rem; margin-bottom: 12px; }
.member-card b { font-size: 1.02rem; }
.member-card .role { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--blue); }
.member-card a { margin-top: 10px; font-size: .85rem; font-weight: 600; color: var(--blue); }
.link-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.link-tile { position: relative; background: #fff; border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow); transition: transform .2s; min-height: 150px; display: flex; flex-direction: column; justify-content: flex-end; }
.link-tile:hover { transform: translateY(-3px); }
.link-tile h3 { font-size: 1.25rem; }
.link-tile p { margin: 6px 0 0; color: var(--muted); font-size: .9rem; }
.link-tile .go { position: absolute; top: 18px; right: 18px; color: var(--blue); font-size: 1.3rem; }
/* ---------- Galerie ---------- */
.gal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.gal { display: flex; flex-direction: column; align-self: stretch; width: 100%; background: #fff; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); cursor: pointer; border: 0; padding: 0; text-align: left; font: inherit; color: inherit; transition: transform .2s; }
.gal:hover { transform: translateY(-3px); }
.gal-thumbs { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 3px; aspect-ratio: 4/3; width: 100%; overflow: hidden; background: var(--line); }
.gal-thumbs img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.gal-thumbs img:first-child { grid-row: span 2; }
.gal-info { display: flex; flex-direction: column; align-items: flex-start; padding: 14px 16px 16px; }
.gal-info b { display: block; font-family: var(--font-display); font-stretch: 112%; font-size: 1.08rem; }
.gal-info small { color: var(--muted); }
.lightbox { position: fixed; inset: 0; z-index: 120; background: rgba(4,9,24,.94); display: none; align-items: center; justify-content: center; padding: 60px 16px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 6px; object-fit: contain; }
.lb-btn { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 1.4rem; display: grid; place-items: center; }
.lb-btn:hover { background: rgba(255,255,255,.25); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; } .lb-next { right: 16px; top: 50%; }
.lb-cap { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.8); font-size: .9rem; }

.gal-grid + .month { margin-top: 48px; }
/* Archive bar below the latest seasons */
.gal-archive { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); }
.gal-archive > span { font-family: var(--font-display); font-stretch: 125%; font-weight: 800; font-size: 1rem; color: var(--muted); }
.gal-archive .chips { margin: 0; }
.gal-archive .chip small { margin-left: 6px; color: var(--muted); font-weight: 600; }
/* Album page */
.album-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.album-meta .btn-line { color: #fff; border-color: rgba(255,255,255,.45); }
.album-meta .btn-line:hover { border-color: #fff; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.photo-grid button { display: block; padding: 0; border: 0; border-radius: 8px; overflow: hidden; aspect-ratio: 4/3; background: var(--line); cursor: zoom-in; }
.photo-grid img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.photo-grid button:hover img { transform: scale(1.04); }
.album-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); }
.album-nav a { display: flex; flex-direction: column; gap: 2px; max-width: 48%; }
.album-nav a.next { text-align: right; margin-left: auto; }
.album-nav small { color: var(--muted); font-size: .82rem; }
.album-nav b { font-family: var(--font-display); font-stretch: 112%; font-size: 1.05rem; }
.album-nav a:hover b { color: var(--blue); }
@media (max-width: 560px) {
  .photo-grid { grid-template-columns: repeat(3, 1fr); gap: 4px; }
  .photo-grid button { border-radius: 4px; aspect-ratio: 1; }
}
/* ---------- Diverses ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.split img.rounded { width: 100%; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); object-fit: cover; max-height: 520px; position: sticky; top: calc(var(--hdr-h) + 24px); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 28px; } }
/* Bild oder Liste neben einem Text mit Kennzeile: Oberkante auf Höhe der Überschrift, nicht der Kennzeile */
@media (min-width: 861px) { .split:has(> div > .eyebrow:first-child) > :not(:has(> .eyebrow:first-child)) { margin-top: 40px; } }
.info-list { list-style: none; padding: 0; margin: 22px 0; display: grid; gap: 12px; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; background: #fff; border-radius: var(--r); padding: 14px 16px; box-shadow: var(--shadow); }
.info-list .ico-box { flex: none; width: 38px; height: 38px; border-radius: 6px; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; }
.info-list b { display: block; }
.info-list span { color: var(--muted); font-size: .93rem; }
.notice { background: var(--signal-50); border: 1.5px dashed var(--signal); color: #8a2a0c; border-radius: var(--r); padding: 14px 18px; font-size: .92rem; margin-bottom: 28px; }
.cover { width: 100%; max-width: 420px; border-radius: 8px; box-shadow: 0 30px 60px rgba(7,17,43,.3); transform: rotate(-2deg); transition: transform .3s; }
.cover:hover { transform: rotate(0) scale(1.02); }
.news-cards .ev-img { aspect-ratio: 16/10; }

/* ---------- Mobile: nichts darf seitlich überstehen ---------- */
html, body { overflow-x: clip; }
.legal > *, .news-grid > *, .detail > *, .split > * { min-width: 0; }
@media (max-width: 640px) {
  .toolbar .chips { margin: 0; padding: 0; }
}
@media (max-width: 900px) {
  .toc { display: none; }
}

.marquee img { object-fit: contain; }

/* ---------- Social-Links (Kontakt) ---------- */
.social-list { display: grid; gap: 10px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.social-row { display: grid; grid-template-columns: 42px 1fr auto; gap: 12px; align-items: center; padding: 8px; margin: 0 -8px; border-radius: 8px; transition: background .15s; }
.social-row:hover { background: var(--snow); }
.social-row b { display: block; font-size: .95rem; }
.social-row small { color: var(--muted); font-size: .82rem; }
.social-ico { width: 42px; height: 42px; border-radius: 6px; display: grid; place-items: center; }
.social-ico.insta { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.social-ico.fb { background: #1877f2; }
.social-go { color: var(--muted); transition: color .15s, transform .15s; }
.social-row:hover .social-go { color: var(--blue); transform: translate(2px, -2px); }
.social-ico { background: none !important; }
.social-ico img { width: 34px; height: 34px; }

/* Icons in Buttons optisch mittig zum Text */
.btn > span { display: inline-flex; align-items: center; }
.btn svg { display: block; flex: none; }
/* ==========================================================================
   Hauptmenü mit Ausklapp-Menüs
   ========================================================================== */
.mnav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.mnav .ni { position: relative; }
.mnav .top {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  padding: .55em .95em; border-radius: 6px; border: 0; background: none; color: inherit;
  font: inherit; font-weight: 550; font-size: .95rem; opacity: .92; cursor: pointer;
}
.mnav .chev { transition: transform .2s; opacity: .7; }
.mnav .ni.open .chev { transform: rotate(180deg); }
.mnav .ni:hover .top, .mnav .ni.open .top, .mnav .ni.active .top { background: rgba(255,255,255,.14); opacity: 1; }
.site-header.solid .mnav .ni:hover .top, .site-header.solid .mnav .ni.open .top, .site-header.solid .mnav .ni.active .top,
.site-header.light .mnav .ni:hover .top, .site-header.light .mnav .ni.open .top, .site-header.light .mnav .ni.active .top { background: var(--blue-50); color: var(--blue); }
.mnav .top:focus-visible { outline: 3px solid var(--ice); outline-offset: 2px; }

.mnav .dd { position: absolute; top: 100%; left: 50%; transform: translate(-50%, 6px); padding-top: 10px; opacity: 0; visibility: hidden; transition: opacity .18s, transform .18s, visibility .18s; z-index: 60; }
.mnav .ni.open .dd { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
/* The last menu item sits at the right edge: its dropdown opens right-aligned instead of centred. */
.mnav .ni:last-child .dd { left: auto; right: 0; transform: translate(0, 6px); }
.mnav .ni:last-child.open .dd { transform: translate(0, 0); }
.dd-card { background: #fff; color: var(--ink); border-radius: 8px; box-shadow: 0 18px 50px rgba(7,17,43,.22), 0 0 0 1px rgba(7,17,43,.05); padding: 8px; display: grid; min-width: 280px; }
.dd-card a { display: block; padding: 10px 14px; border-radius: 6px; transition: background .12s; }
.dd-card a b { display: block; font-size: .95rem; font-weight: 650; }
.dd-card a small { display: block; color: var(--muted); font-size: .8rem; margin-top: 1px; }
.dd-card a:hover, .dd-card a:focus-visible { background: var(--snow); outline: none; }
.dd-card a:hover b, .dd-card a:focus-visible b { color: var(--blue); }
#dd1 .dd-card { grid-template-columns: 1fr 1fr; min-width: 520px; }

@media (max-width: 1100px) {
  .mnav { display: none; }
  .mnav.open {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: fixed; inset: var(--hdr-h) 0 0 0; margin: 0; z-index: 49;
    background: #fff; color: var(--ink); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
    padding: 8px var(--gutter) calc(28px + env(safe-area-inset-bottom));
  }
  .mnav.open .ni { border-bottom: 1px solid var(--line); }
  .mnav.open .top {
    width: 100%; justify-content: space-between; padding: 18px 0; border-radius: 0;
    font-family: var(--font-display); font-stretch: 115%; font-weight: 800; font-size: 1.35rem; opacity: 1;
    background: none !important; color: var(--ink) !important;
  }
  .mnav.open .ni.active > .top { color: var(--blue) !important; }
  .mnav.open .dd { position: static; transform: none; padding: 0; opacity: 1; visibility: visible; display: none; }
  .mnav.open .ni.open .dd { display: block; transform: none; }
  .mnav.open .dd-card { box-shadow: none; padding: 0 0 14px; min-width: 0; grid-template-columns: 1fr !important; }
  .mnav.open .dd-card a { padding: 10px 12px; }
  body.menu-open { overflow: hidden; }
  /* Ohne backdrop-filter: sonst wird der Header zum Bezugsrahmen des fixierten Menüs und das Menü schrumpft nach dem Scrollen auf null */
  body.menu-open .site-header { background: #fff; color: var(--ink); box-shadow: 0 1px 0 var(--line); backdrop-filter: none; -webkit-backdrop-filter: none; }
  body.menu-open .logo-on-dark { display: none; }
  body.menu-open .logo-on-light { display: block; }
}
@media (max-width: 440px) {
  :root { --hdr-h: 68px; }
}

body.menu-open .proto-note { display: none; }

/* Vereinstermine in Karten */
.ev-when { display: grid; gap: 4px; font-size: .85rem; color: var(--muted); margin-top: 4px; }
.ev-when b { color: var(--ink); font-weight: 600; }
.free-tag { font-size: .82rem; font-weight: 600; color: var(--muted); }

/* ---------- Vereinskalender ---------- */
.cal-list { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.cal-row { display: grid; grid-template-columns: 64px 1fr auto; gap: 20px; align-items: center; padding: 16px 20px; border-top: 1px solid var(--line); transition: background .15s; }
.cal-row:first-child { border-top: 0; }
.cal-row:hover { background: #f8fafd; }
.cal-row:hover .cal-title { color: var(--blue); }
.cal-date { text-align: center; line-height: 1; }
.cal-date b { display: block; font-family: var(--font-display); font-stretch: 125%; font-weight: 800; font-size: 1.6rem; }
.cal-date span { font-size: .78rem; font-weight: 700; color: var(--blue); }
.cal-row.club .cal-date span { color: var(--muted); }
.cal-main { display: grid; gap: 4px; justify-items: start; min-width: 0; }
.cal-title { font-family: var(--font-display); font-stretch: 112%; font-weight: 800; font-size: 1.12rem; line-height: 1.2; }
.cal-meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: .86rem; color: var(--muted); }
.cal-meta span { display: inline-flex; align-items: center; gap: 5px; }
.cal-side { display: flex; align-items: center; gap: 14px; }
.cal-free { font-size: .85rem; color: var(--muted); white-space: nowrap; }
.tag.club { background: #f1f2f5; color: var(--muted); }
@media (max-width: 640px) {
  .cal-row { grid-template-columns: 50px 1fr; gap: 12px; padding: 14px; }
  .cal-side { grid-column: 2; justify-content: space-between; }
  .cal-date b { font-size: 1.5rem; }
}

/* Lange Originaltexte in Karten und Listen auf drei Zeilen kürzen */
.ev-body p, .row-main p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.lead p { margin: 0 0 12px; }

/* Eventkacheln: Titel, Text, Ort, Belegung und Preis stehen über alle Kacheln einer Reihe auf gleicher Höhe */
.ev-card { display: grid; grid-template-rows: subgrid; grid-row: span 6; row-gap: 0; }
.ev-card .ev-body { display: grid; grid-template-rows: subgrid; grid-row: span 5; row-gap: 0; }
.ev-card .ev-body > * { align-self: start; }
.ev-card .ev-foot { margin-top: 0; align-self: end; }
.ev-card .ev-foot small { white-space: nowrap; }

/* Rennteam: Saison-Auswahl */
.season-bar { background: #fff; border-bottom: 1px solid var(--line); }
.season-bar .wrap { display: flex; align-items: center; gap: 14px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.season-bar > .wrap > span { font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
