/* Overlay für den Hintergrund */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); 
    z-index: 999;
    display: none; 
    opacity: 0; 
    transition: opacity 0.5s ease; 
}

/* Popup-Inhalt */
.popup {
    position: fixed;
    top: 0;
    left: -100%; 
    width: 100%;
    max-width: 500px; 
    height: 100%; 
    background: rgba(17,17,17,0.90);
    color: #F4F4F4;
    box-shadow: 4px 0 10px rgba(0, 0, 0, 0.2); 
    z-index: 1000;
    display: none; 
    opacity: 0; 
    transition: left 0.8s ease, opacity 0.8s ease; 
    overflow-y: auto; 
    padding: 40px 35px 0px 45px;
    box-sizing: border-box;
}

/* Sichtbar machen */
.popup.show, .popup-overlay.show {
    display: block; 
    opacity: 1; 
}

.popup.show {
    left: 0;
}

/* Schließen-Button */
.popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--flaetchen-color-com);
}
