/* Auswahlfelder mit eigener Liste (Eddy, 2026-11-15): Backend, Trainer-Hub, Mein Bereich – nicht die Website.
   Die Liste zeichnet assets/js/select.js (auch für den React-Baustein Select). Das geschlossene Feld bleibt das echte <select>
   (admin.css „Auswahlfelder (<select>) überall gleich“, bereich.css „html .mb-app select“). Stil wie die „⋯“-Menüs. */

/* offen: Feld wie im Fokus */
select[data-hhs-sel][aria-expanded="true"] { border-color: #8fa3be !important; box-shadow: 0 0 0 3px rgba(143,163,190,.45) !important; outline: none !important; }

.hhs-sel-pop {
	position: fixed; inset: auto; margin: 0; z-index: 100050; box-sizing: border-box; display: flex; flex-direction: column; min-height: 0;
	width: 260px; height: auto; padding: 6px; border: 0; border-radius: 18px; background: #fff; color: #000; overflow: hidden;
	box-shadow: 0 20px 40px -14px rgba(54,48,44,.5), 0 0 0 1px rgba(54,48,44,.06);
	font: 500 15px/1.3 Montserrat, 'Helvetica Neue', Arial, sans-serif; text-align: left;
	opacity: 0; transform: translateY(-4px); transition: opacity .15s, transform .15s;
}
.hhs-sel-pop.hoch { transform: translateY(4px); }
.hhs-sel-pop.auf { opacity: 1; transform: none; }
.hhs-sel-pop::backdrop { background: transparent; }
.hhs-sel-pop *, .hhs-sel-pop *::before, .hhs-sel-pop *::after { box-sizing: border-box; }

.hhs-sel-kopf { display: none; }
.hhs-sel-liste { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 2px; overflow-y: auto; overscroll-behavior: contain; outline: none; scrollbar-width: thin; scrollbar-color: rgba(143,163,190,.45) transparent; }
.hhs-sel-liste::-webkit-scrollbar { width: 8px; }
.hhs-sel-liste::-webkit-scrollbar-thumb { background: rgba(143,163,190,.45); border-radius: 99px; }
.hhs-sel-grp { display: flex; flex-direction: column; gap: 2px; }
.hhs-sel-grp + .hhs-sel-grp, .hhs-sel-opt + .hhs-sel-grp { margin-top: 6px; }
.hhs-sel-grp-t { padding: 10px 12px 4px; color: #6b655f; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }

.hhs-sel-opt { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex: none; min-height: 44px; padding: 10px 12px; border-radius: 12px; color: #000; cursor: pointer; -webkit-user-select: none; user-select: none; }
.hhs-sel-opt span { min-width: 0; overflow-wrap: anywhere; }
.hhs-sel-opt svg { flex: none; visibility: hidden; }
.hhs-sel-opt.aktiv { background: rgba(143,163,190,.24); }
.hhs-sel-opt.an { background: #3f4458; color: #fff; font-weight: 600; }
.hhs-sel-opt.an svg { visibility: visible; }
.hhs-sel-opt.an.aktiv { background: #353a4c; box-shadow: inset 0 0 0 2px #8fa3be; }
.hhs-sel-opt.aus { color: #8f8780; cursor: default; }
.hhs-sel-opt.aus.aktiv { background: transparent; }
.hhs-sel-opt[hidden], .hhs-sel-grp[hidden] { display: none; }

.hhs-sel-such { display: flex; align-items: center; gap: 10px; flex: none; min-height: 44px; margin: 0 0 8px; padding: 0 12px; border: 1.5px solid #d9cbbd; border-radius: 12px; background: #fffdfa; color: #3f4458; }
.hhs-sel-such:focus-within { border-color: #8fa3be; box-shadow: 0 0 0 3px rgba(143,163,190,.45); }
.hhs-sel-such svg { flex: none; }
.hhs-sel-such input, .hhs-sel-such input[type=search] { flex: 1; min-width: 0; height: 40px; min-height: 0; margin: 0; padding: 0; border: 0 !important; border-radius: 0; background: transparent; box-shadow: none !important; outline: none; color: #000; font: inherit; -webkit-appearance: none; appearance: none; }
.hhs-sel-such input::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
.hhs-sel-leer { margin: 0; padding: 12px; color: #6b655f; font-size: 14px; font-weight: 400; }
.hhs-sel-leer[hidden] { display: none; }

/* Handy: Blatt von unten mit Überschrift und „Schließen“ */
.hhs-sel-pop.blatt { left: 0; right: 0; bottom: 0; top: auto; width: auto; max-width: none; padding: 8px 16px calc(16px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; box-shadow: 0 -18px 40px -14px rgba(54,48,44,.45); transform: translateY(24px); }
.hhs-sel-pop.blatt.auf { transform: none; }
.hhs-sel-pop.blatt::before { content: ""; flex: none; align-self: center; width: 40px; height: 4px; margin: 2px 0 8px; border-radius: 2px; background: #d9cbbd; }
.hhs-sel-pop.blatt::backdrop { background: rgba(54,48,44,.45); }
.hhs-sel-pop.blatt .hhs-sel-kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex: none; padding: 0 0 12px 4px; }
.hhs-sel-kopf b { font-size: 17px; font-weight: 600; color: #000; }
.hhs-sel-zu { display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px; margin: 0; padding: 0; border: 0; border-radius: 50%; background: #f8eadc; color: #3f4458; cursor: pointer; }
.hhs-sel-zu:focus { outline: none; }
.hhs-sel-zu:focus-visible { box-shadow: 0 0 0 3px rgba(143,163,190,.6); }
.hhs-sel-pop.blatt .hhs-sel-opt { min-height: 52px; font-size: 16px; }
.hhs-sel-pop.blatt .hhs-sel-such input { font-size: 16px; } /* iOS vergrößert sonst beim Tippen */

@media (prefers-reduced-motion: reduce) { .hhs-sel-pop { transition: none; } }
