/* ============================================================
   VfL Gehrden e.V. — Redesign (finales Design)
   Hell (Default) + Anthrazit (Dark Mode).
   Dark Mode automatisch via prefers-color-scheme, manuell
   übersteuerbar über [data-theme="light"|"dark"].
   ============================================================ */

/* ---------- Farbpaletten / Design-Tokens ---------- */
:root {
  /* HELL (Heritage) */
  --bg:#f1f0ed; --surface:#faf9f6; --surface2:#ffffff; --border:#e3ded4;
  --ink:#2a2522; --muted:#564f47; --primary:#9b1b1e; --accent:#9c958a;
  --bar-bg:#9b1b1e; --bar-ink:#ffffff; --nav-dim:rgba(255,255,255,.82);
  --toggle-bg:rgba(255,255,255,.14); --toggle-border:rgba(244,239,230,.45);
  --cta-bg:#d7d2c8; --cta-ink:#7a1517;
  --hero-bg:linear-gradient(180deg,#9b1b1e 0%,#7a1517 100%);
  --hero-overlay:linear-gradient(180deg,rgba(155,27,30,.72),rgba(120,20,23,.85));
  --hero-accent:#ddd8ce; --hero-sub:#cec9bd; --hero-pill:rgba(215,210,200,.5);
  /* Der Hero legt das Foto nicht mehr unter eine flaechige Farbwaesche, sondern
     unter einen Verlauf von links — das Motiv bleibt sichtbar. */
  --hero-scrim:linear-gradient(100deg,rgba(20,8,9,.26) 0%,rgba(20,8,9,.15) 30%,rgba(20,8,9,0) 50%);
  --hero-scrim-hoch:linear-gradient(180deg,rgba(20,8,9,0) 0%,rgba(20,8,9,0) 40%,rgba(22,9,10,.34) 66%,rgba(24,9,10,.56) 100%);
  /* Unterseiten: Vereinsrot 40-58 Prozent. Duenner (22-36) mischte sich auf
     gruenen Motiven mit dem Rasen zu Oliv und las sich nicht mehr als Rot.
     Mehrere Themenfotos sind selbst rot oder orange
     (Ziegelwand, Dartscheibe, Huetchen) — unter kraeftigem Rot verschwanden sie.
     Hinter der Textmitte liegt eine weiche Abdunklung fuer die Lesbarkeit. */
  --hero-scrim-mini:radial-gradient(ellipse 46% 62% at 50% 54%,rgba(12,10,10,.30) 0%,rgba(12,10,10,0) 100%),linear-gradient(180deg,rgba(12,10,10,.14) 0%,rgba(12,10,10,.22) 55%,rgba(12,10,10,.32) 100%);
  /* Der Bildausschnitt ist fest ins Foto geschnitten (extras/build_hero.py):
     Das Vereinsheim steht bei etwa 77% der Breite, rechts neben dem Text. */
  --hero-fokus:50%;
  --icon2-bg:#9b1b1e; --icon2-ink:#ffffff;
  /* Wasserzeichen in den Abteilungskarten */
  --dept-schleier:linear-gradient(165deg,rgba(20,12,12,.04) 0%,rgba(16,10,10,.12) 50%,rgba(12,8,8,.42) 100%);
  --logo-feld:#ffffff; --logo-ink:#2a2522;
  --vs:#a39c90; --ph1:#e6ddca; --ph2:#ded3bc;
  --footer-bg:#2a2522; --footer-ink:#ffffff; --footer-muted:#cfc7bb;
  --footer-line:#453f38; --footer-chip:#3a342e;
  /* Rot als Textfarbe wird getrennt gefuehrt: die Flaechenfarbe --primary
     traegt im dunklen Modus nicht genug Kontrast fuer Schrift. */
  --primary-ink:#9b1b1e;
  /* Akzent auf der roten Kopfleiste und im Hero (--accent ist dort zu dunkel) */
  --bar-accent:#ddd8ce;
  --on-primary-dim:#cec9bd;
  --focus:#9b1b1e; --focus-bar:#ffffff;
  --toggle-bg-hover:rgba(255,255,255,.24);
  --sel-bg:#9b1b1e; --sel-ink:#ffffff;
  --rule:#c2b9a8;
  --shadow:0 4px 18px rgba(120,90,40,.07);
  --radius:18px;
  --maxw:1180px;
  /* Obergrenze fuer Fliesstext. Der Text laeuft bis zum Rand seines Kastens,
     die Zeilenlaenge begrenzt allein die Spaltenbreite (--maxw). Ein Wert wie
     92ch traegt hier wieder eine Lesebreite ein, falls das gewuenscht ist —
     alle Fliesstextregeln haengen an dieser Variablen. */
  --lesebreite:none;
  --f-display:'Anton',sans-serif;
  --f-head:'Oswald',sans-serif;
  --f-cond:'Barlow Condensed',sans-serif;
  --f-body:'Barlow',sans-serif;
  --f-serif:'Lora',serif;
  /* Rückwärtskompatibilität: alte Variablennamen aus Inhalten/Inline-Styles */
  --color-red:var(--primary); --color-red-dark:var(--primary); --color-red-darker:#7a1517;
  --color-black:var(--ink); --color-white:#ffffff; --color-text:var(--ink);
  --color-gray-dark:var(--muted); --color-gray:var(--border); --color-gray-light:var(--surface);
  --font-main:var(--f-body); --max-width:var(--maxw); --transition:.3s ease;
}

/* ANTHRAZIT (Dark Mode) — automatisch nach Systemeinstellung,
   außer der Besucher hat manuell "light" gewählt. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:#191920; --surface:#22222b; --surface2:#2b2b35; --border:#3a3a47;
    --ink:#ececf0; --muted:#acacba; --primary:#b62f33; --accent:#c8c3b8;
    --bar-bg:#16161c; --bar-ink:#ececf0; --nav-dim:rgba(236,236,240,.72);
    --toggle-bg:rgba(236,236,240,.08); --toggle-border:#34343f;
    --cta-bg:#c8c3b8; --cta-ink:#22222b;
    --hero-bg:linear-gradient(160deg,#3a1418 0%,#191920 70%); --hero-overlay:linear-gradient(160deg,rgba(45,18,22,.78),rgba(20,20,26,.88));
    --hero-accent:#d8d3c8; --hero-sub:#c5c5cf; --hero-pill:rgba(200,195,184,.5);
    --hero-scrim:linear-gradient(100deg,rgba(6,6,9,.34) 0%,rgba(6,6,9,.22) 30%,rgba(6,6,9,0) 50%);
    --hero-scrim-hoch:linear-gradient(180deg,rgba(6,6,9,0) 0%,rgba(6,6,9,.06) 40%,rgba(6,6,9,.44) 66%,rgba(6,6,9,.66) 100%);
    --hero-scrim-mini:radial-gradient(ellipse 46% 62% at 50% 54%,rgba(6,6,9,.34) 0%,rgba(6,6,9,0) 100%),linear-gradient(180deg,rgba(6,6,9,.26) 0%,rgba(6,6,9,.36) 55%,rgba(6,6,9,.50) 100%);
    --icon2-bg:#2b2b35; --icon2-ink:#c8c3b8;
    --dept-schleier:linear-gradient(165deg,rgba(10,10,12,.16) 0%,rgba(8,8,10,.26) 50%,rgba(6,6,8,.58) 100%);
    --logo-feld:#f2f0ec; --logo-ink:#2a2522;
    --vs:#5a5a66; --ph1:#22222b; --ph2:#2b2b35;
    --footer-bg:#121217; --footer-ink:#ececf0; --footer-muted:#9a9aa6;
    --footer-line:#2b2b35; --footer-chip:#22222b;
    --primary-ink:#f0736b;
    --bar-accent:#c8c3b8;
    --on-primary-dim:#f2e8e8;
    --focus:#c8c3b8; --focus-bar:#ececf0;
    --toggle-bg-hover:rgba(236,236,240,.16);
    --sel-bg:#f0736b; --sel-ink:#191920;
    --rule:#565667;
    --shadow:0 4px 18px rgba(0,0,0,.28);
  }
}

/* ANTHRAZIT — manuell erzwungen */
:root[data-theme="dark"] {
  --bg:#191920; --surface:#22222b; --surface2:#2b2b35; --border:#3a3a47;
  --ink:#ececf0; --muted:#acacba; --primary:#b62f33; --accent:#c8c3b8;
  --bar-bg:#16161c; --bar-ink:#ececf0; --nav-dim:rgba(236,236,240,.72);
  --toggle-bg:rgba(236,236,240,.08); --toggle-border:#34343f;
  --cta-bg:#c8c3b8; --cta-ink:#22222b;
  --hero-bg:linear-gradient(160deg,#3a1418 0%,#191920 70%); --hero-overlay:linear-gradient(160deg,rgba(45,18,22,.78),rgba(20,20,26,.88));
  --hero-accent:#d8d3c8; --hero-sub:#c5c5cf; --hero-pill:rgba(200,195,184,.5);
  --hero-scrim:linear-gradient(100deg,rgba(6,6,9,.34) 0%,rgba(6,6,9,.22) 30%,rgba(6,6,9,0) 50%);
  --hero-scrim-hoch:linear-gradient(180deg,rgba(6,6,9,0) 0%,rgba(6,6,9,.06) 40%,rgba(6,6,9,.44) 66%,rgba(6,6,9,.66) 100%);
  --hero-scrim-mini:radial-gradient(ellipse 46% 62% at 50% 54%,rgba(6,6,9,.34) 0%,rgba(6,6,9,0) 100%),linear-gradient(180deg,rgba(6,6,9,.26) 0%,rgba(6,6,9,.36) 55%,rgba(6,6,9,.50) 100%);
  --icon2-bg:#2b2b35; --icon2-ink:#c8c3b8;
  --dept-schleier:linear-gradient(165deg,rgba(10,10,12,.16) 0%,rgba(8,8,10,.26) 50%,rgba(6,6,8,.58) 100%);
  --logo-feld:#f2f0ec; --logo-ink:#2a2522;
  --vs:#5a5a66; --ph1:#22222b; --ph2:#2b2b35;
  --footer-bg:#121217; --footer-ink:#ececf0; --footer-muted:#9a9aa6;
  --footer-line:#2b2b35; --footer-chip:#22222b;
  --primary-ink:#f0736b;
  --bar-accent:#c8c3b8;
  --on-primary-dim:#f2e8e8;
  --focus:#c8c3b8; --focus-bar:#ececf0;
  --toggle-bg-hover:rgba(236,236,240,.16);
  --sel-bg:#f0736b; --sel-ink:#191920;
  --rule:#565667;
  --shadow:0 4px 18px rgba(0,0,0,.28);
}

/* ---------- Reset / Base ---------- */
* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; scroll-padding-top:96px; }
body { background:var(--bg); color:var(--ink); font-family:var(--f-body); min-height:100vh; line-height:1.6; }
img { max-width:100%; display:block; }
a { color:var(--primary-ink); text-decoration:none; }
a:hover { text-decoration:underline; }
/* Flaechige Verweise sind keine Woerter im Fliesstext, sondern ganze Kacheln
   und Listenzeilen. Die Unterstreichung zoege dort einen Strich quer durch die
   Flaeche. Sie zeigen das Ueberfahren stattdessen ueber Rahmen, Hintergrund
   und den mitwandernden Pfeil. */
.sp-cta:hover, .card:hover, .dokument-blatt:hover, .logo-feld > a:hover,
.archiv-liste a:hover, .archiv-nav-link:hover, .video-karte a:hover { text-decoration:none; }

/* Der Farbwechsel beim Umschalten laeuft nur waehrend des Umschaltens
   (main.js setzt .theme-anim kurz auf <html>). Eine Dauer-Transition auf
   allen Elementen kostet bei jedem Hover Rechenzeit und traegt nichts. */
html.theme-anim, html.theme-anim *, html.theme-anim *::before, html.theme-anim *::after {
  transition: background-color .3s ease, border-color .3s ease, color .3s ease !important; }

/* Bedienelemente reagieren kurz und spuerbar */
a, .nav-links a, .sub-toggle, .sub-menu a, .card-link, .side-link, .footer a,
.social-links a, .theme-toggle, .nav-cta, .knopf, .logo-feld > a, .skip-link {
  transition: color .15s ease, background-color .15s ease, border-color .15s ease; }

/* Fokus ist sichtbar und nimmt die Farbe des Untergrunds auf */
:focus-visible { outline:3px solid var(--focus); outline-offset:2px; border-radius:3px; }
.navbar :focus-visible, .hero-mini :focus-visible, .home-hero :focus-visible,
.home-feature .fl :focus-visible, .highlight-box :focus-visible { outline-color:var(--focus-bar); }
.footer :focus-visible { outline-color:var(--footer-ink); }
.lightbox :focus-visible { outline-color:#fff; }

::selection { background:var(--sel-bg); color:var(--sel-ink); }

/* Text, der nur vorgelesen wird — etwa der Hinweis auf einen Aussenverweis */
.nur-vorlesen { position:absolute; width:1px; height:1px; overflow:hidden;
  clip-path:inset(50%); white-space:nowrap; }
.nav-links .extern { font-size:14px; margin-left:2px; opacity:.8; }

/* Zeilenumbruch: Ueberschriften gleichmaessig auf die Zeilen verteilen,
   Fliesstext keine einzelnen Woerter in die letzte Zeile schieben lassen.
   Browser ohne Unterstuetzung brechen wie bisher um. */
h1, h2, h3, h4,
.section-title, .home-shead h2, .home-intro h2, .hero-mini h1, .home-hero h1,
.content-block h2, .content-block h3, .card-body h3, .dept-card h3,
.contact-card h2, .contact-card h3, .mit-karte h2, .home-feature .fl h2, .home-history h2,
.footer h2, #tt-uebersicht h3, #tt-uebersicht h4,
.home-hero .lead, .hero-mini .subtitle,
.section-intro, .card-body p, .mit-karte p, .band-intro, .dept-sub { text-wrap:balance; }
/* In den schmalen Abteilungskarten (rund 25 Zeichen je Zeile) zerhackt der
   Ausgleich die Zeilen, statt sie auszugleichen. */
.dept-card .dept-desc { text-wrap:pretty; }
/* Zitate laufen ueber mehrere Zeilen. Der Ausgleich staucht sie dann zu einem
   schmalen Block, waehrend der Text daneben die volle Breite nutzt. */
.quote, .home-feature .fr .q { text-wrap:pretty; }

p, li, .match-title, .timeline-text, .sp-cta .sp-txt small,
.muster-hinweis, .foto-caption, .home-feature .fr p, .home-history p { text-wrap:pretty; }

/* Sprungmarke fuer Tastatur- und Screenreader-Nutzung */
.skip-link { position:fixed; top:12px; left:12px; z-index:2100; transform:translateY(-250%);
  background:var(--surface); color:var(--primary-ink); border:1px solid var(--border);
  border-radius:8px; padding:12px 20px; box-shadow:var(--shadow);
  font-family:var(--f-cond); font-weight:700; font-size:15px; letter-spacing:.05em;
  text-transform:uppercase; transition:transform .18s ease; }
.skip-link:focus { transform:none; text-decoration:none; }
.msi { font-family:'Material Symbols Outlined'; font-weight:normal; font-style:normal; line-height:1;
  display:inline-block; vertical-align:middle; text-transform:none; }

/* ---------- Header / Navigation ---------- */
.navbar { background:var(--bar-bg); position:sticky; top:0; z-index:1000; }
.navbar .container { display:flex; align-items:center; justify-content:space-between; gap:18px;
  max-width:1320px; margin:0 auto; padding:13px clamp(18px,3.3vw,48px); flex-wrap:wrap; }
.nav-brand { display:flex; align-items:center; gap:13px; text-decoration:none; }
.nav-brand:hover { text-decoration:none; }
.nav-brand img { height:52px; width:52px; object-fit:contain; background:#f4efe6; border-radius:50%;
  padding:2px; border:2px solid var(--bar-accent); }
.nav-brand > span { display:flex; flex-direction:column; min-width:0; line-height:1.1; }
.nav-brand .bn { display:block; font-family:var(--f-head); font-weight:700; font-size:22px; letter-spacing:.02em;
  -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale;
  color:var(--bar-ink); white-space:nowrap; line-height:1.1; overflow:hidden; text-overflow:ellipsis; max-width:100%; }
.nav-brand .bs { display:block; font-family:var(--f-serif); font-style:italic; font-size:13.5px; color:var(--nav-sub,#f1ece3);
  margin-top:1px; -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:100%; }
/* Auf grossen Schirmen faellt die Huelle aus dem Layout heraus: die Liste
   bleibt direktes Flex-Kind der Kopfleiste wie zuvor. */
.nav-huelle { display:contents; }
.nav-links { list-style:none; display:flex; align-items:center; gap:clamp(12px,1.7vw,30px); flex-wrap:wrap;
  justify-content:center; margin-left:auto; }   /* Menü rechts, Umschalter schließt direkt daran an */
.nav-links a { font-family:var(--f-cond); font-weight:600; font-size:16px; letter-spacing:.05em;
  text-transform:uppercase; color:var(--nav-dim); text-decoration:none; padding:2px 0 3px; white-space:nowrap; }
.nav-links a:hover { color:var(--bar-accent); text-decoration:none; }
.nav-links a.active { color:var(--bar-ink); border-bottom:2px solid var(--bar-accent); }
.nav-right { display:flex; align-items:center; gap:12px; }

/* Abteilungen-Dropdown */
.nav-links .has-sub { position:relative; }
.sub-toggle { font-family:var(--f-cond); font-weight:600; font-size:16px; letter-spacing:.05em;
  min-height:44px;
  text-transform:uppercase; color:var(--nav-dim); background:none; border:none; cursor:pointer;
  padding:3px 0; display:inline-flex; align-items:center; gap:3px; white-space:nowrap; }
.sub-toggle:hover, .sub-toggle.active { color:var(--bar-ink); }
.sub-toggle .caret { font-size:18px; transition:transform .2s ease; }
.has-sub:hover .caret, .has-sub.open .caret { transform:rotate(180deg); }
.sub-menu { position:absolute; top:calc(100% + 8px); left:50%; transform:translateX(-50%);
  min-width:210px; background:var(--surface); border:1px solid var(--border); border-radius:12px;
  padding:8px; list-style:none; box-shadow:0 14px 34px rgba(0,0,0,.20); display:none; z-index:1001; }
/* unsichtbare Brücke über der 8px-Lücke, damit der Hover beim Rüberfahren nicht abreißt */
.sub-menu::before { content:''; position:absolute; left:0; right:0; top:-12px; height:12px; }
.has-sub:hover .sub-menu, .has-sub:focus-within .sub-menu, .has-sub.open .sub-menu { display:block; }
.sub-menu li { width:100%; }
.sub-menu a { display:block; padding:9px 14px; border-radius:8px; color:var(--ink);
  font-family:var(--f-cond); font-weight:600; font-size:15px; letter-spacing:.04em;
  text-transform:uppercase; white-space:nowrap; }
.sub-menu a:hover, .sub-menu a.active { color:var(--primary-ink); background:var(--bg); text-decoration:none; }

/* Dark-Mode-Umschalter */
.theme-toggle { width:44px; height:44px; border-radius:50%; cursor:pointer; display:inline-flex;
  align-items:center; justify-content:center; background:var(--toggle-bg); border:1px solid var(--toggle-border);
  color:var(--bar-ink); padding:0; }
.theme-toggle:hover { background:var(--toggle-bg-hover); }
.theme-toggle .msi { font-size:22px; }

/* Vereinskanaele in der Kopfleiste (partial social.html), gleiche Form wie
   der Umschalter. Auf schmalen Handys wandern sie ins aufgeklappte Menue. */
.nav-social { display:flex; align-items:center; gap:8px; }
.nav-social a { width:44px; height:44px; border-radius:11px; display:inline-flex; align-items:center;
  justify-content:center; background:var(--toggle-bg); border:1px solid var(--toggle-border);
  color:var(--bar-ink); text-decoration:none; }
.nav-social a:hover { background:var(--toggle-bg-hover); text-decoration:none; }
.nav-social svg { width:19px; height:19px; fill:currentColor; }
.nav-social-menue { display:none; }
/* Abgrenzung zum Hell/Dunkel-Umschalter: eckige Form wie in der Fusszeile
   und ein senkrechter Trennstrich, der Umschalter bleibt rund. */
.nav-right .nav-social { padding-right:14px; margin-right:2px; border-right:1px solid var(--toggle-border);
  margin-left:22px; gap:6px; }   /* Abstand zum Menue */
/* In der Kopfleiste kleiner als der Umschalter, damit das Menue die Hauptrolle behaelt.
   Im aufgeklappten Handymenue bleiben sie 44 px gross (Tippziel). */
.nav-right .nav-social a { width:36px; height:36px; border-radius:9px; }
.nav-right .nav-social svg { width:16px; height:16px; }

.nav-cta { font-family:var(--f-cond); font-weight:700; font-size:15px; letter-spacing:.05em;
  text-transform:uppercase; color:var(--cta-ink); background:var(--cta-bg); padding:11px 20px;
  border-radius:8px; text-decoration:none; white-space:nowrap; }
.nav-cta:hover { text-decoration:none; opacity:.92; }

/* Hamburger */
.nav-toggle { display:none; width:44px; height:44px; flex-direction:column; align-items:center;
  justify-content:center; gap:5px; background:none; border:none; cursor:pointer; padding:0; }
.nav-toggle span { width:26px; height:2px; background:var(--bar-ink); transition:transform .25s ease, opacity .25s ease; }
.nav-toggle.active span:nth-child(1) { transform:translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity:0; }
.nav-toggle.active span:nth-child(3) { transform:translateY(-7px) rotate(-45deg); }

/* ---------- Hero (Unterseiten) ---------- */
.hero-mini { background:var(--hero-bg); text-align:center; position:relative; overflow:hidden;
  padding:clamp(40px,5vw,68px) clamp(24px,4vw,48px); }
.hero-mini .eyebrow { display:inline-block; font-family:var(--f-cond); font-size:12.5px; font-weight:600;
  letter-spacing:.22em; text-transform:uppercase; color:var(--hero-accent); border:1px solid var(--hero-pill);
  border-radius:40px; padding:7px 18px; margin-bottom:18px; }
.hero-mini h1 { font-family:var(--f-display); font-size:clamp(38px,5.4vw,68px); line-height:.96; color:#fff;
  text-transform:uppercase; letter-spacing:.01em; }
.hero-mini h1 span { color:var(--hero-accent); }
.hero-mini .subtitle { font-family:var(--f-serif); font-style:italic; font-size:clamp(15px,1.7vw,21px);
  color:var(--hero-sub); margin-top:14px; }
.hero-mini .bar { height:4px; width:72px; background:var(--bar-accent); margin:22px auto 0; }
/* Hero mit Themenfoto: Foto als Ebene, Markenverlauf halbtransparent darüber (Text bleibt lesbar) */
.hero-mini.has-img::before { content:''; position:absolute; inset:0; z-index:0;
  background:var(--hero-img) var(--hero-mini-fokus,center)/cover no-repeat; }
/* Auf schmalen Geraeten die kleinere Fassung, sofern die Vorlage eine gerechnet
   hat — die grossen Motive wiegen bis zu 328 kB. */
@media (max-width:700px) {
  .hero-mini.has-img::before { background-image:var(--hero-img-sm,var(--hero-img)); }
}
.hero-mini.has-img::after { content:''; position:absolute; inset:0; z-index:1;
  background:var(--hero-scrim-mini); }
.hero-mini.has-img > * { position:relative; z-index:2; }
/* Der Schleier ist duenner geworden, damit das Foto mitspricht; die Schrift
   haelt ein weicher Schatten lesbar, die Kapsel ein getoenter Grund. */
.hero-mini.has-img h1, .hero-mini.has-img .subtitle, .hero-mini.has-img .eyebrow {
  text-shadow:0 1px 2px rgba(12,6,7,.6), 0 2px 12px rgba(12,6,7,.55), 0 4px 30px rgba(12,6,7,.45); }
.hero-mini.has-img .eyebrow { background:rgba(20,8,9,.30); -webkit-backdrop-filter:blur(3px); backdrop-filter:blur(3px); }

/* ---------- Layout ---------- */
main { display:block; }
.section { padding:clamp(40px,5vw,68px) 0; }
.section.section-alt { background:var(--surface); }
.container { max-width:var(--maxw); margin:0 auto; padding:0 clamp(20px,4vw,40px); }

/* ---------- Section-Titel (intro-Shortcode + Markdown) ---------- */
.section-title { font-family:var(--f-cond); font-weight:700; font-size:clamp(28px,3.2vw,40px);
  text-transform:uppercase; letter-spacing:.02em; color:var(--ink); line-height:1.05; margin-bottom:8px;
  position:relative; }
.section-title-center { text-align:center; }
.section-title::after { content:''; display:block; width:64px; height:3px; background:var(--primary); margin-top:14px; }
.section-title-center::after { margin-left:auto; margin-right:auto; }
.section-intro { font-size:17px; color:var(--muted); line-height:1.7; max-width:var(--lesebreite); margin-bottom:8px; }
.section-intro-center { text-align:center; margin-left:auto; margin-right:auto; }

/* ---------- Inhaltskarte (box-Shortcode) ---------- */
.content-block { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius);
  padding:clamp(24px,3vw,38px); box-shadow:var(--shadow); margin-bottom:24px; }
.content-block > :first-child { margin-top:0; }
/* Fliesstext laeuft ueber die volle Kartenbreite (Festlegung 20.08.2026).
   Vorher standen Karte und Text auf Lesebreite; auf breiten Schirmen wirkte
   die halb leere Karte wie ein Fehler, und zwischen Textkarte und Tabelle
   darunter sprang die Kante. Die Zeilen sind dadurch laenger — wer das
   zurueckdrehen will, setzt --lesebreite auf einen ch-Wert. */
.content-block > :last-child { margin-bottom:0; }
.content-block h2 { font-family:var(--f-cond); font-weight:700; font-size:clamp(24px,2.6vw,30px);
  text-transform:uppercase; letter-spacing:.02em; color:var(--ink); line-height:1.15; margin:0 0 14px; }
.content-block h3 { font-family:var(--f-cond); font-weight:600; font-size:21px; text-transform:uppercase;
  color:var(--primary-ink); margin:22px 0 10px; }
.content-block p { font-size:16px; color:var(--muted); line-height:1.75; margin-bottom:12px; max-width:var(--lesebreite); }
.content-block ul, .content-block ol { color:var(--muted); font-size:16px; line-height:1.75; padding-left:22px; margin-bottom:12px; max-width:var(--lesebreite); }
.content-block li { margin-bottom:6px; }
.content-block b, .content-block strong { color:var(--ink); font-weight:700; }
.content-block a { color:var(--primary-ink); font-weight:600; }

/* ---------- Generische Inhalte (Markdown ohne Karte) ---------- */
.section h2 { font-family:var(--f-cond); font-weight:700; text-transform:uppercase; color:var(--ink); margin:0 0 14px; }
.section h3 { font-family:var(--f-cond); font-weight:600; text-transform:uppercase; color:var(--primary-ink); margin:20px 0 10px; }
.section p { color:var(--muted); margin-bottom:12px; max-width:var(--lesebreite); }
.section ul, .section ol { color:var(--muted); padding-left:22px; margin-bottom:12px; }

/* ---------- Karten-Raster (cards / card-Shortcode) ---------- */
.cards-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:22px; margin-bottom:24px; }
/* Die ganze Kachel ist der Verweis, nicht nur die Zeile unten — wie bei den
   Abteilungskarten der Startseite. */
.card { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius);
  padding:28px 26px; box-shadow:var(--shadow); display:block;
  color:var(--ink); text-decoration:none; transition:transform .25s ease, box-shadow .25s ease,
  border-color .25s ease; }
.card:hover { transform:translateY(-4px); box-shadow:0 12px 30px rgba(0,0,0,.14);
  border-color:var(--primary-ink); text-decoration:none; }
.card:focus-visible { outline:3px solid var(--focus); outline-offset:3px; }
.card-icon { width:60px; height:60px; border-radius:15px; background:var(--primary); display:flex;
  align-items:center; justify-content:center; margin-bottom:18px; color:#fff; font-size:30px; }
.card-icon svg { width:32px; height:32px; fill:currentColor; }
.card-body h3 { font-family:var(--f-cond); font-weight:600; font-size:23px; text-transform:uppercase;
  color:var(--ink); margin-bottom:8px; }
.card-body p { font-size:15px; color:var(--muted); line-height:1.6; margin-bottom:14px; }
.card-link { display:inline-flex; align-items:center; gap:6px; font-family:var(--f-cond); font-weight:600;
  font-size:14.5px; text-transform:uppercase; letter-spacing:.04em; color:var(--primary-ink); }

/* Zurueckgenommene Karte mit Eckschleife (card-Shortcode, Parameter schleife):
   Altersklassen ohne Mannschaft. Text bleibt voll lesbar, nur Flaeche,
   Rahmen und Symbol treten zurueck. */
.card.card-inaktiv { position:relative; overflow:hidden; background:var(--bg);
  border-style:dashed; box-shadow:none; }
.card.card-inaktiv .card-icon { background:var(--border); color:var(--muted); }
.card.card-inaktiv:hover { border-color:var(--muted); }
.card-schleife { position:absolute; top:34px; right:-62px; width:220px; transform:rotate(45deg);
  background:var(--muted); color:var(--bg); text-align:center; padding:5px 0;
  font-family:var(--f-cond); font-weight:600; font-size:11.5px; letter-spacing:.08em;
  text-transform:uppercase; line-height:1.2; pointer-events:none; }

/* ---------- Highlight-Box (highlight-Shortcode) ---------- */
.highlight-box { border-radius:16px; padding:26px 28px; background:var(--primary); color:#fff; margin:0 0 16px; }
.highlight-box h3 { font-family:var(--f-cond); font-weight:700; font-size:21px; text-transform:uppercase; color:#fff; margin-bottom:6px; }
.highlight-box p { font-size:15.5px; color:var(--on-primary-dim); line-height:1.6; margin:0; max-width:var(--lesebreite); }
.highlight-box p + p { margin-top:10px; }
.highlight-box b, .highlight-box strong { color:#fff; }
/* Verweise auf farbigem Grund: die rote Linkfarbe verschwindet dort. Weiss plus
   Unterstreichung — Farbe allein duerfte den Link ohnehin nicht kennzeichnen. */
.highlight-box a, .home-feature .fl a { color:#fff; text-decoration:underline;
  text-underline-offset:3px; text-decoration-thickness:1px; }
.highlight-box a:hover, .home-feature .fl a:hover { text-decoration-thickness:2px; }
.highlight-box .quote { color:#fff; border-left-color:rgba(255,255,255,.55); margin:18px 0 4px; }
.highlight-box .quote cite { color:var(--on-primary-dim); }

/* ---------- Kontakt: Info-Tabellen + zweispaltig (Redesign-Look) ---------- */
.contact-grid { display:grid; grid-template-columns:1fr 1fr; gap:24px; margin-bottom:24px; }
.contact-card { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius);
  padding:clamp(24px,3vw,36px); box-shadow:var(--shadow); }
.contact-card h2, .contact-card h3 { font-family:var(--f-cond); font-weight:700; font-size:22px; text-transform:uppercase;
  color:var(--primary-ink); margin-bottom:6px; }
.info-list { list-style:none; }
.info-list li { display:flex; gap:14px; padding:11px 0; border-bottom:1px solid var(--border);
  font-size:16px; color:var(--ink); }
.info-list li:last-child { border-bottom:none; }
.info-list a { color:var(--primary-ink); font-weight:600; }
/* Gestapelt: Bezeichnung ueber dem Wert, fuer lange Bezeichnungen wie die Vorstandsaemter */
.info-list.gestapelt li { flex-direction:column; gap:2px; }
.info-list.gestapelt .info-label { min-width:0; }
.info-label { font-family:var(--f-cond); font-weight:700; font-size:13.5px; letter-spacing:.06em;
  text-transform:uppercase; color:var(--muted); min-width:150px; }
@media (max-width:760px) {
  .contact-grid { grid-template-columns:1fr; }
  .info-list li { flex-direction:column; gap:2px; }
  .info-label { min-width:0; }
}

/* ---------- Musterseite: Feld-Herkunft + Trainingszeiten-Tabelle ---------- */
.muster-hinweis { background:var(--surface); border:1px solid var(--border);
  border-radius:12px; padding:18px 22px; margin-bottom:24px; font-size:15px; color:var(--ink); line-height:1.6;
  box-shadow:var(--shadow); max-width:var(--lesebreite); }
.feldtag { display:inline-block; font-family:var(--f-cond); font-weight:600; font-size:11.5px; letter-spacing:.04em;
  text-transform:uppercase; color:var(--muted); background:var(--bg); border:1px solid var(--border);
  border-radius:6px; padding:2px 8px; }
.content-block > .feldtag { margin-bottom:12px; }
.feldtag-zeile { font-size:14px; color:var(--muted); margin:-6px 0 22px; }
.tt-table { width:100%; border-collapse:collapse; font-size:15px; margin:4px 0 18px; }
.tt-table th { text-align:left; font-family:var(--f-cond); font-weight:700; font-size:12.5px; letter-spacing:.05em;
  text-transform:uppercase; color:#fff; background:var(--primary); padding:9px 12px; }
.tt-table td { padding:9px 12px; border-bottom:1px solid var(--border); color:var(--ink); }
.tt-table tr:last-child td { border-bottom:none; }
.tt-table tbody tr:nth-child(even) { background:var(--bg); }
@media (max-width:520px) { .tt-table { font-size:13.5px; } .tt-table th, .tt-table td { padding:7px 8px; } }
/* Unter 400 px reicht die Summe der Spaltenbreiten sonst ueber den Rand und
   die Seite laesst sich quer schieben. Erst enger setzen, und falls das immer
   noch nicht passt, scrollt die Tabelle in sich selbst statt die Seite zu
   verschieben. */
@media (max-width:400px) {
  .tt-table { display:block; overflow-x:auto; font-size:13px; }
  .tt-table th, .tt-table td { padding:6px 6px; }
  .tt-table td:first-child, .tt-table th:first-child { padding-left:0; }
}

/* ---------- Team-Raster (vorstand / kader / team / member) ---------- */
.team-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:16px; margin-bottom:8px; }
.team-member { background:var(--surface); border:1px solid var(--border);
  border-radius:12px; padding:16px 18px; }
.team-member strong { display:block; font-family:var(--f-cond); font-weight:600; font-size:18px; color:var(--ink); }
.team-member span { display:block; font-size:14px; color:var(--muted); margin-top:3px; }

/* ---------- Meilensteine / Spielberichte (match-list) ---------- */
.match-list { list-style:none; margin:4px 0; padding:0; }
.match-list li { position:relative; padding:0 0 18px 28px; border-left:2px solid var(--rule); }
.match-list li:last-child { padding-bottom:0; }
.match-list li::before { content:''; position:absolute; left:-7px; top:4px; width:12px; height:12px;
  border-radius:50%; background:var(--primary); border:2px solid var(--bg); }
.match-date { display:block; font-family:var(--f-cond); font-weight:700; font-size:13.5px; letter-spacing:.06em;
  text-transform:uppercase; color:var(--primary-ink); }
.match-title { display:block; font-size:15.5px; color:var(--ink); line-height:1.55; margin-top:2px; max-width:var(--lesebreite); }

/* ---------- Timeline (timeline / tl-Shortcode) ---------- */
.timeline { list-style:none; margin:4px 0; padding:0; }
.timeline-item { position:relative; padding:0 0 20px 28px; border-left:2px solid var(--rule); }
.timeline-item:last-child { padding-bottom:0; }
.timeline-item::before { content:''; position:absolute; left:-7px; top:4px; width:12px; height:12px;
  border-radius:50%; background:var(--primary); border:2px solid var(--bg); }
.timeline-year { font-family:var(--f-cond); font-weight:700; font-size:13.5px; letter-spacing:.06em;
  text-transform:uppercase; color:var(--primary-ink); }
.timeline-text { font-size:15.5px; color:var(--ink); line-height:1.55; margin-top:2px; max-width:var(--lesebreite); }
.timeline-text b, .timeline-text strong { color:var(--ink); }

/* ---------- Vereinschronik: eine durchgehende Zeitleiste (chronik / ck) ----------
   Die Linie laeuft ueber saemtliche Eintraege der Seite. Links haengt die
   Jahresmarke an der Linie, rechts steht der zugehoerige Text als Karte. */
.chronik { --ck-spur:132px; --ck-luft:44px; position:relative; }
.chronik::before { content:''; position:absolute; left:var(--ck-spur); top:8px; bottom:0; width:2px;
  margin-left:-1px; border-radius:2px;
  background:linear-gradient(to bottom, var(--rule) 0%, var(--rule) 90%, transparent 100%); }
.chronik-eintrag { position:relative; display:grid; grid-template-columns:var(--ck-spur) 1fr;
  column-gap:var(--ck-luft); margin-bottom:28px; }
.chronik-eintrag:last-child { margin-bottom:0; }
/* Punkt sitzt auf der Linie, auf Hoehe der ersten Ueberschriftenzeile der Karte */
.chronik-eintrag::before { content:''; position:absolute; left:var(--ck-spur);
  top:calc(clamp(24px,3vw,38px) + 8px); width:15px; height:15px; margin-left:-7.5px;
  border-radius:50%; background:var(--primary); border:3px solid var(--bg); z-index:1; }
.chronik-marke { text-align:right; padding:calc(clamp(24px,3vw,38px) + 3px) 22px 0 0; }
.chronik-jahr { font-family:var(--f-cond); font-weight:700; font-size:19px; letter-spacing:.04em;
  text-transform:uppercase; color:var(--primary-ink); line-height:1.1; display:block; }
.chronik .chronik-inhalt { max-width:none; margin-bottom:0; }
/* Feinere Jahresliste innerhalb einer Karte — ohne zweiten Strang, damit
   die grosse Zeitleiste die einzige durchgehende Linie bleibt. */
.chronik .timeline { margin:12px 0 20px; }
.chronik .timeline-item { display:grid; grid-template-columns:96px 1fr; padding:0 0 14px;
  border-left:none; }
.chronik .timeline-item:last-child { padding-bottom:0; }
.chronik .timeline-item::before { display:none; }
.chronik .timeline-year { text-align:right; padding:1px 16px 0 0; }
.chronik .timeline-text { margin-top:0; padding-left:16px; border-left:1px solid var(--rule); }

@media (max-width:860px) {
  .chronik { --ck-spur:11px; }
  .chronik::before { top:5px; }
  .chronik-eintrag { grid-template-columns:1fr; column-gap:0; padding-left:36px; margin-bottom:24px; }
  .chronik-eintrag::before { top:3px; }
  .chronik-marke { text-align:left; padding:0 0 10px; }
}
@media (max-width:560px) {
  .chronik .timeline-item { grid-template-columns:1fr; padding-bottom:12px; }
  .chronik .timeline-year { text-align:left; padding:0 0 2px; }
  .chronik .timeline-text { padding-left:0; border-left:none; }
}

/* ---------- Zitat (zitat-Shortcode) ---------- */
/* Das Zitat steht als eigener Block zwischen Absaetzen und Aufzaehlungen und
   braucht Luft nach oben und unten — sonst klebt es am Text darueber. Die
   Polsterung oben und unten haelt die Schrift von den Enden des roten
   Balkens frei. */
.quote { font-family:var(--f-serif); font-style:italic; font-size:19px; color:var(--ink); line-height:1.55;
  border-left:4px solid var(--primary); padding:6px 0 6px 20px; margin:28px 0 24px; }
.quote:first-child { margin-top:6px; }
.quote:last-child { margin-bottom:6px; }
.quote cite { display:block; font-family:var(--f-cond); font-style:normal; font-weight:600; font-size:13.5px;
  letter-spacing:.06em; text-transform:uppercase; color:var(--muted); margin-top:10px; }

/* ---------- Foto-Galerie + Bildunterschrift ---------- */
.foto-galerie { display:grid; grid-template-columns:repeat(auto-fill,minmax(180px,1fr)); gap:12px; margin:6px 0 16px; }
.foto-galerie a { display:block; border-radius:12px; overflow:hidden; border:1px solid var(--border); }
.foto-galerie img { width:100%; height:150px; object-fit:cover; transition:transform .3s ease; }
.foto-galerie a:hover img { transform:scale(1.04); }
.foto-galerie--inline { grid-template-columns:repeat(auto-fill,minmax(140px,1fr)); }
.foto-caption { font-size:13.5px; color:var(--muted); text-align:center; font-style:italic; margin:4px 0 16px; }

/* einzelnes Bild (bild-Shortcode) */
.content-block img { border-radius:12px; }

/* ---------- Fussball.de-Anzeigen ---------- */
/* Der Rahmen haengt an .fdw-platz, nicht an .fussballde_widget: die Klasse
   setzt js/fussballde.js nur voruebergehend, damit das Fremdskript den
   Behaelter findet, und nimmt sie danach wieder weg. Die Mindesthoehe haelt
   den Platz frei, solange die Anzeige noch nicht geladen ist. */
.fdw-platz, .fussballde_widget { width:100%; background:var(--surface); border:1px solid var(--border);
  border-radius:var(--radius); padding:12px; margin-bottom:20px; }
.fdw-platz { min-height:180px; }
.fdw-platz:has(iframe) { min-height:0; }
.fdw-platz:focus-visible { outline:3px solid var(--focus); outline-offset:2px; }
.fdw-hinweis { color:var(--muted); font-size:15px; margin:0; padding:24px 8px; text-align:center; }

/* Der Platzhalter, solange die Anzeige nicht angefordert wurde. Erst der
   Klick auf den Knopf holt sie von fussball.de — siehe js/fussballde.js. */
.fdw-gate { text-align:center; padding:22px 12px 26px; }
.fdw-gate-titel { font-family:var(--f-cond); font-weight:700; font-size:18px; letter-spacing:.02em;
  text-transform:uppercase; color:var(--ink); margin:0 0 8px; }
.fdw-gate-text { color:var(--muted); font-size:14.5px; line-height:1.6; max-width:52ch;
  margin:0 auto; }
.fdw-gate-text a { white-space:nowrap; }   /* nicht mitten im Link umbrechen */
.fdw-laden { border:0; cursor:pointer; margin-top:16px; }
.fdw-gate-ohne { margin-top:14px; }
/* Steht in den uebrigen Behaeltern, nachdem eingewilligt wurde: sie laden
   erst beim Blaettern, sonst kaemen acht Anzeigen auf einmal. */
.fdw-warte { color:var(--muted); font-size:14.5px; text-align:center; margin:0; padding:26px 8px; }

/* ---------- Tischtennis-Tabellen (per JavaScript erzeugt) ---------- */
#tt-uebersicht h3 { font-family:var(--f-cond); font-weight:700; font-size:22px; text-transform:uppercase;
  letter-spacing:.02em; color:var(--ink); margin:26px 0 12px; }
#tt-uebersicht h3:first-child { margin-top:0; }
#tt-uebersicht h4 { font-family:var(--f-cond); font-weight:600; font-size:16px; text-transform:uppercase;
  letter-spacing:.03em; color:var(--primary-ink); margin:18px 0 8px; }
.api-table-wrap { overflow-x:auto; border:1px solid var(--border); border-radius:12px; margin:4px 0 16px; }
.api-table { width:100%; border-collapse:collapse; font-size:15px; }
.api-table th { text-align:left; font-family:var(--f-cond); font-weight:700; font-size:12.5px;
  letter-spacing:.05em; text-transform:uppercase; color:#fff; background:var(--primary); padding:10px 14px; white-space:nowrap; }
.api-table td { padding:9px 14px; border-bottom:1px solid var(--border); color:var(--ink); }
.api-table tbody tr:last-child td { border-bottom:none; }
.api-table tbody tr:nth-child(even) { background:var(--bg); }
.api-table tr.api-highlight td { background:var(--primary); color:#fff; font-weight:700; }
.api-loading, .api-error { font-style:italic; color:var(--muted); font-size:15px; padding:6px 0; }
.api-error { color:var(--primary-ink); }

/* ---------- Verweis auf Spielpläne/Tabellen (Abteilungsseiten) ---------- */
.sp-cta { display:flex; align-items:center; gap:15px; max-width:540px; margin:6px 0 2px;
  padding:16px 20px; background:var(--surface); border:1px solid var(--border); border-radius:14px;
  box-shadow:var(--shadow); color:var(--ink); text-decoration:none;
  transition:transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.sp-cta:hover { transform:translateY(-2px); box-shadow:0 12px 30px rgba(0,0,0,.14); border-color:var(--primary-ink); }
.sp-cta .sp-ic { font-size:30px; color:var(--primary-ink); flex:none; }
.sp-cta .sp-txt strong { display:block; font-family:var(--f-cond); font-weight:700; font-size:17px; letter-spacing:.01em; }
.sp-cta .sp-txt small { color:var(--muted); font-size:13.5px; }
.sp-cta .sp-arrow { margin-left:auto; color:var(--primary-ink); flex:none; transition:transform .15s ease; }
.sp-cta:hover .sp-arrow { transform:translateX(4px); }

/* Folgt die Kachel auf einen Absatz oder eine Liste, braucht sie Luft — sonst
   klebt sie am Text darueber. */
p + .sp-cta, ul + .sp-cta, ol + .sp-cta, .foto-galerie + .sp-cta,
.timeline + .sp-cta, .team-grid + .sp-cta { margin-top:24px; }


/* ---------- Footer ---------- */
.footer { background:var(--footer-bg); color:var(--footer-muted); padding:clamp(38px,4vw,58px) 0 34px; }
.footer .container { max-width:1320px; }
.footer-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:clamp(28px,3vw,44px); }
/* Die Spaltentitel der Fusszeile sind h2, nicht h4: sonst springt die
   Ueberschriftenebene auf jeder Seite von h1 auf h4. */
.footer h2 { font-family:var(--f-cond); font-weight:700; font-size:15px; letter-spacing:.1em;
  text-transform:uppercase; color:var(--footer-ink); margin-bottom:14px; }
.footer p { font-size:14.5px; line-height:1.7; margin-bottom:6px; }
.footer a { color:var(--footer-muted); }
.footer p a { display:inline-flex; align-items:center; min-height:44px; }
.footer a:hover { color:var(--footer-ink); }
.footer-links { list-style:none; }
.footer-links li { margin-bottom:0; }
.footer-links a { font-size:14.5px; display:flex; align-items:center; min-height:44px; }
.social-links { display:flex; gap:12px; margin-top:14px; }
.social-links a { width:44px; height:44px; border-radius:11px; background:var(--footer-chip);
  color:var(--footer-ink); display:inline-flex; align-items:center; justify-content:center; }
.social-links svg { width:20px; height:20px; fill:currentColor; }
.footer-bottom { margin-top:32px; padding-top:20px; border-top:1px solid var(--footer-line);
  font-size:13px; color:var(--footer-muted); }

/* ---------- fade-in (nur bei aktivem JS verstecken — sonst immer sichtbar) ---------- */
html.js .fade-in { opacity:0; transform:translateY(16px); transition:opacity .6s ease, transform .6s ease; }
html.js .fade-in.visible { opacity:1; transform:none; }
/* Wer Bewegung reduziert haben will, bekommt weiterhin Farb- und
   Zustandswechsel — nur die Ortsveraenderungen fallen weg. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior:auto; }
  html.js .fade-in { opacity:1; transform:none; transition:none; }
  .dept-card:hover, .card:hover, .sp-cta:hover, .back-to-top:hover { transform:none; }
  .sp-cta:hover .sp-arrow, .foto-galerie a:hover img { transform:none; }
  .has-sub:hover .caret, .has-sub.open .caret { transform:none; }
  .nav-links, .nav-huelle, .skip-link, .foto-galerie img, .sp-cta, .dept-card, .card { transition:none; }
  .skip-link { transform:none; top:-100px; }
  .skip-link:focus { top:12px; }
  html.theme-anim, html.theme-anim *, html.theme-anim *::before, html.theme-anim *::after {
    transition:none !important; }
}

/* ---------- Back to top ---------- */
.back-to-top { position:fixed; bottom:22px; right:22px; width:46px; height:46px; border-radius:50%;
  background:var(--primary); color:#fff; border:none; cursor:pointer; opacity:0; visibility:hidden;
  display:inline-flex; align-items:center; justify-content:center;
  pointer-events:none; transition:opacity .3s ease, transform .2s ease, visibility 0s linear .3s;
  z-index:900; box-shadow:0 6px 20px rgba(0,0,0,.25); }
.back-to-top .msi { font-size:24px; }
.back-to-top.visible { opacity:.9; visibility:visible; pointer-events:auto;
  transition:opacity .3s ease, transform .2s ease; }
.back-to-top:hover { transform:translateY(-3px); opacity:1; }

/* ---------- Lightbox ---------- */
.lightbox { display:none; position:fixed; inset:0; z-index:2000; background:rgba(0,0,0,.92);
  align-items:center; justify-content:center; }
.lightbox--open { display:flex; }
.lightbox__img { max-width:90vw; max-height:85vh; object-fit:contain; border-radius:8px; box-shadow:0 0 40px rgba(0,0,0,.5); }
.lightbox__close, .lightbox__prev, .lightbox__next { position:absolute; background:none; border:none;
  color:#fff; cursor:pointer; transition:opacity .3s ease; opacity:.7;
  min-width:48px; min-height:48px; display:inline-flex; align-items:center; justify-content:center; }
.lightbox__close:hover, .lightbox__prev:hover, .lightbox__next:hover { opacity:1; }
.lightbox__close { top:16px; right:20px; }
.lightbox__close .msi { font-size:34px; }
.lightbox__prev, .lightbox__next { top:50%; transform:translateY(-50%); padding:10px; }
.lightbox__prev .msi, .lightbox__next .msi { font-size:44px; }
.lightbox__prev { left:16px; }
.lightbox__next { right:16px; }
.lightbox__counter { position:absolute; bottom:20px; left:50%; transform:translateX(-50%); color:#fff;
  font-family:var(--f-cond); letter-spacing:.1em; font-size:14px; opacity:.8; }

/* ---------- Startseite ---------- */
.home-hero { background:var(--hero-bg); position:relative; overflow:hidden; text-align:center;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  min-height:clamp(480px,42vw,680px); padding:clamp(44px,5vw,76px) clamp(24px,4vw,48px); }
/* Mit Foto: Motiv rechts, Text links. Foto und Verlauf liegen als eigene
   Ebenen, damit das Bild getrennt vom Verlauf behandelt werden kann. */
.home-hero.has-bg { background:none; text-align:left; align-items:stretch; }
.home-hero.has-bg::before { content:''; position:absolute; inset:0; z-index:0;
  background-image:var(--hero-img); background-repeat:no-repeat;
  background-size:cover; background-position:center var(--hero-fokus);
  filter:brightness(1.12) saturate(1.06) contrast(1.02); }
.home-hero.has-bg::after { content:''; position:absolute; inset:0; z-index:1;
  background:var(--hero-scrim); }
.home-hero.has-bg .inner { z-index:2; width:100%; max-width:var(--maxw);
  margin:0 auto; align-items:flex-start; }
/* Der Verlauf haelt den Text lesbar, wo das Foto dunkel ist. An den hellsten
   Stellen — Wolkenluecken hinter der Zeile — reicht er allein nicht mehr,
   seit er zurueckgenommen wurde. Ein weicher Schatten faengt das ab, ohne
   dass der Verlauf wieder ueber das ganze Bild gezogen werden muss. */
.home-hero.has-bg .eyebrow, .home-hero.has-bg h1, .home-hero.has-bg .lead {
  text-shadow:0 1px 2px rgba(12,6,7,.65), 0 2px 12px rgba(12,6,7,.6), 0 4px 34px rgba(12,6,7,.55), 0 0 70px rgba(12,6,7,.35); }
/* Die kleine Kapsel steht vor hellen Wolken; ein getoenter Grund haelt sie lesbar. */
.home-hero.has-bg .eyebrow { background:rgba(20,8,9,.34); -webkit-backdrop-filter:blur(3px); backdrop-filter:blur(3px); }
.home-hero.has-bg h1 { max-width:16ch; }
.home-hero.has-bg .lead { max-width:34ch; }
.home-hero.has-bg .bar { margin:30px 0 0; }
/* Handy: kleinere Fassung des Fotos, Verlauf von unten statt von links —
   sonst stuende der Text auf dem hellen Teil des Bildes. */
@media (max-width:700px) {
  .home-hero.has-bg { justify-content:flex-end; }
  .home-hero.has-bg::before { background-image:var(--hero-img-sm,var(--hero-img));
    background-position:center 38%; }
  .home-hero.has-bg::after { background:var(--hero-scrim-hoch); }
  .home-hero.has-bg .inner { padding-bottom:8px; }
}
.home-hero .inner { position:relative; z-index:1; display:flex; flex-direction:column; align-items:center; }
.home-hero .eyebrow { display:inline-block; font-family:var(--f-cond); font-size:13px; font-weight:600;
  letter-spacing:.28em; text-transform:uppercase; color:var(--hero-accent); border:1px solid var(--hero-pill);
  border-radius:40px; padding:8px 22px; margin-bottom:30px; }
.home-hero h1 { font-family:var(--f-head); font-weight:700; font-size:clamp(46px,6.6vw,108px); line-height:.96;
  color:#fff; letter-spacing:.005em; }
.home-hero h1 span { color:var(--hero-accent); }
.home-hero .lead { font-family:var(--f-serif); font-style:italic; font-size:clamp(17px,2vw,25px);
  color:var(--hero-sub); margin-top:20px; line-height:1.4; }
.home-hero .bar { height:4px; width:80px; background:var(--bar-accent); margin:32px auto 0; }

/* Die Startseite ist eine Folge von Baendern ueber die volle Breite. Die
   frueher rechts stehende Nebenspalte ist entfallen — sie liess ab dem
   Kreismeister-Block rund ein Drittel der Seite leer. */
.band { padding:clamp(44px,5vw,76px) 0; }
.band-alt { background:var(--surface); }
.container-weit { max-width:1320px; }
.band-intro { font-size:16px; color:var(--muted); line-height:1.7; max-width:var(--lesebreite); margin:-14px 0 26px; }
.home-shead { display:flex; align-items:baseline; gap:18px; margin-bottom:30px; }
.home-shead h2 { font-family:var(--f-cond); font-weight:700; font-size:clamp(30px,3.2vw,44px);
  text-transform:uppercase; letter-spacing:.02em; color:var(--ink); line-height:1; }
.home-shead span { height:3px; flex:1; background:var(--rule); }
/* Drei Spalten, Fussball ueber zwei: fuenf Mannschaften und eine
   Aufstiegsgeschichte lassen sich nicht gleich gross wie eine Gruppe zeigen.
   Nebenbei geht die Reihe damit ohne Luecke auf. */
/* Sechs Spalten als Grundraster: Fussball und Tischtennis nehmen je die halbe
   Breite (3 von 6), die drei uebrigen je ein Drittel (2 von 6). So stehen die
   beiden grossen Abteilungen gleichberechtigt nebeneinander. */
.dept-grid { display:grid; grid-template-columns:repeat(6,1fr); gap:22px; }
.dept-card { grid-column:span 2; }
.dept-card--gross { grid-column:span 3; }
@media (min-width:1001px) {
  .dept-card--gross { display:flex; align-items:flex-start; gap:28px; }
  .dept-card--gross .ic { margin-bottom:0; flex:none; }
  .dept-card--gross .dept-body { flex:1; }
  .dept-card--gross .dept-desc { max-width:var(--lesebreite); }
}
.dept-card { display:block; text-decoration:none; background:var(--surface); border:1px solid var(--border);
  border-radius:var(--radius); padding:30px 26px; box-shadow:var(--shadow); transition:transform .25s ease; }
.dept-card:hover { transform:translateY(-4px); text-decoration:none; }
.dept-card .ic { width:64px; height:64px; border-radius:16px; background:var(--primary); display:flex;
  align-items:center; justify-content:center; margin-bottom:20px; }
.dept-card .ic.alt { background:var(--icon2-bg); }
.dept-card .ic .msi { font-size:36px; color:#fff; }
.dept-card .ic.alt .msi { color:var(--icon2-ink); }
.dept-card h3 { font-family:var(--f-cond); font-weight:600; font-size:25px; text-transform:uppercase; color:var(--ink); }
.dept-card p { font-size:15px; color:var(--muted); margin-top:9px; line-height:1.55; }
.dept-card .more { display:inline-flex; align-items:center; gap:6px; margin-top:16px; font-family:var(--f-cond);
  font-weight:600; font-size:15px; text-transform:uppercase; letter-spacing:.04em; color:var(--primary-ink); }
.dept-card .dept-sub, .dept-card .dept-arrow { display:none; }   /* nur in der mobilen Listenansicht */

/* Jede Abteilung traegt ein Kopfband. Der Schleier darueber ist neutral und
   nur zum unteren Rand hin dunkler: er gibt der Symbolkachel, die halb ins
   Bild ragt, einen ruhigen Grund. Frueher war er rot getoent — mit den
   eigenen Vereinsfotos wirkte das wie ein Farbstich. */
.dept-card { position:relative; overflow:hidden; padding:0; }
.dept-bild { display:block; position:relative; }
.dept-bild img { display:block; width:100%; height:clamp(150px,15vw,186px);
  object-fit:cover; filter:saturate(.95); }
.dept-bild::after { content:''; position:absolute; inset:0; background:var(--dept-schleier); }
.dept-card--gross { display:block; }
.dept-card .ic { margin:-32px 0 14px 26px; position:relative; z-index:2;
  box-shadow:0 6px 18px rgba(0,0,0,.28); }
.dept-card .dept-body { padding:0 26px 28px; }

.home-feature { border-radius:20px; overflow:hidden; border:1px solid var(--border);
  display:grid; grid-template-columns:1fr 1fr; }
.home-feature .fl { background:var(--primary); padding:clamp(30px,3vw,46px); display:flex; flex-direction:column; justify-content:center; }
.home-feature .fl .k { display:flex; align-items:center; gap:10px; font-family:var(--f-cond); font-weight:600;
  font-size:14px; letter-spacing:.18em; text-transform:uppercase; color:var(--on-primary-dim); }
.home-feature .fl h2 { font-family:var(--f-display); font-size:clamp(34px,3.8vw,52px); color:#fff;
  text-transform:uppercase; line-height:.95; margin-top:14px; }
.home-feature .fr { background:var(--surface); padding:clamp(30px,3vw,46px); display:flex; flex-direction:column; justify-content:center; }
.home-feature .fr p { font-size:16px; color:var(--muted); line-height:1.6; max-width:var(--lesebreite); }
.home-feature .fr .q { font-family:var(--f-serif); font-style:italic; font-size:19px; color:var(--ink);
  margin-top:18px; line-height:1.5; border-left:4px solid var(--primary); padding-left:18px; }
.home-feature .fr .src { font-family:var(--f-cond); font-weight:600; font-size:13.5px; letter-spacing:.08em;
  text-transform:uppercase; color:var(--muted); margin-top:10px; padding-left:18px; }

/* Verweis am Fuss eines Bandes */
.side-link { display:inline-flex; align-items:center; gap:6px; font-family:var(--f-cond); font-weight:600;
  font-size:14.5px; text-transform:uppercase; letter-spacing:.04em; color:var(--primary-ink);
  text-decoration:none; min-height:44px; }
/* Stehen zwei Verweise nebeneinander, brauchen sie Abstand — und auf schmalen
   Schirmen jeder seine eigene Zeile, damit die Tippziele nicht zusammenkleben. */
.side-link + .side-link { margin-left:26px; }
/* Keine Unterstreichung: der Verweis ist ein Flex-Kasten, die Linie liefe quer
   durch die Luecke und unter dem Pfeil hindurch. Stattdessen wandert der Pfeil,
   wie bei den Kacheln. */
.side-link .msi { transition:transform .15s ease; }
.side-link:hover { text-decoration:none; }
.side-link:hover .msi { transform:translateX(4px); }
@media (prefers-reduced-motion: reduce) {
  .side-link .msi { transition:none; }
  .side-link:hover .msi { transform:none; }
}
@media (max-width:600px) {
  .side-link { display:flex; }
  .side-link + .side-link { margin-left:0; }
}

/* ---------- Partner: Logowand ----------
   Gleich grosse Kacheln in einem festen Raster, das Logo traegt die Kachel.
   Fuenf Spalten, weil die Wand damit ohne Rest aufgeht; darunter stufenweise
   weniger. Der helle Kachelgrund liegt bewusst auch im Anthrazit-Modus nah am
   Weiss — Firmenlogos sind fuer helle Flaechen gezeichnet. */
.logowand { list-style:none; display:grid; grid-template-columns:repeat(5,1fr); gap:12px; }
.logo-feld { background:var(--logo-feld); border:1px solid var(--border); border-radius:12px;
  min-height:112px; display:flex; align-items:center; justify-content:center; padding:18px; }
.logo-feld > a { display:flex; align-items:center; justify-content:center; width:100%; height:100%;
  min-height:76px; text-decoration:none; }
.logo-feld img { max-width:100%; max-height:64px; object-fit:contain; }
.logo-name { font-family:var(--f-cond); font-weight:600; font-size:16px; line-height:1.25;
  text-align:center; color:var(--logo-ink); }
.logo-feld.leer { border-style:dashed; background:none; }
.logo-feld.leer .msi { font-size:30px; color:var(--muted); opacity:.4; }
@media (max-width:1100px) { .logowand { grid-template-columns:repeat(4,1fr); } }
@media (max-width:860px)  { .logowand { grid-template-columns:repeat(3,1fr); } }
@media (max-width:520px)  { .logowand { grid-template-columns:repeat(2,1fr); gap:10px; }
  .logo-feld { min-height:92px; padding:14px; } }

/* Solange kein Partner freigegeben ist, steht hier das Angebot statt eines
   Platzhalters — vier Wege, kein leerer Kasten. */
.leistungen { list-style:none; display:grid;
  grid-template-columns:repeat(auto-fit,minmax(230px,1fr)); gap:14px; }
.leistungen li { background:var(--surface2); border:1px solid var(--border); border-radius:12px;
  padding:20px; display:flex; flex-direction:column; gap:12px; }
.leistungen .msi { font-size:28px; color:var(--primary-ink); }
.leistungen b { font-family:var(--f-cond); font-weight:600; font-size:17px; color:var(--ink);
  line-height:1.3; }

/* ---------- Mitmachen: beide Wege gleich gewichtet ---------- */
.mitmachen { display:grid; grid-template-columns:1fr 1fr; gap:24px; }
.mit-karte { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius);
  padding:clamp(26px,3vw,38px); box-shadow:var(--shadow); }
.mit-karte h2 { font-family:var(--f-cond); font-weight:700; font-size:clamp(24px,2.6vw,30px);
  text-transform:uppercase; letter-spacing:.02em; color:var(--ink); line-height:1.1; }
.mit-karte p { font-size:15.5px; color:var(--muted); line-height:1.6; margin-top:10px; max-width:var(--lesebreite); }
.knopf { display:inline-flex; align-items:center; justify-content:center; min-height:44px;
  margin-top:20px; padding:11px 24px; border-radius:8px; font-family:var(--f-cond);
  font-weight:700; font-size:15px; letter-spacing:.05em; text-transform:uppercase;
  color:var(--bg); background:var(--primary-ink); text-decoration:none; }
.knopf:hover { text-decoration:none; opacity:.9; }
@media (max-width:760px) { .mitmachen { grid-template-columns:1fr; } }

/* ---------- Flyer auf der Startseite (D-Jugend sucht Mitspieler) ---------- */
.flyer-teaser { display:grid; grid-template-columns:minmax(240px,380px) 1fr; gap:clamp(28px,5vw,72px); align-items:center; }
.flyer-bild { display:block; border-radius:10px; overflow:hidden; box-shadow:0 14px 34px rgba(0,0,0,.18);
  transform:rotate(-2deg); transition:transform .2s ease; }
.flyer-bild:hover, .flyer-bild:focus-visible { transform:rotate(0) scale(1.015); }
.flyer-bild img { display:block; width:100%; height:auto; }
.flyer-eyebrow { font-family:var(--f-cond); font-weight:700; font-size:14px; letter-spacing:.2em;
  text-transform:uppercase; color:var(--primary-ink); }
.flyer-text h2 { margin-top:6px; font-family:var(--f-cond); font-weight:700; font-size:clamp(34px,4.2vw,54px);
  text-transform:uppercase; letter-spacing:.02em; color:var(--ink); line-height:1; }
.flyer-text > p:not(.flyer-eyebrow):not(.flyer-meldung) { margin-top:16px; font-size:17px; line-height:1.65;
  color:var(--muted); max-width:62ch; text-wrap:pretty; }
.flyer-text .flyer-bitte { color:var(--ink); background:var(--bg); border-left:4px solid var(--primary);
  border-radius:8px; padding:14px 18px; }
.flyer-bitte strong { color:var(--primary-ink); }
.flyer-knoepfe { display:flex; flex-wrap:wrap; gap:12px; margin-top:24px; }
.flyer-knoepfe .knopf { margin-top:0; gap:8px; }
.flyer-knoepfe .knopf[hidden] { display:none; }
.knopf-rand { background:transparent; color:var(--primary-ink); border:2px solid var(--primary-ink); padding:9px 22px; }
.flyer-wa { margin-top:18px; }
.flyer-meldung { margin-top:14px; font-size:15.5px; line-height:1.5; color:var(--ink); max-width:62ch; }
.flyer-meldung:not(:empty) { background:var(--bg); border:1px solid var(--border); border-left:4px solid var(--primary);
  border-radius:8px; padding:12px 16px; overflow-wrap:anywhere; }
@media (max-width:760px) {
  .flyer-teaser { grid-template-columns:1fr; }
  .flyer-bild { width:min(78vw,340px); margin:0 auto; }
}

.home-history { margin-top:clamp(40px,5vw,68px); display:grid; grid-template-columns:1fr 1fr; gap:40px; align-items:center; }
.home-history figure { border-radius:var(--radius); overflow:hidden; border:1px solid var(--border); }
.home-history img { width:100%; height:clamp(200px,20vw,268px); object-fit:cover; }
.home-history h2 { font-family:var(--f-cond); font-weight:700; font-size:clamp(28px,3vw,42px);
  text-transform:uppercase; letter-spacing:.02em; color:var(--ink); line-height:1; }
.home-history p { font-size:16px; color:var(--muted); line-height:1.65; margin-top:18px; max-width:var(--lesebreite); }
.home-history .side-link { margin-top:22px; font-size:16px; }
@media (max-width:760px) { .home-history { grid-template-columns:1fr; gap:24px; } }

/* ---------- Responsive ---------- */
@media (max-width:1000px) {
  .dept-grid { grid-template-columns:repeat(2,1fr); }
  .dept-card, .dept-card--gross { grid-column:span 1; }
}
@media (max-width:900px) {
  .navbar .container { flex-wrap:wrap; }
  .nav-brand { flex:1 1 auto; min-width:0; }     /* schrumpft, damit Umschalter + Menü daneben bleiben */
  .nav-toggle { display:flex; order:3; flex:none; }
  .nav-right { order:2; flex:none; }
  .nav-cta { display:none; }   /* wie im Entwurf: mobiler Header nur Logo + Umschalter */
  /* flex-wrap muss hier zurueckgesetzt werden: eine Spalte mit max-height:0
     laesst umbruchfaehige Elemente in weitere Spalten daneben laufen — das
     geschlossene Menue war dadurch rund 2000 px breit und die Seite liess
     sich quer schieben. */
  /* Die Huelle klappt ueber grid-template-rows von 0fr auf 1fr auf. Das
     animiert keine Layoutgroesse an der Liste selbst und braucht anders als
     max-height keinen geratenen Endwert — das Menue faehrt genau bis zu seiner
     echten Hoehe und die Dauer stimmt. flex:0 0 100% statt width:100%, weil die
     Liste darin durch overflow:hidden beliebig schmal werden darf: ein
     schrumpfbares Flex-Kind blieb sonst neben dem Logo in der Kopfzeile
     haengen, statt darunter aufzuklappen. */
  .nav-huelle { display:grid; grid-template-rows:0fr; order:4; flex:0 0 100%;
    transition:grid-template-rows .3s ease; }
  .nav-huelle:has(.nav-links.open) { grid-template-rows:1fr; }
  /* Das Innenmass wird nicht mitbewegt, sondern umgeschaltet: sonst stuende im
     geschlossenen Zustand ein Streifen Polsterung unter der Kopfleiste. */
  /* margin-left:auto aus der Grundregel zuruecknehmen — es schiebt die Liste
     sonst als Rasterkind an den rechten Rand statt sie zu strecken. */
  .nav-links { min-height:0; flex-direction:column; flex-wrap:nowrap;
    align-items:flex-start; justify-content:flex-start; margin-left:0; gap:4px;
    overflow:hidden; visibility:hidden; padding:0 6px;
    transition:visibility 0s linear .3s; }
  .nav-links.open { visibility:visible; padding:10px 6px 6px;
    transition:visibility 0s; }
  .nav-links li { width:100%; }
  .nav-links a { padding:12px 0; font-size:17px; display:block; width:100%; }
  .nav-links a.active { border-bottom:none; color:var(--bar-accent); }
  .nav-social-menue .nav-social a { width:44px; padding:0; display:inline-flex; }
  /* Dropdown im mobilen Menü: eingerückt, per Klick aufklappbar (kein Hover) */
  .has-sub { width:100%; }
  .sub-toggle { width:100%; justify-content:space-between; padding:12px 0; font-size:17px; }
  .has-sub:hover .sub-menu, .has-sub:focus-within .sub-menu { display:none; }
  .sub-menu { position:static; transform:none; min-width:0; background:transparent; border:none;
    box-shadow:none; padding:0 0 4px 16px; }
  .has-sub.open .sub-menu { display:block; }
  .sub-menu a { color:var(--nav-dim); padding:11px 0; font-size:16px; display:block; }
  .sub-menu a:hover, .sub-menu a.active { background:transparent; color:var(--bar-accent); }
  .home-feature { grid-template-columns:1fr; }
}
/* Abteilungen auf dem Handy als kompakte Liste (Icon · Text · Pfeil) wie im Entwurf */
@media (max-width:600px) {
  .dept-grid { grid-template-columns:1fr; gap:12px; }
  .dept-card, .dept-card--gross { grid-column:span 1; }
  .dept-card { display:flex; align-items:center; gap:14px; padding:16px; }
  .dept-card .ic { width:50px; height:50px; border-radius:12px; margin-bottom:0; flex:none; }
  .dept-card .ic .msi { font-size:28px; }
  .dept-card .dept-body { flex:1; min-width:0; }
  .dept-card h3 { font-size:18px; }
  .dept-card .dept-desc, .dept-card .more { display:none; }
  .dept-card .dept-sub { display:block; font-size:12.5px; color:var(--muted); margin-top:2px; }
  .dept-card .dept-arrow { display:inline-block; font-size:21px; color:var(--primary-ink); flex:none; }
  .dept-bild { display:none; }
  .dept-card .ic { margin:0; box-shadow:none; }
  .dept-card .dept-body { padding:0; }
}
@media (max-width:560px) {
  .foto-galerie { grid-template-columns:repeat(auto-fill,minmax(130px,1fr)); }
  .foto-galerie img { height:120px; }
  .home-hero h1 { font-size:clamp(40px,11vw,60px); }
}

/* ---------- Archiv (Beitraege der frueheren Vereinsseite) ---------- */
.archiv-summe { font-family:var(--f-cond); font-weight:700; font-size:14px; letter-spacing:.06em;
  text-transform:uppercase; color:var(--primary-ink); margin-top:18px; }

/* Dokument aus dem Archiv: Seite als Bild, dahinter die Lesefassung */
.dokument { margin:6px 0 4px; }
.dokument + .dokument { margin-top:22px; }
.dokument-blatt { position:relative; display:block; border:1px solid var(--border);
  border-radius:12px; overflow:hidden; background:#fff; line-height:0; }
.dokument-blatt img { width:100%; height:auto; display:block; }
.dokument-blatt:hover { border-color:var(--primary-ink); }
.dokument-blatt:focus-visible { outline:3px solid var(--focus); outline-offset:2px; }
.dokument-lupe { position:absolute; right:12px; bottom:12px; display:inline-flex; align-items:center;
  gap:6px; min-height:36px; padding:8px 14px; border-radius:999px;
  background:rgba(20,8,9,.82); color:#fff; line-height:1.2;
  font-family:var(--f-cond); font-weight:700; font-size:13.5px; letter-spacing:.05em;
  text-transform:uppercase; }
.dokument-blatt:hover .dokument-lupe { background:var(--primary); }
.dokument-ic { font-size:17px; }
.dokument figcaption { margin-top:10px; }
.dokument figcaption strong { display:block; font-family:var(--f-cond); font-weight:700;
  font-size:16px; letter-spacing:.01em; color:var(--ink); }
.dokument-wege { display:block; margin-top:2px; font-size:14px; color:var(--muted); }
.dokument-wege a { color:var(--primary-ink); font-weight:600; }
@media (max-width:600px) {
  .dokument-lupe { right:8px; bottom:8px; font-size:12.5px; padding:8px 12px; }
}

/* Video: bis zum Klick nur ein Vorschaubild vom eigenen Server */
.video-raster { display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:18px; margin:6px 0 4px; }
.video-karte { margin:0; background:var(--surface2); border:1px solid var(--border);
  border-radius:14px; overflow:hidden; box-shadow:var(--shadow); }
.video-karte > iframe { display:block; width:100%; height:auto; aspect-ratio:16/9; border:0; }
.video-start { display:block; position:relative; width:100%; padding:0; border:0; cursor:pointer;
  background:var(--ph2); line-height:0; }
.video-start img { width:100%; height:auto; aspect-ratio:16/9; object-fit:cover; display:block; }
.video-start::after { content:''; position:absolute; inset:0; background:rgba(20,8,9,.18);
  transition:background .15s ease; }
.video-start:hover::after { background:rgba(20,8,9,.05); }
.video-start:focus-visible { outline:3px solid var(--focus); outline-offset:-3px; }
.video-play { position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); z-index:1;
  display:block; line-height:0; }
.video-play .vp-bg { fill:#212121; fill-opacity:.8; transition:fill-opacity .15s ease; }
.video-play .vp-pf { fill:#fff; }
.video-start:hover .video-play .vp-bg { fill:var(--primary); fill-opacity:1; }
.video-karte figcaption { padding:12px 15px 14px; }
.video-karte figcaption strong { display:block; font-family:var(--f-cond); font-weight:700;
  font-size:16px; letter-spacing:.01em; color:var(--ink); }
.video-karte figcaption small { display:block; margin-top:4px; font-size:12.5px; line-height:1.5;
  color:var(--muted); }
.video-karte--laeuft figcaption small { display:none; }
@media (prefers-reduced-motion: reduce) {
  .video-start::after, .video-play .vp-bg { transition:none; }
}

.archiv-filter { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:20px; }
.archiv-filter button { display:inline-flex; align-items:center; gap:7px; min-height:44px; padding:8px 16px;
  background:var(--surface2); border:1px solid var(--border); border-radius:999px; cursor:pointer;
  font-family:var(--f-cond); font-weight:700; font-size:14.5px; letter-spacing:.04em; color:var(--ink); }
.archiv-filter button span { font-size:13px; color:var(--muted); }
.archiv-filter button:hover { border-color:var(--primary-ink); }
.archiv-filter button:focus-visible { outline:3px solid var(--focus); outline-offset:2px; }
.archiv-filter button[aria-pressed="true"] { background:var(--primary); border-color:var(--primary);
  color:#fff; }
.archiv-filter button[aria-pressed="true"] span { color:rgba(255,255,255,.9); }
.archiv-leer { color:var(--muted); margin-bottom:18px; }

.archiv-jahr { background:var(--surface2); border:1px solid var(--border); border-radius:var(--radius);
  margin-bottom:12px; overflow:hidden; }
.archiv-jahr > summary { display:flex; align-items:center; gap:14px; min-height:56px; padding:10px 18px;
  cursor:pointer; list-style:none; color:var(--ink); }
.archiv-jahr > summary::-webkit-details-marker { display:none; }
.archiv-jahr > summary:hover { background:var(--surface); }
.archiv-jahr > summary:focus-visible { outline:3px solid var(--focus); outline-offset:-3px; }
.archiv-jahr-zahl { font-family:var(--f-display); font-size:26px; letter-spacing:.02em; line-height:1;
  color:var(--primary-ink); }
.archiv-jahr-anzahl { font-family:var(--f-cond); font-weight:700; font-size:13.5px; letter-spacing:.06em;
  text-transform:uppercase; color:var(--muted); flex:1; }
.archiv-caret { font-size:26px; color:var(--muted); transition:transform var(--transition); flex:none; }
.archiv-jahr[open] > summary .archiv-caret { transform:rotate(180deg); }

.archiv-liste { list-style:none; margin:0; padding:0 18px 14px; }
.archiv-liste li { border-top:1px solid var(--border); }
.archiv-liste a { display:block; padding:12px 4px; min-height:44px; text-decoration:none; color:var(--ink); }
.archiv-liste a:hover { background:var(--surface); }
.archiv-liste a:hover .archiv-titel { color:var(--primary-ink); }
.archiv-liste a:focus-visible { outline:3px solid var(--focus); outline-offset:-3px; }
.archiv-meta { display:block; font-family:var(--f-cond); font-weight:700; font-size:13px; letter-spacing:.06em;
  text-transform:uppercase; color:var(--muted); }
.archiv-abteilung { color:var(--primary-ink); }
.archiv-abteilung::before { content:'·'; margin:0 7px; color:var(--muted); }
.archiv-titel { display:block; font-size:16.5px; line-height:1.5; margin-top:2px; max-width:var(--lesebreite); }

/* Bildnachweis im Impressum. Bewusst einspaltig statt als Tabelle: die Angaben
   sind lang, eine vierspaltige Tabelle bricht auf dem Handy unlesbar um. Zuerst
   das Motiv, darunter wo es steht und woher es kommt. */
/* Die allgemeine Regel .content-block ul rueckt Listen ein — hier nicht. */
.bildnachweis, .content-block .bildnachweis { list-style:none; margin:14px 0 18px;
  padding-left:0; max-width:none; }
.bildnachweis li { padding:12px 0; border-bottom:1px solid var(--border); }
.bildnachweis li:last-child { border-bottom:none; }
.bildnachweis strong { display:block; font-size:16px; color:var(--ink); line-height:1.4; }
.bn-seiten { display:block; margin-top:3px; font-size:14.5px; color:var(--muted); line-height:1.5; }
.bn-quelle { display:block; margin-top:4px; font-family:var(--f-cond); font-weight:600;
  font-size:13.5px; letter-spacing:.04em; text-transform:uppercase; color:var(--muted); }
.bn-quelle a { color:var(--primary-ink); font-weight:700; }

/* Chronik: der Text laeuft um das Foto. Nur bei einem einzelnen Bild — stehen
   zwei nebeneinander, blieben fuer den Text keine sinnvollen Zeilen uebrig.
   Aufzaehlungen, Zitate und Hervorhebungen setzen darunter neu an, sonst
   ruecken ihre Marken neben dem Bild ein. */
@media (min-width:701px) {
  .chronik-inhalt .foto-galerie--inline:has(> a:only-child) {
    float:left; width:min(300px,42%); margin:4px 26px 12px 0;
    /* eine Spalte, sonst legt das Raster neben dem einen Bild eine zweite an
       und zwischen Foto und Text klafft eine Luecke */
    grid-template-columns:1fr; }
  .chronik-inhalt .timeline, .chronik-inhalt .meilensteine,
  .chronik-inhalt .quote, .chronik-inhalt .highlight-box,
  .chronik-inhalt .chronik-quelle { clear:both; }
  .chronik-inhalt::after { content:''; display:block; clear:both; }
  .chronik-inhalt .foto-galerie--inline:has(> a:only-child) img { height:200px; }
}

/* Abteilungsleitung. Einspaltig aufgebaut, damit die Angaben auf jeder Breite
   gleich stehen — Abteilung, Name, darunter Rolle und Ort. */
.leitung { list-style:none; margin:14px 0 0; padding-left:0; max-width:none; }
.content-block .leitung { padding-left:0; }
.leitung li { padding:14px 0; border-bottom:1px solid var(--border); }
.leitung li:last-child { border-bottom:none; }
.leitung-abteilung { display:block; font-family:var(--f-cond); font-weight:700; font-size:13px;
  letter-spacing:.08em; text-transform:uppercase; color:var(--primary-ink); }
.leitung-name { display:block; margin-top:3px; font-size:17px; color:var(--ink); line-height:1.35; }
.leitung-ort { display:block; margin-top:2px; font-size:14.5px; color:var(--muted); line-height:1.5; }
.leitung-mail { display:block; margin-top:4px; font-size:14.5px; }
.leitung-hinweis { margin-top:16px; font-size:14.5px; color:var(--muted); }

/* Verweis von einem Chronikeintrag in den passenden Archivbeitrag */
.chronik-quelle { margin:14px 0 0; padding-top:12px; border-top:1px solid var(--border);
  font-family:var(--f-cond); font-weight:600; font-size:14px; letter-spacing:.04em;
  text-transform:uppercase; }
.chronik-quelle a { color:var(--primary-ink); }

/* Herkunft eines übertragenen Berichts */
.archiv-quelle { font-size:13.5px; color:var(--muted); line-height:1.6; margin:22px 0 0;
  padding-top:12px; border-top:1px solid var(--border); }
.archiv-quelle a { color:var(--primary-ink); font-weight:600; }

/* Was der Beitrag einmal enthielt und heute fehlt */
.archiv-fehlt { font-size:14.5px; color:var(--muted); line-height:1.65; margin:0 0 8px; }
.archiv-fehlt:last-child { margin-bottom:0; }

.archiv-herkunft { font-size:14.5px; color:var(--muted); border-top:1px solid var(--border);
  padding-top:16px; margin-bottom:22px; }
.archiv-nav { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-bottom:22px; }
.archiv-nav-link { display:flex; align-items:center; gap:10px; min-height:44px; padding:12px 14px;
  background:var(--surface2); border:1px solid var(--border); border-radius:var(--radius);
  text-decoration:none; color:var(--ink); font-size:15px; line-height:1.4; }
.archiv-nav-link:hover { background:var(--surface); text-decoration:none; }
.archiv-nav-link:focus-visible { outline:3px solid var(--focus); outline-offset:2px; }
.archiv-nav-link small { display:block; font-family:var(--f-cond); font-weight:700; font-size:12.5px;
  letter-spacing:.06em; text-transform:uppercase; color:var(--muted); }
.archiv-nav-ic { font-size:22px; color:var(--primary-ink); flex:none; }
.archiv-nav-nach { grid-column:2; text-align:right; justify-content:flex-end; }
.archiv-zurueck { margin:0; }

.hero-mini .eyebrow a { color:inherit; }

@media (max-width:600px) {
  .archiv-nav { grid-template-columns:1fr; }
  .archiv-nav-nach { grid-column:1; }
}
@media (prefers-reduced-motion: reduce) {
  .archiv-caret { transition:none; }
}

@media (max-width:600px) {
  .nav-right .nav-social { display:none; }
  .nav-social-menue { display:block; padding:10px 0 4px; }
}

/* Zwischen Handy-Menue und breitem Schirm passen Hauptmenue und Kanaele nicht
   nebeneinander, die Leiste braeche um. Dort stehen die Kanaele nur in der
   Fusszeile. */
@media (min-width:901px) and (max-width:1080px) {
  .nav-right .nav-social { display:none; }
}

/* ---------- Flyer einer Abteilung (Shortcode flyer) ----------
   Vorschau links, Kontaktdaten rechts; auf dem Handy untereinander.
   Die Vorschau zeigt den ganzen Flyer, nicht den beschnittenen Ausschnitt
   der Fotogalerie. */
.flyer-block { display:grid; grid-template-columns:minmax(0,240px) 1fr; gap:28px; align-items:start; margin-top:8px; }
.flyer-block .flyer-bild { display:block; margin:0; }
.flyer-block .flyer-bild img { height:auto; object-fit:contain; display:block; }
.flyer-block .flyer-bild a { border:none; border-radius:8px; box-shadow:0 6px 20px rgba(0,0,0,.18); }
.flyer-block .flyer-bild a:hover img { transform:none; }
.flyer-text > :first-child { margin-top:0; }
@media (max-width:640px) {
  .flyer-block { grid-template-columns:1fr; }
  .flyer-block .flyer-bild { max-width:300px; }
}
.flyer-block .flyer-wa { margin-top:6px; }
.leitung-tel { display:block; margin-top:3px; font-family:var(--f-head); font-weight:600; font-size:17px; }
