/* ================================================================
   Popup Builder — Frontend Styles
   ================================================================ */

.pbp-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 99998;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5em;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.pbp-overlay.pbp-visible {
    opacity: 1;
    pointer-events: all;
}

.pbp-popup {
    position: relative;
    max-width: 520px;
    max-height: 90vh;
    width: 100%;
    overflow: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transform: translateY(20px);
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}
.pbp-overlay.pbp-visible .pbp-popup {
    transform: translateY(0);
    opacity: 1;
}

.pbp-accent-bar {
    height: 4px;
    width: 100%;
}

.pbp-popup-image {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    display: block;
}

.pbp-popup-body {
    padding: 1.5em;
}

.pbp-popup-headline {
    margin-top: 0;
    margin-bottom: .5em;
}

/* Extern eingebetteter Formular-Shortcode */
.pbp-form-wrapper {
    margin-top: 1em;
    font-size: .9em;
}

/* Link-Button */
.pbp-link {
    display: inline-block;
    margin-top: 16px;
    padding: 10px 22px;
    border-radius: 3px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: opacity 0.15s;
}
.pbp-link:hover {
    opacity: 0.85;
    text-decoration: none;
}

.pbp-popup .pbp-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 2em;
    height: 2em;
    background: rgba(0, 0, 0, 0.15);
    color: inherit;
    font-size: 1em;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
    z-index: 10;
    padding: .5em;
}
.pbp-close:hover {
    background: rgba(0, 0, 0, 0.28);
}