/* Extracted from buchhaltungskosten-rechner.php. */

/* =============================================
   BUCHHALTUNGSKOSTEN-RECHNER  Prefix: bkr-
   ============================================= */

.bkr-hero {
    background: linear-gradient(135deg, #1e3a5f 0%, #4338ca 100%);
    padding: 64px 0 56px;
    text-align: center;
    color: #fff;
}
.bkr-hero-eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #a5b4fc;
    margin-bottom: 1rem;
}
.bkr-hero h1 {
    font-size: clamp(1.9rem, 4vw, 2.9rem);
    font-weight: 800;
    line-height: 1.15;
    color: #fff;
    margin-bottom: 1rem;
}
.bkr-hero-sub {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.8);
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.7;
}

.bkr-section {
    padding: 72px 0;
    background: #f8fafc;
}
.bkr-layout {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 2.5rem;
    align-items: start;
}

/* INPUTS PANEL */
.bkr-inputs-panel {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 2rem;
}
.bkr-inputs-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0c1a2e;
    margin-bottom: 1.5rem;
}
.bkr-progress {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.75rem;
    padding: 0.75rem 1rem;
    background: #eef2ff;
    border-radius: 8px;
    font-size: 0.88rem;
    color: #4338ca;
    font-weight: 600;
}
.bkr-progress-bar-track {
    flex: 1;
    height: 6px;
    background: #c7d2fe;
    border-radius: 50px;
    overflow: hidden;
}
.bkr-progress-bar-fill {
    height: 100%;
    background: #4338ca;
    border-radius: 50px;
    transition: width 0.3s ease;
    width: 0%;
}
.bkr-field { margin-bottom: 1.5rem; }
.bkr-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: #0c1a2e;
    margin-bottom: 0.5rem;
}
.bkr-label-hint {
    font-size: 0.8rem;
    font-weight: 400;
    color: #6b7280;
    margin-left: 0.4rem;
}
.bkr-select {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-size: 0.95rem;
    color: #0c1a2e;
    background: #fff;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.85rem center;
    cursor: pointer;
    transition: border-color 0.2s;
}
.bkr-select:focus { outline: none; border-color: #4338ca; box-shadow: 0 0 0 3px rgba(67,56,202,0.12); }
.bkr-select.bkr-filled { border-color: #4338ca; background-color: #eef2ff; }

.bkr-radio-group { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.bkr-radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    color: #0c1a2e;
    transition: border-color 0.2s, background 0.2s;
    user-select: none;
}
.bkr-radio-label:has(input:checked) {
    border-color: #4338ca;
    background: #eef2ff;
    color: #4338ca;
}
.bkr-radio-label input[type="radio"] { width: 16px; height: 16px; accent-color: #4338ca; }

.bkr-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 1rem;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    color: #0c1a2e;
    transition: border-color 0.2s, background 0.2s;
    user-select: none;
}
.bkr-checkbox-label:has(input:checked) {
    border-color: #4338ca;
    background: #eef2ff;
    color: #4338ca;
}
.bkr-checkbox-label input[type="checkbox"] { width: 16px; height: 16px; accent-color: #4338ca; }

/* RESULT PANEL */
.bkr-result-panel { position: sticky; top: 120px; }
.bkr-result-box {
    background: linear-gradient(160deg, #1e3a5f 0%, #4338ca 100%);
    border-radius: 16px;
    padding: 2rem;
    color: #fff;
}
.bkr-result-box-title {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #a5b4fc;
    margin-bottom: 1.5rem;
}

/* Result state: placeholder */
.bkr-result-placeholder {
    text-align: center;
    padding: 1.5rem 0;
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
    font-style: italic;
}

/* Result state: filled */
.bkr-res-label { font-size: 0.8rem; color: rgba(255,255,255,0.65); margin-bottom: 0.25rem; }
.bkr-res-amount { font-size: 2.1rem; font-weight: 800; color: #fff; line-height: 1.1; margin-bottom: 0.2rem; }
.bkr-res-range  { font-size: 0.85rem; color: rgba(255,255,255,0.55); margin-bottom: 1.25rem; }
.bkr-res-divider { height: 1px; background: rgba(255,255,255,0.15); margin: 1rem 0; }
.bkr-res-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.4rem; }
.bkr-res-row-label { font-size: 0.85rem; color: rgba(255,255,255,0.7); }
.bkr-res-row-val   { font-size: 1rem; font-weight: 700; color: #fff; }
.bkr-res-savings {
    margin-top: 1.25rem;
    padding: 1rem;
    border-radius: 10px;
    background: rgba(255,255,255,0.1);
}
.bkr-res-savings-label { font-size: 0.78rem; color: rgba(255,255,255,0.65); margin-bottom: 0.25rem; }
.bkr-res-savings-val   { font-size: 1.5rem; font-weight: 800; color: #a5b4fc; }
.bkr-res-savings-val--neutral { color: #fcd34d; }
.bkr-res-savings-note  { font-size: 0.78rem; color: rgba(255,255,255,0.5); margin-top: 0.2rem; }

/* Hidden utility */
.bkr-hidden { display: none !important; }

/* CTA below result */
.bkr-result-cta {
    margin-top: 1rem;
    background: #fff;
    border-radius: 12px;
    padding: 1.25rem;
}
.bkr-result-cta-note {
    font-size: 0.82rem;
    color: #6b7280;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}
.bkr-result-cta .btn { width: 100%; text-align: center; display: block; font-size: 0.95rem; }

/* Email Capture */
.bkr-email-capture {
    margin-top: 0.875rem;
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    border-radius: 12px;
    padding: 1.25rem;
}
.bkr-email-capture-inner { display: flex; flex-direction: column; gap: 0.75rem; }
.bkr-email-capture-icon { color: #4338ca; }
.bkr-email-capture-text { display: flex; flex-direction: column; gap: 0.25rem; }
.bkr-email-capture-text strong { font-size: 0.92rem; color: #0c1a2e; }
.bkr-email-capture-text span { font-size: 0.8rem; color: #6b7280; }
.bkr-email-form { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.bkr-email-input {
    flex: 1;
    min-width: 200px;
    padding: 0.6rem 0.875rem;
    border: 1px solid #c7d2fe;
    border-radius: 50px;
    font-size: 0.9rem;
    outline: none;
    background: #fff;
    color: #0c1a2e;
}
.bkr-email-input:focus { border-color: #4338ca; box-shadow: 0 0 0 3px rgba(67,56,202,0.12); }
.bkr-email-btn {
    padding: 0.6rem 1.25rem;
    background: #4338ca;
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}
.bkr-email-btn:hover { background: #3730a3; }
.bkr-email-note { font-size: 0.72rem; color: #9ca3af; }
.bkr-email-note a { color: #6b7280; text-decoration: underline; }
.bkr-email-success {
    background: #ddd6fe;
    border: 1px solid #a5b4fc;
    border-radius: 8px;
    padding: 0.6rem 1rem;
    font-size: 0.875rem;
    color: #166534;
    font-weight: 600;
}

/* DISCLAIMER */
.bkr-disclaimer-section { padding: 48px 0 72px; background: #f8fafc; }
.bkr-disclaimer {
    max-width: 740px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem 2rem;
    font-size: 0.88rem;
    color: #6b7280;
    line-height: 1.7;
}
.bkr-disclaimer strong { color: #0c1a2e; }

/* MOBILE */
@media (max-width: 900px) {
    .bkr-layout { grid-template-columns: 1fr; }
    .bkr-result-panel { position: static; order: -1; }
}
@media (max-width: 600px) {
    .bkr-radio-group { flex-direction: column; }
    .bkr-inputs-panel, .bkr-result-box { padding: 1.25rem; }
}
