/* ==========================================
   VISUBRA NAVIGATION (Reines CSS / Ohne JS / Serifenlos)
   ================================---------- */

nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #000000;
    color: #fff;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
    /* Moderne, serifenlose Schriftfamilie für die gesamte Navbar */
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.nav-container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    box-sizing: border-box !important;
    height: 70px !important;
}

.nav-brand {
    display: flex !important;
    align-items: center !important;
    margin-right: auto !important;
}

.nav-brand img {
    display: block;
    height: 20px;
    width: auto;
}

/* Checkbox und Burger-Label standardmäßig für Desktop verstecken */
.nav-toggle, .nav-toggle-label {
    display: none;
}

/* Links (Desktop: schön nebeneinander rechts ausgerichtet) */
.nav-links {
    list-style: none;
    display: flex !important;
    align-items: center;
    gap: 30px;
    margin: 0 !important;
    margin-left: auto !important;
    padding: 0;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #0066cc; /* Originales Linkblau */
}

/* Dropdown-Logik Desktop (Auf 260px erhöht für den perfekten, letzten Feinschliff) */
.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #000000;
    border: 1px solid #222;
    list-style: none;
    padding: 8px 0;
    margin: 0;
    width: 275px; /* Perfekter, großzügiger Endschliff */
    max-height: calc(100vh - 90px);
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 0 8px 16px rgba(0,0,0,0.8);
    display: none;
    border-radius: 4px;
}

.nav-dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li a {
    display: block;
    padding: 7px 16px;
    font-size: 0.83rem;
    font-weight: 400;
    line-height: 1.3;
    color: #ddd;
    white-space: nowrap;
    /* Sanfter Übergang für den Hover-Effekt */
    transition: all 0.2s ease; 
}

.dropdown-menu li a:hover {
    background: #151515;
    color: #0066cc; /* Originales Linkblau */
    transform: translateX(6px); /* Rutscht beim Hover sanft nach rechts! */
}


/* ==========================================
   MOBILE ANSICHT (Unter 992px)
   ================================---------- */
@media (max-width: 992px) {
    .nav-toggle-label {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 28px;
        height: 20px;
        cursor: pointer;
    }

    .nav-toggle-label span {
        display: block;
        height: 2px;
        width: 100%;
        background: #fff;
        border-radius: 2px;
    }

    .nav-links {
        display: none !important;
        flex-direction: column !important;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: #000000;
        padding: 20px;
        box-shadow: 0 10px 15px rgba(0,0,0,0.8);
        align-items: flex-start !important;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        gap: 15px;
        margin-left: 0 !important;
    }

    .nav-toggle:checked ~ .nav-links {
        display: flex !important;
    }

    .nav-toggle {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

    .dropdown-menu {
        position: static;
        display: block;
        width: 100%;
        box-shadow: none;
        background: #050505;
        border: none;
        margin-top: 10px;
        max-height: 350px;
        overflow-y: auto;
        overflow-x: hidden;
    }

    .dropdown-menu li a {
        white-space: normal;
    }
}

/* Aktiver Navigationspunkt erhält ausschließlich die Hover-Farbe */
.nav-links a.active {
    color: #0066cc !important;
    font-weight: normal;
    border-bottom: none;
    text-decoration: none;
}