/**
 * BerlinEcho Gewinnspiel & Newsletter – Frontend Styles
 * Eigenständiger Reset, damit die Optik in jedem Theme stabil bleibt.
 */

.be-gw-wrap {
    --be-accent: #9A1554;
    --be-accent-dark: #6e0d3c;
    --be-bg: #1a1a2e;
    --be-text: #222;
    --be-muted: #6b7280;
    --be-border: #e5e7eb;
    --be-card: #ffffff;
    --be-soft: #fafafb;
    --be-radius: 14px;

    max-width: 820px;
    margin: 20px auto 40px;
    padding: 0 16px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--be-text);
    line-height: 1.55;
}
.be-gw-wrap *, .be-gw-wrap *::before, .be-gw-wrap *::after { box-sizing: border-box; }

/* ── Hero ─────────────────────────────────────────── */
.be-gw-hero {
    background: linear-gradient(135deg, var(--be-accent) 0%, var(--be-bg) 100%);
    color: #fff;
    padding: 36px 28px 32px;
    border-radius: var(--be-radius);
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(154, 21, 84, .15);
}
.be-gw-hero::after {
    content: "";
    position: absolute; inset: 0;
    background: radial-gradient(circle at 80% 10%, rgba(255,255,255,.1), transparent 40%);
    pointer-events: none;
}
.be-gw-badge {
    display: inline-block;
    background: rgba(255,255,255,.12);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 999px;
    letter-spacing: .3px;
    margin-bottom: 14px;
    backdrop-filter: blur(4px);
}
.be-gw-title {
    font-size: 34px;
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 10px;
    color: #fff;
}
.be-gw-prize {
    font-size: 17px;
    margin: 0 0 18px;
    opacity: .95;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}
.be-gw-prize-img {
    margin: 16px auto 12px;
    max-width: 420px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.be-gw-prize-img img { display: block; width: 100%; height: auto; }
.be-gw-deadline {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(0,0,0,.25);
    padding: 10px 18px;
    border-radius: 12px;
    margin-top: 14px;
}
.be-gw-countdown {
    font-size: 38px;
    font-weight: 800;
    line-height: 1;
    color: #fff;
}
.be-gw-countdown-label {
    font-size: 13px;
    line-height: 1.3;
    text-align: left;
    opacity: .9;
}
.be-gw-countdown-label small {
    display: block;
    opacity: .75;
    font-size: 11px;
    margin-top: 2px;
}

/* ── Steps ────────────────────────────────────────── */
.be-gw-steps {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin: 24px 0;
}
.be-gw-step {
    background: var(--be-card);
    border: 1px solid var(--be-border);
    border-radius: var(--be-radius);
    padding: 22px 22px 20px;
    position: relative;
}
.be-gw-step-num {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: var(--be-accent);
    color: #fff;
    font-weight: 800;
    font-size: 16px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 12px;
}
.be-gw-step h3 {
    margin: 0 0 6px;
    font-size: 17px;
    font-weight: 700;
    color: var(--be-text);
}
.be-gw-step p {
    margin: 0 0 14px;
    font-size: 14px;
    color: var(--be-muted);
}
.be-gw-push-btn {
    background: var(--be-accent);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 11px 18px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: filter .2s, transform .1s;
    width: 100%;
}
.be-gw-push-btn:hover:not(:disabled) { filter: brightness(1.08); }
.be-gw-push-btn:active:not(:disabled) { transform: translateY(1px); }
.be-gw-push-btn:disabled { opacity: .6; cursor: not-allowed; }
.be-gw-push-btn.be-gw-push-ok {
    background: #2f8a3a;
    cursor: default;
}
.be-gw-push-status {
    margin-top: 8px;
    font-size: 12px;
    color: var(--be-muted);
    min-height: 16px;
}
.be-gw-push-status.be-err { color: #c0392b; }
.be-gw-push-status.be-ok  { color: #2f8a3a; font-weight: 600; }

/* ── Formular ──────────────────────────────────────── */
.be-gw-form-wrap {
    background: var(--be-card);
    border: 1px solid var(--be-border);
    border-radius: var(--be-radius);
    padding: 26px 26px 22px;
    margin: 0 0 24px;
}
.be-gw-form { display: flex; flex-direction: column; gap: 14px; }
.be-gw-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}
.be-gw-opt {
    font-weight: 400;
    color: var(--be-muted);
    font-size: 12px;
}
.be-gw-field input[type="text"],
.be-gw-field input[type="email"] {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
}
.be-gw-field input:focus {
    outline: none;
    border-color: var(--be-accent);
    box-shadow: 0 0 0 3px rgba(154, 21, 84, .12);
}
.be-gw-field input:invalid:not(:placeholder-shown) {
    border-color: #e76868;
}

.be-gw-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    line-height: 1.5;
    color: #444;
}
.be-gw-check label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}
.be-gw-check input[type="checkbox"] {
    margin-top: 2px;
    width: 17px; height: 17px;
    accent-color: var(--be-accent);
    cursor: pointer;
    flex-shrink: 0;
}
.be-gw-check a { color: var(--be-accent); }

.be-gw-submit {
    background: var(--be-accent);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 14px 22px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 6px;
    transition: filter .2s, transform .1s;
}
.be-gw-submit:hover:not(:disabled) { filter: brightness(1.08); }
.be-gw-submit:active:not(:disabled) { transform: translateY(1px); }
.be-gw-submit:disabled { opacity: .6; cursor: not-allowed; }

.be-gw-msg {
    margin-top: 6px;
    padding: 0 2px;
    font-size: 14px;
    min-height: 20px;
}
.be-gw-msg.be-ok {
    background: #e6f6ea;
    color: #1b6b2a;
    border: 1px solid #bfe4c9;
    padding: 12px 14px;
    border-radius: 8px;
    font-weight: 500;
}
.be-gw-msg.be-err {
    background: #fbe9e7;
    color: #a92e1e;
    border: 1px solid #f3c3bd;
    padding: 12px 14px;
    border-radius: 8px;
}

.be-gw-disclaimer {
    font-size: 11px;
    color: var(--be-muted);
    line-height: 1.5;
    margin: 8px 0 0;
}

/* Honeypot */
.be-hp {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important; height: 1px !important;
    overflow: hidden !important;
}

/* ── FAQ ───────────────────────────────────────────── */
.be-gw-faq {
    background: var(--be-soft);
    border: 1px solid var(--be-border);
    border-radius: var(--be-radius);
    padding: 22px 26px;
    font-size: 14px;
    color: #333;
}
.be-gw-faq h3 {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 700;
}
.be-gw-faq ul {
    margin: 0;
    padding: 0 0 0 18px;
}
.be-gw-faq li {
    margin-bottom: 8px;
    line-height: 1.55;
}
.be-gw-faq li:last-child { margin-bottom: 0; }
.be-gw-legal-note {
    margin: 16px 0 0;
    padding-top: 14px;
    border-top: 1px dashed #cbd5e1;
    font-size: 12px;
    color: var(--be-muted);
}

/* ── Compact-Variante (z. B. Sidebar-Widget) ─────── */
.be-gw-wrap.be-gw-compact .be-gw-hero {
    padding: 22px 20px;
}
.be-gw-wrap.be-gw-compact .be-gw-title { font-size: 22px; }
.be-gw-wrap.be-gw-compact .be-gw-prize { font-size: 14px; }
.be-gw-wrap.be-gw-compact .be-gw-steps { grid-template-columns: 1fr; }

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 640px) {
    .be-gw-hero { padding: 26px 20px; }
    .be-gw-title { font-size: 26px; }
    .be-gw-prize { font-size: 15px; }
    .be-gw-countdown { font-size: 30px; }
    .be-gw-steps { grid-template-columns: 1fr; }
    .be-gw-form-wrap { padding: 20px 18px; }
    .be-gw-faq { padding: 18px 20px; }
}

/* ═══════════════════════════════════════════════════
 * CONFIRMATION PAGE (be_confirm / be_unsub)
 * ═══════════════════════════════════════════════════ */
body.be-confirm-page {
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(135deg, #1a1a2e 0%, #2d1b2e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}
.be-confirm-box {
    background: #fff;
    border-radius: 16px;
    max-width: 460px;
    width: 100%;
    padding: 40px 32px 34px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.be-confirm-logo {
    font-size: 12px;
    letter-spacing: 1.5px;
    color: #9A1554;
    font-weight: 700;
    margin-bottom: 18px;
}
.be-confirm-icon {
    width: 72px; height: 72px;
    border-radius: 50%;
    margin: 0 auto 18px;
    display: flex; align-items: center; justify-content: center;
    font-size: 36px;
    font-weight: 700;
    color: #fff;
}
.be-confirm-icon.be-ok  { background: #2f8a3a; }
.be-confirm-icon.be-err { background: #c0392b; }
.be-confirm-box h1 {
    margin: 0 0 14px;
    font-size: 24px;
    font-weight: 800;
    color: #1a1a2e;
    line-height: 1.25;
}
.be-confirm-box p {
    margin: 0 0 14px;
    font-size: 15px;
    line-height: 1.6;
    color: #444;
}
.be-confirm-box p.be-hint {
    font-size: 13px;
    color: #666;
    background: #fafafb;
    padding: 10px 14px;
    border-radius: 8px;
    margin-top: 16px;
}
.be-confirm-box .be-btn {
    display: inline-block;
    margin-top: 16px;
    background: #9A1554;
    color: #fff;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    transition: filter .2s;
}
.be-confirm-box .be-btn:hover { filter: brightness(1.1); }
