/* ==========================================================================
   Schützenverein Beuern 1964 e.V. – Stylesheet
   --------------------------------------------------------------------------
   Aufbau
     1  Farben & Designtokens (Hell-/Dunkelmodus)
     2  Grundlagen / Reset
     3  Bausteine (Buttons, Karten, Chips, Platzhalter)
     4  Kopfzeile & Navigation (inkl. Mobil-Menü)
     5  Startseite
     6  Unterseiten
     7  Termine & News (werden aus daten/*.txt erzeugt)
     8  Kontakt & Formular
     9  Fußzeile
    10  Responsive Feinschliff
   ========================================================================== */


/* == 1  Farben & Designtokens ============================================== */

:root {
  /* Dunkelmodus ist die Voreinstellung */
  --bg:       #000000;
  --panel:    #0c0c0d;
  --card:     #1a1a1c;
  --fg:       #f5f5f7;
  --dim:      rgba(245, 245, 247, .62);
  --line:     rgba(255, 255, 255, .11);
  --accent:   #4c9a76;   /* Vereinsfarbe – hier zentral änderbar */
  --accentFg: #08150f;
  --navbg:    rgba(22, 22, 23, .82);
  --stripeA:  #1a1a1c;
  --stripeB:  #232326;
  --chip:     rgba(255, 255, 255, .07);
  --shadow:   0 18px 40px rgba(0, 0, 0, .45);

  --maxw: 1120px;
  --gutter: 22px;
  --radius: 18px;
}

html[data-theme="light"] {
  --bg:       #ffffff;
  --panel:    #f5f5f7;
  --card:     #ffffff;
  --fg:       #1d1d1f;
  --dim:      #6e6e73;
  --line:     rgba(0, 0, 0, .11);
  --accent:   #2f6b4f;   /* dunklere Variante für lesbaren Kontrast auf Weiß */
  --accentFg: #ffffff;
  --navbg:    rgba(255, 255, 255, .84);
  --stripeA:  #e7e7e9;
  --stripeB:  #f1f1f3;
  --chip:     rgba(0, 0, 0, .05);
  --shadow:   0 18px 40px rgba(0, 0, 0, .10);
}


/* == 2  Grundlagen ========================================================= */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue",
               Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}

h1, h2, h3, h4, p, ul, ol, li, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  width: 100%;
}

/* Nur für Screenreader */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Sprungmarke für Tastatur-Nutzer */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--accent); color: var(--accentFg);
  padding: 10px 18px; border-radius: 10px; font-size: 14px; font-weight: 600;
  transition: top .18s ease;
}
.skip-link:focus { top: 12px; color: var(--accentFg); }

@keyframes svbUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

.page { display: none; }
.page.is-active { display: block; animation: svbUp .4s ease both; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .page.is-active { animation: none; }
  * { transition-duration: .01ms !important; }
}


/* == 3  Bausteine ========================================================== */

.eyebrow {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.h-page {
  margin-top: 12px;
  font-size: clamp(30px, 5vw, 54px);
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1.05;
  max-width: 760px;
  text-wrap: balance;
}
.h-section {
  font-size: clamp(24px, 3.4vw, 36px);
  font-weight: 600;
  letter-spacing: -.022em;
  text-wrap: balance;
}
.h-sub { font-size: clamp(22px, 3vw, 30px); font-weight: 600; letter-spacing: -.02em; }

.lead {
  margin-top: 20px;
  max-width: 660px;
  font-size: clamp(15.5px, 1.8vw, 19px);
  line-height: 1.55;
  color: var(--dim);
  text-wrap: pretty;
}

.link-more { font-size: 14px; color: var(--accent); white-space: nowrap; }
.link-more:hover { text-decoration: underline; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 980px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  border: 0;
  cursor: pointer;
  transition: transform .15s ease, opacity .15s ease, background .15s ease;
  min-height: 44px;                /* bequeme Tippfläche auf dem Smartphone */
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--accent); color: var(--accentFg); }
.btn-primary:hover { color: var(--accentFg); opacity: .9; }

.btn-ghost {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--line);
  font-weight: 500;
}
.btn-ghost:hover { color: var(--fg); border-color: var(--accent); }

.btn-sm { padding: 7px 15px; font-size: 12.5px; min-height: 36px; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.chip {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 980px;
  background: var(--chip);
  color: var(--dim);
  white-space: nowrap;
}
.chip-accent { background: var(--accent); color: var(--accentFg); }

/* Platzhalter-Muster: liegt hinter jedem Bild.
   Fehlt die Bilddatei, bleibt das Muster sichtbar. */
.ph {
  position: relative;
  background: repeating-linear-gradient(135deg,
              var(--stripeA) 0 12px, var(--stripeB) 12px 24px);
  overflow: hidden;
}
/* Standardfall: Das Bild bestimmt die Höhe des Feldes. Dadurch wird ein
   Foto in jedem Seitenverhältnis vollständig gezeigt - es muss weder
   zugeschnitten noch auf ein bestimmtes Format gebracht werden. */
.ph > img {
  display: block;
  width: 100%;
  height: auto;
}

/* Sobald ein Bild eingehängt ist, weicht das Streifenmuster einer ruhigen
   Fläche - sonst schimmert es an den Rändern eingepasster Bilder durch. */
.ph.has-img { background: var(--stripeA); }

/* Variante .ph--box: festes Bildformat für gleich hohe Kacheln. Das Bild
   wird vollständig eingepasst (contain), also nicht beschnitten - nur
   eventuell mit Rand, wenn sein Seitenverhältnis abweicht. */
.ph--box { aspect-ratio: 16 / 9; }
.ph--box > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Ausnahme: .ph--fill füllt einen fest vorgegebenen Rahmen aus und
   beschneidet dabei. Wird nur für die quadratischen Vorstands-Portraits
   verwendet, damit dieses Raster gleichmäßig bleibt. */
.ph--fill > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Zurück-Link am Kopf jeder Unterseite */
.backlink {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  color: var(--dim);
  padding: 8px 14px 8px 11px;
  margin-bottom: 26px;
  border: 1px solid var(--line);
  border-radius: 980px;
  background: var(--chip);
  transition: color .15s ease, border-color .15s ease;
  min-height: 40px;
}
.backlink:hover { color: var(--fg); border-color: var(--accent); }
.backlink span[aria-hidden] { font-size: 16px; line-height: 1; }

.subpage { padding: 40px 0 80px; }
.subpage--narrow { max-width: 800px; }
.subpage--mid { max-width: 860px; }

.status {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--dim);
  background: var(--chip);
  border: 1px dashed var(--line);
  border-radius: 14px;
  padding: 18px 20px;
}


/* == 4  Kopfzeile & Navigation ============================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navbg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand:hover { color: inherit; }
.brand-dot {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--accent);
  display: block;
  flex: none;
}
.brand-name {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -.01em;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  gap: 20px;
  font-size: 13px;
  color: var(--dim);
  flex: 1 1 auto;
  justify-content: center;
  flex-wrap: wrap;
}
.main-nav a { white-space: nowrap; padding: 4px 0; }
.main-nav a:hover { color: var(--fg); }
.main-nav a.is-current { color: var(--fg); font-weight: 600; }
.main-nav .nav-cta-mobile { display: none; }   /* nur im Mobilmenü sichtbar */

.nav-actions { display: flex; align-items: center; gap: 10px; flex: none; }

.theme-toggle {
  border: 1px solid var(--line);
  background: var(--chip);
  color: var(--fg);
  width: 34px; height: 34px;
  border-radius: 50%;
  font-size: 14px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  padding: 0;
  flex: none;
}
.theme-toggle:hover { border-color: var(--accent); }

.nav-burger {
  display: none;
  border: 1px solid var(--line);
  background: var(--chip);
  color: var(--fg);
  width: 38px; height: 38px;
  border-radius: 11px;
  cursor: pointer;
  padding: 0;
  position: relative;
  flex: none;
}
.nav-burger span {
  position: absolute;
  left: 50%;
  width: 17px; height: 1.6px;
  background: currentColor;
  border-radius: 2px;
  transform: translateX(-50%);
  transition: transform .22s ease, opacity .18s ease;
}
.nav-burger span:nth-child(1) { top: 13px; }
.nav-burger span:nth-child(2) { top: 18.2px; }
.nav-burger span:nth-child(3) { top: 23.4px; }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateX(-50%) translateY(5.2px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateX(-50%) translateY(-5.2px) rotate(-45deg); }


/* == 5  Startseite ======================================================== */

.hero {
  position: relative;
  min-height: min(78vh, 620px);
  background: repeating-linear-gradient(135deg,
              var(--stripeA) 0 14px, var(--stripeB) 14px 28px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}
/* Eigenes Hero-Foto? Datei nach bilder/hero.jpg legen und die
   nächsten drei Zeilen einkommentieren. */
/*
.hero { background-image: url("../bilder/hero.jpg"); background-size: cover; background-position: center; }
*/
/* Der Hero trägt immer weiße Schrift – er bleibt deshalb auch im
   Hellmodus dunkel. */
html[data-theme="light"] .hero {
  background: repeating-linear-gradient(135deg, #26262a 0 14px, #303036 14px 28px);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
              rgba(0,0,0,.60) 0%, rgba(0,0,0,.20) 38%, rgba(0,0,0,.92) 100%);
}
.hero-inner {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  width: 100%;
  padding: 90px var(--gutter) 62px;
}
.hero h1 {
  font-size: clamp(34px, 6.4vw, 68px);
  line-height: 1.02;
  letter-spacing: -.03em;
  font-weight: 600;
  color: #f5f5f7;
  max-width: 660px;
  text-wrap: balance;
}
.hero p {
  margin-top: 18px;
  max-width: 520px;
  font-size: clamp(15.5px, 1.7vw, 19px);
  line-height: 1.45;
  color: rgba(245, 245, 247, .8);
  text-wrap: pretty;
}
.hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.hero .btn-ghost { border-color: rgba(255,255,255,.3); color: #f5f5f7; }
.hero .btn-ghost:hover { color: #ffffff; border-color: #ffffff; }

/* Das Kennzahlen-Band sitzt in derselben zentrierten Spalte wie der
   restliche Seiteninhalt: "1964" beginnt dadurch exakt auf der Linie der
   Hero-Überschrift und aller Abschnitts-Überschriften. Der seitliche
   Innenabstand ist an --gutter gekoppelt, damit das auf jeder
   Bildschirmbreite stimmt. */
.stats {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 1px;
  background: var(--line);
}
.stats > div { background: var(--bg); padding: 26px var(--gutter); }
.stat-num {
  font-size: clamp(26px, 4.6vw, 34px);
  font-weight: 600;
  letter-spacing: -.025em;
}
.stat-num.accent { color: var(--accent); }
.stat-label { font-size: 12px; color: var(--dim); margin-top: 4px; }

.band {
  background: var(--panel);
  border-top: 1px solid var(--line);
  padding: 64px 0 70px;
}
.band-plain { border-top: 1px solid var(--line); padding: 64px 0 70px; }

/* Gleiche Breite durch 1fr-Spalten, gleiche Höhe durch
   grid-auto-rows: 1fr + stretch. Die Bildfelder haben über .ph--box
   ein festes 16:9-Format, sind also ebenfalls überall gleich groß. */
.grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  grid-auto-rows: 1fr;
  align-items: stretch;
  gap: 18px;
}
.disc-card-mini { display: flex; flex-direction: column; }
.disc-card-mini .ph { flex: none; }
.disc-card-mini .body { padding: 18px 20px 22px; flex: 1 1 auto; }
.disc-card-mini .title { font-size: 18px; font-weight: 600; }
.disc-card-mini .meta { font-size: 13.5px; color: var(--dim); margin-top: 5px; }

.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 44px;
}

.cta-band {
  border-top: 1px solid var(--line);
  background: var(--panel);
  padding: 64px 0 70px;
  text-align: center;
}
.cta-band p { margin: 16px auto 0; max-width: 520px; color: var(--dim); font-size: 16px; line-height: 1.55; }
.cta-band .btn { margin-top: 26px; }


/* == 6  Unterseiten ======================================================= */

.hero-image {
  margin-top: 44px;
  border-radius: 22px;
  height: clamp(180px, 32vw, 340px);
}

.info-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
}
.info-grid h3 { font-size: 19px; font-weight: 600; }
.info-grid p { margin-top: 8px; font-size: 15px; line-height: 1.6; color: var(--dim); }

.block-sep { margin-top: 64px; border-top: 1px solid var(--line); padding-top: 44px; }

/* Vorstand */
.board-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 20px;
}
.board-grid .status { grid-column: 1 / -1; }   /* Meldung über volle Breite */
.board-card .ph { aspect-ratio: 1 / 1; }
.board-card .body { padding: 16px 18px 20px; }
.board-name { font-size: 16px; font-weight: 600; }
.board-role { font-size: 13px; color: var(--dim); margin-top: 3px; }
.board-role.lead-role { color: var(--accent); }

/* Disziplinen */
.disc-grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-auto-rows: 1fr;          /* jede Zeile gleich hoch */
  align-items: stretch;         /* Karten füllen die Zeilenhöhe */
  gap: 22px;
}
.disc-card {
  border-radius: 20px;
  display: flex;
  flex-direction: column;
}
.disc-card.is-highlight { outline: 1px solid var(--accent); outline-offset: -1px; }
.disc-card .ph { flex: none; }
.disc-card .body { padding: 22px 24px 26px; flex: 1 1 auto; }
.disc-card .titlerow { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.disc-card h2 { font-size: 22px; font-weight: 600; }
.disc-card p { margin-top: 10px; font-size: 14.5px; line-height: 1.6; color: var(--dim); }

/* Training */
.schedule {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2px;
  background: var(--line);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.schedule > div { background: var(--card); padding: 28px 26px 32px; }
.sched-day { font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--accent); }
.sched-time { font-size: clamp(24px, 4vw, 30px); font-weight: 600; letter-spacing: -.02em; margin-top: 10px; }
.sched-note { font-size: 14.5px; color: var(--dim); margin-top: 6px; line-height: 1.55; }

.cols-2 {
  margin-top: 52px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 34px;
}
.cols-2 h2 { font-size: 22px; font-weight: 600; }

.list-split { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; font-size: 15px; line-height: 1.5; }
.list-split li { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.list-split li:last-child { border-bottom: 0; padding-bottom: 0; }
.list-split span:last-child { color: var(--dim); white-space: nowrap; }

.steps { margin-top: 14px; display: flex; flex-direction: column; gap: 14px; font-size: 15px; line-height: 1.55; color: var(--dim); }
.steps li { display: flex; gap: 14px; }
.steps .num {
  flex: none; width: 24px; height: 24px; border-radius: 50%;
  background: var(--chip); color: var(--fg);
  font-size: 12.5px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.steps strong { color: var(--fg); font-weight: 600; }

.note { margin-top: 16px; font-size: 13.5px; color: var(--dim); line-height: 1.6; }

/* Rechtstexte */
.legal { margin-top: 36px; display: flex; flex-direction: column; gap: 30px; font-size: 15.5px; line-height: 1.7; }
.legal h2 { font-size: 18px; font-weight: 600; }
.legal p { margin-top: 8px; color: var(--dim); }
.legal a { color: var(--accent); }


/* == 7  Termine & News (Aufklapp-Kasten: .klapp-box) ==================================================== */

.termin-list { margin-top: 36px; display: flex; flex-direction: column; gap: 12px; }

.termin-card {
  display: flex;
  gap: 22px;
  align-items: center;
  flex-wrap: wrap;
  padding: 22px 24px;
  border-radius: var(--radius);
}
.termin-card.is-past { opacity: .55; }
.termin-date { text-align: center; min-width: 58px; flex: none; }
.termin-month { font-size: 11px; font-weight: 700; letter-spacing: .07em; color: var(--accent); }
.termin-day { font-size: 30px; font-weight: 600; line-height: 1.05; }
.termin-body { flex: 1 1 220px; min-width: 0; }
.termin-title { font-size: 18px; font-weight: 600; text-wrap: pretty; }
.termin-meta { font-size: 13.5px; color: var(--dim); margin-top: 4px; line-height: 1.5; }

.klapp-box { margin-top: 40px; }
.klapp-box > summary {
  cursor: pointer;
  font-size: 14px;
  color: var(--dim);
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.klapp-box > summary::-webkit-details-marker { display: none; }
.klapp-box > summary::before { content: "▸"; font-size: 11px; transition: transform .18s ease; }
.klapp-box[open] > summary::before { transform: rotate(90deg); }
.klapp-box > summary:hover { color: var(--fg); border-color: var(--accent); }
.klapp-box .termin-list,
.klapp-box .news-grid { margin-top: 14px; }

/* Termin-Kurzliste auf der Startseite */
.termin-mini-list { display: flex; flex-direction: column; gap: 12px; }
.termin-mini {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 22px;
  display: flex;
  gap: 18px;
  align-items: center;
}
.termin-mini .m-date { text-align: center; min-width: 50px; flex: none; }
.termin-mini .m-month { font-size: 11px; font-weight: 700; letter-spacing: .07em; color: var(--accent); }
.termin-mini .m-day { font-size: 27px; font-weight: 600; line-height: 1.1; }
.termin-mini .m-title { font-size: 16px; font-weight: 600; text-wrap: pretty; }
.termin-mini .m-meta { font-size: 13px; color: var(--dim); margin-top: 3px; line-height: 1.45; }

/* News */
.news-lead {
  margin-top: 40px;
  border-radius: 22px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.news-lead .ph { align-self: start; }
.news-lead .ph:empty { min-height: 240px; }
.news-lead .body { padding: 30px 30px 34px; }
.news-lead .kicker { font-size: 12.5px; color: var(--accent); font-weight: 600; }
.news-lead h2 {
  margin-top: 10px;
  font-size: clamp(21px, 2.6vw, 28px);
  font-weight: 600;
  letter-spacing: -.02em;
  text-wrap: pretty;
}
.news-lead .body { display: flex; flex-direction: column; min-height: 0; }
/* Der Text der Leitmeldung wird begrenzt, damit ihn keine Länge in die
   Höhe treibt. Ist er länger, führt "mehr" ins Fenster. */
.news-lead p {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--dim);
  text-wrap: pretty;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-lead .mehr-btn { margin-top: 14px; padding-top: 0; }

/* Alle Kacheln sind gleich hoch: grid-auto-rows: 1fr gibt jeder Zeile
   dieselbe Höhe, align-items: stretch zieht die Karten darauf. */
.news-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  grid-auto-rows: 1fr;
  align-items: stretch;
  gap: 20px;
}
.news-card {
  border-radius: 20px;
  display: flex;
  flex-direction: column;
}
.news-card .ph { flex: none; }
.news-card .body {
  padding: 20px 22px 22px;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.news-card .kicker { font-size: 12px; color: var(--dim); }
.news-card h3 {
  margin-top: 6px;
  font-size: 18px;
  font-weight: 600;
  text-wrap: pretty;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card p {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--dim);
  display: -webkit-box;
  -webkit-line-clamp: 3;        /* längerer Text wird über "mehr" geöffnet */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* "mehr" sitzt immer am unteren Rand der Kachel */
.mehr-btn {
  display: none;
  margin-top: auto;
  padding-top: 12px;
  align-self: flex-start;
  background: none;
  border: 0;
  color: var(--accent);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.mehr-btn.is-visible { display: inline-block; }
.mehr-btn:hover { text-decoration: underline; }

/* News-Kurzliste auf der Startseite */
.news-mini-list { display: flex; flex-direction: column; gap: 14px; }
.news-mini { border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.news-mini:last-child { border-bottom: 0; padding-bottom: 0; }
.news-mini .kicker { font-size: 12px; color: var(--dim); }
.news-mini .title { font-size: 17px; font-weight: 600; margin-top: 4px; text-wrap: pretty; }
a.news-mini:hover .title { color: var(--accent); }


/* == 8  Kontakt & Formular ================================================ */

.contact-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 32px;
  align-items: start;
}
.contact-card { border-radius: 20px; padding: 28px 28px 32px; }
.contact-card h2 { font-size: 20px; font-weight: 600; }
.contact-block { margin-top: 22px; font-size: 15px; line-height: 1.65; }
.contact-block:first-of-type { margin-top: 20px; }
.contact-block .label { font-weight: 600; }
.contact-block .value { color: var(--dim); margin-top: 4px; }
.contact-card a { color: var(--accent); word-break: break-word; }
.map-ph { margin-top: 24px; border-radius: 14px; height: 150px; }

.form { margin-top: 20px; display: flex; flex-direction: column; gap: 14px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--dim); }
.form input,
.form textarea {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 12px 13px;
  color: var(--fg);
  font-size: 16px;              /* 16px verhindert das Zoomen auf iPhones */
  font-family: inherit;
  width: 100%;
}
.form textarea { resize: vertical; min-height: 120px; }
.form input:focus, .form textarea:focus { border-color: var(--accent); outline: none; }
.form .hint { font-size: 12px; line-height: 1.6; color: var(--dim); }
.form .hint a { color: var(--accent); }
.form-intro { margin-top: 8px; font-size: 13.5px; line-height: 1.6; color: var(--dim); }


/* == 9  Fußzeile ========================================================== */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--panel);
  padding: 44px 0 40px;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: space-between;
}
.footer-brand { min-width: 220px; }
.footer-brand .row { display: flex; align-items: center; gap: 10px; }
.footer-brand .name { font-size: 14px; font-weight: 600; }
.footer-brand p { margin-top: 12px; font-size: 13.5px; line-height: 1.6; color: var(--dim); }
.footer-brand a { color: var(--accent); word-break: break-word; }

.footer-cols { display: flex; gap: 44px; flex-wrap: wrap; font-size: 13.5px; }
.footer-col { display: flex; flex-direction: column; gap: 9px; }
.footer-col .head {
  font-weight: 600; font-size: 12px;
  letter-spacing: .06em; text-transform: uppercase; color: var(--dim);
}
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--dim);
}


/* == 10  Responsive Feinschliff =========================================== */

/* Tablet – Navigation wird kompakter */
@media (max-width: 980px) {
  .main-nav { gap: 15px; font-size: 12.5px; }
  .two-col { gap: 34px; }
}

/* Smartphone & kleines Tablet – Menü klappt aus */
@media (max-width: 860px) {
  :root { --gutter: 18px; }

  .nav-inner { min-height: 56px; gap: 12px; }
  .brand-name { font-size: 13.5px; }

  .nav-burger { display: block; }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 8px var(--gutter) 16px;
    background: var(--panel);   /* deckend, damit nichts durchscheint */
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    font-size: 16px;
    max-height: calc(100vh - 56px);
    overflow-y: auto;
  }
  .main-nav.is-open { display: flex; }
  .main-nav a {
    padding: 14px 4px;
    border-bottom: 1px solid var(--line);
    color: var(--fg);
  }
  .main-nav a:last-child { border-bottom: 0; }

  /* Der "Probetraining"-Button steckt im Mobilmenü, oben bleibt es ruhig */
  .nav-actions .btn-cta { display: none; }
  .main-nav .nav-cta-mobile {
    display: block;
    margin-top: 10px;
    padding: 13px 4px;
    border: 0;
    border-radius: 980px;
    background: var(--accent);
    color: var(--accentFg);
    font-weight: 600;
    text-align: center;
  }
  .main-nav .nav-cta-mobile:hover { color: var(--accentFg); }

  .hero { min-height: min(72vh, 560px); }
  .hero-inner { padding: 80px var(--gutter) 48px; }
  .hero-actions .btn { flex: 1 1 auto; }

  .band, .band-plain, .cta-band { padding: 48px 0 54px; }
  .subpage { padding: 28px 0 60px; }

  .info-grid, .cols-2 { margin-top: 34px; gap: 24px; }
  .block-sep { margin-top: 46px; padding-top: 34px; }

  .news-lead .body { padding: 24px 22px 28px; }
  .contact-card { padding: 24px 22px 28px; }

  .footer-cols { gap: 30px; }
}

/* Kleine Smartphones */
@media (max-width: 520px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats > div { padding: 20px var(--gutter); }
  .stats > div:last-child { grid-column: 1 / -1; }  /* fünfte Kachel füllt die Zeile */

  .section-head { gap: 10px; }

  .termin-card { gap: 14px; padding: 18px 18px; align-items: flex-start; }
  .termin-date {
    min-width: 0;
    display: flex;
    align-items: baseline;
    gap: 7px;
    text-align: left;
  }
  .termin-day { font-size: 22px; }
  .termin-body { flex: 1 1 100%; }
  .termin-card .chip { margin-top: 2px; }

  .termin-mini { padding: 16px 16px; gap: 14px; }
  .termin-mini .m-day { font-size: 24px; }

  .board-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .board-card .body { padding: 12px 13px 16px; }
  .board-name { font-size: 14.5px; }
  .board-role { font-size: 12px; }

  .schedule > div { padding: 22px 20px 26px; }
  .disc-card .body { padding: 20px 20px 24px; }
  .legal { font-size: 15px; gap: 26px; }
  .footer-cols { gap: 24px; width: 100%; }
  .footer-col { min-width: 46%; }
}

/* Sehr schmale Geräte (ab 320px) */
@media (max-width: 380px) {
  .brand-name { font-size: 12.5px; }
  .board-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
}

/* Große Bildschirme */
@media (min-width: 1400px) {
  :root { --maxw: 1180px; }
}

/* Druckansicht */
@media print {
  .site-header, .site-footer, .backlink, .hero-actions, .nav-burger { display: none !important; }
  .page { display: block !important; }
  body { background: #fff; color: #000; }
}


/* == 11  Modales Fenster für lange News-Texte ============================= */

.modal {
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
  color: var(--fg);
  width: min(680px, calc(100vw - 32px));
  max-height: min(88vh, 900px);
  overflow: hidden;                 /* gescrollt wird nur der Textbereich */
  box-shadow: var(--shadow);
}
.modal::backdrop { background: rgba(0, 0, 0, .62); backdrop-filter: blur(3px); }

.modal-inner {
  display: flex;
  flex-direction: column;
  max-height: inherit;
  position: relative;
}

/* Das Bild bleibt stehen, während der Text scrollt */
.modal-bild {
  flex: none;
  background: var(--stripeA);
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 42vh;
  min-height: 0;
}
.modal-bild img {
  display: block;
  width: 100%;
  max-height: 42vh;
  object-fit: contain;             /* vollständig sichtbar, nie beschnitten */
}
.modal-bild:empty { display: none; }

.modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;                /* nur hier wird gescrollt */
  -webkit-overflow-scrolling: touch;
  padding: 26px 28px 30px;
}
.modal-body .kicker { font-size: 13px; font-weight: 600; color: var(--accent); }
.modal-body h2 {
  margin-top: 10px;
  font-size: clamp(21px, 3vw, 27px);
  font-weight: 600;
  letter-spacing: -.02em;
  text-wrap: pretty;
}
.modal-body p {
  margin-top: 14px;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--dim);
  white-space: pre-line;
  text-wrap: pretty;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--navbg);
  backdrop-filter: blur(8px);
  color: var(--fg);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-close:hover { border-color: var(--accent); color: var(--accent); }

/* Solange das Fenster offen ist, scrollt die Seite dahinter nicht mit */
body.modal-offen { overflow: hidden; }

@media (max-width: 520px) {
  .modal { width: calc(100vw - 20px); max-height: 92vh; border-radius: 16px; }
  .modal-body { padding: 20px 20px 24px; }
  .modal-bild, .modal-bild img { max-height: 34vh; }
}
