/* PA Bewertungen – public.css
   Kontakt-Popup: selbständige Stile, unabhängig vom Theme.
   Branding: #002636 (dunkelblau) / #ff9a12 (orange), border-radius 0. */

/* ── Overlay ──────────────────────────────────────────────────────────────── */

.pabw-popup {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: flex-end;          /* Mobile: Box am unteren Rand */
    justify-content: center;
    background: rgba(0, 38, 54, 0.55);
    padding: 0 0 24px;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.pabw-popup[hidden] {
    display: none !important;
}

.pabw-popup.is-open {
    opacity: 1;
}

/* ── Box ──────────────────────────────────────────────────────────────────── */

.pabw-popup__box {
    position: relative;
    background: #ffffff;
    width: 100%;
    max-width: 360px;
    padding: 32px 24px 28px;
    border-radius: 0;
    border-top: 4px solid #ff9a12;
    box-shadow: 0 8px 32px rgba(0, 38, 54, 0.22);
    font-family: 'Fira Sans', Arial, sans-serif;
    color: #002636;
    /* Slide-in vom unteren Rand */
    transform: translateY(24px);
    transition: transform 0.28s ease;
}

.pabw-popup.is-open .pabw-popup__box {
    transform: translateY(0);
}

/* ── Schließen-Button (×) ─────────────────────────────────────────────────── */

.pabw-popup__x {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 0;
    font-size: 22px;
    line-height: 1;
    color: #778c96;
    cursor: pointer;
    padding: 0;
    transition: color 0.15s;
}

.pabw-popup__x:hover,
.pabw-popup__x:focus-visible {
    color: #002636;
    outline: 2px solid #ff9a12;
    outline-offset: 2px;
}

/* ── Überschrift & Text ───────────────────────────────────────────────────── */

.pabw-popup__box h3 {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 700;
    color: #002636;
    line-height: 1.2;
}

.pabw-popup__box p {
    margin: 0 0 20px;
    font-size: 15px;
    color: #445a64;
    line-height: 1.5;
}

/* ── Aktionen ─────────────────────────────────────────────────────────────── */

.pabw-popup__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0 !important;
}

/* ── Buttons: Fallback-Stile (greifen auch wenn Theme .pa-btn nicht kennt) ── */

.pa-btn {
    display: block;
    width: 100%;
    padding: 13px 20px;
    background: #ff9a12;
    color: #002636 !important;
    font-family: 'Fira Sans', Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    text-align: center;
    text-decoration: none !important;
    border: 2px solid #ff9a12;
    border-radius: 0;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    min-height: 48px;
    line-height: 1.3;
    box-sizing: border-box;
}

.pa-btn:hover,
.pa-btn:focus-visible {
    background: #e08800;
    border-color: #e08800;
    color: #002636 !important;
    outline: none;
}

.pa-btn:focus-visible {
    outline: 3px solid #002636;
    outline-offset: 2px;
}

/* Alternativer Button: weiß mit Rahmen */
.pa-btn--alt {
    background: #ffffff;
    color: #002636 !important;
    border-color: #002636;
}

.pa-btn--alt:hover,
.pa-btn--alt:focus-visible {
    background: #002636;
    border-color: #002636;
    color: #ffffff !important;
}

/* ── Desktop: Box zentriert (nicht am unteren Rand) ──────────────────────── */

@media (min-width: 768px) {
    .pabw-popup {
        align-items: center;
        padding: 0;
    }

    .pabw-popup__box {
        transform: translateY(12px) scale(0.97);
    }

    .pabw-popup.is-open .pabw-popup__box {
        transform: translateY(0) scale(1);
    }

    .pabw-popup__actions {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .pa-btn {
        width: auto;
        flex: 1 1 auto;
    }
}
