/* Overlay */
.overlay {
    background-color: rgba(255, 255, 255, 0.5);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

@media (max-width: 768px) {
    .overlay {
        background-color: rgba(0, 0, 0, 0.5); /* Dunklerer Hintergrund auf Mobilgeräten */
    }
}

/* PopUp Box */
.popup-box {
    background-color: #fff;
    box-shadow: 0px 4px 8px #3535354d;
    position: relative;
    width: 600px;
    max-width: 90%;
    max-height: 80vh;
    padding-top: 85px;
    padding-left: 85px;
    padding-right: 85px;
    padding-bottom: 85px;
    font-family: 'Open Sans Light', sans-serif;
    color: #353535;
    text-align: center;
}
.popup-box.with-button {
    padding-bottom: 55px;
}

@media (max-width: 768px) {
    .popup-box {
        margin-left: 50px;
        margin-right: 50px;
        padding-left: 50px;
        padding-right: 50px;
    }
}

/* Überschrift */
.popup-box h2 {
    font-size: 25px;
    text-transform: uppercase;
    color: #353535;
    margin: 0 0 40px;
}

/* Textinhalt */
.popup-box p {
    font-size: 16px;
    line-height: 1.5;
    color: #353535;
}

/* Scrollable Content Area */
.popup-content {
    max-height: 50vh; /* Set a max height for the content area */
    overflow-y: auto; /* Enable vertical scrolling */
    padding-right: 10px; /* Optional padding to avoid scrollbar overlap */
}

/* Scrollbar styling for the content area */
.popup-content::-webkit-scrollbar {
    width: 8px;
}

.popup-content::-webkit-scrollbar-thumb {
    background-color: #353535;
    border-radius: 4px;
}

.popup-content::-webkit-scrollbar-track {
    background-color: #e0e0e0;
}

/* Button */
.popup-button {
    border: 1px solid var(--button-color, #353535);
    color: var(--button-color, #353535);
    background-color: transparent;
    text-decoration: none;
    display: inline-block;
    margin-top: 40px;
    line-height: 36px;
    padding: 0 18px;
    border-radius: 0;
    font-weight: 300;
    transition: color .3s, border-color .3s, background-color .3s;
}

.popup-button:hover,
.popup-button:focus {
    background-color: var(--button-color, #353535);
    color: #fff;
    border-color: var(--button-color, #353535);
    text-decoration: none;
}

/* Close Button */
.popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.5em;
    height: 1em;
    width: 1em;
    text-align: center;
    line-height: 1;
    border-radius: 100%;
    text-decoration: none;
    font-weight: 700;
    border: 0;
    background-color: var(--button-color, #737373);
    color: #fff;
    cursor: pointer;
    border-radius: 100%;
    transition: background-color .3s;
    &:hover, &:focus {
        background-color: #3F3F3F;
    }
}