/* ============================================
   POPUP-SYSTEM – w-weingarten.com
   Exit-Intent Popup + Event-Banner
   ============================================ */

/* --- EXIT-INTENT POPUP --- */
.ww-popup-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(26, 26, 24, 0.78);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 99999;
    opacity: 0;
    transition: opacity 0.4s ease;
    justify-content: center;
    align-items: center;
}

.ww-popup-overlay.ww-visible {
    display: flex;
    opacity: 1;
}

.ww-popup-box {
    background: #FFF9F0;
    border-radius: 20px;
    max-width: 460px;
    width: 90%;
    padding: 52px 44px 40px;
    position: relative;
    text-align: center;
    box-shadow: 0 32px 100px rgba(0, 0, 0, 0.35);
    transform: translateY(30px) scale(0.95);
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.ww-popup-overlay.ww-visible .ww-popup-box {
    transform: translateY(0) scale(1);
}

.ww-popup-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    cursor: pointer;
    color: #1A1A18;
    opacity: 0.3;
    transition: opacity 0.2s;
    font-size: 18px;
    line-height: 32px;
}

.ww-popup-close:hover {
    opacity: 0.7;
}

.ww-popup-gold-line {
    width: 40px;
    height: 2px;
    background: #C9A84C;
    margin: 0 auto 28px;
    border-radius: 2px;
}

.ww-popup-headline {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 28px;
    color: #1A1A18;
    margin: 0 0 20px;
    line-height: 1.25;
    letter-spacing: -0.3px;
}

.ww-popup-text {
    font-family: 'Source Sans 3', 'Source Sans Pro', sans-serif;
    font-size: 17px;
    color: #1A1A18;
    margin: 0 0 8px;
    line-height: 1.55;
    font-weight: 600;
    white-space: pre-line;
}

.ww-popup-subtext {
    font-family: 'Source Sans 3', 'Source Sans Pro', sans-serif;
    font-size: 15px;
    color: #555;
    margin: 0 0 32px;
    line-height: 1.6;
    font-weight: 400;
    white-space: pre-line;
}

.ww-popup-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #25D366;
    color: #fff;
    font-family: 'Source Sans 3', 'Source Sans Pro', sans-serif;
    font-size: 16px;
    font-weight: 700;
    padding: 16px 32px;
    border-radius: 50px;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.25);
}

.ww-popup-cta:hover {
    background: #1fb855;
    transform: translateY(-1px);
    box-shadow: 0 6px 28px rgba(37, 211, 102, 0.35);
}

.ww-popup-cta svg {
    width: 20px;
    height: 20px;
    fill: #fff;
}

.ww-popup-dismiss {
    display: block;
    margin: 24px auto 0;
    font-family: 'Source Sans 3', 'Source Sans Pro', sans-serif;
    font-size: 13px;
    color: #999;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s;
    letter-spacing: 0.2px;
}

.ww-popup-dismiss:hover {
    color: #666;
}


/* --- EVENT-BANNER --- */
.ww-event-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99990;
    background: linear-gradient(135deg, #1A1A18 0%, #2a2a26 100%);
    border-top: 3px solid #C9A84C;
    padding: 0;
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.3);
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.ww-event-banner.ww-visible {
    display: block;
    transform: translateY(0);
}

.ww-event-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.ww-event-info {
    flex: 1;
    min-width: 200px;
}

.ww-event-label {
    font-family: 'Source Sans 3', 'Source Sans Pro', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #C9A84C;
    margin: 0 0 6px;
}

.ww-event-title {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 20px;
    color: #FFF9F0;
    margin: 0 0 4px;
    line-height: 1.3;
}

.ww-event-meta {
    font-family: 'Source Sans 3', 'Source Sans Pro', sans-serif;
    font-size: 14px;
    color: rgba(255, 249, 240, 0.7);
    margin: 0;
    font-weight: 400;
}

.ww-event-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.ww-event-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 50px;
    font-family: 'Source Sans 3', 'Source Sans Pro', sans-serif;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.ww-event-btn--whatsapp {
    background: #25D366;
    color: #fff;
}

.ww-event-btn--whatsapp:hover {
    background: #1fb855;
    transform: translateY(-1px);
}

.ww-event-btn--email {
    background: #C9A84C;
    color: #1A1A18;
}

.ww-event-btn--email:hover {
    background: #d4b35d;
    transform: translateY(-1px);
}

.ww-event-btn svg {
    width: 18px;
    height: 18px;
}

.ww-event-close {
    position: absolute;
    top: 12px;
    right: 16px;
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    color: rgba(255, 249, 240, 0.4);
    font-size: 18px;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 28px;
}

.ww-event-close:hover {
    color: rgba(255, 249, 240, 0.8);
}

/* --- EMAIL MODAL --- */
.ww-email-modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(26, 26, 24, 0.78);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 100000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ww-email-modal-overlay.ww-visible {
    display: flex;
    opacity: 1;
}

.ww-email-modal {
    background: #FFF9F0;
    border-radius: 20px;
    max-width: 400px;
    width: 90%;
    padding: 44px 36px 32px;
    text-align: center;
    box-shadow: 0 32px 100px rgba(0, 0, 0, 0.35);
}

.ww-email-modal h3 {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 22px;
    color: #1A1A18;
    margin: 0 0 8px;
}

.ww-email-modal p {
    font-family: 'Source Sans 3', 'Source Sans Pro', sans-serif;
    font-size: 15px;
    color: #555;
    margin: 0 0 20px;
    line-height: 1.55;
    font-weight: 400;
}

.ww-email-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0d8c8;
    border-radius: 10px;
    font-family: 'Source Sans 3', 'Source Sans Pro', sans-serif;
    font-size: 16px;
    background: #fff;
    color: #1A1A18;
    margin-bottom: 12px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.ww-email-input:focus {
    outline: none;
    border-color: #C9A84C;
}

.ww-email-submit {
    width: 100%;
    padding: 14px;
    background: #C9A84C;
    color: #1A1A18;
    font-family: 'Source Sans 3', 'Source Sans Pro', sans-serif;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: background 0.2s;
}

.ww-email-submit:hover {
    background: #d4b35d;
}

.ww-email-cancel {
    display: inline-block;
    margin-top: 14px;
    font-family: 'Source Sans 3', 'Source Sans Pro', sans-serif;
    font-size: 13px;
    color: #999;
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ww-email-hinweis {
    font-size: 13px !important;
    color: #777 !important;
    margin-top: 10px !important;
    font-weight: 400 !important;
}

.ww-email-success {
    color: #25D366;
    font-weight: 600;
}

.ww-email-error {
    color: #cc3333;
    font-weight: 600;
}


/* --- RESPONSIVE --- */
@media (max-width: 600px) {
    .ww-popup-box {
        padding: 40px 28px 32px;
        max-width: 340px;
    }

    .ww-popup-headline {
        font-size: 24px;
    }

    .ww-popup-text {
        font-size: 16px;
    }

    .ww-popup-subtext {
        font-size: 14px;
        color: #4a4a4a;
    }

    .ww-popup-cta {
        font-size: 15px;
        padding: 14px 26px;
    }

    .ww-event-inner {
        flex-direction: column;
        text-align: center;
        padding: 16px 20px;
        gap: 12px;
    }

    .ww-event-actions {
        justify-content: center;
        width: 100%;
    }

    .ww-event-btn {
        font-size: 14px;
        padding: 10px 20px;
    }

    .ww-event-title {
        font-size: 18px;
    }

    .ww-event-meta {
        font-size: 13px;
        color: rgba(255, 249, 240, 0.8);
    }

    .ww-email-modal p {
        font-size: 14px;
        color: #4a4a4a;
    }

    .ww-email-hinweis {
        font-size: 12px !important;
        color: #666 !important;
    }
}
