.modal-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1000;
}
.modal-overlay.active {
    visibility: visible;
    opacity: 1;
}
.modal-box {
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    width: 90%;
    transform: translateY(-20px);
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
    position: relative;
}
.modal-overlay.active .modal-box {
    transform: translateY(0);
    opacity: 1;
}


.modal-close-button {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 30px;
    height: 30px;
    border: none;
    background: #ffffff;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-family: Arial, sans-serif; /* wichtig, damit × sicher gerendert wird */
    line-height: 1;
    padding: 0;
}

    /* Kreuz standardmäßig anzeigen */
    .modal-close-button::before {
        content: "\00d7"; /* sicheres Unicode-Zeichen für "×" */
        font-size: 18px;
        color: black;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        transition: opacity 0.2s ease;
    }

    /* Punkt vorbereiten */
    .modal-close-button::after {
        content: "";
        width: 12px;
        height: 12px;
        background: #808080;
        border-radius: 50%;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        opacity: 0;
        transition: opacity 0.2s ease;
    }

    /* Hover-Effekt */
    .modal-close-button:hover {
        background-color: #e5e5e5;
    }

        .modal-close-button:hover::before {
            opacity: 0; /* Kreuz ausblenden */
        }

        .modal-close-button:hover::after {
            opacity: 1; /* Punkt einblenden */
        }



