/* ============================================================
   SV Obergessertshausen/Aichen 1947 e.V. — Website-Stylesheet
   Handgeschrieben, kein Framework, keine Build-Pipeline.
   ============================================================ */

/* ---- Self-hosted Schriften (kein Google-Fonts-CDN, DSGVO-unkritisch) ---- */
@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces-variable.woff2") format("woff2-variations"),
       url("/fonts/fraunces-variable.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Work Sans";
  src: url("/fonts/work-sans-variable.woff2") format("woff2-variations"),
       url("/fonts/work-sans-variable.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

/* ---- Design-Tokens ---- */
:root {
  /* Vereinsfarben, exakt aus dem Wappen (Logo_SV_Obergessertshausen_4c.pdf) */
  --navy: #00244c;
  --navy-2: #0d3c6e;      /* Hover-/Sekundärflächen */
  --navy-deep: #001527;   /* Verlauf/Schatten-Tiefe */
  --accent: #7c8896;       /* Silber/Stahlblau, nur als Schmuckfarbe */
  --accent-light: #cfd6dd;

  --ink: #1e2126;
  --ink-soft: #565a66;
  --paper: #f7f4ec;       /* warmes Off-White, nicht steriles Grau */
  --paper-card: #ffffff;
  --line: rgba(0, 36, 76, 0.14);
  --line-strong: rgba(0, 36, 76, 0.28);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Work Sans", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --header-h: 92px;
  --header-h-scrolled: 62px;
  --radius: 10px;
  --shadow-soft: 0 4px 18px rgba(0, 21, 39, 0.08);
  --shadow-strong: 0 10px 34px rgba(0, 21, 39, 0.22);

  --content-w: 1160px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-top: var(--header-h);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; margin: 0 0 0.5em; text-wrap: balance; color: var(--navy); }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }

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

/* Sichtbarer Fokus-Zustand für Tastaturbedienung */
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 0.75em 1.25em;
  z-index: 2000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---- Layout-Hilfen ---- */
.wrap {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}
.section {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}
.section--tight { padding: clamp(1.5rem, 4vw, 2.5rem) 0; }
.section--navy { background: var(--navy); color: #fff; }
.section--navy h2, .section--navy h3 { color: #fff; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6em;
}
.eyebrow::before {
  content: "";
  width: 1.4em;
  height: 2px;
  background: var(--accent);
  display: inline-block;
}

.section-head { max-width: 640px; margin-bottom: clamp(1.5rem, 4vw, 2.5rem); }
.section-head p { color: var(--ink-soft); }

h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  min-height: 48px;
  padding: 0.7em 1.5em;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.12s ease;
}
.btn:active { transform: scale(0.98); }
.btn--primary { background: #fff; color: var(--navy); }
.btn--primary:hover { background: var(--accent-light); }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.55); }
.btn--ghost-light:hover { background: rgba(255,255,255,0.12); border-color: #fff; }
.btn--outline { background: transparent; color: var(--navy); border-color: var(--line-strong); }
.btn--outline:hover { border-color: var(--navy); background: rgba(0,36,76,0.05); }

/* ---- Icons (inline SVG, kein Icon-Font) ---- */
.icon { width: 1.2em; height: 1.2em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Icon-Chip: rundes, sanft getöntes Icon-Badge statt nackter Linien-Icons */
.icon-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(155deg, rgba(0,36,76,0.11), rgba(0,36,76,0.03));
  color: var(--navy);
  flex: none;
}
.icon-chip .icon { width: 1.4em; height: 1.4em; }
.icon-chip--on-navy { background: rgba(255,255,255,0.14); color: #fff; }
.icon-chip--emoji { font-size: 1.4rem; line-height: 1; }
.icon-chip--sm { width: 38px; height: 38px; }

/* Meta-Zeile: Icon-Chip + Text, ersetzt lose Emoji-Zeilen */
.meta-row { display: flex; align-items: center; gap: 0.85rem; }
.meta-row + .meta-row { margin-top: 0.6rem; }
.meta-row__text strong { display: block; font-size: 0.98rem; color: var(--ink); font-weight: 600; }
.meta-row__text span { display: block; font-size: 0.82rem; color: var(--ink-soft); }

/* Badge/Pill (z.B. Liga-/Saison-Angabe im Seitenkopf) */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.35em 0.9em;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.28);
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
}
.badge .icon { width: 1.05em; height: 1.05em; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 1000;
  background: var(--navy);
  display: flex;
  align-items: center;
  transition: height 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}
.site-header.is-scrolled { height: var(--header-h-scrolled); box-shadow: var(--shadow-strong); }

.site-header__inner {
  max-width: var(--content-w);
  margin: 0 auto;
  width: 100%;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: #fff; }
.brand__logo {
  height: 66px;
  width: auto;
  transition: height 0.25s ease;
}
.site-header.is-scrolled .brand__logo { height: 44px; }
.brand__text { font-family: var(--font-display); line-height: 1.1; }
.brand__name { display: block; font-weight: 600; font-size: 1.05rem; }
.brand__since { display: block; font-size: 0.75rem; color: var(--accent-light); letter-spacing: 0.06em; }

@media (max-width: 560px) {
  .brand__text { display: none; }
}

/* ---- Hamburger-Button ---- */
.nav-toggle {
  background: none;
  border: none;
  color: #fff;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  z-index: 1300;
}
.hamburger, .hamburger::before, .hamburger::after {
  width: 26px;
  height: 2px;
  background: #fff;
  display: block;
  transition: transform 0.25s ease, opacity 0.2s ease, top 0.25s ease;
}
.hamburger { position: relative; }
.hamburger::before, .hamburger::after { content: ""; position: absolute; left: 0; }
.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }
.nav-toggle[aria-expanded="true"] .hamburger { background: transparent; }
.nav-toggle[aria-expanded="true"] .hamburger::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .hamburger::after { top: 0; transform: rotate(-45deg); }

/* ============================================================
   NAVIGATION (Off-Canvas, Slide-in/Slide-out)
   ============================================================ */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 21, 39, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 1100;
}
.nav-overlay.is-open { opacity: 1; pointer-events: auto; }

#main-nav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(360px, 88vw);
  background: var(--navy-deep);
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(.4,0,.2,1);
  z-index: 1200;
  overflow-y: auto;
  padding: 1.5rem 1.5rem 2.5rem;
  display: flex;
  flex-direction: column;
}
#main-nav.is-open { transform: translateX(0); }

.nav-panel__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 1.25rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.14);
}
.nav-panel__brand img { height: 46px; }
.nav-panel__brand span { font-family: var(--font-display); color: #fff; font-size: 1rem; font-weight: 600; }

.nav-list { display: flex; flex-direction: column; gap: 0.15rem; }
.nav-list a, .nav-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 52px;
  padding: 0.6em 0.25em;
  color: #fff;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  cursor: pointer;
  list-style: none;
}
.nav-list a::-webkit-details-marker, .nav-list summary::-webkit-details-marker { display: none; }
.nav-list a:hover, .nav-list a:active { color: var(--accent-light); }

.nav-list details > summary .chev { transition: transform 0.2s ease; }
.nav-list details[open] > summary .chev { transform: rotate(180deg); }
.nav-list details[open] > summary { color: var(--accent-light); }

.nav-sublist { display: flex; flex-direction: column; padding: 0 0 0.5rem 0.75rem; }
.nav-sublist a {
  min-height: 44px;
  font-size: 0.96rem;
  font-weight: 400;
  color: rgba(255,255,255,0.85);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav-panel__foot {
  margin-top: auto;
  padding-top: 1.25rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  display: flex;
  gap: 0.9rem;
}
.nav-panel__foot a { color: rgba(255,255,255,0.8); }

body.nav-open { overflow: hidden; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: linear-gradient(155deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -12%;
  top: 12%;
  width: 62%;
  aspect-ratio: 1 / 1.15;
  background: url("/img/logo/svo-logo.svg") center / contain no-repeat;
  opacity: 0.08;
  pointer-events: none;
}
.hero__inner {
  padding-top: clamp(2.75rem, 8vw, 5.5rem);
  padding-bottom: clamp(2.25rem, 6vw, 3.5rem);
  position: relative;
  z-index: 1;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  color: var(--accent-light);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.1rem, 6vw, 3.4rem);
  max-width: 16ch;
  margin-bottom: 0.4em;
}
.hero p.lede {
  max-width: 46ch;
  font-size: 1.15rem;
  color: rgba(255,255,255,0.86);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.75rem; }

/* Nächstes-Spiel-Leiste */
/* Schnellzugriff-Karten in der Hero (1./2. Mannschaft, Damen, Walking Football) */
.hero-quicklinks {
  margin-top: clamp(2rem, 5vw, 3rem);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}
.hero-quicklink {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.6rem;
  padding: 1.2rem 0.75rem;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.16);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background-color 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}
.hero-quicklink:hover { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.32); transform: translateY(-2px); }
@media (max-width: 640px) {
  .hero-quicklinks { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   KARTEN / ABTEILUNGS-KACHELN
   ============================================================ */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
}
.tile {
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.3rem;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  min-height: 128px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.tile:hover { border-color: var(--navy); box-shadow: var(--shadow-soft); transform: translateY(-2px); }
.tile__icon { color: var(--accent); }
.tile h3 { margin: 0; font-size: 1.08rem; }
.tile p { margin: 0; font-size: 0.92rem; color: var(--ink-soft); }

/* News-Karten */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.news-card {
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.news-card__img { aspect-ratio: 4/3; object-fit: cover; width: 100%; background: var(--line); }
.news-card__body { padding: 1.1rem 1.25rem 1.3rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.news-card time { font-size: 0.8rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.news-card h3 { font-size: 1.05rem; }
.news-card p { font-size: 0.94rem; color: var(--ink-soft); margin-bottom: 0; }
.news-card__more { margin-top: auto; font-weight: 600; font-size: 0.9rem; color: var(--navy); text-decoration: none; }

/* ============================================================
   WIDGET-CONTAINER (FUPA / BFV)
   ============================================================ */
.widget-box {
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  overflow-x: auto;
}
.widget-box iframe, .widget-box > div { width: 100% !important; max-width: 100%; border: 0; }

/* ============================================================
   KLICK-TO-LOAD KARTE (Anfahrt)
   ============================================================ */
.map-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 16/10;
  background: var(--navy-deep) center/cover no-repeat;
}
.map-frame__cta {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: rgba(0, 21, 39, 0.55);
  color: #fff;
  text-align: center;
  padding: 1.5rem;
}
.map-frame__cta p { max-width: 32ch; font-size: 0.92rem; color: rgba(255,255,255,0.85); margin: 0; }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ============================================================
   SPONSOREN
   ============================================================ */
.sponsor-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 4vw, 3rem);
}
.sponsor-strip img {
  max-height: 64px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  filter: grayscale(1) opacity(0.7);
  transition: filter 0.2s ease;
}
.sponsor-strip img:hover { filter: grayscale(0) opacity(1); }
.sponsor-strip--small img { max-height: 40px; max-width: 110px; }

/* ============================================================
   INSTAGRAM-HINWEIS (Startseite)
   ============================================================ */
.instagram-block {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.instagram-block__icon {
  flex: none;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.instagram-block__icon:hover { border-color: var(--accent); transform: scale(1.05); }
.instagram-block__icon img { width: 100%; height: 100%; object-fit: contain; }
.instagram-block > div { flex: 1 1 320px; }
.instagram-block > .btn { flex: none; margin-left: auto; }
@media (max-width: 640px) {
  .instagram-block { text-align: center; }
  .instagram-block__icon { margin: 0 auto; }
  .instagram-block > .btn { margin: 0 auto; }
}

/* ============================================================
   FANSHOP-BANNER (Startseite)
   ============================================================ */
.fanshop-banner {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.fanshop-banner:hover { transform: translateY(-2px); box-shadow: var(--shadow-strong); }
.fanshop-banner img { width: 100%; height: auto; display: block; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,0.82); }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2.5rem;
  padding: clamp(2.5rem, 6vw, 4rem) 0 2rem;
}
.footer-grid h4 { color: #fff; font-family: var(--font-body); font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 1rem; }
.footer-grid ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-grid a { color: rgba(255,255,255,0.78); text-decoration: none; font-size: 0.96rem; }
.footer-grid a:hover { color: var(--accent-light); }
.footer-contact li { display: flex; align-items: flex-start; gap: 0.6rem; }
.footer-brand { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.9rem; }
.footer-brand img { height: 48px; }
.footer-brand span { font-family: var(--font-display); color: #fff; font-weight: 600; }
.footer-social { display: flex; gap: 0.75rem; margin-top: 1rem; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  display: inline-flex; align-items: center; justify-content: center;
}
.footer-social a:hover { border-color: var(--accent-light); color: var(--accent-light); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 1.25rem 0 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
}
.footer-bottom a { color: rgba(255,255,255,0.7); text-decoration: none; }
.footer-bottom a:hover { color: #fff; }
.footer-bottom__links { display: flex; gap: 1.25rem; flex-wrap: wrap; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (min-width: 780px) {
  body { font-size: 1.0625rem; }
  .hero__inner { max-width: 62ch; }
}

@media (max-width: 480px) {
  .wrap { padding: 0 1rem; }
  .next-match__meta + .next-match__meta::before { display: none; }
  .next-match__meta { display: block; }
}

/* ============================================================
   UNTERSEITEN: gemeinsame Bausteine
   ============================================================ */

/* Seiten-Kopf (Abteilungen/Verein-Seiten) */
.page-hero {
  background: linear-gradient(155deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff;
}
.page-hero__inner { padding-top: clamp(2.25rem, 6vw, 3.25rem); padding-bottom: clamp(1.75rem, 4vw, 2.25rem); }
.page-hero .eyebrow { color: var(--accent-light); }
.page-hero .eyebrow::before { background: var(--accent-light); }
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 5vw, 2.6rem); margin-bottom: 0.3em; }
.page-hero p { color: rgba(255,255,255,0.85); max-width: 56ch; margin: 0 0 1rem; }
.page-hero .badge { margin-top: 0.25rem; }

/* Zwei-Spalten-Layout Text/Bild */
.split {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3rem);
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
}
.split--reverse { grid-template-columns: 1fr 1.1fr; }
.split--reverse .split__media { order: 2; }
@media (max-width: 760px) {
  .split, .split--reverse { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
}
.split__media img { border-radius: var(--radius); width: 100%; object-fit: cover; }
.split__media--stack { display: flex; flex-direction: column; gap: 1rem; }

/* Trainingszeiten-Box */
.info-box {
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  margin-top: 1.5rem;
}
.info-box h3 { font-size: 1.05rem; margin-bottom: 0.6rem; }
.info-box p { margin-bottom: 0.4rem; color: var(--ink); }
.info-box .highlight { color: var(--ink-soft); font-style: italic; margin-top: 0.6rem; }

/* Fakten-Liste (Liga, Erfolge) */
.fact-list { display: flex; flex-direction: column; gap: 0.3rem; margin: 0.75rem 0 1.25rem; color: var(--ink-soft); }
.fact-list strong { color: var(--ink); }

/* Kader/Personen-Tabelle */
.roster-table { width: 100%; border-collapse: collapse; }
.roster-table th, .roster-table td {
  text-align: left;
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}
.roster-table th { color: var(--ink-soft); font-weight: 600; width: 34%; }
.roster-table tr:last-child td, .roster-table tr:last-child th { border-bottom: none; }
.roster-table a { color: var(--navy); text-decoration: underline; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-card); }

/* Downloads-Liste */
.download-list { display: flex; flex-direction: column; gap: 0.75rem; }
.download-item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.download-item:hover { border-color: var(--navy); box-shadow: var(--shadow-soft); }
.download-item__icon { color: var(--accent); flex: none; }
.download-item__label { font-weight: 600; }
.download-item__meta { display: block; font-size: 0.85rem; color: var(--ink-soft); font-weight: 400; }

/* Zeitstrahl (News/Geschichte) */
.timeline { display: flex; flex-direction: column; gap: 0; }
.timeline-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.25rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}
.timeline-item:last-child { border-bottom: none; }
.timeline-item time { color: var(--accent); font-weight: 600; font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.timeline-item h3 { margin-bottom: 0.3em; }
.timeline-item img { border-radius: var(--radius); margin-top: 0.75rem; max-width: 420px; }
@media (max-width: 560px) {
  .timeline-item { grid-template-columns: 1fr; gap: 0.4rem; }
}

/* Geschichte-Abschnitt */
.history-block + .history-block { margin-top: clamp(2rem, 5vw, 3rem); padding-top: clamp(2rem, 5vw, 3rem); border-top: 1px solid var(--line); }
.history-block blockquote {
  margin: 1rem 0 0;
  padding: 1rem 1.2rem;
  border-left: 3px solid var(--accent);
  background: var(--paper);
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* Vorstand: Personen-Grid */
.person-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; }
.person-card {
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  min-width: 0;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.person-card:hover { border-color: var(--navy); box-shadow: var(--shadow-soft); }
.person-card > div { min-width: 0; }
.person-avatar {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(155deg, var(--navy), var(--navy-2));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
}
.person-card .role { font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); font-weight: 700; margin-bottom: 0.2rem; }

/* Ausgegraute Karte für nicht besetzte Mannschaften/Rollen */
.person-card--muted { opacity: 0.55; }
.person-card--muted:hover { border-color: var(--line); box-shadow: none; }
.person-avatar--muted { background: var(--ink-soft); }
.person-card--muted .name { color: var(--ink-soft); font-style: italic; }
.person-card .name { font-family: var(--font-display); font-size: 1.05rem; color: var(--navy); display: block; }
.person-card .contact { display: block; font-size: 0.85rem; color: var(--ink-soft); margin-top: 0.35rem; overflow-wrap: anywhere; }
.person-card .contact a { color: var(--ink-soft); overflow-wrap: anywhere; }
.person-card .name { overflow-wrap: anywhere; }

/* Jugend-Trainertabelle: eine durchlaufende Tabelle mit Navy-Gruppenzeile je Altersklasse */
.youth-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; min-width: 420px; }
.youth-table th, .youth-table td { text-align: left; padding: 0.65rem 0.9rem; border-bottom: 1px solid var(--line); }
.youth-table thead th {
  background: var(--paper-card);
  color: var(--ink-soft);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}
.youth-table tbody tr:last-child td { border-bottom: none; }
.youth-table td:first-child { font-weight: 600; color: var(--ink); }
.youth-table a { color: var(--navy); font-weight: 600; text-decoration: none; white-space: nowrap; }
.youth-table a:hover { text-decoration: underline; }
.youth-table__group td,
.youth-table__group td:first-child {
  background: var(--navy);
  color: #fff;
  padding: 0.6rem 0.9rem;
}
.youth-table__group-name { font-family: var(--font-display); font-size: 1rem; font-weight: 600; }
.youth-table__u { color: var(--accent-light); font-weight: 500; font-size: 0.85rem; }
.youth-table__group-time { font-size: 0.78rem; color: rgba(255,255,255,0.82); margin-top: 0.15rem; }

/* Platzhalter für vom Verein noch zu ergänzende Angaben (Impressum/Datenschutz) */
.todo {
  background: #fbf1e6;
  border: 1px solid #e8c99a;
  border-radius: 4px;
  padding: 0.05em 0.5em;
  color: #6b4a1a;
  font-style: normal;
  font-weight: 600;
  font-size: 0.92em;
}

.legal-section + .legal-section { margin-top: 2.25rem; padding-top: 2.25rem; border-top: 1px solid var(--line); }
.legal-section h2 { font-size: 1.3rem; }
.legal-section h3 { font-size: 1.05rem; margin-top: 1.25rem; }
.legal-section p { color: var(--ink); }
.legal-section address { font-style: normal; }

/* Hinweis-Banner (z.B. "findet aktuell nicht statt") */
.notice-banner {
  background: #fbf1e6;
  border: 1px solid #e8c99a;
  color: #6b4a1a;
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

/* ============================================================
   GALERIE: Filter + Grid + Lightbox
   ============================================================ */
.gallery-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.75rem;
}
.gallery-filter button {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  background: var(--paper-card);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  padding: 0.5em 1.1em;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  min-height: 40px;
}
.gallery-filter button .icon { width: 1.05em; height: 1.05em; color: var(--accent); }
.gallery-filter button.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.gallery-filter button.is-active .icon { color: var(--accent-light); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.9rem;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
  aspect-ratio: 4/3;
  background: var(--line);
  border: none;
  padding: 0;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item__cap {
  position: absolute; inset: auto 0 0 0;
  background: linear-gradient(0deg, rgba(0,21,39,0.82), rgba(0,21,39,0));
  color: #fff;
  padding: 1.5rem 0.8rem 0.6rem;
  font-size: 0.82rem;
  text-align: left;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.gallery-item:hover .gallery-item__cap, .gallery-item:focus-visible .gallery-item__cap { opacity: 1; }
.gallery-item__cap strong { display: block; font-size: 0.88rem; }
.gallery-item.is-hidden { display: none; }

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 10, 20, 0.92);
  z-index: 1500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 100%; max-height: 82vh; border-radius: 6px; }
.lightbox figcaption { color: #fff; text-align: center; margin-top: 0.75rem; font-size: 0.9rem; }
.lightbox__close {
  position: absolute; top: 1rem; right: 1rem;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.12); border: none; color: #fff;
  font-size: 1.4rem; cursor: pointer;
}
