/* ========================================
   Mobile Menu
   ======================================== */

#mobileMenu {
    position: relative;
}


/* Hamburger */

.mobile-menu-button {
    position: fixed;

    top: 15px;
    right: 15px;

    width: 44px;
    height: 44px;

    padding: 8px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;

    border: none;
    border-radius: 6px;

    background: #333;
    cursor: pointer;

    z-index: 1001;
}


.mobile-menu-button span {
    display: block;

    width: 100%;
    height: 3px;

    background: white;

    border-radius: 2px;

    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}


/* Hamburger → X */

.mobile-menu-button.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-button.open span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-button.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}


/* Hauptmenü */

.mobile-menu {
    position: fixed;

    top: 0;
    left: 0;

    width: 80%;
    max-width: 360px;
    height: 100vh;

    padding-top: 80px;

    background: white;

    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.25);

    overflow-y: auto;

    transform: translateX(-100%);
    transition: transform 0.25s ease;

    z-index: 1000;
}


/* Menü geöffnet */

.mobile-menu.open {
    transform: translateX(0);
}


/* Menüeinträge */

.mobile-menu-item {
    width: 100%;

    padding: 16px 20px;

    border: none;
    border-bottom: 1px solid #ddd;

    background: transparent;

    font-size: 17px;

    text-align: left;

    cursor: pointer;
}


/* Gruppe */

.mobile-menu-group > .mobile-menu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;

    font-weight: bold;
}


/* Untermenü */

.mobile-menu-submenu {
    display: none;

    background: #f5f5f5;
}


.mobile-menu-group.open > .mobile-menu-submenu {
    display: block;
}


/* Buttons innerhalb des Untermenüs */

.mobile-menu-submenu .mobile-menu-item {
    padding-left: 40px;

    font-size: 16px;
}


/* Hover */

.mobile-menu-item:hover {
    background: #e9e9e9;
}