/*
 * Das Stylesheet des Schulportals — „Wassersport einfach lernen“.
 *
 * Farben aus der Marke: das Orange des Logos (#FF7600) für alles, was
 * man anklickt, das Blau der App (#12496E) für Leiste und Überschriften,
 * dazu helle, wasserblaue Flächen. Ohne Bauschritt und ohne fremde
 * Quellen: Das Altportal lud Metronic, Bootstrap, vier jQuery-Fassungen
 * und Schriften von drei fremden Servern.
 *
 * Keine Farbe steht im Markup — die Sicherheitsrichtlinie lässt keine
 * style-Attribute zu, also regelt alles diese Datei.
 */

:root {
    --marke: #ff7600;
    --marke-dunkel: #d95f00;
    --marke-hell: #fff1e5;
    --meer: #12496e;
    --meer-tief: #0b304a;
    --meer-mittel: #1d6a9a;
    --meer-hell: #e7f1f8;
    --gischt: #f3f7fa;
    --text: #1b2733;
    --gedaempft: #5a6b7b;
    --rahmen: #dbe4ec;
    --flaeche: #ffffff;
    --gut: #1b7f3b;
    --gut-hell: #e3f4e8;
    --warnung: #9a5b00;
    --warnung-hell: #fff4e0;
    --fehler: #b3261e;
    --fehler-hell: #fbe7e5;
    --schatten: 0 1px 2px rgba(11, 48, 74, 0.06), 0 4px 16px rgba(11, 48, 74, 0.06);
    --rund: 14px;
    --leiste: 16.5rem;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; }

body {
    margin: 0;
    font: 15.5px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    background: var(--gischt);
}

a { color: var(--meer-mittel); text-underline-offset: 2px; }
a:hover { color: var(--marke-dunkel); }

h1, h2, h3 { color: var(--meer-tief); line-height: 1.25; }
h2 { font-size: 1.05rem; margin: 0 0 0.9rem; display: flex; align-items: center; gap: 0.5rem; }
h3 { font-size: 0.95rem; margin: 1.2rem 0 0.5rem; }

.symbol { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em; }

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

:focus-visible { outline: 3px solid rgba(255, 118, 0, 0.55); outline-offset: 2px; }

/* ------------------------------------------------------------------ */
/* Seitenleiste                                                        */
/* ------------------------------------------------------------------ */

.menue-schalter { position: absolute; opacity: 0; pointer-events: none; }

.leiste {
    position: fixed; inset: 0 auto 0 0; z-index: 20;
    width: var(--leiste);
    display: flex; flex-direction: column;
    background: linear-gradient(180deg, var(--meer) 0%, var(--meer-tief) 100%);
    color: #dbe9f3;
    overflow-y: auto;
}

.marke {
    display: block;
    padding: 1.4rem 1.3rem 1.1rem;
    text-decoration: none;
}
.marke img { display: block; width: 100%; max-width: 13rem; height: auto; }
.marke-zusatz {
    display: inline-block; margin-top: 0.55rem;
    font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
    color: #9cc4de;
}

.menue { display: flex; flex-direction: column; padding: 0.3rem 0.75rem 1.5rem; }
.menue-gruppe {
    margin: 1.1rem 0.6rem 0.35rem;
    font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
    color: #7fa8c4;
}
.menue a {
    position: relative;
    display: flex; align-items: center; gap: 0.7rem;
    padding: 0.55rem 0.7rem;
    border-radius: 10px;
    color: #dbe9f3; text-decoration: none; font-size: 0.93rem;
    transition: background 0.15s, color 0.15s;
}
.menue a .symbol { opacity: 0.8; }
.menue a:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.menue a.aktiv { background: rgba(255, 255, 255, 0.13); color: #fff; font-weight: 600; }
.menue a.aktiv::before {
    content: ""; position: absolute; left: -0.75rem; top: 0.45rem; bottom: 0.45rem;
    width: 4px; border-radius: 0 4px 4px 0; background: var(--marke);
}
.menue a.aktiv .symbol { opacity: 1; color: var(--marke); }

/* Wellen am Fuß der Leiste */
.leiste-welle {
    margin-top: auto; height: 90px; flex: none;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 90' preserveAspectRatio='none'%3E%3Cpath d='M0 40 C 60 20 120 60 200 40 S 340 20 400 40 V90 H0z' fill='%23ffffff' fill-opacity='0.05'/%3E%3Cpath d='M0 60 C 80 40 140 80 220 60 S 350 45 400 58 V90 H0z' fill='%23ffffff' fill-opacity='0.07'/%3E%3C/svg%3E")
        bottom / 100% 100% no-repeat;
}

/* ------------------------------------------------------------------ */
/* Bereich rechts: Kopf, Inhalt, Fuß                                   */
/* ------------------------------------------------------------------ */

.bereich { margin-left: var(--leiste); min-height: 100vh; display: flex; flex-direction: column; }

.kopf {
    position: sticky; top: 0; z-index: 10;
    display: flex; align-items: center; gap: 1rem;
    min-height: 4.2rem; padding: 0.7rem 2rem;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(1.4) blur(8px);
    border-bottom: 1px solid var(--rahmen);
}
.kopf h1 { flex: 1; margin: 0; font-size: 1.35rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menue-knopf { display: none; cursor: pointer; padding: 0.4rem; border-radius: 8px; color: var(--meer); }
.menue-knopf .symbol { width: 1.5rem; height: 1.5rem; }

.konto { display: flex; align-items: center; gap: 0.8rem; font-size: 0.9rem; }
.konto form { margin: 0; }
.konto-name { display: flex; align-items: center; gap: 0.55rem; color: var(--meer-tief); font-weight: 600; }
.konto-zeichen {
    display: grid; place-items: center;
    width: 2.1rem; height: 2.1rem; border-radius: 50%;
    background: var(--marke); color: #fff; font-weight: 700;
}
.vertretung {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.3rem 0.75rem; border-radius: 999px;
    background: var(--warnung-hell); color: var(--warnung); font-weight: 600;
}

.inhalt { flex: 1; width: 100%; max-width: 76rem; padding: 1.75rem 2rem 2.5rem; }
.fuss { padding: 1.2rem 2rem 1.6rem; font-size: 0.82rem; color: var(--gedaempft); }

/* ------------------------------------------------------------------ */
/* Karten, Kacheln, Raster                                             */
/* ------------------------------------------------------------------ */

.karte {
    margin-bottom: 1.25rem; padding: 1.3rem 1.4rem;
    border-radius: var(--rund); background: var(--flaeche);
    border: 1px solid var(--rahmen); box-shadow: var(--schatten);
}
.karte > :last-child { margin-bottom: 0; }
.spalten { display: grid; grid-template-columns: repeat(auto-fit, minmax(21rem, 1fr)); gap: 1.25rem; align-items: start; }
.spalten > .karte { margin-bottom: 0; }
.spalten + .karte, .spalten + .spalten { margin-top: 1.25rem; }
/* Tabellen brauchen Breite: lieber zwei Karten nebeneinander als drei
   mit abgeschnittenen Spalten. */
.spalten-breit { grid-template-columns: repeat(auto-fit, minmax(27rem, 1fr)); }

.kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 1.1rem; margin-bottom: 1.5rem; }
.kachel {
    position: relative; overflow: hidden;
    display: flex; flex-direction: column; gap: 0.3rem;
    padding: 1.15rem 1.25rem 1.2rem;
    border-radius: var(--rund); background: var(--flaeche);
    border: 1px solid var(--rahmen); box-shadow: var(--schatten);
}
.kachel::after {
    content: ""; position: absolute; right: -1.2rem; bottom: -1.6rem;
    width: 6rem; height: 6rem; border-radius: 50%;
    background: var(--meer-hell);
}
.kachel > * { position: relative; z-index: 1; }
.kachel.achtung { border-color: #f3c48f; background: var(--marke-hell); }
.kachel.achtung::after { background: #ffe2c7; }
.zahl { font-size: 2.1rem; font-weight: 700; line-height: 1; color: var(--meer); }
.kachel.achtung .zahl { color: var(--marke-dunkel); }
.beschriftung { color: var(--gedaempft); font-size: 0.88rem; }

.leer { color: var(--gedaempft); }

/* ------------------------------------------------------------------ */
/* Tabellen                                                            */
/* ------------------------------------------------------------------ */

table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
th, td { text-align: left; padding: 0.6rem 0.6rem; border-bottom: 1px solid #edf1f5; vertical-align: middle; }
thead th {
    font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em;
    color: var(--gedaempft); background: var(--gischt); border-bottom: 1px solid var(--rahmen);
}
thead th:first-child { border-radius: 8px 0 0 8px; }
thead th:last-child { border-radius: 0 8px 8px 0; }
tbody tr:hover td { background: #f8fbfd; }
tbody tr:last-child td { border-bottom: none; }
.rechts { text-align: right; white-space: nowrap; }
.einfarbig { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.88em; }
.schwach { color: var(--fehler); font-weight: 600; }
.stark { color: var(--gut); font-weight: 600; }

/* ------------------------------------------------------------------ */
/* Formulare und Knöpfe                                                */
/* ------------------------------------------------------------------ */

label { display: block; margin: 0.85rem 0 0.3rem; font-size: 0.86rem; font-weight: 600; color: var(--meer-tief); }
input[type=text], input[type=password], input[type=email], input[type=number], input[type=search],
input[type=date], input[type=tel], input[type=url], input:not([type]), select, textarea {
    width: 100%; padding: 0.62rem 0.75rem;
    border: 1px solid #c9d6e1; border-radius: 10px;
    font: inherit; color: var(--text); background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, select:focus, textarea:focus {
    outline: none; border-color: var(--meer-mittel);
    box-shadow: 0 0 0 3px rgba(29, 106, 154, 0.18);
}
textarea { min-height: 7rem; resize: vertical; }
input[type=color] {
    width: 100%; height: 2.6rem; padding: 3px;
    border: 1px solid #c9d6e1; border-radius: 10px; background: #fff; cursor: pointer;
}
input[type=checkbox], input[type=radio] { width: 1.1rem; height: 1.1rem; accent-color: var(--marke); }
/* Das Kreuzchen, das Safari und Chrome in Suchfelder setzen, sitzt sonst
   unter dem Lupensymbol und springt beim Tippen. */
input[type=search]::-webkit-search-cancel-button { margin-right: 0.1rem; }
input[type=file] { width: 100%; padding: 0.4rem; border: 1px dashed #b9cad8; border-radius: 10px; background: var(--gischt); font: inherit; font-size: 0.9rem; }
input[type=file]::file-selector-button {
    margin-right: 0.8rem; padding: 0.45rem 0.9rem; border: 0; border-radius: 999px;
    background: var(--meer); color: #fff; font: inherit; font-weight: 600; cursor: pointer;
}

.knopf, .knopf-klein, .knopf-leise {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
    border: 0; font: inherit; cursor: pointer; text-decoration: none;
    transition: background 0.15s, box-shadow 0.15s, transform 0.05s;
}
.knopf {
    margin-top: 1.2rem; padding: 0.7rem 1.4rem;
    border-radius: 999px; background: var(--marke); color: #fff; font-weight: 700;
    box-shadow: 0 3px 10px rgba(255, 118, 0, 0.28);
}
.knopf:hover { background: var(--marke-dunkel); color: #fff; }
.knopf:active, .knopf-klein:active { transform: translateY(1px); }
.knopf-breit { width: 100%; }
.knopf-klein {
    padding: 0.38rem 0.85rem; border-radius: 999px; font-size: 0.84rem; font-weight: 600;
    background: var(--meer); color: #fff;
}
.knopf-klein:hover { background: var(--meer-tief); color: #fff; }
.knopf-klein.gefahr { background: #fff; color: var(--fehler); box-shadow: inset 0 0 0 1px #e8b4b0; }
.knopf-klein.gefahr:hover { background: var(--fehler-hell); }
.knopf-leise {
    padding: 0.45rem 0.7rem; border-radius: 999px; background: transparent;
    color: var(--gedaempft); font-size: 0.88rem;
}
.knopf-leise:hover { background: var(--gischt); color: var(--meer-tief); }

.ankreuz { display: flex; align-items: center; gap: 0.55rem; margin-top: 0.7rem; font-weight: 500; color: var(--text); }
.ankreuz input { width: auto; flex: none; }

.suche { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 0.7rem; margin-bottom: 1.25rem; }
.suche label { margin: 0; }
.suche > div, .suche input, .suche select { min-width: 16rem; }
.suche .knopf-klein { padding: 0.62rem 1.1rem; }

.zeile { display: flex; align-items: flex-end; gap: 0.9rem; flex-wrap: wrap; }
.zeile > div { flex: 1; min-width: 12rem; }
.zeile label { margin-top: 0; }
.zeile .knopf { margin-top: 0; }

.aktionen { display: flex; gap: 0.4rem; justify-content: flex-end; flex-wrap: wrap; }
.aktionen form { margin: 0; }

.wechsel { margin: 0 0 1.1rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.wechsel a {
    display: inline-flex; align-items: center; gap: 0.35rem;
    padding: 0.35rem 0.9rem; border-radius: 999px;
    background: var(--meer-hell); color: var(--meer); font-size: 0.86rem; font-weight: 600; text-decoration: none;
}
.wechsel a:hover { background: #d6e7f3; }

.hinweis { margin-top: 0.9rem; font-size: 0.86rem; color: var(--gedaempft); }

/* ------------------------------------------------------------------ */
/* Meldungen                                                           */
/* ------------------------------------------------------------------ */

.meldung {
    display: flex; gap: 0.6rem; align-items: flex-start;
    margin: 0 0 1.25rem; padding: 0.8rem 1rem;
    border-radius: 12px; border: 1px solid transparent; font-weight: 500;
}
.meldung.hinweis { background: var(--meer-hell); color: var(--meer-tief); border-color: #c8def0; font-size: 1em; }
.meldung.gut { background: var(--gut-hell); color: var(--gut); border-color: #bfe3ca; }
.meldung.fehler { background: var(--fehler-hell); color: var(--fehler); border-color: #efc4c0; }

/* ------------------------------------------------------------------ */
/* Übersicht: Neuigkeiten, Protokoll                                   */
/* ------------------------------------------------------------------ */

.news { padding: 0.75rem 0.9rem; border-radius: 10px; background: var(--gischt); }
.news + .news { margin-top: 0.6rem; }
.news time, .protokoll time { display: block; margin-bottom: 0.15rem; color: var(--gedaempft); font-size: 0.78rem; font-weight: 600; }
.protokoll { list-style: none; margin: 0; padding: 0; }
.protokoll li { position: relative; padding: 0 0 0.8rem 1.1rem; border-left: 2px solid var(--meer-hell); margin-left: 0.3rem; }
.protokoll li::before {
    content: ""; position: absolute; left: -0.36rem; top: 0.3rem;
    width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--meer-mittel);
}
.protokoll li:last-child { padding-bottom: 0; }

/* ------------------------------------------------------------------ */
/* Inhalte, Statistik, Gestaltung, Handel                              */
/* ------------------------------------------------------------------ */

.eingerueckt { padding-left: 1.8rem; }
.textform { padding: 0.9rem 0; border-top: 1px solid var(--rahmen); }

.diagramm { width: 100%; height: auto; max-height: 12rem; }
.diagramm rect { fill: var(--meer-mittel); }
.diagramm:not(.verlauf) rect:last-of-type { fill: var(--marke); }
.diagramm text { fill: var(--gedaempft); font-size: 10px; }
.verlauf rect.gut { fill: var(--gut); }
.verlauf rect.schwach { fill: var(--marke); }
.verlauf .schwelle { stroke: var(--gedaempft); stroke-dasharray: 3 3; stroke-width: 1; }
.verlauf .grundlinie { stroke: var(--rahmen); stroke-width: 1; }

/* Die Vorschau nimmt die Farben der Schule aus /gestaltung/stil.css. */
/* Deine App: links die Einstellungen, rechts das Gerät. */
.kursartwahl { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.1rem; }
.kursartwahl a { padding: 0.4rem 0.9rem; border-radius: 999px; border: 1px solid var(--rahmen);
    background: var(--flaeche); font-size: 0.88rem; font-weight: 600; color: var(--meer-tief); text-decoration: none; }
.kursartwahl a.aktiv { background: var(--meer); border-color: var(--meer); color: #fff; }
.geraete-wahl { display: flex; justify-content: center; gap: 0.3rem; margin-bottom: 0.7rem; }
.geraet-schalter { margin: 0; cursor: pointer; }
.geraet-schalter input { position: absolute; opacity: 0; }
.geraet-schalter span { display: inline-block; padding: 0.3rem 0.8rem; border-radius: 999px;
    border: 1px solid var(--rahmen); font-size: 0.82rem; font-weight: 600; color: var(--gedaempft); }
.geraet-schalter input:checked + span { background: var(--meer-hell); border-color: var(--meer-mittel); color: var(--meer-tief); }
.geraet-schalter input:focus-visible + span { outline: 3px solid rgba(255, 118, 0, 0.55); }
.app-rahmen { padding: 0; overflow: hidden; border: 10px solid #1b2733; border-radius: 34px;
    background: var(--background, #f4f6f9); box-shadow: 0 12px 34px rgba(11, 48, 74, 0.25);
    display: flex; flex-direction: column; min-height: 32rem; }
/* Tablet: breiter, niedriger — dieselbe App, mehr Platz. */
.app-bereich:has(input[value=tablet]:checked) { grid-template-columns: minmax(0, 1fr) 34rem; }
.vorschau-spalte:has(input[value=tablet]:checked) .app-rahmen { min-height: 26rem; border-radius: 22px; border-width: 14px; }
.vorschau-spalte:has(input[value=tablet]:checked) .app-schirm { padding: 1.3rem 1.6rem; }
.vorschau-spalte:has(input[value=tablet]:checked) .app-kacheln { grid-template-columns: repeat(3, 1fr); }
.vorschau-spalte:has(input[value=tablet]:checked) .app-texte { columns: 2; column-gap: 1.2rem; }
.app-leer { margin: 2rem 0; text-align: center; font-size: 0.85rem; color: var(--gedaempft); }
.app-kacheln { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem; margin-top: 0.8rem; }
.app-kacheln span { padding: 0.9rem 0.6rem; border-radius: 12px; background: #fff; border: 1px solid var(--rahmen);
    text-align: center; font-size: 0.78rem; font-weight: 600; color: #1d2733; }
.app-logo-gross { display: flex; justify-content: center; margin-bottom: 0.7rem; }
.app-logo-gross img { max-height: 3.2rem; max-width: 70%; }
.app-feld { margin-top: 0.8rem; padding: 0.7rem 0.8rem; border-radius: 10px; background: #fff;
    border: 1px dashed var(--rahmen); font-size: 0.8rem; color: var(--gedaempft); }
.app-texte article { padding: 0.7rem 0.8rem; margin-bottom: 0.5rem; border-radius: 10px; background: #fff;
    border: 1px solid var(--rahmen); break-inside: avoid; }
.app-texte h4 { margin: 0 0 0.25rem; font-size: 0.85rem; color: #1d2733; }
.app-texte p { margin: 0; font-size: 0.76rem; color: var(--gedaempft); }
.app-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.app-block { padding: 0.6rem 0.8rem; border-radius: 10px; background: #fff; border: 1px solid var(--rahmen); font-size: 0.82rem; color: #1d2733; }
.app-block > small { color: var(--gedaempft); margin-left: 0.4rem; }
.app-block ul { list-style: none; margin: 0.45rem 0 0; padding: 0 0 0 0.7rem; border-left: 2px solid var(--meer-hell); display: grid; gap: 0.3rem; }
.app-block li { font-size: 0.78rem; }
.app-block li small { color: var(--gedaempft); margin-left: 0.3rem; }
.app-alles { font-weight: 600; color: var(--meer-mittel); }
.app-merkmal { color: var(--meer-mittel); font-weight: 600; }
.app-fremd { opacity: 0.7; }

/* Zu lange Namen kürzen statt die Zeile umzubrechen. Der ganze Text
   steht im title-Attribut und erscheint beim Zeigen. */
.kuerzen-breit { max-width: 32rem; }
.kuerzen { display: inline-block; max-width: 14rem; overflow: hidden; text-overflow: ellipsis;
    white-space: nowrap; vertical-align: bottom; }

/* Listen: ruhige Zebrastreifen, Zahlen rechts, Zeile unter dem Zeiger */
.liste { width: 100%; }
.liste tbody tr:nth-child(even) { background: var(--gischt); }
.liste tbody tr:hover { background: var(--meer-hell); }
.liste td, .liste th { vertical-align: middle; }
/* Eine Zeile bleibt eine Zeile: Nichts bricht um, Zahlen und Knöpfe
   stehen auf derselben Höhe wie der Name. */
.liste.kompakt td, .liste.kompakt th { padding: 0.4rem 0.6rem; white-space: nowrap; }
.liste.kompakt td small { display: inline; margin-left: 0.25rem; }
.liste.kompakt .aktionen { flex-wrap: nowrap; }
.liste.kompakt .aktionen .knopf-klein { padding: 0.3rem 0.55rem; }
.liste.kompakt .aktionen svg { width: 1rem; height: 1rem; }
.liste small { display: block; font-size: 0.78rem; }
.liste .schwach { color: var(--gedaempft); }
.zeile-gewaehlt { background: var(--marke-hell) !important; }
.balken { display: block; width: 100%; max-width: 9rem; height: 0.5rem; border-radius: 999px;
    background: var(--meer-hell); overflow: hidden; }
.balken-fuellung { display: block; height: 100%; background: var(--meer-mittel); }
.fuellung-0 { width: 0%; }
.fuellung-5 { width: 5%; }
.fuellung-10 { width: 10%; }
.fuellung-15 { width: 15%; }
.fuellung-20 { width: 20%; }
.fuellung-25 { width: 25%; }
.fuellung-30 { width: 30%; }
.fuellung-35 { width: 35%; }
.fuellung-40 { width: 40%; }
.fuellung-45 { width: 45%; }
.fuellung-50 { width: 50%; }
.fuellung-55 { width: 55%; }
.fuellung-60 { width: 60%; }
.fuellung-65 { width: 65%; }
.fuellung-70 { width: 70%; }
.fuellung-75 { width: 75%; }
.fuellung-80 { width: 80%; }
.fuellung-85 { width: 85%; }
.fuellung-90 { width: 90%; }
.fuellung-95 { width: 95%; }
.fuellung-100 { width: 100%; }
.merkmal-spaet { background: var(--fehler-hell); color: var(--fehler); }
.merkmal-ruhig { background: var(--gischt); color: var(--gedaempft); }

/* Kennzahlen über einer Tabelle */
.kennzahlen { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 1rem; margin-bottom: 1.25rem; }
.kennzahl { padding: 1rem 1.1rem; border-radius: var(--rund); background: var(--flaeche);
    border: 1px solid var(--rahmen); box-shadow: var(--schatten); }
.kennzahl-wert { display: block; font-size: 1.9rem; font-weight: 700; line-height: 1.1; color: var(--meer-tief); }
.kennzahl-name { font-size: 0.85rem; color: var(--gedaempft); }
.kennzahl-warnung .kennzahl-wert { color: var(--fehler); }
.wert-gut { color: var(--gut); font-weight: 700; }
.wert-leer { color: var(--fehler); font-weight: 700; }
.tachos { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1rem; margin-bottom: 0.8rem; }
.tacho-karte { margin: 0; padding: 1rem 1rem 0.8rem; text-align: center; }
.tacho-karte h2 { margin: 0 0 0.3rem; font-size: 0.95rem; }
.tacho { display: block; width: 100%; max-width: 11rem; height: auto; margin: 0 auto; }
.tacho-fuss { margin: 0.2rem 0 0; font-size: 0.82rem; color: var(--gedaempft); }
.tachos-fuss { margin: 0 0 1.4rem; }
.gruppenstand { font-size: 0.88rem; font-weight: 600; color: var(--meer-tief); }
.gruppenstand.stark { color: var(--gut); }
.gruppenstand.schwach { color: var(--fehler); }
.liste .balken { display: inline-block; width: 5rem; margin-right: 0.5rem; vertical-align: middle; }
.zeile-still { opacity: 0.55; }
.zeilen-knoepfe { display: flex; flex-wrap: wrap; gap: 0.3rem; justify-content: flex-end; }
.zeilen-knoepfe form { margin: 0; }
.spalten-eng { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 0.4rem 1rem; margin-bottom: 0.6rem; }
.spalten-eng input, .spalten-eng select { margin-bottom: 0.2rem; }

/* Formulare, die erst auf Verlangen erscheinen: Der Knopf springt auf
   die Kennung der Karte, und :target klappt sie auf. Das braucht kein
   JavaScript — und nach dem Speichern ist sie wieder zu. */
.neuer-gutschein, .aufklappbar { display: none; }
.neuer-gutschein:target, .aufklappbar:target { display: block; }
.aufklappbar .zeile { align-items: flex-end; }
.aufklappbar .knopf, .aufklappbar .knopf-leise { margin: 0; }
.neuer-gutschein label { margin-top: 0; }
/* Alles in einer Zeile, jedes Feld so breit, wie sein Inhalt verlangt.
   Wird es zu eng, bricht nur um, was nicht mehr passt. */
.gutschein-zeile { display: flex; flex-wrap: wrap; gap: 0.5rem 0.9rem; margin-bottom: 0.9rem; }
.gutschein-zeile > div { display: flex; flex-direction: column; }
.gutschein-zeile input, .gutschein-zeile select { margin: 0; }
.gutschein-zeile .feld-code { flex: 1 1 10rem; }
.gutschein-zeile .feld-art { flex: 0 1 8rem; }
.gutschein-zeile .feld-wert { flex: 0 1 6rem; }
.gutschein-zeile .feld-schule { flex: 1 1 13rem; }
.gutschein-zeile .feld-bis { flex: 0 1 10rem; }
.gutschein-zeile .feld-max { flex: 0 1 8rem; }

/* Tabellen mit Kopfleiste, Suche und Blättern */
.tabellenkarte { padding-bottom: 0.9rem; }
.tabellenkopf { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
    gap: 0.8rem 1.2rem; margin-bottom: 0.9rem; }
.tabellentitel { flex: 0 1 auto; }
.tabellentitel h2 { margin: 0; }
.tabellentitel p { margin: 0.15rem 0 0; font-size: 0.85rem; }
/* Die Werkzeuge füllen den Rest der Zeile; die Suche nimmt davon, was
   übrig bleibt, und rutscht erst bei echter Enge in die nächste Zeile. */
.tabellenwerkzeuge { flex: 1 1 20rem; display: flex; flex-wrap: wrap; align-items: center;
    justify-content: flex-end; gap: 0.5rem; }
.tabellenwerkzeuge .knopf, .tabellenwerkzeuge .knopf-leise { margin: 0; flex: none; }
.tabellensuche { position: relative; flex: 1 1 13rem; max-width: 26rem; display: flex; align-items: center; margin: 0; }
.tabellensuche svg { position: absolute; left: 0.7rem; width: 1.05rem; height: 1.05rem; color: var(--gedaempft); pointer-events: none; }
.tabellensuche input { margin: 0; padding-left: 2.3rem; width: 100%; }
.tabellengroesse { margin: 0; }
.tabellengroesse select { margin: 0; width: auto; }
.tabellengroesse[hidden] { display: none; }
.tabellenrahmen { overflow-x: auto; }
th.sortierbar { cursor: pointer; user-select: none; white-space: nowrap; }
th.sortierbar:hover { color: var(--meer-tief); }
th.sortierbar::after { content: '↕'; margin-left: 0.35rem; opacity: 0.35; font-size: 0.85em; }
th.sortiert-auf::after { content: '↑'; opacity: 1; color: var(--marke-dunkel); }
th.sortiert-ab::after { content: '↓'; opacity: 1; color: var(--marke-dunkel); }
th.sortierbar:focus-visible { outline: 3px solid rgba(255, 118, 0, 0.55); outline-offset: -3px; }
.tabellenrahmen table { margin: 0; }
.tabellenfuss { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem; margin-top: 0.9rem; }
.blaetter { min-width: 2.1rem; padding: 0.35rem 0.55rem; border: 1px solid var(--rahmen); border-radius: 8px;
    background: var(--flaeche); font: inherit; font-size: 0.85rem; color: var(--meer-tief); cursor: pointer; }
.blaetter:hover:not(:disabled) { background: var(--gischt); }
.blaetter.aktiv { background: var(--meer); border-color: var(--meer); color: #fff; font-weight: 700; }
.blaetter:disabled { opacity: 0.4; cursor: default; }
.blaetter-punkte { padding: 0 0.2rem; color: var(--gedaempft); }
tr[hidden] { display: none; }

/* Themenpflege */
.themenblock { margin-bottom: 1.1rem; padding: 0.9rem 1rem; border: 1px solid var(--rahmen); border-radius: 12px; }
.themenblock header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem; margin-bottom: 0.6rem; }
.themenblock header input[name=name] { width: 14rem; }
.themenliste { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.themenliste li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem;
    padding: 0.55rem 0.7rem; border-radius: 10px; background: var(--gischt); }
.themenliste li.ohne-fragen { background: var(--warnung-hell); }
.themenblock.block-pruefung { border-color: var(--meer-mittel); background: var(--meer-hell); }
.block-fakten { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.block-fakten form { margin: 0; }
.merkmal { padding: 0.15rem 0.5rem; border-radius: 999px; font-size: 0.74rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.04em; }
.merkmal-pruefung { background: var(--meer); color: #fff; }
.thema-einstellungen { flex: 1 1 100%; margin-top: 0.3rem; }
.thema-einstellungen summary { cursor: pointer; font-size: 0.82rem; font-weight: 600; color: var(--meer-mittel); }
.einstellungszeile { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.6rem; margin: 0.6rem 0 0; }
.einstellungszeile label { margin: 0 0 0.2rem; font-size: 0.78rem; }
.einstellungszeile input[type=number] { width: 7rem; margin: 0; }
.einstellungszeile select { width: auto; margin: 0; }
.einstellungszeile button { margin: 0; }
.thema-einstellungen .hinweis { margin-top: 0.4rem; }
.thema-name small { display: block; color: var(--gedaempft); font-size: 0.8rem; }
.thema-knoepfe { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; }
.thema-knoepfe form { margin: 0; }
.merkliste { margin: 0; padding-left: 1.1rem; display: grid; gap: 0.4rem; font-size: 0.9rem; }
.text-eintrag { margin-bottom: 0.6rem; padding: 0.6rem 0.8rem; border: 1px solid var(--rahmen); border-radius: 10px; }
.text-eintrag summary { cursor: pointer; font-weight: 600; color: var(--meer-tief); }
.text-eintrag form { margin-top: 0.6rem; }
.neuer-text summary { color: var(--marke-dunkel); }

/* Fragen eines Themas wählen */
.zurueck-zeile { margin: 0 0 0.8rem; }
.fragen-filter { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.6rem; margin: 0; }
.fragen-filter label { margin: 0 0 0.2rem; font-size: 0.8rem; }
.fragen-filter input, .fragen-filter select { margin: 0; }
.fragen-kopf { display: flex; justify-content: space-between; margin-bottom: 0.6rem; font-weight: 600; }
.fragenliste { max-height: 34rem; overflow-y: auto; padding-right: 0.4rem; }
.fragen-bereich { position: sticky; top: 0; margin: 0.8rem 0 0.4rem; padding: 0.3rem 0;
    background: var(--flaeche); font-size: 0.85rem; color: var(--meer-mittel); }
.frage-zeile { display: flex; gap: 0.6rem; align-items: flex-start; margin: 0; padding: 0.45rem 0.3rem;
    border-radius: 8px; font-weight: 400; cursor: pointer; }
.frage-zeile:hover { background: var(--gischt); }
.frage-zeile input { margin-top: 0.25rem; accent-color: var(--marke); }
.frage-zeile strong { margin-right: 0.3rem; color: var(--meer-tief); }
.frage-zeile small { display: block; color: var(--gedaempft); font-size: 0.78rem; }
.fragen-fuss { position: sticky; bottom: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem;
    padding: 0.8rem 0; background: linear-gradient(to top, var(--gischt) 70%, transparent); }
.fragen-fuss .knopf { margin: 0; }

.app-bereich { display: grid; grid-template-columns: minmax(0, 1fr) 23rem; gap: 1.25rem; align-items: start; }
.app-einstellungen > .karte:last-child { margin-bottom: 0; }
.farbfelder { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 0.6rem 1rem; margin-bottom: 0.9rem; }
.farbfeld { display: flex; align-items: center; gap: 0.6rem; }
.farbfeld input[type=color] { flex: none; width: 2.6rem; height: 2.1rem; margin: 0; padding: 0.15rem; }
.farbfeld label { margin: 0; font-size: 0.86rem; font-weight: 400; }
.app-rahmen.ohne-bild .app-schirm { background-image: none; }
.app-kopf { display: flex; align-items: center; gap: 0.6rem; padding: 1.4rem 0.9rem 0.8rem;
    background: var(--header-bg, #14324f); color: var(--header-fontcolor, #fff); }
.app-logo { max-height: 2.2rem; max-width: 7rem; border-radius: 4px; background: rgba(255, 255, 255, 0.9); padding: 0.15rem 0.3rem; }
.app-schule { font-weight: 700; font-size: 0.95rem; overflow-wrap: anywhere; }
.app-zwischen { padding: 0.45rem 0.9rem; font-size: 0.82rem; font-weight: 600;
    background: var(--subheader-bg, #e8eef4); color: var(--subheader-fontcolor, #1d2733); }
.app-schirm { flex: 1; padding: 0.9rem; background-color: var(--background, #f4f6f9);
    background-image: radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.75), transparent 60%); }
.app-frage { margin: 0 0 0.7rem; font-size: 0.92rem; font-weight: 600; color: #1d2733; }
.app-antworten { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.app-antworten li { padding: 0.5rem 0.7rem; border-radius: 10px; background: #fff; border: 1px solid var(--rahmen);
    font-size: 0.82rem; color: #1d2733; }
.app-antworten .app-richtig { border-color: var(--gut); background: var(--gut-hell); font-weight: 600; }
.app-antworten svg { width: 0.9rem; height: 0.9rem; vertical-align: -0.1rem; color: var(--gut); }
.app-kontakt { margin-top: 0.9rem; padding: 0.6rem 0.7rem; border-radius: 10px; background: rgba(255, 255, 255, 0.85);
    border: 1px dashed var(--rahmen); font-size: 0.78rem; color: var(--gedaempft); display: grid; gap: 0.1rem; }
.app-kontakt strong { color: #1d2733; }
.app-kontakt span[hidden] { display: none; }
.app-kontakt-leer { font-style: italic; }
.app-leiste { display: flex; justify-content: space-between; padding: 0.55rem 0.8rem 0.9rem;
    background: #fff; border-top: 1px solid var(--rahmen); font-size: 0.68rem; color: var(--gedaempft); }
.app-leiste .app-aktiv { color: var(--marke-dunkel); font-weight: 700; }
.vorschau-fuss { margin-top: 0.6rem; text-align: center; }
@media (max-width: 1100px) {
    .app-bereich, .app-bereich:has(input[value=tablet]:checked) { grid-template-columns: 1fr; }
    .vorschau-spalte { max-width: 34rem; margin: 0 auto; }
}

.vorschau {
    max-width: 19rem; margin: 0 auto;
    border: 10px solid #1b2733; border-radius: 30px; overflow: hidden;
    background: var(--background, #fff);
    box-shadow: 0 10px 30px rgba(11, 48, 74, 0.25);
}
.vorschau-kopf { padding: 1rem 1rem 0.8rem; font-weight: 700; background: var(--header-bg, #12496e); color: var(--header-fontcolor, #fff); }
.vorschau-zwischen { padding: 0.45rem 1rem; font-size: 0.88rem; font-weight: 600; background: var(--subheader-bg, #edf1f5); color: var(--subheader-fontcolor, #1f2933); }
.vorschau-inhalt { padding: 1rem 1rem 1.4rem; min-height: 11rem; }
.vorschau-antwort { margin: 0.7rem 0 0; padding: 0.6rem 0.8rem; border-radius: 10px; background: #fff; border: 1px solid var(--rahmen); }

.streich { color: var(--gedaempft); text-decoration: line-through; margin-right: 0.4rem; font-size: 0.9em; }
.summen { width: auto; min-width: 17rem; margin: 1rem 0 0 auto; }
.summen td, .summen th { border-bottom: none; padding: 0.25rem 0.6rem; background: none; }
.summen tr:last-child th { font-size: 1.1rem; color: var(--meer-tief); border-top: 2px solid var(--rahmen); padding-top: 0.5rem; }
.summen tbody tr:hover td { background: none; }

.mailvorschau {
    display: block; width: 100%; height: 34rem;
    border: 1px solid var(--rahmen); border-radius: 12px; background: var(--gischt);
}

/* Hilfe */
.hilfe-kopf { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
    background: linear-gradient(120deg, var(--meer-hell), #fff 70%); }
.hilfe-kopf h2 { margin-bottom: 0.3rem; }
.hilfe-kopf p { margin: 0; }
.hilfe-kopf .knopf { margin-top: 0; }
.anleitungen { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1rem; }
.anleitung { padding: 1rem 1.1rem; border-radius: 12px; background: var(--gischt); border: 1px solid var(--rahmen); }
.anleitung h3 { margin: 0.2rem 0 0.4rem; }
.anleitung p { margin: 0 0 0.8rem; color: var(--gedaempft); font-size: 0.9rem; }
.anleitung-gruppe { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--marke-dunkel); }
.faq details { border-bottom: 1px solid var(--rahmen); }
.faq summary { cursor: pointer; padding: 0.75rem 0.2rem; font-weight: 600; color: var(--meer-tief); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--marke); font-weight: 700; font-size: 1.2rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq-antwort { padding: 0 0.2rem 0.9rem; color: var(--text); }
.knopf[disabled] { opacity: 0.5; cursor: not-allowed; box-shadow: none; }

/* Übersicht */
.begruessung {
    position: relative; overflow: hidden;
    display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
    margin-bottom: 1.5rem; padding: 1.8rem 2rem;
    border-radius: 18px; color: #fff;
    background:
        linear-gradient(100deg, rgba(11, 48, 74, 0.94) 0%, rgba(18, 73, 110, 0.82) 55%, rgba(18, 73, 110, 0.35) 100%),
        url("/bilder/wasser.jpg") center 35% / cover;
    box-shadow: var(--schatten);
}
.begruessung h2 { margin: 0 0 0.4rem; font-size: 1.6rem; color: #fff; display: block; }
.begruessung p { margin: 0; color: #d7e7f2; max-width: 30rem; }
.begruessung-zeile { font-size: 0.95rem; color: #ffb57a !important; font-weight: 600; margin-bottom: 0.2rem !important; }
.schnellzugriff { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.schnellzugriff .knopf { margin-top: 0; }
.knopf-hell { background: rgba(255, 255, 255, 0.14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35); }
.knopf-hell:hover { background: rgba(255, 255, 255, 0.24); }
.kachel-link { text-decoration: none; color: inherit; transition: transform 0.12s, box-shadow 0.12s; }
.kachel-link:hover { transform: translateY(-2px); box-shadow: 0 6px 22px rgba(11, 48, 74, 0.12); color: inherit; }
.kachel-symbol { color: var(--meer-mittel); margin-bottom: 0.3rem; }
.kachel-symbol .symbol { width: 1.4rem; height: 1.4rem; }
.kachel.achtung .kachel-symbol { color: var(--marke-dunkel); }
.abstand-oben { margin-top: 1.4rem; }

/* Shop */
.bestand { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-bottom: 1.25rem; }
.bestand-titel { font-weight: 700; color: var(--meer-tief); margin-right: 0.3rem; }
.bestand-chip { padding: 0.35rem 0.8rem; border-radius: 999px; background: var(--flaeche); border: 1px solid var(--rahmen); font-size: 0.86rem; }
.bestand-chip strong { color: var(--gut); }
.bestand-chip small { color: var(--gedaempft); }
.bestand-chip.leer-chip strong { color: var(--fehler); }
.shop { display: grid; grid-template-columns: minmax(0, 1fr) 22rem; gap: 1.25rem; align-items: start; }
/* Der Warenkorb läuft mit und bleibt stehen: Wer unten im Katalog
   stöbert, sieht oben rechts weiter, was er schon gewählt hat. Die
   eigene Höhenbegrenzung verhindert, dass ein langer Korb aus dem Bild
   wächst — dann rollt er in sich selbst. */
/* Der Warenkorb bleibt beim Rollen stehen. Zwei Dinge gehören dazu:
   Er darf nie höher werden als das Fenster (sonst sähe man sein Ende
   nie), und der Katalog daneben braucht genug Höhe, damit der Korb
   Platz zum Kleben hat — sonst schiebt ihn das Ende des Rasters am
   Seitenfuß wieder hinaus. */
.shop { min-height: calc(100vh - 6rem); }
/* Der Korb wächst mit seinem Inhalt: Bei drei Positionen ist er kurz,
   bei zwölf lang. Erst wenn er höher wäre als das Fenster, rollt er in
   sich selbst — sonst käme man an den Bestellknopf nicht mehr heran. */
.shop-kasse { position: sticky; top: 4.8rem; max-height: calc(100vh - 6.5rem); overflow-y: auto; }

/* Breite Fenster: Der Korb steht fest im Sichtfeld.
   „sticky" klebt nur innerhalb seines Rasters — ist der Katalog daneben
   zu Ende, schiebt es den Korb wieder hinaus. Am Fenster befestigt
   bleibt er über die ganze Seite sichtbar. Die Rechnung für den rechten
   Abstand folgt dem Inhaltsband: Seitenleiste (--leiste), höchstens
   76rem breit, 2rem Innenabstand. */
@media (min-width: 981px) {
    .shop-kasse {
        position: fixed;
        top: 4.8rem;
        width: 22rem;
        right: calc(100vw - var(--leiste) - min(100vw - var(--leiste), 76rem) + 2rem);
    }
}

.shop-kasse > .karte { background: var(--meer-tief); border-color: var(--meer-tief); color: #eaf2f8; }
.shop-kasse h2 { color: #fff; }
.shop-kasse .leer, .shop-kasse .schwach, .shop-kasse .hinweis, .shop-kasse small { color: #b7cde0; }
.shop-kasse label { color: #eaf2f8; margin: 0.6rem 0 0.25rem; font-size: 0.82rem; }
.shop-kasse .korb li { border-bottom-color: rgba(255, 255, 255, 0.18); }
.shop-kasse .korb-kopf strong, .shop-kasse .korb-preis, .shop-kasse .korb-gesamt strong { color: #fff; }
.shop-kasse .korb-menge { color: #b7cde0; }

.shop-kasse .summen td, .shop-kasse .summen th { border-color: rgba(255, 255, 255, 0.18); color: #eaf2f8; }
.shop-kasse .summen th { color: #fff; }
.shop-kasse input, .shop-kasse select, .shop-kasse textarea {
    background: #fff; border-color: rgba(255, 255, 255, 0.45); color: var(--text); }
.shop-kasse select option { background: #fff; color: var(--text); }
.shop-kasse input::placeholder { color: var(--gedaempft); }
.shop-kasse input:focus, .shop-kasse select:focus { border-color: var(--marke); }
.shop-kasse .knopf-leise { border-color: rgba(255, 255, 255, 0.35); color: #eaf2f8; background: transparent; }
.shop-kasse .knopf-leise:hover { background: rgba(255, 255, 255, 0.12); }
.shop-kasse a { color: #ffb77a; }
.rabattzeile td { color: #8ce0a8; }
.gutscheinfeld { margin: 0.7rem 0 0; padding-top: 0.7rem; border-top: 1px solid rgba(255, 255, 255, 0.18); }
.gutscheinzeile { display: flex; gap: 0.4rem; }
.gutscheinzeile input { flex: 1; min-width: 0; }
.gutscheinzeile button { flex: none; margin: 0; }
.gutschein-gut { margin: 0.5rem 0 0; font-size: 0.85rem; color: #8ce0a8; }
.gutschein-gut svg { width: 0.9rem; height: 0.9rem; vertical-align: -0.1rem; }
.shop-gruppe { margin: 0.4rem 0 0.8rem; font-size: 1.1rem; }
.shop-gruppe:not(:first-child) { margin-top: 1.6rem; }
.kurs-text { font-size: 0.9rem; color: var(--gedaempft); }
.kurs-text p { margin: 0 0 0.4rem; }

/* Produktkarten: Bild, Text, Kauf — in dieser Reihenfolge, auch schmal. */
.produkte { display: grid; grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr)); gap: 1.25rem; }
.produkt { display: grid; grid-template-rows: auto 1fr auto; margin-bottom: 0; }
.produkt-bild { display: flex; align-items: center; justify-content: center; height: 7.5rem; margin: -0.3rem 0 0.9rem;
    border-radius: 12px; background: var(--gischt); }
.produkt-bild img { max-height: 6.5rem; width: auto; border-radius: 10px; }
.produkt-ohne-bild svg { width: 2.6rem; height: 2.6rem; color: var(--meer-hell); }
.produkt-text h3 { margin: 0 0 0.4rem; font-size: 1.08rem; }
.produkt-kurz { margin: 0 0 0.5rem; font-size: 0.88rem; color: var(--gedaempft); }
.produkt-mehr summary { cursor: pointer; font-size: 0.85rem; font-weight: 600; color: var(--meer-mittel); }
.produkt-mehr .kurs-text { margin-top: 0.5rem; }
.produkt-kauf { margin: 0.9rem 0 0; padding-top: 0.9rem; border-top: 1px solid var(--rahmen); }
.produkt-kauf label { font-size: 0.82rem; }
.produkt-kauf select { width: 100%; }
.produkt-preis { display: flex; align-items: baseline; gap: 0.4rem; margin: 0.7rem 0 0.1rem; }
.produkt-preis strong { font-size: 1.5rem; color: var(--meer-tief); }
.produkt-preis small { color: var(--gedaempft); }
.produkt-je { margin: 0 0 0.8rem; font-size: 0.85rem; color: var(--gedaempft); }
.produkt-kauf .knopf { margin: 0; }
.ersparnis[hidden] { display: none; }
.ersparnis { margin-left: 0.4rem; padding: 0.1rem 0.45rem; border-radius: 999px; background: var(--gut-hell); color: var(--gut); font-size: 0.75rem; font-weight: 700; }
.in-korb { display: inline-flex; align-items: center; gap: 0.35rem; margin: 0; }
.in-korb input[type=number] { width: 4.2rem; padding: 0.35rem 0.5rem; text-align: right; }
.korb { list-style: none; margin: 0 0 0.9rem; padding: 0; }
.korb li { padding: 0.5rem 0; border-bottom: 1px solid var(--rahmen); }
.korb li.nicht-bestellbar { opacity: 0.75; }
.korb-kopf { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.5rem; }
.korb-kopf strong { font-size: 0.95rem; line-height: 1.3; }
.korb-weg { margin: 0; }
.korb-weg button { padding: 0 0.35rem; border: 0; background: none; font-size: 1.25rem; line-height: 1;
    color: inherit; opacity: 0.6; cursor: pointer; }
.korb-weg button:hover { opacity: 1; }
.korb-menge { display: flex; align-items: baseline; justify-content: space-between; gap: 0.6rem;
    margin: 0.1rem 0 0.3rem; font-size: 0.85rem; }
.korb-preis { font-weight: 700; white-space: nowrap; }
.korb-menge-form { display: flex; align-items: center; gap: 0.4rem; margin: 0; font-size: 0.82rem; }
.korb-menge-form label { margin: 0; }
.korb-menge-form input { width: 3.4rem; margin: 0; padding: 0.22rem 0.4rem; text-align: right; }
.korb-menge-form button { margin: 0; padding: 0.22rem 0.6rem; font-size: 0.8rem; }
.korb-zahl { display: inline-grid; place-items: center; min-width: 1.5rem; height: 1.5rem; padding: 0 0.4rem;
    border-radius: 999px; background: var(--marke); color: #fff; font-size: 0.8rem; vertical-align: 0.1rem; }
.korb-gesamt { display: flex; align-items: baseline; justify-content: space-between; gap: 0.6rem;
    margin: 0.6rem 0 0; padding-top: 0.7rem; border-top: 2px solid rgba(255, 255, 255, 0.25); }
.korb-gesamt span { font-weight: 600; }
.korb-gesamt strong { font-size: 1.6rem; line-height: 1.1; }
.shop-kasse .summen { width: 100%; min-width: 0; }
/* Die mitlaufende Leiste für schmale Fenster. Breit ist sie unnötig —
   dort steht der Korb sichtbar daneben. */
.korb-leiste { display: none; }

@media (max-width: 980px) {
    .shop { grid-template-columns: 1fr; min-height: 0; }
    .shop-kasse { position: static; max-height: none; overflow: visible; }

    .korb-leiste { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
        display: flex; align-items: center; gap: 0.7rem; padding: 0.7rem 1rem;
        background: var(--meer-tief); color: #fff; text-decoration: none;
        box-shadow: 0 -6px 20px rgba(11, 48, 74, 0.25); }
    .korb-leiste-zahl { display: grid; place-items: center; min-width: 1.7rem; height: 1.7rem;
        padding: 0 0.4rem; border-radius: 999px; background: var(--marke); font-size: 0.85rem; font-weight: 700; }
    .korb-leiste-text { flex: 1; font-size: 0.86rem; color: #b7cde0; }
    .korb-leiste strong { font-size: 1.05rem; }
    .korb-leiste-knopf { padding: 0.45rem 0.9rem; border-radius: 999px; background: var(--marke);
        font-size: 0.86rem; font-weight: 700; white-space: nowrap; }
    /* Platz, damit die Leiste den Bestellknopf nicht verdeckt. */
    .shop { padding-bottom: 4.5rem; }
}
@media (max-width: 640px) {
    .produkte { grid-template-columns: 1fr; }
}

/* Nachrichten an Schüler: der Assistent */
.assistent-schritte { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 0; margin: 0 0 1.4rem; padding: 0;
    list-style: none; }
.assistent-schritte li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 0.35rem;
    padding: 0 0.2rem; text-align: center; font-size: 0.78rem; font-weight: 600; color: var(--gedaempft);
    line-height: 1.25; }
/* Die Linie zwischen den Punkten: je Schritt eine nach links, der erste
   bekommt keine. */
.assistent-schritte li::before { content: ''; position: absolute; top: 0.95rem; right: 50%; left: -50%; height: 2px;
    background: var(--rahmen); }
.assistent-schritte li:first-child::before { display: none; }
.assistent-schritte li span { position: relative; z-index: 1; display: grid; place-items: center; width: 1.9rem; height: 1.9rem;
    border-radius: 50%; background: var(--flaeche); border: 2px solid var(--rahmen); color: var(--gedaempft);
    font-size: 0.82rem; }
.assistent-schritte li.aktiv { color: var(--meer-tief); }
.assistent-schritte li.aktiv span { background: var(--meer); border-color: var(--meer); color: #fff; }
.assistent-schritte li.erledigt { color: var(--gut); }
.assistent-schritte li.erledigt span { background: var(--gut); border-color: var(--gut); color: #fff; }
.assistent-schritte li.erledigt::before, .assistent-schritte li.aktiv::before { background: var(--gut); }
.schritt-knoepfe { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin-top: 1rem; }
.schritt-knoepfe .knopf, .schritt-knoepfe .knopf-leise { margin: 0; }
.assistent-an .schritt { display: none; }
.assistent-an .schritt.schritt-aktiv { display: block; }
.empfaengerzeile { margin: 0 0 1rem; padding: 0.6rem 0.9rem; border-radius: 10px;
    background: var(--meer-hell); color: var(--meer-tief); font-weight: 600; font-size: 0.9rem; }
.empfaengerzeile[hidden] { display: none; }
.schritt-fehler { margin-top: 1rem; }

/* Der Prüfschritt: wer, was — und erst dann der Knopf. */
.pruefen-titel { margin: 0 0 1rem; font-size: 1.05rem; color: var(--meer-tief); }
.pruefen-block { margin-bottom: 1.1rem; padding: 0.9rem 1rem; border: 1px solid var(--rahmen);
    border-radius: 12px; background: var(--gischt); }
.pruefen-marke { margin: 0 0 0.4rem; font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.07em; color: var(--gedaempft); }
.pruefen-wer { margin: 0; font-weight: 600; color: var(--meer-tief); }
.pruefen-namen { margin: 0.6rem 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 0.35rem; }
.pruefen-namen li { padding: 0.2rem 0.6rem; border-radius: 999px; background: var(--flaeche);
    border: 1px solid var(--rahmen); font-size: 0.82rem; }
.pruefen-namen[hidden] { display: none; }
.pruefen-nachricht .app-nachricht { background: var(--flaeche); }

/* Nachrichten an Schüler */
.nachricht-bereich { display: grid; grid-template-columns: minmax(0, 1fr) 20rem; gap: 1.25rem; align-items: start; margin-bottom: 1.25rem; }
.nachricht-bereich > .karte { margin-bottom: 0; }
fieldset.wahl { border: 0; margin: 0 0 0.3rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
fieldset.wahl legend { padding: 0; margin-bottom: 0.4rem; font-size: 0.86rem; font-weight: 600; color: var(--meer-tief); }
.wahl-karte { flex: 1 1 12rem; display: flex; gap: 0.6rem; align-items: flex-start; margin: 0; padding: 0.8rem 0.9rem; border: 1px solid var(--rahmen); border-radius: 12px; cursor: pointer; font-weight: 400; }
.wahl-karte:has(input:checked) { border-color: var(--marke); background: var(--marke-hell); }
.wahl-karte input { margin-top: 0.2rem; accent-color: var(--marke); }
.wahl-karte small { display: block; color: var(--gedaempft); }
form[data-nachricht]:has(input[name=ziel][value=kurs]:checked) .ziel-teilnehmer,
form[data-nachricht]:has(input[name=ziel][value=teilnehmer]:checked) .ziel-kurs { display: none; }
.stile { margin-top: 0.9rem; }
.stil-chip { margin: 0; cursor: pointer; }
.stil-chip input { position: absolute; opacity: 0; }
.stil-chip span { display: inline-block; padding: 0.4rem 0.85rem; border-radius: 999px; border: 1px solid var(--rahmen); font-weight: 600; font-size: 0.88rem; color: var(--text); }
.stil-chip input:checked + span { color: #fff; border-color: transparent; }
.stil-chip input:focus-visible + span { outline: 3px solid rgba(255, 118, 0, 0.55); }
.stil-info input:checked + span { background: #1d6a9a; }
.stil-wichtig input:checked + span { background: #d95f00; }
.stil-termin input:checked + span { background: #6a4bb0; }
.stil-erfolg input:checked + span { background: #1b7f3b; }
.gestaltung-hilfe code { padding: 0.05rem 0.35rem; border-radius: 5px; background: var(--gischt); font-size: 0.85em; }
.knopf-optionen { margin-top: 0.9rem; }
.knopf-optionen summary { cursor: pointer; font-weight: 600; color: var(--meer-mittel); }
.vorschau-spalte { position: sticky; top: 5.2rem; }
.vorschau-titel { margin: 0 0 0.5rem; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gedaempft); text-align: center; }
.handy { padding: 1rem 0.8rem 1.4rem; border: 10px solid #1b2733; border-radius: 34px; min-height: 30rem;
    background: linear-gradient(180deg, #d9e8f2 0%, #f3f7fa 40%); box-shadow: 0 12px 34px rgba(11, 48, 74, 0.25); }
.handy-push { display: flex; flex-direction: column; gap: 0.15rem; padding: 0.7rem 0.85rem; border-radius: 16px;
    background: rgba(255, 255, 255, 0.92); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12); font-size: 0.82rem; }
.handy-app { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.08em; color: var(--marke-dunkel); }
.handy-push span:last-child { color: var(--gedaempft); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.handy-center { margin-top: 1rem; }
.handy-kopf { margin: 0 0 0.5rem; font-weight: 700; color: var(--meer-tief); }
.app-nachricht { position: relative; padding: 0.9rem 1rem 0.8rem 1.1rem; border-radius: 14px; background: #fff;
    border: 1px solid var(--rahmen); border-left: 5px solid var(--stil, #1d6a9a); }
.app-nachricht.stil-info { --stil: #1d6a9a; }
.app-nachricht.stil-wichtig { --stil: #d95f00; }
.app-nachricht.stil-termin { --stil: #6a4bb0; }
.app-nachricht.stil-erfolg { --stil: #1b7f3b; }
.app-nachricht-art { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--stil); }
.app-nachricht h3 { margin: 0.25rem 0 0.4rem; font-size: 1rem; }
.app-nachricht-text { font-size: 0.9rem; }
.app-nachricht-text p { margin: 0 0 0.5rem; }
.app-nachricht-text ul { margin: 0 0 0.5rem; padding-left: 1.2rem; }
.app-nachricht-knopf { display: inline-block; margin: 0.3rem 0 0.5rem; padding: 0.45rem 0.9rem; border-radius: 999px;
    background: var(--stil); color: #fff; font-weight: 700; font-size: 0.85rem; text-decoration: none; }
.app-nachricht-knopf[hidden] { display: none; }
.app-nachricht-von { display: block; color: var(--gedaempft); font-size: 0.76rem; }
.stil-punkt { display: inline-block; width: 0.6rem; height: 0.6rem; margin-right: 0.4rem; border-radius: 50%; background: #1d6a9a; }
.stil-punkt.stil-wichtig { background: #d95f00; }
.stil-punkt.stil-termin { background: #6a4bb0; }
.stil-punkt.stil-erfolg { background: #1b7f3b; }
.lesebalken { display: inline-block; width: 4rem; height: 0.4rem; margin-left: 0.5rem; border-radius: 999px; background: var(--meer-hell); vertical-align: middle; overflow: hidden; }
.lesebalken span { display: block; height: 100%; background: var(--gut); }
.lesebalken-0 { width: 0%; }
.lesebalken-10 { width: 10%; }
.lesebalken-20 { width: 20%; }
.lesebalken-30 { width: 30%; }
.lesebalken-40 { width: 40%; }
.lesebalken-50 { width: 50%; }
.lesebalken-60 { width: 60%; }
.lesebalken-70 { width: 70%; }
.lesebalken-80 { width: 80%; }
.lesebalken-90 { width: 90%; }
.lesebalken-100 { width: 100%; }
@media (max-width: 1100px) {
    .nachricht-bereich { grid-template-columns: 1fr; }
    .vorschau-spalte { position: static; max-width: 22rem; margin: 0 auto; }
}

/* Siegel auf der öffentlichen Startseite */
.siegel-band { display: flex; align-items: center; gap: 2.4rem; flex-wrap: wrap; }
.siegel-band h2 { margin-top: 0; }
.siegel-bild { width: 18rem; height: auto; flex: none; }
.siegel-band > div { flex: 1 1 24rem; }
.siegel-fuss { color: var(--gedaempft); }
@media (max-width: 760px) {
    .siegel-band { flex-direction: column; text-align: left; }
    .siegel-bild { width: 14rem; }
}

/* Siegel „Wir bilden mit einer App aus“ */
.siegel-wahl { display: grid; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); gap: 1.25rem; }
.siegel-karte { margin-bottom: 0; }
.siegel-karte h3 { margin: 0.9rem 0 0.3rem; font-size: 1.05rem; }
.siegel-vorschau { display: flex; align-items: center; justify-content: center; padding: 1.2rem;
    border-radius: 12px; background: var(--gischt); }
.siegel-vorschau.kariert { background: repeating-conic-gradient(#eef3f7 0% 25%, #fff 0% 50%) 50% / 16px 16px; }
.siegel-vorschau img { width: 13rem; height: auto; }
.siegel-vorschau.quer img { width: 100%; }
.siegel-dateien { list-style: none; margin: 0.6rem 0 0; padding: 0; display: grid; gap: 0.35rem; }
.siegel-dateien a { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.9rem; }
.schnipsel { margin: 0; padding: 0.9rem 1rem; border-radius: 10px; background: var(--gischt);
    border: 1px solid var(--rahmen); overflow-x: auto; font-size: 0.82rem; line-height: 1.5; }

/* Logo */
.ablage { margin-bottom: 0.9rem; padding: 1.4rem 1rem; border: 2px dashed var(--rahmen); border-radius: 12px;
    background: var(--gischt); text-align: center; }
.ablage-text { margin: 0; color: var(--gedaempft); font-size: 0.9rem; }
.ablage-text svg { width: 1.1rem; height: 1.1rem; vertical-align: -0.2rem; color: var(--marke); }
.ablage-text .knopf-leise { margin: 0 0 0 0.2rem; }
.ablage-datei { margin: 0.6rem 0 0; font-weight: 600; color: var(--meer-tief); }
.ablage-datei[hidden] { display: none; }
.ablage.ablage-bereit input[type=file] { display: none; }
.ablage.ablage-drueber { border-color: var(--marke); background: var(--marke-hell); }

.logos { margin-bottom: 0.5rem; }
.logo-rahmen { margin: 0 0 0.5rem; padding: 1rem; border-radius: 12px; background: repeating-conic-gradient(#eef3f7 0% 25%, #fff 0% 50%) 50% / 16px 16px; text-align: center; }
.logo-rahmen img { max-width: 100%; max-height: 9rem; }
.logo-rahmen figcaption { margin-top: 0.6rem; font-size: 0.82rem; color: var(--gedaempft); }

/* Redaktion */
.redaktion-block { margin-bottom: 1rem; }
.redaktion-block > summary { cursor: pointer; padding: 0.3rem 0; color: var(--meer-tief); }
details.karte { padding-top: 1rem; padding-bottom: 1rem; }
tr.geaendert td:last-child { background: var(--marke-hell); }
tbody th { font-size: 0.8rem; color: var(--gedaempft); white-space: nowrap; }

/* ------------------------------------------------------------------ */
/* Anmeldung                                                           */
/* ------------------------------------------------------------------ */

body.ohne-menue {
    min-height: 100vh;
    background: var(--meer-tief) url("/bilder/wasser.jpg") center / cover no-repeat fixed;
}
.anmeldung { min-height: 100vh; display: grid; place-items: center; padding: 2rem 1rem; }
.anmeldung > .meldung { max-width: 26rem; width: 100%; }
.anmelde-buehne { width: 100%; max-width: 25rem; display: flex; flex-direction: column; align-items: center; gap: 1.4rem; }
.anmelde-logo { width: 100%; max-width: 17rem; height: auto; filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.25)); }
.anmeldeform {
    width: 100%; padding: 1.8rem 1.8rem 1.5rem;
    border-radius: 18px;
    background: rgba(18, 73, 110, 0.82);
    backdrop-filter: blur(6px);
    color: #fff;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}
.anmeldeform h1 { margin: 0 0 0.3rem; font-size: 1.45rem; font-weight: 600; color: #fff; }
.anmelde-zeile { margin: 0 0 0.6rem; color: #cfe2ef; font-size: 0.92rem; }
.anmeldeform label { color: #e3eef6; }
.anmeldeform input { border-color: transparent; }
.anmeldeform .knopf { margin-top: 1.4rem; }
.anmelde-hilfe { margin: 1.1rem 0 0; font-size: 0.85rem; color: #cfe2ef; }
.anmelde-hilfe a { color: #ffb57a; }
.anmelde-fuss { margin: 0; font-size: 0.8rem; color: rgba(255, 255, 255, 0.85); text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5); }

/* Fehlerseite ohne Anmeldung */
.ohne-menue .anmeldung > .karte { max-width: 30rem; }

/* ------------------------------------------------------------------ */
/* Schmale Bildschirme                                                 */
/* ------------------------------------------------------------------ */

@media (max-width: 960px) {
    .leiste { transform: translateX(-100%); transition: transform 0.2s; box-shadow: 0 0 40px rgba(0, 0, 0, 0.3); }
    .menue-schalter:checked ~ .leiste { transform: none; }
    .menue-schalter:checked ~ .menue-schleier {
        position: fixed; inset: 0; z-index: 15; display: block;
        background: rgba(11, 48, 74, 0.45); cursor: pointer;
    }
    .bereich { margin-left: 0; }
    .menue-knopf { display: inline-flex; }
    .kopf { padding: 0.6rem 1rem; }
    .inhalt { padding: 1.25rem 1rem 2rem; }
    .fuss { padding: 1rem; }
    .konto-text { display: none; }
    .kopf h1 { font-size: 1.15rem; }
}

@media (max-width: 640px) {
    .spalten { grid-template-columns: 1fr; }
    .kacheln { grid-template-columns: repeat(2, 1fr); gap: 0.7rem; }
    .kachel { padding: 0.9rem; }
    .zahl { font-size: 1.6rem; }
    .begruessung { padding: 1.3rem; }
    .schnellzugriff .knopf { flex: 1 1 100%; }
    .suche > div, .suche input, .suche select { min-width: 0; width: 100%; }
    .karte { padding: 1.1rem 1rem; overflow-x: auto; }
    .vertretung { display: none; }
}

/* ------------------------------------------------------------------ */
/* Druck (Rechnung)                                                    */
/* ------------------------------------------------------------------ */

@media print {
    .leiste, .kopf, .fuss, .wechsel, .aktionen, .knopf, .knopf-klein, .menue-schalter { display: none !important; }
    .bereich { margin: 0; }
    body { background: #fff; }
    .karte { box-shadow: none; border: 0; padding: 0; }
    .inhalt { padding: 0; max-width: none; }
}

/* Kurswahl für Nachrichten: mehrere Kurse zugleich. */
/* Die Auswahl im zweiten Schritt steht als Liste, nicht als Kachelfeld:
   Eine Schule mit zwanzig Kursen soll sie überblicken, ohne zu rollen.
   Ein Rahmen um die ganze Liste, feine Linien dazwischen. */
.kurswahl { display: block; margin: 0 0 1rem; padding: 0; border: 0; }
.kurswahl legend { margin-bottom: 0.4rem; font-weight: 600; }
.kurswahl legend small { font-weight: 400; color: var(--gedaempft); }
.kurswahl > .kurswahl-eintrag:first-of-type { border-top: 1px solid var(--rahmen); border-radius: 10px 10px 0 0; }
.kurswahl > .kurswahl-eintrag:last-of-type { border-radius: 0 0 10px 10px; }
.kurswahl-eintrag { display: flex; align-items: baseline; gap: 0.6rem; margin: 0; padding: 0.4rem 0.7rem;
    border: 1px solid var(--rahmen); border-top: 0; font-weight: 400; cursor: pointer; }
.kurswahl-eintrag:hover { background: var(--gischt); }
.kurswahl-eintrag:has(input:checked) { background: var(--meer-hell); }
.kurswahl-eintrag input { flex: none; align-self: center; margin: 0; }
/* Name und Zusatz nebeneinander statt untereinander — das halbiert die
   Höhe jeder Zeile. */
.kurswahl-eintrag span { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 0.5rem; min-width: 0; }
.kurswahl-eintrag small { color: var(--gedaempft); }

/* Empfängersuche für Nachrichten. */
.feldhilfe { margin: 0.35rem 0 0.8rem; font-size: 0.85rem; color: var(--gedaempft); }
.personenliste { max-height: 24rem; overflow-y: auto; padding: 0; border: 1px solid var(--rahmen);
    border-radius: 10px; background: var(--flaeche); }
.person-eintrag { display: flex; align-items: baseline; gap: 0.6rem; margin: 0; padding: 0.35rem 0.7rem;
    border-top: 1px solid var(--rahmen); font-weight: 400; cursor: pointer; }
.person-eintrag:first-child { border-top: 0; }
.person-eintrag:hover { background: var(--gischt); }
.person-eintrag:has(input:checked) { background: var(--meer-hell); }
.person-eintrag input { flex: none; align-self: center; margin: 0; }
.person-eintrag span { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 0.5rem; min-width: 0; }
.person-eintrag strong { font-weight: 600; }
.person-eintrag small { color: var(--gedaempft); }
.personen-leer { margin: 0.6rem 0 0; color: var(--gedaempft); }
.gewaehlte { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 0.8rem; padding: 0; list-style: none; }
.gewaehlt-weg { padding: 0.25rem 0.6rem; border: 1px solid var(--meer-mittel); border-radius: 999px; background: var(--meer-hell); color: var(--meer); font-size: 0.85rem; cursor: pointer; }
.gewaehlt-weg:hover { background: var(--flaeche); }

/* Kursart im Verkauf oder nicht (Betreiber) */
.verkauf-stand { margin-left: 0.4rem; padding: 0.1rem 0.5rem; border-radius: 999px; font-size: 0.75rem; font-weight: 600; }
.verkauf-an { background: var(--gut-hell); color: var(--gut); }
.verkauf-aus { background: var(--warnung-hell); color: var(--warnung); }
.verkauf-form { border-bottom: 1px solid var(--rahmen); padding-bottom: 0.9rem; }
.verkauf-zeile { margin: 0 0 0.5rem; font-size: 0.88rem; color: var(--gedaempft); }

/* ------------------------------------------------------------------ */
/* Öffentliche Seite über die App (/app)                               */
/* ------------------------------------------------------------------ */

body.oeffentlich { background: var(--flaeche); }
.oeffentlich-kopf {
    position: sticky; top: 0; z-index: 10;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: 0.7rem 1.5rem;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--rahmen);
}
.oeffentlich-kopf .marke img { height: 2.6rem; width: auto; }
.oeffentlich-kopf nav { display: flex; align-items: center; gap: 0.6rem; }
/* Beide Knöpfe im Kopf gleich hoch: dieselbe Polsterung, dieselbe
   Schriftgröße, dieselbe Zeilenhöhe. Die Regel steht hinter der
   allgemeinen für Nebenknöpfe und sticht sie über nav. */
.oeffentlich-kopf nav .knopf, .oeffentlich-kopf nav .knopf-leise {
    margin-top: 0; padding: 0.6rem 1.2rem; font-size: 0.95rem; line-height: 1.3;
}
.oeffentlich-kopf nav .knopf-leise { font-weight: 600; box-shadow: none; color: var(--meer); }
.oeffentlich-kopf nav .knopf-leise:hover { background: var(--meer-hell); }
.oeffentlich-inhalt { display: block; }
.oeffentlich-fuss {
    padding: 2rem 1.5rem 3rem; text-align: center;
    background: var(--meer-tief); color: #cfe2ef; font-size: 0.9rem;
}
.oeffentlich-fuss p { margin: 0.3rem 0; }
.oeffentlich-fuss a { color: #ffb57a; }

/* Bühne */
.buehne {
    position: relative; isolation: isolate;
    display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 2.5rem; align-items: center;
    /* Linke Kante wie in den Abschnitten: dort steht der Text 2rem
       innerhalb eines 72rem breiten Bandes. */
    padding: 3.5rem max(2rem, calc((100% - 72rem) / 2 + 2rem)) 3rem;
    background: var(--meer-tief) url("/bilder/wasser.jpg") center / cover no-repeat;
    color: #fff;
}
/* Dasselbe Foto wie auf der Anmeldeseite, aber hier liegt ein Schleier
   darüber: ohne ihn stünde heller Text auf hellem Wasser. */
.buehne::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(150deg, rgba(18, 73, 110, 0.93) 0%, rgba(11, 48, 74, 0.96) 100%);
    backdrop-filter: blur(2px);
}
.buehne-text { max-width: 36rem; }
.buehne-marke { margin: 0 0 0.6rem; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--marke); }
.buehne h1 { margin: 0 0 0.8rem; font-size: clamp(2rem, 4vw, 2.9rem); line-height: 1.12; color: #fff; }
.buehne-zeile { margin: 0 0 1.4rem; font-size: 1.1rem; line-height: 1.6; color: #d6e7f2; }
.buehne-hinweis {
    display: flex; gap: 0.7rem; align-items: flex-start;
    margin: 0 0 1.6rem; padding: 0.9rem 1.1rem;
    border-left: 3px solid var(--marke); border-radius: 0 10px 10px 0;
    background: rgba(255, 255, 255, 0.1); font-size: 0.95rem; color: #eaf3f9;
}
.buehne-hinweis .symbol { flex: none; color: var(--marke); }
.buehne-knoepfe { display: flex; flex-wrap: wrap; gap: 0.7rem; margin: 0; }
.oeffentlich .knopf-leise {
    margin-top: 1.2rem; padding: 0.7rem 1.4rem; font-size: 1rem; font-weight: 700;
    box-shadow: inset 0 0 0 1px var(--meer-hell); color: var(--meer);
}
.buehne-knoepfe .knopf-leise { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55); color: #fff; }
.buehne-knoepfe .knopf-leise:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.buehne-beleg { margin: 1.3rem 0 0; font-size: 0.9rem; color: #a8c8dd; }
.buehne-beleg strong { color: #fff; }

/* Das Gerät in der Bühne: dieselbe Anmutung wie die App. */
.buehne-bild { display: flex; justify-content: center; }
.collage { width: 100%; max-width: 52rem; height: auto; }

/* Der Hinweis auf beide Plattformen, direkt unter den Knöpfen. */
.plattformen {
    display: flex; align-items: flex-start; gap: 0.5rem;
    margin: 1.1rem 0 0; font-size: 0.95rem; color: #d6e7f2;
}
.plattformen .symbol { flex: none; color: #8fd3a6; }

/* Die Abzeichen der beiden Läden. Noch ohne Verweis: Die App ist nicht
   veröffentlicht, und ein Knopf, der nirgends hinführt, ärgert mehr als
   er nützt. Sobald sie draußen ist, werden daraus zwei <a>. */
.abzeichen { display: flex; flex-wrap: wrap; gap: 0.7rem; margin: 1.1rem 0 0; }
.abzeichen img { height: 3.1rem; width: auto; border-radius: 10px; opacity: 0.92; }
.abzeichen a { display: inline-flex; }
.abzeichen a:hover img { opacity: 1; }
.geraet {
    width: 16.5rem; border-radius: 30px; padding: 0.6rem;
    background: #0a1620; box-shadow: 0 26px 60px rgba(0, 0, 0, 0.45);
}
.geraet-kopf { width: 38%; height: 0.35rem; margin: 0.25rem auto 0.5rem; border-radius: 999px; background: #2a3a48; }
/* Jedes Bild im Geräterahmen füllt ihn und nicht mehr: ohne diese Regel
   stünde das Bildschirmfoto in seiner Naturgröße im Rahmen. */
.geraet img { display: block; width: 100%; height: auto; border-radius: 22px; }
.geraet-klein { width: 13rem; padding: 0.45rem; border-radius: 24px; }
.geraet-klein img { border-radius: 18px; }
.geraet-schirm { padding: 1rem; border-radius: 22px; background: var(--gischt); color: var(--text); }
.geraet-schule { margin: 0; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--meer-mittel); }
.geraet-kurs { margin: 0.15rem 0 0.8rem; font-size: 1.05rem; font-weight: 600; overflow-wrap: break-word; hyphens: auto; }
.geraet-balken { height: 0.5rem; border-radius: 999px; background: var(--meer-hell); overflow: hidden; }
.geraet-balken span { display: block; height: 100%; background: var(--gut); }
.geraet-stand { margin: 0.35rem 0 0.9rem; font-size: 0.8rem; color: var(--gedaempft); }
.geraet-liste { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.4rem; }
.geraet-liste li {
    padding: 0.5rem 0.7rem; border: 1px solid var(--rahmen); border-radius: 10px;
    background: var(--flaeche); font-size: 0.85rem;
}
.geraet-nachricht { margin-top: 0.8rem; padding: 0.6rem 0.7rem; border-left: 3px solid #6a4bb0; border-radius: 0 10px 10px 0; background: #f0ecf9; }
.geraet-nachricht-art { margin: 0; font-size: 0.65rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: #6a4bb0; }
.geraet-nachricht-titel { margin: 0.1rem 0 0; font-size: 0.85rem; font-weight: 600; }

/* Galerie echter Aufnahmen */
.bilder { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1.6rem; margin-top: 1.8rem; justify-items: center; }
.bilder figure { margin: 0; display: grid; justify-items: center; gap: 0.7rem; }
.bilder figcaption { font-size: 0.9rem; color: var(--gedaempft); text-align: center; max-width: 14rem; }

/* Das Tablet in der Galerie */
.bild-breit { margin: 2.2rem auto 0; max-width: 44rem; display: grid; justify-items: center; gap: 0.7rem; }
.bild-breit img { width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--rahmen); box-shadow: var(--schatten); }
.bild-breit figcaption { font-size: 0.9rem; color: var(--gedaempft); text-align: center; }

/* Rechtstexte: Impressum, Datenschutz, Löschung, Support */
.rechtstext { max-width: 44rem; margin: 0 auto; padding: 2.5rem 1.5rem 4rem; }
.rechtstext h1 { margin: 0 0 1.2rem; font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.2; color: var(--meer); }
.rechtstext h2 { margin: 2.2rem 0 0.6rem; font-size: 1.2rem; color: var(--meer); }
.rechtstext h3 { margin: 1.4rem 0 0.3rem; font-size: 1.02rem; }
.rechtstext p, .rechtstext li { line-height: 1.65; }
.rechtstext ul, .rechtstext ol { padding-left: 1.2rem; }
.rechtstext li { margin: 0.3rem 0; }
.rechtstext-stand { margin: 0 0 1.5rem; color: var(--gedaempft); }
.rechtstext-anschrift { margin: 0.6rem 0 1rem; padding: 0.9rem 1.1rem; border-left: 3px solid var(--meer); background: var(--gischt); }
.rechtstext-anschrift p { margin: 0.15rem 0; }
.rechtstext-siegel { margin: 2.6rem 0 0; padding-top: 1.8rem; border-top: 1px solid var(--rahmen); text-align: center; }
.rechtstext-siegel img { width: 100%; max-width: 15rem; height: auto; }
.rechtstext-siegel figcaption { margin-top: 0.7rem; font-size: 0.88rem; color: var(--gedaempft); }
.rechtstext-kasten { margin: 1.4rem 0; padding: 0.9rem 1.1rem; border-left: 3px solid var(--marke); border-radius: 0 10px 10px 0; background: var(--marke-hell); }
.rechtstext-kasten p { margin: 0; }

/* Der Fuß der öffentlichen Seiten */
.fuss-wege { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.3rem 0.6rem; }
.oeffentlich-fuss .fuss-wege a { color: #e8f1f7; }
.oeffentlich-fuss .fuss-wege a:hover { color: #ffb57a; }

/* Abschnitte */
.abschnitt { padding: 3rem 2rem; max-width: 72rem; margin: 0 auto; }
.abschnitt h2 { margin: 0 0 0.6rem; font-size: clamp(1.4rem, 2.4vw, 1.9rem); color: var(--meer); }
.abschnitt h2.zwischen { margin-top: 3rem; }
.abschnitt-zeile { margin: 0 0 1.6rem; color: var(--gedaempft); max-width: 44rem; }
.abschnitt-dunkel { max-width: none; background: var(--meer-tief); color: #e8f1f7; }
.abschnitt-dunkel h2 { color: #fff; }
.abschnitt-dunkel > * { max-width: 68rem; margin-left: auto; margin-right: auto; }
.abschnitt-grund { max-width: none; background: var(--gischt); }
.abschnitt-grund > * { max-width: 68rem; margin-left: auto; margin-right: auto; }
/* Überschriften und Absätze tragen eigene margin-Kurzschreibweisen; ohne
   diese Zeile stünden sie an der Polsterkante statt auf der Bandkante. */
.abschnitt-dunkel > h2, .abschnitt-dunkel > h3, .abschnitt-dunkel > p,
.abschnitt-grund > h2, .abschnitt-grund > h3, .abschnitt-grund > p {
    margin-left: auto; margin-right: auto;
}

.schritte { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.2rem; margin: 1.6rem 0 0; padding: 0; list-style: none; counter-reset: schritt; }
.schritte li { padding: 1.3rem; border: 1px solid var(--rahmen); border-radius: var(--rund); background: var(--flaeche); box-shadow: var(--schatten); }
.schritt-zahl {
    display: grid; place-items: center; width: 2.2rem; height: 2.2rem; margin-bottom: 0.7rem;
    border-radius: 999px; background: var(--meer); color: #fff; font-weight: 700;
}
.schritte h3 { margin: 0 0 0.3rem; font-size: 1.05rem; }
.schritte p { margin: 0; color: var(--gedaempft); font-size: 0.95rem; }

.leistungen { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 1.1rem; margin-top: 1.6rem; }
.leistung { padding: 1.3rem; border-radius: var(--rund); background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.12); }
.leistung h3 { margin: 0.7rem 0 0.3rem; font-size: 1.05rem; color: #fff; }
.leistung p { margin: 0; font-size: 0.95rem; color: #c8dced; }
.leistung-zeichen { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 10px; background: rgba(255, 255, 255, 0.14); color: #fff; }
.leistung-hell { background: var(--flaeche); border-color: var(--rahmen); box-shadow: var(--schatten); }
.leistung-hell h3 { color: var(--text); }
.leistung-hell p { color: var(--gedaempft); }
.leistung-hell .leistung-zeichen { background: var(--meer-hell); color: var(--meer); }

.vorteile { display: grid; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); gap: 0.9rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.vorteile li { display: flex; gap: 0.7rem; align-items: flex-start; padding: 0.9rem 1rem; border: 1px solid var(--rahmen); border-radius: 12px; background: var(--flaeche); }
.vorteile .symbol { flex: none; color: var(--gut); }
.vorteile div { display: grid; gap: 0.15rem; }
.vorteile span { color: var(--gedaempft); font-size: 0.93rem; }

.kursgruppe { margin: 2rem 0 0.8rem; font-size: 1.05rem; color: var(--meer-mittel); }
.kursliste { display: grid; grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); gap: 1rem; }
.kurskarte { display: flex; gap: 1rem; align-items: center; padding: 1rem; border: 1px solid var(--rahmen); border-radius: var(--rund); background: var(--flaeche); }
.kurskarte img { width: 4.5rem; height: 4.5rem; object-fit: contain; flex: none; }
.kurskarte h4 { margin: 0 0 0.2rem; font-size: 1rem; }
.kurskarte-zahlen { margin: 0; font-size: 0.85rem; color: var(--meer-mittel); font-weight: 600; }
.kurskarte-text-lang { margin: 0.3rem 0 0; font-size: 0.88rem; color: var(--gedaempft); }

.abruf { display: grid; grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); gap: 1.2rem; }
.abruf-karte {
    position: relative; isolation: isolate; overflow: hidden;
    padding: 1.8rem; border-radius: var(--rund); color: #fff;
    background: var(--meer-tief) url("/bilder/wasser.jpg") center / cover no-repeat;
}
.abruf-karte::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(150deg, rgba(18, 73, 110, 0.93) 0%, rgba(11, 48, 74, 0.96) 100%);
}
.abruf-karte h2 { margin: 0 0 0.5rem; color: #fff; }
.abruf-karte p { margin: 0 0 1.1rem; color: #d6e7f2; }
.abruf-karte .knopf-leise { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55); color: #fff; }
.abruf-karte .knopf-leise:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.abruf-karte-leise { background: var(--meer-hell); color: var(--text); }
.abruf-karte-leise::before { background: none; }
.abruf-karte-leise h2 { color: var(--meer); }
.abruf-karte-leise p { color: var(--text); margin-bottom: 0; }

@media (max-width: 900px) {
    .buehne { grid-template-columns: 1fr; padding: 2.5rem 1.2rem; }
    .buehne-text { margin-left: 0; }
    .buehne-bild { order: -1; }
    .geraet { width: 13.5rem; }
    .abschnitt { padding: 2.2rem 1.2rem; }
    .oeffentlich-kopf { padding: 0.6rem 1rem; }
    .oeffentlich-kopf .marke img { height: 2.1rem; }
}

@media (max-width: 560px) {
    /* Auf dem Telefon zählt der Weg ins Portal; der Sprung zu den Kursen
       steht ohnehin noch einmal in der Bühne. */
    .oeffentlich-kopf nav .knopf-leise { display: none; }
    .oeffentlich-kopf nav .knopf { padding: 0.45rem 0.8rem; font-size: 0.85rem; white-space: nowrap; }
    .oeffentlich-kopf .marke img { height: 1.8rem; }
    .kurskarte { flex-direction: column; align-items: flex-start; }
}
