/* =====================================================================
   Kundenseite-Erweiterungen
   ===================================================================== */

body.customer-page,
body:has(.offer-page),
body:has(.offer-code-box) {
    background: linear-gradient(#f5f6fa 0%, #eceef5 100%);
    min-height: 100vh;
    padding-bottom: 3rem;
}

.offer-page {
    max-width: 760px;
    margin: 2rem auto;
    padding: 0 1rem;
}
.offer-page .company {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--c-muted);
    font-size: .9rem;
    letter-spacing: .05em;
    text-transform: uppercase;
}
.offer-page h1 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 0.25rem;
}
.offer-page .sub {
    text-align: center;
    color: var(--c-muted);
    margin-bottom: 2rem;
}

.offer-code-box {
    background: #fff;
    padding: 2.25rem 2rem;
    border-radius: 14px;
    box-shadow: var(--shadow);
    max-width: 460px;
    margin: 4rem auto;
}

.offer-code-box input[type="text"] {
    text-align: center;
    letter-spacing: .3em;
    font-size: 1.4rem;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
}

.offer-section {
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    padding: 1.5rem 2rem;
    margin-bottom: 1.5rem;
}
.offer-section h2 {
    margin: 0 0 1rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid var(--c-border);
    font-size: 1.15rem;
}

.offer-summary { width: 100%; }
.offer-summary th, .offer-summary td { padding: .45rem 0; font-size: .95rem; }
.offer-summary th {
    text-align: left; font-weight: 500; color: var(--c-muted); width: 45%;
}
.offer-summary td { text-align: right; }

.offer-price-total {
    background: #f7f9ff;
    border: 1px solid #d6dff7;
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}
.offer-price-total .label { font-size: 1rem; color: #555; }
.offer-price-total .value { font-size: 1.6rem; font-weight: 700; color: var(--c-primary-d); }

/* Signature */
.sig-wrap {
    border: 1px dashed #aab;
    border-radius: 8px;
    background: #fff;
    padding: 0;
    position: relative;
    overflow: hidden;
}
#sig-canvas {
    display: block;
    width: 100%;
    height: 180px;
    touch-action: none;
    cursor: crosshair;
    background: #fff;
}
.sig-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: .5rem;
    font-size: .85rem;
    color: var(--c-muted);
}

.consent-block {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    margin: 1.5rem 0;
}
.consent-block input[type=checkbox] {
    margin-top: .25rem;
    transform: scale(1.2);
}

.btn-order {
    display: block;
    width: 100%;
    text-align: center;
    padding: 1rem 1.2rem;
    font-size: 1.1rem;
    background: var(--c-success);
}
.btn-order:hover { background: #1f6a3a; }
.btn-order[disabled] {
    background: #aab;
    cursor: not-allowed;
}

.status-banner {
    padding: 1.25rem 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    font-size: .95rem;
}
.status-banner.expired { background: #fdecea; border: 1px solid #f3b6b1; color: #8a2620; }
.status-banner.ordered { background: #e9f8ee; border: 1px solid #bbe2c8; color: #1d6c37; }
.status-banner.info    { background: #e8eefb; border: 1px solid #bccdea; color: #284b91; }

.confirm-card {
    text-align: center;
    background: #fff;
    padding: 3rem 2rem;
    border-radius: 14px;
    box-shadow: var(--shadow);
}
.confirm-card .icon {
    width: 64px; height: 64px; margin: 0 auto 1rem;
    border-radius: 50%; background: #e9f8ee;
    display: flex; align-items: center; justify-content: center;
    color: #1d6c37; font-size: 2rem;
}

/* -------- Onlinebonus-Box -------- */
.offer-bonus {
    background: linear-gradient(135deg, #e9f8ee 0%, #d4f0e0 100%);
    border: 2px solid #27884a;
    border-radius: 14px;
    padding: 1.75rem 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(39, 136, 74, 0.15);
    position: relative;
    overflow: hidden;
}
.offer-bonus::before {
    content: "";
    position: absolute;
    top: -20px; right: -20px;
    width: 120px; height: 120px;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    pointer-events: none;
}
.offer-bonus.is-active {
    background: linear-gradient(135deg, #c8ebd5 0%, #a7dcbe 100%);
    border-color: #1d6c37;
}

.bonus-head {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: .75rem;
}
.bonus-label {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1d6c37;
}
.bonus-free {
    background: #1d6c37;
    color: #fff;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.bonus-activate {
    display: flex;
    align-items: center;
    gap: .75rem;
    background: #fff;
    padding: .9rem 1.1rem;
    border-radius: 8px;
    border: 1px solid #bbe2c8;
    cursor: pointer;
    font-weight: 600;
    color: #1d6c37;
    margin-bottom: 1rem;
    transition: background .15s;
}
.bonus-activate:hover { background: #f5fdf8; }
.bonus-activate input[type=checkbox] { transform: scale(1.3); }

.bonus-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
}
.bonus-list li {
    padding: .35rem 0 .35rem 1.75rem;
    position: relative;
    color: #1e2230;
    font-size: .95rem;
}
.bonus-list li::before {
    content: "✓";
    position: absolute;
    left: 0; top: .35rem;
    color: #1d6c37;
    font-weight: 700;
    font-size: 1.1rem;
}

.bonus-bank {
    background: #fff;
    padding: 1.1rem 1.25rem;
    border-radius: 8px;
    border: 1px solid #bbe2c8;
    margin-top: .5rem;
}
.bonus-bank label { margin-top: .75rem; }
.bonus-bank label:first-of-type { margin-top: 0; }

/* -------- Upsell-Boxen -------- */
.upsell-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.25rem;
    margin-top: 1rem;
}
.upsell-box[data-span="2"] { grid-column: span 2; } /* 3 Boxen nebeneinander */
.upsell-box[data-span="3"] { grid-column: span 3; } /* 2 Boxen nebeneinander */
.upsell-box[data-span="6"] { grid-column: span 6; } /* volle Breite */
@media (max-width: 640px) {
    .upsell-grid { grid-template-columns: 1fr; }
    .upsell-box[data-span] { grid-column: span 1; }
}

.upsell-box {
    background: #fff;
    border: 2px solid #e3e5ec;
    border-radius: 14px;
    padding: 1.75rem 1.5rem 1.5rem;
    text-align: center;
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: transform .15s, box-shadow .15s, border-color .15s;
}
.upsell-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,.1);
    border-color: #7c4dff;
}
.upsell-box-large {
    background: linear-gradient(135deg, #faf7ff 0%, #f0eaff 100%);
    border-color: #7c4dff;
}
.upsell-box-large:hover {
    border-color: #5a2fd1;
    box-shadow: 0 6px 24px rgba(124,77,255,.25);
}

.upsell-badge {
    position: absolute;
    top: -12px; left: 50%;
    transform: translateX(-50%);
    background: #7c4dff;
    color: #fff;
    padding: 3px 14px;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    white-space: nowrap;
}
.upsell-badge-hot { background: #ff6b35; }

.upsell-impressions {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1e2230;
    line-height: 1;
    margin-top: .5rem;
}
.upsell-impressions-label {
    font-size: .9rem;
    color: var(--c-muted);
    margin-top: .25rem;
    margin-bottom: 1rem;
}
.upsell-desc {
    font-size: .85rem;
    color: var(--c-muted);
    margin: 0 0 1rem;
    min-height: 2.5rem;
}
.upsell-price {
    padding: .75rem 0;
    border-top: 1px solid #eceef5;
    border-bottom: 1px solid #eceef5;
    margin-bottom: 1rem;
}
.upsell-price strong {
    font-size: 1.6rem;
    color: #7c4dff;
}
.upsell-price span {
    font-size: .95rem;
    color: var(--c-muted);
    margin-left: .25rem;
}
.upsell-box-large .upsell-price strong { color: #5a2fd1; }

.btn-upsell {
    display: block;
    width: 100%;
    padding: .85rem 1rem;
    background: #fff;
    color: #7c4dff !important;
    border: 2px solid #7c4dff;
    border-radius: 8px;
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all .15s;
}
.btn-upsell:hover {
    background: #7c4dff;
    color: #fff !important;
}
.btn-upsell-primary {
    background: #7c4dff;
    color: #fff !important;
}
.btn-upsell-primary:hover {
    background: #5a2fd1;
}
