/* Modern Menu Styles */
:root {
    /* Dark Mode (Default) */
    --menu-bg: rgba(18, 18, 18, 0.95);
    --menu-text: #ffffff;
    --menu-hover: #00CFFF;
    --menu-active: #00CFFF;
    --menu-border: rgba(255, 255, 255, 0.1);
    --menu-dropdown-bg: rgba(30, 30, 30, 0.98);
    --menu-dropdown-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    --menu-toggle-bg: transparent;
    --menu-toggle-color: #ffffff;
    --menu-mobile-bg: rgba(18, 18, 18, 0.98);
}

/* Light Mode */
:root.light-mode {
    --menu-bg: rgba(255, 255, 255, 0.95);
    --menu-text: #121212;
    --menu-hover: #0088cc;
    --menu-active: #0088cc;
    --menu-border: rgba(0, 0, 0, 0.1);
    --menu-dropdown-bg: rgba(250, 250, 250, 0.98);
    --menu-dropdown-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    --menu-toggle-bg: transparent;
    --menu-toggle-color: #121212;
    --menu-mobile-bg: rgba(255, 255, 255, 0.98);
}

/* Modern Header */
.modern-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--menu-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.modern-header.scrolled {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    padding: 5px 0;
}

/* Modern Navigation */
.modern-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    transition: all 0.3s ease;
}

.modern-nav .logo {
    display: flex;
    align-items: center;
}

.modern-nav .logo img {
    height: 40px;
    transition: all 0.3s ease;
}

/* Navigation Links */
.nav-container {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin: 0 5px;
    position: relative;
}

.nav-links li a {
    color: var(--menu-text);
    text-decoration: none;
    padding: 10px 15px;
    font-size: 0.95rem;
    font-weight: 500;
    display: block;
    transition: all 0.2s ease;
    border-radius: 4px;
    position: relative;
}

.nav-links li a:hover {
    color: var(--menu-hover);
}

.nav-links li a.active {
    color: var(--menu-active);
    font-weight: 600;
}

.nav-links li a.active::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background-color: var(--menu-active);
    border-radius: 2px;
}

/* Navigation Right Side */
.nav-right {
    display: flex;
    align-items: center;
    margin-left: 20px;
}

/* Mobile Menu Toggle - Professional Design */
.mobile-menu-toggle {
    display: none;
    border: none;
    color: #ffffff;
    font-size: 16px;
    cursor: pointer;
    z-index: 1501;
    position: fixed;
    top: 55px; /* 1cm weiter nach unten */
    right: 15px;
    display: none; /* Standardmäßig ausgeblendet */
    width: 45px;
    height: 45px;
    border-radius: 4px;
    background: rgba(10, 15, 30, 0.85);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    justify-content: center;
    align-items: center;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Mobile Menu Toggle Hover Effect */
.mobile-menu-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(15, 23, 42, 0.95);
}

/* Mobile Menu Toggle Active State */
.mobile-menu-toggle:active {
    transform: scale(0.95);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    background: rgba(10, 15, 30, 0.95);
}

/* Mobile Menu Toggle Icon Animation */
.mobile-menu-toggle i {
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.mobile-menu-toggle:hover i {
    transform: rotate(0deg);
    color: #ffffff;
}

/* Styling für das Close-Icon */
.mobile-menu-toggle i.fa-times {
    font-size: 18px;
}

/* Media Queries */
@media (max-width: 576px) {
    .mobile-menu-toggle {
        width: 40px;
        height: 40px;
        font-size: 14px;
        top: 10px;
        right: 10px;
    }
}

@media (max-width: 992px) {
    .nav-container {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 400px;
        height: 100vh;
        background: rgba(15, 23, 42, 0.9);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.2);
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1500;
        padding: 90px 25px 30px;
        overflow-y: auto;
        border-left: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-container.active {
        right: 0;
    }

    .nav-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .nav-links li {
        margin: 5px 0;
        width: 100%;
    }
    
    .nav-links li a {
        padding: 14px 18px;
        width: 100%;
        border-radius: 12px;
        font-weight: 500;
        letter-spacing: 0.3px;
        display: flex;
        align-items: center;
        transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        background-color: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .nav-links li a:hover {
        background-color: rgba(0, 114, 255, 0.1);
        transform: translateX(5px);
        border: 1px solid rgba(0, 114, 255, 0.2);
    }
    
    .nav-links li a.active {
        background: linear-gradient(135deg, #00c6ff, #0072ff);
        color: white;
        box-shadow: 0 4px 15px rgba(0, 114, 255, 0.3);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .nav-links li a.active::after {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex !important;
    }
    
    /* Desktop-Navigation ausblenden auf mobilen Geräten */
    .nav-container {
        display: none;
    }
    
    .nav-right {
        display: none;
    }
}

/* Animation for Mobile Menu */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-links li {
    animation: fadeIn 0.3s ease forwards;
    opacity: 0;
}

.nav-container.active .nav-links li:nth-child(1) { animation-delay: 0.1s; }
.nav-container.active .nav-links li:nth-child(2) { animation-delay: 0.2s; }
.nav-container.active .nav-links li:nth-child(3) { animation-delay: 0.3s; }
.nav-container.active .nav-links li:nth-child(4) { animation-delay: 0.4s; }
.nav-container.active .nav-links li:nth-child(5) { animation-delay: 0.5s; }
.nav-container.active .nav-links li:nth-child(6) { animation-delay: 0.6s; }
.nav-container.active .nav-links li:nth-child(7) { animation-delay: 0.7s; }
.nav-container.active .nav-links li:nth-child(8) { animation-delay: 0.8s; }
.nav-container.active .nav-links li:nth-child(9) { animation-delay: 0.9s; }
.nav-container.active .nav-links li:nth-child(10) { animation-delay: 1.0s; }