/* ==========================================================================
   BG Rot-Weiss Krefeld 46/89 e.V. — Design-System "Billard-Sport-Etage"
   Tiefes Tuch-Grün, Creme, Vereinsrot, Messing. Archivo (sans-serif).
   ========================================================================== */

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 700;
  font-display: block;
  src: url('../fonts/archivo-latin.woff2') format('woff2');
}

:root {
  --felt-deep: #061d16;
  --felt-deep-rgb: 6, 29, 22;
  --felt: #0b2a20;
  --felt-rgb: 11, 42, 32;
  --felt-raise: #10362a;
  --felt-line: #1e4a38;
  --glow-hi: rgba(46, 106, 79, 0.35);
  --glow-lo: rgba(10, 46, 33, 0.9);
  --cream: #f3ead9;
  --cream-soft: #d9cfb6;
  --cream-dim: #a99f89;
  --paper: #f6efe0;
  --paper-edge: #e7dcc4;
  --ink: #1d1a14;
  --ink-soft: #57503f;
  --red: #c8102e;
  --red-deep: #9c0c24;
  --red-soft: #e2494f;
  --brass: #c9a45b;
  --brass-dim: #77653a;
  --pool-blue: #2b5ea7;
  /* Beide Rollen sans-serif; --font-display bleibt als eigenes Token erhalten,
     damit Überschriften-Typografie zentral änderbar bleibt */
  --font-display: 'Archivo', 'Segoe UI', 'Helvetica Neue', sans-serif;
  --font-body: 'Archivo', 'Segoe UI', 'Helvetica Neue', sans-serif;
  /* Abdunklungs-Verlauf der Hero-Slideshow (Petrol überschreibt mit Blau-Werten) */
  --hero-overlay-rgb: var(--felt-deep-rgb);
  --container: 1400px;
  --radius: 10px;
  --shadow-card: 0 18px 40px -18px rgba(0, 0, 0, 0.55);
}

/* Zweites Farbschema: Blau (Carambol-Turniertuch) — nur Tuch-Töne wechseln,
   Papier, Vereinsrot und Messing bleiben identisch */
html[data-theme="blau"] {
  --felt-deep: #071527;
  --felt-deep-rgb: 7, 21, 39;
  --felt: #0c2440;
  --felt-rgb: 12, 36, 64;
  --felt-raise: #123253;
  --felt-line: #20497a;
  --glow-hi: rgba(52, 96, 146, 0.38);
  --glow-lo: rgba(9, 30, 54, 0.9);
}

/* Drittes Farbschema: Petrol — Familie um #1f526b, gleiche Abstufungen */
html[data-theme="petrol"] {
  --felt-deep: #0f2733;
  --felt-deep-rgb: 15, 39, 51;
  --felt: #1f526b;
  --felt-rgb: 31, 82, 107;
  --felt-raise: #2a627e;
  --felt-line: #387594;
  --glow-hi: rgba(56, 117, 148, 0.38);
  --glow-lo: rgba(15, 39, 51, 0.9);
  /* Hero-Verlauf leiht sich den Deep-Ton des blauen Schemas */
  --hero-overlay-rgb: 7, 21, 39;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* Scrollbar immer anzeigen, damit beim Seitenwechsel nichts springt */
  overflow-y: scroll;
}

/* Ausnahme intern.html (<html class="intern">): passt komplett ins Fenster,
   deshalb Scrollleiste nur zeigen, wenn wirklich gescrollt werden muss.
   Der Platz dafür bleibt aber reserviert, sonst rechnet .container hier
   mit einem um die Scrollleiste breiteren 100% als auf den anderen Seiten */
html.intern { overflow-y: auto; scrollbar-gutter: stable; }

body {
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--cream);
  background-color: var(--felt);
  background-image:
    radial-gradient(1200px 700px at 15% -10%, var(--glow-hi), transparent 60%),
    radial-gradient(900px 600px at 110% 15%, var(--glow-lo), transparent 65%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

/* Feine Tuch-Textur über allem */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Wichtig: .site-header hier nicht aufnehmen, sonst wird position:sticky überschrieben */
main, footer.site-footer { position: relative; z-index: 2; }

img { max-width: 100%; display: block; }
/* display:block würde als Autorenregel sonst das hidden-Attribut aushebeln */
img[hidden] { display: none; }

a { color: var(--brass); text-decoration: none; }
a:hover { color: var(--cream); }

/* Externe Verweise (z. B. im Login-Bereich): Unterstreichung + Pfeil machen
   sie klar als Links erkennbar — sonst gleichen sie den Messing-Feldlabels */
.extern-link { text-decoration: underline; text-underline-offset: 3px; }
.extern-link::after { content: ' ↗'; font-size: 0.85em; text-decoration: none; display: inline-block; }

::selection { background: var(--red); color: #fff; }

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
  border-radius: 2px;
}

.container {
  width: min(var(--container), calc(100% - 2.5rem));
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(var(--felt-deep-rgb), 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(201, 164, 91, 0.25);
}
/* Petrol: Menüleiste im Tuch-Ton statt im dunklen Deep-Ton */
html[data-theme="petrol"] .site-header {
  background: rgba(var(--felt-rgb), 0.85);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 74px;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--cream);
}
.wordmark:hover { color: var(--cream); }

.wordmark .mark {
  height: 48px;
  width: auto;
  flex: none;
}

.wordmark .name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.15;
  letter-spacing: 0.01em;
}

.wordmark .name small {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.site-nav a {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream-soft);
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.site-nav a:hover { color: var(--cream); border-bottom-color: var(--brass); }
.site-nav a.active { color: var(--cream); border-bottom-color: var(--red); }

.site-nav a.nav-intern {
  border: 1px solid var(--brass-dim);
  border-radius: 999px;
  padding: 0.42rem 1.1rem;
}
.site-nav a.nav-intern:hover { border-color: var(--brass); background: rgba(201, 164, 91, 0.1); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--brass-dim);
  border-radius: 6px;
  color: var(--cream);
  font: inherit;
  padding: 0.35rem 0.7rem;
  cursor: pointer;
}

/* Umschalter Farbschema (oben rechts); der Diamant zeigt das jeweils andere Schema */
.theme-toggle {
  width: 36px;
  height: 36px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--brass-dim);
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.theme-toggle:hover { border-color: var(--brass); background: rgba(201, 164, 91, 0.12); }

/* Der Diamant zeigt das Schema, zu dem der nächste Klick wechselt
   (Zyklus: Blau → Grün → Petrol → Blau, siehe app.js) */
.theme-toggle .swatch {
  width: 13px;
  height: 13px;
  transform: rotate(45deg);
  border: 1px solid rgba(243, 234, 217, 0.4);
  /* Grün aktiv (kein Attribut) → nächstes Schema: Petrol */
  background: linear-gradient(135deg, #1f526b 50%, #387594 50%);
}
html[data-theme="blau"] .theme-toggle .swatch {
  /* Blau aktiv → nächstes Schema: Grün */
  background: linear-gradient(135deg, #0b2a20 50%, #1e4a38 50%);
}
html[data-theme="petrol"] .theme-toggle .swatch {
  /* Petrol aktiv → nächstes Schema: Blau */
  background: linear-gradient(135deg, #0c2440 50%, #20497a 50%);
}

@media (max-width: 840px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(var(--felt-deep-rgb), 0.97);
    border-bottom: 1px solid rgba(201, 164, 91, 0.25);
    display: none;
    padding: 0.5rem 1.25rem 1.25rem;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 0.8rem 0.25rem; border-bottom: 1px solid rgba(201, 164, 91, 0.12); }
  .site-nav a.nav-intern { margin-top: 0.9rem; text-align: center; }
}

/* --------------------------------------------------------------------------
   Lauftext: Vereinsmitteilung als Laufband, das unter der Unternavigation
   schwebt (auf Seiten ohne Unternavigation direkt unter dem Header) und dort
   in jeder Scrollposition stehen bleibt. Text und Schalter stehen im
   Login-Bereich, eingesetzt wird die Leiste von js/app.js (Klasse
   .hat-lauftext am <html>). Ihre Höhe steckt in --lauftext-hoehe, weil die
   Maße drumherum (Inhaltsabstand, Hero, Anker-Ziele) damit rechnen müssen;
   --subnav-hoehe misst js/app.js, weil nicht jede Seite eine Unternavigation
   hat und mannschaften.js sie erst nach dem Laden füllt.
   -------------------------------------------------------------------------- */

:root { --lauftext-hoehe: 0px; --subnav-hoehe: 0px; }
html.hat-lauftext { --lauftext-hoehe: 56px; }

.lauftext {
  height: var(--lauftext-hoehe);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: rgba(200, 16, 46, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  /* Oben grenzt immer schon eine Linie an (Header bzw. Unternavigation) */
  border-bottom: 1px solid rgba(201, 164, 91, 0.18);
}

/* Die schwebende Leiste der Seiten (die Vorschau im Login-Bereich bleibt im
   Fluss); sitzt unter der Unternavigation und über dem Inhalt */
.lauftext-leiste {
  position: fixed;
  top: calc(74px + var(--subnav-hoehe));
  left: 0;
  right: 0;
  z-index: 39;
}

/* Der Inhalt rückt um die Leistenhöhe nach unten — sie schwebt und würde ihn
   sonst überdecken (die Unternavigation darüber liegt weiterhin über den
   großzügigen Abständen der Seitenköpfe) */
html.hat-lauftext main { padding-top: var(--lauftext-hoehe); }
/* Ausnahme Startseite: die Slideshow bleibt bündig unter dem Header, die
   Leiste schwebt wie die Unternavigation über dem Bild */
html.hat-lauftext .hero { margin-top: calc(-1 * var(--lauftext-hoehe)); }

.lauftext .container {
  display: flex;
  align-items: center;
  min-height: 0;
  overflow: hidden;
}

.lauftext-bahn {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
}

/* Startpunkt (rechter Rand der Bahn) und Dauer setzt js/app.js aus der
   gemessenen Breite — sonst rasen kurze Texte vorbei und lange kriechen */
.lauftext-bahn span {
  display: inline-block;
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--cream);
  will-change: transform;
  animation: lauftext-lauf var(--lauftext-dauer, 24s) linear infinite;
}

@keyframes lauftext-lauf {
  from { transform: translateX(var(--lauftext-start, 100%)); }
  to { transform: translateX(-100%); }
}

/* Zum Lesen anhalten */
.lauftext:hover .lauftext-bahn span,
.lauftext:focus-within .lauftext-bahn span { animation-play-state: paused; }

/* Vorschau im Login-Bereich: dieselbe Leiste, aber im Panel statt schwebend
   (dort fehlt die Klasse .hat-lauftext, die Höhe kommt deshalb von hier) */
.lauftext-vorschau {
  --lauftext-hoehe: 56px;
  border: 1px solid var(--felt-line);
  border-radius: 7px;
}
.lauftext-vorschau .container { width: 100%; padding: 0 0.9rem; }
#lauftext-vorschau .sub { font-size: 0.8rem; color: var(--cream-dim); }

@media (prefers-reduced-motion: reduce) {
  .lauftext-bahn { text-align: center; }
  .lauftext-bahn span {
    animation: none;
    transform: none;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* --------------------------------------------------------------------------
   Unternavigation: Abschnitte der aktuellen Seite, klebt unter dem Header
   (nur auf Seiten mit mehreren Abschnitten; auf mannschaften.html füllt
   js/mannschaften.js die Leiste nach dem Laden der Daten)
   -------------------------------------------------------------------------- */

/* Schwebt unter dem Header über dem Inhalt (belegt keinen Platz im
   Layoutfluss) und ist halbtransparent; die page-heads der Unterseiten
   haben genug oberen Abstand, damit nichts verdeckt wird */
.subnav {
  position: fixed;
  top: 74px; /* Höhe des Headers */
  left: 0;
  right: 0;
  z-index: 40;
  background: rgba(var(--felt-deep-rgb), 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(201, 164, 91, 0.18);
}
/* Petrol: Unternavigation im Tuch-Ton, gleiche Deckung wie die Menüleiste —
   beide Leisten kleben aufeinander und sollen als ein Block wirken */
html[data-theme="petrol"] .subnav {
  background: rgba(var(--felt-rgb), 0.5);
}

.subnav .container {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 46px;
  overflow-x: auto; /* schmale Screens: seitlich wischen statt umbrechen */
  scrollbar-width: none;
}
.subnav .container::-webkit-scrollbar { display: none; }

/* Einträge zentrieren — über Auto-Margins statt justify-content, damit bei
   Überbreite (schmale Screens) der Listenanfang scrollbar bleibt */
.subnav a:first-child { margin-left: auto; }
.subnav a:last-child { margin-right: auto; }

.subnav a {
  flex: none;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream-dim);
  padding: 0.85rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.subnav a:hover { color: var(--cream); border-bottom-color: var(--brass); }
.subnav a[aria-current="true"] { color: var(--cream); border-bottom-color: var(--red); }

/* Anker-Ziele nicht unter Header und Unternavigation verschwinden lassen */
.section[id] { scroll-margin-top: calc(135px + var(--lauftext-hoehe)); }

/* --------------------------------------------------------------------------
   Bausteine: Kicker, Divider, Buttons, Chips, Bälle
   -------------------------------------------------------------------------- */

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--brass);
}

.kicker::before {
  content: '';
  width: 9px;
  height: 9px;
  transform: rotate(45deg);
  background: var(--red);
  flex: none;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.12; }

.section { padding: 5.5rem 0; }

.section-head { margin-bottom: 2.8rem; }
.section-head h2 {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  margin-top: 0.7rem;
  max-width: 25ch;
}
.section-head p { color: var(--cream-soft); max-width: 62ch; margin-top: 0.9rem; }

/* Bande: Trennlinie mit Messing-Diamonds wie auf dem Tischrahmen */
.rail {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin: 0 auto;
  width: min(var(--container), calc(100% - 2.5rem));
}
.rail::before, .rail::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brass-dim));
}
.rail::after { background: linear-gradient(90deg, var(--brass-dim), transparent); }
.rail .diamonds { display: flex; gap: 0.9rem; }
.rail .diamonds i {
  width: 7px; height: 7px;
  transform: rotate(45deg);
  background: var(--brass);
  opacity: 0.85;
}
.rail .diamonds i:nth-child(2) { background: var(--red); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream);
  background: transparent;
  border: 1px solid var(--brass);
  border-radius: 999px;
  padding: 0.85rem 1.7rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}
.btn:hover { background: rgba(201, 164, 91, 0.14); color: var(--cream); transform: translateY(-1px); }

.btn-primary {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.btn-primary:hover { background: var(--red-deep); border-color: var(--red-deep); color: #fff; }

.btn-small { padding: 0.5rem 1.05rem; font-size: 0.72rem; }

.btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; }

/* Kategorie-Chips */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.28rem 0.85rem;
  border: 1px solid transparent;
}
.chip-verein { background: rgba(201, 164, 91, 0.16); color: var(--brass); border-color: rgba(201, 164, 91, 0.5); }
.chip-pool { background: rgba(43, 94, 167, 0.2); color: #9fc0ee; border-color: rgba(88, 137, 205, 0.55); }
.chip-carambol { background: rgba(200, 16, 46, 0.16); color: #f08a94; border-color: rgba(226, 73, 79, 0.55); }
.chip-spielbericht { background: rgba(46, 106, 79, 0.3); color: #9ed3b4; border-color: rgba(110, 168, 135, 0.5); }
.chip-tournament { background: rgba(147, 112, 219, 0.2); color: #c9b6ea; border-color: rgba(167, 136, 222, 0.55); }

/* Billardkugeln in CSS.
   Poolbälle tragen ihre Nummer (data-nr) im weißen Kreis; die Farben folgen
   dem echten Satz: 1 gelb, 2 blau, 3 rot, 4 violett, 5 orange, 6 grün,
   7 braun, 8 schwarz — 9-15 als Streifenkugeln (.ball-stripe) in gleicher Farbe.
   Carambol-Bälle (weiß/gelb/rot) bleiben ohne Nummer. */
.ball {
  --ball-color: #fff;
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex: none;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.95) 0 8%, transparent 26%),
    radial-gradient(circle at 50% 45%, var(--ball-color) 55%, color-mix(in srgb, var(--ball-color) 55%, #000) 100%);
  box-shadow: inset -4px -8px 14px rgba(0, 0, 0, 0.35), 0 10px 16px -8px rgba(0, 0, 0, 0.6);
}

/* Streifenkugel: weißer Ball mit farbigem Gürtel */
.ball-stripe {
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.95) 0 8%, transparent 26%),
    radial-gradient(circle at 50% 45%, transparent 45%, rgba(0, 0, 0, 0.28) 100%),
    linear-gradient(to bottom, #f4efe2 0 24%, var(--ball-color) 24% 76%, #f4efe2 76% 100%);
}

/* Nummernkreis in Ballmitte */
.ball[data-nr]::after {
  content: attr(data-nr);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #f6f2e7;
  color: #1d1a14;
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 19px;
  text-align: center;
  box-shadow: inset 0 -1px 2px rgba(0, 0, 0, 0.25);
}

.ball-1, .ball-9 { --ball-color: #e8b800; }
.ball-2, .ball-10 { --ball-color: #1f5bad; }
.ball-3, .ball-11 { --ball-color: #c8102e; }
.ball-4, .ball-12 { --ball-color: #5b2a86; }
.ball-5, .ball-13 { --ball-color: #e2711d; }
.ball-6, .ball-14 { --ball-color: #1e7a46; }
.ball-7, .ball-15 { --ball-color: #7b3327; }
.ball-8 { --ball-color: #23211e; }

/* Carambol-Bälle */
.ball-red { --ball-color: #c8102e; }
.ball-yellow { --ball-color: #e8b800; }
.ball-white { --ball-color: #f2ede0; }

/* --------------------------------------------------------------------------
   Hero mit Slideshow
   -------------------------------------------------------------------------- */

/* Füllt die restliche Fensterhöhe unter dem Header komplett aus;
   der Scroll-Hinweis (.hero-scroll) führt zum ersten Abschnitt.
   Der Text sitzt vertikal mittig — seit dem Wegfall der Hero-Buttons
   würde er unten verankert zu tief rutschen */
.hero {
  position: relative;
  min-height: calc(100vh - 74px);
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero-slides { position: absolute; inset: 0; z-index: -2; background: var(--felt-deep); }

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 1.6s ease-in-out, transform 8s linear;
  filter: brightness(1.38) saturate(1.05);
}
.hero-slide.active { opacity: 1; transform: scale(1.12); }

/* Mittelzone etwas kräftiger abgedunkelt, weil der Text dort mittig sitzt */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgba(var(--hero-overlay-rgb), 0.4) 0%, rgba(var(--hero-overlay-rgb), 0.4) 38%, rgba(var(--hero-overlay-rgb), 0.3) 65%, rgba(var(--hero-overlay-rgb), 0.2) 100%);
}

/* Unten genug Luft, damit der Text nicht mit dem Scroll-Hinweis kollidiert */
.hero-inner { width: 100%; padding: 4.5rem 0 5.5rem; }

.hero h1 {
  font-size: clamp(2.4rem, 6.5vw, 4.6rem);
  max-width: 19ch;
  margin: 1rem 0 1.1rem;
  text-wrap: balance;
  /* Slogan wechselt mit der Slideshow (js/slideshow.js) und blendet dabei über */
  transition: opacity 0.45s ease;
}
.hero h1.wechselt { opacity: 0; }

.hero h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--brass);
}

.hero .lede {
  max-width: 56ch;
  color: var(--cream-soft);
  font-size: 1.06rem;
  margin-bottom: 2rem;
}

/* Slideshow-Steuerung im Scoreboard-Stil */
.hero-ctrl {
  position: absolute;
  right: 1.6rem;
  bottom: 1.6rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  z-index: 3;
}

.hero-ctrl button {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--brass-dim);
  background: rgba(var(--felt-deep-rgb), 0.55);
  color: var(--cream);
  font-size: 0.85rem;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.hero-ctrl button:hover { border-color: var(--brass); background: rgba(201, 164, 91, 0.18); }

.hero-ctrl .count {
  font-variant-numeric: tabular-nums;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: var(--cream-dim);
}
.hero-ctrl .count strong { color: var(--cream); font-weight: 600; }

/* Scroll-Hinweis: Chevron im Kreis, mittig am unteren Rand des Heros */
.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 1.6rem;
  z-index: 3;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--brass-dim);
  background: rgba(var(--felt-deep-rgb), 0.55);
  color: var(--cream);
  animation: hero-scroll-bob 2.6s ease-in-out infinite;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.hero-scroll:hover {
  border-color: var(--brass);
  background: rgba(201, 164, 91, 0.18);
  color: var(--cream);
}

@keyframes hero-scroll-bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* Ohne Animation (reduced motion) trotzdem korrekt zentrieren */
@media (prefers-reduced-motion: reduce) {
  .hero-scroll { transform: translateX(-50%); }
}

/* --------------------------------------------------------------------------
   Startseite: Verein / Mitgliedschaften / Disziplinen
   -------------------------------------------------------------------------- */

/* HTML-Nachbau des Kopfbanners der alten Homepage (BG_RWK.png), nahtlos ins
   Billard-Sport-Etage-Design integriert: Aufbau wie das Original (zwei Titelzeilen,
   Verbandstexte flankieren "46/89 e.V."), aber Tuch-Hintergrund, Display-Schrift
   und Messing-Linien mit Diamanten statt des weißen Kastens */
.bgrw-banner {
  position: relative;
  margin-top: 1.8rem;
  color: var(--cream);
  font-family: var(--font-display);
  text-align: center;
  line-height: 1.2;
  padding: 1.7rem 2.4rem 1.5rem;
  border-top: 1px solid var(--brass-dim);
  border-bottom: 1px solid var(--brass-dim);
}

.bgrw-banner .titel {
  display: block;
  font-weight: 700;
  font-size: clamp(1.4rem, 3.4vw, 2.3rem);
}

.bgrw-banner .unterzeile {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.6rem;
  align-items: end;
  margin-top: 0.35rem;
}

.bgrw-banner .jahr {
  font-weight: 600;
  font-size: clamp(1rem, 2.4vw, 1.5rem);
  color: var(--brass);
}

.bgrw-banner .klein {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(0.58rem, 1.1vw, 0.72rem);
  letter-spacing: 0.06em;
  line-height: 1.65;
  color: var(--cream-dim);
  padding-bottom: 0.25em;
}
.bgrw-banner .klein.links { text-align: right; }
.bgrw-banner .klein.rechts { text-align: left; }

/* Diamanten auf den Banden-Linien (statt der roten Eckmarken des Originals) */
.bgrw-banner .eck {
  position: absolute;
  width: 8px;
  height: 8px;
  transform: rotate(45deg);
  background: var(--brass);
}
.bgrw-banner .eck.olinks { top: -4.5px; left: 0; }
.bgrw-banner .eck.orechts { top: -4.5px; right: 0; }
.bgrw-banner .eck.ulinks { bottom: -4.5px; left: 0; }
.bgrw-banner .eck.urechts { bottom: -4.5px; right: 0; }

@media (max-width: 620px) {
  .bgrw-banner .unterzeile { grid-template-columns: 1fr; gap: 0.4rem; }
  .bgrw-banner .klein.links, .bgrw-banner .klein.rechts { text-align: center; }
}

.about-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 3.5rem;
  align-items: start;
}

.about-statement {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  line-height: 1.35;
  color: var(--cream);
}
.about-statement strong { color: var(--brass); font-weight: 700; }

.about-copy { color: var(--cream-soft); margin-top: 1.4rem; }

.about-aside { display: grid; gap: 1.8rem; }

.membership-card,
.zeiten-card {
  background: var(--felt-raise);
  border: 1px solid var(--felt-line);
  border-radius: var(--radius);
  padding: 1.9rem;
  box-shadow: var(--shadow-card);
}

.zeiten-card h3,
.membership-card h3 {
  font-size: 0.8rem;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 1.1rem;
}

.membership-card ul { list-style: none; }
.membership-card li {
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(201, 164, 91, 0.14);
  color: var(--cream-soft);
}
.membership-card li:last-child { border-bottom: none; }
.membership-card li::before {
  content: '';
  width: 7px; height: 7px;
  flex: none;
  transform: rotate(45deg) translateY(-1px);
  background: var(--red);
}

/* Öffnungszeiten der Billard-Sport-Etage (verein.html + kontakt.html) */
.zeiten-liste { list-style: none; }
.zeiten-liste li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(201, 164, 91, 0.14);
  color: var(--cream-soft);
}
.zeiten-liste li:last-child { border-bottom: none; }
/* In der Kontakt-Karte ohne Trennlinien und linksbündig wie die übrigen
   Textzeilen (dort trennen schon die h3-Blöcke) */
.kontakt-card .zeiten-liste li {
  border-bottom: none;
  padding: 0.2rem 0;
  justify-content: flex-start;
}
.zeiten-liste .tag { color: var(--cream); font-weight: 600; }
.zeiten-liste .zeit { font-variant-numeric: tabular-nums; }

@media (max-width: 840px) {
  .about-grid { grid-template-columns: 1fr; gap: 2.2rem; }
}

.disciplines {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.8rem;
}

.discipline {
  position: relative;
  background: var(--felt-raise);
  border: 1px solid var(--felt-line);
  border-radius: var(--radius);
  padding: 2.4rem 2.2rem 2.2rem;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.discipline:hover { transform: translateY(-4px); border-color: var(--brass-dim); }

.discipline::before {
  content: '';
  position: absolute;
  top: 0; left: 2.2rem; right: 2.2rem;
  height: 3px;
  background: linear-gradient(90deg, var(--red), transparent);
}
.discipline.discipline-pool::before { background: linear-gradient(90deg, var(--pool-blue), transparent); }

.discipline .balls { display: flex; gap: 0.7rem; margin-bottom: 1.6rem; }

.discipline h3 { font-size: 1.7rem; margin-bottom: 0.8rem; }
.discipline p { color: var(--cream-soft); font-size: 0.98rem; }

.discipline .meta {
  margin-top: 1.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
}

@media (max-width: 720px) {
  .disciplines { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Neuigkeiten: Karten im "Vereinszeitungs"-Stil (Papier auf Tuch)
   -------------------------------------------------------------------------- */

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}
@media (max-width: 980px) { .news-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .news-grid { grid-template-columns: 1fr; } }

/* Masonry-Variante (Neuigkeitenseite): news.js verteilt die Karten auf
   .masonry-col-Spalten, jeweils in die aktuell kürzeste */
.news-grid.masonry { display: flex; align-items: flex-start; }
.news-grid.masonry .masonry-col {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}
.news-grid.masonry .status-note { flex: 1; }

.news-card {
  position: relative;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius);
  border-top: 5px solid var(--red);
  padding: 1.7rem 1.6rem 1.5rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  /* beschneidet das randlos angelegte Kopfbild exakt an der Kartenrundung */
  overflow: hidden;
}
.news-card:hover { transform: translateY(-4px) rotate(-0.2deg); }

/* Kopfbild auf der Karte: liegt über die negativen Margins randlos an roter
   Oberkante und Seitenrändern an (die Karte selbst schneidet die Ecken zu);
   feste Höhe, Bild proportional verkleinert bis es die Fläche deckt,
   zentriert und am Überstand beschnitten (kein Verzerren) */
.news-card .card-bild {
  margin: -1.7rem -1.6rem 0;
  height: 180px;
}
.news-card .card-bild img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Titel-Link deckt die ganze Kachel ab: Klick irgendwo öffnet die Detailseite */
.news-card h3 a::after {
  content: '';
  position: absolute;
  inset: 0;
}

.news-card .news-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.news-card time {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.news-card h3 {
  font-size: 1.32rem;
  line-height: 1.22;
}
.news-card h3 a { color: var(--ink); }
.news-card h3 a:hover { color: var(--red); }

.news-card .excerpt { color: var(--ink-soft); font-size: 0.95rem; flex: 1; }

.news-card .read-more {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
}
.news-card .read-more:hover { color: var(--red-deep); }

/* Chips auf Papier (Karten und Artikelbogen) */
.news-card .chip-verein, .article-sheet .chip-verein { background: rgba(154, 120, 48, 0.12); color: #8a6d2c; border-color: rgba(154, 120, 48, 0.4); }
.news-card .chip-pool, .article-sheet .chip-pool { background: rgba(43, 94, 167, 0.1); color: var(--pool-blue); border-color: rgba(43, 94, 167, 0.4); }
.news-card .chip-carambol, .article-sheet .chip-carambol { background: rgba(200, 16, 46, 0.08); color: var(--red); border-color: rgba(200, 16, 46, 0.35); }
.news-card .chip-spielbericht, .article-sheet .chip-spielbericht { background: rgba(20, 90, 60, 0.1); color: #14724a; border-color: rgba(20, 114, 74, 0.35); }
.news-card .chip-tournament, .article-sheet .chip-tournament { background: rgba(107, 79, 160, 0.1); color: #6b4fa0; border-color: rgba(107, 79, 160, 0.4); }

/* Filterleiste */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 2.4rem;
}

.filter-bar button {
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream-soft);
  background: transparent;
  border: 1px solid var(--felt-line);
  border-radius: 999px;
  padding: 0.55rem 1.25rem;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-bar button:hover { border-color: var(--brass); color: var(--cream); }
.filter-bar button[aria-pressed="true"] {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

/* Trenner zwischen unabhängigen Filtergruppen */
.filter-divider {
  width: 1px;
  align-self: stretch;
  background: var(--felt-line);
  margin: 0.2rem 0.4rem;
}

/* Artikel-Detail */
.article-sheet {
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius);
  border: 1px solid var(--paper-edge);
  border-top: 6px solid var(--red);
  box-shadow: var(--shadow-card);
  padding: clamp(1.8rem, 4.5vw, 3.5rem);
  max-width: 860px;
  margin-inline: auto;
}

/* Kopfbild im Artikel: immer vollständig sichtbar, auf Bogenbreite skaliert */
.article-titelbild {
  width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 1.8rem;
}

.article-sheet .article-head { margin-bottom: 2rem; padding-bottom: 1.6rem; border-bottom: 1px solid var(--paper-edge); }
.article-sheet h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); margin: 0.9rem 0 0.7rem; color: var(--ink); }
.article-sheet .article-info { color: var(--ink-soft); font-size: 0.85rem; letter-spacing: 0.06em; }

.article-body { font-size: 1.02rem; color: var(--ink); overflow-x: auto; }
.article-body h1, .article-body h2, .article-body h3, .article-body h4 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 1.6em 0 0.5em;
  line-height: 1.25;
}
.article-body h1 { font-size: 1.6rem; }
.article-body h2 { font-size: 1.4rem; }
.article-body h3 { font-size: 1.2rem; }
.article-body p, .article-body ul, .article-body ol { margin: 0 0 1em; }
.article-body ul, .article-body ol { padding-left: 1.4em; }
.article-body a { color: var(--red); text-decoration: underline; }
.article-body img { border-radius: 6px; margin: 1.2em 0; }
.article-body blockquote {
  border-left: 3px solid var(--brass);
  padding-left: 1.1em;
  color: var(--ink-soft);
  font-style: italic;
  margin: 1.2em 0;
}
.article-body table {
  border-collapse: collapse;
  margin: 1.4em 0;
  width: 100%;
  font-size: 0.92rem;
}
.article-body th, .article-body td {
  border: 1px solid #d5c9ad;
  padding: 0.5em 0.75em;
  text-align: left;
}
.article-body th { background: #ece1c8; font-weight: 700; }
.article-body tr:nth-child(even) td { background: #f0e8d4; }

/* Spielbericht-Detail: der Bogen löst sich vom 860px-Deckel (die Endbreite
   schneidet js/news.js auf den Bericht zu) und verzichtet auf runde Ecken */
#detail-view .article-sheet.bericht { max-width: none; border-radius: 0; }

/* Spielberichte: 1:1-Darstellung im isolierten iframe (js/news.js); weißer
   Grund wie auf der Ursprungsseite, eigenes CSS des Berichts kann übermalen */
.article-body .bericht-frame {
  display: block;
  width: 100%;
  border: 0;
  background: #fff;
}

/* Bildreihen der Historie-Seite (drei nebeneinander, mobil untereinander) */
.article-body .historie-galerie {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
  margin: 1.4em 0;
}
@media (max-width: 640px) { .article-body .historie-galerie { grid-template-columns: 1fr; } }
.article-body .historie-galerie img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0;
  cursor: zoom-in;
}

/* Lightbox: vergrößerte Ansicht der Galeriebilder (natives <dialog>) */
.bild-dialog {
  /* der globale *-Reset nimmt dem Dialog sein margin:auto aus dem
     Browser-Stylesheet — ohne diese Zeile klebt er oben links */
  margin: auto;
  padding: 0;
  border: none;
  background: transparent;
  max-width: min(92vw, 1100px);
  max-height: 90vh;
}
.bild-dialog::backdrop { background: rgba(0, 0, 0, 0.75); }
.bild-dialog img {
  /* feste Zielbreite: auch die kleinen Alt-Originale (~500px) werden deutlich
     vergrößert — die leichte Unschärfe durch das Hochskalieren ist gewollt */
  width: min(90vw, 1000px);
  height: auto;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: var(--shadow-card);
  cursor: zoom-out;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.6rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.back-link::before { content: '◀'; font-size: 0.6rem; }

/* --------------------------------------------------------------------------
   Linkseite: gruppierte Linklisten auf Papierkarten
   -------------------------------------------------------------------------- */

/* Masonry über CSS-Spalten: unterschiedlich hohe Gruppen-Karten stapeln sich
   lückenlos; die (alphabetische) Reihenfolge läuft dabei spaltenweise wie in
   einem Verzeichnis — für Neuigkeiten wäre das falsch, für Links passt es */
.link-gruppen {
  columns: 2;
  column-gap: 1.8rem;
}
@media (max-width: 840px) { .link-gruppen { columns: 1; } }

.link-gruppe {
  break-inside: avoid; /* Karten nicht über den Spaltenumbruch zerreißen */
  margin-bottom: 1.8rem;
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius);
  border-top: 5px solid var(--red);
  padding: 1.7rem 1.6rem 1.5rem;
  box-shadow: var(--shadow-card);
}
.link-gruppe h2 { font-size: 1.3rem; color: var(--ink); margin-bottom: 1.1rem; }
.link-gruppe ul { list-style: none; display: grid; gap: 0.8rem; }
.link-gruppe li { position: relative; padding-left: 1.1rem; }
/* Messing-Diamant als Aufzählungszeichen (Design-Motiv der Seite) */
.link-gruppe li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 7px;
  height: 7px;
  transform: rotate(45deg);
  background: var(--brass);
}
.link-gruppe a { color: var(--ink); font-weight: 600; }
.link-gruppe a:hover { color: var(--red); }
.link-gruppe .beschreibung { color: var(--ink-soft); font-size: 0.9rem; }

/* --------------------------------------------------------------------------
   Kontakt
   -------------------------------------------------------------------------- */

.kontakt-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 2rem;
}
@media (max-width: 900px) { .kontakt-grid { grid-template-columns: 1fr; } }

/* Beide Karten gleich hoch: das Formular-Panel stretcht auf Zeilenhöhe,
   das Nachrichtenfeld füllt den übrigen Platz */
.kontakt-grid .editor-panel { display: flex; flex-direction: column; }
.kontakt-grid .editor-panel form { flex: 1; display: flex; flex-direction: column; }
.kontakt-grid .editor-panel form > .field { flex: 1; display: flex; flex-direction: column; }
.kontakt-grid .editor-panel form > .field textarea { flex: 1; }
/* Flex-Spalte streckt Kinder auf volle Breite — der Senden-Button soll das nicht */
.kontakt-grid .editor-panel form > .btn { align-self: flex-start; }

.kontakt-card {
  background: var(--felt-raise);
  border: 1px solid var(--felt-line);
  border-radius: var(--radius);
  padding: 1.9rem;
  box-shadow: var(--shadow-card);
}

.kontakt-card h3 {
  font-size: 0.8rem;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 0.7rem;
}
.kontakt-card h3:not(:first-child) { margin-top: 1.6rem; }

.kontakt-card p, .kontakt-card address {
  font-style: normal;
  color: var(--cream-soft);
  line-height: 1.7;
}
.kontakt-card a { color: var(--cream); }
.kontakt-card a:hover { color: var(--brass); }

/* Zwei-Klick-Karte (OpenStreetMap wird erst nach Zustimmung geladen) */
.map-consent {
  background: var(--felt-raise);
  border: 1px dashed var(--brass-dim);
  border-radius: var(--radius);
  padding: 2.6rem 1.8rem;
  text-align: center;
  color: var(--cream-soft);
}
.map-consent p { max-width: 52ch; margin: 0 auto 1.3rem; font-size: 0.92rem; }
.map-consent .actions { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; }

.map-frame iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
.map-frame .osm-attribution {
  font-size: 0.75rem;
  color: var(--cream-dim);
  margin-top: 0.5rem;
}
.map-frame .map-route { margin-top: 0.9rem; }

/* Honeypot: fuer Menschen unsichtbar, fuer Bots ein normales Feld */
.hp-field {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   Termine
   -------------------------------------------------------------------------- */

.termin-list {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  max-width: 880px;
}

/* iCal-Download rechtsbündig unter der Filterleiste */
.ical-wrap {
  display: flex;
  justify-content: flex-end;
  margin: -1.2rem 0 1.8rem;
}

/* Monats-Trenner zwischen den Termingruppen */
.monat-trenner {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: 1.8rem;
}
.monat-trenner:first-child { margin-top: 0; }
.monat-trenner::before {
  content: '';
  width: 8px;
  height: 8px;
  flex: none;
  transform: rotate(45deg);
  background: var(--red);
}
.monat-trenner span {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--brass);
  white-space: nowrap;
}
.monat-trenner::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--brass-dim), transparent);
}

.termin {
  display: flex;
  gap: 1.4rem;
  align-items: flex-start;
  background: var(--felt-raise);
  border: 1px solid var(--felt-line);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.termin:hover { transform: translateY(-2px); border-color: var(--brass-dim); }
.termin.vergangen { opacity: 0.7; }

.termin .date-tile {
  flex: none;
  width: 74px;
  text-align: center;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--paper-edge);
  border-top: 4px solid var(--red);
  border-radius: 8px;
  padding: 0.55rem 0.3rem 0.6rem;
}
.termin .date-tile .day {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.55rem;
  line-height: 1.1;
}
.termin .date-tile .month {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.termin .termin-body { flex: 1; min-width: 0; }
.termin .termin-meta { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 0.5rem; }
.termin h3 { font-size: 1.28rem; margin-bottom: 0.3rem; }
.termin .sub { color: var(--cream-soft); font-size: 0.9rem; }
.termin .teilnehmer { margin-top: 0.55rem; font-size: 0.86rem; color: var(--cream-dim); }
.termin .teilnehmer strong { color: var(--cream-soft); font-weight: 600; }

.termin .bericht-link {
  display: inline-block;
  margin-top: 0.7rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  background: var(--red);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  transition: background 0.2s;
}
.termin .bericht-link:hover { background: var(--red-deep); color: #fff; }

@media (max-width: 480px) {
  .termin { gap: 1rem; padding: 1.1rem 1.1rem; }
  .termin .date-tile { width: 62px; }
}

/* Statusmeldungen */
.status-note {
  padding: 2.5rem 1rem;
  text-align: center;
  color: var(--cream-dim);
  font-style: italic;
  font-family: var(--font-display);
  font-size: 1.15rem;
  grid-column: 1 / -1;
}

.load-more-wrap { display: flex; justify-content: center; margin-top: 2.6rem; }

/* --------------------------------------------------------------------------
   Redaktion / Login
   -------------------------------------------------------------------------- */

/* Interner Bereich: volle Seitenbreite mit Bereichs-Menü links */
.container-wide {
  width: calc(100% - 3rem);
  margin-inline: auto;
}

/* Kompakter Abschluss statt der üblichen 5.5rem, damit die Seite ohne
   vertikales Scrollen ins Fenster passt */
#editor-view .section { padding-bottom: 2rem; }

.intern-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 2.2rem;
  align-items: start;
}

.intern-nav {
  position: sticky;
  top: 95px; /* unterhalb des klebenden Headers */
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

/* [data-bereich]: nur die Menüeinträge — der Abmelden-Button im User-Block
   darunter behält seine .btn-Optik */
.intern-nav button[data-bereich] {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: left;
  color: var(--cream-soft);
  background: transparent;
  border: 1px solid transparent;
  border-left: 3px solid transparent;
  border-radius: 7px;
  padding: 0.75rem 0.95rem;
  cursor: pointer;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.intern-nav button[data-bereich]:hover { color: var(--cream); background: rgba(201, 164, 91, 0.1); }
.intern-nav button[data-bereich][aria-current="true"] {
  color: var(--cream);
  background: var(--felt-raise);
  border-color: var(--felt-line);
  border-left-color: var(--red);
}

/* Angemeldet-als + Abmelden: unten links unter dem Bereichs-Menü */
.intern-nav .intern-user {
  margin-top: 1.6rem;
  padding: 1.2rem 0 0 0.95rem; /* linksbündig mit den Menü-Beschriftungen */
  border-top: 1px solid rgba(201, 164, 91, 0.14);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.8rem;
}
.intern-nav .intern-user .user { font-size: 0.85rem; color: var(--cream-soft); }
.intern-nav .intern-user .user strong { color: var(--cream); }

/* Breite Screens: Menüspalte reicht bis zum unteren Fensterrand, der
   User-Block sitzt ganz unten (155px = Header + Abschnitts-Abstände,
   gleiche Rechnung wie die Panel-Höhen im Bereich Neuigkeiten) */
@media (min-width: 901px) {
  .intern-nav { height: calc(100vh - 155px); min-height: 360px; }
  .intern-nav .intern-user { margin-top: auto; }
}

/* Bereiche mit nur einem Panel nicht über die volle Breite ziehen */
.intern-content > .bereich > .manage-panel { max-width: 640px; }
.intern-content .api-hint { margin-top: 0; max-width: 780px; }

/* Schmale Screens: Menü als Pill-Leiste über dem Inhalt */
@media (max-width: 900px) {
  .intern-layout { grid-template-columns: 1fr; gap: 1.6rem; }
  .intern-nav {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }
  .intern-nav button[data-bereich] {
    border: 1px solid var(--felt-line);
    border-radius: 999px;
    padding: 0.55rem 1.15rem;
  }
  .intern-nav button[data-bereich][aria-current="true"] {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
  }
  /* In der Pill-Leiste rückt der User-Block nach rechts statt nach unten */
  .intern-nav .intern-user {
    margin: 0 0 0 auto;
    padding: 0;
    border-top: none;
    flex-direction: row;
    align-items: center;
  }
}

/* Bereich Neuigkeiten: Editor und Beitragsliste passen mit Rand nach unten
   komplett ins Fenster und scrollen bei Bedarf innen statt die Seite —
   nur solange die beiden Spalten nebeneinander liegen (die 155px sind
   Header + Abschnitts-Abstand + Rand nach unten) */
@media (min-width: 981px) {
  #bereich-neuigkeiten .editor-panel,
  #bereich-neuigkeiten .manage-panel {
    height: calc(100vh - 155px);
    min-height: 480px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--brass-dim) transparent;
  }

  /* min-content statt 0: das Formular wächst mit seinem Inhalt, statt ihn
     überlaufen zu lassen — nur so umschließt das Panel-Padding beim Scrollen
     auch die Button-Zeile am Ende */
  #bereich-neuigkeiten .editor-panel form {
    flex: 1;
    min-height: min-content;
    display: flex;
    flex-direction: column;
  }

  /* Das Inhaltsfeld bekommt den restlichen Platz; Quill bzw. die
     HTML-Textarea scrollen innerhalb des Felds. Die Mindesthöhe hält den
     Editor benutzbar, wenn Titelbild-Vorschau und Statusmeldungen Platz
     wegnehmen — dann scrollt stattdessen das Panel (overflow-y: auto) */
  #bereich-neuigkeiten .field-inhalt {
    flex: 1;
    min-height: 300px;
    display: flex;
    flex-direction: column;
  }
  /* :not([hidden]): display würde sonst das hidden-Attribut aushebeln */
  #bereich-neuigkeiten .field-inhalt #quill-wrap:not([hidden]) {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }
  #bereich-neuigkeiten .field-inhalt .ql-container {
    flex: 1;
    min-height: 0;
    overflow: hidden;
  }
  #bereich-neuigkeiten .field-inhalt .ql-editor { min-height: 0; }
  /* :not([hidden]) wie beim quill-wrap: display schlägt sonst hidden */
  #bereich-neuigkeiten .field-inhalt .html-editor:not([hidden]) {
    flex: 1;
    min-height: 140px;
  }
  #bereich-neuigkeiten .field-inhalt .html-editor textarea { min-height: 0; }

  /* Liste füllt das Panel statt der festen 100vh-Rechnung der Basisregel */
  #bereich-neuigkeiten .manage-list {
    flex: 1;
    height: auto;
    min-height: 0;
  }
}

/* Bereich Termine: Die Teilnehmerliste ist Fließtext, kein Markup — die
   Basisregel für .field textarea ist dagegen auf den HTML-Editor ausgelegt
   (Monospace, 260px hoch) und hier zu wuchtig */
#termin-teilnehmer {
  min-height: 8rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.6;
}

.auth-card {
  max-width: 430px;
  margin: 4rem auto;
  background: var(--felt-raise);
  border: 1px solid var(--felt-line);
  border-radius: var(--radius);
  padding: 2.6rem 2.4rem;
  box-shadow: var(--shadow-card);
}

.auth-card h1 { font-size: 1.8rem; margin: 0.8rem 0 1.6rem; }

.field { margin-bottom: 1.25rem; }
.field label {
  display: block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 0.45rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--cream);
  background: rgba(var(--felt-deep-rgb), 0.6);
  border: 1px solid var(--felt-line);
  border-radius: 7px;
  padding: 0.7rem 0.9rem;
  transition: border-color 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brass);
}
.field textarea { min-height: 260px; resize: vertical; font-family: ui-monospace, 'Cascadia Code', Consolas, monospace; font-size: 0.88rem; line-height: 1.55; }
.field select option { background: var(--felt-deep); }

/* Kontrollkästchen mit Beschriftung daneben; die Basisregel oben zieht
   Eingabefelder auf volle Breite, was für ein Kästchen nicht passt */
.field-check {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}
.field-check input[type="checkbox"] {
  width: 1.05rem;
  height: 1.05rem;
  flex: none;
  accent-color: var(--red);
}
.field-check label {
  margin: 0;
  letter-spacing: 0.1em;
  cursor: pointer;
}

/* HTML-Modus mit Syntax-Hervorhebung: die Textarea schreibt transparent,
   dahinter liegt ein deckungsgleiches <pre> mit dem eingefärbten Markup
   (rein visuell, Quelle bleibt die Textarea). Schrift, Padding, Umbruch-
   verhalten und Scrollleisten-Rinne müssen auf beiden identisch sein —
   deshalb overflow-y: scroll + scrollbar-width: thin auf beiden Ebenen */
.html-editor { position: relative; display: flex; }
.html-editor[hidden] { display: none; }
.html-editor textarea {
  position: relative;
  z-index: 1;
  background: transparent;
  color: transparent;
  caret-color: var(--cream);
  overflow-y: scroll;
  scrollbar-width: thin;
}
.html-editor .html-highlight {
  position: absolute;
  inset: 0;
  margin: 0;
  overflow-y: scroll;
  scrollbar-width: thin;
  pointer-events: none;
  background: rgba(var(--felt-deep-rgb), 0.6);
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 0.7rem 0.9rem;
  font-family: ui-monospace, 'Cascadia Code', Consolas, monospace;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--cream-soft);
  white-space: pre-wrap;
  overflow-wrap: break-word;
}
.html-editor .html-highlight code {
  font: inherit;
  white-space: inherit;
  overflow-wrap: inherit;
}
.html-highlight .hl-tag { color: var(--brass); }
.html-highlight .hl-attr { color: #9fc0e8; }
.html-highlight .hl-wert { color: #a8cf9e; }
.html-highlight .hl-entity { color: #d9a7ad; }
.html-highlight .hl-kommentar { color: var(--cream-dim); font-style: italic; }

/* Quill-Editor im Papier-Look (WYSIWYG = Vorschau der Artikeloptik).
   Die Typografie spiegelt .article-body (Schriftgrößen, Absatz- und
   Überschriften-Abstände, Blockquote, Tabellen) — Quills eigenes Stylesheet
   setzt sonst u. a. alle Margins auf 0 und der Editor sähe anders aus als
   die spätere Artikelansicht. Bei Änderungen an .article-body hier nachziehen! */
.editor-panel .ql-toolbar.ql-snow {
  background: var(--paper);
  border: 1px solid var(--paper-edge);
  border-radius: 7px 7px 0 0;
}
.editor-panel .ql-container.ql-snow {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--paper-edge);
  border-top: none;
  border-radius: 0 0 7px 7px;
  font-family: var(--font-body);
  font-size: 1.02rem;
}
.editor-panel .ql-editor { min-height: 260px; line-height: 1.65; }
.editor-panel .ql-editor h1, .editor-panel .ql-editor h2,
.editor-panel .ql-editor h3, .editor-panel .ql-editor h4 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 1.6em 0 0.5em;
  line-height: 1.25;
}
.editor-panel .ql-editor h1 { font-size: 1.6rem; }
.editor-panel .ql-editor h2 { font-size: 1.4rem; }
.editor-panel .ql-editor h3 { font-size: 1.2rem; }
.editor-panel .ql-editor p,
.editor-panel .ql-editor ul,
.editor-panel .ql-editor ol { margin: 0 0 1em; }
.editor-panel .ql-editor img { border-radius: 6px; margin: 1.2em 0; }
.editor-panel .ql-editor blockquote {
  border-left: 3px solid var(--brass);
  padding-left: 1.1em;
  color: var(--ink-soft);
  font-style: italic;
  margin: 1.2em 0;
}
.editor-panel .ql-editor.ql-blank::before { color: var(--ink-soft); font-style: italic; }
.editor-panel .ql-snow a { color: var(--red); }

/* Tabellen-Buttons der Quill-Toolbar (Text-Labels, Handler in intern.js) */
.ql-toolbar button.tabellen-btn {
  width: auto;
  min-width: 28px;
  padding: 3px 5px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.3;
  color: #444;
}
.ql-toolbar button.tabellen-btn:hover { color: var(--red); }

/* Tabellen im Editor wie in der Artikelansicht (.article-body table) */
.editor-panel .ql-editor table {
  border-collapse: collapse;
  margin: 1.4em 0;
  width: 100%;
  font-size: 0.92rem;
}
.editor-panel .ql-editor td {
  border: 1px solid #d5c9ad;
  padding: 0.5em 0.75em;
  text-align: left;
}
.editor-panel .ql-editor tr:nth-child(even) td { background: #f0e8d4; }

.editor-mode { display: flex; align-items: center; gap: 0.7rem; margin-top: 0.6rem; }
.editor-mode .sub { font-size: 0.75rem; color: var(--cream-dim); }

/* Titelbild-Zone im Editor: nimmt Zwischenablage, Drag&Drop und Dateiauswahl
   an. Ohne Bild bewusst flach (eine Hinweiszeile), damit der Leerzustand des
   Panels ohne Scrollleiste ins Fenster passt; mit Bild wächst sie mit */
.titelbild-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.8rem 0.9rem;
  border: 1.5px dashed var(--felt-line);
  border-radius: 7px;
  background: rgba(var(--felt-deep-rgb), 0.35);
  color: var(--cream-dim);
  font-size: 0.85rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.titelbild-zone:hover, .titelbild-zone:focus-visible, .titelbild-zone.dragover {
  border-color: var(--brass);
  color: var(--cream-soft);
}
/* Vorschau kompakt halten — das Editor-Panel ist auf Fensterhöhe gedeckelt */
.titelbild-zone img { max-height: 150px; border-radius: 5px; }

.form-error {
  background: rgba(200, 16, 46, 0.15);
  border: 1px solid rgba(226, 73, 79, 0.5);
  color: #f2a6ad;
  border-radius: 7px;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  margin-bottom: 1.2rem;
}

.form-success {
  background: rgba(46, 106, 79, 0.3);
  border: 1px solid rgba(110, 168, 135, 0.5);
  color: #a8d8bc;
  border-radius: 7px;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  margin-bottom: 1.2rem;
}

.editor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 980px) { .editor-grid { grid-template-columns: 1fr; } }

.editor-panel, .manage-panel {
  background: var(--felt-raise);
  border: 1px solid var(--felt-line);
  border-radius: var(--radius);
  padding: 2rem 1.9rem;
  box-shadow: var(--shadow-card);
}

.editor-panel h2, .manage-panel h2 { font-size: 1.4rem; margin-bottom: 1.4rem; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

/* Liste passt sich der Browserhöhe an und scrollt intern
   (100vh abzüglich Header, Seitenabständen, Panel-Kopf und Filterfeld) */
.manage-list {
  list-style: none;
  height: calc(100vh - 330px);
  min-height: 160px;
  overflow-y: auto;
  padding-right: 0.4rem;
  scrollbar-width: thin;
  scrollbar-color: var(--brass-dim) transparent;
}
.manage-list::-webkit-scrollbar { width: 8px; }
.manage-list::-webkit-scrollbar-thumb { background: var(--brass-dim); border-radius: 4px; }
.manage-list::-webkit-scrollbar-track { background: transparent; }
.manage-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  /* seitliches Padding auf allen Zeilen identisch: die Markierung (Balken +
     Hintergrund) braucht Platz, ohne dass sich beim Auswählen etwas verschiebt */
  padding: 0.85rem 0.6rem 0.85rem 0.8rem;
  border-bottom: 1px solid rgba(201, 164, 91, 0.14);
}
.manage-list li:last-child { border-bottom: none; }
/* Der gerade im Editor geladene Eintrag: dunklerer Tuch-Ton (das Panel selbst
   ist felt-raise — der muss sich abheben) + roter Balken an der linken Kante */
.manage-list li.aktiv {
  background: rgba(var(--felt-deep-rgb), 0.5);
  box-shadow: inset 3px 0 0 var(--red);
  border-radius: 0 6px 6px 0;
}
.manage-list .title { font-weight: 600; color: var(--cream); font-size: 0.95rem; }
/* Gruppen-Kopfzeilen (Link-Liste): heben die Gruppierung sichtbar hervor */
.manage-list .gruppen-kopf {
  display: block;
  padding: 1.2rem 0.6rem 0.35rem 0.8rem;
  border-bottom: 1px solid rgba(201, 164, 91, 0.3);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
}
.manage-list .gruppen-kopf:first-child { padding-top: 0.2rem; }
.manage-list .sub { font-size: 0.75rem; color: var(--cream-dim); letter-spacing: 0.04em; }
.manage-list .actions { display: flex; gap: 0.5rem; flex: none; }

.icon-btn {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: transparent;
  border: 1px solid var(--felt-line);
  color: var(--cream-soft);
  border-radius: 6px;
  padding: 0.35rem 0.7rem;
  cursor: pointer;
  transition: all 0.2s;
}
.icon-btn:hover { border-color: var(--brass); color: var(--cream); }
.icon-btn.danger:hover { border-color: var(--red-soft); color: var(--red-soft); }

/* Saison-Liste im Import-Panel (intern.html) */
.saison-liste { list-style: none; margin-top: 1.2rem; }
.saison-liste li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0.2rem;
  border-bottom: 1px solid rgba(201, 164, 91, 0.14);
}
.saison-liste li:last-child { border-bottom: none; }
.saison-liste .saison { color: var(--cream); font-weight: 600; font-size: 0.95rem; }

.api-hint {
  margin-top: 2rem;
  border: 1px dashed var(--brass-dim);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  font-size: 0.88rem;
  color: var(--cream-soft);
}
.api-hint h3 { font-size: 1.05rem; margin-bottom: 0.6rem; }
.api-hint code {
  display: block;
  background: rgba(var(--felt-deep-rgb), 0.7);
  border-radius: 6px;
  padding: 0.8rem 1rem;
  margin-top: 0.7rem;
  font-family: ui-monospace, 'Cascadia Code', Consolas, monospace;
  font-size: 0.78rem;
  color: #9ed3b4;
  overflow-x: auto;
  white-space: pre;
}

/* --------------------------------------------------------------------------
   Seitenkopf (Unterseiten) & Footer
   -------------------------------------------------------------------------- */

.page-head {
  padding: 4.2rem 0 2.6rem;
}
.page-head h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); margin-top: 0.8rem; }
.page-head p { color: var(--cream-soft); max-width: 60ch; margin-top: 0.8rem; }

.site-footer {
  margin-top: 4rem;
  border-top: 1px solid rgba(201, 164, 91, 0.25);
  background: rgba(var(--felt-deep-rgb), 0.75);
  padding: 3.2rem 0 2.2rem;
  font-size: 0.9rem;
  color: var(--cream-dim);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 0.8fr 1.1fr;
  gap: 2.5rem;
  margin-bottom: 2.4rem;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-about { display: flex; gap: 1.2rem; align-items: flex-start; }
.footer-wappen { height: 76px; width: auto; flex: none; }

.site-footer h4 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 0.9rem;
}

.site-footer ul { list-style: none; }
.site-footer li { padding: 0.22rem 0; }
.site-footer a { color: var(--cream-soft); }
.site-footer a:hover { color: var(--cream); }

.footer-bottom {
  border-top: 1px solid rgba(201, 164, 91, 0.14);
  padding-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem;
  font-size: 0.78rem;
}

/* --------------------------------------------------------------------------
   Mitmachen ("Lust auf Billard?"): Text links, Ball-Dreiecke rechts
   -------------------------------------------------------------------------- */

.join-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3rem;
  align-items: center;
}
@media (max-width: 840px) { .join-grid { grid-template-columns: 1fr; } }

.join-titel {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  margin-top: 0.7rem;
}

.join-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

.join-balls {
  display: flex;
  gap: 2.4rem;
  justify-content: center;
  flex-wrap: wrap;
}

.ball-tri {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  align-items: center;
}
.ball-tri .reihe { display: flex; gap: 0.55rem; }

/* Größere Ballvariante für Dekoflächen */
.ball-lg { width: 68px; height: 68px; }
.ball-lg[data-nr]::after {
  width: 26px;
  height: 26px;
  line-height: 26px;
  font-size: 0.85rem;
}

/* --------------------------------------------------------------------------
   Vereinsseite: Vorstand & Dokumente
   -------------------------------------------------------------------------- */

.vorstand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1rem;
}

.vorstand-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  background: var(--felt-raise);
  border: 1px solid var(--felt-line);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
}
.vorstand-item .rolle {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
}
.vorstand-item .name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--cream);
}

/* Mitgliedsbeiträge (verein.html): Tabelle im Karten-Look, auf schmalen
   Screens scrollt sie innerhalb des Wrappers statt die Seite zu sprengen */
.beitrag-tabelle-wrap {
  overflow-x: auto;
  background: var(--felt-raise);
  border: 1px solid var(--felt-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.beitrag-tabelle {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.beitrag-tabelle th, .beitrag-tabelle td {
  padding: 0.9rem 1.2rem;
  text-align: left;
  vertical-align: top;
}
.beitrag-tabelle thead th {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
  border-bottom: 1px solid var(--felt-line);
}
.beitrag-tabelle tbody tr + tr td { border-top: 1px solid rgba(201, 164, 91, 0.14); }
.beitrag-tabelle td { color: var(--cream-soft); }
.beitrag-tabelle .betrag {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.beitrag-tabelle .klasse-nr {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
}
.beitrag-tabelle .klasse {
  display: block;
  font-weight: 600;
  color: var(--cream);
  margin-top: 0.15rem;
}
.beitrag-tabelle .hinweis {
  display: block;
  font-size: 0.85rem;
  color: var(--cream-dim);
  margin-top: 0.2rem;
  max-width: 46ch;
}

.beitrag-fussnote {
  margin-top: 1.1rem;
  font-size: 0.88rem;
  color: var(--cream-dim);
  max-width: 76ch;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.4rem;
  max-width: 780px;
}

.download-card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--paper-edge);
  border-top: 5px solid var(--red);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease;
}
.download-card:hover { transform: translateY(-3px); color: var(--ink); }
.download-card .doc-label {
  align-self: flex-start;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  background: var(--red);
  color: #fff;
  border-radius: 4px;
  padding: 0.18rem 0.55rem;
  margin-bottom: 0.45rem;
}
.download-card .doc-title { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; }
.download-card .doc-sub { font-size: 0.85rem; color: var(--ink-soft); }

/* --------------------------------------------------------------------------
   Mannschaften: Team-Karten je Wettbewerb (mannschaften.html)
   -------------------------------------------------------------------------- */

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.4rem;
}

.team-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  background: var(--felt-raise);
  border: 1px solid var(--felt-line);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem 1.35rem;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.team-card:hover { transform: translateY(-3px); border-color: var(--brass-dim); }

/* Farbige Oberkante wie bei .discipline: Rot für Carambol, Blau für Pool */
.team-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 1.6rem;
  right: 1.6rem;
  height: 3px;
  background: linear-gradient(90deg, var(--red), transparent);
}
.team-card.team-pool::before { background: linear-gradient(90deg, var(--pool-blue), transparent); }

.team-card .liga {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
}

.team-card h3 {
  font-size: 1.3rem;
  color: var(--cream);
}

/* Verweise auf die Verbandsseiten (Aufstellung, Spielplan, Rangliste) */
.team-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
  margin-top: 0.75rem;
}
.team-links a {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.team-note {
  margin-top: 2.4rem;
  font-size: 0.88rem;
  color: var(--cream-dim);
  max-width: 76ch;
}

/* Einblend-Animationen */
@keyframes rise-in {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal { opacity: 0; }
.reveal.visible { animation: rise-in 0.7s cubic-bezier(0.22, 0.9, 0.3, 1) forwards; }

.hero .kicker, .hero h1, .hero .lede {
  animation: rise-in 0.9s cubic-bezier(0.22, 0.9, 0.3, 1) backwards;
}
.hero h1 { animation-delay: 0.15s; }
.hero .lede { animation-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; }
  .hero-slide { transform: none; }
  .hero-slide.active { transform: none; }
}
