/* ==========================================
   SBdev Popup – Frontend Styles
   ========================================== */

/* Trigger-Bild */
.sbdev-popup-trigger {
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.sbdev-popup-trigger:hover {
    opacity: 0.85;
}

/* Overlay (Hintergrund) */
.sbdev-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999999;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.sbdev-popup-overlay.sbdev-popup-active {
    display: flex;
}

/* Modal-Fenster */
.sbdev-popup-modal {
    position: relative;
    background: #fff;
    border-radius: 8px;
    max-width: 800px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 40px 30px 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: sbdevPopupFadeIn 0.25s ease;
}

@keyframes sbdevPopupFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Schließen-Button (X) */
.sbdev-popup-close {
    position: absolute;
    top: 10px;
    right: 14px;
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #333;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.15s ease, color 0.15s ease;
    z-index: 1;
}

.sbdev-popup-close:hover {
    background: #f0f0f0;
    color: #000;
}

/* Content-Bereich */
.sbdev-popup-content {
    line-height: 1.6;
}

.sbdev-popup-content > *:first-child {
    margin-top: 0;
}

.sbdev-popup-content > *:last-child {
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 600px) {
    .sbdev-popup-modal {
        padding: 35px 18px 18px;
        max-height: 90vh;
        border-radius: 6px;
    }

    .sbdev-popup-close {
        top: 6px;
        right: 8px;
    }
}
