/* ============================================================
   1. Sticky + Transparenter Blur Header (Desktop)
   ============================================================ */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(0, 0, 0, 0.55) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    padding-top: 0.9rem !important;
    padding-bottom: 0.9rem !important;
    transition: padding 0.25s ease, background 0.3s ease;
}

/* Shrink-Effekt */
.navbar.shrink {
    padding-top: 0.35rem !important;
    padding-bottom: 0.35rem !important;
    background: rgba(0, 0, 0, 0.75) !important;
}

/* ============================================================
   2. Desktop Navigation Links
   ============================================================ */
.navbar .nav-link {
    color: #fff !important;
    position: relative;
    font-size: 1.15rem;
    padding: 0.75rem 1.1rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.navbar .nav-link:hover {
    color: #f1f1f1 !important;
}

/* Unterstreichung */
.navbar .nav-link::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 4px;
    width: 0%;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.25s ease;
    transform: translateX(-50%);
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after,
.navbar .nav-link[aria-current="page"]::after {
    width: 100%;
}

/* Chevron */
.navbar .dropdown-toggle::after {
    border: none !important;
    content: "▾";
    font-size: 0.85rem;
    margin-left: 6px;
    color: #fff;
    transition: transform 0.25s ease;
}

.navbar .dropdown.show .dropdown-toggle::after {
    transform: rotate(180deg);
}

/* Dropdown-Menüs */
.dropdown-menu {
    font-size: 1rem;
    padding: 0.5rem 0.25rem;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    display: block;
    visibility: hidden;
}

.dropdown-menu.show {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.dropdown-item {
    padding: 0.65rem 1rem;
}

/* Abstände Desktop */
.navbar-nav .nav-item {
    margin: 0 0.35rem;
}

/* ============================================================
   3. Mobile Off-Canvas Navigation (sichtbar ab < 992px)
   ============================================================ */

/* Standard: Desktop → Mobile-Menü unsichtbar */
#mobile-menu,
#mobile-overlay {
    display: none;
}

/* Aktiv ab < 992px */
@media (max-width: 991.98px) {
    #mobile-menu,
    #mobile-overlay {
        display: block;
    }
}

/* ============================================================
   4. Mobile Off-Canvas Details (nur echte Mobile < 768px)
   ============================================================ */
@media (max-width: 768px) {

    /* Overlay */
    #mobile-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.45);
        backdrop-filter: blur(3px);
        opacity: 0;
        visibility: hidden;
        transition: 0.3s ease;
        z-index: 1029;
    }

    #mobile-overlay.show {
        opacity: 1;
        visibility: visible;
    }

    /* Off-Canvas Menü */
    #mobile-menu {
        position: fixed;
        top: 0;
        left: -260px;
        width: 260px;
        height: 100vh;
        background: #ffffff;
        box-shadow: 3px 0 10px rgba(0,0,0,0.25);
        transition: left 0.3s ease;
        z-index: 1031;
        padding: 1rem;
        overflow-y: auto;
    }

    #mobile-menu.open {
        left: 0;
    }

    /* Navigation Liste */
    .mobile-nav {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .mobile-item {
        margin-bottom: 0.4rem;
        border-bottom: 1px solid #eee;
        padding-bottom: 0.4rem;
    }

    /* Hauptpunkte */
    .mobile-toggle {
        width: 100%;
        background: none;
        border: none;
        font-size: 1.05rem;
        padding: 0.55rem 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
        cursor: pointer;
        color: #222;
    }

    .mobile-toggle .plus {
        font-size: 1.2rem;
        transition: transform 0.25s ease;
    }

    .mobile-item.open .plus {
        transform: rotate(45deg);
    }

    /* Unterpunkte */
    .mobile-sub {
        list-style: none;
        padding-left: 1rem;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.25s ease;
    }

    .mobile-item.open .mobile-sub {
        max-height: 300px;
    }

    .mobile-sub a {
        display: block;
        padding: 0.45rem 0;
        font-size: 0.95rem;
        color: #444;
        text-decoration: none;
    }

    .mobile-sub a:hover {
        color: #000;
    }
}
