/* ==========================================================================
   SpVg Blau-Weiß Oberveischede
   Ein Akzent (Vereinsblau aus dem Wappen), zwei Modi (hell/dunkel automatisch,
   per Schalter wählbar). Form-Regel: Karten 18px, Bedienelemente 12px, Chips voll rund.
   ========================================================================== */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("../fonts/geist-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  color-scheme: light dark;
  --bg: #f5f6fb;
  --bg-2: #eceef8;
  --surface: #ffffff;
  --ink: #0e0f2b;
  --muted: #4a4d70;
  --line: #d9dcef;
  --brand: #382f98;
  --brand-hover: #2b2379;
  --brand-tint: #e9e8fa;
  --btn-bg: #382f98;
  --btn-hover: #2b2379;
  --btn-ink: #ffffff;
  --link: #382f98;
  --focus: #382f98;
  --danger: #b4232a;
  --danger-tint: #fbe9ea;
  --ok: #17603c;
  --ok-tint: #e3f4ea;
  --shadow: 0 1px 2px rgb(30 24 100 / .06), 0 8px 24px rgb(30 24 100 / .08);
  --shadow-lg: 0 2px 4px rgb(30 24 100 / .08), 0 24px 56px rgb(30 24 100 / .16);

  --font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-card: 18px;
  --r-ctl: 12px;
  --header-h: 68px;
  --wrap: 1240px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --section: clamp(3.5rem, 8vw, 7rem);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c0c1f;
    --bg-2: #101028;
    --surface: #15152f;
    --ink: #eeeffc;
    --muted: #a9acd0;
    --line: #29294f;
    --brand: #a29bff;
    --brand-hover: #beb9ff;
    --brand-tint: #22224c;
    --btn-bg: #5b50e0;
    --btn-hover: #6e64ee;
    --link: #b3adff;
    --focus: #b3adff;
    --danger: #ff9a9f;
    --danger-tint: #3a1a1f;
    --ok: #7fdca8;
    --ok-tint: #12301f;
    --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 8px 24px rgb(0 0 0 / .35);
    --shadow-lg: 0 2px 4px rgb(0 0 0 / .5), 0 24px 56px rgb(0 0 0 / .5);
  }
}
:root[data-theme="dark"] {
  --bg: #0c0c1f;
  --bg-2: #101028;
  --surface: #15152f;
  --ink: #eeeffc;
  --muted: #a9acd0;
  --line: #29294f;
  --brand: #a29bff;
  --brand-hover: #beb9ff;
  --brand-tint: #22224c;
  --btn-bg: #5b50e0;
  --btn-hover: #6e64ee;
  --link: #b3adff;
  --focus: #b3adff;
  --danger: #ff9a9f;
  --danger-tint: #3a1a1f;
  --ok: #7fdca8;
  --ok-tint: #12301f;
  --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 8px 24px rgb(0 0 0 / .35);
  --shadow-lg: 0 2px 4px rgb(0 0 0 / .5), 0 24px 56px rgb(0 0 0 / .5);
}

/* ---------- Grundlagen ---------- */
[hidden] { display: none !important; }
a, button, summary, label, .input { touch-action: manipulation; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1.0625rem/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, picture { display: block; max-width: 100%; }
svg { max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.08; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 1.4rem + 4.4vw, 4.6rem); }
h2 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.9rem); }
h3 { font-size: clamp(1.2rem, 1.05rem + .6vw, 1.5rem); line-height: 1.2; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--link); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
ul { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
strong { font-weight: 600; }
::selection { background: var(--brand); color: #fff; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; }
.skip-link { position: fixed; left: 1rem; top: -4rem; z-index: 200; background: var(--btn-bg); color: var(--btn-ink); padding: .7rem 1rem; border-radius: var(--r-ctl); text-decoration: none; transition: top .15s; }
.skip-link:focus { top: 1rem; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.icon { display: inline-block; width: 1.25em; height: 1.25em; flex: none; fill: currentColor; vertical-align: -0.22em; }
.icon-xs { width: .95em; height: .95em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .7rem 1.4rem; border-radius: var(--r-ctl);
  font: 600 1rem/1.2 var(--font-body); text-decoration: none; white-space: nowrap;
  border: 1.5px solid transparent; cursor: pointer;
  transition: background-color .18s, border-color .18s, color .18s, transform .12s;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--btn-bg); color: var(--btn-ink); }
.btn-primary:hover { background: var(--btn-hover); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }
.btn-sm { min-height: 42px; padding: .5rem 1.05rem; font-size: .95rem; }
.btn-light { background: #fff; color: #2b2379; }
.btn-light:hover { background: #e9e8fa; }
.btn-glass { background: rgb(255 255 255 / .12); color: #fff; border-color: rgb(255 255 255 / .55); backdrop-filter: blur(6px); }
.btn-glass:hover { background: rgb(255 255 255 / .22); }
.btn-danger { background: transparent; color: var(--danger); border-color: var(--danger); }
.btn-danger:hover { background: var(--danger-tint); }
.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; text-decoration: none; }
.link-arrow .icon { transition: transform .18s; }
.link-arrow:hover .icon { transform: translateX(4px); }

.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-ctl);
  background: transparent; color: var(--ink); border: 1.5px solid var(--line); cursor: pointer;
}
.icon-btn:hover { border-color: var(--brand); color: var(--brand); }
.icon-btn .icon { width: 22px; height: 22px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { height: 100%; width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; display: flex; align-items: center; gap: 1.5rem; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--ink); flex: none; }
.brand img { border-radius: 50%; }
.brand-name { font: 500 1.1rem/1 var(--font-display); letter-spacing: -0.01em; white-space: nowrap; }
.brand-name strong { font-weight: 800; }

.nav { flex: 1; }
.nav-list { display: flex; align-items: center; gap: .15rem; }
.nav-link {
  display: inline-flex; align-items: center; gap: .3rem; padding: .55rem .8rem; border-radius: 10px;
  font: 500 .98rem/1 var(--font-body); color: var(--ink); text-decoration: none; background: none; border: 0; cursor: pointer;
}
.nav-link:hover, .nav-link[aria-expanded="true"] { background: var(--brand-tint); color: var(--brand); }
.nav-link.is-current { color: var(--brand); font-weight: 600; }
.has-sub { position: relative; }
.has-sub > .nav-link .icon { transition: transform .18s; }
.has-sub > .nav-link[aria-expanded="true"] .icon { transform: rotate(180deg); }
.sub {
  position: absolute; top: calc(100% + .35rem); left: 0; min-width: 270px; padding: .5rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg);
  display: none;
}
.nav-link[aria-expanded="true"] + .sub { display: block; }
.sub a { display: flex; flex-direction: column; gap: .1rem; padding: .6rem .8rem; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 500; }
.sub a small { color: var(--muted); font-weight: 400; font-size: .85rem; }
.sub a:hover { background: var(--brand-tint); color: var(--brand); }
.sub a[aria-current="page"] { color: var(--brand); font-weight: 600; }

.header-actions { display: flex; align-items: center; gap: .6rem; margin-left: auto; }
.nav-toggle { display: none; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 1120px) {
  .nav, .header-cta { display: none; }
  .nav-toggle { display: inline-grid; }
}

/* Mobile Navigation: native details/summary */
.mobile-nav {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 99; overflow-y: auto; background: var(--bg);
  padding: 1rem var(--gutter) max(3rem, env(safe-area-inset-bottom)); overscroll-behavior: contain;
}
.mobile-nav[hidden] { display: none; }
.mobile-nav nav { width: min(100%, 640px); margin-inline: auto; }
.mobile-nav summary, .mobile-link {
  display: flex; align-items: center; justify-content: space-between; padding: 1rem .25rem; cursor: pointer; list-style: none;
  font: 600 1.35rem/1.2 var(--font-display); color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line);
}
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav details[open] > summary .icon { transform: rotate(180deg); }
.mobile-nav ul { padding: .5rem 0 1rem .25rem; }
.mobile-nav ul a { display: block; padding: .7rem .5rem; text-decoration: none; color: var(--ink); font-weight: 500; border-radius: 10px; }
.mobile-nav ul a:hover { background: var(--brand-tint); }
.mobile-nav ul a small { display: block; color: var(--muted); font-weight: 400; font-size: .9rem; }
.mobile-nav [aria-current="page"] { color: var(--brand); font-weight: 600; }
.mobile-cta { margin-top: 1.75rem; width: 100%; }
body.menu-open { overflow: hidden; }

/* ---------- Hero (Startseite) ---------- */
.hero { position: relative; display: grid; align-items: end; min-height: min(86dvh, 800px); color: #fff; isolation: isolate; }
.hero-media, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; z-index: -2; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, rgb(9 8 38 / .92) 0%, rgb(9 8 38 / .62) 34%, rgb(9 8 38 / .12) 70%),
    linear-gradient(to right, rgb(9 8 38 / .5), transparent 60%);
}
.hero-inner { padding-block: 6rem 9.5rem; }
.hero h1 { max-width: 12ch; font-weight: 800; letter-spacing: -0.035em; text-shadow: 0 2px 24px rgb(0 0 0 / .35); }
.hero p { margin-top: 1.25rem; max-width: 34rem; font-size: clamp(1.05rem, 1rem + .35vw, 1.3rem); line-height: 1.5; color: rgb(255 255 255 / .92); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

/* ---------- Nächstes Spiel (überlappt das Hero) ---------- */
.next-match {
  position: relative; z-index: 2; margin-top: -5.5rem; background: var(--surface); border: 1px solid var(--line);
  border-radius: 24px; box-shadow: var(--shadow-lg); padding: clamp(1.1rem, 2.5vw, 1.75rem);
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: clamp(1rem, 3vw, 2.5rem);
}
.nm-count h2 { font: 600 .95rem/1.2 var(--font-body); letter-spacing: 0; color: var(--muted); margin-bottom: .5rem; }
.countdown { display: flex; gap: .9rem; font-family: var(--font-display); }
.countdown div { display: grid; text-align: center; min-width: 3.1rem; }
.countdown b { font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.75rem); font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -0.03em; }
.countdown span { font: 500 .8rem/1.4 var(--font-body); color: var(--muted); }
.nm-teams { display: flex; align-items: center; justify-content: center; gap: clamp(.75rem, 2vw, 1.5rem); min-width: 0; }
.nm-teams .side { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.nm-teams .side-name { font: 600 1.05rem/1.25 var(--font-display); }
.nm-teams .vs { color: var(--muted); font-size: .9rem; }
.nm-info { text-align: right; display: grid; gap: .25rem; }
.nm-info strong { font: 700 1.25rem/1.2 var(--font-display); }
.nm-info span { color: var(--muted); font-size: .95rem; }
.next-match.is-empty { grid-template-columns: 1fr; text-align: center; padding-block: 2rem; }
.next-match.is-empty h2 { font-size: 1.4rem; margin-bottom: .4rem; }

@media (max-width: 900px) {
  .next-match { grid-template-columns: 1fr; text-align: left; margin-top: -4.5rem; }
  .nm-info { text-align: left; }
  .nm-teams { justify-content: flex-start; flex-wrap: wrap; }
}

/* ---------- Abschnitte ---------- */
.section { padding-block: var(--section); }
.section-tint { background: var(--bg-2); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.section-head p { color: var(--muted); max-width: 46ch; margin-top: .75rem; }

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 3vw, 3rem); }
.duo h3 { margin-bottom: 1rem; }
.match-list { display: grid; gap: .75rem; }
@media (max-width: 900px) { .duo { grid-template-columns: 1fr; } }

/* ---------- Spielkarten ---------- */
.match { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 1rem 1.15rem; display: grid; gap: .8rem; }
.match-meta { display: flex; justify-content: space-between; gap: 1rem; font-size: .9rem; color: var(--muted); }
.match-when { font-weight: 600; color: var(--ink); }
.match-body { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .75rem; }
.side { display: flex; align-items: center; gap: .65rem; min-width: 0; }
.side-away { flex-direction: row-reverse; text-align: right; }
.side-name { font: 600 1rem/1.25 var(--font-display); overflow-wrap: anywhere; }
.match-mid { text-align: center; }
.score {
  display: inline-flex; align-items: center; gap: .2rem; padding: .3rem .8rem; border-radius: 999px; background: var(--brand-tint);
  font: 700 1.5rem/1.2 var(--font-display); font-variant-numeric: tabular-nums; color: var(--ink);
}
.score .colon { color: var(--muted); }
.vs { font-size: .85rem; color: var(--muted); }
.match-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-size: .88rem; color: var(--muted); padding-top: .7rem; border-top: 1px solid var(--line); }
.crest { flex: none; border-radius: 50%; object-fit: contain; }
.crest-md { width: 40px; height: 40px; }
.crest-sm { width: 24px; height: 24px; }
.crest-lg { width: 56px; height: 56px; }
.crest-fallback { display: inline-grid; place-items: center; background: var(--brand-tint); color: var(--brand); font: 700 .8rem/1 var(--font-display); }
.crest-sm.crest-fallback { font-size: .6rem; }
.badge { display: inline-flex; align-items: center; padding: .2rem .65rem; border-radius: 999px; font: 600 .8rem/1.3 var(--font-body); }
.badge-win { background: var(--btn-bg); color: var(--btn-ink); }
.badge-draw { background: var(--bg-2); color: var(--muted); border: 1px solid var(--line); }
.badge-loss { background: var(--danger-tint); color: var(--danger); }

/* Eigene Mannschaft hervorheben, Ergebnis farblich nach Ausgang */
.side.is-own .side-name { color: var(--brand); }
.match { position: relative; overflow: hidden; }
.match.is-win, .match.is-loss, .match.is-draw { border-left-width: 4px; }
.match.is-win { border-left-color: var(--btn-bg); }
.match.is-loss { border-left-color: var(--danger); }
.match.is-draw { border-left-color: var(--muted); }
.match.is-win .score { background: var(--btn-bg); color: var(--btn-ink); }
.match.is-win .score .colon { color: rgb(255 255 255 / .7); }
.match.is-loss .score { background: var(--danger-tint); color: var(--danger); }
.match.is-loss .score .colon { color: inherit; opacity: .6; }
.side-score { display: none; }
.match.is-live { border-color: var(--danger); }
.match.is-live .match-when { color: var(--danger); display: inline-flex; align-items: center; gap: .45rem; }
.live-dot { width: .6rem; height: .6rem; border-radius: 50%; background: var(--danger); flex: none; box-shadow: 0 0 0 0 rgb(180 35 42 / .5); }
@media (prefers-reduced-motion: no-preference) {
  .live-dot { animation: live-pulse 1.6s ease-out infinite; }
  @keyframes live-pulse { 0% { box-shadow: 0 0 0 0 rgb(180 35 42 / .55); } 100% { box-shadow: 0 0 0 .6rem rgb(180 35 42 / 0); } }
}
.nm-live { display: inline-flex; align-items: center; gap: .6rem; font: 700 clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem)/1 var(--font-display); color: var(--danger); letter-spacing: -0.02em; }
.nm-live .live-dot { width: .8rem; height: .8rem; }
.nm-teams .side.is-own .side-name { color: var(--brand); }

/* Spielplan nach Tagen */
.day-group + .day-group { margin-top: 1.75rem; }
.day-head { display: flex; align-items: center; gap: .6rem; margin-bottom: .8rem; font: 600 1.05rem/1.3 var(--font-display); color: var(--muted); letter-spacing: 0; }
.day-rel { padding: .15rem .6rem; border-radius: 999px; background: var(--btn-bg); color: var(--btn-ink); font-size: .8rem; }

/* Formkurve (letzte Spiele) */
.formkurve { display: flex; gap: .35rem; list-style: none; margin: .7rem 0 0; padding: 0; }
.formkurve li { width: .8rem; height: .8rem; border-radius: 50%; }
.form-s { background: var(--btn-bg); }
.form-u { background: var(--line); box-shadow: inset 0 0 0 1.5px var(--muted); }
.form-n { background: var(--danger); }
.tile-place { align-self: flex-start; margin-top: .35rem; padding: .2rem .7rem; border-radius: 999px; background: var(--brand-tint); color: var(--brand); font-size: .85rem; font-weight: 600; }
.tile-place span { font-weight: 400; }
.tile-h1 .tile-place { background: rgb(255 255 255 / .16); color: #fff; backdrop-filter: blur(6px); }

/* Handy: Spielstand wie eine Anzeigetafel, Heim oben, Gast unten, Tore rechts */
@media (max-width: 560px) {
  .match-body { grid-template-columns: 1fr; gap: .6rem; }
  .side, .side-away { flex-direction: row; text-align: left; }
  .side-name { flex: 1; }
  .side-score { display: block; min-width: 2rem; text-align: right; font: 700 1.35rem/1 var(--font-display); font-variant-numeric: tabular-nums; }
  .match.is-win .side.is-own .side-score { color: var(--brand); }
  .match.is-loss .side.is-own .side-score { color: var(--danger); }
  .match-mid:has(.score) { display: none; }
  .match-mid { text-align: left; padding-left: calc(40px + .65rem); margin-block: -.35rem; }
}

/* ---------- Verein-Statement ---------- */
.statement { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.5rem, 5vw, 5rem); align-items: center; }
.statement-num { font: 800 clamp(6rem, 3rem + 14vw, 13rem)/.8 var(--font-display); letter-spacing: -0.06em; color: var(--brand); }
.statement-num small { display: block; margin-top: 1rem; font: 600 1.2rem/1.2 var(--font-body); letter-spacing: 0; color: var(--ink); }
.statement p { font: 500 clamp(1.3rem, 1rem + 1.4vw, 2rem)/1.35 var(--font-display); letter-spacing: -0.01em; max-width: 34ch; }
.statement p + p { margin-top: 1.25rem; font: 400 1.1rem/1.6 var(--font-body); color: var(--muted); max-width: 52ch; }
@media (max-width: 800px) { .statement { grid-template-columns: 1fr; } }

/* ---------- Mannschaften (Bento, genau 5 Zellen) ---------- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1rem; }
.tile {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: .35rem; min-height: 190px; padding: 1.5rem;
  border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; overflow: hidden; isolation: isolate;
  transition: border-color .2s, transform .2s;
}
a.tile:hover { border-color: var(--brand); transform: translateY(-3px); }
.tile h3 { font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); }
.tile-league { color: var(--muted); font-size: .98rem; }
.tile-next { margin-top: .6rem; padding-top: .7rem; border-top: 1px solid var(--line); font-size: .92rem; color: var(--muted); }
.tile-next b { color: var(--ink); font-weight: 600; }
.tile .arrow { position: absolute; top: 1.25rem; right: 1.25rem; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-tint); color: var(--brand); }
.tile-h1 { grid-column: 1 / 8; grid-row: 1 / 3; min-height: 420px; color: #fff; border-color: transparent; }
.tile-h1 picture, .tile-h1 img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.tile-h1::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgb(9 8 38 / .9), rgb(9 8 38 / .25) 65%); }
.tile-h1 .tile-league, .tile-h1 .tile-next, .tile-h1 .tile-next b { color: rgb(255 255 255 / .92); }
.tile-h1 .tile-next { border-color: rgb(255 255 255 / .3); }
.tile-h1 .arrow { background: rgb(255 255 255 / .9); color: #2b2379; }
.tile-fr { grid-column: 8 / 13; }
.tile-h2 { grid-column: 8 / 13; }
.tile-al { grid-column: 1 / 6; background: var(--brand-tint); border-color: transparent; }
.tile-jun { grid-column: 6 / 13; background: var(--btn-bg); color: var(--btn-ink); border-color: transparent; justify-content: space-between; }
.tile-jun .tile-league { color: rgb(255 255 255 / .85); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips a { padding: .45rem .95rem; border-radius: 999px; border: 1.5px solid rgb(255 255 255 / .5); color: #fff; text-decoration: none; font-weight: 600; font-size: .95rem; }
.chips a:hover { background: #fff; color: #2b2379; }
@media (max-width: 860px) {
  .bento { grid-template-columns: 1fr; }
  .tile-h1, .tile-fr, .tile-h2, .tile-al, .tile-jun { grid-column: 1; grid-row: auto; }
  .tile-h1 { min-height: 320px; }
}

/* ---------- News ---------- */
.news-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 1rem; }
.news-side { display: grid; gap: 1rem; align-content: start; }
.news-card { display: flex; flex-direction: column; gap: .6rem; padding: 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); color: var(--ink); text-decoration: none; overflow: hidden; transition: border-color .2s, transform .2s; }
a.news-card:hover { border-color: var(--brand); transform: translateY(-3px); }
.news-card .kat { align-self: start; padding: .2rem .7rem; border-radius: 999px; background: var(--brand-tint); color: var(--brand); font-size: .82rem; font-weight: 600; }
.news-card h3 { font-size: 1.3rem; }
.news-card time, .news-card .meta { color: var(--muted); font-size: .9rem; }
.news-card p { color: var(--muted); }
.news-card.is-feature { padding: 0; }
.news-card.is-feature .body { padding: 1.75rem; display: flex; flex-direction: column; gap: .7rem; }
.news-card.is-feature h3 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.2rem); }
.news-card.is-feature img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.empty { padding: 2rem; border: 1.5px dashed var(--line); border-radius: var(--r-card); color: var(--muted); text-align: center; }
.empty strong { display: block; color: var(--ink); font-size: 1.1rem; margin-bottom: .3rem; }
@media (max-width: 860px) { .news-grid { grid-template-columns: 1fr; } }

/* ---------- Clubhaus-Band ---------- */
.band { position: relative; isolation: isolate; color: #fff; padding-block: clamp(4rem, 10vw, 8rem); }
.band-media, .band-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to right, rgb(9 8 38 / .88) 0%, rgb(9 8 38 / .55) 55%, rgb(9 8 38 / .2)); }
.band h2 { max-width: 14ch; font-weight: 800; }
.band p { margin-top: 1.1rem; max-width: 34rem; color: rgb(255 255 255 / .92); font-size: 1.15rem; line-height: 1.55; }
.band .btn { margin-top: 1.75rem; }

/* ---------- Unterseiten ---------- */
.page-hero { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(2rem, 4vw, 3rem); background: linear-gradient(to bottom, var(--brand-tint), var(--bg)); border-bottom: 1px solid var(--line); }
.page-hero .crumb { color: var(--brand); font-weight: 600; margin-bottom: .75rem; }
.page-hero .lead { margin-top: 1rem; max-width: 46ch; font-size: 1.2rem; color: var(--muted); }
.page-body { padding-block: clamp(2rem, 5vw, 4rem) var(--section); }
.stack { display: grid; gap: clamp(2rem, 4vw, 3.5rem); }
.stack > section > h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); margin-bottom: 1.25rem; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.prose { max-width: 68ch; }
.prose p + p { margin-top: 1rem; }
.prose h2 { font-size: 1.5rem; margin: 2.25rem 0 .75rem; }
.prose h3 { font-size: 1.15rem; margin: 1.5rem 0 .5rem; }
.prose ul { list-style: disc; padding-left: 1.25rem; margin: .75rem 0; }
.prose li + li { margin-top: .35rem; }
.prose .note { padding: 1rem 1.25rem; background: var(--brand-tint); border-radius: var(--r-ctl); }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem; }
.fact { padding: 1.25rem 1.4rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); }
.fact dt { color: var(--muted); font-size: .9rem; margin-bottom: .3rem; }
.fact dd { margin: 0; font: 600 1.15rem/1.35 var(--font-display); overflow-wrap: break-word; }
.fact dd small { display: block; font: 400 .95rem/1.5 var(--font-body); color: var(--muted); margin-top: .25rem; }

.price-list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
.price-list div { display: flex; justify-content: space-between; gap: 1.5rem; padding: 1rem 1.4rem; }
.price-list div + div { border-top: 1px solid var(--line); }
.price-list dt { margin: 0; }
.price-list dd { margin: 0; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.price-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem; }
.price-groups h3 { padding: 1.1rem 1.4rem 0; }

.person-list { columns: 2 220px; column-gap: 2rem; }
.person-list li { padding: .35rem 0; break-inside: avoid; }
.board { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.person { padding: 1.4rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); }
.person strong { display: block; font: 700 1.25rem/1.2 var(--font-display); }
.person a { display: inline-flex; align-items: center; gap: .4rem; margin-top: .5rem; font-weight: 500; }

.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.filters button, .tabs button {
  min-height: 44px; padding: .5rem 1.1rem; border-radius: 999px; background: var(--surface); color: var(--ink);
  border: 1.5px solid var(--line); font: 600 .98rem/1 var(--font-body); cursor: pointer;
}
.filters button:hover, .tabs button:hover { border-color: var(--brand); }
.filters button[aria-pressed="true"], .tabs button[aria-selected="true"] { background: var(--btn-bg); color: var(--btn-ink); border-color: var(--btn-bg); }
.tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.25rem; }
.js .tabpanel[hidden] { display: none; }
.tabpanel + .tabpanel { margin-top: 2rem; }
.tabpanel > h3 { margin-bottom: .75rem; }
.js .tabpanel > h3 { display: none; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: .75rem; }
.updated { color: var(--muted); font-size: .92rem; }
.mt { margin-top: .9rem; }

/* ---------- Tabelle ---------- */
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); }
.standings { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: .98rem; }
.standings th, .standings td { padding: .7rem .75rem; text-align: left; white-space: nowrap; }
.standings thead th { font-weight: 600; font-size: .85rem; color: var(--muted); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.standings tbody tr + tr > * { border-top: 1px solid var(--line); }
.standings .num { text-align: right; }
.standings th:first-child, .standings td:first-child { width: 3.25rem; }
.standings tbody th { font-weight: 500; }
.standings .tt { display: inline-flex; align-items: center; gap: .6rem; white-space: normal; }
.standings .pts { font-weight: 700; }
.standings tr.is-own > * { background: var(--brand-tint); font-weight: 600; }
@media (max-width: 640px) { .hide-sm { display: none; } }

/* ---------- Formulare ---------- */
.form { display: grid; gap: 1.25rem; max-width: 640px; }
.field { display: grid; gap: .45rem; }
.field label, .field .label { font-weight: 600; }
.field .help { color: var(--muted); font-size: .92rem; }
.input, select.input, textarea.input {
  width: 100%; min-height: 50px; padding: .75rem 1rem; border-radius: var(--r-ctl); border: 1.5px solid var(--muted);
  background: var(--surface); color: var(--ink); font: 400 1rem/1.4 var(--font-body);
}
textarea.input { min-height: 9rem; resize: vertical; }
.input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-color: var(--focus); }
.input[aria-invalid="true"] { border-color: var(--danger); }
.field .error { color: var(--danger); font-size: .95rem; font-weight: 500; }
.check { display: flex; gap: .75rem; align-items: flex-start; }
.check input { width: 1.4rem; height: 1.4rem; margin-top: .15rem; accent-color: var(--btn-bg); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 1rem 1.25rem; border-radius: var(--r-ctl); border: 1.5px solid; font-weight: 500; }
.alert-ok { background: var(--ok-tint); color: var(--ok); border-color: var(--ok); }
.alert-err { background: var(--danger-tint); color: var(--danger); border-color: var(--danger); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--line); margin-top: 0; }
.footer-inner { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; padding-block: 4rem 2.5rem; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 2.5rem; }
.footer-brand img { border-radius: 50%; margin-bottom: 1rem; }
.footer-name { font: 700 1.25rem/1.2 var(--font-display); }
.footer-tag { color: var(--muted); margin-top: .4rem; }
.social { display: flex; gap: .6rem; margin-top: 1.25rem; flex-wrap: wrap; }
.social a { display: inline-flex; align-items: center; gap: .5rem; padding: .55rem 1rem; border: 1.5px solid var(--line); border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 500; min-height: 44px; }
.social a:hover { border-color: var(--brand); color: var(--brand); }
.footer-col h2 { font: 600 1rem/1.2 var(--font-body); letter-spacing: 0; margin-bottom: 1rem; color: var(--muted); }
.footer-col li + li { margin-top: .5rem; }
.footer-col a { color: var(--ink); text-decoration: none; }
.footer-col a:hover { color: var(--brand); text-decoration: underline; }
.footer-col p { margin-top: 1rem; }
.footer-bottom { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; padding-block: 1.5rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; color: var(--muted); font-size: .92rem; }
.footer-bottom ul { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--brand); }
@media (max-width: 900px) { .footer-inner { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-inner { grid-template-columns: 1fr; } }

/* ---------- Bewegung: nur wenn erwünscht und nur mit JS ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-inner > * { animation: rise .8s cubic-bezier(.16, 1, .3, 1) both; }
  .hero-inner > *:nth-child(2) { animation-delay: .08s; }
  .hero-inner > *:nth-child(3) { animation-delay: .16s; }
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.16, 1, .3, 1), transform .7s cubic-bezier(.16, 1, .3, 1); }
  .js .reveal.is-in { opacity: 1; transform: none; }
  @keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  .site-header, .mobile-nav, .site-footer, .hero-actions, .skip-link { display: none !important; }
  body { background: #fff; color: #000; }
}

.news-img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-card); margin-bottom: 1.5rem; }
.h3 { font-size: clamp(1.2rem, 1.05rem + .6vw, 1.5rem); line-height: 1.2; }

/* ---------- Externe Einbindung (Zwei-Klick) ---------- */
.embed h2 { font-size: clamp(1.4rem, 1.15rem + 1vw, 2rem); margin-bottom: 1rem; }
.embed-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
.embed-consent { display: grid; gap: .9rem; padding: clamp(1.25rem, 3vw, 2rem); max-width: 60ch; }
.embed-consent p { color: var(--muted); }
.embed-consent p strong { color: var(--ink); font: 700 1.2rem/1.3 var(--font-display); }
.embed-box iframe { display: block; width: 100%; height: 640px; border: 0; background: var(--surface); }
.stack-top { margin-top: clamp(2rem, 5vw, 4rem); }
