/* =====================================================================
   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;
}
