/* Seite "Liste prüfen" (/liste). Zwei Spuren: links der Ablauf (Vorlage, Anmelden oder Hochladen, Deine Listen), rechts die Grenzen als
   Zahlen, die Spalten der Datei und "Mehr anfragen". Alles auf weißen Tafeln, nur Werte aus tokens.css und Bausteine aus core.css. */
.liste { padding-bottom: var(--space-6); }
.liste-raster { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: var(--space-5); align-items: start; }
.liste-haupt, .liste-seite { display: flex; flex-direction: column; gap: var(--space-4); min-width: 0; }
.liste-block[hidden] { display: none; }
.liste-wechsel { min-height: 20rem; display: flex; flex-direction: column; }
.liste-wechsel > .tafel { flex: 1; }

.tafel label { display: block; margin: var(--space-4) 0 var(--space-2); font-size: var(--text-sm); font-weight: var(--weight-semibold); }
.tafel label.liste-zustimmung { font-weight: var(--weight-regular); color: var(--color-text-2); }
.tafel input.input, .tafel select.input { width: 100%; }
.tafel input[type="file"] { display: flex; align-items: center; padding: 0 var(--space-3) 0 0; color: var(--color-text-2); }
.tafel input[type="file"]::file-selector-button {
    height: calc(var(--control-height) - 2px);
    margin-right: var(--space-4);
    padding: 0 var(--space-4);
    border: none;
    border-right: 1px solid var(--color-line-strong);
    background: var(--color-sunken);
    color: var(--color-text);
    font-family: var(--font-sans);
    font-size: var(--text-base);
    font-weight: var(--weight-semibold);
    cursor: pointer;
}
.tafel input[type="file"]::file-selector-button:hover { background: var(--color-line); }
.tafel button[type="submit"] { margin-top: var(--space-4); }
#liste-kontingent { min-height: 24px; }
.liste-klein { font-size: var(--text-sm); color: var(--color-text-2); max-width: var(--measure); }
.liste-meldung { margin-top: var(--space-3); min-height: 1.6em; font-size: var(--text-sm); }
.liste-meldung.liste-fehler { color: var(--color-err); }
.liste-meldung.liste-ok { color: var(--color-ok); }
#liste-aussortiert { margin: var(--space-2) 0 var(--space-3) var(--space-5); }

/* Gesperrt: Schloss und ein Satz, kein Verstecken */
.liste-sperre { display: flex; gap: var(--space-3); align-items: flex-start; margin-bottom: var(--space-4); color: var(--color-text-2); }
.liste-sperre .icon { margin-top: 2px; color: var(--color-brand-text); }

/* Grenzen: drei Zahlen, Wert fett, Beschriftung klein darunter */
.liste-zahlen { display: grid; gap: var(--space-4); }
.liste-zahlen > div { display: flex; flex-direction: column; }
.liste-zahlen dd { order: 1; margin: 0; font-size: var(--text-xl); font-weight: var(--weight-semibold); }
.liste-zahlen dt { order: 2; font-size: var(--text-sm); color: var(--color-text-3); }

/* Spalten der Datei: Name fett, darunter eine kurze Zeile */
.liste-spaltenliste { display: grid; gap: var(--space-4); }
.liste-spaltenliste > div { display: flex; flex-direction: column; gap: var(--space-1); }
.liste-spaltenliste dt { font-weight: var(--weight-semibold); }
.liste-spaltenliste dd { margin: 0; font-size: var(--text-sm); color: var(--color-text-2); }

.liste-eintrag { border-top: 1px solid var(--color-line); padding: var(--space-4) 0; margin: 0; }
.liste-eintrag-kopf { display: flex; justify-content: flex-start; gap: var(--space-3); flex-wrap: wrap; font-weight: var(--weight-semibold); }
.liste-balken { height: 8px; border-radius: var(--radius); background: var(--color-line); margin: var(--space-3) 0; overflow: hidden; }
.liste-balken > span { display: block; height: 100%; background: var(--color-brand); transition: width var(--motion-base); }
.liste-aktionen { display: flex; gap: var(--space-2); flex-wrap: wrap; margin-top: var(--space-3); }
.liste-summe { margin: var(--space-2) 0 0; padding: 0; list-style: none; font-size: var(--text-sm); color: var(--color-text-2); }

.liste-filter { border: 0; border-top: 1px solid var(--color-line); padding: var(--space-3) 0 var(--space-4); margin: 0 0 var(--space-4); }
.liste-filter legend { font-weight: var(--weight-semibold); font-size: var(--text-sm); padding: 0; }

@media (max-width: 980px) {
    .liste-raster { grid-template-columns: minmax(0, 1fr); }
    .liste-wechsel { min-height: 0; }
}
