/* --- navbar.css --- */


.navbar {
    
    position: fixed;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1100px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    z-index: 1000;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    padding: 5px 20px;
    transition: all 0.4s ease;
     
}

.navbar.scrolled {
    top: 10px;
    padding: 2px 15px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.nav-menu {
    display: flex;
    flex-direction: row;
    list-style: none;
    align-items: center;
    justify-content: center;
    gap: 25px;
    width: 100%;
    margin: 0;
    padding: 0;
    white-space: nowrap;
}

.nav-item {
    position: relative;
    display: flex;
    justify-content: center;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--text-dark);
    text-transform: uppercase;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 30px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.nav-link:hover {
    background-color: var(--primary-light);
    color: white;
}

.logo-center {
    margin: 0 15px;
}

.logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.logo-image {
    height: 45px;
    width: auto;
    transition: transform 0.3s ease, height 0.4s ease;
}

.navbar.scrolled .logo-image {
    height: 38px;
}

.logo-link:hover .logo-image {
    transform: scale(1.08);
}

/* --- DROPDOWN MENÜ --- */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    background: white;
    min-width: 200px;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border: 1px solid var(--border-color);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 8px 0;
    z-index: 1000;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(5px);
}

.dropdown-item {
    display: block;
    color: var(--text-dark);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 10px 20px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: var(--color-bg-light);
    color: var(--primary-color);
    padding-left: 25px;
}

/* --- HAMBURGER MENÜ (Mobile) --- */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 26px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 3px;
    transition: 0.3s;
}

.hamburger.active span:nth-child(1) { transform: rotate(-45deg) translate(-5px, 6px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(45deg) translate(-5px, -6px); }

/* --- RESPONSIVE DESIGN (Handy/Tablet) --- */
@media (max-width: 900px) {
    .navbar {
        top: 10px;
        width: 92%;
        padding: 8px 20px;
        border-radius: 20px;
    }
    
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        padding: 15px 0;
        border-radius: 20px;
        box-shadow: 0 15px 40px rgba(0,0,0,0.1);
        border: 1px solid var(--border-color);
        display: none;
        white-space: normal;
    }

    .nav-menu.active {
        display: flex;
    }

    .logo-center {
        order: -1;
        margin: 0;
    }
    
    .logo-image {
        height: 40px;
    }

    .nav-item {
        width: 100%;
        justify-content: center;
        margin-bottom: 5px;
    }

    .nav-link {
        display: block;
        text-align: center;
        width: 90%;
    }

    /*.nav-menu {
    display: flex;
    flex-direction: row;
    list-style: none;
    align-items: center;
    justify-content: center; /* Geändert von space-between auf center */
    /*gap: 25px;               /* Erzeugt gleichmäßigen Abstand zwischen den Elementen */    
    /*width: 100%;
    margin: 0;
    padding: 0;
    white-space: nowrap;
    }*/

    .dropdown-menu {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
 
    /* Stellt sicher, dass der Hauptlink die volle Breite nutzt */
    .nav-item.dropdown .nav-link {
        pointer-events: auto; /* Stellt sicher, dass der Link klickbar bleibt */
    }
}