.sportartensuche {
    display: flex;
    gap: 0.75rem;
    align-items: flex-end;
    max-width: 42rem;
}

.sportartensuche__field {
    position: relative;
    flex: 1 1 18rem;
}

.sportartensuche__label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 600;
}

.sportartensuche__input {
    width: 100%;
    min-height: 2.75rem;
    padding: 0.55rem 0.75rem;
    border: 1px solid currentColor;
    border-radius: 4px;
    font: inherit;
}

.sportartensuche__results {
    position: absolute;
    z-index: 20;
    top: calc(100% + 0.25rem);
    right: 0;
    left: 0;
    max-height: 16rem;
    margin: 0;
    padding: 0.25rem;
    overflow: auto;
    list-style: none;
    border: 1px solid currentColor;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 0.5rem 1.5rem rgb(0 0 0 / 12%);
}

.sportartensuche__option {
    display: block;
    padding: 0.55rem 0.65rem;
    border-radius: 3px;
    cursor: pointer;
}

.sportartensuche__option:hover {
    background: #f1f3f5;
}

/* Aktive Option bei Tastaturbedienung (Fokus bleibt im Eingabefeld, daher kein Browser-Fokusring) */
.sportartensuche__option[aria-selected="true"] {
    background: #f1f3f5;
    outline: 2px solid currentColor;
    outline-offset: -2px;
}

.sportartensuche__empty {
    margin: 0.35rem 0 0;
}

/* Visuell versteckt, für Screenreader vorhanden (Statusmeldungen, Hinweis „externe Website“) */
.sportartensuche__sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.sportartensuche__submit {
    min-height: 2.75rem;
    padding: 0.55rem 1.1rem;
    border: 1px solid currentColor;
    border-radius: 4px;
    background: #111;
    color: #fff;
    font: inherit;
    cursor: pointer;
}

@media (max-width: 40rem) {
    .sportartensuche {
        display: block;
    }

    .sportartensuche__submit {
        width: 100%;
        margin-top: 0.75rem;
    }
}
