/* Das Overlay für den Hintergrund */
#sdp-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex; /* Wird von JS auf 'flex' gesetzt */
    align-items: center;
    justify-content: center;
    z-index: 99998;
    opacity: 0;
    animation: sdp-fade-in 0.3s forwards;
}

/* Animation für das Einblenden */
@keyframes sdp-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Die eigentliche Popup-Box */
#sdp-popup-box {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 2rem;
    max-width: 90%;
    width: 500px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    text-align: center;
    /* Animation für das Erscheinen */
    transform: scale(0.9);
    animation: sdp-scale-in 0.3s forwards cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

@keyframes sdp-scale-in {
    from { transform: scale(0.9); }
    to { transform: scale(1); }
}

/* Der Schließen-Button (X) */
#sdp-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2rem;
    color: #888;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    z-index: 99999;
    font-weight: 300;
}

#sdp-close-btn:hover {
    color: #000;
}

/* Der klickbare Inhaltsbereich */
#sdp-popup-content {
    outline: none; /* Für den tabindex */
}

#sdp-popup-content img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 1rem;
}

#sdp-popup-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin: 0.5rem 0;
}

#sdp-popup-content p {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    margin: 0;
}