/* ===================================
   MOBILE MENU FIX - OPTIMIERT & FUNKTIONSFÄHIG
   =================================== */

/* Desktop: Menu-Toggle verstecken */
.menu-toggle {
    display: none;
}

/* Mobile Menu Optimierungen */
@media (max-width: 768px) {
    /* Navbar Anpassungen */
    .nav-modern {
        padding: 0.75rem 1.5rem;
    }
    
    .nav-container {
        max-width: 100%;
    }
    
    /* Menu Toggle Button - Verbessert */
    .menu-toggle {
        display: flex !important;
        flex-direction: column;
        justify-content: space-around;
        gap: 5px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 8px;
        z-index: 1002;
        position: relative;
        width: 40px;
        height: 40px;
        border-radius: 8px;
        transition: background 0.3s ease;
    }
    
    .menu-toggle:hover {
        background: rgba(138, 109, 93, 0.1);
    }
    
    .menu-toggle span {
        width: 30px;
        height: 3px;
        background: var(--primary-brown, #8A6D5D);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        display: block;
        border-radius: 3px;
        transform-origin: center;
    }
    
    /* X Animation - Verbessert */
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translateY(9px);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translateY(-9px);
    }
    
    /* Mobile Navigation - Fullscreen Overlay */
    .nav-links {
        /* WICHTIG: Nur display:none, KEIN !important */
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100vw;
        height: 100vh;
        background: linear-gradient(135deg, rgba(245, 240, 237, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%);
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 1rem;
        z-index: 1001;
        padding: 4rem 2rem;
        box-shadow: 0 0 40px rgba(138, 109, 93, 0.15);
        margin: 0;
        list-style: none;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    /* AKTIV STATE - Menü öffnen */
    .nav-links.active {
        display: flex !important;
        opacity: 1;
        pointer-events: all;
    }
    
    /* Menu Items Styling */
    .nav-links li {
        list-style: none;
        margin: 0;
        padding: 0;
        opacity: 0;
        transform: translateY(30px);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    /* Gestaffelte Animation für Items */
    .nav-links.active li {
        opacity: 1;
        transform: translateY(0);
    }
    
    .nav-links.active li:nth-child(1) {
        animation: slideInUp 0.4s ease forwards;
        animation-delay: 0.05s;
    }
    
    .nav-links.active li:nth-child(2) {
        animation: slideInUp 0.4s ease forwards;
        animation-delay: 0.1s;
    }
    
    .nav-links.active li:nth-child(3) {
        animation: slideInUp 0.4s ease forwards;
        animation-delay: 0.15s;
    }
    
    .nav-links.active li:nth-child(4) {
        animation: slideInUp 0.4s ease forwards;
        animation-delay: 0.2s;
    }
    
    .nav-links.active li:nth-child(5) {
        animation: slideInUp 0.4s ease forwards;
        animation-delay: 0.25s;
    }
    
    @keyframes slideInUp {
        0% {
            opacity: 0;
            transform: translateY(30px);
        }
        100% {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    /* Links im Menü */
    .nav-links li a {
        display: block;
        padding: 1rem 2.5rem;
        font-size: 1.75rem;
        color: var(--primary-brown, #8A6D5D);
        text-decoration: none;
        font-weight: 500;
        letter-spacing: 0.02em;
        text-align: center;
        border-radius: 12px;
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
        background: transparent;
    }
    
    .nav-links li a::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(201, 168, 130, 0.15), transparent);
        transition: left 0.5s ease;
    }
    
    .nav-links li a:hover::before {
        left: 100%;
    }
    
    .nav-links li a:hover,
    .nav-links li a.active {
        color: var(--accent-gold, #C9A882);
        transform: translateY(-2px);
        background: rgba(138, 109, 93, 0.05);
    }
    
    /* Logo Anpassungen für Mobile */
    .logo-section {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        flex: 1;
    }
    
    .main-logo {
        width: 40px;
        height: 40px;
    }
    
    .logo-text h1 {
        font-size: 1rem;
        margin: 0;
        line-height: 1.2;
    }
    
    .logo-text p {
        font-size: 0.65rem;
        margin: 0;
        line-height: 1.2;
    }
}

/* WhatsApp Button Anpassungen für Mobile Menu */
@media (max-width: 768px) {
    .whatsapp-float {
        position: fixed;
        bottom: 20px;
        right: 20px;
        width: 56px;
        height: 56px;
        background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
        z-index: 999;
        transition: all 0.3s ease;
        animation: whatsappPulse 2s infinite;
    }
    
    .whatsapp-float:hover {
        transform: scale(1.1) rotate(10deg);
        box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
    }
    
    /* Wenn Floating CTA aktiv ist */
    body.floating-cta-active .whatsapp-float {
        bottom: 90px;
    }
    
    @keyframes whatsappPulse {
        0%, 100% {
            box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
        }
        50% {
            box-shadow: 0 4px 25px rgba(37, 211, 102, 0.7), 0 0 0 10px rgba(37, 211, 102, 0.1);
        }
    }
    
    .whatsapp-float::before {
        content: '💬';
        font-size: 28px;
    }
    
    .whatsapp-float::after {
        content: '';
    }
}

/* Kleinere Screens */
@media (max-width: 480px) {
    .nav-links li a {
        font-size: 1.5rem;
        padding: 0.875rem 2rem;
    }
    
    .main-logo {
        width: 35px;
        height: 35px;
    }
    
    .logo-text h1 {
        font-size: 0.875rem;
    }
    
    .logo-text p {
        font-size: 0.6rem;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 15px;
        right: 15px;
    }
    
    .whatsapp-float::before {
        font-size: 24px;
