/* ========================================
   MOBILE LANGUAGE SWITCHER IM MENÜ
   Nur im ausgeklappten Mobile-Nav sichtbar
   ======================================== */

/* Mobile Language Section - Container (minimalistisch) */
.mobile-language-section {
    background: transparent;
    border: none;
    padding: 0;
    margin: var(--space-sm) 0 var(--space-xs) 0;
}

/* Title mit Globe Icon - versteckt für minimalistisches Design */
.mobile-language-title {
    display: none;
}

/* Flaggen Container - Grid Layout (zentriert, ausgewogen) */
.mobile-language-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.625rem;
    width: 100%;
    padding: 0.5rem 0;
}

/* Mobile Language Buttons - minimalistisch, gut sichtbar */
.mobile-lang-btn {
    position: relative;
    width: 36px;
    height: 36px;
    padding: 4px;
    border: none;
    background: transparent;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
}

/* Hover & Active States - subtil */
.mobile-lang-btn:hover {
    transform: scale(1.15);
    background: rgba(5, 245, 189, 0.08);
}

.mobile-lang-btn:active {
    transform: scale(0.95);
}

.mobile-lang-btn.active {
    background: rgba(5, 245, 189, 0.15);
    box-shadow: 0 0 0 2px var(--primary-orange);
    transform: scale(1.1);
}

/* Flag Icons im Mobile Menu - gut sichtbar */
.mobile-flag-icon {
    width: 26px;
    height: 26px;
    border-radius: 3px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    transition: all 0.25s ease;
    pointer-events: none;
}

.mobile-lang-btn:hover .mobile-flag-icon {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.mobile-lang-btn.active .mobile-flag-icon {
    animation: flagBounce 0.5s ease-in-out;
}

@keyframes flagBounce {
    0%, 100% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.15);
    }
    50% {
        transform: scale(0.95);
    }
    75% {
        transform: scale(1.05);
    }
}

/* Responsive Anpassungen */

/* Tablets & größere Mobile Phones */
@media (min-width: 480px) and (max-width: 768px) {
    .mobile-language-buttons {
        gap: 0.75rem;
    }
    
    .mobile-lang-btn {
        width: 40px;
        height: 40px;
    }
    
    .mobile-flag-icon {
        width: 30px;
        height: 30px;
    }
}

/* Sehr kleine Screens (iPhone SE, etc.) */
@media (max-width: 375px) {
    .mobile-language-buttons {
        gap: 0.5rem;
    }
    
    .mobile-lang-btn {
        width: 32px;
        height: 32px;
        padding: 3px;
    }
    
    .mobile-flag-icon {
        width: 22px;
        height: 22px;
    }
}

/* Extra kleine Screens */
@media (max-width: 320px) {
    .mobile-language-buttons {
        gap: 0.4rem;
    }
    
    .mobile-lang-btn {
        width: 28px;
        height: 28px;
        padding: 2px;
    }
    
    .mobile-flag-icon {
        width: 20px;
        height: 20px;
    }
}

/* Loading/Disabled State */
.mobile-lang-btn[disabled] {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.mobile-lang-btn[disabled]:hover {
    transform: none;
    background: transparent;
    box-shadow: none;
}

/* Focus Styles für Keyboard Navigation */
.mobile-lang-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(5, 245, 189, 0.5);
}

.mobile-lang-btn:focus-visible {
    outline: 3px solid var(--primary-orange);
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .mobile-lang-btn {
        border: 2px solid currentColor;
    }
    
    .mobile-lang-btn.active {
        background: var(--primary-orange);
        border-color: var(--primary-orange);
    }
}

/* Reduced Motion für Accessibility */
@media (prefers-reduced-motion: reduce) {
    .mobile-lang-btn,
    .mobile-flag-icon {
        transition: none !important;
        animation: none !important;
    }
    
    .mobile-lang-btn:hover,
    .mobile-lang-btn:active,
    .mobile-lang-btn.active {
        transform: none !important;
    }
    
    .mobile-lang-btn:hover .mobile-flag-icon {
        transform: none !important;
    }
}

/* Dark Mode Support (falls später gewünscht) */
@media (prefers-color-scheme: dark) {
    .mobile-lang-btn:hover {
        background: rgba(255, 255, 255, 0.1);
    }
}

/* Print Styles */
@media print {
    .mobile-language-section {
        display: none !important;
    }
}

/* Nur im Mobile Nav anzeigen */
@media (min-width: 969px) {
    .mobile-language-section {
        display: none !important;
    }
}
