.auswahl {
    position: relative;
    display: block;
}

.auswahl-verborgen {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.auswahl-eingabe {
    width: 100%;
    padding: .45rem 1.9rem .45rem .6rem;
    font: inherit;
    font-size: .875rem;
    color: #1f2937;
    background: #ffffff url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2364748b'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") no-repeat right .4rem center;
    background-size: 18px 18px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
}

.auswahl-offen .auswahl-eingabe {
    border-color: #104378;
}

.auswahl-liste {
    position: absolute;
    z-index: 30;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    max-height: 288px;
    margin: 4px 0 0;
    padding: 4px;
    overflow-y: auto;
    list-style: none;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(15, 34, 58, .16);
}

.auswahl-offen .auswahl-liste {
    display: block;
}

.auswahl-eintrag {
    padding: 7px 10px;
    font-size: .875rem;
    line-height: 1.35;
    color: #1f2937;
    border-radius: 5px;
    cursor: pointer;
}

.auswahl-eintrag:hover,
.auswahl-aktiv {
    background: #eef4fa;
}

.auswahl-gewaehlt {
    font-weight: 600;
    color: #104378;
}

.auswahl-gewaehlt::before {
    content: "✓ ";
}

.auswahl-leer {
    padding: 10px;
    font-size: .8125rem;
    color: #64748b;
}

.auswahl-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 0 0 5px;
}

.auswahl-chips:empty {
    display: none;
}

.auswahl-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 5px 3px 10px;
    font-size: .8125rem;
    color: #104378;
    background: #eef4fa;
    border: 1px solid #d7e5f2;
    border-radius: 999px;
}

.auswahl-chip-weg {
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    padding: 0;
    font-size: .9375rem;
    line-height: 1;
    color: #104378;
    background: transparent;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
}

.auswahl-chip-weg:hover {
    background: #d7e5f2;
}

.auswahl-eingabe:focus-visible,
.auswahl-chip-weg:focus-visible {
    outline: 3px solid #f0a500;
    outline-offset: 2px;
}

.auswahl-mehrfach .auswahl-liste {
    max-height: 320px;
}
