/* FROST – gemeinsames Layout und Formulare. Farben aus docs/corporate-design.md */

:root {
    --ehv-gruen: #009036;
    --ehv-rot: #e2001a;
    --ehv-weiss: #ffffff;
    --text: #1a1a1a;
    --text-leise: #5a6470;
    --hintergrund: #f4f7fa;
    --rand: #d5dce3;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    background: var(--hintergrund);
    line-height: 1.5;
}

.kopf {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 1rem;
    padding: 0.5rem 1.25rem;
    background: var(--ehv-weiss);
    border-bottom: 3px solid var(--ehv-gruen);
}

.kopf__marke {
    font-weight: 700;
    letter-spacing: 0.25em;
    color: var(--text);
    text-decoration: none;
}

.kopf__hinweis {
    padding: 0.1rem 0.7rem;
    border: 1px solid var(--ehv-rot);
    border-radius: 999px;
    font-size: 0.8rem;
    color: var(--ehv-rot);
}

.inhalt {
    max-width: 48rem;
    margin: 2rem auto;
    padding: 0 1rem;
}

.karte {
    padding: 1.5rem;
    background: var(--ehv-weiss);
    border: 1px solid var(--rand);
    border-radius: 8px;
    /* Eine zu breite Tabelle bleibt im weißen Rahmen und scrollt dort, statt über den Rand hinauszulaufen */
    overflow-x: auto;
}

.karte h1 {
    margin-top: 0;
    font-size: 1.5rem;
}

label {
    display: block;
    margin: 1rem 0 0.25rem;
    font-weight: 600;
}

/* Alle Eingabefelder gleich: Textfelder, Datum, Zahl, Suche, Auswahl und Textfeld mehrzeilig (gleiche Schrift, Höhe, Rahmen, Rundung) */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="url"],
input[type="number"],
input[type="date"],
select,
textarea {
    width: 100%;
    padding: 0.6rem 0.7rem;
    font: inherit;
    line-height: 1.3;
    color: var(--text);
    background-color: var(--ehv-weiss);
    border: 1px solid var(--rand);
    border-radius: 6px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="url"],
input[type="number"],
input[type="date"],
select {
    min-height: 2.75rem;
}

/* Auswahlfelder ohne die eigene Darstellung des Systems; der Pfeil entsteht aus zwei Verläufen (keine Bilddatei) */
select {
    padding-right: 2.2rem;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--text-leise) 50%), linear-gradient(135deg, var(--text-leise) 50%, transparent 50%);
    background-position: calc(100% - 1.15rem) 50%, calc(100% - 0.8rem) 50%;
    background-size: 0.35rem 0.35rem, 0.35rem 0.35rem;
    background-repeat: no-repeat;
}

select:disabled,
input:disabled,
textarea:disabled {
    color: var(--text-leise);
    background-color: var(--hintergrund);
    cursor: not-allowed;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--ehv-gruen);
    outline-offset: 2px;
}

.knopf {
    display: inline-block;
    margin-top: 1.25rem;
    padding: 0.6rem 1.2rem;
    font: inherit;
    font-weight: 600;
    color: var(--ehv-weiss);
    background: var(--ehv-gruen);
    border: 0;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
}

.knopf--leise {
    margin: 0;
    padding: 0.3rem 0.8rem;
    color: var(--text);
    background: transparent;
    border: 1px solid var(--rand);
}

.meldung {
    padding: 0.7rem 0.9rem;
    border-radius: 6px;
}

.meldung--fehler {
    color: #7a0010;
    background: #fdecee;
    border: 1px solid var(--ehv-rot);
}

.meldung--hinweis {
    background: #eef7f1;
    border: 1px solid var(--ehv-gruen);
}

.schluessel {
    margin: 0.5rem 0;
    padding: 0.6rem 0.8rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 1.1rem;
    letter-spacing: 0.1em;
    background: var(--hintergrund);
    border: 1px dashed var(--rand);
    border-radius: 6px;
    word-break: break-all;
}

.codes {
    columns: 2;
    padding: 0.8rem 1rem 0.8rem 2.2rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    background: var(--hintergrund);
    border-radius: 6px;
}

.qr {
    width: 260px;
    max-width: 100%;
    margin: 0.75rem 0;
    padding: 10px;
    background: var(--ehv-weiss);
    border: 1px solid var(--rand);
    border-radius: 6px;
}

.qr svg {
    display: block;
    width: 100%;
    height: auto;
}

/* Navigation, Tabellen und Rechte-Auswahl (Rollen und Rechte) */

.menue {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
}

.menue__liste {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.menue__punkt--rechts {
    margin-left: auto;
}

.menue__punkt--rechts + .menue__punkt--rechts {
    margin-left: 0;
}

.menue a,
.menue summary,
.menue__abmelden {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.8rem;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 6px;
    color: var(--text);
    background: transparent;
    font: inherit;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    list-style: none;
}

.menue summary::-webkit-details-marker {
    display: none;
}

.menue a:hover,
.menue summary:hover,
.menue__abmelden:hover {
    background: #eef2f4;
}

.menue a[aria-current="page"],
.menue__gruppe--aktiv > summary {
    border-bottom-color: var(--ehv-gruen);
    font-weight: 600;
}

.menue__gruppe {
    position: relative;
}

.menue__gruppe .icon:last-child {
    transition: transform 0.15s;
}

.menue__gruppe[open] > summary .icon:last-child {
    transform: rotate(180deg);
}

.menue__unter {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 20;
    min-width: 16rem;
    margin: 0.25rem 0 0;
    padding: 0.35rem;
    list-style: none;
    background: var(--ehv-weiss);
    border: 1px solid var(--rand);
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.menue__punkt--rechts .menue__unter {
    left: auto;
    right: 0;
}

.menue__unter form {
    margin: 0;
}

.menue__abmelden {
    width: 100%;
}

.menue-knopf {
    display: none;
    align-items: center;
    gap: 0.45rem;
    min-height: 2.75rem;
    margin-left: auto;
    padding: 0.4rem 0.9rem;
    border: 1px solid var(--rand);
    border-radius: 6px;
    color: var(--text);
    background: var(--ehv-weiss);
    font: inherit;
    cursor: pointer;
}

.icon {
    flex: 0 0 auto;
    width: 1em;
    height: 1em;
    fill: currentColor;
    vertical-align: -0.125em;
}

/* Logo des Verbands statt eines Symbols (farbig, etwas größer, damit man es erkennt) */
.icon--logo {
    width: 1.4em;
    height: 1.4em;
    object-fit: contain;
    vertical-align: -0.3em;
}

/* Schmale Fenster und Smartphones: Menü hinter dem Hamburger-Knopf, Bereiche klappen untereinander auf.
   Ohne JavaScript (html ohne Klasse "js") bleibt das Menü sichtbar. */
@media (max-width: 900px) {
    .js .menue-knopf {
        display: inline-flex;
    }

    .js .menue {
        display: none;
        flex-basis: 100%;
    }

    .js .menue.menue--offen {
        display: block;
    }

    .menue {
        flex-basis: 100%;
    }

    .menue__liste {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding-top: 0.5rem;
    }

    .menue__punkt--rechts {
        margin-left: 0;
    }

    .menue a,
    .menue summary,
    .menue__abmelden {
        min-height: 2.75rem;
    }

    .menue__unter,
    .menue__punkt--rechts .menue__unter {
        position: static;
        min-width: 0;
        margin: 0;
        padding: 0 0 0.25rem 1.5rem;
        border: 0;
        box-shadow: none;
    }
}

.inhalt--breit {
    /* Tabellen und breite Seiten folgen der Fensterbreite; nur ein Seitenrand bleibt */
    max-width: none;
    padding: 0 2rem;
}

.tabelle {
    width: 100%;
    border-collapse: collapse;
}

.tabelle th,
.tabelle td {
    padding: 0.5rem 0.6rem;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--rand);
}

.tabelle .zahl {
    text-align: right;
}

.tabelle .inaktiv {
    color: var(--text-leise);
}

.marke {
    display: inline-block;
    padding: 0 0.5rem;
    font-size: 0.8rem;
    background: var(--hintergrund);
    border: 1px solid var(--rand);
    border-radius: 999px;
}

.marke--inaktiv {
    color: var(--text-leise);
    text-decoration: line-through;
}

.leise {
    color: var(--text-leise);
    font-size: 0.9rem;
}

.rechte {
    margin: 1rem 0 0;
    padding: 0.5rem 1rem 0.8rem;
    border: 1px solid var(--rand);
    border-radius: 6px;
}

.rechte legend {
    padding: 0 0.4rem;
    font-weight: 600;
}

.auswahl {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    margin: 0.6rem 0 0;
    font-weight: 400;
}

.auswahl input {
    margin-top: 0.3rem;
}

/* Formular «Funktion im Verein»: Bereiche und Hakenreihen nebeneinander, Datumsfelder als Paar, Nachwuchsklassen aufklappbar */
.bereiche {
    display: flex;
    flex-wrap: wrap;
    gap: 0 1.75rem;
}

.feldpaar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
    gap: 0 1rem;
}

.feldpaar--unten {
    align-items: end;
}

.feldpaar--unten .knopf {
    margin-top: 0;
}

.klassen {
    margin-top: 0.75rem;
}

.klassen summary {
    cursor: pointer;
}

.klassen .auswahl {
    display: inline-flex;
    margin-right: 1.25rem;
}

.trenner {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--rand);
}

.knopf--warnung {
    background: var(--ehv-rot);
}

h2 {
    margin: 1.5rem 0 0;
    font-size: 1.15rem;
}

/* Verweis als Knopf neben dem Speichern-Knopf */
a.knopf--leise {
    margin: 1.25rem 0 0 0.5rem;
    padding: 0.55rem 1.2rem;
    font-weight: 400;
}

/* Benutzerverwaltung und Protokoll */

input[readonly],
textarea[readonly] {
    background: var(--hintergrund);
}

.nachricht {
    resize: vertical;
}

.karte--hervor {
    margin-bottom: 1.5rem;
    border: 2px solid var(--ehv-gruen);
}

.karte--hervor h2 {
    margin-top: 0;
}

.knopf--abstand {
    margin-top: 0.75rem;
}

.angaben {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 0.4rem 1.5rem;
    margin: 0 0 1rem;
}

.angaben dt {
    color: var(--text-leise);
}

.angaben dd {
    margin: 0;
}

.aktion {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.25rem 1rem;
}

.aktion .knopf {
    margin-top: 0.75rem;
}

/* Filter als Karte: schmaler Rahmen, leicht getönte Fläche, Felder und Knöpfe auf einer Linie */
.filter {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
    gap: 0 1rem;
    align-items: end;
    margin-bottom: 1.25rem;
    padding: 0.25rem 1rem 1rem;
    background: var(--hintergrund);
    border: 1px solid var(--rand);
    border-radius: 8px;
}

.filter label {
    margin-top: 0.5rem;
}

/* breitere Spalten, wenn ein Feld lange Auswahltexte hat (zum Beispiel die Art der Abstimmung) */
.filter--breit {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
}

.filter__knoepfe .knopf {
    margin-top: 0.75rem;
}

.filter__knoepfe a.knopf--leise {
    margin-top: 0.75rem;
}

.reiter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--rand);
}

.reiter a {
    padding: 0.4rem 1rem;
    color: var(--text);
    text-decoration: none;
    border: 1px solid transparent;
    border-bottom: 0;
    border-radius: 4px 4px 0 0;
}

.reiter a:hover {
    background: var(--hintergrund);
}

.reiter .reiter__aktiv {
    font-weight: 600;
    border-color: var(--rand);
    border-bottom: 3px solid var(--ehv-rot);
}

.keinumbruch {
    white-space: nowrap;
}

.blaettern {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
}

/* 2FA-Einrichtung: Wege zum Hinzufügen in der App */

.wege {
    padding-left: 1.2rem;
}

.wege > li {
    margin: 0.75rem 0;
}

/* Unterschriften und Stempel: Vorschau auf Schachbrett, damit die Durchsichtigkeit zu sehen ist */

.vorschauraster {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
    gap: 1rem;
}

.vorschau--aus {
    opacity: 0.55;
}

.vorschau__bild {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 8rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    padding: 0.5rem;
}

.vorschau__bild img {
    max-width: 100%;
    max-height: 7rem;
}

.vorschau__bild--papier {
    background: #faf9f5;
}

/* Stand-Marken in Listen (z. B. Registerauszug hochgeladen, Vorstand eingetragen) */
.stand {
    display: inline-block;
    min-width: 1.9rem;
    margin-right: 0.25rem;
    padding: 0.05rem 0.4rem;
    border: 1px solid var(--rand);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    color: #6b6b6b;
    background: transparent;
}

.stand--ja {
    border-color: var(--ehv-gruen);
    color: var(--ehv-weiss);
    background: var(--ehv-gruen);
}

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

.seiten {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
    gap: 1rem;
    margin: 1rem 0;
    padding: 0;
    list-style: none;
}

.seiten__seite img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid var(--rand);
    background: #fff;
}

/* Vorschau eines Mailtexts (reiner Text, Umbrüche bleiben) */

.mailtext {
    margin: 0.5rem 0 1rem;
    padding: 0.8rem 1rem;
    font: inherit;
    white-space: pre-wrap;
    background: var(--hintergrund);
    border: 1px solid var(--rand);
    border-radius: 6px;
}

/* Hilfe (→ E-043): Text aus Markdown, Begriffe der Oberfläche hervorgehoben */
.hilfe__text {
    max-width: 52rem;
}

.hilfe__text h2 {
    margin: 1.75rem 0 0.5rem;
    font-size: 1.2rem;
}

.hilfe__text h3 {
    margin: 1.25rem 0 0.4rem;
    font-size: 1.05rem;
}

.hilfe__text ul,
.hilfe__text ol,
.hilfe__liste {
    padding-left: 1.4rem;
}

.hilfe__text table {
    margin: 1rem 0;
    border-collapse: collapse;
}

.hilfe__text th,
.hilfe__text td {
    padding: 0.4rem 0.8rem 0.4rem 0;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--rand);
}

.hilfe__treffer {
    padding: 0;
    list-style: none;
}

.hilfe__treffer li {
    margin-bottom: 0.9rem;
}

.begriff {
    padding: 0.05rem 0.4rem;
    font-weight: 600;
    white-space: nowrap;
    background: var(--hintergrund);
    border: 1px solid var(--rand);
    border-radius: 4px;
}

/* Regelwerke (E-056): Fassung als Baum aus Blöcken */
.regelwerk .rw-liste { list-style: none; margin: 0.25rem 0 0.25rem 0; padding-left: 1.25rem; }
.regelwerk .rw-wurzel { padding-left: 0; }
.regelwerk .rw-block { margin: 0.35rem 0; }
.regelwerk .rw-titel { margin: 0.1rem 0 0.25rem; }
.regelwerk .rw-text { margin: 0.15rem 0; white-space: pre-line; }
.regelwerk .rw-nr { font-weight: 600; margin-right: 0.25rem; }
.regelwerk .rw-verweis { white-space: nowrap; }
.regelwerk .rw-verweis--tot { color: #b00020; font-weight: 600; text-decoration: underline wavy; }
.rw-verweis-auswahl { margin: 0.5rem 0 1rem; }
.rw-verweis-auswahl select { max-width: 100%; }
.regelwerk .rw-bullet > .rw-kopf .rw-text::before { content: "•"; margin-right: 0.5rem; }
.regelwerk .rw-bullet > .rw-kopf .rw-text .rw-nr { display: none; }
.regelwerk .rw-notiz { margin: 0.3rem 0 0.3rem 1rem; padding: 0.35rem 0.6rem; border-left: 3px solid #c7a008; background: #fff8dc; font-size: 0.9rem; white-space: pre-line; }
.regelwerk .rw-notiz--erledigt { border-left-color: #6b8e23; background: #f1f7e4; color: #555; }
.regelwerk .rw-neue-notiz { margin: 0.2rem 0 0.4rem 1rem; font-size: 0.9rem; }
.regelwerk .rw-neue-notiz summary { display: inline-flex; align-items: center; gap: 0.35rem; cursor: pointer; list-style: none; margin: 0; padding: 0.15rem 0.6rem; font-weight: 400; font-size: 0.85rem; }
.regelwerk .rw-neue-notiz summary::-webkit-details-marker { display: none; }

/* Paragraphen als Karten: Rand, Abstand, jeder zweite grau hinterlegt */
.regelwerk .rw-paragraph { margin: 1rem 0; padding: 0.75rem 1rem; border: 1px solid var(--rand); border-radius: 8px; background: #fff; }
.regelwerk .rw-paragraph--grau { background: #eef2f6; }
.regelwerk .rw-paragraph > .rw-kopf .rw-titel { font-size: 1.25rem; }

/* Block: Text links, Aktionen als Symbole rechts */
.regelwerk .rw-kopf { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; }
.regelwerk .rw-haupt { flex: 1 1 auto; min-width: 0; }
.regelwerk .rw-aktionen { flex: 0 0 auto; display: flex; align-items: center; gap: 0.25rem; opacity: 0.55; transition: opacity 0.15s; }
.regelwerk .rw-kopf:hover > .rw-aktionen, .regelwerk .rw-aktionen:focus-within { opacity: 1; }
.regelwerk .rw-icon, .fassung .rw-icon { display: inline-flex; align-items: center; justify-content: center; width: 1.9rem; height: 1.9rem; padding: 0; color: var(--text); background: transparent; border: 1px solid var(--rand); border-radius: 6px; text-decoration: none; cursor: pointer; }
.regelwerk .rw-icon:hover, .fassung .rw-icon:hover { background: #fff; border-color: var(--ehv-gruen); color: var(--ehv-gruen); }
.regelwerk .rw-icon .icon { width: 1rem; height: 1rem; }
@media (hover: none) { .regelwerk .rw-aktionen { opacity: 1; } }

/* Gegenüberstellung zweier Fassungen (E-056, Phase 3): zwei Spalten, Wortänderungen markiert */
.rw-vergleich-tabelle { width: 100%; table-layout: fixed; }
.rw-vergleich-tabelle th, .rw-vergleich-tabelle td { vertical-align: top; }
.rw-vergleich-tabelle .rw-zustand { width: 7rem; font-size: 0.85rem; color: #555; }
.rw-vergleich-tabelle td.rw-v-links, .rw-vergleich-tabelle td.rw-v-rechts { white-space: pre-line; }
.rw-vergleich-tabelle tr.rw-v-unchanged td { color: #666; background: #f7f7f7; }
.rw-vergleich-tabelle tr.rw-v-changed td.rw-v-links, .rw-vergleich-tabelle tr.rw-v-removed td.rw-v-links { background: #fdeaea; }
.rw-vergleich-tabelle tr.rw-v-changed td.rw-v-rechts, .rw-vergleich-tabelle tr.rw-v-added td.rw-v-rechts { background: #e8f5ec; }
.rw-vergleich-tabelle tr.rw-v-renumbered td.rw-zustand { color: #8a5a00; }
del.rw-del { color: #b00020; text-decoration: line-through; }
ins.rw-ins { color: #0a6b2d; font-weight: 700; text-decoration: none; }

/* Sprung zurück zum Inhaltsverzeichnis */
.rw-nach-oben { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 5; display: inline-flex; align-items: center; gap: 0.35rem; margin: 0; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18); }
a.rw-nach-oben { margin: 0; padding: 0.4rem 0.9rem; }

/* Formular in einer Zeile (Knöpfe neben Links) */
form.inline { display: inline; }

.rw-inhalt { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.rw-inhalt a { display: inline-block; padding: 0.3rem 0.75rem; color: var(--text); background: var(--hintergrund); border: 1px solid var(--rand); border-radius: 999px; font-size: 0.9rem; text-decoration: none; }
.rw-inhalt a:hover { color: var(--ehv-gruen); border-color: var(--ehv-gruen); background: #fff; }
html { scroll-behavior: smooth; }

.auswahl-filter {
    margin-bottom: 0.4rem;
}

/* Karte mit Kopfleiste (→ E-059): getönte Leiste mit Überschrift, darunter der Inhalt; für Übersichten mit aktuellen Werten */
.karte--kopf {
    padding: 0;
    overflow-x: auto;
    overflow-y: hidden;
}

.karte__kopf {
    padding: 0.8rem 1.25rem;
    background: var(--hintergrund);
    border-bottom: 1px solid var(--rand);
}

.karte__kopf h2 {
    margin: 0;
    font-size: 1.15rem;
}

.karte__inhalt {
    padding: 1.25rem;
}

.karte__inhalt > :last-child {
    margin-bottom: 0;
}

.karte__inhalt h3 {
    margin: 1rem 0 0.4rem;
    font-size: 1rem;
    color: var(--text-leise);
}

.karte__inhalt h3:first-child {
    margin-top: 0;
}

.karte__aktionen {
    margin: 1rem 0 0;
}

.karte__aktionen .knopf,
.karte__aktionen a.knopf--leise {
    margin: 0 0.5rem 0 0;
}

/* Aktionszeile in einer Tabelle: Datum, Beenden und Löschen auf einer Linie, rechtsbündig */
.zeilenaktion {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
}

.zeilenaktion form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.zeilenaktion input[type="date"] {
    width: 10.5rem;
    min-height: 2.25rem;
    padding: 0.3rem 0.6rem;
}

.zeilenaktion .knopf,
.zeilenaktion a.knopf--leise {
    margin: 0;
    padding: 0.3rem 0.8rem;
    white-space: nowrap;
}

/* Verlauf eingeklappt: ein Knopf zeigt oder verbirgt die abgelaufenen Einträge, ohne Neuladen */
.verlauf {
    margin-top: 1rem;
}

.verlauf > summary {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    list-style: none;
    cursor: pointer;
    color: var(--text);
    border: 1px solid var(--rand);
    border-radius: 6px;
}

.verlauf > summary::-webkit-details-marker {
    display: none;
}

.verlauf > summary:hover {
    background: var(--hintergrund);
}

.verlauf .verlauf__auf,
.verlauf[open] .verlauf__zu {
    display: none;
}

.verlauf[open] .verlauf__auf {
    display: inline;
}

.verlauf .tabelle {
    margin-top: 0.75rem;
}

/* Abstimmen in FROST: Ja, Enthaltung und Nein als gleich große Knöpfe; auf dem Handy untereinander in voller Breite (gut zu treffen) */
.stimmknoepfe {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.stimmknoepfe .stimmknopf {
    flex: 1 1 8rem;
    margin: 0;
    padding: 0.8rem 1.2rem;
    font-weight: 600;
    text-align: center;
}

.stimmknoepfe .stimmknopf.knopf--leise {
    padding: 0.8rem 1.2rem;
    color: var(--text);
}

@media (max-width: 600px) {
    .stimmknoepfe {
        flex-direction: column;
    }

    .stimmknoepfe .stimmknopf {
        flex: 0 0 auto;
        width: 100%;
        padding: 1rem 1.2rem;
    }

    .knopf--breit {
        display: block;
        width: 100%;
        margin-top: 1.5rem;
        padding: 0.8rem 1.2rem;
        text-align: center;
    }
}

/* Passvorgang (Passwesen): Angaben links, Pass als Vorschau rechts */
.passvorgang {
    display: grid;
    gap: 1rem;
}

.passvorgang__seite {
    display: grid;
    gap: 1rem;
    align-content: start;
}

.passvorgang__pdf {
    width: 100%;
    height: 70vh;
    min-height: 28rem;
    border: 1px solid var(--rand);
    border-radius: 4px;
    background: var(--ehv-weiss);
}

@media (min-width: 62rem) {
    .passvorgang {
        grid-template-columns: minmax(0, 30rem) minmax(0, 1fr);
        align-items: start;
    }
}

/* Ein Antrag (Passwesen): Karten mit Abstand; was gerade nicht gebraucht wird, steht zugeklappt */
.antrag .karte {
    margin-top: 1rem;
}

.antrag h1,
.antrag .karte > h2:first-child {
    margin: 0 0 0.5rem;
}

.antrag h1 + p {
    margin: 0;
}

/* Wahl des Absenders beim Anschreiben des Vereins: Abstand und genug Platz für die Adresse */
.antrag .filter {
    margin-top: 1rem;
}

.antrag .filter select {
    min-width: min(24rem, 100%);
}

.klapp > summary {
    padding: 0.4rem 0;
    font-weight: 600;
    cursor: pointer;
}

/* Erster Knopf eines Formulars für die Eingabetaste, ohne Platz auf der Seite */
.knopf-eingabe {
    position: absolute;
    left: -10000px;
}

/* Unterlagen eines Antrags: kleines Bild, Angaben mit Typ daneben, die große Ansicht darunter zum Aufklappen */
.antragsdatei {
    display: grid;
    grid-template-columns: 5rem minmax(0, 1fr);
    gap: 0.25rem 1rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--rand);
}

.antragsdatei__bild img {
    display: block;
    width: 5rem;
    height: 6rem;
    object-fit: contain;
    border: 1px solid var(--rand);
    border-radius: 4px;
    background: var(--ehv-weiss);
}

.antragsdatei__angaben {
    overflow-wrap: anywhere;
}

.antragsdatei__angaben p {
    margin: 0 0 0.25rem;
}

.antragsdatei__angaben label {
    margin-top: 0;
}

.antragsdatei__angaben .knopf {
    margin-top: 0.5rem;
}

.antragsdatei__mehr {
    grid-column: 1 / -1;
}

.antragsdatei__vorschau img {
    display: block;
    max-width: 100%;
    max-height: 32rem;
}

.antragsdatei__vorschau iframe {
    width: 100%;
    height: 32rem;
    border: 1px solid var(--rand);
    border-radius: 4px;
    background: var(--ehv-weiss);
}

/* «Wie geht es weiter?»: je Möglichkeit ein Kasten mit Situation und Knopf */
.antragsweg {
    max-width: 40rem;
    margin-top: 0.75rem;
    padding: 0.9rem 1rem;
    border: 1px solid var(--rand);
    border-radius: 6px;
}

.antragsweg > summary {
    font-weight: 600;
    cursor: pointer;
}

.antragsweg p {
    margin: 0.5rem 0;
}

.antragsweg textarea {
    width: 100%;
}

.antragsweg .knopf {
    margin: 0.25rem 0 0;
    padding: 0.6rem 1.2rem;
}

/* Checkliste eines Antrags: links der Punkt mit Hinweis, rechts der Stand; der Rand zeigt den Stand */
.pruefpunkt {
    display: grid;
    gap: 0.4rem 1rem;
    padding: 0.6rem 0 0.6rem 0.75rem;
    border-bottom: 1px solid var(--rand);
    border-left: 4px solid var(--rand);
}

.pruefpunkt label {
    display: block;
    margin: 0;
}

.pruefpunkt .leise {
    display: block;
}

.pruefpunkt--present {
    border-left-color: var(--ehv-gruen);
}

.pruefpunkt--missing {
    border-left-color: var(--ehv-rot);
}

.pruefpunkt--open {
    border-left-color: #d98e00;
}

.antragsweg__offen {
    color: #7a0010;
}

@media (min-width: 40rem) {
    .pruefpunkt {
        grid-template-columns: minmax(0, 1fr) minmax(0, 18rem);
        align-items: center;
    }
}

.antragsdatei__drehen {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}
