/* Header-Balken für Mobilgeräte */
.header-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: var(--flaetchen-color-bg);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    display: none; /* Standardmäßig ausgeblendet */
    z-index: 1000;
}


#menu-toggle {
    width: 40px; /* Breite des Menüs verkleinert */
    height: 30px; /* Höhe des Menüs verkleinert */
    position: fixed;
    top: 25px; /* Abstand vom oberen Rand */
    left: 25px; /* Abstand vom linken Rand */
    z-index: 1001;
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
    -webkit-transition: .5s ease-in-out;
    transition: .5s ease-in-out;
    cursor: pointer;
}

#menu-toggle span {
    display: block;
    position: absolute;
    height: 4px; /* Höhe der Linien verkleinert */
    width: 100%; /* Breite der Linien bleibt relativ zum Menü */
    background: var(--flaetchen-color-com);
    border-radius: 9px;
    opacity: 1;
    left: 0;
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
    -webkit-transition: .25s ease-in-out;
    transition: .25s ease-in-out;
}

#menu-toggle span:nth-child(1) {
    top: 0;
}

#menu-toggle span:nth-child(2) {
    top: 12px; /* Abstand der mittleren Linie */
}

#menu-toggle span:nth-child(3) {
    top: 24px; /* Abstand der unteren Linie */
}

#menu-toggle.open span:nth-child(1) {
    top: 12px;
    -webkit-transform: rotate(135deg);
    transform: rotate(135deg);
}

#menu-toggle.open span:nth-child(2) {
    opacity: 0;
    left: -40px;
}

#menu-toggle.open span:nth-child(3) {
    top: 12px;
    -webkit-transform: rotate(-135deg);
    transform: rotate(-135deg);
}


/* Sidebar-Menü */
.nav-sidebar {
    position: fixed;
    top: 0;
    left: -650px; /* Startposition */
    width: 450px;
    height: 100%;
    background-color: #000; 
    opacity: 0.9;
    color: #fff;
    padding: 150px 100px 100px 100px;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
    transition: left 0.7s ease;
    z-index: 1000;
}

.nav-sidebar.active {
    left: 0; /* Sidebar sichtbar */
}

.nav-sidebar .close-menu {
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 15px;
}

.nav-sidebar ul {
    list-style: none;
    padding: 0;
    margin-bottom: 60px;
}

.nav-sidebar ul li {
    margin: 20px 0;
}

.nav-sidebar ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.4s ease;
}

.nav-sidebar ul li a:hover {
    color: var(--flaetchen-color-com);
}

.nav-sidebar p {
    color: var(--flaetchen-color-com);
    margin: 70px 0px 0px 0px;
}


/* Info-Icon oben rechts */
.info-icon {
    position: absolute;
    top: 10px;
    right: 20px;
}

.info-icon img {
    width: 40px;
    height: 40px;
}

/* Popup */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999;
}

.popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 600px;
    background-color: #fff;
    padding: 20px;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}



@media (max-width: 768px) {
    #menu-toggle {
        width: 30px;
        height: 25px;
        top: 20px;
        left: 20px;
    }

    #menu-toggle span {
        height: 3px;
    }

    #menu-toggle span:nth-child(2) {
        top: 10px;
    }

    #menu-toggle span:nth-child(3) {
        top: 20px;
    }
    .header-bar {
        display: block; /* Nur auf Mobilgeräten anzeigen */
    }
     .nav-sidebar {
        width: 350px ; /* Kleinere Breite für Mobilgeräte */
        left: -350px ; /* Startwert entsprechend der Breite */
         padding: 100px 0px 0px 50px;
    }
}



