/* ==========================================================================
   Tennis Kiefersfelden – Stylesheet
   Farben: Kiefergrün (Wappen), Sand (Platzbelag), Kreide (Linien)
   Schrift: Barlow & Barlow Condensed (lokal, SIL OFL)
   ========================================================================== */

@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/barlow-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/barlow-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/barlow-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/barlow-condensed-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); }

/* ---------- Tokens ---------- */
:root {
  --kiefer-950: #0d2a20;
  --kiefer-900: #12352a;
  --kiefer-800: #17402f;
  --kiefer-700: #1f5541;
  --kiefer-500: #2f7356;
  --kiefer-100: #e2ebe5;
  --sand-700: #9a3d1b;
  --sand-600: #b44a22;
  --sand-500: #cc5a2c;
  --sand-100: #f6e4da;
  --kreide: #f4f6f3;
  --weiss: #ffffff;
  --stein-700: #46524d;
  --stein-600: #5d6a64;
  --stein-300: #c8d0cb;
  --stein-200: #dde3df;
  --tinte: #13261e;

  --hintergrund: var(--kreide);
  --flaeche: var(--weiss);
  --text: var(--tinte);
  --text-leise: var(--stein-600);
  --linie: var(--stein-300);
  --linie-zart: var(--stein-200);
  --akzent: var(--sand-600);
  --marke: var(--kiefer-800);
  --marke-hover: var(--kiefer-700);
  --link: var(--kiefer-700);
  --tafel: var(--kiefer-900);
  --fokus: var(--sand-500);

  --schrift: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --schrift-schmal: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;

  --breite: 74rem;
  --rand: clamp(1rem, 4vw, 2.5rem);
  --kopf-hoehe: 4.75rem;
  --radius: 4px;
  --schatten: 0 1px 2px rgb(13 42 32 / .06), 0 8px 24px -12px rgb(13 42 32 / .18);

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --hintergrund: #0e1b15;
    --flaeche: #15261e;
    --text: #e5ece8;
    --text-leise: #a1b2a9;
    --linie: #2d4339;
    --linie-zart: #22362c;
    --akzent: #e07a4c;
    --marke: #2f7356;
    --marke-hover: #3a8564;
    --link: #8fd0ae;
    --tafel: #0a2119;
    --kiefer-100: #1c3329;
    --sand-100: #3a2117;
    --schatten: 0 1px 2px rgb(0 0 0 / .3), 0 8px 24px -12px rgb(0 0 0 / .6);
  }
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--kopf-hoehe) + 1rem); }
body {
  margin: 0;
  font-family: var(--schrift);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--hintergrund);
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 {
  font-family: var(--schrift-schmal);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.005em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 6vw, 4.25rem); line-height: .98; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.4rem; }
p, ul, ol, dl, table, figure { margin: 0 0 1em; }
p { text-wrap: pretty; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--akzent); }
strong { font-weight: 600; }
small { font-size: .85em; }
address { font-style: normal; }
:focus-visible { outline: 3px solid var(--fokus); outline-offset: 2px; border-radius: 2px; }
::selection { background: var(--sand-100); }
.icon { width: 1.15em; height: 1.15em; flex: none; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.breite { width: 100%; max-width: calc(var(--breite) + 2 * var(--rand)); margin-inline: auto; padding-inline: var(--rand); }
.springen { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--marke); color: #fff; padding: .6rem 1rem; border-radius: var(--radius); }
.springen:focus { top: 1rem; color: #fff; }
.klein { font-size: .9rem; color: var(--text-leise); }
.leer { color: var(--text-leise); font-style: italic; }
.hinweis { background: var(--kiefer-100); border-left: 4px solid var(--marke); padding: .9rem 1.1rem; border-radius: 0 var(--radius) var(--radius) 0; }

/* ---------- Knöpfe ---------- */
.knopf {
  display: inline-flex; align-items: center; gap: .55em;
  min-height: 2.875rem; padding: .6rem 1.25rem;
  font: 600 1.0625rem/1.1 var(--schrift);
  color: #fff; background: var(--marke);
  border: 2px solid var(--marke); border-radius: var(--radius);
  text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.knopf:hover { background: var(--marke-hover); border-color: var(--marke-hover); color: #fff; }
.knopf-rand { background: transparent; color: var(--marke); }
.knopf-rand:hover { background: var(--marke); color: #fff; }
.knopf-hell { background: #fff; border-color: #fff; color: var(--kiefer-900); }
.knopf-hell:hover { background: var(--sand-100); border-color: var(--sand-100); color: var(--kiefer-900); }
.knopf-rand-hell { background: transparent; border-color: rgb(255 255 255 / .8); color: #fff; }
.knopf-rand-hell:hover { background: #fff; border-color: #fff; color: var(--kiefer-900); }
.knopf-gefahr { background: var(--sand-700); border-color: var(--sand-700); }
.knopf-gefahr:hover { background: #7c2f13; border-color: #7c2f13; }
@media (prefers-color-scheme: dark) {
  .knopf-rand { color: var(--link); border-color: var(--link); }
  .knopf-rand:hover { background: var(--link); color: var(--kiefer-950); }
}

/* ---------- Kopfzeile ---------- */
.kopf {
  position: sticky; top: 0; z-index: 50;
  background: var(--flaeche);
  border-bottom: 1px solid var(--linie);
}
.kopf-innen {
  display: flex; align-items: center; gap: 1.5rem;
  height: var(--kopf-hoehe);
  max-width: calc(var(--breite) + 2 * var(--rand)); margin-inline: auto; padding-inline: var(--rand);
}
.marke { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--text); margin-right: auto; }
.marke img { height: 3.1rem; width: auto; }
.marke-text { font: 600 1.35rem/0.95 var(--schrift-schmal); display: flex; flex-direction: column; }
.marke-text span:last-child { font-weight: 500; color: var(--text-leise); }
.marke:hover { color: var(--text); }

.hauptnav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .15rem; }
.hauptnav a {
  display: block; padding: .5rem .7rem;
  font: 500 1.2rem/1 var(--schrift-schmal);
  color: var(--text); text-decoration: none;
  border-bottom: 2px solid transparent;
}
.hauptnav a:hover { color: var(--akzent); }
.hauptnav a[aria-current="page"] { border-bottom-color: var(--akzent); }
.knopf-reservieren { background: var(--sand-600); border-color: var(--sand-600); white-space: nowrap; }
.knopf-reservieren:hover { background: var(--sand-700); border-color: var(--sand-700); }
.menue-knopf, .menue-zu { display: none; }
.nur-mobil { display: none; }

/* Desktop: Navigation normal im Kopf (Popover nur mobil) */
@media (min-width: 1081px) {
  .hauptnav[popover] { display: block; position: static; inset: auto; margin: 0; padding: 0; border: 0; background: none; color: inherit; overflow: visible; width: auto; height: auto; }
}

@media (max-width: 1080px) {
  .knopf-reservieren span { display: none; }
  .knopf-reservieren { padding-inline: .8rem; }
  .knopf-reservieren::after { content: "Reservieren"; }
  .menue-knopf {
    display: inline-flex; align-items: center; gap: .55rem;
    min-height: 2.875rem; padding: .5rem .9rem;
    font: 600 1.05rem/1 var(--schrift); color: var(--text);
    background: transparent; border: 2px solid var(--linie); border-radius: var(--radius); cursor: pointer;
  }
  .menue-striche, .menue-striche::before, .menue-striche::after { display: block; width: 1.1rem; height: 2px; background: currentColor; position: relative; }
  .menue-striche::before, .menue-striche::after { content: ""; position: absolute; left: 0; }
  .menue-striche::before { top: -6px; }
  .menue-striche::after { top: 6px; }
  .hauptnav[popover] {
    position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0;
    padding: 5.5rem var(--rand) 2rem; border: 0;
    background: var(--kiefer-900); color: #fff; overflow-y: auto;
  }
  .hauptnav[popover]:popover-open { display: flex; flex-direction: column; }
  .hauptnav ul { flex-direction: column; gap: 0; }
  .hauptnav li { border-bottom: 1px solid rgb(255 255 255 / .15); }
  .hauptnav a { color: #fff; font-size: 2rem; font-weight: 600; padding: .85rem 0; border: 0; }
  .hauptnav a[aria-current="page"] { color: #f0a17c; }
  .nur-mobil { display: block; }
  .menue-zu {
    display: inline-flex; position: absolute; top: 1.1rem; right: var(--rand);
    min-height: 2.875rem; align-items: center; padding: .5rem 1rem;
    font: 600 1.05rem/1 var(--schrift); color: #fff; background: transparent;
    border: 2px solid rgb(255 255 255 / .5); border-radius: var(--radius); cursor: pointer;
  }
}
@media (max-width: 480px) {
  .marke-text { font-size: 1.15rem; }
  .marke img { height: 2.6rem; }
  .kopf-innen { gap: .6rem; }
  .menue-wort { display: none; }
  .knopf-reservieren::after { content: "Buchen"; }
}

/* ---------- Startseite: Held ---------- */
.ist-start .kopf { position: absolute; left: 0; right: 0; background: transparent; border-bottom-color: rgb(255 255 255 / .25); }
.ist-start .kopf .marke, .ist-start .kopf .marke-text span:last-child { color: #fff; }
@media (min-width: 1081px) {
  .ist-start .hauptnav a { color: #fff; }
  .ist-start .hauptnav a:hover { color: #ffd2bd; }
}
.ist-start .menue-knopf { color: #fff; border-color: rgb(255 255 255 / .6); }

.held {
  position: relative; isolation: isolate;
  min-height: clamp(36rem, 92vh, 54rem);
  display: flex; align-items: flex-end;
  color: #fff; background: var(--kiefer-900);
  padding-top: calc(var(--kopf-hoehe) + 3rem);
}
.held-bild { position: absolute; inset: 0; z-index: -2; }
.held-bild img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.held::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgb(13 42 32 / .55) 0%, rgb(13 42 32 / 0) 22%),
    linear-gradient(10deg, rgb(13 42 32 / .92) 0%, rgb(13 42 32 / .55) 38%, rgb(13 42 32 / 0) 68%);
}
.held-innen {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 27rem);
  gap: 2rem 4rem; align-items: end;
  padding-bottom: 4.5rem;
}
.held-text h1 { font-size: clamp(3rem, 8.2vw, 6.25rem); font-weight: 700; line-height: .9; margin-bottom: .35em; max-width: 11ch; }
.held-text p { font-size: clamp(1.1rem, 1.6vw, 1.3rem); max-width: 34ch; color: rgb(255 255 255 / .9); }
.held-knoepfe { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.grundlinie { position: absolute; left: 0; right: 0; bottom: 2.25rem; height: 3px; background: rgb(255 255 255 / .85); z-index: -1; }
@media (max-width: 900px) {
  .held { min-height: 0; padding-top: calc(var(--kopf-hoehe) + 8rem); }
  .held-innen { grid-template-columns: 1fr; padding-bottom: 3.5rem; }
  .held-tafel { margin-bottom: .5rem; }
  .grundlinie { bottom: 1.6rem; }
}

/* ---------- Anzeigetafel ---------- */
.tafel {
  background: var(--tafel); color: #fff;
  border-radius: var(--radius);
  padding: 1.1rem 1.35rem 1.2rem;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .14), 0 20px 40px -20px rgb(0 0 0 / .5);
  position: relative;
}
.tafel::before { /* Kreidelinie innen, wie auf der Spielstandstafel */
  content: ""; position: absolute; inset: 6px; border: 1px solid rgb(255 255 255 / .22); border-radius: 2px; pointer-events: none;
}
.tafel-titel { font: 600 1.35rem/1.1 var(--schrift-schmal); margin: 0 0 .5rem; color: #fff; padding-bottom: .55rem; border-bottom: 2px solid rgb(255 255 255 / .85); }
.tafel-zeilen { list-style: none; margin: 0; padding: 0; }
.tafel-zeile {
  display: grid; grid-template-columns: 4.6rem minmax(0, 1fr) auto; gap: .9rem; align-items: baseline;
  padding: .7rem 0; border-bottom: 1px solid rgb(255 255 255 / .14);
  position: relative;
}
.tafel-zeile:last-child { border-bottom: 0; }
.tafel-zeile.ist-hervor::before { content: ""; position: absolute; left: -1.35rem; top: .75rem; bottom: .75rem; width: 4px; background: var(--sand-500); }
.tafel-datum { font-family: var(--schrift-schmal); font-variant-numeric: tabular-nums; line-height: 1; }
.tafel-tag { display: block; font-size: .95rem; font-weight: 500; color: rgb(255 255 255 / .7); margin-bottom: .2rem; }
.tafel-zahl { font-size: 1.6rem; font-weight: 600; letter-spacing: .01em; }
.tafel-haupt { display: block; font-weight: 600; line-height: 1.3; }
.tafel-haupt a { color: #fff; text-decoration: none; }
.tafel-haupt a:hover { text-decoration: underline; color: #fff; }
.tafel-zusatz { display: block; font-size: .92rem; color: rgb(255 255 255 / .72); line-height: 1.35; margin-top: .15rem; }
.tafel-wert { font: 600 1.25rem/1 var(--schrift-schmal); font-variant-numeric: tabular-nums; white-space: pre; color: #ffd2bd; }
.tafel-fuss { margin-top: .6rem; padding-top: .7rem; border-top: 1px solid rgb(255 255 255 / .14); }
.tafel-fuss a { color: #fff; font-weight: 600; }
.tafel-fuss a:hover { color: #ffd2bd; }

/* ---------- Schnellwahl ---------- */
.schnellwahl { margin-top: 0; }
.schnellwahl ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--linie);
}
.schnellwahl li + li { border-left: 1px solid var(--linie); }
.schnellwahl a { display: block; height: 100%; padding: 1.6rem 1.25rem 1.5rem; text-decoration: none; color: var(--text); }
.schnellwahl li:first-child a { padding-left: 0; }
.sw-titel { display: block; font: 600 1.6rem/1.05 var(--schrift-schmal); margin-bottom: .3rem; }
.sw-text { display: block; color: var(--text-leise); font-size: .95rem; line-height: 1.4; }
.schnellwahl a:hover .sw-titel { color: var(--akzent); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .15em; }
@media (max-width: 900px) {
  .schnellwahl ul { grid-template-columns: 1fr 1fr; }
  .schnellwahl li:nth-child(3) { border-left: 0; }
  .schnellwahl li:nth-child(n+3) { border-top: 1px solid var(--linie); }
  .schnellwahl li:nth-child(3) a { padding-left: 0; }
}
@media (max-width: 480px) {
  .schnellwahl a { padding: 1.1rem .8rem 1rem; }
  .schnellwahl li:nth-child(odd) a { padding-left: 0; }
  .sw-titel { font-size: 1.35rem; }
}

/* ---------- Abschnitte ---------- */
.abschnitt { padding-block: clamp(3rem, 7vw, 5.5rem); }
.abschnitt-kopf { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 2rem; margin-bottom: 1.75rem; }
.abschnitt-kopf h2 { margin: 0; }
.mehr { font-weight: 600; }

/* News */
.news-raster { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 2.5rem; }
.news-neben { display: grid; gap: 1.75rem; align-content: start; }
.teaser { display: grid; gap: .9rem; align-content: start; }
.teaser-bild { display: block; overflow: hidden; border-radius: var(--radius); background: var(--kiefer-100); aspect-ratio: 3 / 2; }
.teaser-bild img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.teaser-bild.ist-hoch img { object-position: 50% 20%; }
.teaser:hover .teaser-bild img { transform: scale(1.03); }
.teaser h3 { font-size: 1.5rem; margin-bottom: .35rem; }
.teaser-gross h3 { font-size: clamp(1.75rem, 3vw, 2.25rem); }
.teaser h3 a { color: var(--text); text-decoration: none; }
.teaser h3 a:hover { color: var(--akzent); text-decoration: underline; text-decoration-thickness: 2px; }
.teaser p { margin-bottom: .5rem; }
.teaser-datum { font: 500 1rem/1 var(--schrift-schmal); color: var(--text-leise); margin: 0 0 .35rem; }
.news-neben .teaser { grid-template-columns: 9.5rem minmax(0, 1fr); gap: 1.1rem; }
.news-neben .teaser-bild { aspect-ratio: 1; }
.news-neben .teaser h3 { font-size: 1.3rem; }
@media (max-width: 900px) {
  .news-raster { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .news-neben .teaser { grid-template-columns: 6.5rem minmax(0, 1fr); }
}

.news-liste { display: grid; gap: 2.25rem; }
.news-liste .teaser { grid-template-columns: minmax(0, 16rem) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.news-liste .teaser:not(:has(.teaser-bild)) { grid-template-columns: 1fr; }
.news-liste-kompakt { grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); }
.news-liste-kompakt .teaser { grid-template-columns: 1fr; }
@media (max-width: 640px) {
  .news-liste .teaser { grid-template-columns: 1fr; }
}

/* Anlage-Band */
.anlage-teaser { background: var(--kiefer-800); color: #fff; }
.anlage-raster { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; padding-block: clamp(3rem, 7vw, 5.5rem); }
.anlage-foto { margin: 0; }
.anlage-foto img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.anlage-text p { color: rgb(255 255 255 / .88); }
.anlage-text .knopf { background: #fff; border-color: #fff; color: var(--kiefer-900); }
.anlage-text .knopf:hover { background: var(--sand-100); border-color: var(--sand-100); }
.fakten { margin: 1.5rem 0 2rem; display: grid; gap: 0; }
.fakten div { display: grid; grid-template-columns: 10rem 1fr; gap: 1rem; padding: .7rem 0; border-top: 1px solid rgb(255 255 255 / .22); }
.fakten div:last-child { border-bottom: 1px solid rgb(255 255 255 / .22); }
.fakten dt { font: 600 1.15rem/1.3 var(--schrift-schmal); }
.fakten dd { margin: 0; color: rgb(255 255 255 / .88); }
@media (max-width: 900px) { .anlage-raster { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .fakten div { grid-template-columns: 1fr; gap: .1rem; } }

/* Jugend-Teaser */
.jugend-raster { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.jugend-foto { margin: 0; }
.jugend-foto img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.mini-plan { list-style: none; padding: 0; margin: 1.25rem 0 1.75rem; }
.mini-plan li { display: grid; grid-template-columns: 7.5rem 7rem 1fr; gap: .75rem; padding: .55rem 0; border-top: 1px solid var(--linie); }
.mini-plan li:last-child { border-bottom: 1px solid var(--linie); }
.mp-tag { font-weight: 600; }
.mp-zeit { font-family: var(--schrift-schmal); font-size: 1.15rem; font-variant-numeric: tabular-nums; }
@media (max-width: 900px) { .jugend-raster { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .mini-plan li { grid-template-columns: 1fr 1fr; } .mp-gruppe { grid-column: 1 / -1; color: var(--text-leise); margin-top: -.4rem; } }

/* ---------- Unterseiten ---------- */
.seitenkopf { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(1.75rem, 3vw, 2.5rem); border-bottom: 2px solid var(--marke); margin-bottom: clamp(2rem, 4vw, 3rem); }
.seitenkopf h1 { margin-bottom: .3em; max-width: 20ch; }
.einleitung { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--text-leise); max-width: 46ch; margin: 0; }
.zurueck { margin: 0 0 .75rem; font: 500 1.1rem/1 var(--schrift-schmal); }
.zurueck a { text-decoration: none; }
.zurueck a::before { content: "‹ "; }
main > .breite:last-child, main > div:last-child { padding-bottom: clamp(3rem, 6vw, 5rem); }

.zweispaltig { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 900px) { .zweispaltig { grid-template-columns: 1fr; } }

.kasten { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2rem); }
.kasten h2 { font-size: 1.6rem; }
.kasten h2:not(:first-child) { margin-top: 1.5rem; }
.kasten > :last-child { margin-bottom: 0; }
.kasten-breit { margin-top: clamp(2.5rem, 5vw, 4rem); }

.unternav { margin: -1rem 0 clamp(2rem, 4vw, 3rem); overflow-x: auto; }
.unternav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.75rem; border-bottom: 1px solid var(--linie); min-width: max-content; }
.unternav a { display: block; padding: .6rem 0; font: 500 1.2rem/1 var(--schrift-schmal); color: var(--text-leise); text-decoration: none; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.unternav a:hover { color: var(--text); }
.unternav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--akzent); }

.fliesstext { max-width: 42rem; }
.fliesstext h2 { margin-top: 1.6em; font-size: clamp(1.6rem, 3vw, 2rem); }
.fliesstext h3 { margin-top: 1.4em; }
.fliesstext ul, .fliesstext ol { padding-left: 1.3rem; }
.fliesstext li { margin-bottom: .35rem; }
.fliesstext li::marker { color: var(--akzent); }
.rechtstext h2 { font-size: 1.5rem; }
.ordnung ol { padding-left: 1.6rem; }
.ordnung ol > li::marker { font-family: var(--schrift-schmal); font-weight: 600; }
.ordnung ol { list-style: lower-alpha; }

.link-liste { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.link-liste a { font-weight: 600; }

.tabelle { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.tabelle caption { text-align: left; font: 600 1.25rem/1.2 var(--schrift-schmal); padding-bottom: .5rem; }
.tabelle th, .tabelle td { text-align: left; padding: .6rem .75rem .6rem 0; border-bottom: 1px solid var(--linie); vertical-align: top; }
.tabelle thead th { font: 600 1rem/1.2 var(--schrift-schmal); color: var(--text-leise); border-bottom: 2px solid var(--marke); }
.tabelle tbody th { font-weight: 600; }
.tabelle .betrag { text-align: right; white-space: nowrap; padding-right: 0; }

/* Personen / Rollen */
.personen { list-style: none; padding: 0; display: grid; gap: 1.25rem; }
.person { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: center; }
.person-bild { width: 5.5rem; height: 5.5rem; object-fit: cover; border-radius: 50%; }
.person strong, .person span, .person a { display: block; }
.person span { color: var(--text-leise); }
.rollen { margin: 1rem 0 1.5rem; }
.rollen div { display: grid; grid-template-columns: 11rem 1fr; gap: 1rem; padding: .75rem 0; border-top: 1px solid var(--linie); }
.rollen div:last-child { border-bottom: 1px solid var(--linie); }
.rollen dt { font: 600 1.15rem/1.35 var(--schrift-schmal); color: var(--text-leise); }
.rollen dd { margin: 0; }
.rollen-gross dd { font-size: 1.15rem; font-weight: 600; }
.rollen dd a { display: block; font-size: 1rem; font-weight: 400; overflow-wrap: anywhere; }
@media (max-width: 560px) { .rollen div { grid-template-columns: 1fr; gap: .1rem; } }

/* Kacheln */
.kacheln { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.25rem; }
.kacheln a { position: relative; display: block; border-radius: var(--radius); overflow: hidden; color: #fff; text-decoration: none; aspect-ratio: 4 / 3; background: var(--kiefer-800); }
.kacheln img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.kacheln a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgb(13 42 32 / .85), rgb(13 42 32 / 0) 55%); }
.kacheln span { position: absolute; left: 1.1rem; right: 1.1rem; bottom: .9rem; z-index: 1; font: 600 1.6rem/1.05 var(--schrift-schmal); }
.kacheln a:hover img { transform: scale(1.04); }

/* ---------- Mannschaften ---------- */
.team-gruppe + .team-gruppe { margin-top: 3rem; }
.team-liste { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--marke); }
.team-zeile {
  display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr) auto; gap: 1.5rem; align-items: center;
  padding: 1.1rem .25rem; border-bottom: 1px solid var(--linie);
  color: var(--text); text-decoration: none;
}
.team-zeile:hover { background: var(--flaeche); color: var(--text); }
.team-zeile:hover .team-name { color: var(--akzent); }
.team-name { font: 600 1.75rem/1.05 var(--schrift-schmal); }
.team-name small { display: block; font-size: 1rem; font-weight: 500; color: var(--text-leise); }
.team-info { color: var(--text-leise); }
.team-pfeil .icon { width: 1.5rem; height: 1.5rem; color: var(--akzent); }
@media (max-width: 640px) {
  .team-zeile { grid-template-columns: 1fr auto; gap: .2rem 1rem; }
  .team-info { grid-column: 1; grid-row: 2; font-size: .95rem; }
  .team-pfeil { grid-row: 1 / span 2; grid-column: 2; }
}

.team-raster { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 960px) { .team-raster { grid-template-columns: 1fr; } }
.spielplan { width: 100%; border-collapse: collapse; }
.spielplan thead th { text-align: left; font: 600 1rem/1.2 var(--schrift-schmal); color: var(--text-leise); padding: 0 .75rem .5rem 0; border-bottom: 2px solid var(--marke); }
.spielplan td { padding: .85rem .75rem .85rem 0; border-bottom: 1px solid var(--linie); vertical-align: top; }
.sp-datum { white-space: nowrap; font-family: var(--schrift-schmal); font-variant-numeric: tabular-nums; font-size: 1.2rem; line-height: 1.2; }
.sp-tag { color: var(--text-leise); font-size: 1rem; }
.sp-zeit { display: block; font-size: 1rem; color: var(--text-leise); }
.sp-paarung { line-height: 1.4; }
.sp-paarung .wir { font-weight: 600; }
.sp-gegen { color: var(--text-leise); padding-inline: .2rem; }
.sp-ort { text-align: right; padding-right: 0 !important; }
.marke-ort { display: inline-block; font: 600 .95rem/1 var(--schrift-schmal); padding: .3rem .5rem; border-radius: 2px; border: 1px solid var(--linie); color: var(--text-leise); }
.ist-heim .marke-ort { background: var(--sand-600); border-color: var(--sand-600); color: #fff; }
.ist-vorbei td { color: var(--text-leise); }
.ist-vorbei .sp-paarung .wir { color: var(--text); }
.ist-vorbei.ist-heim .marke-ort { background: transparent; color: var(--akzent); border-color: currentColor; }

.btv { position: sticky; top: calc(var(--kopf-hoehe) + 1.5rem); }
.btv-einbettung { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); padding: 1.25rem; }
.btv-einbettung p { font-size: .95rem; color: var(--text-leise); }
.btv-knoepfe { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0; }
.btv-einbettung.ist-geladen { padding: 0; overflow: hidden; }
.btv-einbettung iframe { display: block; width: 100%; height: 70vh; min-height: 32rem; border: 0; background: #fff; }
@media (max-width: 960px) { .btv { position: static; } }

/* ---------- Wochenplan Training ---------- */
.wochenplan { margin-bottom: 1.25rem; }
.wp-achse, .wp-tag { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 1rem; }
.wp-tag { padding: .9rem 0; border-top: 1px solid var(--linie); align-items: start; }
.wp-tag:last-child { border-bottom: 1px solid var(--linie); }
.wp-tagname { font: 600 1.5rem/1 var(--schrift-schmal); margin: .35rem 0 0; }
.wp-raster { --spalten: 10; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--spalten), minmax(0, 1fr)); gap: .35rem 0; grid-auto-rows: auto; }
.wp-tag .wp-raster {
  background-image: linear-gradient(to right, var(--linie-zart) 1px, transparent 1px);
  background-size: calc(200% / var(--spalten)) 100%;
}
.wp-zeiten span { font: 500 1rem/1 var(--schrift-schmal); color: var(--text-leise); padding-bottom: .4rem; border-left: 1px solid var(--linie); padding-left: .35rem; }
.wp-block {
  margin-right: .3rem; padding: .55rem .7rem .6rem;
  border-radius: var(--radius); color: #fff; font-size: .9rem; line-height: 1.3;
  min-width: 0;
}
.wp-block strong { display: block; font: 600 1.2rem/1.1 var(--schrift-schmal); margin-bottom: .15rem; }
.wp-block span, .wp-block em { display: block; opacity: .92; }
.wp-block em { font-size: .85rem; margin-top: .2rem; }
.ort-see.wp-block { background: var(--kiefer-700); }
.ort-kohlstatt.wp-block { background: var(--sand-600); }
.legende { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; font-size: .95rem; color: var(--text-leise); margin-bottom: 3rem; }
.legende li { display: flex; align-items: center; gap: .5rem; }
.legende li::before { content: ""; width: 1rem; height: 1rem; border-radius: 2px; }
.legende .ort-see::before { background: var(--kiefer-700); }
.legende .ort-kohlstatt::before { background: var(--sand-600); }
.training-unten { border-top: 2px solid var(--marke); padding-top: 2rem; }
[data-slots="6"] { --spalten: 6; } [data-slots="8"] { --spalten: 8; } [data-slots="10"] { --spalten: 10; } [data-slots="12"] { --spalten: 12; } [data-slots="14"] { --spalten: 14; } [data-slots="16"] { --spalten: 16; } [data-slots="18"] { --spalten: 18; } [data-slots="20"] { --spalten: 20; } [data-slots="22"] { --spalten: 22; } [data-slots="24"] { --spalten: 24; }
.gs-1 { grid-column-start: 1; } .gs-2 { grid-column-start: 2; } .gs-3 { grid-column-start: 3; } .gs-4 { grid-column-start: 4; } .gs-5 { grid-column-start: 5; } .gs-6 { grid-column-start: 6; } .gs-7 { grid-column-start: 7; } .gs-8 { grid-column-start: 8; } .gs-9 { grid-column-start: 9; } .gs-10 { grid-column-start: 10; } .gs-11 { grid-column-start: 11; } .gs-12 { grid-column-start: 12; } .gs-13 { grid-column-start: 13; } .gs-14 { grid-column-start: 14; } .gs-15 { grid-column-start: 15; } .gs-16 { grid-column-start: 16; } .gs-17 { grid-column-start: 17; } .gs-18 { grid-column-start: 18; } .gs-19 { grid-column-start: 19; } .gs-20 { grid-column-start: 20; } .gs-21 { grid-column-start: 21; } .gs-22 { grid-column-start: 22; } .gs-23 { grid-column-start: 23; } .gs-24 { grid-column-start: 24; }
.ge-2 { grid-column-end: 2; } .ge-3 { grid-column-end: 3; } .ge-4 { grid-column-end: 4; } .ge-5 { grid-column-end: 5; } .ge-6 { grid-column-end: 6; } .ge-7 { grid-column-end: 7; } .ge-8 { grid-column-end: 8; } .ge-9 { grid-column-end: 9; } .ge-10 { grid-column-end: 10; } .ge-11 { grid-column-end: 11; } .ge-12 { grid-column-end: 12; } .ge-13 { grid-column-end: 13; } .ge-14 { grid-column-end: 14; } .ge-15 { grid-column-end: 15; } .ge-16 { grid-column-end: 16; } .ge-17 { grid-column-end: 17; } .ge-18 { grid-column-end: 18; } .ge-19 { grid-column-end: 19; } .ge-20 { grid-column-end: 20; } .ge-21 { grid-column-end: 21; } .ge-22 { grid-column-end: 22; } .ge-23 { grid-column-end: 23; } .ge-24 { grid-column-end: 24; } .ge-25 { grid-column-end: 25; }
.bahn-1 { grid-row: 1; } .bahn-2 { grid-row: 2; } .bahn-3 { grid-row: 3; } .bahn-4 { grid-row: 4; }
@media (max-width: 760px) {
  .wp-achse { display: none; }
  .wp-tag { grid-template-columns: 1fr; gap: .6rem; }
  .wp-tag .wp-raster { display: flex; flex-direction: column; gap: .5rem; background: none; }
  .wp-block { margin-right: 0; }
}

/* ---------- Jugend ---------- */
.jugend-bilder { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.jugend-bilder img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
@media (max-width: 560px) { .jugend-bilder { grid-template-columns: 1fr; } }

/* ---------- Mitglied werden ---------- */
.schritte { list-style: none; padding: 0; counter-reset: schritt; margin-bottom: 3rem; }
.schritte > li { counter-increment: schritt; position: relative; padding: 0 0 1.75rem 4rem; }
.schritte > li::before {
  content: counter(schritt); position: absolute; left: 0; top: -.15rem;
  width: 2.75rem; height: 2.75rem; display: grid; place-items: center;
  font: 700 1.5rem/1 var(--schrift-schmal); color: #fff; background: var(--marke); border-radius: 50%;
}
.schritte > li:not(:last-child)::after { content: ""; position: absolute; left: 1.35rem; top: 2.85rem; bottom: .35rem; width: 2px; background: var(--linie); }
.schritte h3 { margin-bottom: .3rem; padding-top: .3rem; }
.beitraege { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin: 1.5rem 0 .75rem; }
@media (max-width: 640px) { .beitraege { grid-template-columns: 1fr; } }

/* ---------- Anlage ---------- */
.standort { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.standort-bilder { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.standort-bilder img { width: 100%; height: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
.standort-bilder .gross { grid-column: 1 / -1; }
.standort-zahl { font: 600 1.35rem/1.2 var(--schrift-schmal); color: var(--text-leise); display: flex; align-items: baseline; gap: .6rem; }
.standort-zahl span { font-size: 4.5rem; line-height: .8; color: var(--akzent); font-weight: 700; }
.standort address { font-weight: 600; margin-bottom: 1rem; }
.knopf-reihe { display: flex; flex-wrap: wrap; gap: .6rem; }
.standort-zwei { grid-template-columns: 1fr; border-top: 2px solid var(--marke); padding-top: 2rem; }
.standort-zwei .standort-text { max-width: 42rem; }
@media (max-width: 900px) { .standort { grid-template-columns: 1fr; } }

/* ---------- Geschichte ---------- */
.zeitleiste { list-style: none; padding: 0; margin: 0; max-width: 52rem; }
.zeitleiste li { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: 2rem; position: relative; padding-bottom: 2.25rem; }
.zeitleiste li::before { content: ""; position: absolute; left: calc(8rem + 1rem - 1px); top: .4rem; bottom: 0; width: 2px; background: var(--linie); }
.zeitleiste li::after { content: ""; position: absolute; left: calc(8rem + 1rem - 6px); top: .45rem; width: 12px; height: 12px; border-radius: 50%; background: var(--akzent); }
.zeitleiste li:last-child::before { display: none; }
.zl-jahr { font: 700 2.5rem/1 var(--schrift-schmal); color: var(--akzent); text-align: right; font-variant-numeric: tabular-nums; }
.zl-text { padding-left: .5rem; }
.zl-text h2 { font-size: 1.6rem; margin-bottom: .35rem; }
.zl-text p { max-width: 60ch; }
@media (max-width: 600px) {
  .zeitleiste li { grid-template-columns: 1fr; gap: .4rem; padding-left: 1.75rem; }
  .zeitleiste li::before { left: .3rem; }
  .zeitleiste li::after { left: -1px; }
  .zl-jahr { text-align: left; font-size: 2rem; }
  .zl-text { padding-left: 0; }
}

/* ---------- Clubmeisterschaft ---------- */
.jahre { display: flex; flex-wrap: wrap; gap: .4rem .9rem; align-items: baseline; font-family: var(--schrift-schmal); font-size: 1.15rem; }
.jahre span { color: var(--text-leise); }
.bewerbe { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1rem; }
.bewerbe a {
  display: flex; flex-direction: column; gap: .4rem; height: 100%;
  padding: 1.1rem 1.2rem; border-radius: var(--radius);
  background: var(--flaeche); border: 1px solid var(--linie); border-top: 4px solid var(--marke);
  color: var(--text); text-decoration: none;
}
.bewerbe a:hover { border-color: var(--akzent); border-top-color: var(--akzent); }
.bw-titel { font: 600 1.5rem/1.05 var(--schrift-schmal); }
.bw-meister { display: flex; align-items: center; gap: .45rem; font-weight: 600; color: var(--akzent); }
.bw-stand { color: var(--text-leise); font-size: .95rem; }

.siegerliste details { border-top: 1px solid var(--linie); }
.siegerliste details:last-child { border-bottom: 1px solid var(--linie); }
.siegerliste summary { cursor: pointer; padding: .9rem 0; list-style: none; display: flex; align-items: baseline; gap: 1rem; }
.siegerliste summary::-webkit-details-marker { display: none; }
.siegerliste summary::before { content: "+"; font: 600 1.5rem/1 var(--schrift-schmal); width: 1rem; color: var(--akzent); }
.siegerliste details[open] summary::before { content: "–"; }
.sl-jahr { font: 700 2rem/1 var(--schrift-schmal); font-variant-numeric: tabular-nums; }
.sl-hinweis { color: var(--text-leise); font-size: .95rem; }
.sieger-tabelle { margin: 0 0 1.5rem; }
.sieger-tabelle .meister { font-weight: 600; }
@media (max-width: 640px) {
  .sieger-tabelle thead { display: none; }
  .sieger-tabelle tr { display: grid; grid-template-columns: 1fr 1fr; padding: .6rem 0; border-bottom: 1px solid var(--linie); }
  .sieger-tabelle th, .sieger-tabelle td { border: 0; padding: .1rem .5rem .1rem 0; }
  .sieger-tabelle tbody th { grid-column: 1 / -1; font-family: var(--schrift-schmal); font-size: 1.2rem; }
  .sieger-tabelle td:empty { display: none; }
  .sieger-tabelle td:nth-of-type(2)::before { content: "Finale: "; color: var(--text-leise); }
  .sieger-tabelle td:nth-of-type(3)::before { content: "Platz 3: "; color: var(--text-leise); }
}

.meister-banner { display: inline-flex; align-items: center; gap: .7rem; padding: .7rem 1.1rem; border-radius: var(--radius); background: var(--tafel); color: #fff; font-size: 1.15rem; }
.meister-banner .icon { color: #ffbe9d; width: 1.5rem; height: 1.5rem; }

/* Turnierbaum */
.baum-rahmen { overflow-x: auto; margin: 1.5rem calc(-1 * var(--rand)) 2.5rem; padding: .5rem var(--rand) 1.5rem; scroll-snap-type: x proximity; }
.baum { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(14.5rem, 1fr); gap: 2.25rem; min-width: max-content; }
.runde { display: flex; flex-direction: column; scroll-snap-align: start; }
.runde-name { font: 600 1.25rem/1 var(--schrift-schmal); color: var(--text-leise); margin: 0 0 .75rem; padding-bottom: .5rem; border-bottom: 2px solid var(--marke); }
.runde-spiele { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; flex: 1; }
.spiel { flex: 1; display: flex; flex-direction: column; justify-content: center; position: relative; padding-block: .45rem; }
.runde:not(:last-child) .spiel::after {
  content: ""; position: absolute; right: -1.125rem; width: 1.125rem; border-right: 2px solid var(--linie);
}
.runde:not(:last-child) .spiel:nth-child(odd)::after { top: 50%; height: 50%; border-top: 2px solid var(--linie); }
.runde:not(:last-child) .spiel:nth-child(even)::after { bottom: 50%; height: 50%; border-bottom: 2px solid var(--linie); }
.runde:not(:first-child) .spiel::before { content: ""; position: absolute; left: -1.125rem; top: 50%; width: 1.125rem; border-top: 2px solid var(--linie); }
.spiel-karte { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); overflow: hidden; }
.spieler { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .45rem .65rem .45rem .75rem; border-left: 3px solid transparent; }
.spieler + .spieler { border-top: 1px solid var(--linie-zart); }
.spieler.ist-sieger { border-left-color: var(--akzent); font-weight: 600; }
.spieler.ist-frei .spieler-name, .offen { color: var(--text-leise); font-style: italic; font-weight: 400; }
.spieler-name { min-width: 0; overflow-wrap: anywhere; line-height: 1.25; font-size: .98rem; }
.saetze { display: flex; gap: .15rem; font: 500 1.1rem/1 var(--schrift-schmal); font-variant-numeric: tabular-nums; }
.satz { min-width: 1.35rem; text-align: center; color: var(--text-leise); }
.satz.gewonnen { color: var(--text); font-weight: 700; }
.spiel-termin { margin: 0; padding: .3rem .75rem .35rem; font: 500 .95rem/1.2 var(--schrift-schmal); color: var(--text-leise); background: var(--hintergrund); border-top: 1px solid var(--linie-zart); }
.ist-leer .spiel-karte { border-style: dashed; background: transparent; }
.ist-freilos .spiel-karte { border-style: dashed; background: transparent; padding: .55rem .75rem; color: var(--text-leise); font-style: italic; font-size: .95rem; }
.andere-bewerbe h2 { font-size: 1.5rem; }

/* ---------- Galerie ---------- */
.alben { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 2rem 1.25rem; }
.alben a { display: block; color: var(--text); text-decoration: none; }
.alben img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); margin-bottom: .7rem; background: var(--kiefer-100); }
.album-titel { display: block; font: 600 1.4rem/1.1 var(--schrift-schmal); }
.album-zahl { color: var(--text-leise); font-size: .95rem; }
.alben a:hover .album-titel { color: var(--akzent); text-decoration: underline; }
.fotos { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); grid-auto-rows: 9rem; grid-auto-flow: dense; gap: .5rem; }
.fotos li.ist-hoch { grid-row: span 2; }
.fotos a { display: block; height: 100%; border-radius: 2px; overflow: hidden; background: var(--kiefer-100); }
.fotos img { width: 100%; height: 100%; object-fit: cover; transition: opacity .2s; }
.fotos a:hover img { opacity: .85; }
@media (max-width: 480px) { .fotos { grid-template-columns: 1fr 1fr; grid-auto-rows: 7rem; } }

.leuchtkasten { border: 0; padding: 0; margin: 0; width: 100vw; height: 100vh; max-width: none; max-height: none; background: rgb(8 20 15 / .96); color: #fff; }
.leuchtkasten::backdrop { background: rgb(8 20 15 / .9); }
.leuchtkasten[open] { display: grid; place-items: center; }
.leuchtkasten figure { margin: 0; display: grid; gap: .6rem; justify-items: center; padding: 4rem 4.5rem 2rem; }
.leuchtkasten img { max-width: min(100%, 1400px); max-height: calc(100vh - 8rem); width: auto; height: auto; object-fit: contain; }
.leuchtkasten figcaption { font: 500 1.05rem/1 var(--schrift-schmal); color: rgb(255 255 255 / .75); }
.leuchtkasten button { position: absolute; display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; border: 0; background: rgb(255 255 255 / .12); color: #fff; cursor: pointer; }
.leuchtkasten button:hover { background: rgb(255 255 255 / .25); }
.leuchtkasten button .icon { width: 1.4rem; height: 1.4rem; }
.lk-zu { top: 1rem; right: 1rem; }
.lk-zurueck { left: 1rem; top: 50%; translate: 0 -50%; }
.lk-zurueck .icon { rotate: 180deg; }
.lk-vor { right: 1rem; top: 50%; translate: 0 -50%; }
@media (max-width: 640px) {
  .leuchtkasten figure { padding: 4rem .5rem 5rem; }
  .lk-zurueck, .lk-vor { top: auto; bottom: 1rem; translate: none; }
  .lk-zurueck { left: calc(50% - 3.5rem); }
  .lk-vor { right: calc(50% - 3.5rem); }
}

/* ---------- Aktuelles ---------- */
.termine { position: sticky; top: calc(var(--kopf-hoehe) + 1.5rem); }
.rueckblick { margin-top: 1.5rem; }
.rueckblick summary { cursor: pointer; font-weight: 600; color: var(--link); }
.rueckblick ul { list-style: none; padding: 0; margin-top: .75rem; }
.rueckblick li { padding: .45rem 0; border-bottom: 1px solid var(--linie); color: var(--text-leise); }
.rueckblick time { display: block; font: 500 1rem/1.2 var(--schrift-schmal); }
@media (max-width: 900px) { .termine { position: static; } }

.beitrag-datum { font: 500 1.2rem/1 var(--schrift-schmal); color: var(--text-leise); margin: 0; }
.beitrag-raster { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; margin-bottom: 1rem; }
.beitrag-raster:has(.beitrag-bild) { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: start; }
.beitrag-bild { margin: 0; }
.beitrag-bild img { border-radius: var(--radius); width: 100%; }
.beitrag-raster.mit-hochbild .beitrag-bild img { max-width: 26rem; box-shadow: var(--schatten); }
.fliesstext > p:first-child { font-size: 1.2rem; }
@media (max-width: 900px) { .beitrag-raster:has(.beitrag-bild) { grid-template-columns: 1fr; } }

/* ---------- Formulare (Turnierleitung) ---------- */
.formular label { display: block; font-weight: 600; margin: 1rem 0 .3rem; }
.formular input[type="text"], .formular input[type="password"], .formular input[type="number"], .formular input[type="date"], .formular input[type="time"], .formular select, .formular textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--flaeche);
  border: 1px solid var(--stein-600); border-radius: var(--radius); padding: .55rem .7rem; min-height: 2.75rem;
}
.formular textarea { min-height: 9rem; }
.formular button { margin-top: 1.25rem; }
.formular-schmal { max-width: 24rem; }
.optional { font-weight: 400; color: var(--text-leise); }
.feld-reihe { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.meldung { background: var(--kiefer-100); border-left: 4px solid var(--marke); padding: .8rem 1rem; border-radius: 0 var(--radius) var(--radius) 0; }
.meldung-fehler { background: var(--sand-100); border-left-color: var(--sand-600); }
.check { display: flex !important; align-items: center; gap: .6rem; font-weight: 400 !important; }
.admin-jahr summary { cursor: pointer; font: 600 1.5rem/1.6 var(--schrift-schmal); }
.admin-runde { border: 0; border-top: 2px solid var(--marke); padding: 0; margin: 2rem 0 0; }
.admin-runde legend { font: 600 1.6rem/1 var(--schrift-schmal); padding: .8rem 0 .5rem; }
.admin-spiel { display: grid; grid-template-columns: 5rem minmax(0, 2fr) minmax(0, 1.4fr); gap: .75rem 1.25rem; align-items: start; padding: 1rem 0; border-bottom: 1px solid var(--linie); }
.admin-spiel-nr { font: 600 1.1rem/2.75rem var(--schrift-schmal); color: var(--text-leise); margin: 0; }
.admin-spieler { display: grid; gap: .4rem; }
.admin-zeile { display: grid; grid-template-columns: minmax(0, 1fr) repeat(3, 3rem); gap: .3rem; }
.admin-zeile input.satz-feld { text-align: center; padding-inline: .2rem; font-family: var(--schrift-schmal); font-size: 1.2rem; }
.admin-termin { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem .6rem; }
.admin-termin label { margin: 0; font-weight: 500; font-size: .9rem; color: var(--text-leise); }
.admin-termin label:last-child { grid-column: 1 / -1; }
.admin-speichern { position: sticky; bottom: 0; background: var(--hintergrund); padding: .75rem 0 1rem; border-top: 1px solid var(--linie); margin-top: 1rem; z-index: 5; }
.admin-loeschen { margin-top: 4rem; padding-top: 1.5rem; border-top: 1px solid var(--linie); max-width: 32rem; }
.admin-loeschen h2 { font-size: 1.4rem; }
.abmelden { margin-top: 3rem; }
@media (max-width: 760px) { .admin-spiel { grid-template-columns: 1fr; } .admin-spiel-nr { line-height: 1; } }

/* ---------- 404 ---------- */
.fehlerseite { padding-block: clamp(4rem, 10vw, 8rem); }
.fehler-code { font: 700 clamp(6rem, 20vw, 12rem)/.8 var(--schrift-schmal); color: var(--akzent); margin-bottom: 1.5rem; }

/* ---------- Partner & Fuß ---------- */
.partner { background: var(--weiss); border-top: 1px solid var(--linie); color: var(--tinte); }
.partner-innen { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; padding-block: 2.25rem; }
.partner h2 { font-size: 1.35rem; margin: 0; color: var(--stein-700); }
.partner-logos { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem 3rem; }
.partner-logos img { height: 3.25rem; width: auto; max-width: 11rem; object-fit: contain; }
.partner-logos a { display: block; padding: .25rem; }
.partner-logos a:hover img { opacity: .75; }

.fuss { background: var(--kiefer-900); color: rgb(255 255 255 / .85); font-size: .98rem; }
.fuss a { color: #fff; }
.fuss a:hover { color: #ffd2bd; }
.fuss h2 { font-size: 1.25rem; color: #fff; margin-bottom: .6rem; }
.fuss-raster { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr 1.3fr; gap: 2.5rem; padding-block: 3.5rem 2.5rem; }
.fuss-marke { display: flex; gap: 1rem; align-items: flex-start; }
.fuss-marke img { height: 5rem; width: auto; }
.fuss-links { list-style: none; padding: 0; margin: 0; }
.fuss-links li { margin-bottom: .35rem; }
.fuss p a { overflow-wrap: anywhere; }
.fuss-unten { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-block: 1.25rem 2rem; border-top: 1px solid rgb(255 255 255 / .18); font-size: .92rem; color: rgb(255 255 255 / .7); }
.fuss-unten p { margin: 0; }
.fuss-unten ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.5rem; }
@media (max-width: 960px) { .fuss-raster { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .fuss-raster { grid-template-columns: 1fr; gap: 1.75rem; } }

/* ---------- Bewegung reduzieren ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- Druck ---------- */
@media print {
  .kopf, .partner, .fuss, .unternav, .btv, .schnellwahl, .held-knoepfe { display: none !important; }
  body { background: #fff; color: #000; }
  .held { min-height: 0; color: #000; background: none; padding-top: 0; }
  .held-bild, .held::before, .grundlinie { display: none; }
  .baum-rahmen { overflow: visible; }
}
