/* ═══ ZFU Push – DSGVO Consent Popup ═══
   Design: SparkMatch CI (Zeit für Uns v4)
   Accent: #E8386D · Serif: Playfair Display · Sans: DM Sans
   Themes: neutral | warm | cool
════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500&display=swap');

/* ── Design Tokens (SparkMatch CI – Neutral) ── */
#zfupush-popup {
    --p:          #E8386D;
    --p2:         #c92b58;
    --pale:       rgba(232,56,109,.12);
    --glow:       rgba(232,56,109,.25);
    --acc:        #f06a90;
    --bg:         #FAF9F7;
    --sur:        #ffffff;
    --txt:        #111010;
    --mid:        #4a3a40;
    --dim:        #9a8a90;
    --bdr:        rgba(232,56,109,.12);
    --shd:        rgba(232,56,109,.10);
    --r:          20px;
    --r-sm:       12px;
    --t-fast:     .18s;
    --t-med:      .32s;
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans:  'DM Sans', system-ui, sans-serif;
}

/* ── Warm theme support ── */
.zfu-root[data-theme="feminine"] #zfupush-popup,
.zfu-root[data-theme="warm"] #zfupush-popup {
    --p:    #e8788a; --p2: #d45f72;
    --pale: rgba(232,120,138,.12);
    --glow: rgba(232,120,138,.22);
    --bg:   #fdf5f7; --txt: #2e1a22;
    --mid:  #7a4a58; --dim: #b8909a;
    --bdr:  rgba(232,120,138,.14);
    --shd:  rgba(180,70,90,.10);
}

/* ── Cool theme support ── */
.zfu-root[data-theme="masculine"] #zfupush-popup,
.zfu-root[data-theme="cool"] #zfupush-popup {
    --p:    #2563eb; --p2: #1d4ed8;
    --pale: rgba(37,99,235,.10);
    --glow: rgba(37,99,235,.20);
    --bg:   #f5f7ff; --txt: #0f172a;
    --mid:  #334155; --dim: #94a3b8;
    --bdr:  rgba(37,99,235,.12);
    --shd:  rgba(30,60,180,.10);
}

/* ── Overlay ── */
.zfupush-popup {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0 0 env(safe-area-inset-bottom, 0);
    font-family: var(--font-sans, 'DM Sans', system-ui, sans-serif);
    pointer-events: none;
    opacity: 0;
    transition: opacity var(--t-med, .32s);
}
.zfupush-popup.is-visible {
    opacity: 1;
    pointer-events: all;
}

/* ── Backdrop ── */
.zfupush-popup__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 16, 16, 0.50);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

/* ── Box ── */
.zfupush-popup__box {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 480px;
    background: var(--sur, #fff);
    border-radius: var(--r, 20px) var(--r, 20px) 0 0;
    box-shadow: 0 -16px 60px var(--shd, rgba(232,56,109,.10));
    padding: 32px 28px 36px;
    border: 1px solid var(--bdr, rgba(232,56,109,.12));
    border-bottom: none;
    transform: translateY(100%);
    transition: transform .4s cubic-bezier(.32,0,.15,1);
}
.zfupush-popup.is-visible .zfupush-popup__box {
    transform: translateY(0);
}

/* ── Drag handle (app-style) ── */
.zfupush-popup__box::before {
    content: '';
    display: block;
    width: 36px;
    height: 4px;
    border-radius: 2px;
    background: var(--bdr, rgba(232,56,109,.18));
    margin: 0 auto 24px;
}

/* ── Close button ── */
.zfupush-popup__close {
    position: absolute;
    top: 16px;
    right: 18px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: var(--pale, rgba(232,56,109,.12));
    color: var(--mid, #4a3a40);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--t-fast, .18s), transform var(--t-fast, .18s);
}
.zfupush-popup__close:hover {
    background: var(--pale);
    transform: scale(1.1);
}
.zfupush-popup__close:active { transform: scale(.93); }

/* ── Icon ── */
.zfupush-popup__icon {
    font-size: 38px;
    text-align: center;
    margin-bottom: 12px;
    display: block;
}

/* ── Title – Playfair Display wie Auth-Screen ── */
.zfupush-popup__title {
    font-family: var(--font-serif, 'Playfair Display', Georgia, serif);
    font-size: clamp(20px, 5vw, 26px);
    font-weight: 400;
    color: var(--txt, #111010);
    text-align: center;
    margin: 0 0 8px;
    line-height: 1.25;
}

/* ── Body text ── */
.zfupush-popup__text {
    font-size: .88rem;
    color: var(--mid, #4a3a40);
    text-align: center;
    margin: 0 0 10px;
    line-height: 1.6;
}

/* ── DSGVO fine print ── */
.zfupush-popup__dsgvo {
    font-size: .75rem;
    color: var(--dim, #9a8a90);
    text-align: center;
    margin: 0 0 24px;
    line-height: 1.55;
}
.zfupush-popup__link {
    color: var(--p, #E8386D);
    text-decoration: underline;
}

/* ── Actions ── */
.zfupush-popup__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ── Primary button (SparkMatch CI) ── */
.zfupush-popup .zfu-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px 20px;
    border-radius: 14px;
    border: none;
    background: var(--p, #E8386D);
    color: #fff;
    font-size: .95rem;
    font-weight: 500;
    letter-spacing: .02em;
    cursor: pointer;
    box-shadow: 0 6px 20px var(--glow, rgba(232,56,109,.25));
    transition: filter var(--t-fast, .18s), transform var(--t-fast, .18s), box-shadow var(--t-fast, .18s);
    font-family: inherit;
}
.zfupush-popup .zfu-btn-primary:hover:not(:disabled) {
    filter: brightness(1.08);
    transform: translateY(-1px);
}
.zfupush-popup .zfu-btn-primary:active:not(:disabled) { transform: scale(.97); }
.zfupush-popup .zfu-btn-primary:disabled { opacity: .6; cursor: not-allowed; }

/* ── Ghost button ── */
.zfupush-popup .zfu-btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 11px 20px;
    border-radius: 12px;
    border: 1.5px solid var(--bdr, rgba(232,56,109,.12));
    background: transparent;
    color: var(--mid, #4a3a40);
    font-size: .88rem;
    font-weight: 400;
    cursor: pointer;
    transition: background var(--t-fast, .18s), color var(--t-fast, .18s);
    font-family: inherit;
}
.zfupush-popup .zfu-btn-ghost:hover {
    background: var(--pale, rgba(232,56,109,.12));
    color: var(--p, #E8386D);
}

/* ── Status message ── */
.zfupush-popup__status {
    margin-top: 14px;
    text-align: center;
    font-size: .82rem;
    color: var(--mid, #4a3a40);
    background: var(--pale, rgba(232,56,109,.12));
    border-radius: var(--r-sm, 12px);
    padding: 10px 14px;
}

/* ══════════════════════════════════════════════════════
   SHORTCODE PANEL – SparkMatch CI
══════════════════════════════════════════════════════ */
.zfupush-sc-wrap {
    --p:          #E8386D;
    --p2:         #c92b58;
    --pale:       rgba(232,56,109,.12);
    --glow:       rgba(232,56,109,.25);
    --bg:         #FAF9F7;
    --sur:        #ffffff;
    --txt:        #111010;
    --mid:        #4a3a40;
    --dim:        #9a8a90;
    --bdr:        rgba(232,56,109,.12);
    --shd:        rgba(232,56,109,.10);
    --r:          20px;
    --r-sm:       12px;
    --t-fast:     .18s;
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans:  'DM Sans', system-ui, sans-serif;
    font-family: var(--font-sans);
    padding: 20px 0;
}

/* Card */
.zfupush-card {
    background: var(--sur, #fff);
    border: 1px solid var(--bdr);
    border-radius: 28px;
    box-shadow: 0 20px 60px var(--shd);
    padding: 36px 28px 30px;
    max-width: 480px;
    margin: 0 auto;
}

.zfupush-card__icon {
    font-size: 36px;
    text-align: center;
    margin-bottom: 12px;
    display: block;
}

.zfupush-card__title {
    font-family: var(--font-serif);
    font-size: clamp(22px, 5vw, 28px);
    font-weight: 400;
    text-align: center;
    color: var(--txt);
    margin: 0 0 6px;
}

.zfupush-card__sub {
    font-size: .82rem;
    color: var(--dim);
    text-align: center;
    margin: 0 0 22px;
}

/* Stats */
.zfupush-stats {
    background: var(--pale);
    border-radius: var(--r-sm);
    padding: 10px 16px;
    font-size: .82rem;
    color: var(--mid);
    text-align: center;
}

/* Result */
.zfupush-result {
    margin-top: 14px;
    background: var(--pale);
    border-radius: var(--r-sm);
    padding: 10px 16px;
    font-size: .82rem;
    text-align: center;
    color: var(--mid);
}

/* Field group */
.zfupush-sc-wrap .zfu-field-group { margin-bottom: 14px; }

.zfupush-sc-wrap .zfu-field-label {
    display: block;
    font-size: .82rem;
    font-weight: 500;
    color: var(--mid);
    margin-bottom: 6px;
}

/* Input / Textarea */
.zfupush-sc-wrap .zfu-input {
    width: 100%;
    padding: 12px 14px;
    border-radius: var(--r-sm);
    border: 1.5px solid var(--bdr);
    background: var(--bg);
    color: var(--txt);
    font-size: .9rem;
    outline: none;
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
    box-sizing: border-box;
    font-family: inherit;
}
.zfupush-sc-wrap .zfu-input:focus {
    border-color: var(--p);
    box-shadow: 0 0 0 3px var(--pale);
}
.zfupush-sc-wrap .zfu-textarea { resize: vertical; min-height: 80px; }

/* Buttons */
.zfupush-sc-wrap .zfu-btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px 20px;
    border-radius: 14px;
    border: none;
    background: var(--p);
    color: #fff;
    font-size: .95rem;
    font-weight: 500;
    letter-spacing: .02em;
    cursor: pointer;
    box-shadow: 0 6px 20px var(--glow);
    transition: filter var(--t-fast), transform var(--t-fast);
    margin-top: 4px;
    font-family: inherit;
}
.zfupush-sc-wrap .zfu-btn-primary:hover:not(:disabled) {
    filter: brightness(1.08);
    transform: translateY(-1px);
}
.zfupush-sc-wrap .zfu-btn-primary:active:not(:disabled) { transform: scale(.97); }
.zfupush-sc-wrap .zfu-btn-primary:disabled { opacity: .6; cursor: not-allowed; }

.zfupush-sc-wrap .zfu-btn-ghost {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 11px 20px;
    border-radius: 12px;
    border: 1.5px solid var(--bdr);
    background: transparent;
    color: var(--mid);
    font-size: .88rem;
    cursor: pointer;
    transition: background var(--t-fast), color var(--t-fast);
    font-family: inherit;
}
.zfupush-sc-wrap .zfu-btn-ghost:hover {
    background: var(--pale);
    color: var(--p);
}

/* Error */
.zfupush-sc-wrap .zfu-error {
    font-size: .78rem;
    color: #e04060;
    min-height: 16px;
    margin-top: 4px;
    display: block;
}

/* Hidden panel */
.zfupush-panel--hidden { display: none; }

/* Notice banner */
.zfupush-notice {
    padding: 12px 16px;
    border-radius: var(--r-sm);
    font-size: .82rem;
    margin-bottom: 16px;
    font-family: var(--font-sans);
}
.zfupush-notice--warning {
    background: #fff8e1;
    border: 1px solid #ffe082;
    color: #7a5c00;
}
