/* ============================================================
   Buchungs-Kalkulator — Frontend Styles
   Farben via CSS Custom Properties überschreibbar im Theme.
   ============================================================ */

:root {
    --bk-accent:       var(--awb-color3, #b00900);
    --bk-accent-dark:  #8a0700;
    --bk-accent-light: var(--awb-color4, #f8efef);
    --bk-text:         var(--awb-color5, #111111);
    --bk-text-muted:   var(--awb-color6, #555555);
    --bk-border:       var(--awb-color7, #c1c1c1);
    --bk-bg:           var(--awb-color1, #ffffff);
    --bk-bg-section:   #fafafa;
    --bk-radius:       8px;
    --bk-shadow:       0 2px 12px rgba(0,0,0,.08);
    --bk-font:         inherit;
}

.bk-calculator {
    font-family: var(--bk-font);
    color: var(--bk-text);
    max-width: 760px;
    margin: 0 auto;
}

/* --- Sections --- */
.bk-section {
    background: var(--bk-bg);
    border: 1px solid var(--bk-border);
    border-radius: var(--bk-radius);
    padding: 24px 28px;
    margin-bottom: 16px;
}

.bk-section-title {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--bk-text-muted);
    margin: 0 0 16px;
}

/* --- Buttons --- */
.bk-button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.bk-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 10px 18px;
    border: 2px solid var(--bk-border);
    border-radius: 50px;
    background: var(--bk-bg);
    color: var(--bk-text);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: border-color .15s, background .15s, color .15s;
    white-space: nowrap;
    line-height: 1.2;
}

.bk-btn:hover {
    border-color: var(--bk-accent);
    color: var(--bk-accent);
}

.bk-btn--active {
    border-color: var(--bk-accent) !important;
    background: var(--bk-accent) !important;
    color: #fff !important;
}

.bk-btn--outline {
    background: transparent;
}

.bk-btn--outline.bk-btn--active {
    background: var(--bk-accent-light) !important;
    border-color: var(--bk-accent) !important;
    color: var(--bk-accent-dark) !important;
}

/* Toggle buttons (Zusatzoptionen + Extras) */
.bk-btn--toggle {
    background: #fff;
    border: 2px solid var(--bk-border);
    color: var(--bk-text-muted);
}

.bk-btn--toggle:hover {
    border-color: var(--bk-accent);
    color: var(--bk-text);
}

.bk-btn--toggle.bk-btn--active {
    background: var(--bk-accent) !important;
    border-color: var(--bk-accent) !important;
    color: #fff !important;
    font-weight: 600;
}

.bk-btn--active .bk-info-tip {
    color: rgba(255,255,255,.85);
}

.bk-btn-sub,
.bk-btn-price {
    font-size: 0.75rem;
    font-weight: 400;
    opacity: .85;
}

.bk-btn--active .bk-btn-sub,
.bk-btn--active .bk-btn-price {
    opacity: .9;
}

/* --- Slider --- */
.bk-slider-wrap {
    display: flex;
    align-items: center;
    gap: 20px;
}

.bk-slider {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    background: var(--bk-border);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.bk-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--bk-accent);
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0,0,0,.2);
}

.bk-slider::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border: none;
    border-radius: 50%;
    background: var(--bk-accent);
    cursor: pointer;
}

.bk-slider-output {
    min-width: 72px;
    text-align: right;
    font-weight: 600;
    font-size: 1rem;
    color: var(--bk-text);
}

/* --- Zusatzoptionen --- */
.bk-zusatz-wrap {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--bk-border);
}

.bk-zusatz-label {
    font-size: 0.78rem;
    color: var(--bk-text-muted);
    margin: 0 0 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
}

/* --- Info Tooltip --- */
.bk-summary-label {
    display: flex;
    align-items: center;
    gap: 5px;
}

.bk-info-tip {
    display: inline-block;
    margin-left: 4px;
    font-size: 0.8rem;
    color: var(--bk-accent);
    cursor: help;
    position: relative;
}

.bk-info-tip::after {
    content: attr(title);
    display: none;
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    font-size: 0.78rem;
    padding: 6px 10px;
    border-radius: 6px;
    white-space: normal;
    max-width: 260px;
    text-align: center;
    z-index: 100;
    pointer-events: none;
    line-height: 1.4;
    box-shadow: 0 2px 8px rgba(0,0,0,.2);
}

.bk-info-tip--calc::after {
    white-space: pre-line;
    max-width: none;
    min-width: 240px;
    text-align: left;
    left: auto;
    right: 0;
    transform: none;
}

.bk-info-tip:hover::after {
    display: block;
}

/* --- Extras button group --- */
.bk-button-group--extras {
    flex-wrap: wrap;
}

.bk-button-group--extras .bk-btn--toggle {
    flex-direction: row;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
}

/* --- Summary --- */
.bk-summary {
    background: var(--bk-bg-section);
}

.bk-summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 24px;
    margin-bottom: 16px;
}

.bk-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: var(--bk-bg);
    border-radius: var(--bk-radius);
    border: 1px solid var(--bk-border);
}

.bk-summary-label {
    font-size: 0.85rem;
    color: var(--bk-text-muted);
}

.bk-summary-value {
    font-weight: 600;
    font-size: 1rem;
}

/* Mindest-Hinweis */
.bk-mindest-hint {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: #fff8f0;
    border: 1px solid #f5c89a;
    border-radius: var(--bk-radius);
    padding: 10px 14px;
    margin-bottom: 16px;
    font-size: 0.85rem;
    color: #7a4010;
    line-height: 1.5;
}

.bk-hint-icon {
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 1px;
}

/* Total */
.bk-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0 0;
    border-top: 2px solid var(--bk-border);
    margin-bottom: 20px;
}

.bk-total-label {
    font-size: 1rem;
    font-weight: 700;
}

.bk-total-value {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--bk-accent);
}

/* Disclaimer */
.bk-disclaimer {
    font-size: 0.68rem;
    color: var(--bk-text-muted);
    opacity: .7;
    margin: 0 0 20px;
    font-style: italic;
}

/* CTA Button */
.bk-cta-btn {
    display: inline-block;
    padding: 14px 32px;
    background: var(--bk-accent);
    color: #fff;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: background .15s;
}

.bk-cta-btn:hover {
    background: var(--bk-accent-dark);
    color: #fff;
}

/* ============================================================
   Zusammenfassung (Anfrage-Seite)
   ============================================================ */

.bk-zusammenfassung {
    font-family: var(--bk-font);
    background: var(--bk-bg);
    border: 1px solid var(--bk-border);
    border-radius: var(--bk-radius);
    padding: 28px 32px;
    margin-bottom: 32px;
    max-width: 640px;
}

.bk-zs-title {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--bk-text-muted);
    margin: 0 0 20px;
}

.bk-zs-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--bk-border);
}

.bk-zs-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
}

.bk-zs-label {
    font-size: 0.85rem;
    color: var(--bk-text-muted);
    font-weight: 700;
    flex-shrink: 0;
}

.bk-zs-label::after {
    content: ': ';
}

.bk-zs-value {
    font-size: 0.95rem;
    font-weight: 500;
    text-align: right;
}

.bk-zs-value small {
    font-weight: 400;
    color: var(--bk-text-muted);
    font-size: 0.82rem;
}

.bk-zs-list-item {
    display: block;
}

.bk-zs-list-item small {
    font-size: 0.82rem;
    color: var(--bk-text-muted);
    font-weight: 400;
}

.bk-zs-kosten {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.bk-zs-kosten-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--bk-text-muted);
}

.bk-zs-kosten-row span:first-child {
    font-weight: 700;
}

.bk-zs-kosten-row span:first-child::after {
    content: ': ';
}

.bk-zs-total {
    margin-top: 8px;
    padding-top: 12px;
    border-top: 2px solid var(--bk-border);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--bk-accent);
}

.bk-zs-hinweis {
    font-size: 0.78rem;
    color: var(--bk-text-muted);
    margin: 0;
}

/* Avada-Feld standardmäßig verstecken — wird per Shortcode eingeblendet */
.fusion-form-field-kalkulator_daten {
    display: none !important;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 600px) {
    .bk-section {
        padding: 18px 16px;
    }

    .bk-summary-grid {
        grid-template-columns: 1fr;
    }

    .bk-btn {
        font-size: 0.85rem;
        padding: 9px 14px;
    }

    .bk-slider-wrap {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .bk-slider-output {
        text-align: center;
    }

    .bk-total-value {
        font-size: 1.3rem;
    }
}
