/* =====================================================================
   Union WABS Saxen – Design-System
   ---------------------------------------------------------------------
   Dunkles Matchcenter in Vereinsfarben, in derselben Sprache wie die
   Fanseite der Heimspielorganisation: Grund fast schwarz mit gelbem
   Lichtschein, dunkle Karten im Dashboard-Raster, Gelb als einziger
   lauter Akzent, Grün als zweite Stimme.

   Farben aus dem Wappen: schwarzer Ring, grüne Scheibe, gelbes Band,
   roter Storchschnabel. Schriften wie in der Heimspielorganisation
   (Anton + Oswald), damit beide Systeme zusammengehören.

   Die Diagonale bleibt das tragende Merkmal – hier als Lichtband über
   dem Kopfbereich und als schmaler Keil, nicht als Dekoration überall.
   ===================================================================== */

/* ---------- 0. Schrift ------------------------------------------------
   Inter, selbst gehostet – dieselbe Schrift wie bei Wimmer Dirnberger.
   Variable Strichstärke 100–900, deshalb genügen zwei Dateien.
   SIL Open Font License, siehe assets/fonts/LIZENZ.txt.
   -------------------------------------------------------------------- */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-ext.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- 1. Marken ------------------------------------------------ */
:root {
  --gelb:        #ffc220;
  --gelb-d:      #ffd25c;
  --gelb-dunkel: #d9a200;
  --gruen:       #22a85c;
  --gruen-d:     #4cc182;
  --rot:         #e8654f;

  /* Dunkle Grundstimmung – die Werte stammen aus fans.css. */
  --grund:        #0e0f10;
  --flaeche:      #17181a;
  --flaeche-hoch: #1c1d1f;
  --sanft:        #131416;
  --linie:        #26282b;
  --linie-stark:  #3a3d41;
  --text:         #eceded;
  --leise:        #a6a9ab;
  --weiss:        #ffffff;

  --schrift-titel: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --schrift:       "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --t-xs: .78rem;
  --t-s:  .9rem;
  --t-m:  1rem;
  --t-l:  1.15rem;
  --t-xl: clamp(1.4rem, 3vw, 1.9rem);
  --t-2xl:clamp(1.9rem, 5vw, 3rem);
  --t-3xl:clamp(2.4rem, 7vw, 4.4rem);

  --abstand: clamp(64px, 9vw, 128px);
  --rand:    clamp(16px, 3.5vw, 56px);
  --breite:  1400px;
  --mass:    66ch;
  --radius:   14px;
  --radius-s:  8px;

  --schatten: 0 18px 40px -28px rgba(0,0,0,.9);

  /* Tiefe der Schrägschnitte. Eine Quelle für Kopfleiste, Kopfbereich
     und alle dunklen Bänder – sonst laufen die Winkel auseinander. */
  --schnitt: clamp(26px, 3.4vw, 62px);
}

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  color: var(--text);
  font-family: var(--schrift);
  font-weight: 400;
  font-size: 16.5px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  /* Gelber Lichtschein oben rechts, wie auf der Fanseite. */
  background:
    radial-gradient(140% 90% at 100% 0%, rgba(255,194,32,.08) 0%, transparent 55%),
    var(--grund);
  background-attachment: fixed;
}

/* ---------- 2. Typografie -------------------------------------------- */

h1, h2, h3 { text-wrap: balance; margin: 0 0 .5em; color: var(--weiss); }

/* Inter trägt Schlagzeilen über Gewicht und enge Laufweite, nicht über
   Versalien wie zuvor Anton. Grossbuchstaben bleiben den Vorzeilen. */
h1, .titel {
  font-family: var(--schrift-titel); font-weight: 800;
  font-size: var(--t-3xl); line-height: 1.02; letter-spacing: -.022em;
}
h2 {
  font-family: var(--schrift-titel); font-weight: 700;
  font-size: var(--t-2xl); line-height: 1.08; letter-spacing: -.018em;
}
h3 { font-weight: 650; font-size: var(--t-l); letter-spacing: -.008em; }

p, ul, ol { margin: 0 0 1em; max-width: var(--mass); }

.vorzeile {
  font-size: var(--t-xs); font-weight: 500;
  text-transform: uppercase; letter-spacing: .18em;
  color: var(--gelb); margin: 0 0 .5em;
}
.vorzeile--hell { color: var(--gelb); }

a { color: var(--gelb); text-underline-offset: 3px; }
a:hover { color: var(--gelb-d); }

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid var(--gelb); outline-offset: 2px; border-radius: 3px;
}

.zahlen { font-variant-numeric: tabular-nums; }

/* ---------- 3. Aufbau ------------------------------------------------ */

.bahn { width: min(100% - (2 * var(--rand)), var(--breite)); margin-inline: auto; }

.abschnitt { padding-block: var(--abstand); }

/* ---------- Helle und dunkle Bänder im Wechsel -------------------------
   Der Kopfbereich ist dunkel, danach wechseln sich helle und dunkle
   Abschnitte ab. Umgesetzt über die Farbtoken: ein heller Abschnitt
   setzt sie neu, alles darin – Karten, Tabellen, Knöpfe, Merker – zieht
   automatisch nach. So gibt es keine Sonderregel je Baustein.
   -------------------------------------------------------------------- */

/* Alle Bänder – helle wie dunkle – bekommen schräge Kanten oben und
   unten. Sie überlappen den Nachbarn um die Schnitttiefe, damit keine
   Fuge entsteht. Der Winkel ist überall derselbe. */
.abschnitt {
  clip-path: polygon(0 var(--schnitt), 100% 0, 100% calc(100% - var(--schnitt)), 0 100%);
  padding-block: calc(var(--abstand) + var(--schnitt));
  margin-block: calc(var(--schnitt) * -1);
}
.abschnitt--dunkel { background: #101114; }
.abschnitt--sanft  { background: #131417; }

/* Der erste Abschnitt nach dem Kopfbereich nimmt dessen Neigung auf –
   dort oben kein zweiter Schnitt, sonst entsteht ein Knick. */
.hero + .abschnitt,
.hero + .keil + .abschnitt {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--schnitt)), 0 100%);
}

/* Der letzte Abschnitt vor dem Fussbereich läuft unten gerade aus –
   sonst klafft über dem Fuss ein Dreieck. */
.abschnitt:last-of-type {
  clip-path: polygon(0 var(--schnitt), 100% 0, 100% 100%, 0 100%);
  padding-bottom: var(--abstand);
  margin-bottom: 0;
}

.abschnitt--hell {
  --flaeche:      #ffffff;
  --flaeche-hoch: #fafaf8;
  --sanft:        #f5f6f3;
  --linie:        #e4e5e0;
  --linie-stark:  #c8cac3;
  --text:         #16181b;
  --leise:        #656b72;
  --weiss:        #16181b;
  --gelb-d:       #a97f00;
  --gruen:        #007136;
  --gruen-d:      #009045;
  --rot:          #c0392b;
  --schatten:     0 1px 2px rgba(16,18,20,.05), 0 10px 26px -20px rgba(16,18,20,.4);

  background: #f2f3f0;
  color: var(--text);
}

/* Reinweiss – für Logogalerien. Logos bringen ihren eigenen weissen
   Grund mit; auf dem leicht grauen --hell sähe man um jedes Logo eine
   Kante. Erbt sonst alles von --hell. */
.abschnitt--weiss { background: #ffffff; }
.abschnitt--weiss .sgalerie__feld { border-color: rgba(0,0,0,.09); }

/* Gelb als Textfarbe braucht auf Weiss mehr Tiefe, als Fläche nicht. */
.abschnitt--hell .vorzeile { color: var(--gelb-d); }
.abschnitt--hell a { color: var(--gruen); }
.abschnitt--hell a:hover { color: var(--gruen-d); }
.abschnitt--hell h1, .abschnitt--hell h2, .abschnitt--hell h3 { color: var(--text); }
.abschnitt--hell .knopf--gelb { background: var(--gelb); color: #16181b; }
.abschnitt--hell .knopf--gelb:hover { background: #f0b400; }
.abschnitt--hell .knopf--rand { border-color: var(--linie-stark); color: var(--text); }
.abschnitt--hell .knopf--rand:hover { border-color: var(--gruen); color: var(--gruen); }
.abschnitt--hell .karte--klick:hover h3 { color: var(--text); }
.abschnitt--hell thead th { background: var(--sanft); }
.abschnitt--hell tbody tr:hover td { background: var(--flaeche-hoch); }
.abschnitt--hell .merker { background: var(--sanft); color: var(--leise); border-color: var(--linie-stark); }
.abschnitt--hell .merker--gut  { background: #e6f4ec; color: #00662f; border-color: #9cd4b4; }
.abschnitt--hell .merker--warn { background: #fff6de; color: #8a6800; border-color: #e8c96a; }
.abschnitt--hell .merker--stop { background: #fdecea; color: #a4291c; border-color: #eaa79e; }
.abschnitt--hell .hinweis          { background: #ecf7f1; }
.abschnitt--hell .hinweis--warnung { background: #fff8e6; }
.abschnitt--hell .hinweis--fehler  { background: #fdeeec; }
.abschnitt--hell .filter { background: var(--flaeche); }
.abschnitt--hell .filter--aktiv { background: var(--text); border-color: var(--text); color: #fff; }
.abschnitt--hell .blaettern a { background: var(--flaeche); }
.abschnitt--hell .blaettern__hier { background: var(--text); border-color: var(--text); color: #fff; }
.abschnitt--hell .termin__titel { color: var(--text); }
.abschnitt--hell .termin__tag b { color: var(--gelb-d); }
.abschnitt--hell .bereich b, .abschnitt--hell .bereich__wort { color: var(--text); }
.abschnitt--hell .bereich__bild { background: #fff6de; color: var(--gelb-d); }
.abschnitt--hell .bereich:hover .bereich__bild { background: var(--gelb); color: #16181b; }
.abschnitt--hell .karte-titel { color: var(--text); }

/* Logos: auf Weiss nicht aufhellen, sondern entsättigen. */
/* Logos stehen in ihrer eigenen Farbe. Entsättigt sahen sie ruhiger
   aus, aber ein Sponsor bezahlt für seine Marke, nicht für ein graues
   Abbild davon. */

/* Trennlinie nur zwischen zwei gleich hellen Abschnitten – zwischen
   Hell und Dunkel trennt schon der Farbwechsel. */
/* Keine Trennlinien mehr – das trennt jetzt der Schrägschnitt. */

/* ---------- 4. Die Diagonale ----------------------------------------- */

.keil {
  height: 3px; border: 0; margin: 0; position: relative; z-index: 3;
  background: linear-gradient(100deg, var(--gelb) 0%, rgba(255,194,32,.2) 44%, transparent 74%);
  transform: skewY(-.45deg); transform-origin: left;
}

/* ---------- 5. Kopfbereich (Matchcenter) ------------------------------ */

.hero {
  position: relative; overflow: hidden;
  padding-block: clamp(48px, 8vw, 104px);
  background:
    radial-gradient(120% 150% at 0% 0%, rgba(255,194,32,.30) 0%, rgba(255,194,32,0) 52%),
    linear-gradient(160deg, #1c1d1f 0%, #111213 55%, #0b0c0d 100%);
  color: #fff;
  /* Unterkante schräg – die Neigung nimmt der nächste Abschnitt auf. */
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--schnitt)), 0 100%);
  padding-bottom: calc(clamp(48px, 8vw, 104px) + var(--schnitt));
  margin-bottom: calc(var(--schnitt) * -1);
}

/* Wanderndes Streiflicht – dieselbe Bewegung wie auf der Fanseite. */
.hero::before {
  content: ""; position: absolute; inset: -40% -60%; pointer-events: none;
  background: linear-gradient(115deg, transparent 42%, rgba(255,214,90,.10) 50%, transparent 58%);
  animation: schimmer 9s ease-in-out infinite;
}
@keyframes schimmer {
  0%, 100% { transform: translate3d(-6%, 0, 0); }
  50%      { transform: translate3d(6%, 0, 0); }
}

/* Schräglinien wie am Fernseher – jetzt deutlicher sichtbar. */
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .8;
  background: repeating-linear-gradient(115deg,
    transparent 0 26px, rgba(255,255,255,.035) 26px 27px,
    transparent 27px 53px, rgba(255,194,32,.05) 53px 54px);
}

/* Dieselben Schräglinien als Textur über jedem Abschnitt – dezent,
   aber sie halten das Motiv über die ganze Seite durch. */
.abschnitt { position: relative; }
.abschnitt::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(115deg, transparent 0 26px, rgba(255,255,255,.02) 26px 27px);
}
.abschnitt--hell::before {
  background: repeating-linear-gradient(115deg, transparent 0 26px, rgba(16,18,20,.028) 26px 27px);
}
.abschnitt > .bahn { position: relative; z-index: 1; }

/* Foto rechts, schräg hereinlaufend. Der Text steht links auf dunklem
   Grund, das Bild schiebt sich von rechts herein und wird zur Mitte hin
   weich ausgeblendet – so bleibt die Schlagzeile immer lesbar. */
.hero__foto {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(58%, 780px);
  background-size: cover; background-position: 38% center;
  clip-path: polygon(22% 0, 100% 0, 100% 100%, 6% 100%);
  -webkit-mask-image: linear-gradient(100deg, transparent 0%, rgba(0,0,0,.55) 26%, #000 62%);
          mask-image: linear-gradient(100deg, transparent 0%, rgba(0,0,0,.55) 26%, #000 62%);
  opacity: .58;
  filter: saturate(.9) contrast(1.05);
}

/* Neutrales Hintergrundbild, stark abgedunkelt (Sektionsseiten). */
.hero__bild {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: .22; filter: grayscale(.5) contrast(1.05);
}
.hero__inhalt { position: relative; z-index: 2; }
.hero h1 { color: #fff; margin-bottom: .35em; }
.hero p { font-size: var(--t-l); color: #c9ccce; max-width: 48ch; }

.hero--klein { padding-block: clamp(34px, 5vw, 62px); }
.hero--klein h1 { font-size: var(--t-2xl); }

/* ---------- 6. Knöpfe ------------------------------------------------ */

.knopf {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--schrift); font-weight: 600;
  font-size: var(--t-s); text-transform: uppercase; letter-spacing: .1em;
  padding: .8em 1.5em;
  border: 2px solid transparent; border-radius: var(--radius-s);
  text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.knopf--gelb  { background: var(--gelb); color: #111213; }
.knopf--gelb:hover { background: var(--gelb-d); color: #111213; }
.knopf--gruen { background: var(--gruen); color: #fff; }
.knopf--gruen:hover { background: var(--gruen-d); color: #0e0f10; }
.knopf--rand  { border-color: var(--linie-stark); color: var(--text); }
.knopf--rand:hover { border-color: var(--gelb); color: var(--gelb); }
.knopf--klein { padding: .55em 1.1em; font-size: var(--t-xs); }
.knopf--still { background: var(--flaeche); color: var(--text); border-color: var(--linie-stark); }
.knopf--still:hover { border-color: var(--gelb); color: var(--gelb); }
.knopf--gefahr { background: transparent; color: var(--rot); border-color: var(--rot); }
.knopf--gefahr:hover { background: var(--rot); color: #fff; }

.knopfreihe { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

/* ---------- 7. Karten im Dashboard-Raster ---------------------------- */

.raster { display: grid; gap: 16px; }
.raster--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.raster--3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.raster--4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.raster--eng  { gap: 12px; }
.raster--weit { gap: 34px; }

.karte {
  background: var(--flaeche); border: 1px solid var(--linie);
  border-radius: var(--radius); padding: 22px; box-shadow: var(--schatten);
}
.karte > :last-child { margin-bottom: 0; }

/* Kartentitel mit gelber Auslauflinie – das Erkennungszeichen der Fanseite. */
.karte-titel {
  display: flex; align-items: center; gap: 10px;
  color: var(--weiss); font-size: var(--t-m); font-weight: 600; margin: 0 0 14px;
}
/* Gestrichelte Balken statt einer Verlaufslinie. Sie wandern langsam
   nach rechts und laufen dabei aus – ruhig genug, um nicht zu stören. */
.karte-titel::after {
  content: ""; flex: 1; height: 6px; margin-left: 6px; border-radius: 1px;
  background-image: repeating-linear-gradient(100deg,
    var(--gelb) 0 9px, transparent 9px 17px);
  -webkit-mask-image: linear-gradient(90deg, #000 0%, rgba(0,0,0,.35) 55%, transparent 92%);
          mask-image: linear-gradient(90deg, #000 0%, rgba(0,0,0,.35) 55%, transparent 92%);
  background-size: 17px 100%;
  animation: balken 2.6s linear infinite;
}
@keyframes balken {
  from { background-position: 0 0; }
  to   { background-position: 17px 0; }
}

.karte--klick { text-decoration: none; color: inherit; display: block; transition: border-color .15s ease, transform .15s ease; }
.karte--klick:hover { border-color: var(--gelb); transform: translateY(-2px); color: inherit; }
.karte--klick h3, .karte--klick .karte-titel { color: var(--weiss); }
.karte--hier { border-color: var(--gelb); }

/* Kennzahl-Kachel: eine grosse Zahl, darunter das Wort. */
.zahlkachel {
  display: block; text-decoration: none; color: inherit;
  background: var(--flaeche); border: 1px solid var(--linie);
  border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--schatten);
}
.zahlkachel:hover { border-color: var(--gelb); color: inherit; }
.zahlkachel b {
  display: block; font-family: var(--schrift-titel); font-size: 2.2rem; font-weight: 800;
  line-height: 1; letter-spacing: -.03em; color: var(--gelb); font-variant-numeric: tabular-nums;
}
.zahlkachel span {
  display: block; margin-top: 8px; font-size: var(--t-xs);
  text-transform: uppercase; letter-spacing: .12em; color: var(--leise);
}

/* Sektionskachel mit Hintergrundgrafik. */
.kachel {
  position: relative; display: block; overflow: hidden;
  min-height: 190px; border-radius: var(--radius);
  background: var(--flaeche-hoch) center/cover no-repeat;
  border: 1px solid var(--linie); color: #fff; text-decoration: none;
  isolation: isolate; box-shadow: var(--schatten);
}
.kachel::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(160deg, rgba(14,15,16,.35) 0%, rgba(14,15,16,.92) 78%);
}
.kachel:hover { border-color: var(--gelb); }
.kachel__band { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 18px 20px 16px; }
.kachel__name {
  font-family: var(--schrift-titel); font-size: 1.35rem; font-weight: 700;
  letter-spacing: -.015em; line-height: 1.05; margin: 0; color: #fff;
}
.kachel__strich { display: block; width: 32px; height: 4px; background: var(--gelb); margin-top: 9px; border-radius: 2px; transition: width .2s ease; }
.kachel:hover .kachel__strich { width: 62px; }

/* ---------- 8. Sponsorenband ----------------------------------------- */

/* Galerie statt Reihe: jedes Logo bekommt eine eigene helle Kachel.
   Das löst zwei Dinge auf einmal – Logos mit weissem Hintergrund
   verschwinden nicht mehr im dunklen Abschnitt, und alle stehen in
   gleich grossen Feldern, obwohl die Bilder unterschiedlich hoch und
   breit sind. Das Raster füllt sich von selbst. */
.sponsorband {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 16px;
  align-items: stretch;
}
.sponsorband > a,
.sponsorband > img {
  display: flex; align-items: center; justify-content: center;
  min-height: 116px; padding: 18px 20px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .07);
  border-radius: var(--radius-s);
  transition: transform .16s ease, box-shadow .16s ease;
}
.sponsorband img {
  max-height: 74px; max-width: 100%; width: auto; height: auto;
  object-fit: contain;
}
.sponsorband > a:hover, .sponsorband > a:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px -14px rgba(0, 0, 0, .55);
}

/* Namens- und Stadionsponsor: eine Kachel, deutlich grösser. */
.sponsorband--gross {
  grid-template-columns: repeat(auto-fit, minmax(260px, 340px));
  justify-content: center;
}
.sponsorband--gross > a, .sponsorband--gross > img { min-height: 170px; padding: 26px 30px; }
.sponsorband--gross img { max-height: 118px; }

@media (max-width: 560px) {
  .sponsorband { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
  .sponsorband > a, .sponsorband > img { min-height: 92px; padding: 14px; }
  .sponsorband img { max-height: 56px; }
}

/* ---------- 9. Tabellen ---------------------------------------------- */

.tabelle-huelle {
  overflow-x: auto; border: 1px solid var(--linie);
  border-radius: var(--radius); background: var(--flaeche); box-shadow: var(--schatten);
}
table { border-collapse: collapse; width: 100%; font-size: var(--t-s); }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--linie); vertical-align: top; }
thead th {
  font-size: var(--t-xs); font-weight: 600; text-transform: uppercase;
  letter-spacing: .1em; color: var(--leise);
  background: rgba(255,255,255,.03); white-space: nowrap;
}
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: rgba(255,255,255,.02); }
td.zahl { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }

/* ---------- 10. Bilder ------------------------------------------------ */

img { max-width: 100%; height: auto; }
.beitragsbild { display: block; width: 100%; max-height: 480px; object-fit: cover; border-bottom: 1px solid var(--linie); }

/* Zwei-Klick-Lösung: lädt erst nach Antippen. */
.zweiklick {
  position: relative; display: grid; place-items: center; text-align: center;
  min-height: 250px; padding: 24px; gap: 12px;
  background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius);
}
.zweiklick p { color: var(--leise); font-size: var(--t-s); max-width: 40ch; }

/* ---------- 11. Fussbereich ------------------------------------------ */

.fuss { border-top: 1px solid var(--linie); background: rgba(0,0,0,.35); padding-block: var(--abstand) 30px; color: var(--leise); }
.fuss h3 { color: var(--weiss); font-size: var(--t-s); text-transform: uppercase; letter-spacing: .12em; }
.fuss a { color: var(--text); text-decoration: none; }
.fuss a:hover { color: var(--gelb); text-decoration: underline; }
.fuss__unten {
  border-top: 1px solid var(--linie); margin-top: 32px; padding-top: 20px;
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; font-size: var(--t-xs);
}

/* ---------- 12. Nur für Bildschirmleser ------------------------------ */

.nur-vorlesen {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- 13. Kopfleiste und Navigation ---------------------------- */

.kopfleiste {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14,15,16,.94);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 10px 24px -18px rgba(0,0,0,.9);
}

/* Schräg auslaufende gelbe Kante unter der Leiste. Als eigenes Element,
   weil ein clip-path an der Leiste selbst das Megamenü mit abschneiden
   würde – das hängt darin. */
.kopfleiste::after {
  content: ""; position: absolute; left: 0; right: 0; top: 100%;
  height: 3px; pointer-events: none;
  background: linear-gradient(100deg,
    var(--gelb) 0%, var(--gelb) 34%, rgba(255,194,32,.25) 52%, transparent 78%);
  transform: skewY(-.45deg); transform-origin: left;
}
.kopfleiste__innen { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }

.marke { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.marke:hover { color: #fff; }

.navi > ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; max-width: none; }
.navi a {
  display: block; padding: 10px 14px; border-radius: var(--radius-s);
  color: #b9bcbe; text-decoration: none;
  font-size: var(--t-s); font-weight: 500; text-transform: uppercase; letter-spacing: .07em;
}
.navi a:hover, .navi a:focus-visible { color: #fff; background: #202225; }
.navi a[aria-current="page"] { background: var(--gelb); color: #111213; }

/* ---------- Megamenü --------------------------------------------------
   Eine Fläche über die ganze Breite statt einer schmalen Klappliste.
   Öffnet über :hover UND :focus-within – damit es auch mit der Tastatur
   erreichbar bleibt.
   -------------------------------------------------------------------- */

/* Nur die Symbole der obersten Menüpunkte einfärben und abrücken.
   Ohne die Einschränkung auf "> ul > li > a" trifft die Regel auch die
   Symbole im Megamenü – dann erben die beim Zeigen nicht das Schwarz
   und der rechte Abstand schiebt sie aus der Mitte ihres Feldes. */
.navi > ul > li > a .symbol { color: var(--gelb); opacity: .85; margin-right: 7px; }
.navi > ul > li > a:hover .symbol { opacity: 1; }
.navi > ul > li > a[aria-current="page"] .symbol { color: #111213; }

.mega {
  display: none;
  position: absolute; left: 0; right: 0; top: 100%;
  background: #16171a;
  border-top: 1px solid var(--linie);
  border-bottom: 3px solid var(--gelb);
  box-shadow: 0 26px 50px -24px rgba(0,0,0,.95);
  z-index: 60;
}
.navi .hat-mega { position: static; }

/* Zwischen dem Menüpunkt und der aufgeklappten Fläche liegt der Rest
   der Kopfleiste. Fährt die Maus da hindurch, verlässt sie kurz beides
   und das Menü klappt zu – man kommt nie zu den Verweisen.
   Diese unsichtbare Brücke füllt die Lücke. Sie ist nur da, solange
   der Punkt selbst überfahren wird. */
.navi .hat-mega::after {
  content: ""; display: none;
  position: absolute; left: 0; right: 0;
  top: calc(100% - 22px); height: 22px;
  z-index: 59;
}
.navi .hat-mega:hover::after { display: block; }

.navi .hat-mega:hover > .mega,
.navi .hat-mega:focus-within > .mega { display: block; }

/* Die Fläche bleibt einen Wimpernschlag stehen, wenn die Maus sie
   diagonal verlässt – sonst muss man in gerader Linie hinunterfahren. */
.navi .hat-mega > .mega { transition-property: opacity; }

.mega__innen {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px 34px; padding-block: 28px 32px;
}
.mega__titel {
  font-size: var(--t-xs); font-weight: 600; text-transform: uppercase;
  letter-spacing: .14em; color: var(--gelb); margin: 0 0 12px;
}
.mega__spalte--rand {
  border-left: 1px solid var(--linie); padding-left: 30px;
}

/* Unter .navi geschrieben, weil ".navi a" sonst mit höherer Spezifität
   display:block und Versalien durchsetzt – dann stapeln sich Symbol und
   Text übereinander und alles steht in Grossbuchstaben. */
.navi .mega__punkt {
  display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center;
  padding: 9px 10px; margin-left: -10px; border-radius: var(--radius-s);
  text-decoration: none; color: var(--text);
  text-transform: none; letter-spacing: 0; font-weight: 400;
}
.navi .mega__punkt:hover, .navi .mega__punkt:focus-visible { background: rgba(255,255,255,.05); color: var(--text); }
.navi .mega__punkt b { display: block; font-weight: 600; font-size: var(--t-s); color: #fff; }
.navi .mega__text { display: block; font-size: var(--t-xs); color: var(--leise); margin-top: 2px; }
.mega__bild {
  display: grid; place-items: center; width: 34px; height: 34px;
  border-radius: 8px; background: rgba(255,194,32,.12); color: var(--gelb);
}
/* Im Feld sitzt das Symbol mittig und nimmt die Farbe des Feldes an. */
.mega__bild .symbol { margin: 0; opacity: 1; color: inherit; }
.navi .mega__punkt:hover .mega__bild { background: var(--gelb); color: #111213; }

/* Menüknopf. Die Striche sind schräg geschnitten – dieselbe Neigung
   wie die Abschnittskanten, der Keil und der Stadionschriftzug. Der
   Schnitt sitzt auf beiden Seiten gegenläufig, damit die Striche
   parallelogrammförmig wirken und nicht bloss abgeschnitten. */
.menue-knopf { display: none; cursor: pointer; padding: 10px; }
.menue-knopf span {
  display: block; width: 28px; height: 3px;
  background: #fff; margin: 5px 0;
  clip-path: polygon(5px 0, 100% 0, calc(100% - 5px) 100%, 0 100%);
  transition: transform .18s ease, background .18s ease;
}
/* Beim Öffnen etwas auseinander – ein leiser Hinweis, dass sich etwas
   getan hat, ohne die Striche zum Kreuz zu falten. */
#menue-schalter:checked ~ .menue-knopf span:first-child  { transform: translateY(-1px); }
#menue-schalter:checked ~ .menue-knopf span:last-child   { transform: translateY(1px); }
#menue-schalter:checked ~ .menue-knopf span { background: var(--gelb); }
.menue-knopf:hover span { background: var(--gelb); }

@media (max-width: 1040px) {
  .menue-knopf { display: block; }
  .navi {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: #16171a; border-top: 1px solid var(--linie);
    max-height: calc(100vh - 72px); overflow-y: auto; padding: 10px var(--rand) 18px;
  }
  #menue-schalter:checked ~ .navi { display: block; }
  .navi > ul { flex-direction: column; gap: 0; }
  .navi a { padding: 12px 10px; }

  /* Am Handy keine schwebende Fläche – die Punkte hängen einfach
     eingerückt unter ihrem Menüpunkt. */
  .mega { display: block; position: static; border: 0; box-shadow: none; background: transparent; }
  .mega__innen { display: block; padding: 0 0 8px 12px; width: auto; }
  .mega__titel { margin: 10px 0 4px; }
  .mega__spalte--rand { border-left: 0; padding-left: 0; }
  .navi .mega__punkt { padding: 8px 10px; margin-left: 0; }
  .mega__bild { width: 28px; height: 28px; }
}

/* ---------- 14. Kleine Helferklassen --------------------------------- */

.leise         { color: var(--leise); }
.klein         { font-size: var(--t-s); }
.winzig        { font-size: var(--t-xs); }
.betont        { font-weight: 600; }
.mittig        { text-align: center; }
.nicht-brechen { white-space: nowrap; }
.abstand-oben  { margin-top: 24px; }
.abstand-unten { margin-bottom: 24px; }
.ohne-rand     { margin: 0; }
.vorzeile--eng { margin-bottom: .2em; }

.hinweis {
  border-left: 3px solid var(--gruen); background: rgba(34,168,92,.10);
  padding: 15px 18px; border-radius: var(--radius-s); margin-bottom: 20px;
}
.hinweis--fehler  { border-left-color: var(--rot);  background: rgba(232,101,79,.10); }
.hinweis--warnung { border-left-color: var(--gelb); background: rgba(255,194,32,.10); }
.hinweis > :last-child { margin-bottom: 0; }

.merker {
  display: inline-block; font-size: var(--t-xs); font-weight: 600;
  text-transform: uppercase; letter-spacing: .09em;
  padding: .24em .62em .2em; border-radius: 4px; white-space: nowrap;
  background: rgba(255,255,255,.06); color: var(--leise); border: 1px solid var(--linie-stark);
}
.merker--gut  { background: rgba(34,168,92,.14);  color: var(--gruen-d); border-color: rgba(34,168,92,.5); }
.merker--warn { background: rgba(255,194,32,.14); color: var(--gelb);     border-color: rgba(255,194,32,.5); }
.merker--stop { background: rgba(232,101,79,.14); color: var(--rot);      border-color: rgba(232,101,79,.5); }

.live-punkt {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--rot); margin-right: 6px;
  animation: pulsieren 1.8s ease-in-out infinite;
}
@keyframes pulsieren { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

/* ---------- 15. Formulare -------------------------------------------- */

.feld { display: block; margin-bottom: 18px; max-width: 520px; }
.feld > span {
  display: block; font-size: var(--t-xs); font-weight: 600;
  text-transform: uppercase; letter-spacing: .1em; color: var(--leise); margin-bottom: 7px;
}
.feld input[type=text], .feld input[type=email], .feld input[type=tel],
.feld input[type=number], .feld input[type=date], .feld input[type=datetime-local],
.feld input[type=password], .feld input[type=url], .feld input[type=search],
.feld select, .feld textarea {
  width: 100%; padding: 12px 14px;
  font-family: var(--schrift); font-size: var(--t-m); color: var(--text);
  background: #101113; border: 1px solid var(--linie-stark); border-radius: var(--radius-s);
}
.feld textarea { min-height: 130px; resize: vertical; }
.feld input:focus, .feld select:focus, .feld textarea:focus { border-color: var(--gelb); }
.feld input::placeholder, .feld textarea::placeholder { color: #6d7175; }
.feld--haken { display: flex; gap: 10px; align-items: flex-start; max-width: 520px; }
.feld--haken input { margin-top: 5px; accent-color: var(--gelb); }
.feld--haken span { text-transform: none; letter-spacing: 0; font-weight: 400; font-size: var(--t-m); color: var(--text); margin: 0; }
.feld__hinweis { display: block; font-size: var(--t-xs); color: var(--leise); margin-top: 6px; }
.feld__hinweis--fehler { color: var(--rot); font-weight: 600; }
.feld:has(.feld__hinweis--fehler) input,
.feld:has(.feld__hinweis--fehler) select,
.feld:has(.feld__hinweis--fehler) textarea { border-color: var(--rot); }
.feld--breit { max-width: none; }
fieldset.feld { border: 0; padding: 0; margin-inline: 0; }
.hakenreihe { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 4px 16px; }

.honigtopf { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Auf hellen Bändern sind auch die Eingabefelder hell. Muss NACH den
   Grundregeln stehen: bei gleicher Spezifität gewinnt die spätere Regel,
   sonst bleiben die Felder schwarz. */
.abschnitt--hell .feld input[type=text],
.abschnitt--hell .feld input[type=email],
.abschnitt--hell .feld input[type=tel],
.abschnitt--hell .feld input[type=number],
.abschnitt--hell .feld input[type=date],
.abschnitt--hell .feld input[type=datetime-local],
.abschnitt--hell .feld input[type=password],
.abschnitt--hell .feld input[type=url],
.abschnitt--hell .feld input[type=search],
.abschnitt--hell .feld select,
.abschnitt--hell .feld textarea {
  background: #ffffff; color: var(--text); border-color: var(--linie-stark);
}
.abschnitt--hell .feld input::placeholder,
.abschnitt--hell .feld textarea::placeholder { color: #9aa0a6; }
.abschnitt--hell .feld input:focus,
.abschnitt--hell .feld select:focus,
.abschnitt--hell .feld textarea:focus { border-color: var(--gruen); }
.abschnitt--hell .feld--haken input { accent-color: var(--gelb-d); }

/* ---------- 16. Seitenkopf ------------------------------------------- */

.seitenkopf { position: relative; overflow: hidden; }
.seitenkopf p { color: #c9ccce; }

/* ---------- 17. Fliesstext ------------------------------------------- */

.fliesstext { max-width: var(--mass); }
.fliesstext h2 { font-size: var(--t-xl); margin-top: 1.6em; }
.fliesstext h3 { margin-top: 1.4em; }
.fliesstext ul, .fliesstext ol { padding-left: 1.3em; }
.fliesstext img { border-radius: var(--radius-s); margin-block: 1em; }
.fliesstext .anriss { font-size: var(--t-l); color: var(--leise); }

/* Der erste Absatz eines Fliesstextes bekommt einen gelben Balken
   hinterlegt – schräg angeschnitten wie alle Kanten auf der Seite.
   Der Balken liegt hinter der Schrift, nicht daneben: so bleibt die
   Zeilenlänge gleich und der Text springt gegenüber dem Rest nicht ein.

   Gezeichnet wird er über ein ::before im Hintergrund. Ein echter
   Rahmen ginge nicht schräg, und ein Verlauf liesse sich nicht kappen. */
.fliesstext .anriss {
  position: relative;
  isolation: isolate;                 /* hält den Balken unter der Schrift */
  padding: .55em 0 .55em 1.15em;
  margin-bottom: 1.4em;
  color: var(--text);
  font-weight: 500;
}
.fliesstext .anriss::before {
  content: "";
  position: absolute; z-index: -1;
  inset: 0 auto 0 0;
  width: min(100%, 30ch);
  background: linear-gradient(100deg,
              rgba(233, 196, 63, .55) 0%,
              rgba(233, 196, 63, .28) 55%,
              rgba(233, 196, 63, 0) 100%);
  /* Anschnitt oben links und unten rechts – dieselbe Neigung wie die
     Abschnittskanten, nur im Kleinen. */
  clip-path: polygon(9px 0, 100% 0, calc(100% - 9px) 100%, 0 100%);
}

/* Dazu die volle Kante links: kurz, kräftig, ebenfalls schräg. */
.fliesstext .anriss::after {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 5px; background: var(--gelb);
  clip-path: polygon(9px 0, 100% 0, calc(100% - 9px) 100%, 0 100%);
}

/* Auf dunklem Grund reicht weniger Deckkraft – dort leuchtet Gelb stärker. */
.abschnitt:not(.abschnitt--hell):not(.abschnitt--sanft) .fliesstext .anriss::before {
  background: linear-gradient(100deg,
              rgba(233, 196, 63, .30) 0%,
              rgba(233, 196, 63, .12) 55%,
              rgba(233, 196, 63, 0) 100%);
}

@media (max-width: 720px) {
  .fliesstext .anriss::before { width: 100%; }
}
.fliesstext > :first-child { margin-top: 0; }

/* ---------- 18. Filterreihe ------------------------------------------ */

.filterreihe { display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
  display: inline-block; padding: .48em 1.05em;
  font-size: var(--t-xs); font-weight: 500; text-transform: uppercase; letter-spacing: .09em;
  color: var(--leise); text-decoration: none;
  border: 1px solid var(--linie-stark); border-radius: 100px; background: var(--flaeche);
}
.filter:hover { border-color: var(--gelb); color: var(--gelb); }
.filter--aktiv { background: var(--gelb); border-color: var(--gelb); color: #111213; }
.filter--aktiv:hover { color: #111213; }

/* ---------- 19. Terminliste ------------------------------------------ */

.monatstitel { font-size: var(--t-xl); margin-top: 40px; }
.terminliste { display: grid; gap: 10px; }

.termin {
  /* Feste dritte Spalte statt auto: Sonst richtet sich ihre Breite nach
     dem Inhalt der jeweiligen Zeile, und die Marken springen von Zeile
     zu Zeile an eine andere Stelle. */
  display: grid; grid-template-columns: 62px 1fr 182px; gap: 18px; align-items: center;
  padding: 15px 18px; background: var(--flaeche); border: 1px solid var(--linie);
  border-radius: var(--radius); text-decoration: none; color: inherit; box-shadow: var(--schatten);
}
.termin:hover { border-color: var(--gelb); color: inherit; }
.termin__tag { text-align: center; line-height: 1; }
.termin__tag b { display: block; font-family: var(--schrift-titel); font-size: 1.55rem; font-weight: 800; letter-spacing: -.03em; color: var(--gelb); }
.termin__tag span { display: block; font-size: var(--t-xs); color: var(--leise); text-transform: uppercase; letter-spacing: .08em; margin-top: 3px; }
.termin__text { display: grid; gap: 3px; min-width: 0; }

/* Marken rechts, nebeneinander in derselben Zeile wie der Termin.
   Untereinander wurde die Zeile doppelt so hoch, und der Schriftzug
   rutschte unter die Karte. */
.termin__marken {
  display: flex; flex-direction: row; align-items: center;
  justify-content: flex-end; gap: 8px;
  justify-self: end;
}
.termin__titel { font-weight: 600; color: var(--weiss); }

@media (max-width: 560px) {
  .termin { grid-template-columns: 52px 1fr; }
  .termin .merker { grid-column: 2; justify-self: start; }
  /* Unter dem Text statt daneben – und linksbündig, weil dort auch der
     Text beginnt. */
  .termin__marken {
    grid-column: 2; justify-self: start;
    flex-direction: row; align-items: center; flex-wrap: wrap;
  }
}

/* ---------- 20. Blättern --------------------------------------------- */

.blaettern { display: flex; flex-wrap: wrap; gap: 6px; }
.blaettern a, .blaettern__hier {
  display: inline-block; min-width: 40px; text-align: center;
  padding: .45em .6em; border: 1px solid var(--linie-stark); border-radius: var(--radius-s);
  text-decoration: none; font-size: var(--t-s);
}
.blaettern a { background: var(--flaeche); color: var(--text); }
.blaettern a:hover { border-color: var(--gelb); color: var(--gelb); }
.blaettern__hier { background: var(--gelb); border-color: var(--gelb); color: #111213; font-weight: 600; }

/* ---------- 21. Facebook-Karten -------------------------------------- */

.fb-karte { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.fb-karte > :not(.fb-bild) { padding-inline: 20px; }
.fb-karte > :first-child:not(.fb-bild) { padding-top: 20px; }
.fb-karte > :last-child { padding-bottom: 20px; }
.fb-bild { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; margin-bottom: 16px; }

/* ---------- 22. Nächstes Heimspiel ----------------------------------- */

.matchblock {
  display: grid; gap: 18px 22px; align-items: center;
  grid-template-columns: 1fr auto 1fr;
  padding: 26px; border-radius: var(--radius);
  background: linear-gradient(150deg, rgba(255,194,32,.10) 0%, rgba(23,24,26,.9) 55%);
  border: 1px solid var(--linie); box-shadow: var(--schatten);
}

/* Die dunkle Fassung auf der Startseite.
   Zwei weiche Lichter aus den Ecken – Vereinsgrün von rechts oben, Gelb
   von links unten – auf schwarzem Grund. Dieselbe Handschrift wie auf
   der Fanseite der Heimspielorganisation, damit beide Seiten erkennbar
   zusammengehören. Der ganze Block ist ein Link. */
.matchblock--dunkel {
  position: relative; overflow: hidden;
  grid-template-columns: auto 1fr auto 1fr auto;
  text-decoration: none;
  border: 0;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(0, 144, 69, .34) 0%, rgba(0, 144, 69, 0) 58%),
    radial-gradient(90% 120% at 0% 100%, rgba(255, 194, 32, .18) 0%, rgba(255, 194, 32, 0) 55%),
    #16181b;
  box-shadow: 0 18px 44px -22px rgba(17, 18, 19, .75);
  transition: transform .22s ease, box-shadow .22s ease;
}
.matchblock--dunkel > * { position: relative; z-index: 1; }

/* Ein Lichtstreifen, der beim Überfahren durchläuft – der einzige
   Hinweis, dass der Block anklickbar ist. Wer das nicht sehen kann,
   verliert nichts: Der Text darunter sagt dasselbe. */
.matchblock__schein {
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,.07) 50%, transparent 62%);
  transform: translateX(-100%);
  transition: transform .7s ease;
}
.matchblock--dunkel:hover, .matchblock--dunkel:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 24px 52px -22px rgba(17, 18, 19, .85);
}
.matchblock--dunkel:hover .matchblock__schein,
.matchblock--dunkel:focus-visible .matchblock__schein { transform: translateX(100%); }
.matchblock--dunkel:focus-visible { outline: 2px solid var(--gelb); outline-offset: 3px; }

.matchblock--dunkel .wappen-klein {
  width: 46px; height: 46px;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, .5));
}
.matchblock--dunkel .wappen-klein--leer { background: rgba(255, 255, 255, .12); }

.matchblock__wann { grid-column: 1 / -1; }
.matchblock__hin {
  grid-column: 1 / -1; justify-self: center;
  display: inline-flex; align-items: center; gap: 7px;
  font-size: var(--t-xs); font-weight: 700; color: var(--gelb);
}
.matchblock__hin span { transition: transform .2s ease; }
.matchblock--dunkel:hover .matchblock__hin span { transform: translateX(4px); }

.matchblock__team { text-align: center; }
.matchblock__team b {
  display: block; font-family: var(--schrift-titel); font-size: clamp(1.15rem, 2.5vw, 1.8rem);
  font-weight: 800; letter-spacing: -.02em; color: #fff; line-height: 1.08;
}
.matchblock__gegen { font-family: var(--schrift-titel); font-weight: 700; color: var(--gelb); font-size: 1.25rem; }
.matchblock__wann { grid-column: 1 / -1; text-align: center; color: var(--leise); font-size: var(--t-s); }

@media (max-width: 760px) {
  .matchblock, .matchblock--dunkel { grid-template-columns: 1fr; text-align: center; }
  .matchblock--dunkel .wappen-klein { margin: 0 auto; }
  /* Untereinander gehört das Wappen über den Namen, nicht daneben. */
  .matchblock--dunkel { gap: 4px 0; }
  .matchblock--dunkel .matchblock__team { margin-bottom: 10px; }
  .matchblock--dunkel .matchblock__gegen { margin-bottom: 10px; }
  .matchblock--dunkel .matchblock__wann,
  .matchblock--dunkel .matchblock__hin { margin-top: 12px; }
}

/* Abdunkelnde Fläche über einem Sektions-Hintergrundbild, damit der Text
   auch auf hellen Grafiken lesbar bleibt. */
.hero__flaeche {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(150deg, rgba(14,15,16,.72) 0%, rgba(14,15,16,.92) 70%);
}
.hero--sektion { background-size: cover; background-position: center; padding-block: clamp(40px, 6vw, 76px); }

/* Eigene Mannschaft in der Tabelle hervorheben */
tbody tr.hervor td { background: rgba(255,194,32,.10); font-weight: 600; }
tbody tr.hervor td:first-child { box-shadow: inset 3px 0 0 var(--gelb); }

/* ---------- 23. Bereichskacheln der Startseite ------------------------
   Die Punkte, die nicht mehr in der Menüleiste stehen: eine grosse Zahl,
   darunter das Wort. Wer sucht, findet sie hier statt oben.
   -------------------------------------------------------------------- */

.bereich {
  display: grid; gap: 2px; align-content: start;
  padding: 20px; text-decoration: none; color: inherit;
  background: var(--flaeche); border: 1px solid var(--linie);
  border-radius: var(--radius); box-shadow: var(--schatten);
  transition: border-color .15s ease, transform .15s ease;
}
.bereich:hover { border-color: var(--gelb); transform: translateY(-2px); color: inherit; }
.bereich__bild {
  display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 12px;
  border-radius: 10px; background: rgba(255,194,32,.12); color: var(--gelb);
}
.bereich:hover .bereich__bild { background: var(--gelb); color: #111213; }
.bereich b {
  font-family: var(--schrift-titel); font-size: 1.9rem; font-weight: 800;
  line-height: 1; letter-spacing: -.03em; color: #fff;
}
.bereich__wort { font-weight: 600; font-size: var(--t-s); color: #fff; margin-top: 4px; }
.bereich__text { font-size: var(--t-xs); color: var(--leise); }

/* Startseiten-Kopf etwas höher, damit das Foto rechts Platz hat. */
.hero--start { min-height: clamp(440px, 66vh, 660px); display: grid; align-items: center; }

@media (max-width: 860px) {
  /* Am Handy steht das Foto hinter dem Text statt daneben. */
  .hero__foto {
    width: 100%; opacity: .28;
    clip-path: none;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 70%);
            mask-image: linear-gradient(180deg, transparent 0%, #000 70%);
  }
}

/* ---------- 24. Formularblatt -----------------------------------------
   Anmeldeformulare stehen hell, mittig und auf einem eigenen Blatt.
   Wer Felder ausfüllt, soll lesen können – nicht gegen dunklen Grund
   ankämpfen. Deshalb ist der Abschnitt darum immer .abschnitt--hell.
   -------------------------------------------------------------------- */

.abschnitt--formular { padding-block: clamp(40px, 6vw, 84px); }

.formularblatt {
  width: min(100%, 620px); margin-inline: auto;
  background: var(--flaeche); border: 1px solid var(--linie);
  border-radius: var(--radius); box-shadow: var(--schatten);
  padding: clamp(24px, 4vw, 44px);
  overflow: hidden;
}
.formularblatt > h1 { font-size: clamp(1.5rem, 4vw, 2.1rem); margin-bottom: .6em; }
.formularblatt .feld { max-width: none; margin-inline: auto; }
.formularblatt form { margin-top: 26px; }
.formularblatt .knopf { min-width: 220px; justify-content: center; }
.formularblatt p { margin-inline: auto; }

/* Bild der Veranstaltung über dem Formular – randlos bis an die Kanten. */
.formularblatt__bild {
  height: clamp(130px, 22vw, 190px);
  margin: calc(clamp(24px, 4vw, 44px) * -1) calc(clamp(24px, 4vw, 44px) * -1) 26px;
  background-size: cover; background-position: center;
  border-bottom: 3px solid var(--gelb);
}

/* ---------- 25. Karten mit Bild ---------------------------------------
   Für die Dashboard-Karten: ein schmaler Bildstreifen über dem Inhalt,
   randlos. Fehlt ein Bild, fällt der Streifen weg und die Karte sieht
   aus wie bisher.
   -------------------------------------------------------------------- */

.karte--bild { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.karte--bild > :not(.kartenbild) { padding-inline: 22px; }
.karte--bild > :first-child:not(.kartenbild) { padding-top: 22px; }
.karte--bild > :last-child { padding-bottom: 22px; }

.kartenbild {
  display: block; height: 132px; background-size: cover; background-position: center;
  border-bottom: 2px solid var(--gelb); margin-bottom: 18px; position: relative;
}
/* Leichter Verlauf nach unten, damit die Kante zum Text ruhig bleibt. */
.kartenbild::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(14,15,16,.35) 100%);
}
.abschnitt--hell .kartenbild::after {
  background: linear-gradient(180deg, transparent 55%, rgba(16,18,20,.18) 100%);
}

/* ---------- 26. Kursblatt ---------------------------------------------
   Über dem Anmeldeformular: links die Eckdaten als Liste, rechts die
   ausführliche Beschreibung. Bei schmalen Schirmen untereinander.
   -------------------------------------------------------------------- */

.kursblatt {
  margin: 0 0 40px;
  display: grid; grid-template-columns: minmax(300px, 380px) 1fr; gap: 44px;
  align-items: start;
}
.kursblatt__daten {
  background: var(--flaeche); border: 1px solid var(--linie);
  border-radius: var(--radius); padding: 22px; box-shadow: var(--schatten);
}
.kursblatt__text { max-width: none; }
@media (max-width: 900px) { .kursblatt { grid-template-columns: 1fr; gap: 26px; } }

/* Untereinander statt nebeneinander: Datumsangaben sind lang, in zwei
   Spalten brechen sie über drei Zeilen und sehen zerrissen aus. */
.eckdaten { display: grid; gap: 14px; margin: 0; }
.eckdaten dt {
  font-size: var(--t-xs); font-weight: 600; text-transform: uppercase;
  letter-spacing: .1em; color: var(--leise); margin-bottom: 2px;
}
.eckdaten dd { margin: 0; font-weight: 600; }
.eckdaten dd + dt { padding-top: 10px; border-top: 1px solid var(--linie); }

/* ---------- 27. Zeitstrahl --------------------------------------------
   Chronik als Liste mit durchgehender Linie. Die Jahreszahl steht links,
   der Punkt sitzt auf der Linie.
   -------------------------------------------------------------------- */

.zeitstrahl { list-style: none; margin: 0; padding: 0; max-width: none; }
.zeitstrahl__punkt {
  display: grid; grid-template-columns: 110px 1fr; gap: 0 26px;
  position: relative; padding: 0 0 26px 0; margin: 0;
}
.zeitstrahl__punkt::before {
  content: ""; position: absolute; left: 110px; top: 10px; bottom: 0;
  width: 2px; background: var(--linie); transform: translateX(11px);
}
.zeitstrahl__punkt:last-child::before { display: none; }
.zeitstrahl__punkt::after {
  content: ""; position: absolute; left: 110px; top: 7px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--gelb); transform: translateX(7px);
}
.zeitstrahl__jahr {
  text-align: right; font-weight: 700; font-size: var(--t-s);
  color: var(--gelb-d); padding-top: 2px;
}
.abschnitt--hell .zeitstrahl__jahr { color: var(--gelb-d); }
.zeitstrahl__inhalt { padding-left: 22px; }
.zeitstrahl__inhalt h3 { margin: 0 0 .25em; font-size: var(--t-m); }

@media (max-width: 620px) {
  .zeitstrahl__punkt { grid-template-columns: 1fr; gap: 4px; }
  .zeitstrahl__punkt::before, .zeitstrahl__punkt::after { display: none; }
  .zeitstrahl__jahr { text-align: left; }
  .zeitstrahl__inhalt { padding-left: 0; }
}


/* ---------- 28. Formular als Popup -------------------------------------
   Über :target statt JavaScript – dann funktioniert es auch, wenn im
   Browser Skripte abgeschaltet sind. Der Hintergrund wird unscharf.
   -------------------------------------------------------------------- */

.popup {
  position: fixed; inset: 0; z-index: 200;
  display: none; place-items: center;
  padding: clamp(12px, 3vw, 40px);
  overflow-y: auto;
}
.popup:target { display: grid; }

.popup__grund {
  position: fixed; inset: 0;
  background: rgba(8, 9, 10, .72);
  -webkit-backdrop-filter: blur(10px) saturate(.85);
          backdrop-filter: blur(10px) saturate(.85);
}
.popup__blatt {
  position: relative; z-index: 1;
  width: min(100%, 620px); margin: auto;
  background: var(--flaeche); border: 1px solid var(--linie);
  border-radius: var(--radius); box-shadow: 0 40px 80px -30px rgba(0,0,0,.8);
  overflow: hidden;
  animation: popup-auf .22s ease-out;
}
@keyframes popup-auf {
  from { opacity: 0; transform: translateY(14px) scale(.985); }
  to   { opacity: 1; transform: none; }
}

/* Im Popup gilt die helle Palette – Formulare bleiben lesbar. */
.popup__blatt {
  --flaeche: #ffffff; --sanft: #f5f6f3; --linie: #e4e5e0; --linie-stark: #c8cac3;
  --text: #16181b; --leise: #656b72; --weiss: #16181b;
  --gelb-d: #a97f00; --gruen: #007136; --gruen-d: #009045; --rot: #c0392b;
  color: var(--text);
}
.popup__blatt h1, .popup__blatt h2, .popup__blatt h3 { color: var(--text); }
.popup__blatt a { color: var(--gruen); }
.popup__blatt .vorzeile { color: var(--gelb-d); }
.popup__blatt .feld input, .popup__blatt .feld select, .popup__blatt .feld textarea {
  background: #fff; color: var(--text); border-color: var(--linie-stark);
}
.popup__blatt .feld input::placeholder { color: #9aa0a6; }
.popup__blatt .feld--haken input { accent-color: var(--gelb-d); }
.popup__blatt .hinweis          { background: #ecf7f1; }
.popup__blatt .hinweis--warnung { background: #fff8e6; }
.popup__blatt .hinweis--fehler  { background: #fdeeec; }
.popup__blatt .merker--gut  { background: #e6f4ec; color: #00662f; border-color: #9cd4b4; }
.popup__blatt .merker--stop { background: #fdecea; color: #a4291c; border-color: #eaa79e; }

.popup__inhalt { padding: clamp(22px, 4vw, 38px); }
.popup__inhalt > :last-child { margin-bottom: 0; }
.popup__bild { height: clamp(120px, 20vw, 170px); background-size: cover; background-position: center; border-bottom: 3px solid var(--gelb); }

.popup__zu {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  display: grid; place-items: center; width: 36px; height: 36px;
  border-radius: 50%; background: rgba(255,255,255,.9); color: #16181b;
  text-decoration: none; font-size: 20px; line-height: 1; border: 1px solid var(--linie);
}
.popup__zu:hover { background: #fff; color: var(--rot); }

/* Fällt zurück auf eine normale Anzeige, wenn kein :target greift –
   etwa wenn jemand die Adresse ohne Raute aufruft. */
.popup--offen { display: grid; }

/* Verwaltungslinks im Fussbereich – mit Symbol, etwas zurückgenommen. */
.fuss a .symbol { color: var(--gelb); opacity: .75; margin-right: 5px; vertical-align: -.2em; }
.fuss a:hover .symbol { opacity: 1; }

/* ---------- 29. Brotkrümel --------------------------------------------
   Zeigt, wo man ist. Steht im Kopfbereich über der Überschrift.
   -------------------------------------------------------------------- */

.krumen { margin-bottom: 14px; }
.krumen ol {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0;
  list-style: none; margin: 0; padding: 0; max-width: none;
  font-size: var(--t-xs);
}
.krumen li { display: flex; align-items: center; }
.krumen li + li::before {
  content: "›"; margin: 0 9px; color: var(--leise); opacity: .7;
}
.krumen a { color: var(--leise); text-decoration: none; }
.krumen a:hover { color: var(--gelb); text-decoration: underline; }
.krumen [aria-current="page"] { color: var(--gelb); font-weight: 600; }

/* Auf hellem Grund die dunklere Gelbstufe. */
.abschnitt--hell .krumen [aria-current="page"] { color: var(--gelb-d); }
.abschnitt--hell .krumen a:hover { color: var(--gelb-d); }

/* ---------- 30. Formularraster ----------------------------------------
   Anmeldeformulare rechnen in Sechsteln: Vorname, Name und Geburtsdatum
   nehmen je zwei davon und stehen dadurch in einer Zeile. Unter 720px
   fällt alles auf volle Breite zurück – nebeneinander wäre dort unlesbar.
   -------------------------------------------------------------------- */

.feldraster {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px 18px;
  align-items: start;
}
.feldplatz { grid-column: span 6; min-width: 0; }
.feldplatz--1 { grid-column: span 1; }
.feldplatz--2 { grid-column: span 2; }
.feldplatz--3 { grid-column: span 3; }
.feldplatz--4 { grid-column: span 4; }
.feldplatz--5 { grid-column: span 5; }

@media (max-width: 720px) {
  .feldplatz, .feldplatz--1, .feldplatz--2, .feldplatz--3,
  .feldplatz--4, .feldplatz--5 { grid-column: span 6; }
}

/* Block mit Zwischenüberschrift – kein Rahmen, nur Luft und eine Linie. */
.feldblock {
  border: 0; padding: 0; margin: 26px 0 0;
}
.feldblock > legend {
  padding: 0 0 8px;
  font-size: var(--t-xs); font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--leise);
  border-bottom: 1px solid var(--linie);
  width: 100%; margin-bottom: 14px;
}

.pflichtstern { color: var(--gelb-d); font-weight: 700; }

/* ---------- 31. Auswahl mit sichtbaren Möglichkeiten ------------------ */

.wahlfeld { border: 0; padding: 0; margin: 0 0 10px; min-width: 0; }
.wahlfeld > legend {
  padding: 0; margin-bottom: 8px;
  font-size: var(--t-s); font-weight: 600; color: var(--text);
}
.wahlliste { display: flex; flex-direction: column; gap: 2px; }
.wahlliste--reihe { flex-direction: row; flex-wrap: wrap; gap: 8px 26px; }

.wahl {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 7px 10px; margin: 0 -10px;
  border-radius: 8px; cursor: pointer;
  font-size: var(--t-s); line-height: 1.45;
  transition: background .12s ease;
}
.wahl:hover { background: rgba(0, 0, 0, .04); }
.wahl input { margin: 2px 0 0; flex: 0 0 auto; accent-color: var(--gelb-d); }
.wahl span { min-width: 0; }

/* Die gewählte Möglichkeit auch am Umfeld erkennbar machen, nicht nur am
   Punkt im Kreis – das sieht man beim Überfliegen leichter. */
.wahl:has(input:checked) { background: rgba(233, 196, 63, .18); font-weight: 500; }
.wahl:has(input:focus-visible) { outline: 2px solid var(--gelb-d); outline-offset: 1px; }

/* ---------- 32. Zustimmung mit Rechtstext ----------------------------- */

.zustimmung {
  border: 1px solid var(--linie); border-radius: 12px;
  padding: 16px 18px; margin: 10px 0;
  background: rgba(0, 0, 0, .02);
}
.zustimmung > .feld--haken { margin: 0; }
.zustimmung__text {
  margin-top: 10px; padding-top: 10px;
  border-top: 1px solid var(--linie);
  font-size: var(--t-xs); line-height: 1.6; color: var(--leise);
  max-height: 190px; overflow-y: auto;
}
.zustimmung__text p { margin: 0 0 .6em; max-width: none; }
.zustimmung__text ul { margin: 0 0 .6em; padding-left: 1.2em; }
.zustimmung__text li { margin-bottom: .25em; }
.zustimmung__text > :last-child { margin-bottom: 0; }

/* Breite Fassung für Formulare, die in Spalten laufen. 620px reichen für
   ein paar Zeilen, aber nicht für Vorname/Name/Geburtsdatum nebeneinander. */
.popup--breit .popup__blatt { width: min(100%, 880px); }

/* Die neuen Formularbausteine gehören auch im Popup auf hellen Grund. */
.popup__blatt .wahl:hover              { background: rgba(0,0,0,.05); }
.popup__blatt .wahl:has(input:checked) { background: rgba(233,196,63,.22); }
.popup__blatt .wahl input              { accent-color: var(--gelb-d); }
.popup__blatt .zustimmung              { background: var(--sanft); border-color: var(--linie); }
.popup__blatt .feldblock > legend      { color: var(--leise); border-color: var(--linie); }

/* Im Raster bestimmt die Spalte die Breite, nicht die 520px-Grenze der
   freistehenden Felder. Sonst bliebe rechts neben jedem Feld Luft, die
   das Raster gerade vermeiden soll. */
.feldraster .feld,
.feldraster .feld--haken { max-width: none; }
.feldraster .feld { margin-bottom: 14px; }
.feldraster .feld textarea { min-height: 110px; }

/* ---------- 33. Namensgeber-Schriftzug --------------------------------
   Das Bild bringt seinen eigenen Grund mit, deshalb steht es als
   eigener Streifen und nicht frei auf einer Fläche. Angeschnitten wie
   alles andere, damit es sich einfügt.
   -------------------------------------------------------------------- */

.stadionband {
  --schnitt-klein: 14px;
  max-width: 720px; margin: 0 0 6px;
  clip-path: polygon(var(--schnitt-klein) 0, 100% 0,
                     calc(100% - var(--schnitt-klein)) 100%, 0 100%);
  line-height: 0;
}
.stadionband img { width: 100%; height: auto; display: block; }

.stadionband--klein { --schnitt-klein: 9px; max-width: 280px; margin-top: 14px; }

/* Mittig dort, wo der Abschnitt selbst mittig gesetzt ist. */
.mittig > .stadionband, .stadionband--mitte { margin-left: auto; margin-right: auto; }

@media (max-width: 620px) { .stadionband { max-width: 100%; } }

/* ---------- 34. Personenkarte -----------------------------------------
   Drei feste Spalten. Mit auto-fit wurden daraus auf breiten Schirmen
   fünf, und dann standen lange E-Mail-Adressen über den Kartenrand
   hinaus. Drei Spalten sind breit genug für jede Adresse.
   -------------------------------------------------------------------- */

.personenraster {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 980px) { .personenraster { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .personenraster { grid-template-columns: 1fr; } }

.karte--person { display: flex; gap: 16px; align-items: flex-start; }
.karte--person__text { min-width: 0; flex: 1 1 auto; }
.karte--person h3 { font-size: var(--t-m); margin-bottom: 3px; }
.karte--person .funktion { margin-bottom: 10px; }

.portrait {
  flex: 0 0 auto; width: 64px; height: 64px;
  border-radius: 50%; object-fit: cover; object-position: 50% 50%;
  border: 2px solid var(--gelb); background: var(--sanft);
}
.portrait--zeichen {
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700; letter-spacing: .02em;
  color: var(--gelb); border-color: var(--linie-stark);
  background: rgba(255, 194, 32, .1);
}
.abschnitt--hell .portrait--zeichen,
.abschnitt--sanft .portrait--zeichen { color: var(--gelb-d); }

/* Kontaktwege: Zeichen davor statt Beschriftung. */
.kontaktliste { list-style: none; margin: 0; padding: 0; max-width: none; }
.kontaktliste li {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: var(--t-xs); line-height: 1.5; margin-bottom: 4px;
}
.kontaktliste .symbol { flex: 0 0 auto; margin-top: 2px; color: var(--leise); }
.kontaktliste a { min-width: 0; }

/* Lange Adressen dürfen umbrechen, statt die Karte zu sprengen. */
.bricht { overflow-wrap: anywhere; }

/* Weg zur Sektion. */
.sektionsweg { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.merker--weg {
  display: inline-flex; align-items: center; gap: 5px;
  text-decoration: none; cursor: pointer;
  transition: border-color .14s ease, color .14s ease;
}
.merker--weg:hover { border-color: var(--gelb); color: var(--gelb-d); }
.merker--weg .symbol { flex: 0 0 auto; }

@media (max-width: 420px) {
  .karte--person { flex-direction: column; }
}

/* ---------- 35. Karte mit Bildkopf ------------------------------------ */

.karte--ohne-rand { padding: 0; overflow: hidden; }
.karte--ohne-rand .karte__text { padding: 22px; }
.karte__bild {
  display: block; width: 100%; height: 160px;
  object-fit: cover; object-position: 50% 50%;
  border-bottom: 3px solid var(--gelb);
}

/* ---------- 36. Sponsorengalerie --------------------------------------
   Fünf Spalten je Seite, seitenweise weiterschieben. Getragen von
   scroll-snap – Wischen am Handy funktioniert dadurch von selbst.
   Jedes Logo steht auf einer weissen Kachel: Logos bringen ihren
   eigenen weissen Grund mit, und auf einer farbigen Fläche sähe man
   sonst überall Kanten.
   -------------------------------------------------------------------- */

.sgalerie { position: relative; }

.sgalerie__bahn {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;                 /* die Punkte zeigen die Stelle */
  border-radius: var(--radius);
}
.sgalerie__bahn::-webkit-scrollbar { display: none; }
.sgalerie__bahn:focus-visible { outline: 2px solid var(--gelb); outline-offset: 3px; }

.sgalerie__seite {
  flex: 0 0 100%;
  scroll-snap-align: start;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(var(--sg-zeilen, 4), 1fr);
  gap: 10px;
}

.sgalerie__feld {
  display: flex; align-items: center; justify-content: center;
  min-height: 92px; padding: 12px 14px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 10px;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.sgalerie__feld img {
  max-height: 54px; max-width: 100%;
  width: auto; height: auto; object-fit: contain;
}
a.sgalerie__feld:hover, a.sgalerie__feld:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(0, 0, 0, .16);
  box-shadow: 0 10px 22px -14px rgba(0, 0, 0, .5);
}

/* Auffüllfelder halten das Raster, sollen aber nicht als Kachel wirken. */
.sgalerie__feld--leer { background: transparent; border-color: transparent; }

/* ---- Pfeile ---- */
.sgalerie__pfeil {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 42px; height: 42px; padding: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; line-height: 1;
  color: #16181b; background: #fff;
  border: 1px solid rgba(0, 0, 0, .12); border-radius: 50%;
  box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .45);
  cursor: pointer;
  transition: opacity .16s ease, transform .16s ease;
}
.sgalerie__pfeil--zurueck { left: -14px; }
.sgalerie__pfeil--vor     { right: -14px; }
.sgalerie__pfeil:hover    { transform: translateY(-50%) scale(1.07); }
.sgalerie__pfeil.ist-aus  { opacity: .25; pointer-events: none; }

/* ---- Punkte ---- */
.sgalerie__punkte {
  display: flex; justify-content: center; gap: 7px; margin-top: 18px;
}
.sgalerie__punkt {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(0, 0, 0, .2); transition: background .16s ease, width .16s ease;
}
.sgalerie__punkt.ist-hier { background: var(--gelb-d, #a97f00); width: 20px; border-radius: 4px; }

.ist-einseitig .sgalerie__punkte, .ist-einseitig .sgalerie__pfeil { display: none; }

@media (max-width: 900px) {
  .sgalerie__seite { grid-template-columns: repeat(3, 1fr); }
  .sgalerie__pfeil { display: none; }        /* am Handy wird gewischt */
}
@media (max-width: 520px) {
  .sgalerie__seite { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .sgalerie__feld  { min-height: 76px; padding: 10px; }
  .sgalerie__feld img { max-height: 44px; }
}

/* ---------- 37. Hauptsponsoren im Fuss --------------------------------
   Oberste Zeile der Fusszeile, durch eine Linie vom Rest getrennt.
   Kleiner als auf der Sponsorenseite – hier sind sie ein Gruss zum
   Abschied, keine eigene Seite.
   -------------------------------------------------------------------- */

.fuss__sponsoren {
  padding-bottom: 30px; margin-bottom: 34px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.fuss__sponsoren .vorzeile { margin-bottom: 16px; }

.sponsorband--fuss {
  display: flex; flex-wrap: wrap; gap: 12px;
  align-items: stretch; justify-content: flex-start;
}
.sponsorband--fuss > a,
.sponsorband--fuss > img {
  display: flex; align-items: center; justify-content: center;
  min-height: 62px; width: 140px; padding: 10px 14px;
  background: #fff; border: 0; border-radius: 8px;
  transition: transform .16s ease, box-shadow .16s ease;
}
.sponsorband--fuss img {
  max-height: 38px; max-width: 100%;
  width: auto; height: auto; object-fit: contain;
}
.sponsorband--fuss > a:hover, .sponsorband--fuss > a:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px -12px rgba(0, 0, 0, .9);
}

@media (max-width: 520px) {
  .sponsorband--fuss > a, .sponsorband--fuss > img { width: 116px; min-height: 54px; }
  .sponsorband--fuss img { max-height: 32px; }
}

/* ---------- 38. Namensgeber und Stadionsponsor ------------------------
   Nebeneinander, gleich breit. Bei nur einem der beiden nimmt er die
   Mitte ein, statt links zu kleben.
   -------------------------------------------------------------------- */

.hauptsponsoren {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(20px, 3vw, 44px);
  justify-content: center;
  max-width: 900px; margin-inline: auto;
}
.hauptsponsor .vorzeile { margin-bottom: 14px; }
.hauptsponsor .sponsorband--gross { grid-template-columns: 1fr; }

@media (max-width: 620px) {
  .hauptsponsoren { grid-template-columns: 1fr; }
}

/* ---------- 39. Beitragskarte -----------------------------------------
   Bild oben, Text darunter. Karten ohne Bild stehen daneben ohne Lücke –
   der Text beginnt dann einfach oben.
   -------------------------------------------------------------------- */

.karte--beitrag { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.karte--beitrag .karte__text { padding: 20px 22px; flex: 1 1 auto; }
.karte--beitrag h3 { font-size: var(--t-m); margin-bottom: 6px; }
.karte--beitrag h3 a { text-decoration: none; }
.karte--beitrag h3 a:hover { text-decoration: underline; }

.karte__bildlink { display: block; line-height: 0; }
.karte--beitrag .karte__bild {
  width: 100%; height: 180px;
  object-fit: cover; object-position: 50% 50%;
  border-bottom: 3px solid var(--gelb);
  transition: transform .4s ease;
}
.karte--beitrag:hover .karte__bild { transform: scale(1.04); }
.karte--beitrag .karte__bildlink { overflow: hidden; }

@media (max-width: 520px) {
  .karte--beitrag .karte__bild { height: 150px; }
}

/* ---------- 40. Personenliste in einer Karte --------------------------
   Mehrere Personen je Sektion. Ohne Trennlinien liefen fünf Einträge
   optisch ineinander; der Name ist der Anker, die Aufgabe darunter,
   die Kontaktwege eingerückt.
   -------------------------------------------------------------------- */

.personenliste { list-style: none; margin: 0; padding: 0; max-width: none; }
.personenliste > li {
  padding: 12px 0;
  border-top: 1px solid var(--linie);
}
.personenliste > li:first-child { border-top: 0; padding-top: 4px; }
.personenliste > li:last-child  { padding-bottom: 0; }
.personenliste > li > b { display: block; font-size: var(--t-s); line-height: 1.3; }
.personenliste .funktion { display: block; margin-bottom: 7px; }
.personenliste .kontaktliste { padding-left: 0; }

/* Sektionsname als Weg zur Sektionsseite. */
.karte-titel a {
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none; color: inherit;
}
.karte-titel a:hover { color: var(--gelb-d); }

/* ---------- 41. Kontaktknopf im Kopf -----------------------------------
   Steht neben dem Menü, nicht darin. Auf schmalen Geräten wandert er
   vor den Menüknopf, damit man ihn ohne Aufklappen erreicht.
   -------------------------------------------------------------------- */

.kopf-kontakt {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; gap: 7px;
  white-space: nowrap;
}
.kopf-kontakt .symbol { flex: 0 0 auto; }

@media (max-width: 1080px) {
  /* Beschriftung weg, das Zeichen bleibt – so passt die Zeile weiter. */
  .kopf-kontakt span { display: none; }
  .kopf-kontakt { padding-inline: .7em; }
}
@media (max-width: 900px) {
  /* Reihenfolge: Marke, Kontakt, Menüknopf. Der Kontakt gehört vor das
     Hamburger-Zeichen, sonst versteckt er sich hinter dem Menü. */
  .kopfleiste__innen { flex-wrap: wrap; }
  .marke        { order: 1; }
  .kopf-kontakt { order: 2; margin-left: auto; }
  .menue-knopf  { order: 3; }
  .navi         { order: 4; }
}

/* Zweite Fusszeile: seltener Gebrauchtes, in einer Reihe statt in Spalten. */
.fuss__zusatz {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 10px 34px;
  margin-top: 30px; padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .1);
}
.fuss__zusatz h3 { margin-bottom: 6px; }
.fuss__zusatz p  { margin: 0; }
.fuss__zusatz .symbol { vertical-align: -2px; margin-right: 3px; }

/* ---------- 42. Bildergalerie im Beitrag ------------------------------
   Anklicken vergrössert über :target – kein JavaScript nötig. Das
   Vergrösserte liegt als eigener Block am Seitenende und wird nur
   sichtbar, wenn seine Adresse angesprungen wird.
   -------------------------------------------------------------------- */

.bildergalerie {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}
.bildergalerie__feld {
  position: relative; display: block; overflow: hidden;
  border-radius: var(--radius-s); line-height: 0;
  background: var(--sanft);
}
.bildergalerie__feld img {
  width: 100%; height: 170px; object-fit: cover;
  transition: transform .35s ease;
}
.bildergalerie__feld:hover img { transform: scale(1.05); }
.bildergalerie__text {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 22px 12px 9px;
  font-size: var(--t-xs); line-height: 1.35; color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,.78));
}

/* ---- Vergrössert ---- */
.lupe {
  display: none; position: fixed; inset: 0; z-index: 90;
  align-items: center; justify-content: center; padding: 4vmin;
}
.lupe:target { display: flex; }
.lupe__grund {
  position: absolute; inset: 0;
  background: rgba(8, 9, 11, .9); backdrop-filter: blur(6px);
}
.lupe__blatt {
  position: relative; z-index: 1; margin: 0;
  max-width: min(100%, 1200px); max-height: 92vh;
  display: flex; flex-direction: column; gap: 10px;
}
.lupe__blatt img {
  max-width: 100%; max-height: 84vh;
  width: auto; height: auto; object-fit: contain;
  border-radius: var(--radius-s);
}
.lupe__blatt figcaption {
  text-align: center; font-size: var(--t-xs); color: #d8dade;
}

.lupe__zu, .lupe__pfeil {
  position: absolute; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  color: #fff; text-decoration: none;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 50%;
  transition: background .14s ease;
}
.lupe__zu:hover, .lupe__pfeil:hover { background: rgba(255, 255, 255, .26); }
.lupe__zu    { top: 3vmin; right: 3vmin; width: 42px; height: 42px; font-size: 26px; line-height: 1; }
.lupe__pfeil { top: 50%; transform: translateY(-50%); width: 48px; height: 48px; font-size: 32px; line-height: 1; }
.lupe__pfeil--zurueck { left: 3vmin; }
.lupe__pfeil--vor     { right: 3vmin; }

@media (max-width: 620px) {
  .bildergalerie { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
  .bildergalerie__feld img { height: 130px; }
  .lupe__pfeil { width: 40px; height: 40px; font-size: 26px; }
}

/* ---------- 43. SPG Machland -------------------------------------------
   Blau statt Gelb. Die Spielgemeinschaft ist ein eigener Verein mit
   eigener Adresse – der Farbwechsel sagt das, bevor man klickt.
   Der kleine Pfeil oben rechts zeigt, dass die Seite gewechselt wird.
   -------------------------------------------------------------------- */

.kachel--spg {
  --spg-blau:      #1b3a8c;
  --spg-blau-hell: #2f5fd0;
  background: linear-gradient(150deg, var(--spg-blau-hell) 0%, var(--spg-blau) 62%, #12275e 100%);
  border-color: rgba(255, 255, 255, .14);
}
/* Der dunkle Verlauf der gewöhnlichen Kachel würde das Blau erschlagen. */
.kachel--spg::after {
  background: linear-gradient(160deg, rgba(0, 0, 0, 0) 0%, rgba(4, 10, 30, .55) 82%);
}
.kachel--spg:hover { border-color: #7fa3f5; }
.kachel--spg .kachel__strich { background: #fff; }

.kachel__zusatz {
  display: block; margin-top: 5px;
  font-size: var(--t-xs); line-height: 1.35;
  color: rgba(255, 255, 255, .8);
}

/* Zeichen für „führt woanders hin". */
.kachel--spg::before {
  content: "↗";
  position: absolute; top: 14px; right: 16px; z-index: 2;
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: #fff;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 50%;
  transition: background .16s ease, transform .16s ease;
}
.kachel--spg:hover::before { background: rgba(255, 255, 255, .3); transform: translate(2px, -2px); }

/* ---------- 44. Galeriekacheln und Einsendeseite -----------------------
   Kacheln mit Bild, Titel im Band darunter. Die Einsendeseite ist
   bewusst schlicht: Wer sie öffnet, soll Bilder ablegen und sonst
   nichts – kein Menü, kein Ablenken.
   -------------------------------------------------------------------- */

.galeriekacheln {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.galeriekachel {
  position: relative; display: block; overflow: hidden;
  border-radius: var(--radius); text-decoration: none;
  background: var(--flaeche-hoch); border: 1px solid var(--linie);
  min-height: 200px; isolation: isolate;
}
.galeriekachel img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transition: transform .4s ease;
}
.galeriekachel:hover img { transform: scale(1.05); }
.galeriekachel::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(165deg, rgba(12,13,15,.2) 0%, rgba(12,13,15,.9) 82%);
}
.galeriekachel__band { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 18px 20px 16px; }
.galeriekachel__titel {
  display: block;
  font-family: var(--schrift-titel); font-size: 1.15rem; font-weight: 700;
  line-height: 1.15; color: #fff;
}
.galeriekachel__zusatz {
  display: block; margin-top: 5px;
  font-size: var(--t-xs); color: rgba(255,255,255,.78);
}
.galeriekachel:hover { border-color: var(--gelb); }

/* ---- Einsendeseite ---- */
.sendeblatt {
  max-width: 620px; margin-inline: auto;
  padding: clamp(24px, 4vw, 44px);
  background: var(--flaeche); border: 1px solid var(--linie);
  border-radius: var(--radius); box-shadow: var(--schatten);
}
.sendeblatt h1 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); margin-bottom: 6px; }
.sendeblatt .feld { max-width: none; }

/* Die Ablage gibt es auch im öffentlichen Teil (Einsendeseite). */
.mehrfachablage {
  position: relative; margin: 18px 0 0;
  border: 2px dashed var(--linie-stark); border-radius: 12px;
  background: var(--sanft); text-align: center;
  transition: border-color .12s ease, background .12s ease;
}
.mehrfachablage.ist-ziel { border-color: var(--gelb-d); background: #fdf6df; }
.mehrfachablage input[type=file] {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%);
}
.mehrfachablage label {
  display: block; padding: 32px 20px; cursor: pointer;
  font-size: var(--t-s); color: var(--leise);
}
.mehrfachablage label b { color: var(--text); }
.mehrfachablage > p { padding: 0 20px 16px; margin: 0; }

/* ---------- 45. Ortsangabe ---------------------------------------------
   Zeichen, Name, darunter die Adresse. Als Verweis führt sie auf die
   Karte – erkennbar am unterstrichenen Namen beim Überfahren.
   -------------------------------------------------------------------- */

.ortangabe {
  display: inline-flex; align-items: flex-start; gap: 7px;
  font-size: var(--t-s); line-height: 1.4;
  text-decoration: none; color: inherit;
}
.ortangabe .symbol { flex: 0 0 auto; margin-top: 2px; color: var(--leise); }
.ortangabe__adresse {
  display: block; font-size: var(--t-xs); color: var(--leise); margin-top: 1px;
}
.ortangabe--karte:hover > span > :first-child,
.ortangabe--karte:hover { text-decoration: underline; }
.ortangabe--karte:hover .symbol { color: var(--gelb-d); }
.abschnitt:not(.abschnitt--hell):not(.abschnitt--sanft) .ortangabe--karte:hover .symbol { color: var(--gelb); }

/* Ortslink in dichten Listen: unauffällig, bis man darüberfährt. Der
   Termin selbst ist schon ein Verweis – der Ort darf ihn nicht optisch
   überstimmen. */
.ortlink { color: inherit; text-decoration: none; border-bottom: 1px dotted currentColor; }
.ortlink:hover { color: var(--gelb-d); border-bottom-style: solid; }
.abschnitt:not(.abschnitt--hell):not(.abschnitt--sanft) .ortlink:hover { color: var(--gelb); }

/* ---------- 46. Monatsleiste, Kalenderwoche, Mannschaftsmarke ---------
   Bei siebzig Spielen zählt Orientierung: oben zu einem Monat springen,
   innerhalb der Wochen eine Trennzeile, an jeder Zeile die Mannschaft.
   -------------------------------------------------------------------- */

.monatsleiste {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 18px;
}
.monatsleiste a {
  display: flex; align-items: baseline; gap: 5px;
  padding: 8px 12px;
  font-size: var(--t-xs); text-decoration: none; color: var(--text);
  background: var(--flaeche); border: 1px solid var(--linie);
  border-radius: 8px;
  transition: border-color .14s ease, transform .14s ease;
}
.monatsleiste a:hover { border-color: var(--gelb); transform: translateY(-1px); }
.monatsleiste b { font-size: var(--t-s); }
.monatsleiste__zahl {
  padding: 1px 6px; border-radius: 20px;
  background: rgba(0, 0, 0, .07); color: var(--leise); font-size: 10px;
}
.abschnitt:not(.abschnitt--hell):not(.abschnitt--sanft) .monatsleiste__zahl {
  background: rgba(255, 255, 255, .1);
}

.monatstitel__hoch {
  font-size: .6em; text-decoration: none; opacity: 0;
  margin-left: 8px; transition: opacity .14s ease;
}
.monatstitel:hover .monatstitel__hoch { opacity: .5; }
.monatstitel__hoch:hover { opacity: 1 !important; }

.kalenderwoche {
  margin: 18px 0 6px;
  font-size: var(--t-xs); font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--leise);
}
.kalenderwoche:first-child { margin-top: 0; }

/* Mannschaftszeichen. Farbe trägt die Bedeutung, die Beschriftung
   wiederholt sie – damit es auch ohne Farbwahrnehmung lesbar bleibt.
   Heisst bewusst nicht .marke: das ist im Kopf schon die Wortmarke des
   Vereins, und die wurde von diesen Regeln mitgetroffen. */
/* Feste Breite, damit die Marken untereinander eine Spalte bilden.
   „KM“ und „Reserve“ sind unterschiedlich lang – ohne min-width
   springen sie in jeder Zeile an eine andere Stelle. */
.mannschaft {
  flex: 0 0 auto; align-self: center;
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 74px; padding: 3px 9px; border-radius: 20px;
  font-size: 10px; font-weight: 800; letter-spacing: .09em;
  text-transform: uppercase; white-space: nowrap;
  border: 1px solid transparent;
}
@media (max-width: 620px) { .mannschaft { min-width: 58px; letter-spacing: .05em; } }
.mannschaft--km  { background: rgba(255, 194, 32, .16); color: var(--gelb-d, #a97f00); border-color: rgba(255,194,32,.5); }
.mannschaft--res { background: rgba(0, 113, 54, .12);  color: var(--gruen, #007136);  border-color: rgba(0,113,54,.35); }
.mannschaft--spg { background: rgba(47, 95, 208, .12); color: #2f5fd0;                border-color: rgba(47,95,208,.35); }

.abschnitt:not(.abschnitt--hell):not(.abschnitt--sanft) .mannschaft--km  { color: var(--gelb); }
.abschnitt:not(.abschnitt--hell):not(.abschnitt--sanft) .mannschaft--res { color: #4fd48a; background: rgba(0,113,54,.22); }
.abschnitt:not(.abschnitt--hell):not(.abschnitt--sanft) .mannschaft--spg { color: #8fb0ff; background: rgba(47,95,208,.22); }

/* Heimspielzeichen: der Namensgeber-Schriftzug klein, schräg
   angeschnitten wie überall. Sagt auf einen Blick „bei uns“.
   Steht neben der Mannschaftsmarke, nicht darunter. */
.heimzeichen {
  flex: 0 0 auto; align-self: center;
  width: 92px; height: auto; display: block;
  border-radius: 3px;
  clip-path: polygon(5px 0, 100% 0, calc(100% - 5px) 100%, 0 100%);
}
@media (max-width: 620px) { .heimzeichen { width: 74px; } }

/* ---------- 47. Ehrentafel ---------------------------------------------
   Die Tafel des 100er Clubs. Bewusst wie eine Tafel und nicht wie eine
   Liste: Namen nebeneinander, gleich gross, keiner hervorgehoben – wer
   zahlt, zahlt, und die Reihenfolge ist alphabetisch, nicht nach Betrag.
   -------------------------------------------------------------------- */

.ehrentafel {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 2px;
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--linie);
}
.ehrentafel__name {
  padding: 16px 18px;
  background: var(--flaeche);
  text-align: center;
}
.ehrentafel__name b {
  display: block;
  font-size: var(--t-s); font-weight: 600; line-height: 1.3;
  color: var(--text);
}
.ehrentafel__name span {
  display: block; margin-top: 3px;
  font-size: var(--t-xs); color: var(--leise);
}

/* Ein schmaler gelber Streifen oben – das Zeichen des Vereins, ohne
   dass jeder Name eine eigene Verzierung braucht. */
.ehrentafel { position: relative; }
.ehrentafel::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: var(--gelb); z-index: 1;
}

@media (max-width: 520px) {
  .ehrentafel { grid-template-columns: repeat(2, 1fr); }
  .ehrentafel__name { padding: 12px 10px; }
}

/* ---------- 48. Wortmarke im Kopf --------------------------------------
   Das Bild statt nachgebautem Text: Schnitt und Abstände stimmen damit
   mit allem überein, was gedruckt wird.
   -------------------------------------------------------------------- */

.marke {
  /* Beide Bilder auf einer Mittellinie, kein Unterstrich am Leerraum.
     nowrap und flex-shrink 0, weil die Kopfleiste selbst umbricht –
     sonst rutscht die Wortmarke unter das Wappen. */
  align-items: center;
  flex-wrap: nowrap;
  flex: 0 0 auto;
  text-decoration: none;
}
.marke__wappen { flex: 0 0 auto; display: block; }
.marke__wort {
  display: block; height: 38px; width: auto;
  /* Die Marke ist dreizeilig – ohne diese Grenze wird sie auf schmalen
     Geräten zum Klotz neben dem Wappen. */
  max-width: 128px; object-fit: contain;
}
@media (max-width: 520px) { .marke__wort { height: 30px; } }

/* ---------- 49. Aufklappbare Menüspalten -------------------------------
   Am Schreibtisch steht alles offen. Am Handy klappt jede Spalte für
   sich – sonst ist das Menü drei Bildschirme lang.
   -------------------------------------------------------------------- */

details.mega__spalte > summary { cursor: default; list-style: none; }
details.mega__spalte > summary::-webkit-details-marker { display: none; }

@media (max-width: 900px) {
  details.mega__spalte > summary {
    cursor: pointer; position: relative;
    padding-right: 26px;
  }
  /* Pfeil, der sich beim Aufklappen dreht. */
  details.mega__spalte > summary::after {
    content: "›";
    position: absolute; right: 6px; top: 50%;
    transform: translateY(-50%) rotate(90deg);
    font-size: 18px; line-height: 1;
    transition: transform .16s ease;
  }
  details.mega__spalte[open] > summary::after {
    transform: translateY(-50%) rotate(-90deg);
  }
  details.mega__spalte > summary:hover { color: var(--gelb); }
}

/* ---------- 50. Feste Leiste unten -------------------------------------
   Kontakt, WhatsApp, Shop – drei Dinge, die man ständig braucht. Nur auf
   schmalen Geräten: am Schreibtisch steht Kontakt oben in der Leiste und
   WhatsApp und Shop im Fuss.
   -------------------------------------------------------------------- */

.schnellleiste { display: none; }

@media (max-width: 900px) {
  .schnellleiste {
    display: grid; grid-template-columns: repeat(3, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: rgba(16, 17, 19, .96);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, .12);
    /* Platz für die Gestenleiste am iPhone. */
    padding-bottom: env(safe-area-inset-bottom, 0);
  }
  .schnellleiste a {
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    padding: 9px 6px 8px;
    font-size: 10px; letter-spacing: .06em; text-transform: uppercase;
    color: #d8dade; text-decoration: none;
  }
  .schnellleiste a:hover, .schnellleiste a:active { color: var(--gelb); }
  .schnellleiste .symbol { color: inherit; }

  /* Der Fuss darf nicht unter der Leiste verschwinden. */
  .fuss { padding-bottom: calc(74px + env(safe-area-inset-bottom, 0px)); }

  /* Der Kontaktknopf oben ist damit doppelt – unten reicht. */
  .kopf-kontakt { display: none; }
}

/* ---------- 51. Termine in Kacheln ------------------------------------
   In einer Kachel neben zwei anderen ist der Platz knapp. Dieselbe
   Zeile wie auf der Terminseite, nur enger: kleinere Tagesziffer,
   weniger Luft, Titel auf zwei Zeilen begrenzt.
   -------------------------------------------------------------------- */

.karte .terminliste { gap: 6px; }
.karte .termin {
  grid-template-columns: 40px 1fr auto;
  gap: 10px; padding: 9px 11px;
  border-radius: 10px; box-shadow: none;
}
.karte .termin__tag b { font-size: 1.1rem; }
.karte .termin__tag span { font-size: 10px; margin-top: 1px; }
.karte .termin__titel {
  font-size: var(--t-s); line-height: 1.3;
  /* Lange ÖFB-Titel würden die Kachel sprengen. */
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.karte .termin .klein { font-size: var(--t-xs); }
.karte .termin__marken { gap: 5px; }
.karte .mannschaft { min-width: 0; padding: 2px 7px; font-size: 9px; }
/* In der schmalen Startkachel ist für den Schriftzug kein Platz –
   dort trägt die Mannschaftsmarke allein. Auf der Fussballseite und in
   der Terminliste steht er. */
.raster--3 > .karte .heimzeichen { display: none; }

@media (max-width: 560px) {
  .karte .termin { grid-template-columns: 36px 1fr; }
  .karte .termin__marken { grid-column: 2; justify-self: start; }
}

/* ---------- 52. Schnellzugriff-Kacheln --------------------------------
   Zeichen oben, Titel, Zeile Erklärung. Dieselben Ziele wie in der
   Leiste am unteren Rand – dort fürs Handy, hier für den Schreibtisch.
   -------------------------------------------------------------------- */

.karte--sprung { display: flex; flex-direction: column; gap: 2px; }
.sprungbild {
  display: grid; place-items: center;
  width: 42px; height: 42px; margin-bottom: 10px;
  border-radius: 11px;
  background: rgba(255, 194, 32, .14); color: var(--gelb);
  transition: transform .16s ease;
}
.abschnitt--hell .sprungbild, .abschnitt--sanft .sprungbild {
  background: rgba(255, 194, 32, .2); color: var(--gelb-d);
}
.karte--sprung:hover .sprungbild { transform: translateY(-2px) scale(1.05); }

/* ---------- 53. Kartenplatz -------------------------------------------
   Solange nicht zugestimmt ist, steht hier ein Hinweis statt der Karte.
   Bewusst in derselben Grösse wie die spätere Karte – sonst springt die
   Seite beim Laden.
   -------------------------------------------------------------------- */

.kartenplatz {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 4px; text-align: center;
  aspect-ratio: 16 / 9; width: 100%;
  padding: 24px;
  background: var(--sanft);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  overflow: hidden;
}
.kartenplatz iframe {
  width: 100%; height: 100%; border: 0; display: block;
}
/* Ist die Karte geladen, verschwindet die Polsterung – der Rahmen füllt
   das Feld ganz aus. */
.kartenplatz[data-geladen] { padding: 0; display: block; }

.kartenplatz__text b { display: block; font-size: var(--t-m); margin-bottom: 6px; }
.kartenplatz__text span {
  display: block; max-width: 46ch; margin-inline: auto;
  font-size: var(--t-xs); line-height: 1.55; color: var(--leise);
}
.kartenplatz__knoepfe {
  display: flex; flex-wrap: wrap; gap: 10px;
  align-items: center; justify-content: center;
  margin: 14px 0 0;
}
.kartenplatz__mehr {
  padding: 0; border: 0; background: none;
  font-family: inherit; font-size: var(--t-xs); color: var(--leise);
  text-decoration: underline; cursor: pointer;
}
.kartenplatz__mehr:hover { color: var(--gelb-d); }

@media (max-width: 620px) { .kartenplatz { aspect-ratio: 4 / 3; padding: 18px; } }

/* ---------- 54. Weiter-Links -------------------------------------------
   Der gefüllte Kreis mit Pfeil sah aus wie ein Knopf, war aber keiner –
   zwei Karten nebeneinander bekamen dadurch zwei konkurrierende
   Schaltflächen. Jetzt ist es wieder ein Link: Text, darunter ein
   gelber Strich, der beim Überfahren durchläuft. Der Pfeil steht nackt
   dahinter und rückt mit.
   -------------------------------------------------------------------- */

.weiter {
  display: inline-flex; align-items: baseline; gap: 7px;
  position: relative;
  font-size: var(--t-s); font-weight: 700;
  letter-spacing: .01em;
  text-decoration: none;
  padding: 3px 0 5px;
}
.weiter::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: var(--gelb);
  transform: scaleX(.28); transform-origin: left;
  transition: transform .22s ease;
}
.weiter--zurueck::after { transform: scaleX(.28); transform-origin: right; }
.weiter:hover::after, .weiter:focus-visible::after { transform: scaleX(1); }

.weiter span {
  font-size: 1.05em; line-height: 1;
  transition: transform .22s ease;
}
.weiter:hover span          { transform: translateX(4px); }
.weiter--zurueck:hover span { transform: translateX(-4px); }

.weiter:focus-visible { outline: 2px solid var(--gelb); outline-offset: 4px; }

/* ---------- 55. Zustimmungsbanner in Vereinsfarben ---------------------
   Der mitgelieferte Baustein ist neutral gehalten. Hier bekommt er das
   Schwarz und das Gelb der Website – und das Wappen, damit erkennbar
   ist, wer da fragt.
   -------------------------------------------------------------------- */

.cc-banner, .cc-modal {
  background: #16171a !important;
  color: #e8e9ea !important;
  border: 1px solid rgba(255, 255, 255, .12) !important;
  border-top: 3px solid var(--gelb) !important;
}
.cc-banner .cc-h, .cc-modal .cc-h { color: #fff !important; }
.cc-banner .cc-p, .cc-modal .cc-p { color: #b9bcbe !important; }
.cc-banner a, .cc-modal a { color: var(--gelb) !important; }

.cc-logo {
  display: block; width: 34px; height: 34px;
  margin-bottom: 10px;
}

.cc-btn-primary {
  background: var(--gelb) !important; color: #16181b !important;
  border: 0 !important; font-weight: 700 !important;
}
.cc-btn-primary:hover { background: #f0b400 !important; }
.cc-btn-link {
  background: transparent !important; color: #b9bcbe !important;
  border: 1px solid rgba(255, 255, 255, .2) !important;
}
.cc-btn-link:hover { color: #fff !important; border-color: var(--gelb) !important; }


/* Der Banner bringt eigene Farben mit: ein Marineblau, das im Verein
   nirgends vorkommt. Es steckt in --cc-ink, also wird der Wert selbst
   ersetzt – dann stimmen Schalter, Rahmen und Tabelle auf einen Schlag. */
.cc-root {
  --cc-ink:   #16181b !important;
  --cc-bg:    #16171a !important;
  --cc-soft:  #1e2024 !important;
  --cc-line:  rgba(255, 255, 255, .12) !important;
  --cc-muted: #b9bcbe !important;
}

/* Die Kästchen der Kategorien: dunkel wie der Rest, nicht weiss. */
.cc-cat {
  background: #1e2024 !important;
  border-color: rgba(255, 255, 255, .12) !important;
}
.cc-cat-name { color: #fff !important; }
.cc-cat-desc { color: #b9bcbe !important; }

/* Schalter: aus = grau, ein = gelb. Der Knopf bleibt schwarz, damit man
   auf Gelb überhaupt etwas sieht. */
.cc-track { background: #43464c !important; }
.cc-switch input:checked + .cc-track            { background: var(--gelb) !important; }
.cc-switch input:checked + .cc-track:before     { background: #16181b !important; }
.cc-switch input:disabled + .cc-track           { background: var(--gelb) !important; opacity: .4 !important; }
.cc-switch input:focus-visible + .cc-track      { outline-color: var(--gelb) !important; }

.cc-btn-ghost {
  color: #e8e9ea !important; border: 1px solid rgba(255, 255, 255, .2) !important;
}
.cc-btn-ghost:hover { background: rgba(255, 255, 255, .08) !important; border-color: var(--gelb) !important; }

/* Erklärungstabelle im Detailteil. */
.cc-decl-head h3       { color: #fff !important; }
.cc-badge.on           { background: rgba(255, 194, 32, .16) !important; color: var(--gelb) !important;
                         border-color: rgba(255, 194, 32, .4) !important; }
.cc-badge.off          { background: #1e2024 !important; color: #b9bcbe !important; }
.cc-tbl thead th       { background: #1e2024 !important; color: #fff !important; }
.cc-tbl td, .cc-tbl th { border-color: rgba(255, 255, 255, .12) !important; }
.cc-decl-manage        { color: var(--gelb) !important; }

/* ---------- 56. Standorte -----------------------------------------------
   Text und Karte nebeneinander, jeder zweite Ort gespiegelt – so liest
   sich die Seite als Folge und nicht als Liste.
   -------------------------------------------------------------------- */

.standort {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 44px); align-items: center;
  padding-block: clamp(26px, 4vw, 48px);
  border-top: 1px solid var(--linie);
}
.standort:first-of-type { border-top: 0; }
.standort--gedreht .standort__text  { order: 2; }
.standort--gedreht .standort__karte { order: 1; }

.standort__text h2 { margin-bottom: 4px; }
.standort__text p  { margin-bottom: 10px; }
.standort__karte img {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: var(--radius); display: block;
}

@media (max-width: 760px) {
  .standort { grid-template-columns: 1fr; }
  .standort--gedreht .standort__text  { order: 0; }
  .standort--gedreht .standort__karte { order: 0; }
}

/* ---------- 57. Sprungmarken im Seitenkopf ------------------------------
   Wenn zwei frühere Seiten zu einer werden, wird die Seite lang. Drei
   Marken im Kopf ersparen das Scrollen auf gut Glück.
   -------------------------------------------------------------------- */

.sprungreihe { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.sprung {
  display: inline-block; padding: 7px 14px;
  border: 1px solid rgba(255, 255, 255, .28); border-radius: 999px;
  font-size: var(--t-xs); font-weight: 600; text-decoration: none;
  color: #fff; transition: background .18s, border-color .18s, color .18s;
}
.sprung:hover, .sprung:focus-visible {
  background: var(--gelb); border-color: var(--gelb); color: #16181b;
}

/* ---------- 58. Ausklappblock und dichte Tabelle -----------------------
   Der ganze Spielplan hat 13 Zeilen. Offen schiebt er alles darunter
   weit nach unten, deshalb steckt er in einem <details>: einmal tippen,
   dann steht er da – ganz ohne JavaScript.
   -------------------------------------------------------------------- */

.ausklapp {
  border: 1px solid var(--linie); border-radius: var(--radius);
  background: var(--flaeche);
}
.ausklapp > summary {
  display: flex; align-items: center; gap: 9px;
  padding: 14px 18px; cursor: pointer;
  font-weight: 700; font-size: var(--t-s);
  list-style: none;
}
.ausklapp > summary::-webkit-details-marker { display: none; }
.ausklapp > summary::after {
  content: "+"; margin-left: auto;
  font-size: 20px; line-height: 1; color: var(--leise);
}
.ausklapp[open] > summary::after { content: "–"; }
.ausklapp[open] > summary { border-bottom: 1px solid var(--linie); }
.ausklapp > div { padding: 0 18px 18px; }
.ausklapp > summary:hover { background: var(--sanft); }

/* Ein Spielplan hat viele Zeilen und wenig Inhalt je Zelle – da darf
   es enger zugehen als in einer gewöhnlichen Tabelle. */
.tabelle--dicht th, .tabelle--dicht td { padding: 6px 9px; font-size: var(--t-xs); }
.tabelle--dicht tr.leise td { opacity: .62; }

/* ---------- 59. Spieltag ------------------------------------------------
   Alles, was bisher nur die Fanseite der Heimspielorganisation zeigte:
   Wappen im Matchblock, die Uhr bis zum Anpfiff, Anstoss/Ort/Wetter/
   Kantine nebeneinander, die Ankündigung zum Aufklappen und die
   Torschützen unter dem Ergebnis.
   -------------------------------------------------------------------- */

/* --- Wappen im Matchblock --- */
.spielwappen {
  display: block; width: 52px; height: 52px;
  margin: 0 auto 10px; object-fit: contain;
}
.spielwappen--leer {
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: #fff; font-weight: 800; font-size: 17px; letter-spacing: .02em;
}
.abschnitt--hell .spielwappen--leer,
.abschnitt--sanft .spielwappen--leer {
  background: var(--sanft); color: var(--leise);
}

/* --- Uhr bis zum Anpfiff --- */
.anpfiff {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.anpfiff__feld {
  display: grid; justify-items: center; gap: 2px;
  min-width: 62px; padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, .2); border-radius: var(--radius-s, 10px);
  background: rgba(0, 0, 0, .3);
}
.anpfiff__feld b {
  font-size: 21px; line-height: 1; font-variant-numeric: tabular-nums;
  color: var(--gelb);
}
.anpfiff__feld span {
  font-size: 10px; letter-spacing: .08em; text-transform: uppercase;
  color: rgba(255, 255, 255, .62);
}
.anpfiff--laeuft {
  display: block; padding: 10px 14px;
  font-weight: 700; color: var(--gelb);
  border: 1px solid var(--gelb); border-radius: var(--radius-s, 10px);
}

/* --- Rund ums Spiel --- */
.spieltag {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
.spieltag__feld {
  display: flex; flex-direction: column; gap: 3px;
  padding: 16px 18px;
  background: var(--flaeche); border: 1px solid var(--linie);
  border-radius: var(--radius);
}
.spieltag__was {
  display: flex; align-items: center; gap: 7px;
  font-size: 10px; letter-spacing: .09em; text-transform: uppercase;
  color: var(--leise); margin-bottom: 3px;
}
.spieltag__feld b { font-size: var(--t-m); line-height: 1.25; }
.spieltag__feld > span:last-child { margin-top: auto; }

/* Matchsponsor: weiße Logokachel wie auf der Fanseite der Organisation */
.matchsponsor__logo {
  max-height: 64px; max-width: 100%; align-self: flex-start;
  object-fit: contain; background: #fff;
  border: 1px solid var(--linie); border-radius: 10px;
  padding: 8px 14px; margin: 4px 0 2px;
}
.spieltag__feld--sponsor b { font-size: var(--t-s); }

/* Die Spielankündigung zum Aufklappen */
details.ankuendigung summary {
  cursor: pointer; display: inline-flex; align-items: center; gap: 7px;
  font-weight: 700; color: var(--gelb);
}
details.ankuendigung summary::-webkit-details-marker { display: none; }
details.ankuendigung[open] summary { margin-bottom: 6px; }
details.ankuendigung .rueckblicktext { white-space: pre-line; max-width: 62ch; }

/* --- Rückblick ---
   Links das Ergebnis wie auf einer Anzeigetafel, rechts der Text. Der
   ist fürs Lesen geschrieben – kurze Zeilen, Umbrüche mit Absicht –
   und wird deshalb genauso stehengelassen, wie er verfasst wurde. */
.rueckblick {
  display: grid; gap: clamp(18px, 3vw, 36px);
  grid-template-columns: minmax(240px, 320px) 1fr;
  align-items: start;
}
.rueckblick__ergebnis {
  padding: 20px 22px;
  background: var(--flaeche); border: 1px solid var(--linie);
  border-radius: var(--radius);
}
.rueckblick__reihe {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 0;
}
.rueckblick__reihe + .rueckblick__reihe { border-top: 1px solid var(--linie); }
.rueckblick__reihe > span { flex: 1 1 auto; min-width: 0; font-weight: 600; }
.rueckblick__reihe > b {
  font-size: 25px; line-height: 1; font-variant-numeric: tabular-nums;
}
.rueckblick__reihe .wappen-klein { width: 30px; height: 30px; }
.rueckblick__wann { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--linie); }

.rueckblicktext {
  font-size: var(--t-s); line-height: 1.75;
  max-width: 62ch;
}

@media (max-width: 760px) {
  .rueckblick { grid-template-columns: 1fr; }
}

/* --- Torschützen --- */
.schuetzen {
  display: flex; flex-wrap: wrap; gap: 4px 12px;
  margin-top: 5px;
}
.schuetze {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: var(--t-xs); color: var(--leise);
}
.schuetze .symbol { color: var(--gelb-d, #a97f00); flex: 0 0 auto; }

/* Wappen in Listen und Tabellen. Der Platzhalter hält die Zeile in
   Form, wenn ein Verein keines hinterlegt hat. */
/* Wappen und Name bleiben zusammen: Bricht ein langer Vereinsname um,
   soll das Wappen nicht allein in der Zeile darüber stehenbleiben.
   Deshalb umschliesst .team beide, und nur der Name darin bricht. */
.begegnung { display: inline-flex; align-items: center; gap: 4px 8px; flex-wrap: wrap; }
.team {
  display: inline-flex; align-items: center; gap: 6px;
  min-width: 0; text-align: left;
}
.wappen-klein {
  width: 18px; height: 18px; object-fit: contain;
  flex: 0 0 auto; vertical-align: middle;
}
.wappen-klein--leer {
  display: inline-block; border-radius: 50%;
  background: var(--linie);
}
.tabelle--dicht .wappen-klein { width: 17px; height: 17px; }

/* In den Terminlisten sitzt die Begegnung im Titel. Dort darf sie nicht
   umbrechen wie ein Absatz, sondern soll eine Zeile bleiben, solange
   sie hineinpasst. */
.termin__titel .begegnung { gap: 3px 7px; }
.termin__titel .wappen-klein { width: 16px; height: 16px; }
.termin__titel .team { gap: 5px; }

/* Weiter-Link, der aus dem Haus führt. Der Pfeil zeigt schräg nach
   aussen, darunter steht klein, wohin – ein Ergebnisdienst des
   Verbandes sieht anders aus als diese Seite, das soll niemanden
   überraschen. */
.weiter--fremd span { font-size: .95em; }
.weiter--fremd::after { transform: scaleX(.2); }
.fremdlink__wo {
  display: block; margin-top: 3px;
  letter-spacing: .04em;
}
