/* Wave and Friends: ein Stylesheet für die ganze App. Farben und Schrift aus dem Logo: Navy des Fahrers, die Blautöne
   des Pinselstrichs, Poppins wie im Mitgliedsantrag; Überschriften kursiv und groß wie Tempo auf dem Wasser.
   Handy zuerst, ab 900 px Seitenleiste. Abstände nur über den Takt (--a1 bis --a7), Zustände immer mit Symbol und Wort. */

@font-face { font-family: 'Poppins'; font-weight: 400; font-style: normal; font-display: swap; src: url('schrift/poppins-400.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 500; font-style: normal; font-display: swap; src: url('schrift/poppins-500.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 600; font-style: normal; font-display: swap; src: url('schrift/poppins-600.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 700; font-style: normal; font-display: swap; src: url('schrift/poppins-700.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 800; font-style: normal; font-display: swap; src: url('schrift/poppins-800.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 700; font-style: italic; font-display: swap; src: url('schrift/poppins-700-kursiv.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 800; font-style: italic; font-display: swap; src: url('schrift/poppins-800-kursiv.woff2') format('woff2'); }

:root {
    --tief: #072b4e;
    --marine: #0c5890;
    --welle: #0d86c0;
    --gischt: #1fa6d9;
    --hellblau: #bce5f3;
    --eis: #eef6fb;
    --weiss: #ffffff;
    --text: #0b2239;
    --text-leise: #5b7084;
    --linie: #d9e5ee;
    --rot: #c0392b;
    --gruen-text: #17744a;
    --gruen-flaeche: #e7f6ee;
    --rot-flaeche: #fdecea;
    --warn-text: #9a4a12;
    --verlauf: linear-gradient(125deg, var(--tief) 0%, var(--marine) 55%, var(--welle) 100%);
    --verlauf-knopf: linear-gradient(110deg, var(--marine) 0%, var(--welle) 60%, var(--gischt) 100%);
    --schatten: 0 12px 32px rgba(7, 43, 78, 0.09), 0 2px 6px rgba(7, 43, 78, 0.05);
    --schatten-knopf: 0 8px 20px rgba(13, 134, 192, 0.28);
    --radius: 22px;
    --radius-klein: 14px;
    --a1: 4px;
    --a2: 8px;
    --a3: 12px;
    --a4: 16px;
    --a5: 24px;
    --a6: 32px;
    --a7: 48px;
    --flaeche: var(--weiss);
    --grund: var(--eis);
    --titel: var(--tief);
    --akzent: var(--marine);
    --kopf: rgba(255, 255, 255, 0.92);
    --zeile-hover: #f7fbfe;
    --warn-flaeche: #fdf1e6;
    --aus-flaeche: #eef0f2;
    --fehler-text: #8e2219;
    --platzhalter: #9aabbb;
    --pfeil: #b4c3d0;
    --oben: env(safe-area-inset-top, 0px);
    --unten: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: 'Poppins', -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    overflow-wrap: break-word;
    color: var(--text);
    background: var(--grund);
    -webkit-font-smoothing: antialiased;
}
/* Am Handy eine Stufe kleiner: alle rem-Größen (Titel, Knöpfe, Felder) folgen der Grundschrift. Lange Wörter
   ("Jahreshauptversammlung") werden in Überschriften und Karten getrennt statt über den Rand zu laufen. */
@media (max-width: 699px) {
    html, body { font-size: 15px; }
    h1, h2, h3, .karte-text, .liste-text { overflow-wrap: anywhere; -webkit-hyphens: auto; hyphens: auto; }
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: var(--akzent); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid rgba(31, 166, 217, 0.55); outline-offset: 2px; }

.icon { width: 1.25em; height: 1.25em; flex: none; }

/* ---------------------------------------------------------------- Takt: Abstände zwischen Bausteinen */

.stapel > * + * { margin-top: var(--a5); }
.stapel > input[type="hidden"] + * { margin-top: 0; }
.stapel-klein > * + * { margin-top: var(--a2); }

/* ---------------------------------------------------------------- Schrift */

.titel-riesig {
    font-weight: 800;
    font-style: italic;
    text-transform: uppercase;
    font-size: clamp(2.4rem, 10vw, 4.2rem);
    line-height: 0.95;
    letter-spacing: -0.01em;
}
.titel-gross {
    font-weight: 800;
    font-style: italic;
    text-transform: uppercase;
    font-size: 1.7rem;
    line-height: 1.1;
    color: var(--titel);
    overflow-wrap: anywhere;
    hyphens: auto;
}
@media (max-width: 699px) { .titel-gross { font-size: 1.5rem; } }
.titel-klein {
    display: flex;
    align-items: center;
    gap: var(--a3);
    font-weight: 700;
    font-size: 1.08rem;
    line-height: 1.35;
    color: var(--titel);
}
.titel-klein .icon { color: var(--welle); }
.etikett {
    font-weight: 600;
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--welle);
}
.etikett-hell { color: var(--hellblau); }
.leise { color: var(--text-leise); }
.leise strong { color: var(--text); }
.ohne-umbruch { white-space: nowrap; }

/* ---------------------------------------------------------------- Knöpfe */

.knopf {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 22px;
    border: 0;
    border-radius: var(--radius-klein);
    background: var(--verlauf-knopf);
    color: var(--weiss);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    box-shadow: var(--schatten-knopf);
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}
.knopf:hover { transform: translateY(-1px); filter: brightness(1.06); }
.knopf:active { transform: scale(0.98); }
.knopf:disabled { opacity: 0.6; cursor: wait; transform: none; }
.knopf-gross { width: 100%; min-height: 56px; font-size: 1.05rem; }
@media (max-width: 699px) {
    .knopf { min-height: 44px; padding: 0 18px; gap: 8px; white-space: nowrap; }
    .knopf-gross { min-height: 52px; }
}
.knopf-hell { background: var(--flaeche); color: var(--titel); border: 1.5px solid var(--linie); box-shadow: none; }
.knopf-hell:hover { border-color: var(--hellblau); filter: none; }
.knopf-rot { background: var(--rot); box-shadow: 0 8px 20px rgba(192, 57, 43, 0.22); }
.knopf-text {
    display: inline-flex;
    align-items: center;
    gap: var(--a2);
    padding: var(--a2) 0;
    border: 0;
    background: none;
    color: var(--akzent);
    font-weight: 600;
    font-size: 0.92rem;
    cursor: pointer;
}
.knopf-icon {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 12px;
    background: none;
    color: var(--text-leise);
    cursor: pointer;
}
.knopf-icon:hover { background: var(--eis); color: var(--titel); }
.knopf-icon-rot:hover { background: var(--rot-flaeche); color: var(--rot); }
/* Platzhalter so breit wie ein Icon-Knopf, wenn einer fehlt (erster Punkt ohne "nach oben", erstes Jahr ohne "zurück") */
.knopf-platz { display: inline-block; width: 40px; height: 1px; }
.knopfzeile { display: flex; flex-wrap: wrap; align-items: center; gap: var(--a3); }
.knopfzeile-verteilt { justify-content: space-between; }
kbd {
    padding: 1px 6px;
    white-space: nowrap;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.2);
    font: 500 0.7rem/1.5 inherit;
    font-family: inherit;
    opacity: 0.85;
}
.knopf-hell kbd { background: var(--eis); }
/* Tastenkürzel auf Knöpfen und in der Suche nur mit Maus; in Hilfetexten gehören sie zum Satz und bleiben */
@media (hover: none) { .knopf kbd, .suche kbd { display: none; } }

/* Eigene Tooltips statt title: ein schwebendes Kästchen (static/js/app.js), das immer ganz im Bild bleibt */
.tooltip {
    position: fixed;
    z-index: 300;
    max-width: min(280px, calc(100vw - 16px));
    padding: 5px 10px;
    border-radius: 8px;
    background: var(--tief);
    color: var(--weiss);
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.35;
    box-shadow: 0 8px 20px rgba(7, 43, 78, 0.25);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.12s;
}
.tooltip.an { opacity: 1; }
.revier-link { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }

/* ---------------------------------------------------------------- Felder */

.felder { display: grid; gap: var(--a4); }
.feld { display: grid; gap: 6px; align-content: start; }
.feld-name { font-weight: 600; font-size: 0.8rem; color: var(--text-leise); }
.feld input {
    width: 100%;
    height: 52px;
    padding: 0 var(--a4);
    border: 1.5px solid var(--linie);
    border-radius: var(--radius-klein);
    background: var(--flaeche);
    font-size: 1rem;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.feld input:focus { outline: 0; border-color: var(--welle); box-shadow: 0 0 0 4px rgba(31, 166, 217, 0.18); }
.feld input::placeholder { color: var(--platzhalter); }
.feld .code-feld { height: 64px; font-size: 1.9rem; font-weight: 700; letter-spacing: 0.45em; text-align: center; text-indent: 0.45em; }
.schalter { display: flex; align-items: flex-start; gap: var(--a3); font-size: 0.95rem; cursor: pointer; }
.schalter input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--welle); flex: none; }
.zwischentitel { display: flex; align-items: center; gap: var(--a2); margin-top: var(--a3); font-size: 0.95rem; font-weight: 700; color: var(--titel); }
.zwischentitel .icon { color: var(--welle); }
@media (min-width: 700px) {
    .felder-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .felder-6 > .zwischentitel { grid-column: 1 / -1; }
    .breite-1 { grid-column: span 1; }
    .breite-2 { grid-column: span 2; }
    .breite-3 { grid-column: span 3; }
    .breite-4 { grid-column: span 4; }
    .breite-5 { grid-column: span 5; }
    .breite-6 { grid-column: span 6; }
}

/* ---------------------------------------------------------------- Karten und Listen */

.karte {
    padding: var(--a5) 20px;
    border-radius: var(--radius);
    background: var(--flaeche);
    box-shadow: var(--schatten);
}
.karte-kopf { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--a3); }
.karte-kopf > .marke { margin-left: 0; }
/* Unter jeder Überschrift einer Karte Luft bis zum Inhalt */
.karte > .titel-klein + *, .karte > .karte-kopf + *, .karte > h2 + *, .karte > form > .karte-kopf + * { margin-top: var(--a5); }
.stapel > .titel-klein + *, .stapel > .karte-kopf + * { margin-top: var(--a5); }
.karte-aktion { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--a4); align-items: start; }
.karte-aktion > :nth-child(n + 3) { grid-column: 1 / -1; }
.karte-text > * + * { margin-top: var(--a1); }
.karte-text p { color: var(--text-leise); }
.karte-zeichen, .gross-zeichen {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: var(--verlauf-knopf);
    color: var(--weiss);
    box-shadow: var(--schatten-knopf);
}
.karte-zeichen .icon { width: 26px; height: 26px; }
.gross-zeichen { width: 76px; height: 76px; border-radius: 24px; }
.gross-zeichen .icon { width: 38px; height: 38px; }
.raster-2 { display: grid; gap: var(--a5); align-items: start; }
/* Startseite: am PC zwei gleich breite Spalten unter der großen Karte, Karten einer Reihe gleich hoch */
.start-raster { display: grid; gap: var(--a5); align-items: stretch; }
.start-raster > * { margin: 0; min-width: 0; }
/* In der halben Breite steht der Knopf unter dem Text, damit der Text Platz hat */
.start-raster .karte-aktion { grid-template-columns: auto minmax(0, 1fr); align-content: start; }
.start-raster .karte-aktion > :nth-child(n + 3) { grid-column: 2; justify-self: start; }

.liste-ruhig li { display: flex; align-items: flex-start; gap: var(--a3); padding: var(--a3) 0; border-top: 1px solid var(--linie); }
.liste-ruhig li:first-child { border-top: 0; }
/* Text neben Kreis oder Zeichen (34 px) steht mit der ersten Zeile auf deren Mitte */
.liste-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; padding-top: 6px; line-height: 1.4; }
.liste-ruhig li > .liste-text:first-child { padding-top: 0; }
.liste-haupt { font-weight: 600; }
.liste-text > .marke, .liste-text > .zustand { align-self: flex-start; margin-left: 0; }
.liste-neben { font-size: 0.9rem; color: var(--text-leise); }
.liste-ruhig .knopf-icon { margin-top: -3px; }
.liste-zeichen { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--eis); color: var(--welle); flex: none; }
.liste-zeichen .icon { width: 18px; height: 18px; }
@media (min-width: 700px) {
    .liste-text { flex-direction: row; justify-content: space-between; align-items: baseline; gap: var(--a4); }
    .liste-neben, .liste-text .zustand { flex: none; text-align: right; }
}
/* Listenzeile mit Titel und Text untereinander, auch am PC */
.liste-text.liste-spalte { flex-direction: column; align-items: stretch; gap: 2px; }
.liste-spalte .liste-neben { text-align: left; }

.kreis {
    display: inline-grid;
    place-items: center;
    width: 40px;
    max-width: none; /* feste Größe, auch als Foto (sonst zählt es beim Vermessen von Listenspalten nicht mit) */
    height: 40px;
    border-radius: 50%;
    background: var(--verlauf-knopf);
    color: var(--weiss);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    flex: none;
}
.kreis-klein { width: 34px; height: 34px; font-size: 0.78rem; }
.kreis-gross { width: 76px; height: 76px; font-size: 1.6rem; box-shadow: var(--schatten-knopf); }

.marke {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 9px;
    border-radius: 999px;
    background: var(--eis);
    color: var(--akzent);
    font-size: 0.72rem;
    font-weight: 600;
    vertical-align: 2px;
}

.zustand { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.zustand-ja { color: var(--gruen-text); }
.zustand-nein { color: var(--warn-text); }
.zustand .icon { width: 18px; height: 18px; }

.hinweis {
    display: flex;
    align-items: flex-start;
    gap: var(--a3);
    padding: var(--a3) var(--a4);
    border-radius: var(--radius-klein);
    background: var(--flaeche);
    font-weight: 500;
    box-shadow: var(--schatten);
}
.hinweis .icon { margin-top: 2px; }
.hinweis-ok { background: var(--gruen-flaeche); color: var(--gruen-text); box-shadow: none; }
.hinweis-fehler { background: var(--rot-flaeche); color: var(--fehler-text); box-shadow: none; }
.hinweis-info { background: var(--eis); color: var(--titel); box-shadow: none; }
.hinweis[data-fluechtig] { transition: opacity 0.4s; }
.hinweis.weg { opacity: 0; }

.trenner { display: flex; align-items: center; gap: var(--a3); color: var(--text-leise); font-size: 0.85rem; }
.trenner::before, .trenner::after { content: ''; flex: 1; height: 1px; background: var(--linie); }

/* ---------------------------------------------------------------- Wellen */

.wellen { position: absolute; left: 0; right: 0; overflow: hidden; pointer-events: none; }
.welle { position: absolute; left: 0; width: 200%; height: 100%; }
.welle-hinten { top: 0; }
.welle-mitte { top: 16%; }
.welle-vorn { top: 32%; }
.wellen-karte { bottom: 0; height: 92px; }
.wellen-karte .welle-hinten { fill: rgba(255, 255, 255, 0.07); transform: translateX(-18%); }
.wellen-karte .welle-mitte { fill: rgba(255, 255, 255, 0.1); transform: translateX(-36%); }
.wellen-karte .welle-vorn { fill: rgba(255, 255, 255, 0.14); }

/* ---------------------------------------------------------------- Bühne: die große Karte oben auf der Startseite */

.buehne-karte {
    position: relative;
    overflow: hidden;
    padding: var(--a6) var(--a5) 104px;
    border-radius: 26px;
    background: radial-gradient(circle at 85% 10%, rgba(31, 166, 217, 0.55), transparent 45%), var(--verlauf);
    color: var(--weiss);
    box-shadow: 0 18px 40px rgba(7, 43, 78, 0.25);
}
.buehne-text { position: relative; z-index: 1; }
.buehne-text > * + * { margin-top: var(--a3); }
.buehne-zeile { display: flex; flex-wrap: wrap; align-items: center; gap: var(--a2); font-weight: 500; opacity: 0.92; }
.punkt { width: 5px; height: 5px; border-radius: 50%; background: var(--gischt); }

.profil-kopf { display: flex; align-items: center; gap: var(--a4); }
.profil-kopf > div > * + * { margin-top: var(--a1); }
.kreis-bild { object-fit: cover; padding: 0; background: var(--eis); }
.profil-foto { position: relative; flex: none; }
.profil-foto-knopf { position: absolute; right: -6px; bottom: -6px; margin: 0; }
.profil-foto-knopf .knopf-icon { width: 36px; height: 36px; border-radius: 50%; background: var(--flaeche); color: var(--titel); box-shadow: var(--schatten); cursor: pointer; }

/* ---------------------------------------------------------------- App-Rahmen: Kopf, Navigation, Inhalt */

.app-kopf {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--a4);
    padding: calc(var(--a2) + var(--oben)) var(--a4) var(--a2);
    background: var(--kopf);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--linie);
}
.app-logo img { width: auto; height: 54px; }
.nav-logo { display: none; }
.app-kopf-rechts { display: flex; align-items: center; gap: var(--a2); }
.app-ich { display: flex; align-items: center; gap: var(--a3); text-decoration: none; color: var(--titel); font-weight: 600; }
.glocke { position: relative; }
.zaehler {
    position: absolute;
    top: 2px;
    right: 0;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--rot);
    color: var(--weiss);
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}
.app-ich-name { display: none; }

.app-nav { display: none; }
.app-leiste {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
    display: flex;
    justify-content: space-around;
    padding: 6px var(--a2) calc(6px + var(--unten));
    background: var(--kopf);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--linie);
}
.nav-punkt {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 4px 0;
    color: var(--text-leise);
    font-weight: 600;
    font-size: 0.72rem;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}
.nav-zeichen { display: grid; place-items: center; width: 56px; height: 32px; border-radius: 999px; transition: background 0.2s; }
.nav-zeichen .icon { width: 22px; height: 22px; }
/* Zahl am Menüpunkt (neue Mitgliedsanträge): oben rechts am Zeichen, wie an der Glocke */
.nav-zeichen, .kachel-menue .kachel-zeichen { position: relative; }
.nav-zeichen .zaehler, .kachel-menue .zaehler { top: -5px; right: -5px; }
.nav-punkt.an { color: var(--titel); }
.nav-punkt.an .nav-zeichen { background: var(--verlauf-knopf); color: var(--weiss); box-shadow: var(--schatten-knopf); }

.app-inhalt { min-width: 0; padding: var(--a5) var(--a4) calc(104px + var(--unten)); overflow-x: clip; }

@media (min-width: 700px) {
    .karte { padding: var(--a6); }
    .karte-aktion { grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; }
    .karte-aktion > :nth-child(n + 3) { grid-column: auto; }
    .buehne-karte { padding: var(--a7) var(--a7) 120px; }
    .wellen-karte { height: 120px; }
}

@media (min-width: 900px) {
    body.app-seite { background: var(--grund); }
    /* PC: Seitenleiste über die ganze Höhe, oben das Logo so breit wie die Leiste; der Kopf nur über dem Inhalt */
    .app { display: grid; grid-template-columns: 264px minmax(0, 1fr); grid-template-rows: auto 1fr; min-height: 100vh; }
    .app-kopf { grid-column: 2; grid-row: 1; justify-content: flex-end; padding: var(--a3) var(--a6); }
    .app-kopf .app-logo { display: none; }
    .nav-logo { display: block; margin: 0 0 var(--a5); }
    .nav-logo img { width: 100%; height: auto; }
    .app-ich-name { display: inline; }
    .app-leiste { display: none; }
    .app-nav {
        display: flex;
        grid-column: 1;
        grid-row: 1 / span 2;
        position: sticky;
        top: 0;
        align-self: start;
        flex-direction: column;
        justify-content: flex-start;
        gap: var(--a1);
        height: 100vh;
        padding: var(--a5) var(--a4);
        background: var(--flaeche);
        border-top: 0;
        border-right: 1px solid var(--linie);
    }
    .nav-punkt { flex: none; flex-direction: row; gap: var(--a3); padding: 3px 6px; border-radius: 14px; font-size: 0.95rem; }
    .nav-gruppe { margin: var(--a3) 0 var(--a1) var(--a3); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-leise); }
    .app-nav { gap: 2px; overflow-y: auto; }
    .nav-punkt:hover { background: var(--eis); color: var(--titel); }
    .nav-zeichen { width: 36px; height: 36px; border-radius: 11px; }
    .app-inhalt { padding: var(--a6) var(--a7) var(--a7); }
    .titel-gross { font-size: 2rem; }
}
/* Niedrige Bildschirme (Laptop): Menü enger und das Logo etwas kleiner, damit alle Punkte ohne Scrollen passen */
@media (min-width: 900px) and (max-height: 820px) {
    .app-nav { padding-top: var(--a4); padding-bottom: var(--a3); }
    .nav-logo { margin-bottom: var(--a3); }
    .nav-logo img { width: 82%; margin-inline: auto; }
    .nav-punkt { padding: 2px 6px; font-size: 0.9rem; }
    .nav-zeichen { width: 32px; height: 32px; border-radius: 10px; }
    .nav-zeichen .icon { width: 20px; height: 20px; }
    .nav-gruppe { margin-top: var(--a2); }
}
@media (min-width: 900px) and (max-height: 700px) {
    .app-nav { gap: 1px; padding-top: var(--a3); }
    .nav-logo { margin-bottom: var(--a2); }
    .nav-logo img { width: 62%; }
    .nav-punkt { padding: 1px 6px; font-size: 0.88rem; }
    .nav-zeichen { width: 30px; height: 30px; }
}
@media (min-width: 1200px) {
    .raster-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
    .start-raster { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------------------------------------------------------------- Rückfrage */

.rueckfrage {
    width: calc(100% - 32px);
    max-width: 440px;
    padding: var(--a5);
    border: 0;
    border-radius: var(--radius);
    color: var(--text);
    box-shadow: 0 24px 60px rgba(7, 43, 78, 0.3);
}
.rueckfrage::backdrop { background: rgba(7, 43, 78, 0.45); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.rueckfrage .knopfzeile { justify-content: flex-end; margin-top: var(--a5); }

/* ---------------------------------------------------------------- Anmeldung: Handy oben das Feld, unten das Meer */

body.anmelde-seite { background: var(--flaeche); }
.anmeldung { display: grid; grid-template-rows: 1fr auto; min-height: 100vh; min-height: 100dvh; }
.anmeldung-feld {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--a5);
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
    padding: calc(var(--a5) + var(--oben)) 20px calc(96px + var(--a5));
}
.anmeldung-logo { width: min(270px, 72%); align-self: center; }
.anmeldung-buehne { order: 2; position: relative; padding: var(--a2) var(--a5) calc(var(--a6) + var(--unten)); background: var(--tief); color: var(--weiss); }
.anmeldung-buehne-text { position: relative; z-index: 1; }
.anmeldung-buehne-text > * + * { margin-top: var(--a2); }
.titel-buehne { font-size: 1.55rem; line-height: 1.1; }
.titel-buehne br { display: none; }
.wellen-anmeldung { bottom: 100%; height: 96px; }
.wellen-anmeldung .welle-hinten { fill: var(--gischt); opacity: 0.45; animation: treiben 24s linear infinite reverse; }
.wellen-anmeldung .welle-mitte { fill: var(--welle); opacity: 0.8; animation: treiben 17s linear infinite; }
.wellen-anmeldung .welle-vorn { fill: var(--tief); animation: treiben 11s linear infinite; }
@keyframes treiben { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .wellen-anmeldung .welle { animation: none; } }

@media (min-width: 900px) {
    /* Am PC genau halb und halb: links der Verein, rechts die Anmeldung */
    .anmeldung { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; }
    .anmeldung-buehne {
        order: -1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        overflow: hidden;
        padding: var(--a7) clamp(48px, 6vw, 96px) 200px;
        background: radial-gradient(circle at 78% 18%, rgba(31, 166, 217, 0.55), transparent 42%), var(--verlauf);
    }
    .titel-buehne { font-size: clamp(3.6rem, 6.4vw, 7rem); line-height: 0.92; }
    .titel-buehne br { display: inline; }
    .anmeldung-buehne .buehne-zeile { font-size: 1.15rem; }
    .wellen-anmeldung { top: auto; bottom: 0; height: 240px; }
    .wellen-anmeldung .welle-hinten { fill: var(--weiss); opacity: 0.06; }
    .wellen-anmeldung .welle-mitte { fill: var(--weiss); opacity: 0.09; }
    .wellen-anmeldung .welle-vorn { fill: var(--weiss); opacity: 0.12; }
    .anmeldung-feld { padding: var(--a7) var(--a6); }
}


/* ---------------------------------------------------------------- Seitenkopf, Reiter, Kacheln, Leer */

.unsichtbar { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.seitenkopf > * + * { margin-top: var(--a2); }
.seitenkopf-zeile { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--a4); }
.seitenkopf-zeile > .stapel-klein { min-width: 0; }
/* Nur Symbole als Aktionen (z. B. Löschen): sie bleiben auch am Handy oben rechts neben dem Titel statt allein in einer Zeile */
.seitenkopf-zeile:not(:has(> .knopfzeile .knopf)) { flex-wrap: nowrap; align-items: flex-start; }
/* Marken auf dem Seitengrund: helle Marken bekommen die Fläche der Karten, sonst verschwinden sie im Grund */
.seitenkopf .marke-info, .seitenkopf .marke-neutral, .seitenkopf .marke-aus,
.vorstand-bereich .marke-info, .vorstand-bereich .marke-neutral, .vorstand-bereich .marke-aus { background: var(--flaeche); }
.zurueck { padding: 0; }
.reiter { display: flex; gap: var(--a1); overflow-x: auto; padding: 4px; border-radius: 16px; background: var(--flaeche); box-shadow: var(--schatten); scrollbar-width: none; }
.reiter-punkt {
    display: inline-flex;
    align-items: center;
    gap: var(--a2);
    padding: 10px 16px;
    border-radius: 12px;
    color: var(--text-leise);
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
    white-space: nowrap;
}
.reiter-punkt:hover { color: var(--titel); background: var(--eis); }
.reiter-punkt.an { background: var(--verlauf-knopf); color: var(--weiss); }
@media (max-width: 699px) {
    .reiter-punkt { padding: 8px 12px; gap: 6px; }
}
/* Am PC blättert niemand waagerecht: passen nicht alle Reiter in die Breite, kommen die übrigen in eine zweite Reihe. */
@media (min-width: 700px) {
    .reiter { flex-wrap: wrap; }
}
.reiter-zahl { min-width: 22px; padding: 0 6px; border-radius: 999px; background: rgba(13, 134, 192, 0.12); font-size: 0.75rem; text-align: center; }
.reiter-punkt.an .reiter-zahl { background: rgba(255, 255, 255, 0.25); }
.kacheln { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--a4); }
.kachel {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: var(--a3);
    align-items: center;
    padding: var(--a4);
    border-radius: 18px;
    background: var(--flaeche);
    box-shadow: var(--schatten);
    color: var(--titel);
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
a.kachel:hover { transform: translateY(-2px) scale(1.01); box-shadow: 0 16px 36px rgba(7, 43, 78, 0.13); }
.kachel-zeichen { grid-row: span 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--eis); color: var(--welle); }
.kachel-zahl { font-size: 1.6rem; font-weight: 800; font-style: italic; line-height: 1.1; }
.kachel-text { font-size: 0.85rem; color: var(--text-leise); }
/* Am Handy stehen zwei Kacheln nebeneinander: das Zeichen über der Zahl, damit Text wie "Mitgliedschaften" passt.
   Einspaltige Kacheln (Kasse, Termine) behalten das Zeichen links. */
@media (max-width: 699px) {
    .kacheln:not(.kasse-kacheln, .termin-kacheln) > .kachel { grid-template-columns: minmax(0, 1fr); align-items: start; align-content: start; row-gap: 2px; }
    .kacheln:not(.kasse-kacheln, .termin-kacheln) > .kachel > .kachel-zeichen { grid-row: auto; width: 36px; height: 36px; margin-bottom: var(--a2); border-radius: 12px; }
}
.leer { display: grid; justify-items: center; gap: var(--a3); padding: var(--a6) var(--a4); text-align: center; color: var(--text-leise); }
.leer-zeichen { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: var(--flaeche); color: var(--welle); box-shadow: var(--schatten); }
.karte .leer-zeichen { background: var(--eis); box-shadow: none; }
.raster-3 { display: grid; gap: var(--a5); align-items: start; }
.marke-ok { background: var(--gruen-flaeche); color: var(--gruen-text); }
.marke-warn { background: var(--warn-flaeche); color: var(--warn-text); }
.marke-aus { background: var(--aus-flaeche); color: var(--text-leise); }
.marke-info, .marke-neutral { background: var(--eis); color: var(--akzent); }
.marke-live { background: var(--rot-flaeche); color: var(--rot); }
.marke .icon { width: 13px; height: 13px; margin: 0 4px -2px 0; }
.liste-ruhig .marke, .tabelle .marke { margin-left: 0; }
.inline-form { display: inline; margin: 0; }
@media (min-width: 700px) {
    .kacheln { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
}
@media (min-width: 1200px) {
    .raster-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------------------------------------------------------------- Tabellen: sortierbar, am Handy als Karten */

/* Spalten automatisch nach Inhalt verteilt (tabelle() setzt sp-5 bis sp-60), nichts scrollt: zu lange Werte enden mit ... */
.tabelle-rahmen { border-radius: var(--radius); background: var(--flaeche); box-shadow: var(--schatten); overflow: hidden; }
.karte .tabelle-rahmen { box-shadow: none; border-radius: 0; }
.tabelle { width: 100%; border-collapse: collapse; table-layout: fixed; }
/* Zum Ausmessen (static/js/app.js): jede Spalte so breit wie ihr Inhalt; danach feste Breiten über <colgroup> */
.tabelle.messen { width: auto; table-layout: auto; }
.tabelle.messen td, .tabelle.messen th { width: auto; overflow: visible; }
.tabelle.verteilt th { width: auto; }
.tabelle th { padding: var(--a3) var(--a4); background: var(--eis); text-align: left; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-leise); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tabelle td { padding: var(--a3) var(--a4); border-top: 1px solid var(--linie); vertical-align: middle; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tabelle td:first-child { font-weight: 600; }
.tabelle td.aktionen { overflow: visible; }
/* Am Laptop ausgeblendete, entbehrliche Spalte (static/js/app.js, spaltenVerteilen) */
.tabelle .spalte-aus { display: none; }
.tabelle .marke { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; }
.tabelle td:first-child a { color: var(--titel); text-decoration: none; }
.tabelle tr[data-link] { cursor: pointer; }
.tabelle tbody tr:hover { background: var(--zeile-hover); }
.tabelle .art-zahl, .tabelle .art-betrag { text-align: right; font-variant-numeric: tabular-nums; }
.tabelle .aktionen { padding-top: 6px; padding-bottom: 6px; text-align: right; white-space: nowrap; }
.tabelle .aktionen > * { vertical-align: middle; }
.tabelle .sp-5 { width: 5%; }
.tabelle .sp-10 { width: 10%; }
.tabelle .sp-15 { width: 15%; }
.tabelle .sp-20 { width: 20%; }
.tabelle .sp-25 { width: 25%; }
.tabelle .sp-30 { width: 30%; }
.tabelle .sp-35 { width: 35%; }
.tabelle .sp-40 { width: 40%; }
.tabelle .sp-45 { width: 45%; }
.tabelle .sp-50 { width: 50%; }
.tabelle .sp-55 { width: 55%; }
.tabelle .sp-60 { width: 60%; }
.tabelle .aktionen-1 { width: 72px; }
.tabelle .aktionen-2 { width: 116px; }
.tabelle .aktionen-3 { width: 160px; }
.tabelle .aktionen-4 { width: 204px; }
.sortieren { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; font: inherit; color: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; }
.pfeil { width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid var(--pfeil); }
th[aria-sort="ascending"] .pfeil { border-top: 0; border-bottom: 5px solid var(--welle); }
th[aria-sort="descending"] .pfeil { border-top-color: var(--welle); }
.tabelle tr[hidden] { display: none; }
/* Foto oder Initialen vor dem Namen; Gruppen (Familien) verbindet eine Linie durch die Fotos, ohne Trennlinie dazwischen */
.tabelle td:first-child > .kreis { position: relative; z-index: 1; margin-right: var(--a3); vertical-align: middle; }
.mit-gruppen td:first-child { position: relative; }
.mit-gruppen :is(.gruppe-oben, .gruppe-mitte, .gruppe-unten) > td:first-child::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(var(--a4) + 16px);
    width: 2px;
    background: var(--welle);
}
.mit-gruppen .gruppe-oben > td:first-child::after { top: 50%; }
.mit-gruppen .gruppe-unten > td:first-child::after { bottom: 50%; }
.mit-gruppen :is(.gruppe-mitte, .gruppe-unten) > td { border-top: 0; }
@media (max-width: 699px) {
    /* Am Handy steht das Foto links neben der ganzen Karte, die Linie läuft durch die Fotos von Karte zu Karte */
    .tabelle.mit-gruppen tr { padding-left: calc(var(--a4) + 34px + var(--a3)); }
    .mit-gruppen td:first-child { position: static; }
    .mit-gruppen td:first-child > .kreis { position: absolute; top: var(--a3); left: var(--a4); margin: 0; }
    .mit-gruppen .gruppe-oben > td:first-child::after { top: calc(var(--a3) + 17px); bottom: 0; }
    .mit-gruppen .gruppe-unten > td:first-child::after { top: 0; bottom: auto; height: calc(var(--a3) + 17px); }
    .mit-gruppen :is(.gruppe-mitte, .gruppe-unten) { border-top: 0; }
}
@media (max-width: 699px) {
    .tabelle thead { display: none; }
    .tabelle, .tabelle tbody, .tabelle tr, .tabelle td { display: block; width: 100%; }
    .tabelle tr { position: relative; padding: var(--a3) var(--a4); border-top: 1px solid var(--linie); }
    .tabelle tbody tr:first-child { border-top: 0; }
    .tabelle td { display: flex; justify-content: space-between; gap: var(--a3); max-width: none; padding: 2px 0; border: 0; white-space: normal; text-align: right; overflow-wrap: anywhere; }
    .tabelle td::before { content: attr(data-titel); color: var(--text-leise); font-size: 0.85rem; text-align: left; }
    .tabelle td:first-child { display: block; padding-right: 96px; font-size: 1.02rem; text-align: left; }
    .tabelle td:first-child::before { content: none; }
    /* Kennzeichen (etwa ein langes Amt) brechen am Handy um, statt gekürzt zu werden */
    .tabelle .marke { max-width: none; border-radius: var(--radius-klein); white-space: normal; text-align: left; }
    .tabelle .kasse-person-name { overflow: visible; white-space: normal; }
    .tabelle td.aktionen { position: absolute; top: var(--a2); right: var(--a2); width: auto; padding: 0; }
    .tabelle td.aktionen::before { content: none; }
    .tabelle td:empty { display: none; }
    /* Längere Texte (kurztext) stehen unter ihrem Namen und links bündig */
    .tabelle td:has(> .kurztext) { display: block; text-align: left; }
    .tabelle td:has(> .kurztext)::before { display: block; }
    /* Spaltennamen nie quetschen; drei oder vier Symbole stehen unter der Zeile, sonst verdecken sie den Titel */
    .tabelle td::before { flex: none; }
    .tabelle tr:has(> td.aktionen > :nth-child(3)) > td:first-child { padding-right: 0; }
    .tabelle td.aktionen:has(> :nth-child(3)) { position: static; display: flex; justify-content: flex-end; margin-top: var(--a1); }
    /* Knöpfe nie umbrechen und nie quetschen: sie füllen ihre Zeile, passen sie nicht nebeneinander, steht jeder über die
       ganze Breite. Im Kopf einer Seite oder Karte bekommen die Knöpfe eine eigene Zeile über die ganze Breite */
    .knopfzeile > .knopf, .knopfzeile > .inline-form:has(> .knopf) { flex: 1 1 auto; }
    .knopfzeile > .inline-form:has(> .knopf) { display: flex; }
    .knopfzeile > .inline-form > .knopf { flex: 1 1 auto; }
    .karte-kopf > .knopfzeile:has(> .knopf), .seitenkopf-zeile > .knopfzeile:has(> .knopf) { flex: 1 1 100%; }
}

.suche { position: relative; display: flex; flex: 1 1 280px; align-items: center; gap: var(--a2); min-width: 0; max-width: 520px; padding: 0 var(--a4); height: 48px; border-radius: 14px; background: var(--flaeche); box-shadow: var(--schatten); color: var(--text-leise); }
.suche input { flex: 1; width: 100%; min-width: 0; height: 100%; border: 0; background: none; font-size: 1rem; color: var(--text); }
.suche input:focus { outline: 0; }
.suche:focus-within { box-shadow: 0 0 0 3px rgba(31, 166, 217, 0.3), var(--schatten); }
.suche kbd { background: var(--eis); }
.suche-zahl { font-size: 0.8rem; white-space: nowrap; }
.listenkopf { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--a3); }

/* ---------------------------------------------------------------- Felder: Auswahl, Text, Hinweise */

.feld select, .feld textarea {
    width: 100%;
    padding: 12px var(--a4);
    border: 1.5px solid var(--linie);
    border-radius: var(--radius-klein);
    background: var(--flaeche);
    font-size: 1rem;
}
.feld select { height: 52px; padding-top: 0; padding-bottom: 0; }
.feld textarea { resize: vertical; line-height: 1.5; }
.feld select:focus, .feld textarea:focus { outline: 0; border-color: var(--welle); box-shadow: 0 0 0 4px rgba(31, 166, 217, 0.18); }
.feld input[type="file"] { height: auto; padding: 12px; }
.feld-hinweis { display: block; font-size: 0.8rem; color: var(--text-leise); }
.felder > .schalter { align-self: center; }

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

.lightbox { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; padding: 0; border: 0; background: rgba(4, 22, 40, 0.94); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: transparent; }
.lightbox img { max-width: calc(100vw - 32px); max-height: calc(100dvh - 120px); border-radius: 12px; object-fit: contain; }
.lightbox-knopf { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.14); color: var(--weiss); cursor: pointer; }
.lightbox-knopf:hover { background: rgba(255, 255, 255, 0.26); }
.lightbox-zu { top: calc(16px + var(--oben)); right: 16px; }
.lightbox-zurueck { left: 16px; top: 50%; }
.lightbox-vor { right: 16px; top: 50%; }
.lightbox-text { position: absolute; bottom: calc(20px + var(--unten)); left: 0; right: 0; color: var(--hellblau); text-align: center; font-size: 0.9rem; }

/* ---------------------------------------------------------------- Druckansicht (Protokoll, Bericht) */

body.druck-seite { background: #dfe8ef; }
.druck-leiste { display: flex; gap: var(--a3); justify-content: center; padding: var(--a4); }
.druck-blatt { max-width: 860px; margin: 0 auto var(--a7); padding: 56px 64px; background: var(--weiss); box-shadow: var(--schatten); }
.druck-blatt > * + * { margin-top: var(--a4); }
.druck-kopf { display: flex; align-items: center; gap: var(--a5); padding-bottom: var(--a4); border-bottom: 2px solid var(--tief); }
.druck-kopf img { width: 150px; }
.druck-blatt table { width: 100%; border-collapse: collapse; }
.druck-blatt th, .druck-blatt td { padding: 6px 8px; border-bottom: 1px solid var(--linie); text-align: left; vertical-align: top; }
.druck-blatt h2 { font-size: 1.1rem; color: var(--tief); margin-top: var(--a5); }
.druck-fuss { margin-top: var(--a7); padding-top: var(--a3); border-top: 1px solid var(--linie); font-size: 0.75rem; color: var(--text-leise); }
@media (max-width: 699px) {
    .druck-blatt { padding: var(--a5) var(--a4); }
    .druck-kopf { flex-wrap: wrap; }
    .druck-blatt table { display: block; overflow-x: auto; }
}
@media print {
    body.druck-seite { background: var(--weiss); }
    .druck-leiste, .sprung { display: none; }
    .druck-blatt { max-width: none; margin: 0; padding: 0; box-shadow: none; }
    @page { margin: 18mm 16mm; }
}

/* ---------------------------------------------------------------- Anmeldeseite: Links zum Verein */

.anmeldung-links { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--a2) var(--a4); font-size: 0.85rem; }
.anmeldung-links a { display: inline-flex; align-items: center; gap: 6px; color: var(--text-leise); text-decoration: none; }
/* Erste Zeile: Mitglied werden, Antrag und Satzung als PDF hervorgehoben; darunter Datenschutz und Impressum */
.anmeldung-links-haupt { flex-basis: 100%; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--a2) var(--a3); }
@media (max-width: 479px) { .anmeldung-links-haupt { flex-direction: column; align-items: center; } }
.anmeldung-links-haupt a { color: var(--akzent); font-weight: 600; }
.anmeldung-links a:hover { color: var(--titel); }

/* ---------------------------------------------------------------- Bewegung: Ladeanzeiger, Startbild, Seitenaufbau
   Kurz und kräftig wie ein Jetski beim Gasgeben; aus bei "Bewegung reduzieren". */

/* Ladeanzeige über den ganzen Bildschirm: Verlauf, Logo, drei Wellenlagen mit je einem Jetski (hinten klein und
   langsam, vorne groß und schnell). Die Jetskis fahren zwischen den Wellen, so wirkt es räumlich. */
.ladebalken { position: fixed; inset: 0; z-index: 100; pointer-events: none; }
.lade-flaeche {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: radial-gradient(circle at 72% 22%, rgba(31, 166, 217, 0.55), transparent 46%), var(--verlauf);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0s linear 0.2s;
}
.ladebalken.an .lade-flaeche { opacity: 1; visibility: visible; transition: opacity 0.2s ease; }
.lade-logo { position: absolute; top: calc(18% + var(--oben)); left: 0; right: 0; width: clamp(180px, 42vw, 360px); margin-inline: auto; }
.ladebalken.an .lade-logo { animation: auftauchen 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
/* Jede Lage: der Jetski und das Wasser (oben die Welle, 70 px, darunter Wasser bis zum Rand). Die Deckkraft liegt auf dem
   ganzen Wasser, damit zwischen Welle und Fläche keine Naht entsteht; der Jetski bleibt voll weiß. */
.lade-lage { position: absolute; left: 0; right: 0; bottom: 0; }
.lade-wasser { position: absolute; inset: 0; }
.lade-wasser::after { content: ''; position: absolute; top: 89px; left: 0; right: 0; bottom: 0; background: currentColor; }
.lade-welle { position: absolute; top: 0; left: 0; width: 200%; height: 90px; fill: currentColor; }
.lade-lage-1 { top: 55%; }
.lade-lage-2 { top: 67%; }
.lade-lage-3 { top: 80%; }
.lade-lage-1 .lade-wasser { color: var(--hellblau); opacity: 0.28; }
.lade-lage-2 .lade-wasser { color: var(--gischt); opacity: 0.55; }
.lade-lage-3 .lade-wasser { color: var(--tief); opacity: 0.85; }
.ladebalken.an .lade-lage-1 .lade-welle { animation: treiben 5s linear infinite reverse; }
.ladebalken.an .lade-lage-2 .lade-welle { animation: treiben 3.2s linear infinite; }
.ladebalken.an .lade-lage-3 .lade-welle { animation: treiben 2s linear infinite; }
/* Der Jetski sitzt auf dem Wellenkamm seiner Lage */
.lade-jetski { --gross: 64px; --hoch: 26px; position: absolute; bottom: calc(100% - 40px); left: 0; z-index: 1; transform: translateX(-30vw); }
.lade-lage-2 .lade-jetski { --gross: 96px; --hoch: 46px; bottom: calc(100% - 44px); }
.lade-lage-3 .lade-jetski { --gross: clamp(110px, 26vw, 170px); --hoch: 78px; bottom: calc(100% - 48px); }
.lade-fahrer { display: block; width: auto; height: var(--gross); transform-origin: 35% 85%; filter: drop-shadow(0 6px 10px rgba(7, 43, 78, 0.35)); }
/* Gischtspur hinter dem Heck */
.lade-jetski::before {
    content: '';
    position: absolute;
    right: 62%;
    bottom: 6%;
    width: 120%;
    height: 22%;
    border-radius: 50%;
    background: radial-gradient(ellipse at right, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0) 70%);
    filter: blur(4px);
}
.ladebalken.an .lade-lage-1 .lade-jetski { animation: ueber-die-wellen 4.2s linear infinite; animation-delay: -1.8s; }
.ladebalken.an .lade-lage-2 .lade-jetski { animation: ueber-die-wellen 2.9s linear infinite; animation-delay: -2.1s; }
.ladebalken.an .lade-lage-3 .lade-jetski { animation: ueber-die-wellen 2s linear infinite; animation-delay: -0.4s; }
.ladebalken.an .lade-lage-3 .lade-jetski + .lade-jetski { animation-delay: -1.4s; }
.ladebalken.an .lade-fahrer { animation: springen 0.75s infinite; }
.ladebalken.an .lade-lage-2 .lade-fahrer { animation-duration: 0.7s; animation-delay: -0.3s; }
.ladebalken.an .lade-lage-3 .lade-fahrer { animation-duration: 0.85s; animation-delay: -0.5s; }
.ladebalken.an .lade-lage-3 .lade-jetski + .lade-jetski .lade-fahrer { animation-duration: 0.95s; animation-delay: -0.1s; }
@keyframes ueber-die-wellen { from { transform: translateX(-30vw); } to { transform: translateX(110vw); } }
/* Absprung mit der Nase nach oben, kurz in der Luft, Landung: steigt schnell, fällt schneller */
@keyframes springen {
    0% { transform: translateY(3px) rotate(10deg); animation-timing-function: cubic-bezier(0.15, 0.7, 0.35, 1); }
    45% { transform: translateY(calc(var(--hoch) * -1)) rotate(-24deg); animation-timing-function: cubic-bezier(0.65, 0, 0.85, 0.35); }
    100% { transform: translateY(3px) rotate(10deg); }
}

.knopf { position: relative; overflow: hidden; }
.knopf::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.32) 50%, transparent 70%);
    transform: translateX(-130%);
    transition: transform 0.55s ease;
    pointer-events: none;
}
.knopf:hover::after { transform: translateX(130%); }
/* Spritzer beim Antippen: ein Wasserring breitet sich vom Finger aus */
.spritzer { position: absolute; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: rgba(255, 255, 255, 0.55); pointer-events: none; animation: spritzer 0.55s ease-out forwards; }
.knopf-hell .spritzer, .knopf-icon .spritzer { background: rgba(31, 166, 217, 0.35); }
@keyframes spritzer { to { transform: scale(14); opacity: 0; } }
.knopf-icon { position: relative; overflow: hidden; }
/* Sprung zum Inhalt: erst sichtbar, wenn man mit der Tastatur hinkommt */
.sprung { position: fixed; top: 8px; left: 8px; z-index: 400; padding: 10px 16px; border-radius: 12px; background: var(--tief); color: var(--weiss); font-weight: 600; transform: translateY(-200%); }
.sprung:focus { transform: none; }
.app-inhalt:focus { outline: none; }
.knopf[aria-busy="true"] { pointer-events: none; }
.knopf[aria-busy="true"] > .icon { visibility: hidden; }
.knopf[aria-busy="true"]::before {
    content: '';
    position: absolute;
    left: 22px;
    width: 18px;
    height: 18px;
    border: 2.5px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: drehen 0.7s linear infinite;
}
@keyframes drehen { to { transform: rotate(360deg); } }

.startbild {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: radial-gradient(circle at 80% 15%, rgba(31, 166, 217, 0.55), transparent 45%), var(--verlauf);
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.startbild.weg { opacity: 0; transform: scale(1.06); }
.startbild-mitte { position: relative; z-index: 2; display: grid; justify-items: center; gap: var(--a3); animation: auftauchen 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.startbild-logo { width: min(320px, 70vw); }
.startbild-fahrer { position: absolute; bottom: 92px; left: 0; z-index: 3; width: 120px; animation: ueberfahrt 1.15s cubic-bezier(0.45, 0.05, 0.2, 1) both; }
.wellen-startbild { bottom: 0; height: 130px; }
.wellen-startbild .welle-hinten { fill: rgba(255, 255, 255, 0.08); animation: treiben 9s linear infinite reverse; }
.wellen-startbild .welle-mitte { fill: rgba(255, 255, 255, 0.12); animation: treiben 6s linear infinite; }
.wellen-startbild .welle-vorn { fill: rgba(255, 255, 255, 0.18); animation: treiben 4s linear infinite; }
@keyframes auftauchen { from { opacity: 0; transform: translateY(18px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes ueberfahrt { from { transform: translateX(-140px) rotate(-4deg); } 60% { transform: translateX(60vw) rotate(3deg); } to { transform: translateX(110vw) rotate(-2deg); } }

/* Seitenaufbau: die Bausteine kommen nacheinander von rechts herein */
.app-inhalt > .stapel > * { animation: anfahrt 0.42s cubic-bezier(0.16, 0.84, 0.3, 1) both; }
.app-inhalt > .stapel > *:nth-child(2) { animation-delay: 0.04s; }
.app-inhalt > .stapel > *:nth-child(3) { animation-delay: 0.08s; }
.app-inhalt > .stapel > *:nth-child(4) { animation-delay: 0.12s; }
.app-inhalt > .stapel > *:nth-child(5) { animation-delay: 0.16s; }
.app-inhalt > .stapel > *:nth-child(n+6) { animation-delay: 0.2s; }
@keyframes anfahrt { from { opacity: 0; transform: translateX(32px) skewX(-3deg); } to { opacity: 1; transform: none; } }
.buehne-karte .wellen-karte .welle-mitte { animation: treiben 18s linear infinite; }
.buehne-karte .wellen-karte .welle-vorn { animation: treiben 12s linear infinite reverse; }
.nav-punkt { transition: background 0.2s, color 0.2s, transform 0.2s; }
.nav-punkt:active { transform: scale(0.94); }

@media (prefers-reduced-motion: reduce) {
    .app-inhalt > .stapel > *, .lade-fahrer, .lade-welle, .lade-logo, .startbild-mitte, .startbild-fahrer, .startbild .welle,
    .buehne-karte .welle, .spritzer { animation: none !important; }
    .ladebalken.an .lade-jetski { animation: none; }
    .ladebalken.an .lade-lage-1 .lade-jetski { transform: translateX(62vw); }
    .ladebalken.an .lade-lage-2 .lade-jetski { transform: translateX(14vw); }
    .ladebalken.an .lade-lage-3 .lade-jetski { transform: translateX(46vw); }
    .ladebalken.an .lade-lage-3 .lade-jetski + .lade-jetski { transform: translateX(8vw); }
    .knopf::after { display: none; }
}

/* ---------------------------------------------------------------- Hilfe: Schublade von rechts und Hilfe-Seite */

.hilfe {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(520px, 100vw);
    max-width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    padding: 0;
    border: 0;
    background: var(--flaeche);
    color: var(--text);
    box-shadow: -24px 0 60px rgba(7, 43, 78, 0.28);
    overflow-y: auto;
    overscroll-behavior: contain;
}
.hilfe[open] { animation: hilfe-rein 0.32s cubic-bezier(0.2, 0.8, 0.2, 1); }
.hilfe::backdrop { background: rgba(7, 43, 78, 0.38); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
@keyframes hilfe-rein { from { transform: translateX(100%); } to { transform: none; } }
.hilfe-kopf {
    position: sticky;
    top: 0;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--a4);
    padding: calc(var(--a5) + var(--oben)) var(--a5) var(--a5);
    background: radial-gradient(circle at 90% 0%, rgba(31, 166, 217, 0.55), transparent 50%), var(--verlauf);
    color: var(--weiss);
}
.hilfe-kopf .titel-gross { color: var(--weiss); }
.hilfe-kopf > div > * + * { margin-top: var(--a1); }
.hilfe-zu { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.16); color: var(--weiss); cursor: pointer; }
.hilfe-zu:hover { background: rgba(255, 255, 255, 0.28); }
.hilfe .hilfe-inhalt { padding: var(--a5) var(--a5) calc(var(--a6) + var(--unten)); }
.hilfe-inhalt > * + * { margin-top: var(--a4); }
.hilfe-kurz { font-size: 1.05rem; font-weight: 500; color: var(--titel); }
.hilfe-abschnitt > * + * { margin-top: var(--a2); }
.hilfe-abschnitt h3 { font-size: 1rem; font-weight: 700; color: var(--titel); }
.hilfe-abschnitt ul, .hilfe-abschnitt ol { padding-left: 1.25em; }
.hilfe-abschnitt ul { list-style: disc; }
.hilfe-abschnitt li + li { margin-top: var(--a1); }
.hilfe-abschnitt kbd { background: var(--eis); color: var(--titel); }
.hilfe-vorstand { display: flex; align-items: center; gap: var(--a2); padding-top: var(--a3); border-top: 1px solid var(--linie); }
.hilfe-mehr a { display: inline-flex; align-items: center; gap: var(--a2); font-weight: 600; text-decoration: none; }
.hilfe-verzeichnis ul { display: grid; gap: var(--a2) var(--a5); margin-top: var(--a3); }
.hilfe-verzeichnis a { font-weight: 600; text-decoration: none; }
.hilfe-karte { scroll-margin-top: 96px; }
@media (min-width: 900px) {
    .hilfe-verzeichnis ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { .hilfe[open] { animation: none; } }

/* ================================================================ Bereiche (je eigener Abschnitt, Reihenfolge fest)
   Neue Regeln eines Bereichs nur zwischen seinen Markierungen. Erst prüfen, ob ein Baustein oben schon passt. */

/* ==== Bereich Mitglieder ==== */
.link-feld { display: flex; flex-wrap: wrap; align-items: center; gap: var(--a3); padding: var(--a3); border-radius: var(--radius-klein); background: var(--eis); }
.link-feld code { flex: 1 1 260px; min-width: 0; overflow-wrap: anywhere; font-size: 0.85rem; color: var(--titel); }
.kachel-menue { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; justify-items: start; gap: var(--a3); }
.kachel-menue .kachel-zeichen { grid-row: auto; }
.kachel-titel { font-weight: 700; overflow-wrap: anywhere; -webkit-hyphens: auto; hyphens: auto; }
/* ==== Ende Mitglieder ==== */

/* ==== Bereich Versammlung ==== */
/* Lange Wörter in großen Titeln ("JAHRESHAUPTVERSAMMLUNG") trennen statt die Seite am Handy zu verbreitern */
.versammlung-seite .titel-gross { overflow-wrap: anywhere; -webkit-hyphens: auto; hyphens: auto; }
@media (max-width: 699px) { .versammlung-seite .seitenkopf .titel-gross { font-size: clamp(1.15rem, 5.2vw, 1.7rem); } }

/* Balken der Ergebnisse: Zahl und Anteil neben dem Text, darunter ein progress-Element (keine Breite im HTML nötig) */
.stimm-balken { display: grid; gap: var(--a3); }
.stimm-balken li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 4px var(--a3); }
.stimm-balken-text { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; font-weight: 600; }
.stimm-balken-text > .icon { color: var(--welle); }
.stimm-balken .vorn .stimm-balken-text { font-weight: 800; }
.stimm-balken-zahl { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stimm-balken-zahl .leise { font-weight: 500; font-size: 0.85em; }
.stimm-balken progress, .leinwand-zaehler progress {
    grid-column: 1 / -1;
    width: 100%;
    height: 12px;
    border: 0;
    border-radius: 999px;
    background: var(--eis);
    overflow: hidden;
    -webkit-appearance: none;
    appearance: none;
}
.stimm-balken progress::-webkit-progress-bar, .leinwand-zaehler progress::-webkit-progress-bar { background: var(--eis); border-radius: 999px; }
.stimm-balken progress::-webkit-progress-value, .leinwand-zaehler progress::-webkit-progress-value { background: var(--verlauf-knopf); border-radius: 999px; }
.stimm-balken progress::-moz-progress-bar, .leinwand-zaehler progress::-moz-progress-bar { background: var(--verlauf-knopf); border-radius: 999px; }

/* Entscheidung groß mit Symbol und Wort (auch Prüfung des Ausweises) */
.entscheidung { display: flex; align-items: center; gap: var(--a4); padding: var(--a4) var(--a5); border-radius: 18px; overflow-wrap: anywhere; }
.entscheidung > :not(.icon) { min-width: 0; }
.entscheidung > .icon { width: 44px; height: 44px; }
.entscheidung-wort { font-weight: 800; font-style: italic; text-transform: uppercase; font-size: 1.6rem; line-height: 1.1; }
.entscheidung-wort + p { color: var(--text); }
.entscheidung-ok { background: var(--gruen-flaeche); color: var(--gruen-text); }
.entscheidung-warn { background: var(--warn-flaeche); color: var(--warn-text); }
.entscheidung-aus { background: var(--aus-flaeche); color: var(--titel); }
.entscheidung-info { background: var(--eis); color: var(--titel); }

/* Abstimmen am Handy: große Antwort-Knöpfe, die gewählte mit Symbol und "deine Stimme" */
.live-buehne { padding-bottom: 96px; }
.titel-hell { color: var(--weiss); }
.live-zaehler { display: flex; align-items: center; gap: var(--a2); color: var(--text-leise); }
.live-zaehler strong { color: var(--titel); font-size: 1.15rem; }
.live-zaehler .icon { color: var(--welle); }
.antworten { display: grid; gap: var(--a3); }
.antworten-ja-nein { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.live-frage .titel-gross { font-size: 1.45rem; text-transform: none; }
.live-buehne .titel-gross { font-size: clamp(1.05rem, 4.6vw, 2rem); }
.antwort {
    display: flex;
    align-items: center;
    gap: var(--a3);
    min-height: 72px;
    padding: var(--a3) var(--a4);
    border: 2px solid var(--linie);
    border-radius: 18px;
    background: var(--flaeche);
    color: var(--titel);
    font-weight: 700;
    font-size: 1.1rem;
    text-align: left;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.12s ease, border-color 0.12s ease;
}
.antwort:hover { border-color: var(--hellblau); }
.antwort:active { transform: scale(0.97); }
.antwort:disabled { opacity: 0.6; cursor: wait; }
.antworten-ja-nein .antwort { flex-direction: column; justify-content: center; gap: var(--a2); min-height: 136px; padding: var(--a3) var(--a2); text-align: center; }
.antwort-zeichen { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--eis); color: var(--welle); flex: none; }
.antwort-zeichen .icon { width: 28px; height: 28px; }
.antwort-text { min-width: 0; overflow-wrap: anywhere; }
.antwort.an { border-color: var(--welle); background: var(--eis); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gischt) 30%, transparent); }
.antwort.an .antwort-zeichen { background: var(--verlauf-knopf); color: var(--weiss); box-shadow: var(--schatten-knopf); }
.antwort-marke { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; font-size: 0.78rem; font-weight: 600; color: var(--gruen-text); white-space: nowrap; }
.antwort-marke .icon { width: 16px; height: 16px; }
.antworten-ja-nein .antwort-marke { margin-left: 0; }
/* Enthaltung unter Ja und Nein über die ganze Breite, flacher */
.antworten-ja-nein .antwort-enthaltung { grid-column: 1 / -1; flex-direction: row; min-height: 64px; }
.antworten-ja-nein .antwort-enthaltung .antwort-zeichen { width: 40px; height: 40px; border-radius: 12px; }
.antworten-ja-nein .antwort-enthaltung .antwort-marke { margin-left: auto; }
@media (min-width: 700px) {
    .antworten-ja-nein { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .antworten-ja-nein .antwort-enthaltung { grid-column: auto; flex-direction: column; min-height: 136px; }
    .antworten-ja-nein .antwort-enthaltung .antwort-zeichen { width: 52px; height: 52px; border-radius: 16px; }
    .antworten-ja-nein .antwort-enthaltung .antwort-marke { margin-left: 0; }
}

/* Umfragen und Stimme per Hand: Antworten als Kacheln mit sichtbarem Kreuz oder Punkt */
.wahl-liste { display: grid; gap: var(--a2); margin: 0; padding: 0; border: 0; min-width: 0; }
.wahl-liste legend { padding: 0; margin-bottom: var(--a2); font-size: 0.85rem; }
.wahl { display: flex; align-items: center; gap: var(--a3); min-height: 56px; padding: var(--a3) var(--a4); border: 1.5px solid var(--linie); border-radius: var(--radius-klein); background: var(--flaeche); font-weight: 600; cursor: pointer; }
.wahl input { width: 22px; height: 22px; margin: 0; accent-color: var(--welle); flex: none; }
.wahl:has(input:checked) { border-color: var(--welle); background: var(--eis); }
.wahl-liste-reihe { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }

/* Aufklappen: Baustein .aufklapp (steht bei Kommunikation), hier nur der Pfeil rechts */
.aufklapp-pfeil { margin-left: auto; }

/* Check-in, Anwesenheit, Tagesordnung, Einladung */
.checkin-code { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--a3); }
.checkin-code .feld { flex: 1 1 180px; }
.checkin-code input { font-size: 1.5rem; font-weight: 700; letter-spacing: 0.2em; text-align: center; }
.anwesend-karte { display: grid; gap: var(--a4); align-items: center; }
.anwesend-zahl { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--a3); font-weight: 600; color: var(--text-leise); }
.anwesend-gross { font-weight: 800; font-style: italic; font-size: 4rem; line-height: 1; color: var(--titel); }
.anwesend-teile { display: flex; flex-wrap: wrap; gap: var(--a2) var(--a4); }
.anwesend-teile li { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; white-space: nowrap; }
.anwesend-teile .icon { color: var(--welle); }
.anwesend-code { display: flex; flex-wrap: wrap; align-items: center; gap: var(--a2) var(--a4); padding-top: var(--a4); border-top: 1px solid var(--linie); }
.anwesend-code-wert { font-weight: 800; font-size: 1.6rem; letter-spacing: 0.12em; color: var(--titel); font-variant-numeric: tabular-nums; }
.hand-stimme { padding-top: var(--a4); border-top: 1px solid var(--linie); }
.versammlung-seite .tabelle td:first-child .leise { font-weight: 400; }
.top-nummer { display: inline-grid; place-items: center; min-width: 28px; height: 28px; margin-right: var(--a2); border-radius: 9px; background: var(--eis); color: var(--welle); font-weight: 800; font-size: 0.85rem; }
.einladung > * + * { margin-top: var(--a3); }
.einladung-fakten { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--a1) var(--a4); margin: 0; padding: var(--a3) var(--a4); border-radius: var(--radius-klein); background: var(--eis); }
.einladung-fakten dt { font-weight: 700; color: var(--titel); }
.einladung-fakten dd { margin: 0; }
/* Ohne eigenen Abstand oben: den gibt der Stapel drumherum */
.einladung-punkte { margin-bottom: 0; margin-left: 0; margin-right: 0; padding-left: 1.5em; }
.versammlung-seite .stapel-klein > .zwischentitel:first-child { margin-top: 0; }
.antrag-liste li { align-items: center; padding-top: var(--a2); padding-bottom: var(--a2); }
.antrag-liste li:first-child { padding-top: 0; }
.antrag-liste .knopf-icon { margin-top: 0; }
.versammlung-seite .knopfzeile > .marke, .beschluss .marke { margin-left: 0; }
/* Kennzeichen allein am Zeilenanfang (live, Abstimmung läuft, läuft bis) bündig mit dem Text darunter */
.versammlung-seite .buehne-text > p > .marke:only-child, .live-panel .karte-kopf p > .marke:only-child, .einzel .stapel-klein > p > .marke:only-child { margin-left: 0; }
.einladung-punkte li { padding: 2px 0; }
.einladung-punkte li::marker { font-weight: 700; color: var(--welle); }
@media (min-width: 900px) {
    /* PC: links Zahl und Aufteilung untereinander, rechts der Code mit dem Knopf zur Leinwand */
    .anwesend-karte { grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--a6); }
    .anwesend-code { grid-column: 2; grid-row: 1 / span 2; flex-direction: column; align-items: flex-end; padding: 0 0 0 var(--a6); border-top: 0; border-left: 1px solid var(--linie); }
}

/* Seiten ohne App-Rahmen: Abstimmen per Link, Ausweis prüfen */
body.einzel-seite { background: var(--eis); }
.einzel { width: 100%; max-width: 560px; margin: 0 auto; padding: calc(var(--a5) + var(--oben)) var(--a4) calc(var(--a6) + var(--unten)); }
.einzel-logo { display: block; width: min(220px, 60%); margin: 0 auto; }
.einzel-fuss { font-size: 0.88rem; text-align: center; }

/* Mitgliedsausweis quer im Format einer Scheckkarte (85,6 x 54 mm). Alle Maße der Karte in cqw (Hundertstel der
   Kartenbreite): Am Handy, am PC und gedruckt in echter Größe sieht sie gleich aus, nur größer oder kleiner. Die Farben
   der Karte sind fest (Verlauf, Weiß), damit sie im dunklen Modus und im Druck gleich bleibt. */
.ausweis-buehne { display: grid; justify-items: center; gap: var(--a4); }
.ausweis-rahmen { container-type: inline-size; width: min(100%, 600px); }
.ausweis {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    /* Die Angaben nehmen sich, was sie brauchen; das Logo darüber gibt bei langen Namen Platz ab */
    grid-template-rows: minmax(0, 1fr) auto;
    grid-template-areas: "kopf kopf pruefen" "foto angaben pruefen";
    gap: 3cqw 3.2cqw;
    aspect-ratio: 85.6 / 54;
    padding: 4.6cqw 4.6cqw 4.6cqw 5cqw;
    border-radius: 3.7cqw;
    background: radial-gradient(circle at 92% 8%, color-mix(in srgb, var(--gischt) 60%, transparent), transparent 46%), var(--verlauf);
    color: var(--weiss);
    line-height: 1.25;
    box-shadow: 0 24px 50px color-mix(in srgb, var(--tief) 35%, transparent);
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}
.ausweis > :not(.wellen) { position: relative; z-index: 1; }
.ausweis-kopf { grid-area: kopf; min-height: 0; }
.ausweis-logo { width: auto; height: 100%; max-height: 23cqw; max-width: 100%; object-fit: contain; object-position: left top; }
.ausweis .ausweis-foto {
    grid-area: foto;
    align-self: end;
    width: 16.5cqw;
    height: 20.5cqw;
    border: 0.6cqw solid var(--weiss);
    border-radius: 2.2cqw;
    background: color-mix(in srgb, var(--weiss) 16%, transparent);
    font-size: 6.4cqw;
    font-weight: 800;
    font-style: italic;
    object-fit: cover;
    box-shadow: none;
}
.ausweis-angaben { grid-area: angaben; align-self: end; display: grid; gap: 1.5cqw; justify-items: start; min-width: 0; }
.ausweis-name { max-width: 100%; font-weight: 800; font-style: italic; text-transform: uppercase; font-size: 4.5cqw; line-height: 1.04; overflow-wrap: anywhere; -webkit-hyphens: auto; hyphens: auto; }
.ausweis-name-m { font-size: 3.8cqw; }
.ausweis-name-s { font-size: 3.2cqw; }
.ausweis-name-xs { font-size: 2.7cqw; }
.ausweis-daten { display: flex; flex-wrap: wrap; gap: 0.6cqw 4cqw; margin: 0; }
.ausweis-daten dt { font-size: 1.9cqw; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--hellblau); }
.ausweis-daten dd { margin: 0.3cqw 0 0; font-size: 3.1cqw; font-weight: 700; }
.ausweis-art { font-size: 2.6cqw; font-weight: 500; color: var(--hellblau); }
.ausweis-status { display: inline-flex; align-items: center; gap: 1cqw; padding: 0.7cqw 2.2cqw 0.7cqw 1.3cqw; border-radius: 999px; font-size: 2.6cqw; font-weight: 700; }
.ausweis-status .icon { width: 3.4cqw; height: 3.4cqw; }
.ausweis-status-ja { background: var(--weiss); color: var(--tief); }
.ausweis-status-ja .icon { color: var(--welle); }
.ausweis-status-nein { border: 0.35cqw dashed var(--weiss); color: var(--weiss); }
.ausweis-pruefen { grid-area: pruefen; align-self: center; display: grid; justify-items: center; gap: 1.4cqw; width: 35cqw; }
.ausweis-etikett { font-size: 2cqw; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--hellblau); white-space: nowrap; }
.ausweis-qr { width: 100%; padding: 0.8cqw; border-radius: 2.2cqw; background: var(--weiss); }
.ausweis-qr-text { font-size: 2.2cqw; font-weight: 600; color: var(--hellblau); }
.qr { display: block; width: 100%; height: auto; }
.wellen-ausweis { bottom: 0; height: 22cqw; }
.wellen-ausweis .welle-hinten { fill: color-mix(in srgb, var(--weiss) 4%, transparent); transform: translateX(-18%); }
.wellen-ausweis .welle-mitte { fill: color-mix(in srgb, var(--weiss) 6%, transparent); transform: translateX(-36%); }
.wellen-ausweis .welle-vorn { fill: color-mix(in srgb, var(--weiss) 9%, transparent); }
.ausweis-tipp { display: flex; align-items: center; gap: var(--a2); max-width: 600px; }

/* Rückseite (nur im Druck): hell mit dunkler Schrift, Fundadresse und Notfallkontakt */
.ausweis-rueckseite {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr) auto;
    grid-template-areas: none;
    gap: 2.6cqw;
    background: var(--weiss);
    color: var(--tief);
}
.ausweis-rueck-kopf { display: flex; align-items: center; gap: 3.5cqw; padding-bottom: 2.8cqw; border-bottom: 0.3cqw solid var(--hellblau); font-size: 3cqw; }
.ausweis-rueck-logo { width: auto; height: 14cqw; }
.ausweis-rueck-verein { font-weight: 800; font-style: italic; text-transform: uppercase; font-size: 4.4cqw; line-height: 1.1; }
.ausweis-rueck-felder { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 4cqw; align-content: center; font-size: 2.9cqw; }
.ausweis-rueck-felder > div > * + * { margin-top: 0.6cqw; }
.ausweis-rueck-etikett { font-size: 2.1cqw; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--welle); }
.ausweis-rueck-wert { font-size: 3.1cqw; font-weight: 700; overflow-wrap: anywhere; }
.ausweis-rueck-fuss { font-size: 2.2cqw; color: var(--tief); opacity: 0.75; }
.ausweis-rueckseite .wellen-ausweis { height: 12cqw; }
.ausweis-rueckseite .welle-hinten { fill: color-mix(in srgb, var(--gischt) 10%, transparent); }
.ausweis-rueckseite .welle-mitte { fill: color-mix(in srgb, var(--welle) 10%, transparent); }
.ausweis-rueckseite .welle-vorn { fill: color-mix(in srgb, var(--marine) 12%, transparent); }

/* Druckbogen: beide Seiten in echter Größe; am Bildschirm schmal untereinander, im Druck nebeneinander zum Falten */
.ausweis-bogen { display: flex; flex-direction: column; align-items: center; gap: var(--a5); }
.ausweis-bogen .ausweis-rahmen { width: 85.6mm; flex: none; }
.ausweis-bogen .ausweis { border-radius: 3mm; box-shadow: 0 0 0 0.3mm var(--linie); }
@media print, (min-width: 800px) {
    /* Schnittlinie gestrichelt außen um beide Seiten, Falz gepunktet in der Mitte */
    .ausweis-bogen { flex-direction: row; gap: 0; width: max-content; margin-left: auto; margin-right: auto; outline: 0.3mm dashed var(--text-leise); }
    .ausweis-bogen .ausweis { border-radius: 0; box-shadow: none; }
    .ausweis-bogen .ausweis-rahmen + .ausweis-rahmen { position: relative; }
    .ausweis-bogen .ausweis-rahmen + .ausweis-rahmen::before { content: ''; position: absolute; z-index: 2; top: 0; bottom: 0; left: -0.15mm; border-left: 0.3mm dotted var(--text-leise); }
}

/* Leinwand am Beamer: dunkler Verlauf, ruhige Wellen, alles groß; Maße wachsen mit dem Bildschirm (1920 x 1080 bis Laptop) */
body.leinwand-seite { overflow: hidden; background: var(--tief); color: var(--weiss); }
.leinwand {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(260px, 24vw, 470px);
    grid-template-rows: auto minmax(0, 1fr);
    gap: clamp(16px, 2.4vw, 48px);
    height: 100vh;
    height: 100dvh;
    padding: clamp(18px, 2.4vw, 48px) clamp(24px, 3.4vw, 68px) clamp(64px, 11vh, 128px);
    overflow: hidden;
    background: radial-gradient(circle at 82% 6%, color-mix(in srgb, var(--gischt) 45%, transparent), transparent 40%), var(--verlauf);
}
.leinwand.ohne-checkin { grid-template-columns: minmax(0, 1fr); }
.leinwand-kopf { position: relative; z-index: 1; grid-column: 1 / -1; display: flex; align-items: center; gap: clamp(16px, 2vw, 40px); }
.leinwand-logo { display: grid; place-items: center; flex: none; padding: clamp(6px, 0.6vw, 12px) clamp(10px, 1vw, 20px); border-radius: 18px; background: var(--weiss); }
.leinwand-logo img { width: auto; height: clamp(52px, 5.6vw, 108px); }
.leinwand-titel { flex: 1; min-width: 0; }
.leinwand-titel .etikett { font-size: clamp(0.72rem, 0.9vw, 1.1rem); }
.leinwand-titel h1 { overflow-wrap: anywhere; font-weight: 800; font-style: italic; font-size: clamp(1.5rem, 2.6vw, 3.3rem); line-height: 1.05; text-transform: uppercase; }
.leinwand-anwesend { display: flex; flex: none; align-items: center; gap: clamp(10px, 1vw, 20px); padding: clamp(10px, 1vw, 18px) clamp(16px, 1.6vw, 30px); border-radius: 22px; background: color-mix(in srgb, var(--weiss) 12%, transparent); }
.leinwand-anwesend-zahl { font-weight: 800; font-style: italic; font-size: clamp(2.6rem, 4.6vw, 5.8rem); line-height: 1; font-variant-numeric: tabular-nums; }
.leinwand-anwesend-text { font-weight: 600; font-size: clamp(0.85rem, 1.1vw, 1.4rem); line-height: 1.2; color: var(--hellblau); }
.leinwand-buehne { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: safe center; gap: clamp(10px, 1.4vw, 28px); min-height: 0; }
.leinwand-etikett { display: flex; align-items: center; gap: 0.6em; font-weight: 700; font-size: clamp(0.9rem, 1.2vw, 1.5rem); letter-spacing: 0.14em; text-transform: uppercase; color: var(--hellblau); }
.leinwand-etikett .icon { width: 1.3em; height: 1.3em; color: var(--gischt); }
.leinwand-frage { font-weight: 800; font-style: italic; font-size: clamp(2rem, 3.7vw, 4.8rem); line-height: 1.05; overflow-wrap: anywhere; }
.leinwand-mehrheit { font-weight: 600; font-size: clamp(0.95rem, 1.25vw, 1.6rem); color: var(--hellblau); }
.leinwand-buehne.ist-ergebnis .leinwand-frage, .leinwand-buehne.viele .leinwand-frage { font-size: clamp(1.6rem, min(2.8vw, 5vh), 3.6rem); }
.leinwand-buehne.ist-ergebnis .entscheidung-wort { font-size: clamp(1.7rem, min(3vw, 5.4vh), 3.8rem); }
.leinwand-buehne.ist-ergebnis .stimm-balken-text, .leinwand-buehne.ist-ergebnis .stimm-balken-zahl { font-size: clamp(1rem, min(1.5vw, 2.7vh), 1.9rem); }
.leinwand-buehne.ist-ergebnis .stimm-balken progress { height: clamp(10px, 1vw, 18px); }
.leinwand-buehne.ist-ergebnis .stimm-balken { gap: clamp(6px, 0.8vw, 14px); }
.leinwand-unter { font-weight: 700; font-style: italic; font-size: clamp(1.2rem, 2vw, 2.4rem); text-transform: uppercase; color: var(--hellblau); }
.leinwand-punkte { margin: 0; padding-left: 1.5em; columns: 2; column-gap: clamp(24px, 3vw, 64px); font-weight: 600; font-size: clamp(1.05rem, 1.55vw, 2rem); line-height: 1.55; }
.leinwand-punkte li { break-inside: avoid; }
.leinwand-punkte li::marker { font-weight: 800; color: var(--gischt); }
.leinwand-zaehler { display: grid; grid-template-columns: auto auto minmax(80px, 1fr); align-items: center; gap: clamp(10px, 1.2vw, 24px); }
.leinwand-zaehler-zahl { font-weight: 800; font-style: italic; font-size: clamp(2.6rem, 4.4vw, 5.6rem); line-height: 1; font-variant-numeric: tabular-nums; }
.leinwand-zaehler-text { font-weight: 600; font-size: clamp(1rem, 1.5vw, 1.9rem); color: var(--hellblau); }
.leinwand-zaehler progress { grid-column: auto; height: clamp(12px, 1.2vw, 22px); }
.leinwand .stimm-balken { gap: clamp(10px, 1.4vw, 26px); }
.leinwand .stimm-balken-text { font-size: clamp(1.15rem, 1.9vw, 2.5rem); font-weight: 700; }
.leinwand .stimm-balken-text > .icon { color: var(--gischt); }
.leinwand .stimm-balken-zahl { font-size: clamp(1.15rem, 1.9vw, 2.5rem); }
.leinwand .stimm-balken .leise, .leinwand .leise { color: var(--hellblau); }
.leinwand .stimm-balken progress { height: clamp(14px, 1.5vw, 28px); }
.leinwand .stimm-balken-viele { gap: clamp(6px, 0.8vw, 14px); }
.leinwand .stimm-balken-viele .stimm-balken-text, .leinwand .stimm-balken-viele .stimm-balken-zahl { font-size: clamp(1rem, 1.45vw, 1.9rem); }
.leinwand .stimm-balken-viele progress { height: clamp(10px, 1vw, 18px); }
.leinwand progress::-webkit-progress-bar { background: color-mix(in srgb, var(--weiss) 14%, transparent); }
.leinwand progress { background: color-mix(in srgb, var(--weiss) 14%, transparent); }
.leinwand .entscheidung { padding: clamp(14px, 1.4vw, 28px) clamp(18px, 2vw, 36px); }
.leinwand .entscheidung > .icon { width: clamp(48px, 4.6vw, 92px); height: clamp(48px, 4.6vw, 92px); }
.leinwand .entscheidung-wort { font-size: clamp(2rem, 3.8vw, 4.8rem); }
.leinwand .entscheidung-wort + p { font-size: clamp(1rem, 1.3vw, 1.65rem); }
.leinwand-checkin { position: relative; z-index: 1; align-self: center; display: grid; justify-items: center; gap: clamp(8px, 0.9vw, 16px); padding: clamp(16px, 1.6vw, 30px); border-radius: 28px; background: color-mix(in srgb, var(--weiss) 10%, transparent); text-align: center; }
.leinwand-qr { width: 100%; max-width: calc(100vh - 470px); min-width: 180px; padding: clamp(8px, 0.8vw, 16px); border-radius: 20px; background: var(--weiss); }
.leinwand-checkin-titel { display: flex; align-items: center; gap: 0.4em; font-weight: 800; font-style: italic; font-size: clamp(1.15rem, 1.8vw, 2.3rem); text-transform: uppercase; }
.leinwand-checkin-text { font-size: clamp(0.85rem, 1vw, 1.25rem); line-height: 1.4; color: var(--hellblau); }
.leinwand-code { font-weight: 800; font-size: clamp(1.8rem, 2.8vw, 3.6rem); letter-spacing: 0.14em; font-variant-numeric: tabular-nums; }
.wellen-leinwand { bottom: 0; height: clamp(70px, 12vh, 140px); }
.wellen-leinwand .welle-hinten { fill: color-mix(in srgb, var(--weiss) 6%, transparent); transform: translateX(-18%); }
.wellen-leinwand .welle-mitte { fill: color-mix(in srgb, var(--weiss) 9%, transparent); transform: translateX(-36%); }
.wellen-leinwand .welle-vorn { fill: color-mix(in srgb, var(--weiss) 12%, transparent); }
.leinwand-vollbild { position: absolute; right: 16px; bottom: 16px; z-index: 2; display: inline-flex; align-items: center; gap: var(--a2); padding: var(--a2) 14px; border: 0; border-radius: 12px; background: color-mix(in srgb, var(--weiss) 14%, transparent); color: var(--weiss); font-weight: 600; cursor: pointer; }
.leinwand .marke { padding: 0.1em 0.6em; font-size: 0.5em; vertical-align: middle; }
.leinwand .marke .icon { width: 1em; height: 1em; }
/* Falls jemand die Leinwand am Handy öffnet: untereinander und scrollbar */
@media (max-width: 799px) {
    body.leinwand-seite { overflow: auto; }
    .leinwand { grid-template-columns: minmax(0, 1fr); height: auto; min-height: 100dvh; }
    .leinwand-kopf { flex-wrap: wrap; }
    .leinwand-qr { max-width: 320px; }
}
.leinwand.ohne-verbindung .leinwand-anwesend { outline: 3px dashed var(--hellblau); outline-offset: 4px; }

/* Druck: Protokoll und Einladung */
.druck-fakten th { width: 30%; color: var(--text-leise); font-weight: 600; }
.druck-blatt h3 { font-size: 1rem; color: var(--tief); }
.druck-blatt .art-zahl { text-align: right; }
.druck-punkt > * + * { margin-top: var(--a2); }
.druck-abstimmung { padding: var(--a3) var(--a4); border-left: 3px solid var(--welle); background: var(--eis); }
.druck-abstimmung > * + * { margin-top: var(--a2); }
.druck-feld { min-width: 160px; }
.unterschriften { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--a6); padding-top: var(--a6); }
.unterschrift-linie { display: block; height: 56px; border-bottom: 1.5px solid var(--text); }
.unterschriften p { margin-top: var(--a2); font-size: 0.85rem; }
.druck-anschrift { margin-bottom: var(--a5); font-weight: 600; line-height: 1.5; }
@media screen { .druck-neue-seite { margin-top: var(--a6); padding-top: var(--a5); border-top: 2px dashed var(--linie); } }
/* Druckansicht am Handy: weniger Rand, langer Titel bricht um (gilt für alle Druckseiten, Wunsch: in die Basis) */
@media (max-width: 699px) {
    .druck-blatt { padding: var(--a5) var(--a4); }
    .druck-kopf { flex-wrap: wrap; gap: var(--a3); }
    .druck-kopf .titel-gross { overflow-wrap: anywhere; -webkit-hyphens: auto; hyphens: auto; }
    .druck-blatt th, .druck-blatt td { padding: 4px; font-size: 0.85rem; }
    .unterschriften { grid-template-columns: 1fr; }
}
@media print {
    .druck-neue-seite { break-before: page; }
    .druck-abstimmung, .unterschriften { break-inside: avoid; }
}
/* Abstimmen: Verwalten für den Vorstand als eigener, gestrichelt umrandeter Bereich, damit er nicht mit Mitglieder-Karten verwechselt wird */
.vorstand-bereich { background: transparent; box-shadow: none; border: 2px dashed var(--linie); }
/* Foto oder Initialen vor dem Namen in einer Listenzeile (Anwesenheit) */
.versammlung-seite .tabelle td .kreis { margin-right: var(--a3); vertical-align: middle; }
/* ==== Ende Versammlung ==== */

/* ==== Bereich Kommunikation ==== */
/* Sprungziele (Glocke, News, Paragraphen) nicht unter dem festen Kopf verstecken */
.anker { scroll-margin-top: 96px; }
.link-ruhig { color: var(--titel); text-decoration: none; }
.link-ruhig:hover { color: var(--akzent); text-decoration: underline; }
.karte-wichtig { box-shadow: 0 0 0 2px var(--welle), var(--schatten); }
.knopfzeile-ende { justify-content: flex-end; }
.marken { display: flex; flex-wrap: wrap; gap: var(--a2); }
.marken .marke { margin-left: 0; }

/* News */
.news > * + * { margin-top: var(--a3); }
.news-angeheftet { box-shadow: 0 0 0 2px var(--hellblau), var(--schatten); }
.news-kopf { display: flex; align-items: center; gap: var(--a3); }
.news-kopf .liste-text { padding-top: 0; }
.news-aktionen { display: flex; align-items: center; margin-left: auto; }
.news-titel { font-size: 1.3rem; font-weight: 800; line-height: 1.25; color: var(--titel); }
.news-text { overflow-wrap: anywhere; }
.news-text > * + * { margin-top: var(--a3); }
.news-text > .text-zwischentitel { margin-top: var(--a5); }
.text-zwischentitel { font-size: 1.02rem; font-weight: 700; color: var(--titel); }
.news-text strong { font-weight: 700; color: var(--titel); }
.versand { display: grid; gap: var(--a2); padding: var(--a3) var(--a4); border-radius: var(--radius-klein); background: var(--eis); }
.versand progress { width: 100%; height: 10px; accent-color: var(--welle); }

/* Zustimmungen und Antrag: aufklappbarer Text, Auswahl Ja / Nein, Art der Mitgliedschaft */
.aufklapp { border-radius: var(--radius-klein); background: var(--eis); }
.aufklapp summary { display: flex; align-items: center; gap: var(--a2); padding: var(--a3) var(--a4); font-weight: 600; color: var(--akzent); cursor: pointer; list-style: none; }
.aufklapp summary::-webkit-details-marker { display: none; }
.aufklapp summary .icon { transition: transform 0.2s; }
.aufklapp[open] summary .icon { transform: rotate(180deg); }
.aufklapp > :not(summary) { padding: 0 var(--a4) var(--a4); }
.hinweisliste { display: grid; gap: var(--a3); margin: 0; }
.hinweisliste dt { font-weight: 700; color: var(--titel); }
.hinweisliste dd { margin: 2px 0 0; }
.wahl-reihe { display: flex; flex-wrap: wrap; gap: var(--a2) var(--a5); min-width: 0; margin-left: 0; margin-right: 0; padding: 0; border: 0; }
.wahl-reihe legend { float: left; width: 100%; margin-bottom: var(--a1); padding: 0; font-weight: 600; }
.wahl-karten { display: grid; gap: var(--a3); }
.wahl-karte { display: flex; align-items: flex-start; gap: var(--a3); padding: var(--a4); border: 1.5px solid var(--linie); border-radius: var(--radius-klein); cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.wahl-karte input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--welle); flex: none; }
.wahl-karte:has(input:checked) { border-color: var(--welle); background: var(--eis); box-shadow: 0 0 0 1px var(--welle); }
.wahl-inhalt { display: grid; gap: 2px; }
.wahl-titel { display: flex; align-items: center; gap: var(--a2); font-weight: 700; color: var(--titel); }
.wahl-titel .icon { color: var(--welle); }
.wahl-preis { font-size: 1.35rem; font-weight: 800; font-style: italic; color: var(--titel); }
.wahl-preis .leise { font-size: 0.9rem; font-weight: 500; font-style: normal; }
.feld-fehler { color: var(--warn-text); font-weight: 600; }
.danke { text-align: center; }
.danke .gross-zeichen { margin-left: auto; margin-right: auto; }
.danke .knopfzeile { justify-content: center; }
.danke .liste-ruhig { text-align: left; }

/* Öffentliche Seiten (Antrag, Satzung, Datenschutz, Impressum): eine Lesespalte mit Logo oben */
.verein-rahmen { width: 100%; max-width: 900px; margin: 0 auto; padding: calc(var(--a3) + var(--oben)) var(--a4) calc(var(--a6) + var(--unten)); }
.verein-kopf { display: flex; align-items: center; justify-content: space-between; gap: var(--a4); margin-bottom: var(--a4); }
.verein-logo img { width: auto; height: 54px; }
.titel-verein { font-size: clamp(2rem, 9vw, 3.6rem); overflow-wrap: anywhere; hyphens: auto; }
.verein-links { margin-top: var(--a6); }
.lesetext { overflow-wrap: anywhere; }
.lesetext > * + *, .lesetext section > * + * { margin-top: var(--a3); }
.lesetext section + section { margin-top: var(--a6); }
.lesetext h2 { font-size: 1.12rem; font-weight: 800; line-height: 1.3; color: var(--titel); }
.lesetext h3 { margin-top: var(--a5); font-size: 1rem; font-weight: 700; color: var(--titel); }
.aufzaehlung { display: grid; gap: var(--a1); padding-left: var(--a4); }
.aufzaehlung-punkte { list-style: disc; padding-left: var(--a5); }
.satzung-inhalt { display: grid; gap: 2px var(--a5); font-size: 0.92rem; }
.satzung-inhalt a { color: var(--akzent); text-decoration: none; }
@media (min-width: 700px) {
    .hinweisliste { grid-template-columns: 210px minmax(0, 1fr); column-gap: var(--a5); }
    .hinweisliste dd { margin: 0; }
    .wahl-karten { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .verein-rahmen { padding-top: var(--a5); }
    .verein-logo img { height: 72px; }
    .satzung-inhalt { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Dokumente: Kopf der großen Karten (Zeichen, Titel mit Stand, rechts die Aktionen des Vorstands) */
.dokument-kopf { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--a4); }
.dokument-aktionen { grid-column: 3; grid-row: 1; display: flex; align-items: center; }
/* Satzung und Antrag nebeneinander gleich hoch, die Knöpfe unten auf einer Linie */
.dokument-raster { align-items: stretch; }
.dokument-karte { display: flex; flex-direction: column; }
.dokument-karte > .knopfzeile { margin-top: auto; padding-top: var(--a5); }
@media (max-width: 699px) {
    /* Kopf der Karte: die Aktionen neben dem Zeichen, der Titel darunter über die ganze Breite */
    .dokument-kopf:has(.dokument-aktionen) > .stapel-klein { grid-column: 1 / -1; grid-row: 2; }
}
/* ==== Ende Kommunikation ==== */

/* ==== Bereich Kasse ==== */
/* Beträge in Kacheln brauchen mehr Platz als Zahlen */
.kasse-kacheln .kachel-zahl { font-size: 1.25rem; white-space: nowrap; }
.kasse-daten { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: var(--a2) var(--a4); margin-right: 0; margin-bottom: 0; margin-left: 0; }
.kasse-daten:first-child { margin-top: 0; }
.kasse-daten dt { color: var(--text-leise); font-size: 0.9rem; }
.kasse-daten dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.kasse-daten .marke { margin-left: 0; }
/* Person in einer Listenzeile: Foto oder Initialen und Name in einer Zeile, zu lange Namen enden mit ... */
.kasse-person { display: inline-flex; align-items: center; gap: var(--a3); max-width: 100%; vertical-align: middle; color: inherit; text-decoration: none; }
.kasse-person-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Beim Ausmessen der Spalten (static/js/app.js) zählt der ganze Name */
.tabelle.messen .kasse-person-name { overflow: visible; }
/* Auswahl für die Lastschrift: Kästchen mittig neben dem Foto */
.tabelle .kasse-auswahl { align-items: center; max-width: 100%; }
.kasse-auswahl input { margin: 0; }
/* Aufzählung in Karten (Unterlagen für das Finanzamt) */
.kasse-punkte { padding-left: 1.25em; list-style: disc; }
.kasse-punkte li + li { margin-top: var(--a2); }
/* Links mit Zeichen (Beleg) in Listen ohne eigenen Innenabstand, damit alle Zeilen gleich hoch sind */
.kasse-seite .tabelle .knopf-text { padding: 0; }
/* Karten nebeneinander gleich hoch (Steuer) */
.kasse-gleich-hoch { align-items: stretch; }
.kasse-betrag { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; vertical-align: middle; }
.kasse-betrag .icon { width: 16px; height: 16px; color: var(--welle); }
.kasse-filter-feld select { min-width: 170px; }
.kasse-wahl select { width: 100%; min-width: 0; height: 44px; font-size: 0.9rem; }
/* In der Vorschau des Kontoauszugs: Auswahl so hoch wie eine Zeile; beim Ausmessen zählt der längste Eintrag */
.tabelle .kasse-wahl select { height: 36px; }
.tabelle.messen .kasse-wahl select { width: auto; min-width: max-content; }
/* Datei wählen: das Eingabefeld bleibt im Knopf, unsichtbar und ohne eigene Breite */
.kasse-datei-knopf { position: relative; overflow: hidden; flex: 1 1 220px; }
.feld .kasse-datei-knopf input { width: 1px; height: 1px; padding: 0; border: 0; }
.kasse-summe-zeile { color: var(--text-leise); }
.kasse-summe-zeile strong { color: var(--titel); }
.kasse-beleg-vorschau { display: flex; align-items: center; gap: var(--a3); padding: var(--a2); border-radius: var(--radius-klein); background: var(--eis); font-size: 0.9rem; overflow-wrap: anywhere; }
.kasse-beleg-vorschau img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; }
.kasse-beleg-gross img { width: 100%; max-height: 520px; object-fit: contain; border-radius: var(--radius-klein); background: var(--eis); }
.kasse-details summary { cursor: pointer; font-weight: 600; color: var(--akzent); }
.kasse-details[open] summary { margin-bottom: var(--a3); }
@media (max-width: 699px) {
    .kasse-kacheln { grid-template-columns: 1fr; }
    .tabelle td.art-wahl { display: block; text-align: left; }
    .tabelle td.art-wahl::before { display: block; margin-bottom: var(--a1); }
    /* Auswahl über Listen (Jahr, Kategorie, Bereich) am Handy gleich breit untereinander */
    .kasse-filter-feld { flex: 1 1 100%; }
    /* Spaltentitel vor dem Wert nie mitten im Wort umbrechen; lange Werte brechen stattdessen um */
    .kasse-daten { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .kasse-daten dd { margin-bottom: var(--a2); }
}
@media (min-width: 700px) {
    .kasse-kacheln { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}
/* Überblick: oben die drei Beitragszahlen, darunter Kontostand und Auslagen */
@media (min-width: 1200px) {
    .kasse-kacheln-fuenf { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .kasse-kacheln-fuenf > * { grid-column: span 2; }
    .kasse-kacheln-fuenf > :nth-child(n + 4) { grid-column: span 3; }
}
/* Briefe und Kassenbericht (Druckansicht) */
.kasse-brief > * + * { margin-top: var(--a4); }
.kasse-brief-neu { margin-top: var(--a7); padding-top: var(--a6); border-top: 2px dashed var(--linie); }
.kasse-absender { font-size: 0.72rem; color: var(--text-leise); }
.kasse-anschrift { min-height: 5.5em; line-height: 1.45; }
.kasse-ort-datum { text-align: right; }
.druck-blatt .kasse-zahl { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.druck-blatt .kasse-summe th, .druck-blatt .kasse-summe td { font-weight: 700; border-top: 2px solid var(--tief); }
.kasse-schreiblinie { border-bottom: 1px solid var(--text); }
.kasse-unterschriften { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--a7) var(--a6); padding-top: var(--a7); }
.kasse-unterschriften p { padding-top: var(--a2); border-top: 1px solid var(--text); font-size: 0.85rem; }
.kasse-anlage { font-size: 0.85rem; }
@media print {
    .kasse-nicht-drucken { display: none !important; }
    .kasse-brief-neu, .kasse-neue-seite { break-before: page; margin-top: 0; padding-top: 0; border: 0; }
}
/* ==== Ende Kasse ==== */

/* ==== Bereich Termine ==== */
/* Termine wie im Kalender: Monat kursiv, große Tageszahl mit Wochentag, jeder Termin eine Karte (ganz anklickbar) */
.termin-monat > * + * { margin-top: var(--a3); }
.termin-monat-titel { font-weight: 800; font-style: italic; text-transform: uppercase; font-size: 1.15rem; letter-spacing: 0.02em; color: var(--titel); }
.termin-monat-titel span { color: var(--text-leise); font-weight: 600; }
.termin-liste { display: grid; gap: var(--a3); }
.termin-eintrag {
    position: relative;
    display: grid;
    grid-template-columns: 60px minmax(0, 1fr) auto;
    gap: var(--a4);
    align-items: center;
    padding: var(--a4);
    border-radius: 18px;
    background: var(--flaeche);
    box-shadow: var(--schatten);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.termin-eintrag:hover { transform: translateY(-1px); box-shadow: 0 16px 36px rgba(7, 43, 78, 0.13); }
.karte .termin-eintrag { background: var(--eis); box-shadow: none; }
.termin-datum { display: grid; justify-items: center; align-content: center; gap: 2px; min-height: 66px; padding: var(--a2) 0; border-radius: 14px; background: var(--eis); color: var(--titel); line-height: 1; }
.karte .termin-datum { background: var(--flaeche); }
.termin-tag { font-size: 1.9rem; font-weight: 800; font-style: italic; }
.termin-wochentag { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--welle); }
.termin-inhalt { display: grid; gap: 6px; min-width: 0; }
.termin-titel { font-size: 1.05rem; font-weight: 700; line-height: 1.3; }
.termin-titel a { color: var(--titel); text-decoration: none; }
.termin-titel a::after { content: ''; position: absolute; inset: 0; border-radius: 18px; }
.termin-zeile { display: flex; flex-wrap: wrap; gap: 2px var(--a4); font-size: 0.88rem; color: var(--text-leise); }
.termin-zeile span { display: inline-flex; align-items: center; gap: 6px; }
.termin-zeile .icon { width: 16px; height: 16px; color: var(--welle); }
.termin-marken { display: flex; flex-wrap: wrap; gap: 6px; }
.termin-marken .marke, .wasser-pegel .marke { margin-left: 0; }
.termin-pfeil { color: var(--text-leise); }
.termin-knopf { position: relative; z-index: 1; }
.termin-abgesagt .termin-titel a { color: var(--text-leise); text-decoration: line-through; }
.termin-abgesagt .termin-tag { color: var(--text-leise); }
@media (max-width: 699px) {
    .termin-eintrag { grid-template-columns: 54px minmax(0, 1fr); gap: var(--a3); }
    .termin-pfeil { display: none; }
    .termin-knopf { grid-column: 2; }
}

/* Termin: Fakten, Plätze als Balken, Text mit Absätzen, Schichten, Fahrtleiter-Karten, Anleitung zum Kalender */
.termin-plaetze { flex-wrap: wrap; }
/* Bricht die Marke um, bleibt sie rechts wie die anderen Angaben der Liste */
@media (min-width: 700px) { .termin-plaetze .liste-neben { margin-left: auto; } }
.termin-balken { flex: 1 0 100%; width: 100%; height: 8px; margin-top: 6px; border: 0; border-radius: 999px; background: var(--eis); overflow: hidden; -webkit-appearance: none; appearance: none; }
.termin-balken::-webkit-progress-bar { background: var(--eis); border-radius: 999px; }
.termin-balken::-webkit-progress-value { background: var(--verlauf-knopf); border-radius: 999px; }
.termin-balken::-moz-progress-bar { background: var(--verlauf-knopf); border-radius: 999px; }
.termin-text > * + * { margin-top: var(--a3); }
.termin-zeilen > li { display: flex; flex-wrap: wrap; align-items: center; gap: var(--a3); padding: var(--a3) 0; border-top: 1px solid var(--linie); }
.termin-zeilen > li:first-child { border-top: 0; }
.termin-zeile-text { flex: 1 1 220px; display: grid; gap: 2px; min-width: 0; line-height: 1.4; }
.termin-zeile-text .liste-neben { text-align: left; }
.termin-schicht-neu { padding-top: var(--a4); border-top: 1px solid var(--linie); }
.termin-fahrer-kopf { display: flex; align-items: center; gap: var(--a3); }
.termin-fahrer-kopf h3 { flex: 1; min-width: 0; }
.termin-jetski, .termin-notfall { display: flex; align-items: flex-start; gap: var(--a2); }
.termin-jetski .icon, .termin-notfall .icon { margin-top: 3px; color: var(--welle); }
.termin-fahrer .knopf-gross { justify-content: flex-start; }
/* Tooltips der Icon-Knöpfe am rechten Rand sollen die Seite am Handy nicht verbreitern */
.termin-seite .karte, .termin-seite .seitenkopf, .termin-fakten, .galerie-raster { overflow-x: clip; }
.termin-anleitungen { align-items: stretch; }
.termin-anleitung ol { margin-bottom: 0; padding-left: 1.3em; display: grid; gap: var(--a2); }
.termin-anleitung li::marker { color: var(--welle); font-weight: 700; }
/* Titel aus Eingaben (Termine, Alben) können lange Wörter haben: am Handy trennen statt die Seite verbreitern */
.termin-seite .seitenkopf .titel-gross { overflow-wrap: anywhere; -webkit-hyphens: auto; hyphens: auto; }
.termin-druck-tabelle { overflow-x: auto; }

/* Wasser: Pegel groß, daneben Luft, Wind, Böen, Wetter als ruhige Kacheln. Die Aufteilung richtet sich nach der Breite der
   Karte, nicht des Bildschirms: Auf der Startseite steht sie in halber Breite, in der Fahrtleiter-Ansicht über die ganze. */
.wasser-karte { container-type: inline-size; }
.wasser-raster { display: grid; gap: var(--a4); align-items: center; }
.wasser-pegel { display: grid; justify-items: start; gap: var(--a2); }
.wasser-zahl { font-size: 3.4rem; font-weight: 800; font-style: italic; line-height: 1; letter-spacing: -0.02em; color: var(--titel); }
.wasser-zahl span { font-size: 1.3rem; letter-spacing: 0; color: var(--text-leise); }
.wasser-werte { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--a2); }
.wasser-werte .kachel { padding: var(--a3); column-gap: var(--a2); background: var(--eis); box-shadow: none; }
.wasser-werte .kachel-zeichen { width: 36px; height: 36px; border-radius: 12px; background: var(--flaeche); }
.wasser-werte .kachel-zahl { font-size: 1.1rem; }
.wasser-quelle { font-size: 0.75rem; color: var(--text-leise); }
@container (min-width: 620px) {
    .wasser-raster { grid-template-columns: minmax(190px, 1fr) minmax(0, 2fr); }
}
@container (min-width: 1000px) {
    .wasser-raster { grid-template-columns: minmax(220px, 1fr) minmax(0, 3fr); }
    .wasser-werte { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
/* Unterzeile im Seitenkopf: Wann und Art nebeneinander, am Handy die Marke bündig darunter */
.termin-unterzeile { display: flex; flex-wrap: wrap; align-items: center; gap: var(--a1) var(--a3); }
/* Auf dem Seitengrund hätte die Marke dieselbe Farbe wie der Grund: hier auf der Fläche, damit sie als Marke zu sehen ist */
.termin-unterzeile .marke { margin-left: 0; }
/* Fahrtleiter-Karte: Beschriftung und ihr Knopf gehören zusammen, zwischen den Gruppen mehr Luft */
.termin-fahrer > .termin-jetski + *, .termin-fahrer > .knopf-gross + * { margin-top: var(--a4); }
/* Jetski-Liste ohne Zeichen vorn: der Stift steht auf der Höhe der ersten Textzeile */
.jetski-liste .knopf-icon { margin-top: -9px; }
/* Inventar: Notiz am PC als Tooltip am Namen mit Info-Zeichen (der Text bleibt für Vorleser und Suche im HTML), am Handy darunter */
.inventar-notiz-zeichen { display: inline-grid; margin-left: 6px; color: var(--text-leise); vertical-align: -2px; }
.inventar-notiz-zeichen .icon { width: 15px; height: 15px; }
.inventar-notiz { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Am Handy: drei Zahlen untereinander statt zwei und eine allein */
@media (max-width: 699px) {
    .termin-kacheln { grid-template-columns: minmax(0, 1fr); }
    .inventar-notiz-zeichen { display: none; }
    .inventar-notiz { position: static; display: block; width: auto; height: auto; margin-top: 2px; overflow: visible; clip: auto; white-space: normal;
        font-size: 0.9rem; font-weight: 400; color: var(--text-leise); }
}

/* Galerie: Alben als Kacheln mit Titelbild, Fotos als dichtes Raster wie in der Foto-App */
.galerie-alben { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--a4); }
.galerie-album { display: grid; grid-template-columns: minmax(0, 1fr); overflow: hidden; border-radius: var(--radius); background: var(--flaeche); box-shadow: var(--schatten); color: var(--titel); text-decoration: none; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.galerie-album:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(7, 43, 78, 0.13); }
.galerie-titelbild { display: grid; place-items: center; aspect-ratio: 4 / 3; background: var(--verlauf); color: var(--weiss); }
.galerie-titelbild img { width: 100%; height: 100%; object-fit: cover; }
.galerie-titelbild .icon { width: 40px; height: 40px; opacity: 0.7; }
.galerie-album-text { display: grid; gap: 2px; padding: var(--a3) var(--a4) var(--a4); line-height: 1.35; overflow-wrap: anywhere; -webkit-hyphens: auto; hyphens: auto; }
.galerie-album-text span { font-size: 0.85rem; color: var(--text-leise); }
.galerie-raster { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.galerie-foto { position: relative; margin: 0; }
.galerie-foto a { display: block; overflow: hidden; border-radius: 10px; background: var(--hellblau); }
.galerie-foto img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform 0.3s ease; }
.galerie-foto a:hover img { transform: scale(1.04); }
.galerie-foto .inline-form { position: absolute; top: 6px; right: 6px; }
.galerie-foto .knopf-icon { width: 34px; height: 34px; background: color-mix(in srgb, var(--weiss) 92%, transparent); color: var(--rot); }
@media (min-width: 700px) {
    .galerie-raster { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: var(--a2); }
}
@media (min-width: 900px) {
    .galerie-alben { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--a5); }
}
/* ==== Ende Termine ==== */


/* ================================================================ Dunkler Modus (folgt der Einstellung des Handys)
   Nur die Farbrollen wechseln; Verläufe, Wellen und Knöpfe bleiben. Druckseiten bleiben hell. */

.logo-bild { display: block; }
.anmeldung-logo img { width: 100%; height: auto; }
@media (prefers-color-scheme: dark) {
    :root {
        color-scheme: dark;
        --flaeche: #0e2740;
        --grund: #06182a;
        --titel: #eaf4fb;
        --akzent: #8fd0f0;
        --text: #d6e5f1;
        --text-leise: #93abc0;
        --linie: #1e3f5e;
        --eis: #143453;
        --kopf: rgba(9, 29, 49, 0.9);
        --zeile-hover: #12304d;
        --gruen-flaeche: #0f3a2b;
        --gruen-text: #74d6a6;
        --rot-flaeche: #3d1818;
        --fehler-text: #ffb4ab;
        --warn-text: #f3b77f;
        --warn-flaeche: #3a2614;
        --aus-flaeche: #1a2c3e;
        --platzhalter: #6f879c;
        --pfeil: #48667f;
        --schatten: 0 12px 32px rgba(0, 0, 0, 0.35), 0 2px 6px rgba(0, 0, 0, 0.25);
    }
    a { color: var(--gischt); }
    .marke-live { color: var(--fehler-text); }
    .knopf-text { color: var(--gischt); }
    .etikett:not(.etikett-hell) { color: var(--gischt); }
    .tabelle td:first-child a { color: var(--titel); }
    /* Druck und Mails bleiben hell */
    body.druck-seite {
        color-scheme: light;
        --flaeche: #ffffff;
        --grund: #dfe8ef;
        --titel: #072b4e;
        --text: #0b2239;
        --text-leise: #5b7084;
        --linie: #d9e5ee;
        --eis: #eef6fb;
        --akzent: #0c5890;
        --kopf: rgba(255, 255, 255, 0.92);
        --zeile-hover: #f7fbfe;
        --gruen-flaeche: #e7f6ee;
        --gruen-text: #17744a;
        --rot-flaeche: #fdecea;
        --fehler-text: #8e2219;
        --warn-text: #9a4a12;
        --warn-flaeche: #fdf1e6;
        --aus-flaeche: #eef0f2;
        --platzhalter: #9aabbb;
        --pfeil: #b4c3d0;
        --schatten: 0 12px 32px rgba(7, 43, 78, 0.09), 0 2px 6px rgba(7, 43, 78, 0.05);
    }
    body.druck-seite a, body.druck-seite .knopf-text, body.druck-seite .etikett:not(.etikett-hell) { color: var(--akzent); }
    body.druck-seite .tabelle td:first-child a { color: var(--titel); }
}
