/* Vereinsplattform – Vereinsdesign wie Mitgliederverwaltung (16) und Turnier-App (15): Vereinsblau, Fairway-Grün, ruhige Karten.
   Farben aus den Einstellungen (farben.css). Inhaltsbreite wächst mit dem Bildschirm (--breite). */
:root {
  --blau: #173a63; --blau-dunkel: #0f2846; --link: #1d5fa8; --akzent: #7f9f35; --akzent-dunkel: #4f6b1f; --dunkel: #1c2a3a; --dunkel-tief: #152130;
  --grund: #f3f5f8; --flaeche: #ffffff; --feld: #eef2f6; --text: #1d2733; --leise: #687586; --linie: #dde3ea;
  --gruen: #2e6b32; --gruen-bg: #e6f2e7; --gelb: #8a5a00; --gelb-bg: #fff3d6; --rot: #a3261d; --rot-bg: #fbe9e7;
  --radius: 12px; --schatten: 0 1px 2px rgba(16, 32, 56, .06), 0 2px 8px rgba(16, 32, 56, .05); --schatten-hoch: 0 12px 30px rgba(16, 32, 56, .14);
  --schrift: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --navi: 264px; --navi-zu: 68px; --breite: 1320px; --rand: 1.5rem;
}
@media (min-width: 1700px) { :root { --breite: 1560px; --rand: 2rem; } }
@media (min-width: 2300px) { :root { --breite: 2040px; --rand: 2.5rem; } body { font-size: 18px; } }
@media (prefers-color-scheme: dark) {
  :root { --grund: #14181d; --flaeche: #1e242b; --feld: #262d35; --text: #e6eaef; --leise: #9ea8b3; --linie: #313942; --link: #8db4ff;
    --gruen: #86c995; --gruen-bg: #1b3122; --gelb: #f0c46a; --gelb-bg: #3a2e12; --rot: #f19a92; --rot-bg: #3b1d1a; }
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; overflow: hidden; overflow-x: clip; max-width: 100%; -webkit-text-size-adjust: 100%; touch-action: manipulation; }
body { font-family: var(--schrift); font-size: 16px; line-height: 1.55; color: var(--text); background: var(--grund); }
/* Fläche hinter der iPhone-Statusleiste fest füllen; nur #app scrollt */
body::before { content: ""; position: fixed; top: 0; left: 0; right: 0; height: env(safe-area-inset-top, 0px); background: var(--dunkel-tief); z-index: 60; }
#app { scrollbar-gutter: stable; position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; bottom: 0; overflow-y: scroll; overflow-x: clip; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
a { color: var(--link); }
a, button, input, select, textarea, label, summary { touch-action: manipulation; }
h1 { font-size: 1.65rem; line-height: 1.25; margin: 0 0 .6rem; color: var(--blau); letter-spacing: -.01em; }
h2 { font-size: 1.2rem; margin: 0 0 .6rem; color: var(--blau); }
h3 { font-size: 1.05rem; color: var(--blau); }
@media (prefers-color-scheme: dark) { h1, h2, h3 { color: #cfe0f5; } }
img { max-width: 100%; height: auto; }
svg.ik { width: 1.15em; height: 1.15em; vertical-align: -.2em; } /* Grundgröße – sonst wird ein Symbol ohne eigene Regel riesig (0.16.3) */
svg.ik, .sn-knopf svg, .menue-knopf svg, summary .pfeil { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
svg.schwung { fill: none; stroke: #ffd700; stroke-width: 2.6; stroke-linecap: round; }

/* Rahmen: Seitennavigation links, Inhalt rechts */
.rahmen { display: flex; min-height: 100%; }
.seitennavi { flex: 0 0 var(--navi); width: var(--navi); background: var(--dunkel); color: #eee; position: sticky; top: 0; align-self: flex-start;
  height: calc(100dvh - env(safe-area-inset-top, 0px)); overflow-y: auto; overflow-x: hidden; display: flex; flex-direction: column; transition: width .2s, flex-basis .2s; z-index: 40;
  padding-left: env(safe-area-inset-left, 0px); }
.sn-kopf { display: flex; align-items: center; gap: .4rem; padding: .9rem .7rem .9rem .9rem; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.sn-marke { display: flex; align-items: center; gap: .6rem; color: #fff; text-decoration: none; font-weight: 700; font-size: 1.05rem; min-width: 0; flex: 1; }
.sn-marke img, .marke-logo { height: 26px; width: auto; max-width: 90px; flex: none; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .3)); }
.hl-marke { display: inline-flex; align-items: center; gap: .5rem; }
.sn-marke svg.schwung { width: 40px; height: 22px; flex: none; }
.sn-knopf { flex: none; width: 36px; height: 36px; border-radius: 8px; border: 0; background: rgba(255, 255, 255, .08); color: #fff; cursor: pointer; display: grid; place-items: center; }
.sn-knopf svg { width: 20px; height: 20px; transition: transform .2s; }
.sn-liste { padding: .6rem .5rem 1.4rem; display: flex; flex-direction: column; gap: 2px; }
.np, .ng summary { display: flex; align-items: center; gap: .75rem; color: #dfe5ec; text-decoration: none; padding: .62rem .7rem; border-radius: 8px; font-size: .97rem; cursor: pointer; list-style: none; border-left: 3px solid transparent; }
.ng summary::-webkit-details-marker { display: none; }
.np:hover, .ng summary:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.np.an { background: rgba(255, 255, 255, .1); color: #fff; font-weight: 600; border-left-color: var(--akzent); }
.np svg.ik, .ng summary svg.ik { width: 21px; height: 21px; flex: none; color: var(--akzent); }
.nt { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; }
/* Voller Vereinsname in der Leiste (ab 0.9.3): zweizeilig statt abgeschnitten */
.marke-name { white-space: nowrap; line-height: 1.2; } /* gleiche Schrift wie die Leiste, eine Zeile */
.sn-marke .nt.marke-name { overflow: visible; flex: none; white-space: normal; }
/* Seitennavigation: Vogel oben, voller Name darunter – feste Höhe, damit das Menü ohne Vogel (Startseite) nicht springt */
.sn-marke { flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: .4rem; min-height: 4.6rem; }
html.navi-zu .sn-marke { align-items: center; justify-content: center; min-height: 0; }
.ng summary .pfeil { width: 16px; height: 16px; flex: none; transition: transform .2s; opacity: .7; }
.ng[open] > summary .pfeil { transform: rotate(90deg); }
.ng-inhalt { display: flex; flex-direction: column; gap: 2px; padding-left: .9rem; margin: 2px 0 4px .6rem; border-left: 1px solid rgba(255, 255, 255, .12); }
.ng-inhalt .np { font-size: .95rem; padding: .5rem .6rem; }
.sn-trenner { height: 1px; background: rgba(255, 255, 255, .12); margin: .6rem .4rem; }
.sn-schatten { display: none; }
.hauptteil { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; min-height: calc(100dvh - env(safe-area-inset-top, 0px)); }
.handy-leiste { display: none; }

/* Eingeklappt (PC): nur Symbole */
html.navi-zu .seitennavi { flex-basis: var(--navi-zu); width: var(--navi-zu); }
html.navi-zu .nt, html.navi-zu .ng summary .pfeil, html.navi-zu .ng-inhalt { display: none; }
html.navi-zu .sn-kopf { flex-direction: column; padding: .8rem .4rem; }
html.navi-zu .sn-knopf svg { transform: rotate(180deg); }
html.navi-zu .np, html.navi-zu .ng summary { justify-content: center; padding: .65rem 0; }

/* Kopfbereich wie die Turnier-App: Abendhimmel bzw. Kopfbild, Albatros-Schwung, Vereinsname – auf die Inhaltsbreite ausgerichtet */
.held { position: relative; color: #fff; background: radial-gradient(120% 140% at 62% 105%, #ffcf4a 0%, #f39a1f 22%, #b8561a 45%, #4a2a12 72%, #1d140c 100%); background-size: cover; background-position: center 38%; }
.held-innen { position: relative; z-index: 1; max-width: var(--breite); margin: 0 auto; padding: 1.5rem var(--rand) 1.7rem; display: flex; flex-direction: column; gap: .5rem; }
.held.gross .held-innen { min-height: clamp(300px, 30vw, 500px); padding-bottom: 5rem; justify-content: flex-end; }
.held-vogel { width: clamp(150px, 14vw, 280px); height: auto; margin-bottom: .6rem; filter: drop-shadow(0 3px 10px rgba(0, 0, 0, .45)); }
/* Startseite: großer Vogel im Kopfbild – oben in der Leiste dann nur der Schriftzug (nicht doppelt) */
/* unsichtbar statt weg: Platz bleibt gleich, die Menüleiste springt beim Seitenwechsel nicht (0.9.2) */
body.ist-start .sn-marke .marke-logo, body.ist-start .hl-marke .marke-logo { display: none; } /* großer Vogel im Kopfbild; Name beginnt bündig */
html.navi-zu body.ist-start .sn-marke .marke-logo { display: block; } /* eingeklappt gäbe es sonst kein Zeichen */
.held-leit { margin: 0; color: #fff; font-size: clamp(2.1rem, 4vw, 4.2rem); line-height: 1.08; font-weight: 700; letter-spacing: -.015em; max-width: 900px; text-shadow: 0 2px 14px rgba(0, 0, 0, .5); }

.inhalt { width: 100%; max-width: var(--breite); margin: 0 auto; padding: 1.6rem var(--rand) 2.8rem; padding-right: max(var(--rand), env(safe-area-inset-right)); flex: 1; }
.fuss { background: var(--dunkel); color: #d3dae2; font-size: .93rem; }
.fuss-innen { max-width: var(--breite); margin: 0 auto; padding: 2rem var(--rand) calc(2rem + env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; line-height: 1.75; }
.fuss strong { color: #fff; }
.fuss a { color: #d3dae2; }
.mehrzeilig { white-space: pre-line; }

/* Laufticker (Hinweis + Neuigkeiten aus der Turnier-App); läuft nur, wenn er nicht in eine Zeile passt */
.laufticker { position: relative; z-index: 2; display: flex; align-items: stretch; background: var(--flaeche); border-radius: var(--radius); box-shadow: var(--schatten-hoch); overflow: hidden; margin: -3.4rem 0 1.4rem; min-height: 3.3rem; }
.lt-kopf { flex: none; display: flex; align-items: center; gap: .45rem; padding: 0 1rem; background: var(--blau); color: #fff; font-weight: 700; font-size: .95rem; }
.lt-kopf svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lt-fenster { flex: 1; min-width: 0; overflow: hidden; display: flex; align-items: center; -webkit-mask-image: linear-gradient(90deg, transparent, #000 1.2rem, #000 calc(100% - 2rem), transparent); mask-image: linear-gradient(90deg, transparent, #000 1.2rem, #000 calc(100% - 2rem), transparent); }
.lt-band { display: flex; gap: 2.2rem; padding: 0 1.2rem; white-space: nowrap; width: max-content; }
.lt-band.laeuft { animation: lt-lauf linear infinite; }
.laufticker:hover .lt-band, .laufticker:focus-within .lt-band { animation-play-state: paused; }
@keyframes lt-lauf { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.lt-eintrag { display: inline-flex; align-items: center; gap: .55rem; color: var(--text); text-decoration: none; padding: .75rem 0; }
a.lt-eintrag:hover .lt-text { color: var(--link); text-decoration: underline; }
.lt-art { font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; padding: .2rem .55rem; border-radius: 99px; background: var(--feld); color: var(--blau); }
.lt-ergebnis { background: #e3efd6; color: #3d5a14; } .lt-live { background: #fbe3df; color: #a3261d; } .lt-startliste { background: #e2ecf8; color: #173a63; } .lt-anmeldung { background: #fff1d1; color: #7a5200; }
.lt-text { font-weight: 600; }
.lt-schloss { font-size: .85rem; }
@media (prefers-reduced-motion: reduce) { .lt-band.laeuft { animation: none; } .lt-fenster { overflow-x: auto; } }
@media (prefers-color-scheme: dark) { .lt-art { filter: brightness(.9); } }

/* Startseite */
.schnell { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: .9rem; margin-bottom: 1.8rem; }
.schnell-kachel { display: flex; align-items: center; gap: .85rem; background: var(--flaeche); border: 1px solid var(--linie); border-left: 4px solid var(--blau); border-radius: var(--radius); box-shadow: var(--schatten); padding: .85rem 1rem; text-decoration: none; color: var(--text); transition: border-color .15s, transform .15s; }
.schnell-kachel:hover { border-color: var(--blau); transform: translateY(-1px); }
.schnell-kachel svg.ik { width: 28px; height: 28px; flex: none; color: var(--akzent-dunkel); }
.schnell-kachel span { display: flex; flex-direction: column; min-width: 0; }
.schnell-kachel strong { color: var(--blau); }
.schnell-kachel small { color: var(--leise); font-size: .86rem; }
.start-raster { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 340px); gap: 1.8rem; align-items: start; }
@media (min-width: 1700px) { .start-raster { grid-template-columns: minmax(0, 1fr) 380px; } }
.start-seite { display: flex; flex-direction: column; gap: 1rem; position: sticky; top: 1rem; }
.seitenkasten { margin: 0; }
.seitenkasten p { margin: 0 0 .8rem; color: var(--text); }
.seitenkasten.akzent { border-top: 4px solid var(--akzent); }
.abschnitt { margin: 0 0 2.2rem; }
.kopfzeile { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: .9rem; }
.kopfzeile h2 { margin: 0; font-size: 1.3rem; padding-left: .7rem; border-left: 4px solid var(--akzent); line-height: 1.2; }
.seitenkasten .kopfzeile h2 { font-size: 1.1rem; }
.kopfzeile a { font-weight: 600; text-decoration: none; white-space: nowrap; }
.berichte-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.2rem; }
.bericht-karte { overflow-wrap: anywhere; background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); box-shadow: var(--schatten); overflow: hidden; text-decoration: none; color: var(--text); display: flex; flex-direction: column; transition: box-shadow .18s, transform .18s; }
.bericht-karte:hover { box-shadow: var(--schatten-hoch); transform: translateY(-2px); }
.bk-bild { display: block; aspect-ratio: 16 / 10; background: linear-gradient(135deg, #2a4a72, #173a63 55%, #7f9f35); overflow: hidden; }
.bk-bild img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.bericht-karte:hover .bk-bild img { transform: scale(1.03); }
.bk-text { padding: .85rem 1.05rem 1.1rem; display: flex; flex-direction: column; gap: .45rem; flex: 1; }
.bk-meta { display: flex; align-items: center; gap: .45rem; font-size: .84rem; color: var(--leise); }
.bk-kreis { width: 26px; height: 26px; border-radius: 50%; background: var(--blau); color: #fff; font-weight: 700; font-size: .7rem; display: grid; place-items: center; flex: none; }
.bk-text strong { color: var(--blau); font-size: 1.06rem; line-height: 1.3; }
.bk-text .auszug { font-size: .93rem; color: var(--leise); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (min-width: 1100px) {
  
  .bericht-karte.gross .bk-bild { aspect-ratio: auto; flex: 1 1 auto; min-height: 280px; }
  .bericht-karte.gross .bk-text { flex: none; padding: 1.1rem 1.4rem 1.3rem; }
  .bericht-karte.gross strong { font-size: 1.4rem; }
  .bericht-karte.gross .auszug { -webkit-line-clamp: 3; font-size: 1rem; }
}
/* Startseite (ab 0.9.10): feste Spaltenzahl je nach Breite der Hauptspalte und nur so viele Berichte, dass jede Reihe voll ist –
   nie ein Bericht allein in der letzten Reihe. Großer Aufmacher = 2×2 Felder (ab 3 Spalten), bei 2 Spalten eine volle Reihe. */
.start-haupt { container-type: inline-size; container-name: haupt; min-width: 0; }
.berichte-raster.start-berichte { grid-template-columns: minmax(0, 1fr); }
.berichte-raster.start-berichte > .bericht-karte:nth-child(n+5) { display: none; }
@container haupt (min-width: 520px) {
  .berichte-raster.start-berichte { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .berichte-raster.start-berichte > .bericht-karte.gross { grid-column: span 2; }
  .berichte-raster.start-berichte > .bericht-karte:nth-child(5) { display: flex; }
}
@container haupt (min-width: 520px) and (max-width: 799.98px) {
  /* zwei Spalten: Aufmacher quer – Foto links, Text rechts, statt eines riesigen Blocks */
  .berichte-raster.start-berichte > .bericht-karte.gross { flex-direction: row; }
  .berichte-raster.start-berichte > .bericht-karte.gross .bk-bild { flex: 0 0 55%; aspect-ratio: 16 / 11; min-height: 0; }
  .berichte-raster.start-berichte > .bericht-karte.gross .bk-text { flex: 1; justify-content: center; padding: 1rem 1.2rem; }
  .berichte-raster.start-berichte > .bericht-karte.gross strong { font-size: 1.2rem; }
}
@container haupt (min-width: 800px) {
  .berichte-raster.start-berichte { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .berichte-raster.start-berichte > .bericht-karte.gross { grid-row: span 2; }
  .berichte-raster.start-berichte > .bericht-karte:nth-child(6) { display: flex; }
}
@container haupt (min-width: 1100px) {
  .berichte-raster.start-berichte { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .berichte-raster.start-berichte > .bericht-karte:nth-child(n+7) { display: flex; }
}
@container haupt (min-width: 1400px) {
  .berichte-raster.start-berichte { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .berichte-raster.start-berichte > .bericht-karte:nth-child(n+8) { display: none; }
}
/* Berichte-Übersicht (12 je Seite): Spaltenzahl 1/2/3/4/6 – 12 geht darin immer auf; der große Aufmacher (2×2 = 4 Felder)
   nur bei 3 Spalten (4 + 11 = 15 = 5 volle Reihen), sonst normale Karte (12 Felder) */
.uebersicht-huelle { container-type: inline-size; container-name: liste; }
.berichte-raster.alle-berichte { grid-template-columns: minmax(0, 1fr); }
@container liste (min-width: 520px) { .berichte-raster.alle-berichte { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container liste (min-width: 800px) { .berichte-raster.alle-berichte { grid-template-columns: repeat(3, minmax(0, 1fr)); } .berichte-raster.alle-berichte > .bericht-karte.gross { grid-column: span 2; grid-row: span 2; } }
@container liste (min-width: 1100px) { .berichte-raster.alle-berichte { grid-template-columns: repeat(4, minmax(0, 1fr)); } .berichte-raster.alle-berichte > .bericht-karte.gross { grid-column: auto; grid-row: auto; }
  .berichte-raster.alle-berichte > .bericht-karte.gross .bk-bild { aspect-ratio: 16 / 10; flex: none; min-height: 0; } .berichte-raster.alle-berichte > .bericht-karte.gross .bk-text { flex: 1; padding: .85rem 1.05rem 1.1rem; } .berichte-raster.alle-berichte > .bericht-karte.gross strong { font-size: 1.06rem; } .berichte-raster.alle-berichte > .bericht-karte.gross .auszug { font-size: .93rem; } }
@container liste (min-width: 1600px) { .berichte-raster.alle-berichte { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
/* Kurzübersichten in der Hauptspalte: nebeneinander nur, wenn genug Platz */
.start-raster .start-haupt .karten-reihe { grid-template-columns: minmax(0, 1fr); }
@container haupt (min-width: 640px) { .start-raster .start-haupt .karten-reihe { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.termin-kurz { list-style: none; padding: 0; margin: 0; }
.termin-kurz li { display: flex; gap: .8rem; align-items: center; padding: .6rem 0; border-bottom: 1px solid var(--linie); }
.termin-kurz li:last-child { border-bottom: 0; }
.termin-kurz small { display: block; color: var(--leise); font-size: .84rem; }
.termin-kurz strong { display: block; line-height: 1.3; }
.kal { flex: none; width: 50px; border-radius: 9px; overflow: hidden; text-align: center; font-size: .72rem; font-weight: 700; text-transform: uppercase; color: #fff; background: var(--blau); padding-bottom: .2rem; }
.kal b { display: block; background: var(--flaeche); color: var(--blau); font-size: 1.25rem; line-height: 1.5; border: 1px solid var(--linie); border-bottom: 0; border-radius: 9px 9px 0 0; }
.einleitung { margin-bottom: 1.6rem; }
@media (prefers-color-scheme: dark) { .bk-text strong, .schnell-kachel strong { color: #cfe0f5; } .kal b { color: #cfe0f5; } }

/* Bausteine */
.karte { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); box-shadow: var(--schatten); padding: 1.15rem 1.3rem; margin-bottom: 1rem; }
.schmal { max-width: 560px; margin-left: auto; margin-right: auto; }
.spalten { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 1.2rem; align-items: start; }
.karten { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.datum { color: var(--leise); font-size: .88rem; }
.ort { display: block; color: var(--leise); font-size: .9rem; }
.leer { color: var(--leise); font-style: italic; }
.hinweis { color: var(--leise); }
.klein { font-size: .88rem; color: var(--leise); }
.erledigt { color: var(--gruen); font-weight: 600; }
.text, .karte, .liste li, .todo li { overflow-wrap: anywhere; }
.text h2 { margin-top: 1.2rem; } .text h3 { margin-top: 1rem; }
.text blockquote { border-left: 4px solid var(--linie); margin: .8rem 0; padding: .2rem .9rem; color: var(--leise); }
figure.bild { margin: 1rem 0; } figure.bild img { border-radius: 10px; } figure.bild figcaption { font-size: .9rem; color: var(--leise); }

/* Meldungen und Ampel (grün = erledigt, gelb = ansehen, rot = muss) */
.meldung { border-radius: 10px; padding: .7rem 1rem; margin: 0 0 1rem; background: var(--gruen-bg); color: var(--gruen); }
.m-gelb { background: var(--gelb-bg); color: var(--gelb); } .m-rot { background: var(--rot-bg); color: var(--rot); }
.todo ul { list-style: none; padding: 0; margin: 0; }
.todo li { padding: .55rem .8rem; border-radius: 8px; margin-bottom: .4rem; border-left: 5px solid var(--linie); background: var(--feld); }
.todo li.rot { border-left-color: var(--rot); } .todo li.gelb { border-left-color: var(--gelb); } .todo li.gruen { border-left-color: var(--gruen); }
.todo li a { color: var(--text); text-decoration: none; display: block; }
.marke-status { display: inline-block; font-size: .8rem; padding: .1rem .55rem; border-radius: 99px; background: var(--feld); color: var(--leise); margin-left: .3rem; }

/* Dashboard */
.kacheln { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .8rem; margin: 1rem 0 1.4rem; }
.kachel { background: var(--flaeche); border: 1px solid var(--linie); border-left: 4px solid var(--blau); border-radius: var(--radius); box-shadow: var(--schatten); padding: .9rem 1rem; text-decoration: none; color: var(--blau); display: flex; align-items: center; gap: .75rem; font-weight: 600; transition: border-color .15s, transform .15s; }
.kachel svg.ik { width: 26px; height: 26px; flex: none; color: var(--akzent-dunkel); }
.kachel:hover { border-color: var(--blau); transform: translateY(-1px); }
.zahlen { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: .8rem; margin: 1rem 0; }
.zahl { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); padding: .8rem 1rem; }
.zahl strong { display: block; font-size: 1.5rem; color: var(--blau); } .zahl span { color: var(--leise); font-size: .9rem; }
@media (prefers-color-scheme: dark) { .zahl strong { color: #9cc3ef; } }
.liste { list-style: none; padding: 0; margin: 0; }
.liste li { padding: .7rem .2rem; border-bottom: 1px solid var(--linie); display: flex; flex-wrap: wrap; gap: .3rem .8rem; align-items: baseline; }
.liste li > a:first-child { font-weight: 600; color: var(--blau); text-decoration: none; }
.liste li > a:first-child:hover { color: var(--link); text-decoration: underline; }
.liste.karte, .karte > .liste { padding-top: .2rem; }
.liste.karte li:last-child { border-bottom: 0; }

/* Formulare: getönte Felder, Frage fett, Kurzes nebeneinander */
.formular { display: flex; flex-direction: column; gap: .8rem; margin-top: .6rem; }
.formular label, fieldset legend { font-weight: 600; display: flex; flex-direction: column; gap: .3rem; }
.formular label small { font-weight: 400; color: var(--leise); }
.reihe { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .8rem; }
.reihe .breit { grid-column: span 2; }
input, select, textarea { font: inherit; font-size: max(16px, 1em); color: var(--text); background: var(--feld); border: 1px solid var(--linie); border-radius: 9px; padding: .6rem .75rem; width: 100%; max-width: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--blau); outline-offset: 1px; background: var(--flaeche); }
input[type=checkbox], input[type=radio] { width: 1.2rem; height: 1.2rem; accent-color: var(--blau); }
input[type=color] { padding: .2rem; height: 2.8rem; }
input[type=file] { background: transparent; border-style: dashed; }
.haken, .wahl label { flex-direction: row !important; align-items: center; gap: .5rem !important; font-weight: 400 !important; }
.wahl { display: flex; gap: 1.2rem; flex-wrap: wrap; }
fieldset { border: 0; padding: 0; margin: 0; }
.filter { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 1rem; align-items: center; }
.filter input, .filter select { width: auto; flex: 1 1 160px; }
.knoepfe { display: flex; gap: .6rem; flex-wrap: wrap; }
.knopf { display: inline-block; font: inherit; font-weight: 600; background: var(--blau); color: #fff; border: 1px solid var(--blau); border-radius: 9px; padding: .6rem 1.1rem; cursor: pointer; text-decoration: none; }
.knopf:hover { filter: brightness(1.07); }
.knopf.leise { background: var(--flaeche); color: var(--blau); border-color: var(--linie); }
.knopf.leise:hover { border-color: var(--blau); filter: none; }
.knopf.gefahr { background: var(--flaeche); color: var(--rot); border-color: var(--rot-bg); }
.knopf.rund { border-radius: 999px; padding: .65rem 1.4rem; }
.knopf.klein { padding: .35rem .7rem; font-size: .9rem; }
/* Startseite (ab 0.9.3): Gold wie der Vogel, heller Rahmen auf dunklem Grund */
.knopf.gold { background: #f2c230; border-color: #f2c230; color: #1c2a3a; font-weight: 700; padding: .75rem 1.4rem; }
.knopf.rahmen-hell { background: transparent; border: 2px solid rgba(255, 255, 255, .85); color: #fff; font-weight: 700; padding: .7rem 1.35rem; }
.knopf.rahmen-hell:hover { background: rgba(255, 255, 255, .1); filter: none; }
.held-ober { margin: 0; color: #f2c230; font-weight: 700; font-size: clamp(.85rem, 1vw, 1.05rem); letter-spacing: .1em; text-transform: uppercase; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
.held-text-unter { margin: .2rem 0 0; max-width: 46rem; color: #f3f6fa; font-size: clamp(1.02rem, 1.25vw, 1.3rem); line-height: 1.45; text-shadow: 0 1px 6px rgba(0, 0, 0, .6); }
.held-knoepfe { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: .9rem; }
.karten-reihe { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; margin-top: 2.2rem; }
.uebersicht { margin: 0; display: flex; flex-direction: column; }
.uebersicht .termin-kurz { flex: 1; }
.mehr-link { display: inline-block; margin-top: .9rem; font-weight: 600; }
.zahlen { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; flex: 1; }
.zahlen div { background: var(--feld); border-radius: 12px; padding: .9rem 1rem; }
.zahlen b { display: block; font-size: clamp(1.8rem, 2.4vw, 2.5rem); line-height: 1.1; color: var(--blau); }
.zahlen span { color: var(--leise); font-size: .92rem; }
.naechstes-titel { margin: 0 0 .2rem !important; font-size: 1.08rem; }
.naechstes-zeile { margin: 0 0 .4rem !important; color: var(--leise) !important; font-size: .92rem; }
.naechstes-zaehler { font-weight: 700; color: var(--akzent) !important; }
.kurz-links { list-style: none; margin: 0; padding: 0; }
.kurz-links li { border-bottom: 1px solid var(--linie); }
.kurz-links li:last-child { border-bottom: 0; }
.kurz-links a { display: flex; align-items: center; gap: .6rem; padding: .6rem 0; text-decoration: none; font-weight: 600; }
.kurz-links svg.ik { width: 20px; height: 20px; flex: none; color: var(--akzent); }
.band-mitglied { margin-top: 2.2rem; background: var(--dunkel); color: #fff; border-radius: 18px; padding: 2rem 2.4rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem 2.5rem; flex-wrap: wrap; }
.band-mitglied .band-ober { margin: 0 0 .35rem; color: #f2c230; font-weight: 700; font-size: .9rem; letter-spacing: .1em; text-transform: uppercase; }
.band-mitglied h2 { margin: 0 0 .4rem; color: #fff; font-size: clamp(1.5rem, 2vw, 2rem); }
.band-mitglied p { margin: 0; color: #dfe6ee; max-width: 42rem; line-height: 1.5; }
.band-knoepfe { display: flex; flex-wrap: wrap; gap: .7rem; }
details:not(.ng) summary { cursor: pointer; color: var(--blau); margin: .6rem 0; }

/* Textfeld mit Knöpfen */
.editor { border: 1px solid var(--linie); border-radius: 10px; overflow: hidden; }
.editor-leiste { display: flex; gap: .3rem; flex-wrap: wrap; padding: .4rem; background: var(--flaeche); border-bottom: 1px solid var(--linie); }
.ek { font: inherit; background: var(--feld); border: 1px solid var(--linie); color: var(--text); border-radius: 7px; min-width: 2.4rem; padding: .35rem .6rem; cursor: pointer; font-weight: 700; }
.ek-vorschau { margin-left: auto; font-weight: 600; }
.ek-bild { width: auto; padding: .3rem .5rem; }
.editor textarea { border: 0; border-radius: 0; min-height: 14rem; resize: vertical; }
.editor-vorschau { padding: .8rem 1rem; border-top: 1px dashed var(--linie); background: var(--flaeche); }

/* Mediathek, Tabellen */
.medien-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; }
.medium { display: flex; flex-direction: column; gap: .5rem; }
.medium img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }
.medium .pdf { aspect-ratio: 4 / 3; display: grid; place-items: center; background: var(--feld); border-radius: 8px; font-size: 1.4rem; }
.tabelle-rahmen { overflow-x: auto; margin-bottom: 1rem; }
.tabelle { width: 100%; border-collapse: collapse; background: var(--flaeche); border-radius: var(--radius); }
.tabelle th, .tabelle td { text-align: left; padding: .55rem .7rem; border-bottom: 1px solid var(--linie); vertical-align: top; }
.tabelle tr.aus td { opacity: .5; }
pre.log { white-space: pre-wrap; word-break: break-word; font-size: .8rem; max-height: 22rem; overflow: auto; background: var(--feld); padding: .7rem; border-radius: 8px; }

/* Variante „Menüleiste oben“ (nur PC; am Handy gleiche Schublade wie bei der Seitennavigation).
   Leiste über die ganze Breite, Inhalt auf die Inhaltsbreite ausgerichtet und mittig. */
@media (min-width: 901px) {
  html.navi-oben .rahmen { flex-direction: column; }
  html.navi-oben .seitennavi { position: sticky; top: 0; flex: none; width: 100%; height: auto; align-self: stretch; flex-direction: row; align-items: center; overflow: visible;
    padding: 0 max(var(--rand), calc((100% - var(--breite)) / 2 + var(--rand))); box-shadow: 0 2px 12px rgba(0, 0, 0, .2); }
  html.navi-oben .sn-kopf { border-bottom: 0; padding: .6rem 1.4rem .6rem 0; flex: none; }
  html.navi-oben .sn-knopf { display: none; }
  html.navi-oben .sn-liste { flex-direction: row; flex-wrap: wrap; justify-content: center; align-items: center; padding: .3rem 0; gap: 2px; flex: 1; min-width: 0; }
  html.navi-oben .np, html.navi-oben .ng summary { padding: .65rem .85rem; border-left: 0; border-bottom: 3px solid transparent; border-radius: 6px 6px 0 0; gap: .4rem; font-size: .96rem; }
  html.navi-oben .np.an { border-bottom-color: var(--akzent); background: rgba(255, 255, 255, .08); font-weight: inherit; color: #fff; } /* gleiche Schriftstärke: kein Springen */
  html.navi-oben .sn-liste > .np svg.ik, html.navi-oben .ng > summary svg.ik { display: none; }
  html.navi-oben .nt { overflow: visible; }
  html.navi-oben .sn-marke { flex-direction: row; align-items: center; justify-content: flex-start; gap: .6rem; min-height: 0; }
  html.navi-oben .sn-marke .marke-name { flex: none; white-space: nowrap; }
  html.navi-oben .sn-kopf { width: 25rem; } /* feste Breite: Menü bleibt stehen, ob mit oder ohne kleinen Vogel */
  html.navi-oben .ng { position: relative; }
  html.navi-oben .ng summary .pfeil { transform: rotate(90deg); }
  html.navi-oben .ng[open] > summary .pfeil { transform: rotate(-90deg); }
  html.navi-oben .ng[open] > summary { background: rgba(255, 255, 255, .1); color: #fff; }
  html.navi-oben .ng-inhalt { position: absolute; top: calc(100% + 4px); left: 0; min-width: 240px; margin: 0; padding: .4rem; border-left: 0; background: var(--dunkel); border-radius: 0 0 10px 10px; box-shadow: 0 12px 28px rgba(0, 0, 0, .3); z-index: 50; }
  html.navi-oben .ng:last-child .ng-inhalt { left: auto; right: 0; }
  html.navi-oben .ng-inhalt .np { border-radius: 6px; border-bottom: 0; border-left: 3px solid transparent; }
  html.navi-oben .ng-inhalt .np.an { border-left-color: var(--akzent); }
  html.navi-oben .sn-trenner { width: 1px; height: 26px; margin: 0 .5rem; }
}

/* Unterseiten (ab 0.8.0): Kopf mit Wegweiser und großem Titel, Lesespalte + Seitenleiste, Galerien, Großansicht */
.held.unter .held-innen { min-height: 190px; justify-content: flex-end; padding-top: 2rem; padding-bottom: 2.2rem; gap: .55rem; }
.held.unter.mit-foto { background: #1d140c; overflow: hidden; }
/* Mitgliederbereich und Redaktion: ruhiger Kopf in Vereinsblau (wie Mitgliederverwaltung) */
.held.unter.intern { background: linear-gradient(120deg, var(--dunkel-tief) 0%, var(--blau-dunkel) 55%, var(--blau) 100%); }
.held.unter.intern .held-innen { min-height: 128px; padding-top: 1.4rem; padding-bottom: 1.5rem; }
.held.unter.intern .held-h1 { font-size: clamp(1.5rem, 2vw, 2.1rem); }
.held.unter.intern .krume, .held.unter.intern .krume a { color: #cfe0f5; }
.held.unter.mit-foto .held-innen { min-height: clamp(260px, 26vw, 420px); }
.held-foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.held.unter.mit-foto::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8, 18, 32, .82), rgba(8, 18, 32, .15) 65%), linear-gradient(90deg, rgba(8, 18, 32, .45), transparent 70%); }
.krume { display: flex; flex-wrap: wrap; gap: .4rem; font-size: .9rem; color: #ffe9c7; text-shadow: 0 1px 2px rgba(0, 0, 0, .5); }
.krume a { color: #ffe9c7; text-decoration: none; } .krume a:hover { text-decoration: underline; }
.held-h1 { margin: 0; color: #fff; font-size: clamp(1.6rem, 2.6vw, 2.6rem); line-height: 1.15; font-weight: 700; max-width: 980px; text-shadow: 0 2px 10px rgba(0, 0, 0, .45); letter-spacing: -.01em; }
.held-zeile { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; color: #f2f4f7; font-size: 1rem; text-shadow: 0 1px 3px rgba(0, 0, 0, .5); }
.held-zeile .bk-kreis { width: 30px; height: 30px; font-size: .75rem; border: 2px solid rgba(255, 255, 255, .7); }
.lese-raster { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); gap: 1.8rem; align-items: start; }
@media (min-width: 1700px) { .lese-raster { grid-template-columns: minmax(0, 1fr) 400px; } .artikel .text { font-size: 1.12rem; } }
@media (min-width: 2300px) { .lese-raster { grid-template-columns: minmax(0, 1fr) 440px; gap: 2.4rem; } .artikel { padding: 2.4rem 3rem 2rem; } }
.lese-raster.breit-links { grid-template-columns: minmax(0, 1fr) minmax(280px, 360px); }
.lese-raster.ohne-seite { grid-template-columns: minmax(0, 1fr); }
.lese-seite { display: flex; flex-direction: column; gap: 1rem; position: sticky; top: 1rem; }
.artikel { margin: 0; padding: 1.8rem 2.2rem 1.6rem; }
.artikel .text { font-size: 1.05rem; line-height: 1.72; }
.artikel .text > h2 { font-size: 1.35rem; margin: 1.6rem 0 .6rem; } .artikel .text > h2:first-child { margin-top: 0; }
.artikel .text > p:first-child { font-size: 1.12rem; }
figure.bild { margin: 1.4rem 0; } figure.bild img { border-radius: 10px; max-height: 70vh; width: auto; max-width: 100%; }
figure.bild a { display: inline-block; cursor: zoom-in; }
.galerie { margin: 1.6rem 0; }
.g-kopf { display: flex; align-items: center; gap: .4rem; font-size: .85rem; font-weight: 600; color: var(--leise); margin-bottom: .5rem; }
.g-kopf svg.ik { width: 18px; height: 18px; color: var(--akzent-dunkel); }
.g-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px; }
@media (min-width: 1700px) { .g-raster { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); } }
.galerie.wenige .g-raster { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.g-bild { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 8px; background: var(--feld); cursor: zoom-in; }
.g-bild img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s, filter .3s; }
.g-bild:hover img { transform: scale(1.05); filter: brightness(1.05); }
.bearbeiten { margin: 1.2rem 0 0; }
.weiter-zurueck { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid var(--linie); }
.weiter-zurueck a { display: flex; flex-direction: column; gap: .2rem; padding: .8rem 1rem; border: 1px solid var(--linie); border-radius: 10px; text-decoration: none; color: var(--blau); font-weight: 600; line-height: 1.3; }
.weiter-zurueck a:hover { border-color: var(--blau); background: var(--feld); }
.weiter-zurueck small { color: var(--leise); font-weight: 500; }
.wz-neu { text-align: right; grid-column: 2; }
.mini-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .7rem; }
.mini-liste a { display: flex; gap: .7rem; align-items: center; text-decoration: none; color: var(--text); }
.mini-liste a:hover strong { color: var(--link); }
.mini-bild { flex: none; width: 72px; height: 54px; border-radius: 8px; overflow: hidden; background: linear-gradient(135deg, #2a4a72, #173a63 55%, #7f9f35); }
.mini-bild img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mini-liste strong { display: block; font-size: .92rem; line-height: 1.3; color: var(--blau); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mini-liste small { color: var(--leise); font-size: .8rem; }
.seiten-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.seiten-liste a { display: block; padding: .5rem .7rem; border-radius: 8px; text-decoration: none; color: var(--text); border-left: 3px solid transparent; }
.seiten-liste a:hover { background: var(--feld); }
.seiten-liste a.an { background: var(--feld); border-left-color: var(--akzent); font-weight: 600; color: var(--blau); }
.werkzeug { display: flex; flex-wrap: wrap; gap: .9rem 1.4rem; align-items: center; justify-content: space-between; margin-bottom: 1.3rem; }
.suche { display: flex; gap: .5rem; flex: 1 1 380px; max-width: 560px; }
.suche input { flex: 1; background: var(--flaeche); }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.werkzeug .chips { margin: 0; }
.chip { display: inline-flex; align-items: center; gap: .35rem; padding: .4rem .85rem; border-radius: 99px; border: 1px solid var(--linie); background: var(--flaeche); color: var(--text); text-decoration: none; font-size: .92rem; font-weight: 600; }
.chip small { color: var(--leise); font-weight: 500; }
.chip:hover { border-color: var(--blau); }
.chip.an { background: var(--blau); border-color: var(--blau); color: #fff; } .chip.an small { color: #cfe0f5; }
.treffer { color: var(--leise); margin: -.4rem 0 1rem; }
.seitenzahlen { display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem; margin: 2rem 0 .5rem; }
.sz { min-width: 2.5rem; height: 2.5rem; display: inline-grid; place-items: center; padding: 0 .6rem; border-radius: 9px; border: 1px solid var(--linie); background: var(--flaeche); color: var(--blau); text-decoration: none; font-weight: 600; }
.sz:hover { border-color: var(--blau); } .sz.an { background: var(--blau); color: #fff; border-color: var(--blau); } .sz.leer { border: 0; background: none; color: var(--leise); }
.leer-kasten { text-align: center; padding: 2.4rem 1.5rem; }
.leer-kasten h2 { margin: .6rem 0 .4rem; } .leer-kasten p { color: var(--leise); max-width: 34rem; margin: 0 auto; }
.leer-ikon { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--feld); }
.leer-ikon svg.ik { width: 30px; height: 30px; color: var(--akzent-dunkel); }
.dok-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: .9rem; }
.dok { display: flex; align-items: center; gap: .9rem; padding: .9rem 1rem; background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); box-shadow: var(--schatten); text-decoration: none; color: var(--text); transition: border-color .15s, transform .15s; }
.dok:hover { border-color: var(--blau); transform: translateY(-1px); }
.dok-typ { flex: none; width: 48px; height: 56px; border-radius: 6px; display: grid; place-items: center; font-size: .72rem; font-weight: 800; color: #fff; background: var(--blau); letter-spacing: .03em; }
.dok-typ.t-pdf { background: #b3261e; } .dok-typ.t-jpg, .dok-typ.t-png, .dok-typ.t-bild { background: var(--akzent-dunkel); }
.dok-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .15rem; }
.dok-text strong { color: var(--blau); line-height: 1.3; hyphens: auto; overflow-wrap: anywhere; } .dok-text small { color: var(--leise); }
.dok-pfeil svg.ik { width: 22px; height: 22px; color: var(--leise); }
.monat-titel { font-size: 1.15rem; margin: 1.6rem 0 .7rem; padding-left: .7rem; border-left: 4px solid var(--akzent); }
.monat-titel:first-of-type { margin-top: .4rem; }
.termin-karten { display: flex; flex-direction: column; gap: .7rem; }
.termin-zeile { display: flex; align-items: flex-start; gap: 1rem; margin: 0; padding: 1rem 1.1rem; }
.termin-zeile.q-plan { border-style: dashed; }
.kal.gross { width: 62px; font-size: .78rem; } .kal.gross b { font-size: 1.35rem; line-height: 1.6; white-space: nowrap; }
.tz-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .2rem; }
.tz-kopf { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .6rem; }
.tz-kopf strong { color: var(--blau); font-size: 1.05rem; }
.tz-text small { color: var(--leise); }
.tz-info { margin: .2rem 0 0; font-size: .92rem; color: var(--text); }
.marke-tz { white-space: nowrap; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; padding: .15rem .5rem; border-radius: 99px; background: #e2ecf8; color: #173a63; }
.marke-tz.s-anmeldungoffen { background: var(--gruen-bg); color: var(--gruen); } .marke-tz.s-vorlufig { background: var(--gelb-bg); color: var(--gelb); }
.marke-tz.s-warteliste { background: var(--rot-bg); color: var(--rot); }
.termin-zeile > .knopf { flex: none; align-self: center; }
.abstand { margin-top: .8rem; }
.anmelde-karte { margin: 0; padding: 1.8rem 2rem; }
.vorteile { list-style: none; padding: 0; margin: 1.4rem 0 1rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .8rem; }
.vorteile li { display: flex; gap: .7rem; align-items: flex-start; background: var(--feld); border-radius: 10px; padding: .8rem .9rem; }
.vorteile svg.ik { width: 24px; height: 24px; flex: none; color: var(--akzent-dunkel); }
.vorteile strong { display: block; color: var(--blau); } .vorteile small { color: var(--leise); }
.lb { position: fixed; inset: 0; z-index: 200; background: rgba(6, 10, 16, .94); display: flex; align-items: center; justify-content: center; padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom); }
.lb[hidden] { display: none; }
.lb figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: .6rem; max-width: 92vw; }
.lb img { max-width: 92vw; max-height: 84vh; object-fit: contain; border-radius: 6px; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); }
.lb figcaption { color: #d3dae2; font-size: .92rem; text-align: center; }
.lb button { position: absolute; border: 0; background: rgba(255, 255, 255, .12); color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 1.8rem; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.lb button:hover { background: rgba(255, 255, 255, .25); }
.lb-zu { top: calc(14px + env(safe-area-inset-top)); right: 14px; }
.lb-vor { left: 14px; top: 50%; transform: translateY(-50%); } .lb-nach { right: 14px; top: 50%; transform: translateY(-50%); }
.lb.einzeln .lb-vor, .lb.einzeln .lb-nach { display: none; }
html.lb-offen #app { overflow: hidden; }
@media (prefers-color-scheme: dark) { .chip.an { color: #fff; } .tz-kopf strong, .dok-text strong, .mini-liste strong { color: #cfe0f5; } .marke-tz { background: #22344c; color: #cfe0f5; } }

@media (max-width: 900px) {
  /* Handy/Tablet: Seitennavigation als ausklappbare Schublade über ☰ */
  .seitennavi { position: fixed; top: env(safe-area-inset-top, 0px); left: 0; height: calc(100dvh - env(safe-area-inset-top, 0px)); width: min(300px, 84vw); flex-basis: auto; transform: translateX(-105%); transition: transform .22s ease; box-shadow: 4px 0 24px rgba(0, 0, 0, .3); }
  html.navi-auf .seitennavi { transform: none; }
  html.navi-auf .sn-schatten { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, .4); z-index: 30; }
  html.navi-zu .seitennavi { width: min(300px, 84vw); }
  html.navi-zu .nt, html.navi-zu .ng summary .pfeil { display: initial; }
  html.navi-zu .ng-inhalt { display: flex; }
  html.navi-zu .sn-kopf { flex-direction: row; }
  html.navi-zu .np, html.navi-zu .ng summary { justify-content: flex-start; padding: .62rem .7rem; }
  .sn-knopf svg, html.navi-zu .sn-knopf svg { transform: none; }
  .handy-leiste { display: flex; align-items: center; gap: .6rem; position: sticky; top: 0; z-index: 20; background: var(--dunkel); color: #fff; padding: .45rem .7rem; padding-left: max(.7rem, env(safe-area-inset-left)); }
  .menue-knopf { width: 44px; height: 44px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .1); color: #fff; display: grid; place-items: center; cursor: pointer; }
  .menue-knopf svg { width: 24px; height: 24px; }
  .hl-marke { color: #fff; text-decoration: none; font-weight: 700; font-size: 1.05rem; min-width: 0; }
  .hl-marke .marke-name { white-space: normal; }
  .held.gross .held-innen { min-height: 230px; padding-bottom: 4rem; }
  .held-leit { font-size: 2rem; }
  .held-vogel { width: 120px; margin-bottom: .3rem; }
  .held-text-unter { font-size: 1rem; } .held-knoepfe .knopf { flex: 1 1 auto; text-align: center; }
  .band-mitglied { padding: 1.4rem 1.2rem; } .band-knoepfe { width: 100%; } .band-knoepfe .knopf { flex: 1 1 auto; text-align: center; }
  .inhalt { padding: 1.1rem 1rem 2rem; }
  .start-raster { grid-template-columns: minmax(0, 1fr); }
  .karten-reihe { grid-template-columns: minmax(0, 1fr); }
  .lese-raster, .lese-raster.ohne-seite, .lese-raster.breit-links { grid-template-columns: minmax(0, 1fr); }
  .lese-seite { position: static; }
  .artikel { padding: 1.2rem 1.05rem; }
  .artikel .text { font-size: 1rem; }
  .held.unter .held-innen { min-height: 150px; padding-top: 1.4rem; padding-bottom: 1.4rem; }
  .held.unter.mit-foto .held-innen { min-height: 230px; }
  .g-raster { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
  .galerie.wenige .g-raster { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .weiter-zurueck { grid-template-columns: 1fr; } .wz-neu { grid-column: 1; text-align: left; }
  .termin-zeile { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: .5rem .8rem; } .termin-zeile > .knopf { grid-column: 2; justify-self: start; }
  .kal.gross { width: 54px; }
  .lb button.lb-vor, .lb button.lb-nach { top: auto; bottom: calc(18px + env(safe-area-inset-bottom)); transform: none; }
  .laufticker { margin-top: -3rem; min-height: 3rem; }
  .lt-kopf { padding: 0 .7rem; font-size: 0; gap: 0; }
  .lt-kopf svg { width: 22px; height: 22px; }

  .start-seite { position: static; }
  .schnell { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
  .schnell-kachel { padding: .7rem .75rem; gap: .6rem; }
  .schnell-kachel small { display: none; }
  .artikel { padding: 1.1rem 1rem; }
  .karten.drei, .karten.zwei, .fuss-innen { grid-template-columns: minmax(0, 1fr); }
  .spalten { grid-template-columns: minmax(0, 1fr); }
  .reihe .breit { grid-column: auto; }
  h1 { font-size: 1.4rem; }
  .linie-titel { font-size: 1.4rem; }
  .karte { padding: .9rem 1rem; }
  /* nur Verwaltungstabellen kürzen – Wertungen (Namen!) und KI-Kosten bleiben vollständig (Fix 0.16.1: Hochkant fehlten die Namen) */
  .tabelle:not(.wertung):not(.ki) th:nth-child(2), .tabelle:not(.wertung):not(.ki) td:nth-child(2), .tabelle:not(.wertung):not(.ki) th:nth-child(4), .tabelle:not(.wertung):not(.ki) td:nth-child(4) { display: none; }
}
@media print {
  html, body { overflow: visible; height: auto; } #app { position: static; overflow: visible; }
  .seitennavi, .handy-leiste, .knoepfe, .editor-leiste { display: none; }
}

/* Kontaktformular (ab 0.10.0): eine Karte, Anliegen zum Antippen, getönte Felder */
.kontakt-form { margin-top: 1.6rem; background: var(--grund); border: 1px solid var(--linie); box-shadow: none; }
.kontakt-form h2 { margin-top: 0; }
.kontakt-form input, .kontakt-form textarea { background: var(--feld); border: 1px solid var(--linie); }
.kontakt-form input:focus, .kontakt-form textarea:focus { background: var(--flaeche); border-color: var(--blau); box-shadow: 0 0 0 3px rgba(23, 58, 99, .15); outline: none; }
.wahl-gruppe { margin: .9rem 0; }
.wahl-reihe { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .4rem; }
.wahl { position: relative; display: inline-flex; font-weight: 600 !important; }
.wahl input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.wahl span { padding: .5rem .95rem; border-radius: 99px; border: 1px solid var(--linie); background: var(--flaeche); cursor: pointer; font-size: .95rem; }
.wahl input:checked + span { background: var(--blau); border-color: var(--blau); color: #fff; }
.wahl input:checked + span::before { content: "✓ "; }
.wahl input:focus-visible + span { box-shadow: 0 0 0 3px rgba(23, 58, 99, .25); }
.feld-fehler { color: var(--rot); font-weight: 600; font-size: .9rem; }
.falle { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.kontakt-eintrag.erledigt { opacity: .65; }
.kontakt-eintrag h2 { font-size: 1.05rem; margin: .2rem 0 .5rem; }
.knopfreihe { display: flex; flex-wrap: wrap; gap: .5rem; }

/* Pflege & Rechtliches (ab 0.12.0) */
.pflege-gruppe { border-left: 5px solid var(--linie); }
.pflege-gruppe.pg-rot { border-left-color: var(--rot); } .pflege-gruppe.pg-gelb { border-left-color: #d9a400; } .pflege-gruppe.pg-blau { border-left-color: var(--blau); }
.pflege-fund { padding: .7rem 0; border-bottom: 1px solid var(--linie); } .pflege-fund:last-child { border-bottom: 0; }
.pflege-fund p { margin: .25rem 0 .45rem; color: var(--text); }
.pflege-fund input { flex: 1 1 16rem; min-width: 0; font-size: 16px; }
.ok-liste li { padding: .35rem 0; color: var(--gruen); font-weight: 600; }

/* Wertungen aus der Turnier-App (ab 0.13.0) */
.wertung-block { scroll-margin-top: 5rem; }
.wertung-block h3 { margin: 1.2rem 0 .5rem; font-size: 1.05rem; }
.wertung-block h3 small, .mp-liste small { color: var(--leise, #667); font-weight: 400; }
.tabelle.wertung .zahl { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tabelle.wertung strong { font-size: inherit; }
.tabelle.wertung th, .tabelle.wertung td { padding: .4rem .6rem; }
.tabelle.wertung tr.vorn td { background: color-mix(in srgb, var(--akzent) 14%, transparent); }
.mp-liste { list-style: none; padding: 0; margin: 0 0 .5rem; display: grid; gap: .3rem; }
.mp-liste li { padding: .45rem .7rem; border: 1px solid var(--linie); border-radius: var(--radius); background: var(--flaeche); }
.mp-gewinn { font-weight: 700; }
.mp-sieger { font-size: 1.15rem; font-weight: 700; margin: .4rem 0 0; }
.ac-kurz { list-style: none; padding: 0; margin: 0 0 .8rem; }
.ac-kurz li { display: flex; justify-content: space-between; gap: .6rem; padding: .25rem 0; border-bottom: 1px solid var(--linie); }
.ac-kurz li span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Schreibhilfe und KI-Kosten (ab 0.15.0) */
.ki-hilfe { border: 1px solid var(--linie); border-radius: var(--radius); padding: .7rem 1rem; margin: 0 0 1rem; background: color-mix(in srgb, var(--akzent) 6%, var(--flaeche)); }
.ki-hilfe summary { cursor: pointer; font-weight: 700; color: var(--link); }
.ki-hilfe[open] summary { margin-bottom: .6rem; }
.ki-hilfe textarea { min-height: 9rem; }
.tabelle.ki th, .tabelle.ki td { display: table-cell !important; }

/* Fotogalerien (ab 0.15.0) */
.galerie-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.gl-karte { display: flex; flex-direction: column; gap: .3rem; padding: .6rem; text-decoration: none; color: inherit; margin: 0; }
.gl-karte img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: calc(var(--radius) - 4px); background: var(--feld); }
.foto-verwalten { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: .7rem; margin-top: .8rem; }
.fv { display: flex; flex-direction: column; gap: .3rem; margin: 0; }
.fv img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }

/* Übernommene Berichte: Fotos im Text und am Ende alle zum Durchklicken (ab 0.15.2) */
.alle-fotos { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--linie); }

/* Matchplay live (ab 0.15.3) */
.mp-live { color: var(--rot, #b42318); font-weight: 600; }

/* Vorstands-Ablage (ab 0.16.0) */

/* Wertungen hochkant auf dem Handy: alle Spalten, etwas enger (0.16.1) */
@media (max-width: 700px) {
  .tabelle.wertung { font-size: .9rem; }
  .tabelle.wertung th, .tabelle.wertung td { padding: .35rem .4rem; }
}

/* Knopf „Nach oben“ (ab 0.16.2) – über allem, nicht in der Großansicht und nicht im Druck */
.nach-oben { position: fixed; right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, calc(env(safe-area-inset-bottom) + .6rem)); z-index: 35;
  width: 3rem; height: 3rem; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .9); background: var(--link); color: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .28); opacity: 0; transform: translateY(.8rem); pointer-events: none; transition: opacity .2s, transform .2s; }
.nach-oben.sichtbar { opacity: .92; transform: none; pointer-events: auto; }
.nach-oben:hover, .nach-oben:focus-visible { opacity: 1; outline: 3px solid color-mix(in srgb, var(--akzent) 60%, transparent); outline-offset: 2px; }
html.lb-offen .nach-oben, html.navi-auf .nach-oben { display: none; }
@media print { .nach-oben { display: none; } }

/* KI-Kosten auf dem Handy: Tabelle seitlich wischen statt Wörter zerhacken (0.16.3) */
.tabelle.ki { min-width: 520px; }
.tabelle.ki td, .tabelle.ki th { white-space: nowrap; }
