/*
 * Grundgeruest der Gestaltung.
 *
 * Nur das, was jede Seite braucht: Farben, Schrift, Kopf, Karten, Knoepfe,
 * Formularfelder, Meldungen, Fuss. Alles Seitenspezifische kommt dazu, wenn
 * die Seite gebaut wird - lieber hier unten anbauen als in jeder Seite
 * eigene Stile.
 *
 * Die Farbwerte stehen in config.php und kommen als CSS-Variablen im Kopf
 * jeder Seite an (siehe seite_start). Die Werte hier sind nur der Rueckfall.
 */

:root {
    --dunkel:     #17110b;
    --kopf-text:  #f6efe2;
    --aktion:     #b8761f;
    --hell:       #d9911f;
    --akzent:     #f2b705;
    --fokus:      rgba(217, 145, 31, .35);

    --grund:      #faf6ef;
    --flaeche:    #ffffff;
    --rand:       #e6ddcc;
    --text:       #241b10;
    --text-leise: #806c56;

    --gut:        #3b7d4f;
    --gut-hell:   #eaf5ed;
    --schlecht:   #a33a3a;
    --schlecht-hell: #fbeded;

    --radius:     14px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--grund);
    color: var(--text);
    font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    -webkit-text-size-adjust: 100%;
}

a { color: var(--aktion); }
a:hover { color: var(--hell); }

:focus-visible {
    outline: 3px solid var(--fokus);
    outline-offset: 2px;
}

/* ------------------------------------------------------------------ Kopf */

.kopf {
    background: var(--dunkel);
    color: var(--kopf-text);
    padding: .7rem 0;
    padding-top: calc(.7rem + env(safe-area-inset-top));
}
.kopf-innen {
    max-width: 52rem;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .8rem;
    /* Nie umbrechen: der Kopf bleibt auch auf dem Handy eine Zeile. */
    flex-wrap: nowrap;
}

.marke {
    display: flex;
    align-items: center;
    gap: .7rem;
    color: inherit;
    text-decoration: none;
    min-width: 0;
}
/* Im Kopf klein, aber vollstaendig: "contain" statt "cover", damit auch
   hier nichts vom Namen fehlt. */
.marke-logo {
    width: auto;
    max-width: 78px;
    height: 38px;
    border-radius: 8px;
    object-fit: contain;
    flex: none;
}
.marke-glas { font-size: 1.6rem; }
.marke-text { display: flex; flex-direction: column; min-width: 0; }
.marke-text strong { font-size: 1.05rem; line-height: 1.2; }
.marke-text small {
    color: rgba(246, 239, 226, .7);
    font-size: .72rem;
    /* Der Untertitel ist lang - lieber abschneiden als umbrechen. */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Das Menue: ein <details>, das der Browser selbst auf- und zuklappt. */
.menue { position: relative; flex: none; }
.menue-knopf {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .4rem;
    border-radius: 10px;
}
.menue-knopf::-webkit-details-marker { display: none; }   /* kein Dreieck */
.menue-symbol { display: flex; flex-direction: column; gap: 4px; }
.menue-symbol span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--kopf-text);
    border-radius: 2px;
}
.menue-liste {
    position: absolute;
    right: 0;
    top: calc(100% + .5rem);
    z-index: 20;
    min-width: 12rem;
    display: flex;
    flex-direction: column;
    background: var(--flaeche);
    border: 1px solid var(--rand);
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .18);
    overflow: hidden;
}
.menue-liste a {
    padding: .7rem 1rem;
    color: var(--text);
    text-decoration: none;
    border-bottom: 1px solid var(--rand);
}
.menue-liste a:last-child { border-bottom: 0; }
.menue-liste a:hover { background: var(--grund); }
.menue-liste a.hier { color: var(--aktion); font-weight: 700; }

/* ----------------------------------------------------------- Inhalt, Karte */

.inhalt {
    max-width: 52rem;
    margin: 0 auto;
    padding: 1.2rem 1rem 3rem;
}
.inhalt.breit { max-width: 68rem; }

.karte {
    background: var(--flaeche);
    border: 1px solid var(--rand);
    border-radius: var(--radius);
    padding: 1.2rem;
    margin-bottom: 1.2rem;
}
.karte h1 { font-size: 1.4rem; margin: 0 0 .8rem; }
.karte h2 { font-size: 1.15rem; margin: 0 0 .8rem; }
.karte > :last-child { margin-bottom: 0; }

/* Die dunkle Variante fuer das, was ins Auge springen soll. */
.karte.gross {
    background:
        radial-gradient(700px 220px at 15% -60px, rgba(242, 183, 5, .18), transparent 70%),
        var(--dunkel);
    border-color: rgba(255, 255, 255, .08);
    color: var(--kopf-text);
    padding: 1.8rem 1.5rem;
    text-align: center;
}
.karte.gross h1 { font-size: 1.9rem; }
.karte.gross a { color: var(--akzent); }

.leer { color: var(--text-leise); font-size: .92rem; }
.hilfe { color: var(--text-leise); }
.hinweis-klein { color: var(--text-leise); font-size: .85rem; }

/* ---------------------------------------------------------------- Knoepfe */

.knopf {
    display: inline-block;
    padding: .65rem 1.1rem;
    border: 1px solid var(--aktion);
    border-radius: 10px;
    background: var(--aktion);
    color: #fff;
    font: inherit;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}
.knopf:hover { background: var(--hell); border-color: var(--hell); color: #fff; }
.knopf.hell  { background: transparent; color: var(--aktion); }
.knopf.hell:hover { background: var(--grund); color: var(--hell); }
.knopf.leise {
    background: transparent;
    border-color: var(--rand);
    color: var(--text-leise);
}
.knopf.leise:hover { background: var(--grund); color: var(--schlecht); }
.knopf.klein { padding: .35rem .7rem; font-size: .88rem; }

/* Der eine grosse Knopf, um den es auf einer Seite geht. */
.gross-knopf {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    padding: 1.1rem;
    font-size: 1.15rem;
    font-weight: 700;
}
.gross-knopf .zeichen { font-size: 1.5rem; }

/* -------------------------------------------------------------- Formulare */

.formular { display: flex; flex-direction: column; gap: .9rem; }

.feld { display: flex; flex-direction: column; gap: .3rem; }
.feld > span { font-size: .85rem; color: var(--text-leise); }

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"],
input[type="time"],
input[type="password"],
select,
textarea {
    width: 100%;
    padding: .6rem .7rem;
    border: 1px solid var(--rand);
    border-radius: 10px;
    background: var(--flaeche);
    color: var(--text);
    font: inherit;
}
textarea { min-height: 6rem; resize: vertical; }

.feld-reihe { display: flex; flex-wrap: wrap; gap: .9rem; }
.feld-reihe > .feld { flex: 1 1 12rem; }

form.inline { display: inline-block; }

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

.meldung {
    margin: 0 0 1.2rem;
    padding: .7rem 1rem;
    border: 1px solid var(--rand);
    border-radius: 10px;
    background: var(--flaeche);
}
.meldung.gut    { background: var(--gut-hell);      border-color: #cbe4d1; color: #2c5c39; }
.meldung.fehler { background: var(--schlecht-hell); border-color: #e9c6c6; color: var(--schlecht); }

/* Die Testzeit der Verwaltung - soll auffallen, ist aber kein Fehler. */
.testzeit {
    margin: 0 0 1rem;
    padding: .5rem .9rem;
    border-radius: 10px;
    background: #fff3cd;
    border: 1px solid #f0d48a;
    color: #6b4f00;
    font-size: .9rem;
}
.testzeit a { color: inherit; }

/* ------------------------------------------------------------------- Fuss */

.fuss {
    max-width: 52rem;
    margin: 0 auto;
    padding: 1.5rem 1rem calc(2rem + env(safe-area-inset-bottom));
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    color: var(--text-leise);
    font-size: .85rem;
}

/* ---------------------------------------------------------------- Kleines */

@media (max-width: 26rem) {
    .marke-text small { display: none; }
    .karte { padding: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
}

/* ══════════════════════════════════════════════════════════ Die Tür ══ */
/*
 * Was sieht, wer nicht angemeldet ist: Logo, Name, ein Knopf. Sonst
 * nichts (Wunsch des Nutzers) - deshalb steht das hier allein und
 * mittig, ohne Karte drumherum.
 */

.tuer {
    max-width: 24rem;
    margin: 8vh auto 0;
    text-align: center;
}
/* Das Vereinslogo ist quer (640x361). Es behaelt sein Seitenverhaeltnis -
   in ein Quadrat gezwaengt wuerde der Name an den Seiten abgeschnitten. */
.tuer-logo {
    width: 100%;
    max-width: 320px;
    height: auto;
    border-radius: 18px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, .18);
}
.tuer-glas { font-size: 5rem; line-height: 1; }
.tuer h1 { margin: 1.2rem 0 .3rem; font-size: 1.8rem; }
.tuer-unter { margin: 0 0 2rem; color: var(--text-leise); }

/* ═══════════════════════════════════════════════════ Was jetzt dran ist ══ */

.karte.jetzt {
    border: 2px solid var(--aktion);
    box-shadow: 0 6px 24px rgba(232, 128, 30, .16);
}
.karte.jetzt h1 { font-size: 1.5rem; margin: 0 0 .7rem; }
.jetzt-label {
    margin: 0 0 .4rem;
    font-size: .72rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--aktion);
    font-weight: 700;
}
.jetzt-ort { margin: 0 0 .8rem; font-size: 1.1rem; }
.karte.jetzt .meldung { margin: 0 0 .9rem; }
.karte.jetzt .countdown { margin: 1rem 0; }

/* Die Karte des Treffpunkts - nur anschauen, nicht groß. */
.jetzt-karte {
    height: 220px;
    margin: 0 0 .9rem;
    border: 1px solid var(--rand);
    border-radius: 12px;
    overflow: hidden;
    background: var(--grund);
}

/* "Wie letzte Woche?" - der Abkürzungsknopf. */
.wie-letzte {
    margin-top: 1rem;
    padding-top: .9rem;
    border-top: 1px solid var(--rand);
}
.wie-letzte .hilfe { margin: 0 0 .6rem; font-size: .9rem; }

.bier-hinweis {
    margin: .9rem 0 0;
    padding: .6rem .9rem;
    border-radius: 10px;
    background: rgba(232, 128, 30, .1);
    border: 1px solid rgba(232, 128, 30, .25);
    font-size: .95rem;
}
.karte.gross .bier-hinweis {
    background: rgba(255, 255, 255, .07);
    border-color: rgba(255, 255, 255, .12);
}
.karte.gross .bier-hinweis strong { color: var(--akzent); }

.tafel-aufgabe {
    margin: .7rem 0 0;
    font-size: .95rem;
    color: rgba(251, 239, 216, .85);
}
.karte.hausaufgabe { border-left: 4px solid var(--akzent); }

/* ═════════════════════════════════════════════════════════ Countdown ══ */

.countdown {
    display: flex;
    justify-content: center;
    gap: .6rem;
    margin: 1.4rem 0 .4rem;
}
.countdown div {
    min-width: 4.2rem;
    padding: .6rem .4rem .45rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .1);
    text-align: center;
}
.countdown strong {
    display: block;
    font-size: 1.9rem;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    color: var(--akzent);
}
.countdown span {
    font-size: .64rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    opacity: .7;
}
/* Auf hellem Grund dreht sich das um: heller Kasten, dunkle Zahl. */
.karte:not(.gross) .countdown div {
    background: var(--grund);
    border-color: var(--rand);
}
.karte:not(.gross) .countdown strong { color: var(--aktion); }
.countdown-text { text-align: center; font-weight: 700; color: var(--akzent); }

/* ════════════════════════════════════════════════════════ Assistenten ══ */

.wizard { margin: 0; }
.wizard-kopf { margin-bottom: .8rem; }
.wizard-zahl {
    margin: 0 0 .5rem;
    font-size: .78rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--text-leise);
    font-weight: 700;
}
.wizard-punkte {
    display: flex;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.wizard-punkte li {
    flex: 1;
    height: 5px;
    border-radius: 99px;
    background: var(--rand);
}
.wizard-punkte li.fertig { background: var(--aktion); }
.wizard-punkte li.hier   { background: var(--hell); }

.wizard-karte h1 { font-size: 1.45rem; }

.wizard-fuss {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.2rem;
}
.wizard-fuss .knopf { flex: 0 0 auto; }
.wizard-fuss button { min-width: 9rem; }

/* Der Zurück-Pfeil oben: ohne Browserleiste der einzige Weg zurück. */
.zurueck-leiste { margin: 0 0 .9rem; }
.zurueck-leiste a {
    display: inline-block;
    padding: .35rem .7rem .35rem 0;
    color: var(--text-leise);
    text-decoration: none;
    font-size: .92rem;
}
.zurueck-leiste a:hover { color: var(--aktion); }

/* ═══════════════════════════════════════════════ Auswahl mit Zeichen ══ */

.wahl-gross { display: flex; flex-direction: column; gap: .7rem; }
.wahl-gross.zwei { flex-direction: row; }
.wahl-gross.zwei .wahl { flex: 1; flex-direction: column; text-align: center; }
.wahl-gross.zwei .wahl-zeichen { font-size: 2.2rem; }

.wahl {
    display: flex;
    align-items: center;
    gap: .9rem;
    padding: .9rem 1rem;
    border: 2px solid var(--rand);
    border-radius: 12px;
    cursor: pointer;
    background: var(--flaeche);
}
.wahl:hover { border-color: var(--hell); }
/* Die Markierung folgt dem echten Radiobutton, nicht dem, was der Server
   beim Aufbau der Seite wusste: Der Knopf selbst ist unsichtbar, und ohne
   diese Regel bliebe beim Antippen die alte Wahl hervorgehoben. */
.wahl:has(input:checked) { border-color: var(--aktion); background: rgba(232, 128, 30, .07); }
.wahl input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.wahl input:focus-visible + .wahl-zeichen { outline: 3px solid var(--fokus); }
.wahl-zeichen { font-size: 1.7rem; line-height: 1; }
.wahl-text { display: flex; flex-direction: column; }
.wahl-text small { color: var(--text-leise); }
.wahl.klein { padding: .5rem .8rem; }

.wahl-reihe { display: flex; flex-wrap: wrap; gap: .6rem; }

/* Vorschläge zum Antippen unter einem Textfeld. */
.vorschlaege { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .6rem; }
.vorschlag {
    border: 1px solid var(--rand);
    background: var(--grund);
    border-radius: 99px;
    padding: .35rem .8rem;
    font: inherit;
    font-size: .85rem;
    color: var(--text-leise);
    cursor: pointer;
}
.vorschlag:hover { border-color: var(--aktion); color: var(--aktion); }

.aufgabe-text {
    padding: .8rem 1rem;
    border-radius: 10px;
    background: var(--grund);
    border: 1px solid var(--rand);
}

/* Die Übersicht im letzten Schritt. */
.uebersicht { margin: 0; }
.uebersicht dt {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-leise);
    margin-top: .9rem;
}
.uebersicht dd { margin: .15rem 0 0; font-size: 1.05rem; }

/* ══════════════════════════════════════════════════════════ Ortswahl ══ */

.ortskarte {
    height: 340px;
    margin-bottom: 1rem;
    border: 1px solid var(--rand);
    border-radius: 12px;
    overflow: hidden;
    background: var(--grund);
}
.neuer-ort {
    margin-bottom: 1rem;
    padding: .9rem 1rem;
    border: 2px dashed var(--aktion);
    border-radius: 12px;
    background: rgba(232, 128, 30, .05);
}

.ort-liste { list-style: none; margin: 0 0 1rem; padding: 0; }
.ort-liste li { border-top: 1px solid var(--rand); padding: .7rem 0; }
.ort-liste li:first-child { border-top: 0; }
/* Wie bei .wahl: die Hinterlegung haengt am angetippten Vorschlag, nicht
   an dem, der beim Aufbau der Seite gespeichert war. */
.ort-liste li:has(input:checked) { background: rgba(232, 128, 30, .06); border-radius: 10px; padding-left: .6rem; padding-right: .6rem; }

.ort-wahl { display: flex; gap: .8rem; cursor: pointer; align-items: flex-start; }
.ort-wahl input { margin-top: .35rem; flex: none; }
.ort-text { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.ort-text small { color: var(--text-leise); }
.ort-person { display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; }

/* ═══════════════════════════════════════════════════════ Wer ist dabei ══ */

.dabei-liste, .personen, .wer-liste, .mitglied-liste, .abend-liste,
.termin-liste, .admin-liste, .treue-liste, .treffpunkt-liste,
.nachricht-liste, .pflege-liste, .punkte-liste, .download-liste, .spruch-liste {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dabei-liste li {
    display: flex;
    gap: .8rem;
    align-items: flex-start;
    padding: .7rem 0;
    border-top: 1px solid var(--rand);
}
.dabei-liste li:first-child { border-top: 0; }
.dabei-text { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.dabei-text small { display: flex; flex-wrap: wrap; gap: .4rem; }
.dabei-grund { color: var(--text-leise); font-style: italic; }

.person-name { font-weight: 600; }
.person-notiz { color: var(--text-leise); font-size: .88rem; }

.personen li { display: flex; align-items: center; gap: .6rem; padding: .35rem 0; }

.marker {
    display: inline-block;
    padding: .1rem .5rem;
    border-radius: 99px;
    background: var(--grund);
    border: 1px solid var(--rand);
    font-size: .78rem;
    color: var(--text-leise);
    white-space: nowrap;
}
.marker.ist-da { background: var(--gut-hell); border-color: #cbe4d1; color: #2c5c39; }
.marker.fehlt  { background: var(--schlecht-hell); border-color: #e9c6c6; color: var(--schlecht); }

.plakette {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    font-size: .8rem;
    font-weight: 700;
    flex: none;
}
.plakette.klein { width: 1.6rem; height: 1.6rem; font-size: .6rem; }
.plakette.gross { width: 3rem; height: 3rem; font-size: 1.1rem; }

.zahl-gross {
    float: right;
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1;
    color: var(--aktion);
}

/* ══════════════════════════════════════════════════════ Anmeldeliste ══ */

.wer-liste li { border-top: 1px solid var(--rand); }
.wer-liste li:first-child { border-top: 0; }
.wer-liste a {
    display: flex;
    align-items: center;
    gap: .8rem;
    padding: .8rem .2rem;
    text-decoration: none;
    color: var(--text);
}
.wer-liste a:hover { background: var(--grund); }

/* ═══════════════════════════════════════════════ Listen mit Pfeil ══ */

.mitglied-liste li, .abend-liste li, .termin-liste li, .admin-liste li {
    border-top: 1px solid var(--rand);
}
.mitglied-liste li:first-child, .abend-liste li:first-child,
.termin-liste li:first-child, .admin-liste li:first-child { border-top: 0; }

.mitglied-liste a, .abend-liste a, .termin-liste a, .admin-liste a {
    display: flex;
    align-items: center;
    gap: .8rem;
    padding: .75rem .2rem;
    text-decoration: none;
    color: var(--text);
}
.mitglied-liste a:hover, .abend-liste a:hover,
.termin-liste a:hover, .admin-liste a:hover { background: var(--grund); }

.mitglied-text, .abend-text, .admin-text {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    flex: 1;
    min-width: 0;
}
.mitglied-text small, .abend-text small, .admin-text small { color: var(--text-leise); }
.admin-text small { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.admin-pfeil { color: var(--text-leise); }
.admin-liste.knapp a { padding: .9rem .2rem; }

.mitglied-punkte, .abend-punkte {
    font-weight: 700;
    font-size: 1.1rem;
    min-width: 2.4rem;
    text-align: right;
}
.abend-punkte.plus  { color: var(--gut); }
.abend-punkte.minus { color: var(--schlecht); }
.abend-datum { min-width: 6.5rem; color: var(--text-leise); font-size: .9rem; }

.termin-liste a { justify-content: space-between; }
.termin-datum { min-width: 7rem; color: var(--text-leise); font-size: .9rem; }
.termin-ort { flex: 1; min-width: 0; }
.termin-zahl { color: var(--text-leise); font-size: .85rem; white-space: nowrap; }
.termin-liste li.ist-abgesagt a { opacity: .55; text-decoration: line-through; }
.ohne-motto { color: var(--text-leise); font-style: italic; }

/* ══════════════════════════════════════════════════════════ Tafel ══ */

.tafel-label {
    margin: 0 0 .4rem;
    font-size: .72rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--akzent);
}
.tafel-wann { margin: 0; color: rgba(251, 239, 216, .82); }
.tafel-fuss {
    margin: 1rem 0 0;
    font-size: .88rem;
    color: rgba(251, 239, 216, .6);
}
/* Erklärtexte stehen auf der dunklen Tafel sonst fast unsichtbar da. */
.karte.gross .hilfe,
.karte.gross .hinweis-klein { color: rgba(251, 239, 216, .72); }
.karte.gross .leer { color: rgba(251, 239, 216, .55); }
.tafel-ort  { margin: .6rem 0 0; color: rgba(251, 239, 216, .82); }
.tafel-text { margin-top: 1rem; text-align: left; font-size: .95rem; }
.tafel-mehr { margin: 1.1rem 0 0; }
.karte.gross.abgesagt h1 { text-decoration: line-through; opacity: .75; }
.karte.gross.abgesagt .tafel-label { color: #f0a0a0; }

/* ══════════════════════════════════════════════════════════ Spruch ══ */

.spruch {
    margin-top: 1.2rem;
    padding: 1.1rem 1.2rem 1rem;
    border-radius: 12px;
    background: var(--dunkel);
    color: var(--kopf-text);
    text-align: center;
}
.spruch-label {
    margin: 0 0 .5rem;
    font-size: .72rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--akzent);
}
.spruch-text {
    margin: 0;
    padding: 0;
    border: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.15rem;
    line-height: 1.5;
    font-style: italic;
}
.spruch-prost { margin: .7rem 0 0; font-weight: 700; color: var(--akzent); }

.spruch-liste li {
    display: flex;
    gap: .8rem;
    align-items: flex-start;
    padding: .7rem 0;
    border-top: 1px solid var(--rand);
}
.spruch-liste li:first-child { border-top: 0; }
.spruch-liste blockquote {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-style: italic;
}

/* ══════════════════════════════════════════════════════════ Ankunft ══ */

.ankunft { margin-top: 1rem; }
.ankunft-status {
    margin: 0 0 .7rem;
    padding: .7rem .9rem;
    border-radius: 10px;
    background: var(--grund);
    border: 1px solid var(--rand);
    text-align: center;
    font-size: .95rem;
    /* Hier wird getippt, wenn das GPS streikt - deshalb kein Textcursor. */
    cursor: default;
    user-select: none;
}
.ankunft-status.ist-da {
    background: var(--gut-hell);
    border-color: #cbe4d1;
    color: #2c5c39;
    font-weight: 700;
}

/* ═══════════════════════════════════════════════════════════ Fotos ══ */

.foto-feld { margin: .8rem 0; }
.foto-datei {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
}
.foto-knopf { cursor: pointer; }
.foto-datei:focus-visible + .foto-knopf { outline: 3px solid var(--fokus); outline-offset: 2px; }
.foto-vorschau { margin-top: .8rem; text-align: center; }
.foto-vorschau img { max-height: 320px; border-radius: 12px; }
.foto-gross { text-align: center; margin: 0 0 1rem; }
.foto-gross img { max-height: 60vh; border-radius: 12px; }

.galerie {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: .8rem;
}
.galerie figure { margin: 0; }
.galerie img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 10px;
    background: var(--grund);
    display: block;
}
.galerie figcaption { font-size: .8rem; color: var(--text-leise); margin-top: .3rem; }
.galerie figcaption small { display: block; opacity: .8; }
.galerie-kopf small {
    display: block;
    font-size: .8rem;
    font-weight: 400;
    color: var(--text-leise);
}

.download-zeile { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 .8rem; }
.download-liste li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .8rem;
    padding: .6rem 0;
    border-top: 1px solid var(--rand);
}
.download-liste li:first-child { border-top: 0; }

/* ════════════════════════════════════════════════════════ Rückblick ══ */

.rueckblick h2 small {
    display: block;
    font-size: .78rem;
    font-weight: 400;
    color: var(--text-leise);
}
.rueckblick-motto {
    margin: 0 0 .6rem;
    font-family: Georgia, "Times New Roman", serif;
    font-style: italic;
    font-size: 1.1rem;
}
.rueckblick-wer { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; }
.galerie.klein { grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: .5rem; }
.galerie.klein img { aspect-ratio: 1 / 1; border-radius: 8px; }

/* ═══════════════════════════════════════════════════════ Statistik ══ */

.zahlen-reihe {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr));
    gap: .8rem;
    margin-bottom: 1.2rem;
}
.zahl-kachel {
    background: var(--flaeche);
    border: 1px solid var(--rand);
    border-radius: 12px;
    padding: .9rem;
    text-align: center;
}
.zahl-kachel strong { display: block; font-size: 1.6rem; color: var(--aktion); }
.zahl-kachel span { font-size: .78rem; color: var(--text-leise); }

.rangliste { list-style: none; margin: 0; padding: 0; counter-reset: rang; }
.rangliste li {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .6rem 0;
    border-top: 1px solid var(--rand);
}
.rangliste li:first-child { border-top: 0; }
.rang-platz {
    min-width: 1.6rem;
    font-weight: 700;
    color: var(--text-leise);
    text-align: right;
}
.rangliste li:first-child .rang-platz { color: var(--aktion); font-size: 1.2rem; }
.rang-name { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.rang-name a { color: var(--text); text-decoration: none; font-weight: 600; }
.rang-name a:hover { color: var(--aktion); }
.rang-name small { color: var(--text-leise); }
.rang-punkte { font-size: 1.2rem; font-weight: 700; color: var(--aktion); }

.jahr-wahl { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .9rem; }

.treue-liste li {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .5rem 0;
}
.treue-balken {
    flex: 1;
    height: 8px;
    border-radius: 99px;
    background: var(--rand);
    overflow: hidden;
}
.treue-balken span { display: block; height: 100%; background: var(--aktion); }
.treue-zahl { font-size: .85rem; color: var(--text-leise); min-width: 3rem; text-align: right; }

.treffpunkt-liste li {
    display: flex;
    justify-content: space-between;
    gap: .8rem;
    padding: .5rem 0;
    border-top: 1px solid var(--rand);
}
.treffpunkt-liste li:first-child { border-top: 0; }

/* ═══════════════════════════════════════════════════════════ Hilfe ══ */

.hilfe-block { margin-bottom: .8rem; }
.hilfe-block > summary {
    cursor: pointer;
    padding: .6rem .2rem;
    border-bottom: 1px solid var(--rand);
}
.hilfe-schritte, .hilfe-liste { margin: .6rem 0 0; padding-left: 1.3rem; }
.hilfe-schritte li, .hilfe-liste li { margin-bottom: .5rem; }
.hilfe-liste { list-style: disc; }

/* ═══════════════════════════════════════════════════════ Verwaltung ══ */

.admin-leiste {
    display: flex;
    flex-wrap: wrap;
    gap: .3rem;
    margin-bottom: 1.2rem;
    padding-bottom: .8rem;
    border-bottom: 1px solid var(--rand);
}
.admin-leiste a {
    padding: .4rem .8rem;
    border-radius: 99px;
    text-decoration: none;
    color: var(--text-leise);
    font-size: .9rem;
    border: 1px solid transparent;
}
.admin-leiste a:hover { background: var(--grund); color: var(--aktion); }
.admin-leiste a.hier {
    background: var(--aktion);
    border-color: var(--aktion);
    color: #fff;
    font-weight: 600;
}
.admin-leiste a.raus { margin-left: auto; }

.abend-kopf {
    margin: 0 0 1rem;
    font-weight: 700;
    color: var(--text-leise);
}

.pflege-liste li { padding: .7rem 0; border-top: 1px solid var(--rand); }
.pflege-liste li:first-child { border-top: 0; }
.pflege-liste li.inaktiv { opacity: .55; }
.pflege-form { display: flex; flex-direction: column; gap: .5rem; }
.pflege-knoepfe { display: flex; flex-wrap: wrap; gap: .4rem; }

.punkte-liste li { border-top: 1px solid var(--rand); }
.punkte-liste li:first-child { border-top: 0; }
.punkte-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .7rem;
    padding: .6rem 0;
}
.punkte-name { display: flex; align-items: center; gap: .5rem; flex: 1; min-width: 10rem; }
.punkte-name small { color: var(--text-leise); }
.punkte-haken { display: flex; gap: .8rem; font-size: .9rem; }
.punkte-haken label { display: flex; align-items: center; gap: .25rem; cursor: pointer; }
.punkte-zahl { font-weight: 700; min-width: 2.2rem; text-align: right; }
.punkte-zahl.plus  { color: var(--gut); }
.punkte-zahl.minus { color: var(--schlecht); }

.nachricht-liste li { padding: .6rem 0; border-top: 1px solid var(--rand); }
.nachricht-liste li:first-child { border-top: 0; }
.nachricht-liste li.inaktiv { opacity: .6; }
.nachricht-liste small { display: block; color: var(--text-leise); margin-top: .2rem; }

.befehl {
    background: var(--dunkel);
    color: var(--kopf-text);
    padding: .9rem 1rem;
    border-radius: 10px;
    overflow-x: auto;
    font-size: .82rem;
    line-height: 1.6;
}
.link-kopie {
    font-family: ui-monospace, Menlo, Consolas, monospace;
    font-size: .75rem;
    word-break: break-all;
    color: var(--text-leise);
}

.feld-haken { display: flex; align-items: center; gap: .5rem; }
fieldset.feld { border: 0; padding: 0; margin: 0; }
fieldset.feld legend { font-size: .85rem; color: var(--text-leise); padding: 0 0 .3rem; }

/* ══════════════════════════════════════════════════════════ Schmal ══ */

.karte.schmal { max-width: 26rem; margin-left: auto; margin-right: auto; }

@media (max-width: 34rem) {
    .wahl-gross.zwei { flex-direction: column; }
    .wizard-fuss button { min-width: 7rem; }
    .punkte-form { gap: .5rem; }
    .galerie { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
}

/* Nur für Screenreader - die Beschriftungen der Fortschrittspunkte. */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
