/* EINFACHES MOBILE OVERLAY DESIGN */

/* Mobile Overlay - Glasmorphismus Design */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: 
        radial-gradient(circle at 20% 30%, rgba(240, 58, 112, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 166, 251, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(18, 18, 18, 0.95) 0%, rgba(0, 0, 0, 0.98) 100%);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.mobile-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(45deg, transparent 30%, rgba(240, 58, 112, 0.03) 50%, transparent 70%),
        linear-gradient(-45deg, transparent 30%, rgba(0, 166, 251, 0.03) 50%, transparent 70%);
    animation: shimmer 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes shimmer {
    0%, 100% { opacity: 0.5; transform: translateX(-10px); }
    50% { opacity: 1; transform: translateX(10px); }
}

.mobile-overlay.active {
    display: flex;
    opacity: 1;
}

.mobile-menu-content {
    text-align: center;
    width: 90%;
    max-width: 320px;
    position: relative;
    z-index: 10;
    padding: 1rem;
}

.mobile-close-btn {
    position: absolute;
    top: -50px;
    right: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    z-index: 1000000;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    backdrop-filter: blur(20px);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.mobile-close-btn:hover {
    background: rgba(240, 58, 112, 0.2);
    border-color: rgba(240, 58, 112, 0.4);
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 8px 32px rgba(240, 58, 112, 0.3);
}

.mobile-nav-menu {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding: 1rem 0;
}

.mobile-nav-link {
    display: block;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 15px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.mobile-nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.1), 
        transparent);
    transition: left 0.6s ease;
}

.mobile-nav-link:hover::before {
    left: 100%;
}

.mobile-nav-link:hover {
    background: linear-gradient(135deg, 
        rgba(240, 58, 112, 0.25) 0%, 
        rgba(0, 166, 251, 0.25) 100%);
    border-color: rgba(240, 58, 112, 0.4);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 
        0 15px 40px rgba(240, 58, 112, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.mobile-dropdown {
    margin: 0.5rem 0;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 0.3rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

.mobile-nav-sublink {
    display: block;
    padding: 0.8rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    margin: 0.2rem 0;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.mobile-nav-sublink::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(0, 166, 251, 0.1), 
        transparent);
    transition: left 0.5s ease;
}

.mobile-nav-sublink:hover::before {
    left: 100%;
}

.mobile-nav-sublink:hover {
    background: rgba(0, 166, 251, 0.15);
    border-color: rgba(0, 166, 251, 0.3);
    color: #ffffff;
    transform: translateX(5px);
    box-shadow: 
        0 5px 20px rgba(0, 166, 251, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Responsive Anpassungen für sehr kleine Bildschirme */
@media (max-width: 480px) {
    .mobile-menu-content {
        width: 95%;
        max-width: 280px;
        padding: 0.5rem;
    }
    
    .mobile-close-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
        top: -40px;
    }
    
    .mobile-nav-menu {
        gap: 0.6rem;
        padding: 0.5rem 0;
    }
    
    .mobile-nav-link {
        padding: 0.8rem 1.2rem;
        font-size: 1rem;
        border-radius: 12px;
    }
    
    .mobile-dropdown {
        margin: 0.3rem 0;
        padding: 0.2rem;
    }
    
    .mobile-nav-sublink {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
        margin: 0.15rem 0;
    }
}

@media (max-width: 360px) {
    .mobile-menu-content {
        width: 98%;
        max-width: 250px;
    }
    
    .mobile-nav-link {
        padding: 0.7rem 1rem;
        font-size: 0.95rem;
    }
    
    .mobile-nav-sublink {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }
}

/* MODERNES MOBILE HEADER DESIGN */

/* Mobile Header Styles */

/* Footer Fix - Entfernt zusätzliche Trennlinien auf Mobile */
.footer-links a::after,
.footer-links a::before,
.footer-links::after,
.footer-links::before,
.footer-bottom .footer-links a::after,
.footer-bottom .footer-links a::before {
  display: none !important;
  content: none !important;
}

.footer-links a {
  border-right: none !important;
  border-left: none !important;
}

/* Mobile Header - Komplett eigenes Design */
@media (max-width: 768px) {
    /* Desktop Navigation verstecken */
    .navbar-links {
        display: none !important;
    }
    
    /* Mobile Toggle anzeigen */
    .navbar-mobile-toggle {
        display: block !important;
    }
    
    /* Header Container */
    .site-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: none;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
        padding: 0;
        margin: 0;
        width: 100%;
        height: 70px;
    }
    
    /* Navbar */
    .navbar {
        padding: 0;
        height: 70px;
        display: flex;
        align-items: center;
    }
    
    /* Container */
    .navbar-container {
        width: 100%;
        max-width: none;
        padding: 0 20px;
        margin: 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: 70px;
    }
    
    /* Logo - Links positioniert */
    .navbar-brand {
        position: static;
        margin: 0;
        transform: none;
        left: auto;
        display: flex;
        align-items: center;
    }
    
    .navbar-logo {
        height: 35px;
        width: auto;
    }
    
    /* Mobile Toggle - Rechts positioniert */
    .navbar-mobile-toggle {
        position: static;
        right: auto;
        margin: 0;
        background: none;
        border: none;
        color: white;
        font-size: 1.5rem;
        padding: 10px;
        border-radius: 8px;
        transition: all 0.3s ease;
    }
    
    .navbar-mobile-toggle:hover {
        background: rgba(240, 58, 112, 0.1);
        color: #f03a70;
    }
    
    .navbar-mobile-toggle i {
        color: inherit;
    }
    
    /* Mobile Navigation Menu - Fullscreen Modern Design */
    .mobile-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: linear-gradient(135deg, 
            rgba(0, 0, 0, 0.95) 0%,
            rgba(10, 10, 20, 0.95) 30%,
            rgba(20, 10, 30, 0.95) 70%,
            rgba(0, 0, 0, 0.95) 100%);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        transform: scale(0.8);
        transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        z-index: 99999;
        overflow-y: auto;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        visibility: hidden;
        padding: 2rem;
    }
    
    .mobile-nav.active {
        transform: scale(1);
        opacity: 1;
        visibility: visible;
    }
    
    /* Animated Background Effects */
    .mobile-nav::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: 
            radial-gradient(circle at 30% 40%, rgba(240, 58, 112, 0.15) 0%, transparent 60%),
            radial-gradient(circle at 70% 60%, rgba(0, 166, 251, 0.15) 0%, transparent 60%),
            radial-gradient(circle at 50% 20%, rgba(255, 107, 107, 0.1) 0%, transparent 50%);
        animation: floatingBg 15s ease-in-out infinite;
        z-index: 0;
    }
    
    .mobile-nav::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.4);
        z-index: 1;
    }
    
    @keyframes floatingBg {
        0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.8; }
        50% { transform: translateY(-15px) rotate(2deg); opacity: 1; }
    }
    
    /* Mobile Nav Links Container */
    .mobile-nav-links {
        display: flex;
        flex-direction: column;
        gap: 0.7rem;
        padding: 0;
        text-align: center;
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
        position: relative;
        z-index: 10;
    }
    
    .mobile-nav-item {
        border: none;
        margin: 0;
        transform: translateY(30px);
        opacity: 0;
        transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    
    .mobile-nav.active .mobile-nav-item {
        transform: translateY(0);
        opacity: 1;
    }
    
    .mobile-nav.active .mobile-nav-item:nth-child(1) { transition-delay: 0.1s; }
    .mobile-nav.active .mobile-nav-item:nth-child(2) { transition-delay: 0.15s; }
    .mobile-nav.active .mobile-nav-item:nth-child(3) { transition-delay: 0.2s; }
    .mobile-nav.active .mobile-nav-item:nth-child(4) { transition-delay: 0.25s; }
    .mobile-nav.active .mobile-nav-item:nth-child(5) { transition-delay: 0.3s; }
    .mobile-nav.active .mobile-nav-item:nth-child(6) { transition-delay: 0.35s; }
    
    .mobile-nav-item a {
        display: block;
        padding: 1rem 1.2rem;
        font-size: 1.2rem;
        font-weight: 600;
        color: #ffffff;
        text-decoration: none;
        transition: all 0.3s ease;
        border-radius: 12px;
        margin: 0;
        position: relative;
        overflow: hidden;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.15);
        backdrop-filter: blur(10px);
        letter-spacing: 0.02em;
        text-transform: uppercase;
        font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    }
    
    .mobile-nav-item a::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, 
            transparent, 
            rgba(240, 58, 112, 0.1), 
            transparent);
        transition: left 0.6s ease;
    }
    
    .mobile-nav-item a:hover::before {
        left: 100%;
    }
    
    .mobile-nav-item a:hover,
    .mobile-nav-item a.active {
        color: #ffffff;
        background: linear-gradient(135deg, rgba(240, 58, 112, 0.3), rgba(0, 166, 251, 0.3));
        border-color: rgba(240, 58, 112, 0.5);
        box-shadow: 
            0 8px 32px rgba(240, 58, 112, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
        transform: translateY(-3px) scale(1.05);
    }
    
    /* Dropdown für Mobile - Einfaches Design */
    .mobile-dropdown-menu {
        padding: 0.5rem 0;
        background: rgba(0, 0, 0, 0.3);
        margin-top: 0.5rem;
        border-radius: 10px;
        overflow: hidden;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .mobile-dropdown-menu a {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
        font-weight: 500;
        color: rgba(255, 255, 255, 0.8);
        background: none;
        border: none;
        margin: 0;
        text-transform: none;
        border-radius: 0;
    }
    
    .mobile-dropdown-menu a:hover {
        color: #f03a70;
        background: rgba(240, 58, 112, 0.1);
        transform: none;
    }
    
    /* Body Padding für Fixed Header */
    body {
        padding-top: 70px;
    }
    
    /* Hero Section Anpassung */
    .hero {
        padding-top: 2rem;
    }
}

/* Sehr kleine Bildschirme */
@media (max-width: 480px) {
    .navbar-container {
        padding: 0 15px;
    }
    
    .navbar-logo {
        height: 30px;
    }
    
    .mobile-nav-links {
        padding: 0 15px;
    }
}

/* Desktop Navigation verstecken auf Mobile */
@media (max-width: 768px) {
    .navbar-mobile-toggle {
        display: block !important;
    }
}

/* Desktop: Mobile Toggle verstecken */
@media (min-width: 769px) {
    .navbar-mobile-toggle {
        display: none !important;
    }
    
    .mobile-nav {
        display: none !important;
    }
}
