/*
 * Ergänzungen zu intl-tel-input 29 (siehe assets/phone_input.js). Markup der
 * Version 29: das aufgeklappte Panel heißt .iti__country-selector (Suchfeld
 * .iti__search-input-wrapper + Liste .iti__country-list), es hängt per
 * dropdownParent am <body> (.iti--detached-country-selector). Seine Fläche
 * kommt aus der Variable --iti-country-selector-bg - im dunklen Design auf
 * die Kartenfarbe setzen (wie .dark .bg-white in frontend-dark.css), sonst ist
 * das Panel durchsichtig und die Felder dahinter scheinen durch (Praxisfall
 * 2026-09-11). Bibliotheks-CSS ist verschachtelt und damit gleich spezifisch
 * wie einfache ".dark .x"-Regeln - deshalb ".dark .iti .x" plus !important.
 * Die Flaggen-Sprites holt die Importmap mit der Bibliotheks-CSS
 * (assets/vendor/installed.php); hier keine Pfad-Variable überschreiben.
 */
.iti {
    width: 100%;
}

.iti .iti__country-selector {
    border-radius: 0.5rem;
    z-index: 60 !important;
}

.dark .iti {
    --iti-country-selector-bg: #1E252F;
    --iti-hover-color: #2A3340;
    --iti-border-color: #3A4452;
    --iti-icon-color: #9CA3AF;
}

.dark .iti .iti__country-selector {
    background-color: #1E252F !important;
    border-color: #3A4452 !important;
    color: #E5E7EB !important;
    color-scheme: dark;
}

.dark .iti .iti__country,
.dark .iti .iti__country .iti__country-name {
    color: #E5E7EB !important;
}

.dark .iti .iti__country:hover,
.dark .iti .iti__country.iti__highlight {
    background-color: #2A3340 !important;
}

.dark .iti .iti__dial-code,
.dark .iti .iti__selected-dial-code {
    color: #9CA3AF !important;
}

.dark .iti .iti__search-input {
    background-color: #111827 !important;
    color: #E5E7EB !important;
    border: 1px solid #3A4452 !important;
}

.dark .iti .iti__search-input::placeholder {
    color: #6B7280;
}

.dark .iti .iti__arrow {
    border-top-color: #9CA3AF !important;
}

.dark .iti .iti__arrow--up {
    border-bottom-color: #9CA3AF !important;
}
