/* Grundlegendes Styling für alle Dialog-Elemente */
.viverva-dialog {
    border: none;
    border-radius: 8px;
    display: none;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    max-width: 550px;
    background-color: white; /* Standardhintergrund */
    color: #333;
    font-family: sans-serif; /* Für bessere Lesbarkeit */
    margin: auto; /* Für Zentrierung */
    opacity: 0;
    padding: 0;
}

.viverva-dialog[open] { /* [open] ist ein Attribut, wenn das Dialog-Element sichtbar ist */
    display: block;
    opacity: 1;
    transform: scale(1);
    animation: viverva-fade-in 0.5s ease-out forwards;
}

.viverva-dialog[open].is-closing {
    animation: viverva-fade-out 0.5s ease-in forwards !important;
}

@keyframes viverva-fade-in {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes viverva-fade-out {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.95);
    }
}

.viverva-dialog-content {
    padding: 2em;
    padding-bottom: 0;
}

.viverva-dialog h2 {
    font-family: Roboto;
    font-weight: 900;
    font-style: normal;
    margin-top: 30px;
    margin-right: 0px;
    margin-bottom: 10px;
    margin-left: 0px;
    font-size: 40px;
    line-height: 34px;
    text-align: center;
}

/* Styling für den Backdrop (Hintergrund-Überlagerung) */
.viverva-dialog::backdrop {
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px); /* Optional: Unscharfer Hintergrund */
}

div.viverva-dialog-button-wrapper {
    background-color: white;
    bottom: 0;
    left: 0;
    padding-top: 20px;
    padding-bottom: 30px;
    position: sticky;
    width: 100%;
}

/* Styling für Buttons im Popup */
button.viverva-dialog-close {
    background: #10c956;
    border: 1px solid #10c956;
    box-sizing: border-box;
    border-radius: 10px;
    color: white;
    cursor: pointer;
    display: block;
    font-size: 18px;
    font-weight: bold;
    padding: 10px 20px;
    margin: auto;
    transition: background-color 0.2s ease-in-out;
}

/* Styling für die Trigger-Buttons auf der Seite */
.viverva-dialog-opener {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    margin: 10px;
    transition: background-color 0.2s ease-in-out;
}

.viverva-dialog-opener:hover {
    background-color: #218838;
}

@media screen and (max-width: 900px) {
    button.viverva-dialog-close {
        width: 100%;
    }

    .viverva-dialog-content {
        padding: 1.7em;
        padding-bottom: 0;
    }

    div.viverva-dialog-button-wrapper {
        padding: 20px 10%;
    }
}
