/* ==========================================================================
   vote.spacewars.org

   Hommage an das Spacewars-Ingame-Design (uebersicht.php, format.css):
   Schwarz, Dunkelrot, weiße Schrift, gestapelte Kopf-/Wertzeilen, Grün als
   Bestätigung. Umgesetzt mit heutigen Mitteln – ruhiger, weicher und auf
   Mobilgeräten genauso benutzbar wie am Schreibtisch.
   ========================================================================== */

:root {
    /* Herkunft der Farben: format.css des Spiels */
    --void:        #000000;
    --red-900:     #3a0505;
    --red-800:     #4d0808;
    --red-700:     #660d0d;   /* nahe TD.h  (#550000) */
    --red-600:     #8a1111;   /* nahe TD.l  (#880000) */
    --red-500:     #b81a1a;
    --red-400:     #ff3b3b;
    --red-300:     #ff7a7a;
    --green:       #3ddc5e;
    --green-deep:  #0d3d1c;

    --surface:     rgba(24, 9, 9, 0.72);
    --surface-2:   rgba(38, 14, 14, 0.55);
    --well:        rgba(8, 3, 3, 0.78);

    --line:        rgba(255, 120, 120, 0.14);
    --line-strong: rgba(255, 120, 120, 0.26);

    --ink:         #f6eeee;
    --ink-2:       rgba(246, 238, 238, 0.74);
    --ink-3:       rgba(246, 238, 238, 0.58);

    --radius:      10px;
    --radius-sm:   7px;

    --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
            Arial, "Noto Sans", sans-serif;

    --shell: 660px;
    --ease:  cubic-bezier(0.22, 0.68, 0.24, 1);
}

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

html {
    background: var(--void);
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100dvh;
    background: var(--void);
    color: var(--ink);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    letter-spacing: 0.005em;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --------------------------------------------------------------------------
   Hintergrund: tiefes Schwarz, ferne Sonne, ein paar Sterne, roter Schimmer.
   Angelehnt an images/index_bg.jpg, komplett aus CSS.
   -------------------------------------------------------------------------- */

.starfield {
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background:
        radial-gradient(ellipse 52rem 34rem at 6% -10%,
            rgba(188, 205, 255, 0.13) 0%,
            rgba(110, 130, 200, 0.05) 36%,
            transparent 72%),
        radial-gradient(ellipse 40rem 30rem at 96% 2%,
            rgba(255, 45, 45, 0.10) 0%,
            transparent 60%),
        radial-gradient(ellipse 46rem 28rem at 50% 112%,
            rgba(180, 25, 25, 0.12) 0%,
            transparent 72%),
        var(--void);
}

.starfield::before,
.starfield::after {
    content: "";
    position: absolute;
    inset: -10%;
    background-repeat: repeat;
}

.starfield::before {
    background-image:
        radial-gradient(1px 1px at 12% 18%, rgba(255,255,255,.75), transparent),
        radial-gradient(1px 1px at 63% 9%,  rgba(255,255,255,.55), transparent),
        radial-gradient(1px 1px at 27% 62%, rgba(255,255,255,.62), transparent),
        radial-gradient(1px 1px at 82% 44%, rgba(255,255,255,.46), transparent),
        radial-gradient(1px 1px at 45% 82%, rgba(255,255,255,.64), transparent),
        radial-gradient(1px 1px at 91% 73%, rgba(255,255,255,.42), transparent),
        radial-gradient(1px 1px at 6% 91%,  rgba(255,255,255,.50), transparent),
        radial-gradient(1px 1px at 71% 27%, rgba(255,255,255,.38), transparent);
    background-size: 560px 560px;
}

.starfield::after {
    background-image:
        radial-gradient(1.6px 1.6px at 33% 24%, rgba(214,228,255,.44), transparent),
        radial-gradient(1.6px 1.6px at 78% 66%, rgba(255,220,220,.36), transparent),
        radial-gradient(1px 1px at 55% 47%, rgba(255,255,255,.26), transparent),
        radial-gradient(1px 1px at 17% 77%, rgba(255,255,255,.22), transparent);
    background-size: 900px 900px;
}

/* Ganz feine Scanlines – im Original sind bg_l.gif/bg_h.gif genau das.
   Hier nur noch als Andeutung, damit nichts flimmert. */
.scanlines {
    position: fixed;
    inset: 0;
    z-index: 40;
    pointer-events: none;
    background: repeating-linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.30) 0px,
        rgba(0, 0, 0, 0.30) 1px,
        transparent 1px,
        transparent 4px
    );
    opacity: .22;
}

@media (max-width: 640px) {
    .scanlines { opacity: .14; }
}

.shell {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: var(--shell);
    margin: 0 auto;
    padding: 0 18px 72px;
}

/* --------------------------------------------------------------------------
   Sprungmarke
   -------------------------------------------------------------------------- */

.skip {
    position: absolute;
    left: -9999px;
    top: 0;
    padding: 11px 18px;
    background: var(--red-600);
    color: #fff;
    font-weight: 600;
    border-radius: 0 0 var(--radius-sm) 0;
    z-index: 60;
}
.skip:focus { left: 0; top: 0; }

/* --------------------------------------------------------------------------
   Kopfzeile: nur eine Zeile mit Namen, roter Marke und Sprachwahl.
   -------------------------------------------------------------------------- */

.masthead {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 26px 0 18px;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--line);
}

.tagline {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--ink-3);
}

/* kleiner roter Laserstrich als Marke */
.tagline::before {
    content: "";
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(to right, transparent, var(--red-400));
    box-shadow: 0 0 10px rgba(255, 59, 59, .75);
}

.tagline b {
    color: var(--ink);
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   Sprachumschalter
   -------------------------------------------------------------------------- */

.langswitch {
    display: inline-flex;
    padding: 3px;
    gap: 3px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
    border-radius: 999px;
}

.langswitch__item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    padding: 6px 14px;
    border-radius: 999px;
    color: var(--ink-2);
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-decoration: none;
    transition: background .18s var(--ease), color .18s var(--ease);
}

.langswitch__item:hover {
    background: rgba(255, 255, 255, 0.07);
    color: var(--ink);
    text-decoration: none;
}

.langswitch__item[aria-current="true"] {
    background: linear-gradient(180deg, var(--red-500), var(--red-700));
    color: #fff;
    cursor: default;
    box-shadow: 0 2px 12px rgba(255, 40, 40, .28);
}

/* --------------------------------------------------------------------------
   Seitentitel
   -------------------------------------------------------------------------- */

.page-title {
    margin: 0 0 12px;
    font-size: clamp(1.6rem, 5.6vw, 2.15rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.018em;
    text-wrap: balance;
}

.page-subtitle {
    margin: 0 0 30px;
    max-width: 56ch;
    color: var(--ink-2);
    font-size: 1rem;
    line-height: 1.62;
}

/* --------------------------------------------------------------------------
   Panels – die Kopfleiste zitiert die roten Tabellenköpfe des Spiels.
   -------------------------------------------------------------------------- */

.panel {
    margin: 0 0 22px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.04) inset,
        0 24px 56px rgba(0, 0, 0, 0.55);
    overflow: hidden;
}

.panel__head {
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 0;
    padding: 14px 20px;
    background: linear-gradient(180deg, rgba(138, 17, 17, 0.85), rgba(77, 8, 8, 0.7));
    border-bottom: 1px solid var(--line-strong);
    color: #fff;
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
}

/* roter Akzentstrich statt des alten Aufklapp-Dreiecks */
.panel__glyph {
    flex: none;
    width: 3px;
    height: 15px;
    border-radius: 2px;
    background: var(--red-400);
    box-shadow: 0 0 10px rgba(255, 59, 59, .9);
}

.panel__body {
    display: flex;
    flex-direction: column;
}

.panel__prose {
    padding: 22px 20px 24px;
    color: var(--ink-2);
    font-size: .94rem;
    line-height: 1.68;
}

.panel__prose p { margin: 0; }

.panel--muted { background: rgba(255, 255, 255, 0.028); }

.panel--muted .panel__head {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
    border-bottom-color: rgba(255, 255, 255, 0.09);
    color: var(--ink-2);
}

.panel--muted .panel__glyph {
    background: rgba(255, 255, 255, 0.4);
    box-shadow: none;
}

/* Aufzählung im Erklärungstext */
.bullets {
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.bullets li {
    position: relative;
    padding-left: 22px;
}

.bullets li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .66em;
    width: 11px;
    height: 2px;
    border-radius: 2px;
    background: var(--red-400);
    box-shadow: 0 0 8px rgba(255, 59, 59, .55);
}

/* --------------------------------------------------------------------------
   Formularzeilen
   -------------------------------------------------------------------------- */

.field {
    display: grid;
    grid-template-columns: minmax(172px, 32%) 1fr;
    align-items: start;
}

.field + .field,
.field + .consent-block,
.consent-block + .field,
.panel__body > .field:not(:first-child) {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.field__label {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
    padding: 20px;
    /* Zitat der linken Beschriftungsspalte (TD.l) – nur viel dezenter */
    background: linear-gradient(90deg, rgba(138, 17, 17, 0.30), rgba(138, 17, 17, 0.10));
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    font-size: .88rem;
    font-weight: 600;
    line-height: 1.45;
    color: var(--ink);
    min-height: 100%;
}

.field__label > label { cursor: pointer; }

.field__control {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
    min-width: 0;
}

.field--stacked { grid-template-columns: 1fr; }

.field--stacked .field__label {
    background: linear-gradient(180deg, rgba(138, 17, 17, 0.30), rgba(138, 17, 17, 0.12));
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    font-size: .9rem;
    font-weight: 600;
    color: var(--ink);
}

.field--invalid .field__label {
    background: linear-gradient(90deg, rgba(255, 45, 45, 0.24), rgba(255, 45, 45, 0.08));
    box-shadow: inset 3px 0 0 var(--red-400);
}

.field--stacked.field--invalid .field__label {
    background: linear-gradient(180deg, rgba(255, 45, 45, 0.24), rgba(255, 45, 45, 0.08));
    box-shadow: inset 0 -2px 0 var(--red-400);
}

.tag {
    padding: 3px 8px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    color: var(--ink-3);
    font-size: .6rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    line-height: 1.6;
    white-space: nowrap;
}

.tag--required {
    border-color: rgba(255, 90, 90, 0.45);
    color: var(--red-300);
}

/* --------------------------------------------------------------------------
   Eingabefelder
   -------------------------------------------------------------------------- */

.input,
.textarea {
    width: 100%;
    padding: 12px 14px;
    background: var(--well);
    color: var(--ink);
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.5;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-sm);
    outline: none;
    transition: border-color .18s var(--ease), box-shadow .18s var(--ease),
                background .18s var(--ease);
    -webkit-appearance: none;
    appearance: none;
}

.textarea {
    min-height: 118px;
    resize: vertical;
}

.input::placeholder,
.textarea::placeholder { color: rgba(246, 238, 238, 0.30); }

.input:hover,
.textarea:hover { border-color: rgba(255, 255, 255, 0.2); }

.input:focus,
.textarea:focus {
    background: rgba(20, 6, 6, 0.9);
    border-color: var(--red-400);
    box-shadow: 0 0 0 3px rgba(255, 59, 59, 0.18);
}

.input:disabled { opacity: .45; cursor: not-allowed; }

.input:-webkit-autofill,
.input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--ink);
    -webkit-box-shadow: 0 0 0 1000px #170707 inset;
    caret-color: var(--ink);
}

.hint {
    margin: 0;
    font-size: .84rem;
    line-height: 1.58;
    color: rgba(246, 238, 238, 0.64);
}

.hint--bar {
    color: var(--ink-2);
    font-size: .88rem;
}

.error {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
    font-size: .82rem;
    font-weight: 500;
    line-height: 1.5;
    color: #ff9b9b;
}

.error::before {
    content: "!";
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 17px;
    height: 17px;
    margin-top: 1px;
    background: rgba(255, 59, 59, 0.18);
    border: 1px solid rgba(255, 59, 59, 0.5);
    border-radius: 50%;
    color: var(--red-400);
    font-size: .66rem;
    font-weight: 700;
    line-height: 1;
}

/* --------------------------------------------------------------------------
   Auswahloptionen
   -------------------------------------------------------------------------- */

.choices {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 0;
    border: 0;
    min-width: 0;
}

.choice {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 13px 15px;
    min-height: 50px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: var(--radius-sm);
    color: var(--ink);
    font-size: .94rem;
    line-height: 1.45;
    cursor: pointer;
    transition: background .18s var(--ease), border-color .18s var(--ease),
                box-shadow .18s var(--ease);
    -webkit-tap-highlight-color: transparent;
}

.choice:hover {
    background: rgba(255, 59, 59, 0.09);
    border-color: rgba(255, 59, 59, 0.34);
}

/* Nur die eigentliche Auswahl verstecken – das Textfeld in der ersten Option
   bleibt selbstverständlich sichtbar. */
.choice > input[type="radio"],
.choice > input[type="checkbox"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.choice__mark {
    position: relative;
    flex: none;
    width: 20px;
    height: 20px;
    background: rgba(0, 0, 0, 0.45);
    border: 1.5px solid rgba(255, 255, 255, 0.28);
    border-radius: 5px;
    transition: border-color .18s var(--ease), background .18s var(--ease);
}

.choice__mark--radio { border-radius: 50%; }

.choice__mark::after {
    content: "";
    position: absolute;
    inset: 3.5px;
    border-radius: 3px;
    background: transparent;
    transform: scale(.4);
    opacity: 0;
    transition: transform .18s var(--ease), opacity .18s var(--ease),
                background .18s var(--ease);
}

.choice__mark--radio::after { border-radius: 50%; }

.choice:hover .choice__mark { border-color: rgba(255, 255, 255, 0.45); }

.choice__text { flex: 1; min-width: 0; }

/* gewählt: der rote Akzent des Spiels */
.choice:has(> input:checked) {
    background: linear-gradient(180deg, rgba(184, 26, 26, 0.42), rgba(102, 13, 13, 0.32));
    border-color: rgba(255, 59, 59, 0.62);
    box-shadow: 0 0 22px rgba(255, 40, 40, 0.16);
}

.choice:has(> input:checked) .choice__mark {
    border-color: var(--red-400);
    background: rgba(0, 0, 0, 0.35);
}

.choice:has(> input:checked) .choice__mark::after {
    background: var(--red-400);
    box-shadow: 0 0 10px rgba(255, 59, 59, 0.9);
    transform: scale(1);
    opacity: 1;
}

.choice:has(> input:focus-visible) {
    border-color: var(--red-400);
    box-shadow: 0 0 0 3px rgba(255, 59, 59, 0.28);
}

/* Option mit zusätzlichem Textfeld */
.choice--input { flex-wrap: wrap; row-gap: 11px; }
.choice--input .choice__text { flex: 0 1 auto; }
.choice--input .choice__field { flex: 1 1 200px; min-width: 0; }
.choice--input .input { padding: 9px 12px; font-size: .95rem; }

/* Einwilligung */
.consent-block {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.choice--consent {
    align-items: flex-start;
    font-size: .89rem;
    line-height: 1.55;
}

.choice--consent .choice__mark { margin-top: 1px; }

.error--strip { padding-left: 2px; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.form-actions {
    padding: 4px 20px 22px;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 54px;
    padding: 15px 28px;
    background: linear-gradient(180deg, var(--red-500) 0%, #7d0d0d 100%);
    color: #fff;
    font-family: inherit;
    font-size: .95rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-decoration: none;
    border: 1px solid rgba(255, 90, 90, 0.55);
    border-radius: var(--radius-sm);
    cursor: pointer;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        0 10px 26px rgba(180, 0, 0, 0.28);
    transition: background .18s var(--ease), box-shadow .2s var(--ease),
                transform .1s var(--ease), border-color .18s var(--ease);
    -webkit-appearance: none;
    appearance: none;
}

.btn:hover {
    background: linear-gradient(180deg, #d42020 0%, #92100f 100%);
    border-color: var(--red-400);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        0 12px 34px rgba(255, 30, 30, 0.34);
    color: #fff;
    text-decoration: none;
}

.btn:focus-visible {
    outline: none;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        0 0 0 3px rgba(255, 90, 90, 0.5);
}

.btn:active { transform: translateY(1px); }

.btn[disabled],
.btn[aria-disabled="true"] { opacity: .62; cursor: progress; }

.btn--ghost {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: none;
    font-weight: 600;
    letter-spacing: .02em;
    min-height: 44px;
    padding: 10px 18px;
    font-size: .85rem;
}

.btn--ghost:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: none;
}

.btn--auto { width: auto; }

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

.notice {
    display: flex;
    gap: 11px;
    margin: 0 0 22px;
    padding: 15px 18px;
    font-size: .92rem;
    line-height: 1.55;
    border: 1px solid;
    border-radius: var(--radius-sm);
}

.notice--error {
    background: rgba(255, 45, 45, 0.10);
    border-color: rgba(255, 59, 59, 0.45);
    color: #ffc8c8;
}

.notice--success {
    background: rgba(61, 220, 94, 0.09);
    border-color: rgba(61, 220, 94, 0.4);
    color: #cdf5d6;
}

/* --------------------------------------------------------------------------
   Statusseiten
   -------------------------------------------------------------------------- */

.stack {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 26px 22px 28px;
}

.stack p { margin: 0; line-height: 1.65; color: var(--ink-2); }

.stack__lead {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--ink) !important;
}

.stack form { width: 100%; }

.readout {
    width: 100%;
    padding: 14px 16px;
    background: var(--well);
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    color: var(--ink) !important;
    word-break: break-all;
}

.readout__label {
    display: block;
    margin-bottom: 5px;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--ink-3);
}

.checkmark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(61, 220, 94, 0.12);
    border: 1px solid rgba(61, 220, 94, 0.5);
    border-radius: 50%;
    color: var(--green);
    font-size: 1.5rem;
    line-height: 1;
    box-shadow: 0 0 26px rgba(61, 220, 94, 0.18);
}

/* --------------------------------------------------------------------------
   Links
   -------------------------------------------------------------------------- */

a {
    color: var(--red-300);
    font-weight: 600;
    text-decoration: none;
    text-underline-offset: 3px;
    transition: color .16s var(--ease);
}

a:hover { color: var(--red-400); text-decoration: underline; }

a:focus-visible {
    outline: 2px solid rgba(255, 90, 90, .8);
    outline-offset: 3px;
    border-radius: 3px;
}

/* --------------------------------------------------------------------------
   Fußzeile
   -------------------------------------------------------------------------- */

.footer {
    margin-top: 38px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    font-size: .8rem;
    line-height: 1.65;
    color: var(--ink-3);
}

.footer p { margin: 0 0 6px; }
.footer a { font-weight: 500; }

/* --------------------------------------------------------------------------
   Adminbereich
   -------------------------------------------------------------------------- */

/* Der Adminbereich braucht mehr Platz als die öffentlichen Seiten. */
.body-wide .shell { max-width: 1180px; }

.admin-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.stat {
    padding: 16px 18px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
}

.stat__value {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.stat__label {
    display: block;
    margin-top: 3px;
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--ink-3);
}

.table-scroll {
    overflow-x: auto;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    -webkit-overflow-scrolling: touch;
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: .84rem;
}

.table th {
    padding: 12px 14px;
    background: linear-gradient(180deg, rgba(138, 17, 17, 0.7), rgba(77, 8, 8, 0.55));
    border-bottom: 1px solid var(--line-strong);
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    text-align: left;
    white-space: nowrap;
}

.table td {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    vertical-align: top;
    line-height: 1.5;
}

.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: rgba(255, 255, 255, 0.03); }

.table a { color: var(--ink); font-weight: 500; }
.table a:hover { color: var(--red-300); }

.table td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ink-3); }
.table td.nowrap { white-space: nowrap; }
.table td.comment { min-width: 260px; white-space: pre-wrap; color: var(--ink-2); }
.table td.muted { color: var(--ink-3); font-style: italic; }

.pill {
    display: inline-block;
    padding: 3px 9px;
    border: 1px solid;
    border-radius: 999px;
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .06em;
    white-space: nowrap;
}

.pill--definitely { background: rgba(61, 220, 94, .13); border-color: rgba(61, 220, 94, .45); color: #a8ecb9; }
.pill--maybe      { background: rgba(255, 190, 60, .12); border-color: rgba(255, 190, 60, .42); color: #f7d9a0; }
.pill--watch      { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .18); color: var(--ink-2); }
.pill--failed     { background: rgba(255, 59, 59, .13); border-color: rgba(255, 59, 59, .45); color: #ffb2b2; }

.admin-login { max-width: 420px; }

/* --------------------------------------------------------------------------
   Responsiv
   -------------------------------------------------------------------------- */

@media (max-width: 640px) {
    .shell { padding: 0 15px 56px; }

    .masthead { padding: 20px 0 14px; margin-bottom: 22px; }

    .field { grid-template-columns: 1fr; }

    .field__label {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 13px 17px;
        background: linear-gradient(180deg, rgba(138, 17, 17, 0.32), rgba(138, 17, 17, 0.12));
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        font-size: .88rem;
        font-weight: 600;
        color: var(--ink);
    }

    .field--invalid .field__label {
        background: linear-gradient(180deg, rgba(255, 45, 45, 0.24), rgba(255, 45, 45, 0.08));
        box-shadow: inset 0 -2px 0 var(--red-400);
    }

    .field__control { padding: 16px 17px; }
    .consent-block  { padding: 16px 17px; }
    .form-actions   { padding: 2px 17px 18px; }
    .panel__head    { padding: 13px 17px; font-size: .72rem; letter-spacing: .15em; }
    .panel__prose   { padding: 18px 17px 20px; }

    .choice--input .choice__text { flex: 1 1 auto; }
    .choice--input .choice__field { flex: 1 1 100%; }
}

@media (max-width: 460px) {
    /* Auf schmalen Displays bleibt nur der Name stehen, damit Kopfzeile und
       Sprachwahl in einer Zeile Platz finden. */
    .tagline__suffix { display: none; }
    .tagline { letter-spacing: .16em; }
}

@media (max-width: 400px) {
    .langswitch__item { min-width: 38px; padding: 6px 10px; }
}

/* --------------------------------------------------------------------------
   Systemeinstellungen respektieren
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

@media (prefers-contrast: more) {
    .scanlines { display: none; }
    :root {
        --ink-2: rgba(246, 238, 238, .94);
        --ink-3: rgba(246, 238, 238, .8);
        --line: rgba(255, 140, 140, .32);
    }
}

/* Ohne :has() bleibt die Auswahl über das Markierungsfeld erkennbar. */
@supports not (selector(:has(*))) {
    .choice > input:checked + .choice__mark { border-color: var(--red-400); }
    .choice > input:checked + .choice__mark::after {
        background: var(--red-400);
        box-shadow: 0 0 10px rgba(255, 59, 59, .9);
        transform: scale(1);
        opacity: 1;
    }
}

@media print {
    .starfield, .scanlines, .langswitch, .btn { display: none; }
    body { background: #fff; color: #000; }
}
