/* ============================================================
   Volleyball Club Döttingen — Prototyp
   Drei Themes über [data-theme]: night · volt · sunset
   ============================================================ */

/* ---------- Konstante Tokens ---------- */
:root {
  --maxw: 1180px;
  --pad: clamp(1.1rem, 4vw, 2.5rem);
  --radius: 14px;
  --radius-lg: 22px;
  --ff-display: "Big Shoulders Display", system-ui, sans-serif;
  --ff-body: "Hanken Grotesk", system-ui, -apple-system, sans-serif;
  --ff-mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.22,.61,.36,1);
  --shadow-sm: 0 1px 2px rgba(0,0,0,.10), 0 6px 18px rgba(0,0,0,.10);
  --shadow-md: 0 12px 36px rgba(0,0,0,.22);
}

/* ============================================================
   THEME: COURT (hell, elektrisch – Standard)
   Electric Blue + Violett, kein Pink, luftig hell
   ============================================================ */
html[data-theme="court"] {
  --bg: #F4F6FB;        --text: #161B2C;     --text-muted: #5A6178;   --heading: #0E1222;
  --surface: #FFFFFF;   --surface-text: #161B2C; --surface-muted: #5A6178;
  --alt-bg: #E9EDF8;    --alt-text: #161B2C;
  --invert-bg: #141A2E; --invert-text: #ECEFF8; --invert-muted: #A7B0CC;
  --primary: #2E5BFF;   --primary-deep: #1E3FCC;
  --cta: #2E5BFF;       --cta-text: #FFFFFF;
  --pop: #7C5CFF;
  --grad: linear-gradient(100deg, #2E5BFF, #7C5CFF);
  --hero-tint: #2E5BFF;
  --chip-bg: #E7ECFB;
  --line: rgba(20,26,46,.12); --line-strong: rgba(20,26,46,.20);
  --header-bg: rgba(244,246,251,.82);
  --field-bg: #FFFFFF;
}

/* ============================================================
   THEME: DORF (Döttingen – Schwarz/Weiss + Gelb als Akzent)
   ============================================================ */
html[data-theme="dorf"] {
  --bg: #FBFAF6;        --text: #16140D;     --text-muted: #5E5A4E;   --heading: #100E08;
  --surface: #FFFFFF;   --surface-text: #16140D; --surface-muted: #5E5A4E;
  --alt-bg: #F0ECE0;    --alt-text: #16140D;
  --invert-bg: #14130D; --invert-text: #F8F5EC; --invert-muted: #B6AF9C;
  --primary: #16140D;   --primary-deep: #000000;
  --cta: #FFC400;       --cta-text: #14130D;
  --pop: #FFC400;
  --grad: linear-gradient(100deg, #FFC400, #FF9E00);
  --hero-tint: #FFB300;
  --chip-bg: #F2EEDF;
  --line: rgba(22,20,13,.13); --line-strong: rgba(22,20,13,.22);
  --header-bg: rgba(251,250,246,.82);
  --field-bg: #FFFFFF;
}
/* Gelb braucht dunklen Text – Lesbarkeit sichern */
html[data-theme="dorf"] .eyebrow--light,
html[data-theme="dorf"] .section--ink .eyebrow { color: var(--pop); }
html[data-theme="dorf"] .tl-year,
html[data-theme="dorf"] .train-when,
html[data-theme="dorf"] .report-year,
html[data-theme="dorf"] .board-card p,
html[data-theme="dorf"] .link-arrow,
html[data-theme="dorf"] .btn--ghost { color: var(--primary); }
html[data-theme="dorf"] .team-tag { background: var(--primary); color: #FFC400; }

/* ============================================================
   THEME: MID (gedämpftes Dunkel – nicht tiefschwarz, kein Pink)
   ============================================================ */
html[data-theme="mid"] {
  --bg: #171D2E;        --text: #E7EAF3;     --text-muted: #9AA3BC;   --heading: #FFFFFF;
  --surface: #212940;   --surface-text: #E7EAF3; --surface-muted: #9AA3BC;
  --alt-bg: #1C2336;    --alt-text: #E7EAF3;
  --invert-bg: #10141F; --invert-text: #E7EAF3; --invert-muted: #9AA3BC;
  --primary: #6E9BFF;   --primary-deep: #3E6BF0;
  --cta: #3E6BF0;       --cta-text: #FFFFFF;
  --pop: #8B6CFF;
  --grad: linear-gradient(100deg, #5B8DEF, #8B6CFF);
  --hero-tint: #3B82F6;
  --chip-bg: rgba(255,255,255,.07);
  --line: rgba(231,234,243,.12); --line-strong: rgba(231,234,243,.22);
  --header-bg: rgba(23,29,46,.8);
  --field-bg: #171D2E;
}

/* Sanfte Seitenübergänge (Mehrseiten-Version, moderne Browser) */
@view-transition { navigation: auto; }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--ff-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: clamp(1rem, .96rem + .2vw, 1.075rem);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background .4s var(--ease), color .4s var(--ease);
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }

.skip-link {
  position: absolute; left: 50%; transform: translateX(-50%) translateY(-150%);
  background: var(--cta); color: var(--cta-text); padding: .7rem 1.2rem; border-radius: 0 0 10px 10px;
  z-index: 300; transition: transform .2s var(--ease);
}
.skip-link:focus { transform: translateX(-50%) translateY(0); }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 4px; }

/* ---------- Typo-Helfer ---------- */
.eyebrow {
  font-family: var(--ff-mono);
  font-size: .76rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 1rem; display: inline-flex; align-items: center; gap: .6rem;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--pop); display: inline-block; }
.eyebrow--light { color: var(--invert-muted); }
.section--ink .eyebrow { color: var(--primary); }

.section-title {
  font-family: var(--ff-display); font-weight: 800; line-height: .98; color: var(--heading);
  font-size: clamp(2.1rem, 1.4rem + 3.4vw, 3.9rem);
  letter-spacing: -.01em; text-transform: uppercase;
}
.section-title--light { color: var(--invert-text); }
.section-intro { max-width: 56ch; color: var(--text-muted); margin-top: 1rem; font-size: 1.08rem; }
.section--ink .section-intro { color: var(--invert-muted); }
.section--sand .section-intro { color: var(--text-muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  background: var(--surface); color: var(--surface-text);
  font-family: var(--ff-body); font-weight: 700; font-size: .98rem;
  padding: .8rem 1.4rem; border: 2px solid var(--line-strong); border-radius: 999px;
  cursor: pointer; transition: transform .18s var(--ease), box-shadow .18s var(--ease), filter .18s var(--ease), background .18s var(--ease), color .18s var(--ease);
  line-height: 1; min-height: 44px; touch-action: manipulation;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn--lg { padding: 1.05rem 1.9rem; font-size: 1.05rem; }
.btn--sm { padding: .6rem 1rem; font-size: .9rem; min-height: 40px; }
.btn--block { width: 100%; }

.btn--accent { background: var(--cta); color: var(--cta-text); border-color: transparent; }
.btn--accent:hover { filter: brightness(1.08) saturate(1.05); }

.btn--ghost { background: transparent; color: var(--primary); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--primary); }
.btn--ghost[aria-disabled="true"] { opacity: .5; pointer-events: none; }

.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn--ghost-light:hover { background: #fff; color: #111; border-color: #fff; }

.link-arrow { font-weight: 600; color: var(--primary); display: inline-flex; gap: .35rem; align-items: center; }
.link-arrow::after { content: "→"; transition: transform .18s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }
.inline-link { color: var(--pop); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--header-bg); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.site-header.is-stuck { border-bottom-color: var(--line); box-shadow: 0 4px 20px rgba(0,0,0,.18); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 1rem; }

.brand { display: inline-flex; align-items: center; gap: .7rem; }
.brand-mark { width: 56px; height: auto; }
html[data-theme="mid"] .brand-mark { filter: invert(1) brightness(1.6); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-family: var(--ff-display); font-weight: 900; font-size: 1.25rem; text-transform: uppercase; letter-spacing: .02em; color: var(--heading); }
.brand-text small { font-size: .72rem; color: var(--text-muted); letter-spacing: .04em; }

.nav { display: flex; align-items: center; gap: clamp(.8rem, 1.7vw, 1.6rem); }
.nav > a:not(.nav-cta) { font-weight: 600; font-size: .96rem; position: relative; padding: .3rem 0; color: var(--text); }
.nav > a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 100%; height: 2px;
  background: var(--pop); transform: scaleX(0); transform-origin: left; transition: transform .22s var(--ease);
}
.nav > a:not(.nav-cta):hover::after, .nav > a.is-active::after { transform: scaleX(1); }
.nav-cta { padding: .6rem 1.15rem; font-size: .92rem; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { width: 26px; height: 2.5px; background: var(--text); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(92vh, 820px); display: flex; align-items: flex-end; overflow: hidden; background: #05070D; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; filter: grayscale(1) contrast(1.08) brightness(.8); }
.hero-media::before { content: ""; position: absolute; inset: 0; background: #05070D; mix-blend-mode: multiply; opacity: .55; }
.hero-media::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, var(--hero-tint) 0%, transparent 62%); mix-blend-mode: screen; opacity: .38; }

.hero-content { position: relative; z-index: 3; padding-block: clamp(3rem, 8vh, 6rem) clamp(4.5rem, 12vh, 8rem); }
.hero-content::before {
  content: ""; position: absolute; z-index: -1; left: calc(var(--pad) * -1); right: -10%;
  top: -8%; bottom: -25%;
  background: linear-gradient(105deg, rgba(5,7,13,.82) 0%, rgba(5,7,13,.55) 42%, transparent 72%);
}
.hero-title {
  font-family: var(--ff-display); font-weight: 900; color: #fff;
  font-size: clamp(3rem, 1.8rem + 8vw, 7.2rem); line-height: .9; text-transform: uppercase;
  letter-spacing: -.015em; margin-bottom: 1.4rem; text-wrap: balance;
  text-shadow: 0 2px 28px rgba(0,0,0,.45);
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero-title .line:has(.ink-underline) { padding-bottom: .5em; }
.hero-title .line > span { display: block; }
.ink-underline { position: relative; white-space: nowrap; color: #fff; }
.ink-underline::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -.16em; height: .09em;
  background: var(--cta); border-radius: 999px; box-shadow: 0 0 14px 1px var(--pop);
  transform: scaleX(var(--ink-scale, 0)); transform-origin: left;
  transition: transform .7s var(--ease) .4s;
}
.hero.is-in .ink-underline { --ink-scale: 1; }
.hero-lead { color: rgba(255,255,255,.9); max-width: 46ch; font-size: clamp(1.05rem, 1rem + .4vw, 1.3rem); margin-bottom: 2rem; text-shadow: 0 1px 14px rgba(0,0,0,.5); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.rally-line { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 220px; z-index: 2; pointer-events: none; }
.rally-path { fill: none; stroke: rgba(255,255,255,.5); stroke-width: 2.5; stroke-linecap: round;
  stroke-dasharray: 2600; stroke-dashoffset: 2600; transition: stroke-dashoffset 2s var(--ease) .3s; }
.hero.is-in .rally-path { stroke-dashoffset: 0; }
.rally-ball { fill: var(--pop); opacity: 0; transition: opacity .4s ease 2.1s; }
.hero.is-in .rally-ball { opacity: 1; }

/* Ken-Burns: leichtes Heranzoomen des Hero-Bilds (Container, damit Parallax am img frei bleibt) */
.hero-media { animation: kenburns 20s var(--ease) forwards; transform-origin: center 35%; }
@keyframes kenburns { from { transform: scale(1.05); } to { transform: scale(1.13); } }

.scroll-cue { position: absolute; left: 50%; bottom: 1.4rem; transform: translateX(-50%); z-index: 4;
  width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.55); border-radius: 999px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px;
  background: #fff; border-radius: 2px; animation: scrollcue 1.6s var(--ease) infinite; }
@keyframes scrollcue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- Stats ---------- */
.stats { background: var(--invert-bg); color: var(--invert-text); border-top: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: clamp(1.6rem, 4vw, 2.6rem) 1rem; text-align: center; border-right: 1px solid var(--line); }
.stat:first-child { border-left: 1px solid var(--line); }
.stat-num { display: block; font-family: var(--ff-display); font-weight: 800; font-size: clamp(2.4rem, 1.6rem + 3vw, 3.6rem); line-height: 1; color: var(--invert-text); }
.stat-num small { color: var(--pop); }
.stat-label { font-family: var(--ff-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--invert-muted); }

/* ---------- Section-Basis ---------- */
section[id] { scroll-margin-top: 84px; }
.section { padding-block: clamp(3.5rem, 9vw, 7rem); }
.section--sand { background: var(--alt-bg); color: var(--alt-text); }
.section--ink { background: var(--invert-bg); color: var(--invert-text); }
.section-head { margin-bottom: clamp(2rem, 5vw, 3.5rem); max-width: 60ch; }

/* ---------- Teams ---------- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); gap: clamp(1.2rem, 3vw, 2rem); }
.team-card {
  display: block; background: var(--surface); color: var(--surface-text); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); overflow: hidden; position: relative;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.team-photo { aspect-ratio: 16 / 10; position: relative; overflow: hidden; background: var(--alt-bg); }
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-photo--placeholder { display: grid; place-items: center; border-bottom: 1px solid var(--line);
  background-image: repeating-linear-gradient(45deg, var(--line) 0 1px, transparent 1px 14px); }
.team-photo--placeholder span { font-family: var(--ff-mono); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--surface-muted); }
.team-card-body { padding: clamp(1.4rem, 3vw, 2rem); }
.team-card-body::before { content: ""; position: absolute; left: 0; top: 0; width: 6px; height: 100%; background: var(--primary); }
.team-card:nth-child(2) .team-card-body::before { background: var(--pop); }
.team-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.1rem; }
.team-tag { font-family: var(--ff-mono); font-weight: 700; font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; background: var(--primary); color: #fff; padding: .35rem .7rem; border-radius: 7px; }
.team-day { font-family: var(--ff-mono); font-size: .82rem; color: var(--surface-muted); }
.team-name { font-family: var(--ff-display); font-weight: 800; font-size: 1.9rem; text-transform: uppercase; line-height: 1; margin-bottom: .7rem; color: var(--surface-text); }
.team-desc { color: var(--surface-muted); margin-bottom: 1.2rem; }
.chip-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.4rem; }
.chip { font-size: .82rem; font-weight: 600; background: var(--chip-bg); color: var(--surface-text); padding: .35rem .8rem; border-radius: 999px; }
.team-meta { display: grid; gap: .7rem; border-top: 1px solid var(--line); padding-top: 1.2rem; }
.team-meta > div { display: flex; justify-content: space-between; gap: 1rem; }
.team-meta dt { font-family: var(--ff-mono); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--surface-muted); }
.team-meta dd { font-weight: 600; }

/* ---------- Spielbetrieb / Game Center ---------- */
.gamecenter-frame { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.gamecenter-placeholder { background: var(--surface); color: var(--surface-text); padding: clamp(2rem, 5vw, 3.5rem); text-align: center;
  background-image: repeating-linear-gradient(45deg, var(--line) 0 1px, transparent 1px 16px); }
.gc-badge { font-family: var(--ff-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: #fff; background: var(--primary); padding: .35rem .8rem; border-radius: 7px; display: inline-block; margin-bottom: 1rem; }
.gc-title { font-family: var(--ff-display); font-weight: 800; text-transform: uppercase; font-size: clamp(1.5rem, 1.1rem + 2vw, 2.4rem); color: var(--surface-text); line-height: 1; }
.gc-text { color: var(--surface-muted); max-width: 52ch; margin: .8rem auto 1.6rem; }
.gc-rows { display: inline-flex; flex-direction: column; gap: .6rem; text-align: left; }
.gc-rows > span { display: flex; align-items: center; gap: .6rem; font-weight: 600; background: var(--alt-bg); padding: .7rem 1.1rem; border-radius: 10px; }
.dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; flex: none; }
.dot--t1 { background: var(--primary); }
.dot--t2 { background: var(--pop); }
.match-note { margin-top: 1.6rem; font-size: .92rem; color: var(--text-muted); max-width: 72ch; }
.match-note i { color: var(--pop); font-style: normal; font-weight: 700; }

/* ---------- Mitmachen ---------- */
.join-grid { display: grid; grid-template-columns: 1.3fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.join-lead { color: var(--invert-muted); max-width: 50ch; margin: 1rem 0 2rem; font-size: 1.1rem; }
.join-steps { list-style: none; padding: 0; display: grid; gap: 1.3rem; margin-bottom: 2.2rem; }
.join-steps li { display: flex; gap: 1rem; align-items: flex-start; }
.join-step-no { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%;
  font-family: var(--ff-display); font-weight: 800; font-size: 1.2rem; color: var(--cta-text); background: var(--cta); }
.join-steps strong { display: block; color: var(--invert-text); font-size: 1.1rem; }
.join-steps p { color: var(--invert-muted); font-size: .98rem; }

.join-card { background: var(--surface); color: var(--surface-text); border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.2rem); box-shadow: var(--shadow-md); border: 1px solid var(--line); }
.join-card-title { font-family: var(--ff-display); font-weight: 800; text-transform: uppercase; font-size: 1.5rem; margin-bottom: 1rem; color: var(--surface-text); }
.train-list { list-style: none; padding: 0; display: grid; gap: .6rem; margin-bottom: 1.6rem; }
.train-list li { display: flex; justify-content: space-between; align-items: center; padding: .8rem 1rem; background: var(--alt-bg); border-radius: 10px; }
.train-team { font-weight: 700; }
.train-when { font-family: var(--ff-mono); font-size: .9rem; color: var(--primary); font-weight: 700; }
.join-hall h4 { font-family: var(--ff-mono); font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--surface-muted); margin-bottom: .5rem; }
.join-hall address { font-style: normal; line-height: 1.5; margin-bottom: .7rem; font-weight: 500; }

/* ---------- Timeline ---------- */
.timeline { list-style: none; padding: 0; position: relative; max-width: 760px; }
.timeline::before { content: ""; position: absolute; left: 0; top: .6rem; bottom: .6rem; width: 2px; background: var(--line-strong); }
.tl-item { position: relative; display: grid; grid-template-columns: 120px 1fr; gap: clamp(1rem, 3vw, 2rem); padding: 0 0 2.2rem 1.6rem; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before { content: ""; position: absolute; left: -5px; top: .5rem; width: 12px; height: 12px; border-radius: 50%; background: var(--primary); border: 3px solid var(--bg); }
.tl-item:last-child::before { background: var(--pop); }
.tl-year { font-family: var(--ff-display); font-weight: 800; font-size: 1.5rem; color: var(--primary); line-height: 1.1; }
.tl-body h3 { font-size: 1.2rem; margin-bottom: .3rem; color: var(--heading); }
.tl-body p { color: var(--text-muted); }

/* ---------- Vorstand ---------- */
.board-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: clamp(1rem, 2.5vw, 1.5rem); }
.board-card { background: var(--surface); color: var(--surface-text); border: 1px solid var(--line); border-radius: var(--radius); padding-bottom: 1.3rem; text-align: center; box-shadow: var(--shadow-sm); overflow: hidden; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.board-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.board-photo { aspect-ratio: 4 / 5; overflow: hidden; background: var(--alt-bg); margin-bottom: 1rem; }
.board-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform .4s var(--ease); }
.board-card:hover .board-photo img { transform: scale(1.04); }
.board-card h3 { font-size: 1.05rem; color: var(--surface-text); padding-inline: 1rem; }
.board-card p { font-family: var(--ff-mono); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--primary); margin-top: .2rem; padding-inline: 1rem; }

/* ---------- Berichte / Archiv ---------- */
.report-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: clamp(1rem, 2.5vw, 1.6rem); }
.report-card { background: var(--surface); color: var(--surface-text); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), box-shadow .2s var(--ease); display: flex; flex-direction: column; gap: .5rem; position: relative; }
.report-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.report-year { font-family: var(--ff-display); font-weight: 800; font-size: 1.15rem; color: var(--primary); letter-spacing: .02em; }
.report-card h3 { font-size: 1.2rem; color: var(--surface-text); }
.report-card p { color: var(--surface-muted); font-size: .96rem; flex: 1; }
.report-card .link-arrow { margin-top: .3rem; }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.contact-lead { color: var(--invert-muted); margin: 1rem 0 1.6rem; max-width: 44ch; font-size: 1.1rem; }
.contact-mail { font-family: var(--ff-display); font-weight: 700; font-size: clamp(1.4rem, 1rem + 2vw, 2.2rem); color: var(--pop); text-transform: uppercase; display: inline-block; margin-bottom: 1.2rem; word-break: break-word; }
.contact-mail:hover { text-decoration: underline; text-underline-offset: 4px; }
.contact-address { font-style: normal; color: var(--invert-muted); font-size: .92rem; }

.contact-form { background: var(--surface); color: var(--surface-text); border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.4rem); box-shadow: var(--shadow-md); border: 1px solid var(--line); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .4rem; color: var(--surface-text); }
.field input, .field textarea {
  width: 100%; font: inherit; padding: .85rem 1rem; border: 1.5px solid var(--line-strong); border-radius: 10px; background: var(--field-bg); color: var(--surface-text);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease); resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 25%, transparent); }
.field input::placeholder, .field textarea::placeholder { color: var(--surface-muted); opacity: .8; }
.form-note { font-size: .78rem; color: var(--surface-muted); margin-top: .8rem; text-align: center; }

/* Mitmachen-Formularblock (im dunklen Band) */
.join-form { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center;
  margin-top: clamp(2.5rem, 6vw, 4rem); padding-top: clamp(2.5rem, 6vw, 4rem); border-top: 1px solid var(--line); }
.join-form-intro h3 { font-family: var(--ff-display); font-weight: 800; text-transform: uppercase; font-size: clamp(1.6rem, 1.2rem + 2vw, 2.6rem); color: var(--invert-text); line-height: 1; }
.join-form-intro p { color: var(--invert-muted); margin: .8rem 0 1.2rem; max-width: 42ch; }
@media (max-width: 820px) { .join-form { grid-template-columns: 1fr; } }

/* Kontakt: Trainingszeiten/Text links, Formular rechts */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.contact-h { font-family: var(--ff-display); font-weight: 800; text-transform: uppercase; font-size: clamp(1.4rem, 1rem + 1.6vw, 2rem); color: var(--heading); line-height: 1; }
.contact-p { color: var(--text-muted); margin: .6rem 0 1rem; max-width: 42ch; }
@media (max-width: 820px) { .contact-layout { grid-template-columns: 1fr; } }

/* Kontakt-Karte: auf Desktop dezenter (feste, niedrigere Höhe), auf Handy höher + mehr Abstand */
.contact-map { margin-top: 2.5rem; }
.map-embed { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); height: 320px; }
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 820px) { .contact-map { margin-top: 3.2rem; } }
@media (max-width: 620px) { .map-embed { height: auto; aspect-ratio: 4 / 3; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--invert-bg); color: var(--invert-muted); padding-block: clamp(2.5rem, 5vw, 3.5rem); border-top: 1px solid var(--line); }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem 2rem; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 1rem; }
.footer-brand img { width: 64px; filter: invert(1) brightness(1.5); }
.footer-brand p { color: var(--invert-text); font-family: var(--ff-display); font-weight: 700; text-transform: uppercase; line-height: 1.1; font-size: 1.1rem; }
.footer-brand small { font-family: var(--ff-body); font-weight: 400; text-transform: none; color: var(--invert-muted); font-size: .8rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.footer-nav a { font-weight: 600; font-size: .92rem; color: var(--invert-muted); transition: color .18s var(--ease); }
.footer-nav a:hover { color: var(--pop); }
.footer-legal { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 1.2rem; font-size: .82rem; }

/* ---------- Farb-Umschalter (nur Prototyp) ---------- */
.theme-switch {
  position: fixed; bottom: 1rem; left: 50%; transform: translateX(-50%); z-index: 200;
  display: flex; align-items: center; gap: .35rem; padding: .4rem .5rem;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 999px;
  box-shadow: var(--shadow-md);
}
.theme-switch-label { font-family: var(--ff-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--surface-muted); padding: 0 .4rem; }
.theme-switch button { border: 0; background: transparent; color: var(--surface-text); font: inherit; font-size: .85rem; font-weight: 600;
  padding: .45rem .8rem; border-radius: 999px; cursor: pointer; transition: background .18s var(--ease), color .18s var(--ease); }
.theme-switch button:hover { background: var(--chip-bg); }
.theme-switch button.is-active { background: var(--cta); color: var(--cta-text); }

/* ---------- Ansichts-Umschalter (One-Pager / Mehrseitig) ---------- */
.view-switch {
  position: fixed; bottom: 1rem; left: 50%; transform: translateX(-50%); z-index: 200;
  display: flex; align-items: center; gap: .3rem; padding: .4rem .5rem;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 999px; box-shadow: var(--shadow-md);
}
.view-switch > span { font-family: var(--ff-mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--surface-muted); padding: 0 .4rem; }
.view-switch a { font-weight: 600; font-size: .84rem; color: var(--surface-text); padding: .45rem .9rem; border-radius: 999px; transition: background .18s var(--ease), color .18s var(--ease); }
.view-switch a:hover { background: var(--chip-bg); }
.view-switch a.is-active { background: var(--cta); color: var(--cta-text); }

/* ---------- Unterseiten-Kopf (Mehrseiten-Version) ---------- */
.page-hero { background: var(--invert-bg); color: var(--invert-text); padding: clamp(5.5rem, 12vh, 8rem) 0 clamp(2.5rem, 6vh, 4rem); position: relative; overflow: hidden; }
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero .eyebrow { color: var(--pop); }
.page-hero h1 { font-family: var(--ff-display); font-weight: 900; text-transform: uppercase; line-height: .95;
  font-size: clamp(2.4rem, 1.6rem + 4vw, 4.6rem); color: var(--invert-text); }
.page-hero p { color: var(--invert-muted); max-width: 56ch; margin-top: 1rem; font-size: 1.08rem; }
.page-hero::after { content: ""; position: absolute; right: -60px; top: -60px; width: 280px; height: 280px; border-radius: 50%;
  background: var(--pop); opacity: .14; filter: blur(8px); }

.nav > a.is-active { color: var(--primary); }
.nav > a.is-active::after { transform: scaleX(1); }

/* ---------- Schwebender Probetraining-Button ---------- */
.floating-cta {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 150;
  display: inline-flex; align-items: center; gap: .55rem;
  background: var(--cta); color: var(--cta-text); font-family: var(--ff-body); font-weight: 700; font-size: .98rem;
  padding: .85rem 1.3rem; border-radius: 999px; box-shadow: var(--shadow-md); min-height: 48px;
  transform: translateY(160%); opacity: 0; transition: transform .45s var(--ease), opacity .45s var(--ease), filter .15s var(--ease);
}
.floating-cta.is-visible { transform: translateY(0); opacity: 1; }
.floating-cta:hover { filter: brightness(1.07) saturate(1.05); }
.floating-cta::before { content: ""; width: 11px; height: 11px; border-radius: 50%; background: currentColor; flex: none; }
@media (max-width: 520px) { .floating-cta { right: .8rem; bottom: .8rem; padding: .75rem 1.1rem; font-size: .9rem; } }

/* ---------- Home-Intro (Ball als „O") ---------- */
.home-intro { position: fixed; inset: 0; z-index: 600; background: var(--invert-bg); display: grid; place-items: center; overflow: hidden; }
.home-intro.is-hidden { display: none; }
.hi-wm { display: flex; flex-direction: column; align-items: center; gap: .04em; color: #fff;
  font-family: var(--ff-display); font-weight: 900; text-transform: uppercase; line-height: .9; letter-spacing: .01em;
  font-size: clamp(2rem, 1rem + 6.5vw, 4.6rem); }
.hi-wm .row { display: inline-flex; align-items: flex-end; }
.hi-wm .l { display: inline-block; will-change: transform, opacity; }
.hi-o-slot { position: relative; display: inline-block; width: .74em; height: 1em; margin: 0 .05em; vertical-align: baseline; }
.hi-o-ball { position: absolute; left: 50%; bottom: .04em; width: .72em; height: .72em; margin-left: -.36em;
  will-change: transform; filter: drop-shadow(0 8px 14px rgba(0,0,0,.5)); }
.hi-umlaut { position: absolute; left: 50%; bottom: .84em; transform: translateX(-50%); display: flex; gap: .14em; }
.hi-umlaut i { width: .1em; height: .1em; border-radius: 50%; background: #fff; display: block; }
.hi-underline { height: .07em; width: 46%; background: var(--cta); border-radius: 4px; transform: scaleX(0); transform-origin: center; margin-top: .12em; }
.hi-skip { position: absolute; bottom: 1.3rem; right: 1.3rem; background: transparent; border: 0; color: var(--invert-muted);
  font: inherit; font-size: .82rem; cursor: pointer; padding: .5rem .8rem; border-radius: 8px; }
.hi-skip:hover { color: #fff; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .join-grid, .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .nav { position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch;
    background: var(--bg); padding: 1.2rem var(--pad) 1.8rem; gap: .3rem;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
    transform: translateY(-130%); transition: transform .3s var(--ease); visibility: hidden; }
  .nav.is-open { transform: translateY(0); visibility: visible; }
  .nav > a:not(.nav-cta) { padding: .8rem .2rem; border-bottom: 1px solid var(--line); }
  .nav-cta { margin-top: .8rem; text-align: center; }
  .nav-toggle { display: flex; }
}
@media (max-width: 620px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat { border-left: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .stat:nth-child(odd) { border-left: 1px solid var(--line); }
  .stat:nth-child(1), .stat:nth-child(2) { border-top: 1px solid var(--line); }
  .tl-item { grid-template-columns: 84px 1fr; }
  .theme-switch { flex-wrap: wrap; justify-content: center; width: calc(100% - 2rem); border-radius: var(--radius); }
}

/* ---------- Intro (Spike-Preloader) ---------- */
.intro {
  position: fixed; inset: 0; z-index: 500; display: grid; place-items: center;
  background: var(--invert-bg); overflow: hidden;
}
.intro.is-hidden { display: none; }
.intro-inner { position: relative; display: grid; place-items: center; width: min(60vw, 280px); aspect-ratio: 1; }
.intro-ball { width: clamp(96px, 16vw, 180px); height: auto; filter: drop-shadow(0 22px 40px rgba(0,0,0,.5)); will-change: transform; }
.intro-flash { position: absolute; width: 18px; height: 18px; border-radius: 50%; background: var(--pop);
  opacity: 0; transform: scale(1); box-shadow: 0 0 60px 30px var(--pop); }
.intro-skip {
  position: absolute; bottom: 1.4rem; right: 1.4rem; background: transparent; border: 0;
  color: var(--invert-muted); font: inherit; font-size: .82rem; letter-spacing: .04em; cursor: pointer;
  padding: .5rem .8rem; border-radius: 8px;
}
.intro-skip:hover { color: var(--invert-text); }
.no-scroll { overflow: hidden; }

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .rally-path { stroke-dashoffset: 0; }
  .hero-media { animation: none; }
  body { transition: none; }
}
