/* =========================
   Mobiles Menü Grundlayout
   ========================= */

.mobile-nav {
    padding-top: 20px;
}

.mobile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav li {
    border-bottom: 1px solid #e0e0e0;
}


/* =========================
   Basis Links
   ========================= */

.mobile-nav a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    font-size: 17px;
    position: relative;
    transition: color 0.15s ease;
}

/* Fokus neutralisieren */
.mobile-nav a:focus {
    background-image: none;
    animation: unset;
    background-size: unset;
    background-clip: text;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
}


/* =========================
   Hover nur auf Geräten mit Hover
   ========================= */

@media (hover: hover) {
    .mobile-nav a:hover {
        color: #f4e9df;
    }
}


/* =========================
   Touch Feedback
   ========================= */

.mobile-nav a:active {
    color: #f4e9df;
}


/* =========================
   Aktiver Zustand
   ========================= */

.mobile-nav a.active,
.mobile-nav .nav-link.active,
.mobile-nav .sub-menu-link.active,
.mobile-nav .sub-menu a.active,
.mobile-nav .sub-sub-menu a.active {
    color: #f4e9df;
    text-decoration: none;
}

/* Aktiver Balken links */
.mobile-nav a.active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background: #f4e9df;
}

/* Icon Farbe bei Active */
.mobile-nav a.active i {
    color: #f4e9df;
}


/* =========================
   Untermenüs
   ========================= */

.sub-menu,
.sub-sub-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    padding-left: 20px !important;
}

/* zweite Ebene weiter eingerückt */
.sub-sub-menu {
    padding-left: 40px !important;
}


/* =========================
   Untermenü Links
   ========================= */

.sub-menu a,
.sub-sub-menu a {
    font-weight: normal;
    color: #ffffff;
    padding: 7px 20px;
    transition: color 0.15s ease;
}


/* Hover Untermenüs nur bei echtem Hover */
@media (hover: hover) {
    .sub-menu a:hover,
    .sub-sub-menu a:hover {
        color: #f4e9df;
        text-decoration: underline;
        text-underline-offset: 5px;
    }
}


/* Touch Feedback Untermenüs */
.sub-menu a:active,
.sub-sub-menu a:active {
    color: #f4e9df;
}


/* Active Untermenüs */
.sub-menu a.active,
.sub-sub-menu a.active {
    color: #f4e9df;
    text-decoration: none;
}


/* =========================
   Öffnen der Untermenüs
   ========================= */

.mobile-nav .menu-item.open > .sub-menu,
.mobile-nav .menu-item.open > .sub-sub-menu {
    max-height: 500px;
}


/* =========================
   Chevron Icons
   ========================= */

.nav-link i,
.sub-menu-link i {
    margin-left: 15px;
    transition: transform 0.3s ease, color 0.15s ease;
}

/* Chevron rotiert bei offenem Menü */
.mobile-nav .menu-item.open > a > i {
    transform: rotate(90deg);
}
