/* VM-Freigabe. Eine Spalte, große Schaltflächen, fürs Handy. Keine Farbe trägt allein eine Bedeutung. */
:root {
    --grund: #f4f1ea;
    --flaeche: #ffffff;
    --text: #14213d;
    --leise: #4a5568;
    --linie: #cbd2dc;
    --kopf: #14213d;
    --ja: #1b6e3c;
    --ja-dunkel: #145530;
    --nein: #a4161a;
    --nein-dunkel: #7d1013;
    --warn: #fff4d6;
    --warn-rand: #b7791f;
    --offen: #e6f4ea;
    --offen-rand: #1b6e3c;
}
* { box-sizing: border-box; }
html { font-size: 100%; }
body {
    margin: 0;
    background: var(--grund);
    color: var(--text);
    font: 1rem/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.kopf {
    background: var(--kopf);
    color: #fff;
    padding: 1rem 1rem 0.9rem;
}
.kopf h1 { margin: 0; font-size: 1.25rem; font-weight: 700; letter-spacing: 0.01em; }
.lage { margin: 0.2rem 0 0; font-size: 0.95rem; color: #dbe4f0; }
main { max-width: 40rem; margin: 0 auto; padding: 1rem; }
main:focus { outline: none; }
section {
    background: var(--flaeche);
    border: 1px solid var(--linie);
    border-radius: 0.6rem;
    padding: 1rem;
    margin: 0 0 1rem;
}
section h2 { margin: 0 0 0.5rem; font-size: 1.1rem; }
section p { margin: 0 0 0.6rem; }
section.anfrage { border: 2px solid var(--warn-rand); background: var(--warn); }
section.laeuft { border: 2px solid var(--offen-rand); background: var(--offen); }
section.sperre { border: 2px solid var(--nein); }
.grund { font-size: 1.1rem; font-weight: 600; overflow-wrap: anywhere; }
.klein { font-size: 0.9rem; color: var(--leise); }
.zeit { font-variant-numeric: tabular-nums; font-weight: 700; }
fieldset { border: 0; margin: 0.6rem 0; padding: 0; }
legend { padding: 0; font-weight: 600; margin-bottom: 0.4rem; }
.dauern { display: grid; grid-template-columns: repeat(auto-fit, minmax(4.2rem, 1fr)); gap: 0.5rem; }
.dauern label {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 0; min-height: 3rem; padding: 0 0.3rem; white-space: nowrap;
    border: 2px solid var(--text); border-radius: 0.5rem; background: #fff; font-weight: 600; cursor: pointer;
}
.dauern input { position: absolute; opacity: 0; pointer-events: none; }
.dauern input:checked + span { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 4px; }
.dauern label:has(input:checked) { background: var(--text); color: #fff; }
.dauern label:has(input:focus-visible) { outline: 3px solid #f59e0b; outline-offset: 2px; }
.knoepfe { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.8rem; }
button {
    min-height: 3rem; padding: 0.6rem 1.1rem;
    border: 2px solid var(--text); border-radius: 0.5rem;
    background: #fff; color: var(--text);
    font: inherit; font-weight: 700; cursor: pointer;
}
button:focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px; }
button.ja { background: var(--ja); border-color: var(--ja-dunkel); color: #fff; flex: 1 1 12rem; }
button.ja:active { background: var(--ja-dunkel); }
button.nein { background: var(--nein); border-color: var(--nein-dunkel); color: #fff; }
button.nein:active { background: var(--nein-dunkel); }
button.breit { width: 100%; }
button[disabled] { opacity: 0.55; cursor: progress; }
ul.liste { list-style: none; margin: 0.4rem 0 0; padding: 0; }
ul.liste li { padding: 0.35rem 0; border-top: 1px solid var(--linie); overflow-wrap: anywhere; }
ul.liste li:first-child { border-top: 0; }
code, .befehl { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 0.9rem; }
.meldung {
    position: sticky; bottom: 0; margin: 0; padding: 0.9rem 1rem;
    background: var(--nein); color: #fff; font-weight: 600;
}
.meldung.gut { background: var(--ja); }
label.feld { display: block; font-weight: 600; margin: 0.6rem 0 0.2rem; }
input[type="text"] { width: 100%; min-height: 3rem; padding: 0.5rem 0.7rem; border: 2px solid var(--text); border-radius: 0.5rem; font: inherit; }
@media (prefers-reduced-motion: no-preference) { button { transition: background 0.1s; } }
