.sprachhinweis {
    position: fixed;
    left: 1rem;
    bottom: 1.5rem;
    z-index: 900;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.3rem 0.3rem 0.3rem 0.4rem;
    border-radius: 999px;
    background: rgba(17, 17, 22, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 10px 28px -8px rgba(0, 0, 0, 0.45);
    animation: sprachhinweis-ein 0.35s ease both;
}

.sprachhinweis .sprachhinweis__link {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 0.6rem 0.45rem 0.55rem;
    border-radius: 999px;
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.sprachhinweis .sprachhinweis__link .flag {
    width: 20px;
    height: 15px;
    border-radius: 2px;
    flex: none;
}

.sprachhinweis .sprachhinweis__link i {
    color: var(--primary);
    transition: transform 0.2s ease;
}

.sprachhinweis .sprachhinweis__link:hover,
.sprachhinweis .sprachhinweis__link:focus-visible {
    background: rgba(255, 255, 255, 0.08);
}

.sprachhinweis .sprachhinweis__link:hover i,
.sprachhinweis .sprachhinweis__link:focus-visible i {
    transform: translateX(3px);
}

.sprachhinweis__zu {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #a1a1aa;
    font-size: 0.8rem;
    cursor: pointer;
}

.sprachhinweis__zu:hover,
.sprachhinweis__zu:focus-visible {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.sprachhinweis :focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

@keyframes sprachhinweis-ein {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}

@media (max-width: 560px) {
    .sprachhinweis {
        bottom: 5.25rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sprachhinweis {
        animation: none;
    }

    .sprachhinweis .sprachhinweis__link i {
        transition: none;
    }
}
