/*
Theme Name: Budosport Gelderland
Theme URI: https://budosport-gelderland.com
Author: Budosport Gelderland
Description: Klassisches Theme fuer die Ju-Jutsu-Abteilung Budosport Gelderland im
  TTC Blau-Weiss Geldern-Veert 1950 e. V. Eigenes Designsystem, keine externen
  Abhaengigkeiten: Schriften und Skripte werden vom eigenen Server geliefert,
  es werden keine Inhalte von Google oder anderen Anbietern nachgeladen.
Version: 1.0.0
Requires at least: 6.5
Tested up to: 7.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: budosport-gelderland
Tags: blog, one-column, custom-menu, featured-images, translation-ready
*/

@font-face {
  font-family: "Manrope";
  src: url("assets/fonts/Manrope-VariableFont_wght.woff2") format("woff2-variations");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Vollkorn";
  src: url("assets/fonts/Vollkorn-VariableFont_wght.woff2") format("woff2-variations");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --blue:       #0091C7;
  --blue-dark:  #00719C;
  --blue-soft:  #E6F5FB;
  /* Zweitfarbe für das Kindertraining, abgeleitet von der gelben Matte.
     #A05F00 statt eines helleren Gelbtons, damit Text darauf lesbar bleibt
     (5,2:1 auf Weiß). Das helle Gelb dient nur als Fläche. */
  --amber:      #A05F00;
  --amber-soft: #FDF3E0;
  --ink:        #0F1B24;
  --ink-2:      #1B2C38;
  --text:       #22323D;
  --muted:      #5B6B77;
  --bg:         #FFFFFF;
  --bg-alt:     #F4F7F9;
  --line:       #E1E8ED;
  --radius:     14px;
  --shadow:     0 1px 2px rgba(15,27,36,.06), 0 8px 24px rgba(15,27,36,.06);
  --wrap:       1120px;
  --sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
  --head: "Vollkorn", Georgia, "Times New Roman", serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--blue-dark); }

/* Überschriften in Vollkorn. Serifen brauchen weniger negative Laufweite
   als Groteske – bei -0.02em würden die Buchstaben zusammenkleben. */
h1, h2, h3, h4 {
  font-family: var(--head);
  color: var(--ink);
  line-height: 1.18;
  letter-spacing: -0.008em;
  margin: 0 0 .5em;
  font-weight: 700;
}
h1 { font-size: clamp(2.05rem, 5vw, 3.3rem); line-height: 1.12; }
h2 { font-size: clamp(1.55rem, 3.2vw, 2.2rem); }
h3 { font-size: 1.26rem; line-height: 1.25; }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }

/* Begrenzt die Zeilenlänge, ohne den linken Rand zu verschieben. Anders als
   .narrow (zentriert) bleibt der Textanfang bündig mit Überschriften und
   Kartenrastern derselben Seite – sonst springt der Rand von Abschnitt zu
   Abschnitt. */
.spalte { max-width: 68ch; }

.section { padding: 72px 0; }
.section--alt { background: var(--bg-alt); }

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue-dark);
  margin-bottom: .6em;
}

.lead { font-size: 1.15rem; color: var(--muted); }

.skip {
  position: absolute; left: -9999px;
  background: var(--ink); color: #fff; padding: 10px 16px; z-index: 200;
}
.skip:focus { left: 12px; top: 12px; }

/* ---------- Buttons ---------------------------------------------------- */

/* Zwei Schaltflächen, nicht vier.
   Gleiche Geometrie für alle, unterschieden wird nur über Farbe:
     .btn--primary   gefüllt  – die eine Handlung, die zählt
     .btn--secondary Umriss   – alles andere
   Auf dunklem Grund kehren sich beide um (.on-dark). */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
  cursor: pointer;
}
.btn:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

/* Füllung bewusst --blue-dark statt --blue: Weiß auf #0091C7 erreicht nur 3,6:1
   und verfehlt damit WCAG AA für normalen Text. #00719C liegt bei 5,5:1. */
.btn--primary { background: var(--blue-dark); color: #fff; }
.btn--primary:hover { background: #005A7D; }

.btn--secondary {
  background: transparent;
  color: var(--blue-dark);
  /* #2E9BC0 statt eines helleren Blaus: WCAG 1.4.11 verlangt 3:1 für den
     Umriss von Bedienelementen. Ein zarteres Blau sah besser aus, erreichte
     aber nur 1,5:1 – der Knopf wäre für manche Augen randlos. */
  border-color: #2E9BC0;
}
.btn--secondary:hover { border-color: var(--blue-dark); background: var(--blue-soft); }

/* Auf dunklem Grund */
.on-dark .btn--primary,
.hero .btn--primary,
.band .btn--primary { background: #fff; color: var(--blue-dark); }
.on-dark .btn--primary:hover,
.hero .btn--primary:hover,
.band .btn--primary:hover { background: var(--blue-soft); color: #004D6B; }

.on-dark .btn--secondary,
.hero .btn--secondary,
.band .btn--secondary { color: #fff; border-color: rgba(255,255,255,.55); }
.on-dark .btn--secondary:hover,
.hero .btn--secondary:hover,
.band .btn--secondary:hover { border-color: #fff; background: rgba(255,255,255,.14); }

.btn--sm { padding: 9px 19px; font-size: .93rem; }

/* Altnamen bleiben nutzbar, damit nichts unbemerkt kaputtgeht */
.btn--ghost   { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn--outline { background: transparent; color: var(--blue-dark); border-color: #B9DCEB; }
.btn--outline:hover { border-color: var(--blue-dark); background: var(--blue-soft); }

/* ---------- Header ----------------------------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: 16px;
  min-height: 72px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand img { width: 44px; height: 44px; }
.brand b { display: block; color: var(--ink); font-size: 1.02rem; letter-spacing: -.01em; }
.brand span { display: block; color: var(--muted); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }

.nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav a {
  display: block; padding: 8px 13px; border-radius: 8px;
  color: var(--text); text-decoration: none; font-size: .96rem; font-weight: 500;
}
.nav a:hover { background: var(--bg-alt); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--blue-dark); font-weight: 700; }

/* Der Probetraining-Knopf steckt zweimal im Kopf: einmal als eigenes Element
   für breite Fenster, einmal im Klappmenü für schmale. Auf dem Desktop muss
   der im Menü deshalb verborgen bleiben – sonst steht er doppelt da. */
.nav .btn { display: none; }

.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--line); border-radius: 9px;
  padding: 9px 11px; cursor: pointer; line-height: 0;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 4px 0; border-radius: 2px; }

@media (max-width: 940px) {
  .nav-toggle { display: block; order: 3; }
  .header-cta { display: none; }
  .nav .btn { display: inline-flex; }
  .nav {
    order: 4; flex-basis: 100%; display: none;
    border-top: 1px solid var(--line); padding: 10px 0 16px;
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; gap: 2px; }
  .nav a { padding: 11px 12px; font-size: 1.05rem; }
  .nav .btn { margin-top: 10px; }
}

/* ---------- Hero ------------------------------------------------------- */

.hero {
  background:
    radial-gradient(900px 420px at 78% -10%, rgba(0,145,199,.45), transparent 65%),
    linear-gradient(160deg, var(--ink) 0%, var(--ink-2) 100%);
  color: #fff;
  padding: 84px 0 76px;
}
.hero h1 { color: #fff; max-width: 15ch; }
.hero p { color: rgba(255,255,255,.82); font-size: 1.18rem; max-width: 52ch; }
.hero .eyebrow { color: #6FD0F2; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.hero-facts {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px;
  list-style: none; padding: 0;
}
.hero-facts li {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: .92rem;
  color: rgba(255,255,255,.9);
}

/* ---------- Hero mit Foto ---------------------------------------------- */

/* Der Verlauf liegt bei mindestens 82 % Deckkraft über dem Bild. Damit hat
   weißer Text auch über den hellen Stellen des Fotos (Hallenwand, gelbe Matte)
   sicher mehr als 4,5:1 Kontrast – unabhängig davon, welches Foto hier liegt. */
.hero--photo {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  padding: 104px 0 96px;
  min-height: 76vh;
  display: flex;
  align-items: center;
}
.hero--photo::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("assets/img/hero-wurf-2025.jpg");
  background-size: cover;
  background-position: 58% 45%;
}
.hero--photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg,
    rgba(15,27,36,.96) 0%,
    rgba(15,27,36,.90) 34%,
    rgba(15,27,36,.62) 66%,
    rgba(15,27,36,.40) 100%);
}
.hero--photo > .wrap { position: relative; z-index: 2; }

@media (max-width: 780px) {
  .hero--photo { min-height: 0; padding: 72px 0 60px; }
  .hero--photo::before { background-position: 58% 28%; }
  /* Auf kleinen Geräten steht der Text über der ganzen Breite –
     der Verlauf muss dort von unten kommen, nicht von der Seite. */
  .hero--photo::after {
    background: linear-gradient(180deg,
      rgba(15,27,36,.86) 0%,
      rgba(15,27,36,.92) 55%,
      rgba(15,27,36,.96) 100%);
  }
}

/* Gezeichnete Anfahrtskarte. Als eingebettetes SVG, damit sie die Vereinsschrift
   und die Farbvariablen nutzt – und weil kein Drittanbieter beteiligt sein soll. */
.karte { margin: 0; }
.karte svg {
  width: 100%; height: auto; display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.karte figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: .88rem;
}
/* Die Karte darf etwas mehr Platz bekommen als der Text daneben */
.split--karte { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
@media (max-width: 820px) { .split--karte { grid-template-columns: 1fr; } }

/* ---------- Karten mit Bild ------------------------------------------- */

.card--img { padding: 0; overflow: hidden; }
.card--img > img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--line);
}
.card--img .card-body {
  padding: 24px 26px 26px;
  display: flex; flex-direction: column; flex: 1;
}

/* Unterzeile direkt unter der Überschrift – z. B. der Altershinweis.
   Steht bewusst NACH der Überschrift, nicht als Etikett darüber:
   die Überschrift soll die Information tragen, nicht das Etikett. */
.card-sub {
  margin: -.45em 0 .9em;
  color: var(--blue-dark);
  font-weight: 600;
  font-size: .95rem;
}

/* Ortsangabe direkt unter dem Trainingsplan – ohne Trennlinie, weil sie
   inhaltlich noch zum Plan gehört und nicht zur Nebeninformation. */
.plan-ort {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: .98rem;
}
.plan-ort strong { color: var(--ink); font-weight: 600; }

/* Nebeninformation: kleiner, ruhiger, mit Trennlinie darüber */
.hint {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .98rem;
}
.hint strong { color: var(--ink); font-weight: 600; }

/* ---------- Page head (Unterseiten) ------------------------------------ */

.page-head {
  background: var(--ink);
  color: #fff;
  padding: 56px 0 52px;
}
.page-head h1 { color: #fff; margin-bottom: .25em; }
.page-head p { color: rgba(255,255,255,.75); margin: 0; max-width: 60ch; }

/* ---------- Karten ----------------------------------------------------- */

.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.card h3 { margin-bottom: .35em; }
.card p { color: var(--muted); margin-bottom: 1.2em; }
.card .card-foot { margin-top: auto; }
.card-tag {
  display: inline-block; background: var(--blue-soft); color: var(--blue-dark);
  font-size: .8rem; font-weight: 700; letter-spacing: .04em;
  padding: 4px 11px; border-radius: 999px; margin-bottom: 14px;
}
.card-time { font-weight: 700; color: var(--ink); font-size: 1.02rem; }

/* Nummerierter Ablauf – die Ziffern tragen die Struktur, deshalb sichtbar
   und in der Akzentfarbe, nicht als graue Aufzählungspunkte. */
.ablauf { list-style: none; counter-reset: schritt; margin: 22px 0 0; padding: 0; }
.ablauf li {
  counter-increment: schritt;
  position: relative;
  padding: 0 0 16px 46px;
  margin: 0;
  color: var(--muted);
}
.ablauf li::before {
  content: counter(schritt);
  position: absolute; left: 0; top: 1px;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--blue-soft); color: var(--blue-dark);
  font-family: var(--sans); font-weight: 700; font-size: .92rem;
  display: flex; align-items: center; justify-content: center;
}
.ablauf li:last-child { padding-bottom: 0; }
.ablauf strong { color: var(--ink); font-weight: 600; }

/* ---------- Zweiteiler: Bild und Text -------------------------------- */

.split {
  display: grid;
  gap: 48px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
}
.split-img { margin: 0; border-radius: var(--radius); overflow: hidden; }
.split-img img { width: 100%; height: 100%; object-fit: cover; display: block; aspect-ratio: 3 / 2; }

/* Hochformat für die Gruppenabschnitte: Wurf- und Standszenen brauchen vertikal
   Platz, sonst schneidet das Querformat die Köpfe ab. */
.split--hoch .split-img img { aspect-ratio: 3 / 4; }
.split--hoch { align-items: stretch; }
.split--hoch .split-text { display: flex; flex-direction: column; justify-content: center; }
@media (max-width: 820px) { .split--hoch .split-img img { aspect-ratio: 4 / 3; } }
.split-text > :last-child { margin-bottom: 0; }

@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; gap: 30px; }
  /* Bild nach unten: Auf dem Handy soll die Überschrift zuerst kommen. */
  .split-img { order: 2; }
  .split-text { order: 1; }
}

/* Merkmalsliste – Begriff und Erklärung, ohne Aufzählungspunkte */
.facts { margin: 28px 0; display: grid; gap: 0; }
.facts dt {
  font-family: var(--head);
  font-weight: 700;
  color: var(--ink);
  font-size: 1.06rem;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.facts dt:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.facts dd { margin: 3px 0 0; color: var(--muted); font-size: .98rem; }

/* ---------- Trainingszeiten ------------------------------------------- */

.schedule { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.schedule li {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px;
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--blue);
  border-radius: 10px; padding: 16px 20px;
}
.schedule .day { font-weight: 700; color: var(--ink); min-width: 110px; }
.schedule .time { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--blue-dark); min-width: 150px; }
.schedule .who { color: var(--muted); font-size: .95rem; }

/* ---------- Tabelle ---------------------------------------------------- */

.table { width: 100%; border-collapse: collapse; margin: 0 0 1.5em; }
.table th, .table td { text-align: left; padding: 13px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { color: var(--ink); font-weight: 700; width: 34%; }
.table tr:last-child td, .table tr:last-child th { border-bottom: 0; }

/* ---------- Trainingsplan mit Gruppenkennung --------------------------- */

.plan { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.plan li {
  display: grid;
  grid-template-columns: 8px 1fr auto;
  align-items: center;
  gap: 0 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.plan .bar { background: var(--blue); align-self: stretch; }
.plan li[data-g="kinder"] .bar { background: var(--amber); }

.plan .cell { padding: 18px 0; }
.plan .cell:last-child { padding-right: 24px; text-align: right; }

.plan .pday {
  font-family: var(--head); font-weight: 700; color: var(--ink);
  font-size: 1.22rem; line-height: 1.2;
}
.plan .pgroup {
  display: inline-block; margin-top: 5px;
  font-size: .82rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: var(--blue-dark); background: var(--blue-soft);
  padding: 3px 10px; border-radius: 999px;
}
.plan li[data-g="kinder"] .pgroup { color: var(--amber); background: var(--amber-soft); }
.plan .pwho { display: block; margin-top: 7px; color: var(--muted); font-size: .93rem; }

.plan .ptime {
  font-family: var(--sans); font-variant-numeric: tabular-nums;
  font-weight: 700; color: var(--ink); font-size: 1.12rem; white-space: nowrap;
}

@media (max-width: 620px) {
  .plan li { grid-template-columns: 8px 1fr; }
  .plan .cell:last-child { grid-column: 2; text-align: left; padding: 0 0 18px; }
  .plan .cell:nth-child(2) { padding-bottom: 8px; }
}

/* ---------- Neuigkeiten als Rotator ------------------------------------ */

.rotator { margin-top: 26px; }

/* Alle Meldungen liegen in derselben Rasterzelle. Dadurch ist der Kasten
   so hoch wie die längste – beim Wechsel springt nichts. */
.rot-slides { display: grid; margin: 0; padding: 0; list-style: none; }
.rot-slides > li {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transition: opacity .7s ease;
}
.rot-slides > li.is-active { opacity: 1; visibility: visible; }

.rot-slides a {
  display: grid;
  grid-template-columns: minmax(0, 42%) minmax(0, 1fr);
  gap: 0;
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 100%;
}
.rot-slides img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 240px; }
.rot-text { padding: 30px 34px; display: flex; flex-direction: column; justify-content: center; }
.rot-text time { color: var(--muted); font-size: .88rem; font-variant-numeric: tabular-nums;
                 font-family: var(--sans); }
.rot-text h3 { margin: 8px 0 10px; font-size: 1.34rem; line-height: 1.25; }
.rot-text p { color: var(--muted); margin: 0 0 16px; }
.rot-more { color: var(--blue-dark); font-weight: 600; font-size: .95rem; }
.rot-slides a:hover .rot-more { text-decoration: underline; }

/* Steuerung: Punkte plus Pause */
.rot-bar { display: flex; align-items: center; gap: 14px; margin-top: 16px; }
.rot-dots { display: flex; gap: 8px; }
.rot-dots button {
  width: 30px; height: 5px; border: 0; border-radius: 3px; padding: 0;
  background: var(--line); cursor: pointer; transition: background .2s;
}
.rot-dots button[aria-current="true"] { background: var(--blue-dark); }
.rot-dots button:focus-visible,
.rot-pause:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.rot-pause {
  margin-left: auto; background: none; border: 0; padding: 4px 6px;
  color: var(--muted); font: inherit; font-size: .88rem; cursor: pointer;
  font-family: var(--sans);
}
.rot-pause:hover { color: var(--ink); }

@media (max-width: 720px) {
  .rot-slides a { grid-template-columns: 1fr; }
  .rot-slides img { min-height: 0; aspect-ratio: 16 / 9; }
  .rot-text { padding: 22px 24px 26px; }
  .rot-text h3 { font-size: 1.2rem; }
}

/* ---------- News ------------------------------------------------------- */

/* Variante mit Vorschaubild */
.news--img { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
             list-style: none; margin: 26px 0 0; padding: 0; }
.news--img li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
                overflow: hidden; box-shadow: var(--shadow); }
.news--img a { display: block; text-decoration: none; height: 100%; }
.news--img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block;
                 transition: transform .4s cubic-bezier(.2,.7,.3,1); }
.news--img li:hover img { transform: scale(1.04); }
.news--img .n-body { display: block; padding: 18px 20px 22px; }
.news--img time { display: block; color: var(--muted); font-size: .85rem;
                  font-variant-numeric: tabular-nums; margin-bottom: 6px; font-family: var(--sans); }
.news--img .news-title { display: block; font-family: var(--head); font-weight: 700;
                         font-size: 1.1rem; line-height: 1.3; color: var(--ink); }
.news--img li:hover .news-title { color: var(--blue-dark); }
/* Karte ohne Beitragsbild.
   Statt eines Lochs im Raster ein ruhiges Feld mit dem Vereinszeichen.
   Die Hoehe entspricht der eines 4:3-Bildes, damit die Karten gleich hoch
   bleiben. */
.news--img .n-platzhalter {
  display: block; aspect-ratio: 4 / 3;
  background-color: var(--blue-soft);
  background-image: url("assets/img/logo.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 72px auto;
  border-bottom: 1px solid var(--line);
}

.news--img .n-text { display: block; margin-top: 8px; color: var(--muted);
                     font-size: .95rem; line-height: 1.6; }

.news { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.news li { border-bottom: 1px solid var(--line); }
.news a {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px;
  padding: 18px 4px; text-decoration: none;
}
.news a:hover .news-title { color: var(--blue-dark); }
.news time { color: var(--muted); font-size: .88rem; font-variant-numeric: tabular-nums; min-width: 120px; }
.news-title { color: var(--ink); font-weight: 600; font-size: 1.06rem; }

/* ---------- CTA-Band --------------------------------------------------- */

.band {
  background: linear-gradient(135deg, #00567A, var(--blue-dark));
  color: #fff; border-radius: var(--radius);
  padding: 44px 40px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 24px;
  justify-content: space-between;
}
.band h2 { color: #fff; margin: 0 0 .2em; }
.band p { color: rgba(255,255,255,.88); margin: 0; max-width: 46ch; }
.band .btn--primary { background: #fff; color: var(--blue-dark); }
.band .btn--primary:hover { background: var(--ink); color: #fff; }

/* Variante mit Foto darunter. Deckkraft wieder mindestens 82 %, damit der
   Text unabhängig vom Bildinhalt sicher lesbar bleibt. */
.band--photo {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  padding: 56px 44px;
}
.band--photo::before {
  content: ""; position: absolute; inset: 0;
  background: url("assets/img/band-gruppe-jubel.jpg") center 30% / cover no-repeat;
}
.band--photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg,
    rgba(0,73,101,.95) 0%, rgba(0,90,125,.88) 45%, rgba(0,113,156,.72) 100%);
}
.band--photo > * { position: relative; z-index: 2; }

/* ---------- Personen --------------------------------------------------- */

.people { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px;
          grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.people li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.people .role { font-size: .78rem; font-weight: 700; letter-spacing: .08em;
                text-transform: uppercase; color: var(--blue-dark); }
.people .name { font-weight: 700; color: var(--ink); font-size: 1.06rem; margin-top: 4px; }
.people .meta { color: var(--muted); font-size: .93rem; margin-top: 4px; }

/* ---------- Personen ---------------------------------------------------- */

/* Ersetzt .people. Der Unterschied: hier steht jede Person genau einmal und
   trägt ihre Rollen als Etiketten. Vorher gab es zwei Listen (Vorstand und
   Trainerstab), in denen dieselben Leute doppelt auftauchten. */
.leute {
  list-style: none; margin: 32px 0 0; padding: 0;
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.leute > li {
  margin: 0; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px;
}

.leute .kopf { display: flex; gap: 16px; align-items: flex-start; }

/* Bewusst klein: das Bild soll die Person zeigen, nicht die Box füllen.
   2:3 wie die Porträts von 2021, damit alle Zuschnitte gleich wirken. */
.leute .portraet {
  flex: 0 0 auto; width: 76px; height: 114px;
  object-fit: cover; border-radius: 10px; display: block;
  background: var(--bg-alt);
}
/* Platzhalter: Initialen auf hellblauem Grund statt grauem Kasten. */
.leute .portraet--leer {
  display: flex; align-items: center; justify-content: center;
  background: var(--blue-soft); color: var(--blue-dark);
  font-family: var(--head); font-size: 1.5rem; font-weight: 600;
}

.leute .name { display: block; font-weight: 700; color: var(--ink);
               font-size: 1.05rem; line-height: 1.3; }
.leute .grad { display: block; color: var(--muted); font-size: .88rem; margin-top: 3px; }
/* Kann bis zu drei Funktionen tragen und läuft dann über mehrere Zeilen –
   deshalb weniger Sperrung und eine ausdrückliche Zeilenhöhe. */
.leute .amt  { display: block; margin-top: 7px;
               font-size: .74rem; font-weight: 700; letter-spacing: .05em;
               line-height: 1.5; text-transform: uppercase; color: var(--blue-dark); }
.leute p { margin: 14px 0 0; color: var(--text); font-size: .95rem; line-height: 1.65; }

/* ---------- Bild mit Bildunterschrift ------------------------------------ */

/* Ein Foto, das etwas erklaert statt zu schmuecken – etwa der Halleneingang
   am Ende der Wegbeschreibung. Deshalb begrenzt und mit Unterschrift. */
.foto-hinweis { margin: 26px 0 0; max-width: 420px; }
.foto-hinweis img {
  width: 100%; height: auto; display: block;
  border-radius: var(--radius); border: 1px solid var(--line);
}
.foto-hinweis figcaption {
  margin-top: 10px; color: var(--muted); font-size: .9rem; line-height: 1.5;
}

/* ---------- Zeitstrahl --------------------------------------------------- */

/* Senkrechte Linie mit Jahreszahlen. Bewusst wenige Stationen: ein Zeitstrahl
   mit zehn Punkten liest sich wie eine Chronik, mit dreien wie ein Argument. */
.zeit { list-style: none; margin: 32px 0 0; padding: 0 0 0 30px; position: relative; }
.zeit::before {
  content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px;
  width: 2px; background: var(--line);
}
.zeit > li { position: relative; padding-bottom: 34px; max-width: 62ch; }
.zeit > li:last-child { padding-bottom: 0; }
.zeit > li::before {
  content: ""; position: absolute; left: -30px; top: 7px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--blue); border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--blue-soft);
}
.zeit .jahr {
  display: block; font-family: var(--head); font-weight: 700;
  font-size: 1.35rem; color: var(--blue-dark); line-height: 1.1;
}
.zeit h3 { margin: 4px 0 6px; font-size: 1.08rem; }
.zeit p  { margin: 0; color: var(--text); }

/* Platzhalter für ein noch fehlendes Bild in voller Breite. */
.bild-fehlt {
  border: 2px dashed #C9D6DF; border-radius: var(--radius);
  background: var(--bg-alt); padding: 46px 24px; text-align: center;
  color: var(--muted);
}
.bild-fehlt strong { display: block; color: var(--ink); margin-bottom: 4px; }

/* ---------- Galerie ---------------------------------------------------- */

.gallery { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.gallery figure { margin: 0; border-radius: 12px; overflow: hidden; background: var(--bg-alt);
                  aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; }
.gallery figure img { width: 100%; height: 100%; object-fit: cover; display: block;
                      transition: transform .3s ease; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery .ph { color: var(--muted); font-size: .85rem; text-align: center; padding: 12px; }

/* ---------- Galerie, unregelmäßiges Raster ----------------------------- */

/* Statt gleich großer Kacheln bekommen einzelne Bilder mehr Platz.
   Grundeinheit ist eine Zeile von 150 px; jedes Bild belegt zwei davon,
   Ausnahmen sind unten markiert. */
.gallery--free {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  grid-auto-rows: 150px;
  gap: 12px;
}
.gallery--free figure {
  margin: 0; border-radius: 12px; overflow: hidden;
  background: var(--bg-alt);
  grid-row: span 2;
  cursor: zoom-in;
  position: relative;
}
.gallery--free figure img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .4s cubic-bezier(.2,.7,.3,1);
}
.gallery--free figure:hover img,
.gallery--free figure:focus-visible img { transform: scale(1.05); }
.gallery--free figure:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

/* Lupe beim Überfahren */
.gallery--free figure::after {
  content: "";
  position: absolute; right: 12px; bottom: 12px;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(15,27,36,.72) center/16px 16px no-repeat;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round'><circle cx='10.5' cy='10.5' r='6.5'/><path d='M15.5 15.5 21 21'/></svg>");
  opacity: 0; transition: opacity .2s;
}
.gallery--free figure:hover::after,
.gallery--free figure:focus-visible::after { opacity: 1; }

/* Betonte Bilder */
.gallery--free .g-wide  { grid-column: span 2; }
.gallery--free .g-tall  { grid-row: span 3; }
.gallery--free .g-big   { grid-column: span 2; grid-row: span 3; }

@media (max-width: 640px) {
  /* Auf dem Handy ist jede Sonderbehandlung Unsinn – eine Spalte, ruhig. */
  .gallery--free { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .gallery--free figure { grid-row: auto !important; grid-column: auto !important;
                          aspect-ratio: 4 / 3; }
}

/* ---------- Lightbox --------------------------------------------------- */



@media (max-width: 640px) {
  .lb { padding: 8vh 10px 12vh; }
  .lb-prev { left: 12px; top: auto; bottom: 22px; transform: none; }
  .lb-next { right: 12px; top: auto; bottom: 22px; transform: none; }
}

/* ---------- Hinweis-Box ------------------------------------------------ */

.note {
  background: var(--blue-soft); border-left: 4px solid var(--blue);
  border-radius: 8px; padding: 18px 22px; margin: 24px 0;
}
.note p:last-child { margin-bottom: 0; }
.note strong { color: var(--ink); }

/* ---------- FAQ -------------------------------------------------------- */

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; padding: 18px 4px; font-weight: 600; color: var(--ink);
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--blue); font-size: 1.4rem; font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq .faq-body { padding: 0 4px 20px; color: var(--muted); }
.faq .faq-body p:last-child { margin-bottom: 0; }

/* ---------- Footer ----------------------------------------------------- */

.site-footer { background: var(--ink); color: rgba(255,255,255,.72); padding: 56px 0 28px; margin-top: 0; }
.site-footer h4 { color: #fff; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.site-footer a { color: rgba(255,255,255,.78); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .95rem; }
.footer-bottom {
  margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.14);
  display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between;
  font-size: .87rem; color: rgba(255,255,255,.55);
}

/* ---------- Prototyp-Fahne --------------------------------------------- */

.proto-flag {
  background: #FFF4D6; color: #6B4E00; border-bottom: 1px solid #F0DFA8;
  font-size: .85rem; text-align: center; padding: 7px 16px;
  font-family: var(--sans);
}

/* ==========================================================================
   Feinschliff Typografie (Variante B)
   Grundregel: Vollkorn für alles, was Überschrift ist oder wie eine wirkt.
   Manrope für Text, Navigation, Zahlen und Kleinteiliges.
   ========================================================================== */

/* Vereinsname im Kopf und Namen tragen die Serifenschrift */
.brand b            { font-family: var(--head); font-size: 1.08rem; font-weight: 700; }
.brand span         { font-family: var(--sans); }
.people .name       { font-family: var(--head); font-size: 1.12rem; }
.news-title         { font-family: var(--head); font-size: 1.12rem; font-weight: 600; }
.faq summary        { font-family: var(--head); font-size: 1.08rem; font-weight: 600; }
.schedule .day      { font-family: var(--head); font-weight: 700; font-size: 1.05rem; }

/* Zahlen bleiben in Manrope: gleiche Ziffernbreite, damit Uhrzeiten
   untereinander bündig stehen. Vollkorn hat keine Tabellenziffern. */
.schedule .time,
.card-time,
.news time,
.table td {
  font-family: var(--sans);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

/* Gesperrte Großbuchstaben funktionieren in der Serifenschrift nicht –
   Eyebrow, Footer-Überschriften und Tags bleiben deshalb bei Manrope. */
.eyebrow,
.site-footer h4,
.card-tag,
.people .role,
.nav a,
.btn {
  font-family: var(--sans);
}

/* Vollkorn läuft etwas breiter als Groteske. Die Zeilenlänge der
   Hero-Überschrift wird deshalb leicht erhöht, sonst bricht sie zu früh. */
.hero h1 { max-width: 19ch; }

/* Fließtext einen Hauch luftiger – Manrope verträgt das gut */
body { letter-spacing: .001em; }

/* ==========================================================================
   WordPress-spezifisch
   Alles ab hier gab es im Prototyp nicht: Klassen, die WordPress selbst
   ausgibt (Blockeditor, Kommentare, Blaetterung, Barrierefreiheit).
   ========================================================================== */

/* --- Beitragsinhalt ---------------------------------------------------- */

/* Der Editor liefert Absaetze ohne unsere Wrapper. .beitrag begrenzt die
   Zeilenlaenge, laesst aber breite und volle Bloecke ausbrechen. */
.beitrag > * { max-width: 68ch; }
.beitrag > .alignwide  { max-width: var(--wrap); }
.beitrag > .alignfull  { max-width: none; }
.beitrag > .wp-block-gallery,
.beitrag > .wp-block-image.alignwide,
.beitrag > figure.alignwide { max-width: var(--wrap); }

.beitrag h2 { margin-top: 1.8em; }
.beitrag h3 { margin-top: 1.5em; }
.beitrag ul, .beitrag ol { padding-left: 1.3em; line-height: 1.8; }
.beitrag li + li { margin-top: .4em; }
.beitrag blockquote {
  margin: 1.8em 0; padding: 4px 0 4px 22px;
  border-left: 3px solid var(--blue); color: var(--text);
  font-family: var(--head); font-size: 1.12rem;
}
.beitrag blockquote p:last-child { margin-bottom: 0; }
.beitrag hr {
  border: 0; border-top: 1px solid var(--line); margin: 2.4em 0;
}
.beitrag code, .beitrag kbd {
  background: var(--bg-alt); padding: 2px 6px; border-radius: 5px;
  font-size: .92em;
}
.beitrag figure { margin: 1.8em 0; }
.beitrag figure img { border-radius: 12px; display: block; height: auto; max-width: 100%; }
.beitrag figcaption {
  margin-top: 10px; color: var(--muted); font-size: .9rem; line-height: 1.5;
}

/* Bildausrichtungen aus dem Editor */
.alignleft  { float: left;  margin: .4em 1.6em 1.2em 0; }
.alignright { float: right; margin: .4em 0 1.2em 1.6em; }
.aligncenter { margin-left: auto; margin-right: auto; display: block; }
@media (max-width: 640px) {
  .alignleft, .alignright { float: none; margin: 1.4em 0; }
}

/* --- Galerien des Blockeditors ------------------------------------------

   Der Kern legt Galerien als Flexbox an, in der jedes Bild proportional zu
   seinem Seitenverhaeltnis waechst. Bei gemischten Hoch- und Querformaten
   ergibt das ungleiche Reihen und eine gestreckte letzte Zeile.

   Wir ersetzen das durch ein gleichmaessiges Raster: feste Kacheln im
   Verhaeltnis 4:3, die Bilder darin beschnitten. Das !important ist noetig,
   weil der Kern die Breite je nach Spaltenzahl per calc() fest vorgibt. */

.beitrag .wp-block-gallery.has-nested-images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin: 1.8em 0;
}
.beitrag .wp-block-gallery.has-nested-images figure.wp-block-image {
  width: auto !important;
  max-width: none;
  flex: none;
  margin: 0;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-alt);
}
/* Ist die Lightbox eingeschaltet, schiebt der Kern einen zusaetzlichen
   Container zwischen Figur und Bild. Ohne diese Regel bekommt er keine
   Hoehe, und das Bild fuellt die Kachel nicht mehr. */
.beitrag .wp-block-gallery.has-nested-images figure.wp-block-image > .wp-lightbox-container {
  display: block; width: 100%; height: 100%;
}
.beitrag .wp-block-gallery.has-nested-images figure.wp-block-image img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  border-radius: 0;
  transition: transform .4s cubic-bezier(.2,.7,.3,1);
}
.beitrag .wp-block-gallery.has-nested-images figure.wp-block-image:hover img {
  transform: scale(1.04);
}

/* Bildunterschriften innerhalb der Kacheln wuerden das Raster sprengen.
   Der Kern legt sie ueber das Bild – das uebernehmen wir mit lesbarem
   Hintergrund statt des Verlaufs. */
.beitrag .wp-block-gallery.has-nested-images figure.wp-block-image figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; margin: 0;
  padding: 22px 12px 9px;
  background: linear-gradient(transparent, rgba(15,27,36,.82));
  color: #fff; font-size: .84rem; line-height: 1.35;
}

/* Die Lightbox des Kerns wird in theme.json eingeschaltet. Der Knopf dafuer
   sitzt in der Ecke der Kachel und soll sich nicht aufdraengen. */
.beitrag .wp-lightbox-container button.lightbox-trigger { opacity: 0; }
.beitrag .wp-block-image:hover button.lightbox-trigger,
.beitrag button.lightbox-trigger:focus-visible { opacity: 1; }

/* --- Beitragsliste ----------------------------------------------------- */

.beitrag-meta {
  color: var(--muted); font-size: .92rem;
  font-variant-numeric: tabular-nums; margin-bottom: 26px;
}
.beitrag-meta a { color: var(--muted); }

/* --- Blaetterung ------------------------------------------------------- */

.blaettern { margin-top: 48px; display: flex; gap: 10px; flex-wrap: wrap; }
.blaettern .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 42px; height: 42px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 10px;
  text-decoration: none; color: var(--text); background: #fff;
}
.blaettern .page-numbers:hover { border-color: var(--blue); color: var(--blue-dark); }
.blaettern .page-numbers.current {
  background: var(--blue-dark); border-color: var(--blue-dark); color: #fff;
  font-weight: 700;
}

/* --- Barrierefreiheit -------------------------------------------------- */

/* Text nur fuer Screenreader. Nicht display:none - das wuerde ihn auch dort
   verschwinden lassen. */
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
.screen-reader-text:focus {
  position: fixed !important; top: 12px; left: 12px;
  width: auto; height: auto; clip: auto; clip-path: none;
  padding: 12px 18px; background: #fff; color: var(--ink);
  border-radius: 10px; box-shadow: var(--shadow); z-index: 999;
}

/* --- Adminleiste ------------------------------------------------------- */

/* Der klebende Kopf muss unter die Adminleiste rutschen, sonst verdeckt
   sie das Menue fuer angemeldete Nutzer. */
.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}

/* --- Suche und Fehlerseite --------------------------------------------- */

.suchfeld { display: flex; gap: 10px; max-width: 480px; margin-top: 22px; }
.suchfeld input[type="search"] {
  flex: 1; padding: 12px 14px; font: inherit;
  border: 1px solid var(--line); border-radius: 10px; background: #fff;
}
.suchfeld input[type="search"]:focus-visible {
  outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue);
}
