/* Der graue Hintergrund des Pop-ups, standardmäßig sichtbar */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none; /* Wichtig: Standardmäßig ausgeblendet */
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* Klasse, um das Pop-up sofort anzuzeigen */
.popup-overlay.active {
    display: flex;
}

/* Der Inhalt des Pop-ups */
.popup-content {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    animation: fadeIn 0.3s ease-in-out;
}

.popup-content h2 {
    margin-top: 0;
}

.popup-content p {
    margin-bottom: 20px;
}

.popup-buttons {
    display: flex;
    justify-content: space-around;
    gap: 15px;
}

.popup-buttons button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.2s;
}

#yes-btn {
    background-color: #4CAF50; /* Grün */
    color: white;
}

#yes-btn:hover {
    background-color: #45a049;
}

#no-btn {
    background-color: #f44336; /* Rot */
    color: white;
}

#no-btn:hover {
    background-color: #d32f2f;
}

/* Animation für das Einblenden */
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* Klasse, um den Hauptinhalt auszublenden */
.hidden {
    display: none;
}
