/* Navbar Styling - Modern & Edel */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 70px;
    /* Dunkles Anthrazit mit Transparenz */
    background-color: rgba(15, 23, 42, 0.9); 
	background: linear-gradient(135deg, var(--primary) 0%, var(--primary-blue) 100%); 
	background: linear-gradient(
    90deg,
    #1e293b 0%,        /* Dunkles Slate links */
    #1e40af 50%,       /* Blau Mitte */
    #1e293b 100%       /* Dunkles Slate rechts */
	);	
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
	
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1200px;
}

.logo {
    color: white;
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 10px;
}


.nav-links li {
    position: relative; /* Das ist der Anker für das Dropdown */
    list-style: none;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 8px 15px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 4px;
}

/* Hover-Effekt */
.nav-links a:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
}

/* AKTIVER MENÜPUNKT */
.nav-links a.active {
    color: #fff;
    background-color: var(--primary-blue); /* Dein Blau als Akzent */
}

/* Dropdown Container */
.dropdown-content {
    display: none;
    position: absolute;
    /* Direkt unterhalb des Menüpunkts */
    top: 100%; 
    left: 0;
    
    background-color: #1e293b; /* Dunkles Blau-Anthrazit */
    min-width: 200px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    border-radius: 0 0 8px 8px; /* Unten abgerundet */
    padding: 10px 0;
    z-index: 1100;
    margin-top: 0; /* Verhindert eine Lücke, über die man "rausmaust" */
}

/* Dropdown anzeigen bei Hover */
.dropdown:hover .dropdown-content {
    display: block;
}

/* Links innerhalb des Dropdowns */
.dropdown-content li a {
    padding: 10px 20px !important;
    display: block;
    width: 100%;
    white-space: nowrap; /* Kein Zeilenumbruch im Menü */
    background: transparent !important;
    font-size: 0.9rem;
}

.dropdown-content li a:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: #fff;
}

/* --- BASIS STYLES (Desktop) --- */
.menu-toggle {
    display: none; /* Auf Desktop verstecken */
    cursor: pointer;
    padding: 10px;
}

.bar {
    display: block;
    width: 28px;      /* Etwas breiter */
    height: 3px;
    margin: 5px 0;    /* Abstand zwischen den Strichen */
    background-color: #ffffff !important; /* KNALLWEISS erzwingen */
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* --- MOBILE STYLES (768px oder kleiner) --- */
@media screen and (max-width: 768px) {
    
    /* 1. Zeige das Hamburger Icon */
    .menu-toggle {
        display: block !important; 
        position: relative;
        z-index: 1001; /* Sicherstellen, dass es über allem liegt */
    }

    /* 2. Verstecke die normale Navigations-Liste */
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%; /* Ganz nach links aus dem Bild schieben */
        width: 100%;
        height: calc(100vh - 70px);
        background-color: #0f172a; /* Sehr dunkles Blau/Anthrazit */
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 50px;
        transition: left 0.4s ease; /* Animation beim Reinschieben */
        z-index: 1000;
    }

    /* 3. Wenn aktiv (durch JS), schiebe das Menü rein */
    .nav-links.active {
        left: 0 !important;
    }

    /* Links untereinander */
    .nav-links li {
        width: 100%;
        margin: 0;
    }

    .nav-links a {
        display: block;
        padding: 20px;
        font-size: 1.3rem;
        color: white;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
}