.sprache-auswahl {
    position: relative;
}

.sprache-knopf,
.sprache-eintrag {
    background: transparent;
    border: 0;
    cursor: pointer;
    font: inherit;
}

.sprache-knopf {
    align-items: center;
    display: inline-flex;
    height: 2.5rem;
    justify-content: center;
    width: 2.75rem;
}

.sprache-flagge {
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
    font-size: 1.35rem;
    line-height: 1;
}

.sprache-menu {
    background: #fff;
    border-radius: 0 0 4px 4px;
    border-top: 2px solid var(--primary-color, #3b82f6);
    box-shadow: 0 8px 16px rgba(10, 10, 10, 0.1);
    max-height: 70vh;
    overflow: auto;
    position: absolute;
    right: 0;
    top: 100%;
    z-index: 40;
    min-width: 14rem;
}

.sprache-eintrag {
    align-items: center;
    color: #363636;
    display: flex;
    gap: 0.75rem;
    padding: 0.55rem 0.9rem;
    text-align: left;
    width: 100%;
}

.sprache-eintrag:hover,
.sprache-eintrag.ist-aktiv {
    background: #f5f5f5;
}

.navbar-brand .sprache-auswahl {
    display: none;
}

@media screen and (max-width: 1023px) {
    .navbar-brand .sprache-auswahl {
        display: flex;
        align-items: center;
    }

    .navbar-menu .sprache-auswahl {
        display: none;
    }

    .landing-header .navbar-brand {
        gap: 8px;
    }

    .landing-header .navbar-burger {
        flex: 0 0 48px;
    }

    .landing-header .navbar-brand .sprache-auswahl {
        background: #fff;
        border-radius: 12px;
        flex: 0 0 auto;
        height: 48px;
    }

    .sprache-menu {
        position: absolute;
        right: 0;
        top: 100%;
        box-shadow: 0 8px 16px rgba(10, 10, 10, 0.1);
        max-height: 70vh;
    }
}
