/* B2D One – Auswahlkomponente <x-auswahl> (Schritt 4-13, Paket B). Gestaltung über die Variablen aus b2d.css (Dark/Light): Wurzel .auswahl-komponente (nicht
   „.auswahl“ – das ist in b2d.css das Häkchen-Label), verstecktes Select .auswahl__select (bleibt gerendert, damit die Browser-Prüfung von required greift),
   Knopf .auswahl__knopf (trägt zusätzlich die Klassen des Selects, z. B. feld__eingabe), Aufklappfeld .auswahl__feld (Breite = Feldbreite, Liste max-height 320 px
   mit Scroll, nach oben bei wenig Platz: .auswahl-komponente--oben), Suchfeld .auswahl__suche, Liste .auswahl__liste mit Gruppen .auswahl__gruppe (fest, nicht
   wählbar) und Einträgen .auswahl__eintrag (Zebra .ist-zebra, Trennlinie, Zweitspalte .auswahl__neben rechtsbündig, aktiv .ist-aktiv, gewählt .ist-gewaehlt,
   Zeilenhöhe ≥ 48 px; Kiosk ≥ 64 px über .kiosk .auswahl__eintrag). Schriftgrößen ≥ 12 px. Kiosk-Länderliste (kiosk/teile/land + kasse-kiosk.js landZeichnen)
   nutzt .auswahl__liste/.auswahl__eintrag zusätzlich zu ihren Kiosk-Klassen – die Kiosk-Maße stehen am Ende. */
.auswahl-komponente { position: relative; width: 100%; min-width: 0; }
.auswahl-komponente .auswahl__select { position: absolute; left: 0; top: 0; width: 1px; height: 1px; min-height: 0; margin: 0; padding: 0; border: 0; opacity: 0; overflow: hidden; pointer-events: none; }
.auswahl__knopf {
    position: relative; display: flex; align-items: center; gap: 10px; box-sizing: border-box; width: 100%; min-height: 50px; padding: 6px 40px 6px 16px;
    font: inherit; font-size: 17px; line-height: 1.3; text-align: left; color: var(--feld-text); background: var(--feld-bg);
    border: 1px solid var(--feld-rahmen); border-radius: var(--radius-feld); cursor: pointer;
}
.auswahl__knopf:focus-visible, .auswahl-komponente.ist-offen .auswahl__knopf { outline: 2px solid var(--fokus); outline-offset: 1px; border-color: transparent; }
.auswahl__knopf:disabled, .auswahl__knopf[aria-disabled="true"] { cursor: not-allowed; opacity: 0.6; }
.auswahl__knopf.ist-ungueltig { border-color: var(--fehler); }
.auswahl__wert { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.auswahl__knopf.ist-leer .auswahl__wert { color: var(--text-3); }
.auswahl__neben { flex: 0 0 auto; margin-left: auto; font-size: 14px; color: var(--text-3); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.auswahl__neben[hidden], .auswahl__neben:empty { display: none; }
.auswahl__pfeil { position: absolute; right: 16px; top: 50%; width: 9px; height: 9px; margin-top: -7px; border-right: 2px solid var(--text-3); border-bottom: 2px solid var(--text-3); transform: rotate(45deg); pointer-events: none; }
.auswahl-komponente.ist-offen .auswahl__pfeil { margin-top: -2px; transform: rotate(-135deg); }
.auswahl__feld {
    position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 40; display: flex; flex-direction: column; box-sizing: border-box; padding: 8px;
    background: var(--menue-bg); border: 1px solid var(--rahmen-kraeftig); border-radius: var(--radius-feld); box-shadow: var(--menue-schatten);
}
.auswahl-komponente--oben .auswahl__feld { top: auto; bottom: calc(100% + 4px); }
.auswahl__feld[hidden] { display: none; }
.auswahl__suche {
    box-sizing: border-box; width: 100%; height: 40px; margin: 0 0 6px; padding: 0 12px; font: inherit; font-size: 16px; color: var(--feld-text);
    background: var(--feld-bg); border: 1px solid var(--feld-rahmen); border-radius: 10px;
}
.auswahl__suche:focus { outline: 2px solid var(--fokus); outline-offset: 1px; border-color: transparent; }
.auswahl__suche::placeholder { color: var(--text-3); opacity: 1; }
.auswahl-komponente[data-auswahl-laedt="1"] .auswahl__suche { background-image: linear-gradient(90deg, transparent, var(--flaeche-akzent), transparent); background-size: 40% 100%; background-repeat: no-repeat; animation: auswahl-laedt 1s linear infinite; }
@keyframes auswahl-laedt { from { background-position: -40% 0; } to { background-position: 140% 0; } }
.auswahl__liste { list-style: none; margin: 0; padding: 0; max-height: 320px; overflow-y: auto; overscroll-behavior: contain; border: 1px solid var(--rahmen); border-radius: 10px; background: var(--flaeche); }
.auswahl__gruppe {
    position: sticky; top: 0; z-index: 1; padding: 6px 12px; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
    color: var(--text-3); background: var(--flaeche-akzent); border-top: 1px solid var(--rahmen);
}
.auswahl__eintrag { display: flex; align-items: center; gap: 12px; min-height: 48px; box-sizing: border-box; padding: 8px 12px; font-size: 16px; line-height: 1.3; color: var(--text); border-top: 1px solid var(--rahmen); cursor: pointer; }
.auswahl__liste > :first-child { border-top: 0; }
.auswahl__eintrag.ist-zebra { background: var(--flaeche-sanft); }
.auswahl__eintrag.ist-aktiv, .auswahl__eintrag:hover { background: var(--flaeche-sanft-2); }
.auswahl__eintrag.ist-gewaehlt { font-weight: 600; color: var(--link); }
.auswahl__eintrag[aria-disabled="true"] { color: var(--text-3); cursor: not-allowed; }
.auswahl__eintrag-text { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.auswahl__eintrag .auswahl__neben { font-size: 14px; }
.auswahl__eintrag[hidden], .auswahl__gruppe[hidden] { display: none; }
.auswahl__meldung { padding: 10px 12px; font-size: 14px; color: var(--text-3); }
.auswahl__meldung[data-auswahl-meldung="fehler"] { color: var(--fehler); }
.auswahl__meldung[hidden] { display: none; }
/* Kompakte Formulare und Zeilenformulare (wie select.feld__eingabe in b2d.css) */
.feld--kompakt .auswahl__knopf, .formular--kompakt .auswahl__knopf { min-height: 46px; font-size: 16px; }
.filter--kompakt .auswahl-komponente { max-width: 320px; } /* 3b-5 Paket L: Zeilen-Bauart reihe filter filter--kompakt (die alte Kompakt-Zeilenregel ist entfernt) */
.feld--fehler .auswahl__knopf { border-color: var(--fehler); }
.definition dd .auswahl-komponente { display: inline-block; width: auto; min-width: 240px; max-width: 100%; }
@media (max-width: 639px) {
    .auswahl__liste { max-height: 50vh; }
    .auswahl__eintrag { gap: 8px; }
}
/* Kiosk (K2, 1080 × 1920): Zeilenhöhe ≥ 64 px, große Schrift, Länderliste als Zebra-Liste mit Trennlinien statt Kachel-Raster (Marker data-kiosk-land-* bleiben) */
.kiosk .auswahl__eintrag { min-height: 64px; padding: 12px 24px; font-size: 28px; }
.kiosk__land-liste.auswahl__liste { display: block; max-height: 58vh; padding: 0; border: 1px solid var(--rahmen); border-radius: 20px; background: var(--bg); }
.auswahl__eintrag.kiosk__land-kachel { width: 100%; min-height: 72px; padding: 14px 24px; gap: 16px; border: 0; border-top: 1px solid var(--rahmen); border-radius: 0; background: transparent; font-size: 28px; }
.auswahl__eintrag.kiosk__land-kachel:first-child { border-top: 0; }
.auswahl__eintrag.kiosk__land-kachel.ist-zebra { background: var(--flaeche-sanft); }
.auswahl__eintrag.kiosk__land-kachel.ist-gewaehlt { color: var(--b2d-lila); }
.auswahl__eintrag.kiosk__land-kachel:active { transform: none; background: var(--flaeche-sanft-2); }
@media (max-width: 767px) {
    .kiosk .auswahl__eintrag, .auswahl__eintrag.kiosk__land-kachel { min-height: 56px; padding: 10px 16px; font-size: 20px; }
}
