/* ==========================================================================
   Mobile-First Navigation with Glassmorphism
   ========================================================================== */

/* Menu Toggle Button - Premium Liquid Glass mit professionellem Business-Look */
.menu-toggle {
    position: fixed;
    top: 20px;
    right: 20px; /* Konsistenter 20px Abstand vom Rand */
    z-index: 1100;
    width: 50px;
    height: 50px;
    /* Premium Liquid Glass Effect - Subtiler Business-Look */
    background: linear-gradient(145deg,
        rgba(255, 255, 255, 0.12) 0%,
        rgba(255, 255, 255, 0.08) 40%,
        rgba(255, 255, 255, 0.05) 60%,
        rgba(255, 255, 255, 0.1) 100%);
    backdrop-filter: blur(40px) saturate(150%) brightness(1.1);
    -webkit-backdrop-filter: blur(40px) saturate(150%) brightness(1.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px; /* Subtle Rundung für Business-Look */
    cursor: pointer;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow:
        /* Premium Liquid Glass Schatten */
        0 8px 32px rgba(0, 0, 0, 0.12),
        0 4px 16px rgba(0, 0, 0, 0.08),
        /* Subtile Beleuchtung */
        0 0 24px rgba(183, 148, 246, 0.1),
        /* Innere Liquid-Reflexionen */
        inset 0 1px 1px rgba(255, 255, 255, 0.2),
        inset 0 -1px 1px rgba(0, 0, 0, 0.1),
        /* Glastiefe */
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    overflow: hidden;
    /* Liquid Glass Animation Basis */
    position: fixed;
    /* Button reset styles */
    padding: 0;
    font-family: inherit;
    font-size: 100%;
    line-height: 1.15;
    margin: 0;
    text-transform: none;
    -webkit-appearance: button;
}

/* Liquid Glass Shimmer Animation - Sehr langsam und edel */
.menu-toggle::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.08) 50%,
        transparent 70%
    );
    animation: liquidShimmer 12s infinite ease-in-out;
    pointer-events: none;
}

@keyframes liquidShimmer {
    0% {
        transform: rotate(0deg) translateX(-100%);
    }
    100% {
        transform: rotate(45deg) translateX(100%);
    }
}

.menu-toggle:hover {
    transform: scale(1.05) translateY(-2px);
    background: linear-gradient(145deg,
        rgba(255, 255, 255, 0.18) 0%,
        rgba(255, 255, 255, 0.12) 40%,
        rgba(255, 255, 255, 0.08) 60%,
        rgba(255, 255, 255, 0.15) 100%);
    box-shadow:
        /* Premium Elevation */
        0 12px 48px rgba(0, 0, 0, 0.18),
        0 6px 24px rgba(0, 0, 0, 0.12),
        /* Purple Glow - Subtil */
        0 0 32px rgba(183, 148, 246, 0.2),
        /* Liquid Glass Highlights */
        inset 0 2px 2px rgba(255, 255, 255, 0.3),
        inset 0 -1px 1px rgba(0, 0, 0, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(45px) saturate(160%) brightness(1.15);
    -webkit-backdrop-filter: blur(45px) saturate(160%) brightness(1.15);
}

.menu-toggle:active {
    transform: scale(0.95);
}

/* SIMO Logo Icon - Premium Business Style */
.menu-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 1;
    line-height: 0;
}

.menu-icon svg {
    width: 24px;
    height: 24px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2))
            drop-shadow(0 0 4px rgba(183, 148, 246, 0.3));
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: block;
}

/* Hover Animation für Icon - Sanft und edel */
.menu-toggle:hover .menu-icon {
    transform: translate(-50%, -50%) scale(1.08);
}

.menu-toggle:hover .menu-icon svg {
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.25))
            drop-shadow(0 0 8px rgba(183, 148, 246, 0.4));
    /* Sehr sanfte Skalierung */
    transform: scale(1.05);
}

/* Intensiver weißer Lichtreflex-Effekt */
.menu-toggle::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 20%,
        rgba(255, 255, 255, 0.3) 45%,
        rgba(255, 255, 255, 0.5) 50%,
        rgba(255, 255, 255, 0.3) 55%,
        transparent 80%
    );
    transform: rotate(45deg);
    animation: shimmer-intense 2.5s infinite;
    pointer-events: none;
}

/* Zusätzliche weiße Glow-Ebene */
.menu-toggle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle,
        rgba(255, 255, 255, 0.3) 0%,
        rgba(255, 255, 255, 0.1) 30%,
        transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.menu-toggle:hover::after {
    opacity: 1;
    animation: glow-pulse 1.5s ease-in-out infinite;
}

@keyframes shimmer-intense {
    0% { transform: rotate(45deg) translateX(-100%); }
    100% { transform: rotate(45deg) translateX(100%); }
}

@keyframes glow-pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.6;
    }
}

/* Menu open state - Logo animation */
.menu-toggle.active .menu-icon {
    transform: translate(-50%, -50%) rotate(180deg) scale(0.9);
}

.menu-toggle.active .menu-icon svg {
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.8));
    /* Bleibt zentriert im aktiven Zustand */
    transform: scale(1);
}

.menu-toggle.active {
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.4) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0.35) 100%);
    box-shadow:
        /* Maximale weiße Beleuchtung im aktiven Zustand */
        0 0 100px rgba(255, 255, 255, 0.8),
        0 0 60px rgba(255, 255, 255, 0.6),
        0 0 40px rgba(255, 255, 255, 0.5),
        /* Tiefe Schatten */
        0 20px 60px rgba(0, 0, 0, 0.5),
        /* Intensive innere weiße Highlights */
        inset 0 4px 8px rgba(255, 255, 255, 0.9),
        inset 0 -4px 8px rgba(255, 255, 255, 0.5),
        inset 0 0 40px rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(40px) saturate(220%) brightness(1.5);
    -webkit-backdrop-filter: blur(40px) saturate(220%) brightness(1.5);
}

/* Slide-out Navigation Menu - Enhanced Liquid Glass Design */
.nav-menu {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    max-width: 90vw;
    height: 100vh;
    z-index: 1200;

    /* Enhanced Liquid Glass Effect with better contrast */
    background: linear-gradient(135deg,
        rgba(20, 20, 30, 0.95) 0%,
        rgba(30, 30, 40, 0.92) 50%,
        rgba(25, 25, 35, 0.95) 100%);
    backdrop-filter: blur(30px) saturate(250%) brightness(1.1);
    -webkit-backdrop-filter: blur(30px) saturate(250%) brightness(1.1);

    /* Glass Border & Enhanced Shadow */
    border-left: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow:
        -30px 0 80px rgba(0, 0, 0, 0.7),
        -10px 0 40px rgba(255, 255, 255, 0.1),
        inset 1px 0 0 rgba(255, 255, 255, 0.3),
        inset -1px 0 0 rgba(255, 255, 255, 0.15),
        inset 0 0 120px rgba(255, 255, 255, 0.03);

    /* Smooth Animation */
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateX(0);
    will-change: transform, right;
}

.nav-menu.active {
    right: 0;
    box-shadow:
        -40px 0 100px rgba(0, 0, 0, 0.8),
        -15px 0 50px rgba(255, 255, 255, 0.15),
        inset 1px 0 0 rgba(255, 255, 255, 0.35),
        inset -1px 0 0 rgba(255, 255, 255, 0.2),
        inset 0 0 150px rgba(255, 255, 255, 0.05);
}

/* Nav Menu ist immer Liquid Glass - kein Theme-Unterschied mehr */

/* Menu Inner Container - Enhanced Glass Effect */
.nav-menu-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 30px;
    overflow-y: auto;
    position: relative;
}

/* Inner Glass Layer for better depth */
.nav-menu-inner::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    pointer-events: none;
    z-index: -1;
}

/* Close Button - Enhanced Glass Style */
.menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.15) 0%,
        rgba(255, 255, 255, 0.1) 100%);
    backdrop-filter: blur(15px) brightness(1.2);
    -webkit-backdrop-filter: blur(15px) brightness(1.2);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.95);
    font-size: 20px;
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.menu-close:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Navigation Header */
.nav-header {
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--glass-border);
}

.nav-logo {
    height: 40px;
    width: auto;
}

.nav-logo.logo-light {
    display: none;
}

.nav-logo.logo-dark {
    display: block;
}

/* Navigation Links */
.nav-links {
    list-style: none;
    margin: 0;
    padding: 20% 0 0 0;
    flex: 1;
}

.nav-links li {
    margin-bottom: 10px;
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-menu.active .nav-links li {
    opacity: 1;
    transform: translateX(0);
}

/* Staggered animation for premium feel */
.nav-menu.active .nav-links li:nth-child(1) { transition-delay: 0.1s; }
.nav-menu.active .nav-links li:nth-child(2) { transition-delay: 0.15s; }
.nav-menu.active .nav-links li:nth-child(3) { transition-delay: 0.2s; }
.nav-menu.active .nav-links li:nth-child(4) { transition-delay: 0.25s; }
.nav-menu.active .nav-links li:nth-child(5) { transition-delay: 0.3s; }
.nav-menu.active .nav-links li:nth-child(6) { transition-delay: 0.35s; }

.nav-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.08) 0%,
        rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(15px) brightness(1.2);
    -webkit-backdrop-filter: blur(15px) brightness(1.2);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    font-family: 'UniNeue', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: var(--font-weight-regular);
    font-size: 1.1rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.nav-link:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    opacity: 0.1;
    transition: left 0.3s ease;
}

.nav-link:hover {
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.12) 0%,
        rgba(255, 255, 255, 0.1) 100%);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateX(10px) scale(1.02);
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.3),
        0 5px 15px rgba(255, 255, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    color: white;
}

.nav-link:hover:before {
    left: 0;
}

.nav-link i {
    width: 24px;
    font-size: 1.2rem;
    color: white;
}

.nav-link span {
    flex: 1;
    color: white;
}

/* Case Studies Section Styles */
.nav-section-divider {
    margin: 25px 20px 15px;
    padding: 10px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.divider-label {
    position: absolute;
    top: -10px;
    left: 20px;
    background: var(--bg-primary);
    padding: 0 10px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-case-studies {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    margin: 0 10px;
    padding: 10px 0;
}

.nav-link-case {
    margin: 5px 10px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-link-case:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
}

.case-badge {
    padding: 2px 8px;
    background: var(--primary-gradient);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 10px;
    white-space: nowrap;
}

/* Navigation styling is now consistent across all themes */
.nav-section-divider {
    border-top-color: rgba(255, 255, 255, 0.1);
}

.divider-label {
    background: var(--bg-primary);
    color: rgba(255, 255, 255, 0.9);
}

.nav-case-studies {
    background: rgba(255, 255, 255, 0.05);
}

.nav-link-case {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
}

.nav-link-case:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
}

/* Active link state */
.nav-link.active {
    background: var(--primary-gradient);
    color: white;
}

.nav-link.active i {
    color: white;
}

/* Navigation Footer */
.nav-footer {
    margin-top: auto;
    padding-top: 30px;
    border-top: 1px solid var(--glass-border);
}

/* Language Switcher - Centered without Theme Toggle */
.language-switcher {
    display: flex;
    gap: 10px;
    width: 100%;
    justify-content: center;
    padding-top: 10px;
}

.lang-btn {
    flex: 0 1 120px;
    padding: 12px 20px;
    background: transparent;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-primary);
    text-decoration: none;
    font-family: var(--font-family-ui);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(var(--blur-amount)) saturate(var(--blur-saturate));
    -webkit-backdrop-filter: blur(var(--blur-amount)) saturate(var(--blur-saturate));
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.lang-btn.active {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
}

.lang-btn .flag {
    font-size: 1.2rem;
}

/* Navigation Overlay - Enhanced Blur Effect */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1150;
    will-change: opacity, backdrop-filter;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
    background: linear-gradient(135deg,
        rgba(0, 0, 0, 0.5) 0%,
        rgba(10, 10, 20, 0.6) 100%);
    backdrop-filter: blur(12px) saturate(150%);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
}

/* ==========================================================================
   Responsive Design
   All responsive overrides are now in navigation-responsive.css
   ========================================================================== */

/* Animation Classes */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.nav-menu.active .nav-link {
    animation: slideIn 0.4s ease forwards;
}

.nav-menu.active .nav-link:nth-child(1) { animation-delay: 0.1s; }
.nav-menu.active .nav-link:nth-child(2) { animation-delay: 0.15s; }
.nav-menu.active .nav-link:nth-child(3) { animation-delay: 0.2s; }
.nav-menu.active .nav-link:nth-child(4) { animation-delay: 0.25s; }

/* Accessibility */
.menu-toggle:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 3px;
    box-shadow:
        0 0 60px rgba(255, 255, 255, 0.3),
        0 15px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.menu-close:focus-visible,
.nav-link:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* Prevent body scroll when menu is open */
body.menu-open {
    overflow: hidden;
}