
/* Hauptnavigation - Logo und Links in einem Container */
nav.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    margin-bottom: 0;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

nav.main-nav a {
	color: #0026FF;
}

nav.main-nav a:hover {
	color: #00B3FD;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Logo-Bereich */
.site-logo {
    width: 200px;
    height: auto;
	display: block;
}

/* Navigation-Bereich */
.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 1rem;
    position: relative;
}

/* Site-Brand Styling */
.nav-content .site-brand {
    display: flex;
    align-items: center;
}

.nav-content .site-brand a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Navigation Links */
.nav-content .nav-links {
    margin-left: auto;
    display: flex;
    align-items: center;
}

.nav-content .nav-links a {
    margin: 0 1rem;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
    display: inline-block;
    color: #0026FF;
}

.nav-content .nav-links a:hover {
    color: #00B3FD;
}

/* Mobile Hamburger Button */
.nav-content .burger {
    display: none;
    cursor: pointer;
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    z-index: 1100;
    padding: 0.375rem 0.75rem;
	background-color: #EFF5FB;
/*    background-color: transparent;*/
    border: 1px solid #0026FF;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}

.nav-content .burger:hover {
    background-color: #EFF5FB;
}

.nav-content .burger:focus {
    outline: 0;
}

.nav-content .burger-icon {
    display: inline-block;
    width: 1.5em;
    height: 1.5em;
    vertical-align: middle;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%230026FF' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100%;
}

/* Dropdown-Container */
.dropdown {
    position: relative;
    display: inline-block;
}

/* Dropdown-Button mit Pfeil */
.dropdown-btn {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    color: #0026FF !important;
    margin: 0 1rem;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.dropdown-btn::after {
    content: "▼";
    font-size: 0.6em;
    margin-left: 5px;
    transition: transform 0.3s;
}

/* HOVER für Maus-Geräte */
@media (hover: hover) and (pointer: fine) {
    .dropdown:hover .dropdown-content {
        display: block;
    }

    .dropdown-btn:hover {
        color: #0026FF !important;
    }

    .dropdown:hover .dropdown-btn::after {
        transform: rotate(180deg);
    }
}

/* ACTIVE für Touch-Geräte - funktioniert bei allen Bildschirmgrößen */
.dropdown.active .dropdown-content {
    display: block;
}

.dropdown.active .dropdown-btn {
    color: #0026FF !important;
}

.dropdown.active .dropdown-btn::after {
    transform: rotate(180deg);
}

/* Dropdown-Inhalt (standardmäßig versteckt) */
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #EFF5FB;
    min-width: 200px;
    z-index: 1;
    border-radius: 4px;
    overflow: hidden;
    text-align: left;
    border: 2px solid #00B3FD;
    flex-direction: column !important;
}

/* Dropdown-Links */
.dropdown-content a {
    display: block !important;
    padding: 12px 16px;
    text-decoration: none;
    text-align: left;
    margin: 0 !important;
    border-top: 1px solid rgba(96, 80, 60, 0.2);
    font-weight: bold;
    transition: all 0.3s ease;
}

.dropdown-content a:first-child {
    border-top: none;
}

.dropdown-content a:hover {
    color: #00B3FD !important;
}

/* Desktop-Styling (ab 901px) */
@media (min-width: 900px) {
    .nav-content .nav-links {
        background-color: #fcfcfc;
		box-shadow: 2px 3px 1px #00000033;
        border-radius: 0.8rem;
        padding: 1.0rem;
    }
}

/*
@media (min-width: 900px) {
	.nav-content .site-brand {
		background-color: #EFF5FB;
		border-radius: 0.8rem;
		padding: 0.1rem; 
	}
}*/

/* Responsive - Mobile */
@media (max-width: 900px) {
    nav.main-nav {
        min-height: 8rem;
    }
    
    .nav-content {
        justify-content: flex-start;
        padding-right: 4rem;
        gap: 0;
        position: relative;
        z-index: 1100;
        background-color: #EFF5FB;
    }
    
    .nav-content .site-brand {
        position: relative;
        z-index: 1100;
    }
    
    .nav-content .site-brand a {
        font-size: 0.9rem;
    }
    
    .nav-content .burger {
        display: block;
        z-index: 1100;
    }

    /* Mobile Navigation Container - NEUE LÖSUNG */
    .mobile-nav-container {
        position: fixed;
        top: 10rem;
        left: 50%;
        width: 80vw;
		max-width: 400px;
		min-width: 280px;
		height: auto;
        max-height: 60dvh;
        
        /* Versteckt - von rechts */
        transform: translate(-50%, 0) translateX(200%);
        opacity: 1;
        pointer-events: none;
        
        /* Border für das Reinkommen */
        border: 2px solid #0026FF;
        border-radius: 10px;
        
        /* Standard Transition für das Rausfahren */
        transition: transform 0.7s ease;
        
        z-index: 500;
        background-color: #EFF5FB;
    }

    /* Container wenn Menü aktiv ist - NUR EINE KLASSE */
    .mobile-nav-container.show {
        transform: translate(-50%, 0);
        opacity: 1;
        pointer-events: auto;
		height: auto;		
        max-height: 60dvh;
        overflow-y: auto;
        overflow-x: hidden;
        
        /* Touch-Scrolling für iOS */
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        
        /* Custom Scrollbar */
        scrollbar-width: thin;
        scrollbar-color: #0099ff #f5f5f5;
    }

    /* Webkit Scrollbar Styling für Container */
    .mobile-nav-container.show::-webkit-scrollbar {
        width: 6px;
    }

    .mobile-nav-container.show::-webkit-scrollbar-track {
        background: #f5f5f5;
        border-radius: 3px;
    }

    .mobile-nav-container.show::-webkit-scrollbar-thumb {
        background: #0099ff;
        border-radius: 3px;
    }

    .mobile-nav-container.show::-webkit-scrollbar-thumb:hover {
        background: #0077cc;
    }

    /* MOBILE MENÜ - jetzt normal im Container */
    .nav-content .nav-links {
        position: static;
        width: 100%;
        height: auto;
        margin-left: 0;
        flex-direction: column;
        justify-content: flex-start;
        padding: 0;
        background-color: transparent;
        
        /* Keine Transform/Opacity mehr - das macht der Container */
        transform: none;
        opacity: 1;
        pointer-events: auto;
        
        /* Keine Transition mehr */
        transition: none;
        
        /* Normale Darstellung */
        display: flex;
    }

    .nav-content .nav-links a {
        padding: 1.5rem;
        border-top: 1px solid #0026FF;
        display: block;
        width: 100%;
        margin: 0;
        text-align: center;
    }

    .dropdown {
        display: block;
        width: 100%;
    }
    
    .dropdown-btn {
        display: block;
        width: 100%;
        text-align: center;
        padding: 1.5rem;
        margin: 0 !important;
        border-top: 1px solid #0026FF;
    }
    
    .dropdown-content {
        position: static;
        box-shadow: none;
        border: none;
        background-color: #EFF5FB;
        display: none;
        pointer-events: none;
        transition: all 0.3s ease;
    }
    
    /* Zeige das Dropdown-Menü nur an, wenn es aktiv ist */
    .dropdown.active .dropdown-content {
        display: block;
        pointer-events: auto;
        transition-delay: 0.3s; /* 300ms Schutz vor Ghost-Clicks */
    }
    
    .dropdown-content a {
        color: #0026FF !important;
        background-color: #EFF5FB;
        border-top: 1px solid #0026FF !important;
        padding: 1.5rem;
        text-align: left;
        padding-left: 2rem;
    }
    
    .dropdown-content a:first-child {
        border-top: none;
    }
    
    .dropdown-content a:hover {
        background-color: #EFF5FB;
        color: #00B3FD !important;
    }
}