/* Sprachwechsler Styling */
.langSwitch {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    padding: 10px;
}

.lang-btn {
    background: none;
    border: 2px solid transparent;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
}

.lang-btn:hover {
    transform: scale(1.1);
    border-color: #12abff;
    background-color: rgba(18, 171, 255, 0.1);
}

.lang-btn.active {
    border-color: #12abff;
    background-color: rgba(18, 171, 255, 0.15);
    box-shadow: 0 2px 8px rgba(18, 171, 255, 0.3);
}

.lang-btn img {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    display: block;
}

.lang-btn:focus {
    outline: 2px solid #000000;
    outline-offset: 2px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .langSwitch {
        gap: 6px;
    }
    
    .lang-btn {
        width: 38px;
        height: 38px;
    }
    
    .lang-btn img {
        width: 24px;
        height: 24px;
    }
}

/* RTL Support für Arabisch */
[dir="rtl"] body {
    text-align: right;
}

[dir="rtl"] .langSwitch {
    direction: ltr; /* Flaggen bleiben in normaler Reihenfolge */
}

/* Smooth transitions für Sprachwechsel */
[data-translate] {
    transition: opacity 0.2s ease;
}

body.lang-switching [data-translate] {
    opacity: 0.7;
}
