/* Sprachumschalter Styles */

.language-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 1rem;
}

.lang-link {
    padding: 0.25rem !important;
    font-size: 1.5rem;
    line-height: 1;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    opacity: 0.7;
    text-decoration: none;
}

.lang-link:hover {
    background: rgba(30, 58, 138, 0.1);
    opacity: 1;
    transform: scale(1.1);
}

.lang-link.active {
    background: rgba(30, 58, 138, 0.2);
    opacity: 1;
    transform: scale(1.15);
    box-shadow: 0 2px 4px rgba(30, 58, 138, 0.3);
}

.flag-icon {
    display: inline-block;
    width: 24px;
    height: 18px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 2px;
    user-select: none;
}

.flag-de {
    background-image: url('../images/flags/flag-de.svg');
}

.flag-en {
    background-image: url('../images/flags/flag-en.svg');
}

@media (max-width: 768px) {
    .language-switcher {
        margin-left: 0;
        margin-top: 0.5rem;
    }
    
    .lang-link {
        width: 28px;
        height: 28px;
    }
    
    .flag-icon {
        width: 20px;
        height: 15px;
    }
}

