/* beOnline Quote Calculator - v1.6.0 (step 0: availability at the address)
 * Configurator: product columns (layout "columns") or one card (layout "stacked"),
 * total bar, step 2 "Ihre Angaben". Block "bqc"; the root keeps .beonline-calc[data-form].
 * Colors come from the theme tokens (--beo-*) with fallbacks. Text contrast >= 4.5:1 -
 * never white text on gold (2.66:1): the gold buttons carry dark text.
 */

:root {
    /* 1.x variables - still used by the toast (outside the form) and by themes */
    --bo-primary: #001931;
    --bo-accent: #C89705;
    --bo-accent-hover: #b08504;
    --bo-text: #1a1a1a;
    --bo-muted: #6b7280;
    --bo-border: #e5e7eb;
    --bo-bg: #f9fafb;
    --bo-white: #ffffff;
    --bo-error: #b91c1c;
    --bo-error-bg: #fef2f2;
    --bo-error-border: #fecaca;
    --bo-success: #047857;
    --bo-success-bg: #f0fdf4;
    --bo-success-border: #bbf7d0;
}

.beonline-calc {
    --bqc-accent: var(--beo-gold, #c89705);
    --bqc-accent-hover: var(--beo-gold-hover, #bb8a00);
    --bqc-dark: var(--beo-dark, #000119);
    --bqc-tint: var(--beo-light, #eaf1f2);
    --bqc-line: var(--beo-line, #d9e2e4);
    --bqc-muted: #4b5563;
    --bqc-radius: 8px;
    --bqc-radius-sm: 4px;
    --bqc-shadow: 0 8px 24px rgba(0, 1, 25, .08);
    --bqc-white: #ffffff;
    --bqc-selected: rgba(200, 151, 5, .08);
    --bqc-field-line: #848e90;      /* form field borders: 3.4:1 on white */
    --bqc-disabled: #6b7280;
    --bqc-error: #b91c1c;
    --bqc-scroll-offset: 120px;     /* sticky site header */

    font-family: inherit;
    color: var(--bqc-dark);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    text-align: left;
}

.beonline-calc *,
.beonline-calc *::before,
.beonline-calc *::after {
    box-sizing: border-box;
}

.beonline-calc [hidden] {
    display: none !important;
}

.beonline-calc .screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.beonline-calc__honeypot {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.beonline-calc__intro {
    margin-bottom: 1.5rem;
    padding: 1rem 1.25rem;
    background: var(--bqc-tint);
    border-left: 3px solid var(--bqc-accent);
    border-radius: var(--bqc-radius-sm);
}
.beonline-calc__intro p:last-child { margin-bottom: 0; }

.bqc .bqc__form {
    margin: 0;
    position: relative;
}

/* Layouts ----------------------------------------------------------------- */

.bqc--stacked {
    max-width: 760px;
}

.bqc--columns .bqc__cols {
    display: grid;
    grid-template-columns: repeat(var(--bqc-cols, 3), minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

.bqc .bqc-col {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 24px;
    background: var(--bqc-white);
    border: 1px solid var(--bqc-line);
    border-radius: var(--bqc-radius);
    transition: border-color .15s;
}

.bqc .bqc-col.is-active {
    border-color: var(--bqc-accent);
}

.bqc .bqc-col__head {
    margin: 0 0 8px;
    padding: 0;
    font-family: inherit;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0;
    text-transform: none;
    color: var(--bqc-dark);
}

.bqc .bqc-col__title {
    display: block;
}

.bqc button.bqc-col__toggle {
    display: none;
}

.bqc .bqc-col__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.bqc .bqc-col__text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    min-height: 2.9em;              /* two lines: rows start at the same height in every column */
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
    color: var(--bqc-muted);
}

.bqc .bqc__stack {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 24px;
    background: var(--bqc-white);
    border: 1px solid var(--bqc-line);
    border-radius: var(--bqc-radius);
}

.bqc .bqc-stack__group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.bqc .bqc-stack__group + .bqc-stack__group {
    padding-top: 24px;
    border-top: 1px solid var(--bqc-line);
}

/* consecutive dropdown rows (quantities, devices) read as one list */
.bqc .bqc-stack__group[data-bqc-type="select"] + .bqc-stack__group[data-bqc-type="select"] {
    margin-top: -16px;
    padding-top: 0;
    border-top: 0;
}

/* 1.7.2: several main sections of one column (Combo Internet: DSL / FTTH / Stadtnetze) - the groups of the Internet form,
   one below the other; each keeps its legend */
.bqc .bqc-mains {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.bqc .bqc-stack__text {
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
    color: var(--bqc-muted);
}

.bqc .bqc-extras {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Sections and rows ------------------------------------------------------- */

.bqc .bqc-group {
    position: relative;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.bqc .bqc-group__legend {
    display: block;
    float: none;
    width: 100%;
    margin: 0 0 8px;
    padding: 0 40px 0 0;
    border: 0;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--bqc-dark);
}

.bqc .bqc-rows {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bqc .bqc-row {
    position: relative;
    display: flex;
    align-items: stretch;
    min-height: 44px;
    margin: 0;
    background: var(--bqc-white);
    border: 1px solid var(--bqc-line);
    border-radius: var(--bqc-radius-sm);
    transition: border-color .15s, background-color .15s, box-shadow .15s;
}

.bqc .bqc-row:hover {
    border-color: var(--bqc-accent);
}

.bqc .bqc-row.is-selected,
.bqc .bqc-row:has(.bqc-row__input:checked) {
    border-color: var(--bqc-accent);
    box-shadow: inset 0 0 0 1px var(--bqc-accent);
    background: var(--bqc-selected);
}

.bqc .bqc-row.is-focus,
.bqc .bqc-row:has(.bqc-row__input:focus-visible),
.bqc .bqc-row--select:has(.bqc-select:focus-visible) {
    outline: 2px solid var(--bqc-dark);
    outline-offset: 2px;
}

.bqc .bqc-row.is-disabled {
    background: var(--bqc-white);
    border-color: var(--bqc-line);
    box-shadow: none;
}
.bqc .bqc-row.is-disabled .bqc-row__label,
.bqc .bqc-row.is-disabled .bqc-row__name,
.bqc .bqc-row.is-disabled .bqc-row__price {
    color: var(--bqc-disabled);
    cursor: not-allowed;
}

.bqc label.bqc-row__label {
    position: relative;
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    gap: 10px;
    min-width: 0;
    /* touch target >= 44px (WCAG 2.5.8); the row label is the whole tap area */
    min-height: 44px;
    margin: 0;
    padding: 8px 12px;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.3;
    color: var(--bqc-dark);
    cursor: pointer;
}

/* Native radio / checkbox: hidden but focusable and announced; the mark shows the state. */
.bqc .bqc-row input.bqc-row__input,
.bqc .bqc-consent input.bqc-consent__input {
    position: absolute !important;
    top: 50%;
    left: 12px;
    width: 1px !important;
    height: 1px !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: hidden;
    clip: rect(0 0 0 0);
    opacity: 0;
    pointer-events: none;
}

.bqc .bqc-row__mark {
    position: relative;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    background: var(--bqc-white);
    border: 2px solid var(--bqc-muted);
    border-radius: 50%;
}

.bqc .bqc-group--checkbox .bqc-row__mark {
    border-radius: 3px;
}

.bqc .bqc-row__input:checked + .bqc-row__mark {
    border-color: var(--bqc-dark);
}

.bqc .bqc-group--radio .bqc-row__input:checked + .bqc-row__mark::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 8px;
    height: 8px;
    background: var(--bqc-dark);
    border-radius: 50%;
}

.bqc .bqc-group--checkbox .bqc-row__input:checked + .bqc-row__mark {
    background: var(--bqc-dark);
}

.bqc .bqc-group--checkbox .bqc-row__input:checked + .bqc-row__mark::after,
.bqc .bqc-consent__input:checked + .bqc-consent__box::after {
    content: "";
    position: absolute;
    top: 1px;
    left: 4px;
    width: 5px;
    height: 9px;
    border: solid var(--bqc-white);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.bqc .bqc-row__name {
    flex: 1 1 auto;
    min-width: 0;
    overflow-wrap: anywhere;
}

.bqc .bqc-row__price {
    flex: 0 0 auto;
    margin-left: auto;
    padding-left: 8px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    color: var(--bqc-dark);
}

.bqc .bqc-row__price small {
    display: inline;
    margin: 0 0 0 1px;
    opacity: 1;
    font-size: 12px;
    font-weight: 400;
    color: var(--bqc-muted);
}

/* "Kein Abo" - small first row; when chosen it stays neutral (gold marks real choices) */
.bqc .bqc-row--none {
    min-height: 36px;
}
.bqc .bqc-row--none.is-selected,
.bqc .bqc-row--none:has(.bqc-row__input:checked) {
    background: #f5f8f9;
    border-color: var(--bqc-line);
    box-shadow: none;
}
.bqc .bqc-row--none.is-selected:hover {
    border-color: var(--bqc-accent);
}
.bqc .bqc-row--none label.bqc-row__label {
    padding-top: 4px;
    padding-bottom: 4px;
    min-height: 44px;
    font-size: 13px;
    font-weight: 400;
}
.bqc .bqc-row--none .bqc-row__mark {
    flex-basis: 16px;
    width: 16px;
    height: 16px;
}
.bqc .bqc-group--radio .bqc-row--none .bqc-row__input:checked + .bqc-row__mark::after {
    top: 2px;
    left: 2px;
}

/* Dropdown sections: one compact row, the dropdown wraps below in narrow columns */
.bqc .bqc-row--select {
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    padding: 8px 8px 8px 12px;
}

.bqc .bqc-row--select:hover {
    border-color: var(--bqc-line);
}

.bqc .bqc-row--select.is-selected {
    border-color: var(--bqc-accent);
}

.bqc img.bqc-row__thumb {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    margin: 0;
    object-fit: contain;
    border-radius: 2px;
}

.bqc .bqc-row__head {
    display: flex;
    flex: 1 1 140px;
    align-items: center;
    gap: 2px;
    min-width: 0;
}

.bqc label.bqc-row__name {
    display: block;
    flex: 0 1 auto;
    margin: 0;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.3;
    color: var(--bqc-dark);
    cursor: pointer;
}

.bqc select.bqc-select {
    flex: 0 0 min(320px, 100%);     /* same width in wide cards, own full-width line in narrow columns */
    width: auto;
    min-width: 0;
    height: 44px;
    margin: 0;
    padding: 0 36px 0 12px;
    background: var(--bqc-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23000119' stroke-width='2' d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 12px center / 12px 8px;
    border: 1px solid var(--bqc-field-line);
    border-radius: var(--bqc-radius-sm);
    box-shadow: none;
    font: inherit;
    font-size: 15px;
    line-height: 1.2;
    color: var(--bqc-dark);
    text-overflow: ellipsis;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.bqc select.bqc-select:disabled {
    color: var(--bqc-disabled);
    background-color: #f3f5f6;
    cursor: not-allowed;
}

/* Info (i) buttons with the tooltip ---------------------------------------- */

.bqc button.bqc-info {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: auto;
    min-height: 36px;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: var(--bqc-radius-sm);
    box-shadow: none;
    color: var(--bqc-muted);
    font: inherit;
    line-height: 1;
    cursor: help;
}

.bqc button.bqc-info:hover,
.bqc button.bqc-info:focus,
.bqc button.bqc-info.is-active {
    background: transparent;
    color: var(--bqc-dark);
}

.bqc button.bqc-info:focus-visible {
    outline: 2px solid var(--bqc-dark);
    outline-offset: -4px;
}

.bqc .bqc-info__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border: 1.5px solid currentColor;
    border-radius: 50%;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 11px;
    font-style: italic;
    font-weight: 700;
    line-height: 1;
}

.bqc button.bqc-info:hover .bqc-info__icon,
.bqc button.bqc-info:focus-visible .bqc-info__icon,
.bqc button.bqc-info.is-active .bqc-info__icon {
    background: var(--bqc-dark);
    border-color: var(--bqc-dark);
    color: var(--bqc-white);
}

.bqc button.bqc-info--legend {
    position: absolute;
    top: -9px;
    right: 0;
}

.beonline-calc__tooltip {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999999;
    width: max-content;
    max-width: 300px;
    padding: 0.65rem 0.85rem;
    background: var(--bqc-dark, #000119);
    color: #ffffff;
    border-radius: 4px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    font-family: inherit;
    font-size: 13px;
    font-style: normal;
    font-weight: 400;
    line-height: 1.45;
    text-align: left;
    text-transform: none;
    white-space: normal;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    /* v1.6.1: only opacity is animated; visibility flips after the fade-out (and at once on fade-in).
       Never top/left - the bubble keeps its place while it fades (JS clears the coordinates afterwards). */
    transition: opacity 0.15s ease, visibility 0s linear 0.15s;
}

@media (prefers-reduced-motion: reduce) {
    .beonline-calc__tooltip {
        transition: none;
    }
}

.beonline-calc__tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--bqc-dark, #000119);
}

.beonline-calc__tooltip.is-below::after {
    top: auto;
    bottom: 100%;
    border-top-color: transparent;
    border-bottom-color: var(--bqc-dark, #000119);
}

.beonline-calc__tooltip[hidden] {
    display: none !important;
}

.beonline-calc__tooltip.is-visible {
    opacity: 1 !important;
    visibility: visible !important;
    transition-delay: 0s;
}

/* "Optionen anzeigen (N)" ------------------------------------------------- */

.bqc .bqc-more {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 4px;
}

.bqc button.bqc-more__toggle {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 8px;
    min-height: 44px;
    margin: 0;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
    color: var(--bqc-dark);
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    text-align: left;
    text-decoration: underline;
    text-decoration-color: var(--bqc-accent);
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
    cursor: pointer;
}

.bqc button.bqc-more__toggle::after {
    content: "";
    width: 7px;
    height: 7px;
    margin-top: -4px;
    border: solid currentColor;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    transition: transform .15s;
}

.bqc button.bqc-more__toggle[aria-expanded="true"]::after {
    margin-top: 3px;
    transform: rotate(-135deg);
}

.bqc button.bqc-more__toggle:hover:not(:disabled),
.bqc button.bqc-more__toggle:focus:not(:disabled) {
    background: none;
    color: var(--bqc-dark);
    text-decoration-color: var(--bqc-dark);
}

.bqc button.bqc-more__toggle:focus-visible {
    outline: 2px solid var(--bqc-dark);
    outline-offset: 2px;
}

.bqc button.bqc-more__toggle:disabled {
    color: var(--bqc-disabled);
    text-decoration-color: var(--bqc-line);
    cursor: not-allowed;
}

.bqc .bqc-more__hint {
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
    color: var(--bqc-muted);
}

.bqc .bqc-more__panel {
    margin-top: 8px;
}

/* Total bar --------------------------------------------------------------- */

.bqc .bqc-bar {
    position: -webkit-sticky;
    position: sticky;
    bottom: 0;
    z-index: 20;
    margin-top: 24px;
    background: var(--bqc-dark);
    color: var(--bqc-white);
    border-radius: var(--bqc-radius);
    box-shadow: 0 -6px 20px rgba(0, 1, 25, .12);
    transition: transform .18s ease, opacity .18s ease;
}

/* Step 2 on screen: the customer fields are the action now - the bar steps aside (v1.5.1). */
.bqc.bqc--bar-off .bqc-bar {
    transform: translateY(120%);
    opacity: 0;
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    .bqc .bqc-bar {
        transition: none;
    }
}

.bqc .bqc-bar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 64px;
    padding: 8px 8px 8px 24px;
}

.bqc .bqc-bar__totals {
    margin: 0;
    font-size: 16px;
    line-height: 1.35;
    color: var(--bqc-white);
}

.bqc .bqc-bar__empty {
    font-weight: 500;
}

.bqc .bqc-bar__item {
    white-space: nowrap;
}

.bqc .bqc-bar__totals strong {
    margin-left: 4px;
    font-size: 20px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--bqc-white);
}

.bqc .bqc-bar__sep {
    margin: 0 14px;
    font-size: 22px;
    line-height: 1;
    vertical-align: -2px;
    color: #c3c4cc;
}

.bqc button.bqc-bar__cta {
    flex: 0 0 auto;
    min-height: 48px;
    margin: 0;
    padding: 0 32px;
    background: var(--bqc-accent);
    border: 0;
    border-radius: var(--bqc-radius-sm);
    box-shadow: none;
    color: var(--bqc-dark);
    font: inherit;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .15s;
}

.bqc button.bqc-bar__cta:hover:not(:disabled),
.bqc button.bqc-bar__cta:focus:not(:disabled) {
    background: var(--bqc-accent-hover);
    color: var(--bqc-dark);
}

.bqc button.bqc-bar__cta:focus-visible {
    outline: 3px solid var(--bqc-white);
    outline-offset: 2px;
}

.bqc button.bqc-bar__cta:disabled {
    background: #3a3b52;
    color: #c3c4cc;
    cursor: not-allowed;
}

/* Step 2 ------------------------------------------------------------------ */

.bqc .bqc-step2 {
    margin-top: 32px;
    padding: 32px;
    background: var(--bqc-white);
    border: 1px solid var(--bqc-line);
    border-radius: var(--bqc-radius);
    box-shadow: var(--bqc-shadow);
    scroll-margin-top: var(--bqc-scroll-offset);
}

.bqc .bqc__cols,
.bqc .bqc__stack {
    scroll-margin-top: var(--bqc-scroll-offset);
}

.bqc .bqc-step2__title {
    margin: 0 0 24px;
    padding: 0;
    font-family: inherit;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--bqc-dark);
    outline: none;
}

.bqc .bqc-step2__grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 32px;
    align-items: start;
}

.bqc--stacked .bqc-step2__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
    gap: 24px;
}

.bqc .bqc-summary {
    padding: 20px 24px;
    background: var(--bqc-tint);
    border-radius: var(--bqc-radius);
}

.bqc .bqc-summary__title {
    margin: 0 0 8px;
    font-family: inherit;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--bqc-dark);
}

.bqc .bqc-summary__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.bqc .bqc-summary__item {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 1, 25, .12);
}

.bqc .bqc-summary__section {
    display: block;
    font-size: 12px;
    line-height: 1.3;
    color: var(--bqc-muted);
}

.bqc .bqc-summary__label {
    display: block;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.35;
}

.bqc .bqc-summary__price {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.bqc .bqc-summary__empty {
    margin: 0 0 8px;
    font-size: 14px;
    color: var(--bqc-muted);
}

.bqc .bqc-summary__totals {
    margin: 12px 0 0;
    padding: 0;
    border: 0;
}

.bqc .bqc-summary__total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 4px 0;
}

.bqc .bqc-summary__total dt {
    float: none;
    clear: none;
    width: auto;
    margin: 0;
    text-align: left;
    font-weight: 600;
}

.bqc .bqc-summary__total dt::after {
    content: none;
}

.bqc .bqc-summary__total dd {
    margin: 0;
    padding: 0;
    border: 0;
    text-align: right;
    font-size: 18px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.bqc .bqc-fields {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}

.bqc .bqc-field-row {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 12px;
}

.bqc .beonline-calc__field {
    position: relative;
    margin: 0;
}

.bqc label.bqc-field__label {
    display: block;
    margin: 0 0 4px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--bqc-dark);
}

.bqc .required {
    color: var(--bqc-dark);
}

.bqc input.bqc-input,
.bqc textarea.bqc-input {
    display: block;
    width: 100%;
    height: 44px;
    margin: 0;
    padding: 8px 12px;
    background: var(--bqc-white);
    border: 1px solid var(--bqc-field-line);
    border-radius: var(--bqc-radius-sm);
    box-shadow: none;
    color: var(--bqc-dark);
    font: inherit;
    font-size: 16px;
    line-height: 1.4;
    -webkit-appearance: none;
    appearance: none;
}

.bqc textarea.bqc-textarea {
    height: auto;
    min-height: 92px;
    line-height: 1.5;
    resize: vertical;
}

.bqc input.bqc-input:focus,
.bqc textarea.bqc-input:focus {
    border-color: var(--bqc-dark);
    outline: 2px solid var(--bqc-dark);
    outline-offset: 0;
}

.bqc .beonline-calc__field.is-invalid .bqc-input {
    border-color: var(--bqc-error);
}

.bqc .beonline-calc__field-error {
    display: none;
    margin-top: 4px;
    font-size: 13px;
    line-height: 1.4;
    color: var(--bqc-error);
}

.bqc .beonline-calc__field.is-invalid .beonline-calc__field-error {
    display: block;
}

.bqc label.bqc-consent__label {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-height: 44px;
    margin: 0;
    padding: 10px 0 6px;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.4;
    color: var(--bqc-dark);
    cursor: pointer;
}

.bqc .bqc-consent__box {
    position: relative;
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    margin-top: 0;
    background: var(--bqc-white);
    border: 2px solid var(--bqc-muted);
    border-radius: 3px;
}

.bqc .bqc-consent__input:checked + .bqc-consent__box {
    background: var(--bqc-dark);
    border-color: var(--bqc-dark);
}

.bqc .bqc-consent__input:checked + .bqc-consent__box::after {
    top: 1px;
    left: 5px;
}

.bqc .bqc-consent__input:focus-visible + .bqc-consent__box {
    outline: 2px solid var(--bqc-dark);
    outline-offset: 2px;
}

.bqc .is-invalid .bqc-consent__box {
    border-color: var(--bqc-error);
}

.bqc .bqc-consent__text a {
    color: var(--bqc-dark);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.bqc .bqc-consent__text a:hover,
.bqc .bqc-consent__text a:focus {
    color: var(--bqc-dark);
    text-decoration-thickness: 2px;
}

.bqc .bqc-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 24px;
    margin-top: 4px;
}

.bqc a.bqc-back {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--bqc-dark);
    font-size: 15px;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.bqc a.bqc-back:hover {
    color: var(--bqc-dark);
    text-decoration-thickness: 2px;
}

/* Submit button ----------------------------------------------------------- */

.bqc button.beonline-calc__submit {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-height: 48px;
    margin: 0;
    padding: 0 32px;
    background: var(--bqc-accent);
    border: 0;
    border-radius: var(--bqc-radius-sm);
    box-shadow: none;
    color: var(--bqc-dark);
    font: inherit;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: none;
    cursor: pointer;
    transition: background-color .15s;
}

.bqc button.beonline-calc__submit:hover:not(:disabled),
.bqc button.beonline-calc__submit:focus:not(:disabled) {
    background: var(--bqc-accent-hover);
    color: var(--bqc-dark);
}

.bqc button.beonline-calc__submit:focus-visible {
    outline: 2px solid var(--bqc-dark);
    outline-offset: 2px;
}

.bqc button.beonline-calc__submit:disabled {
    opacity: .75;
    cursor: wait;
}

.beonline-calc__submit-spinner {
    display: none;
    width: 16px;
    height: 16px;
    margin-left: 0.5rem;
    border: 2px solid rgba(0, 1, 25, .25);
    border-top-color: var(--bqc-dark, #000119);
    border-radius: 50%;
    vertical-align: middle;
    animation: beonline-spin 0.7s linear infinite;
}

.beonline-calc--submitting .beonline-calc__submit-spinner {
    display: inline-block;
}

@keyframes beonline-spin {
    to { transform: rotate(360deg); }
}

.beonline-calc--submitting .bqc-step2 {
    pointer-events: none;
    opacity: 0.85;
}

/* Messages ---------------------------------------------------------------- */

.beonline-calc__messages:empty {
    display: none;
}

.beonline-calc__messages.is-error {
    padding: 0.75rem 1rem;
    color: var(--bo-error);
    background: var(--bo-error-bg);
    border: 1px solid var(--bo-error-border);
    border-radius: 4px;
}

.beonline-calc__messages.is-success {
    padding: 0.75rem 1rem;
    color: var(--bo-success);
    background: var(--bo-success-bg);
    border: 1px solid var(--bo-success-border);
    border-radius: 4px;
}

.beonline-calc__combo-note {
    margin: 1rem 0 0;
    padding: 0.75rem 1rem;
    background: var(--bqc-selected);
    border-left: 3px solid var(--bqc-accent);
    font-size: 0.9rem;
}

/* Thank-you screen -------------------------------------------------------- */

.beonline-calc--success .beonline-calc__form {
    display: none;
}

.beonline-calc__thankyou {
    padding: 2rem;
    background: var(--bo-success-bg);
    border: 1px solid var(--bo-success-border);
    border-radius: var(--bqc-radius, 6px);
    text-align: center;
    scroll-margin-top: var(--bqc-scroll-offset, 120px);
}
.beonline-calc__thankyou h2 { color: var(--bo-success); margin-top: 0; }
.beonline-calc__thankyou p { line-height: 1.5; }

/* Toast ------------------------------------------------------------------- */

.beonline-toast {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 99999;
    min-width: 280px;
    max-width: 360px;
    padding: 1rem 1.25rem;
    border-radius: 6px;
    color: var(--bo-white);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
    font-family: inherit;
    font-size: 0.95rem;
    line-height: 1.4;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.2s, transform 0.2s;
}
.beonline-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.beonline-toast--success { background: var(--bo-success); }
.beonline-toast--error   { background: var(--bo-error); }

body.bqc-form-in-view .beonline-toast {
    bottom: calc(80px + env(safe-area-inset-bottom, 0px));
}

/* Generic ----------------------------------------------------------------- */

.beonline-error {
    color: var(--bo-error);
    background: var(--bo-error-bg);
    border: 1px solid var(--bo-error-border);
    padding: 1rem;
    border-radius: 4px;
}

/* Tablets and phones (< 1024 px) ------------------------------------------- */

@media (max-width: 1023px) {
    .bqc--columns .bqc__cols {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .bqc .bqc-col {
        padding: 16px;
    }

    /* Accordion (only with JS) */
    .bqc--js .bqc-col {
        padding: 0;
    }

    .bqc--js .bqc-col__head {
        margin: 0;
    }

    .bqc--js .bqc-col__title {
        display: none;
    }

    .bqc--js button.bqc-col__toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        width: 100%;
        min-height: 60px;
        margin: 0;
        padding: 12px 16px;
        background: none;
        border: 0;
        border-radius: var(--bqc-radius);
        box-shadow: none;
        color: var(--bqc-dark);
        font: inherit;
        line-height: 1.3;
        text-align: left;
        text-transform: none;
        cursor: pointer;
    }

    .bqc--js button.bqc-col__toggle:hover,
    .bqc--js button.bqc-col__toggle:focus {
        background: none;
        color: var(--bqc-dark);
    }

    .bqc--js button.bqc-col__toggle:focus-visible {
        outline: 2px solid var(--bqc-dark);
        outline-offset: -2px;
    }

    .bqc .bqc-col__toggle-text {
        min-width: 0;
    }

    .bqc .bqc-col__toggle-name {
        font-size: 19px;
        font-weight: 700;
    }

    /* 1.7.3: the choice moves to the next line as a whole ("— FTTH · 1000 Mbps · CHF 49.–") instead of breaking inside a name,
       and is cut with "…" when even a whole line is too short (the space before it is in the markup, between the two spans) */
    .bqc .bqc-col__choice {
        display: inline-block;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        /* an inline-block with overflow:hidden sits on its bottom edge - pull it down to the text baseline of the name */
        vertical-align: baseline;
        margin-bottom: -.32em;
        font-size: 15px;
        font-weight: 500;
        color: var(--bqc-muted);
    }

    .bqc .bqc-col.is-active .bqc-col__choice {
        color: var(--bqc-dark);
    }

    .bqc .bqc-col__chevron {
        flex: 0 0 auto;
        width: 10px;
        height: 10px;
        margin: -4px 4px 0 0;
        border: solid var(--bqc-dark);
        border-width: 0 2px 2px 0;
        transform: rotate(45deg);
        transition: transform .15s;
    }

    .bqc .bqc-col__toggle[aria-expanded="true"] .bqc-col__chevron {
        margin-top: 4px;
        transform: rotate(-135deg);
    }

    .bqc--js .bqc-col:not(.is-open) .bqc-col__body {
        display: none;
    }

    .bqc--js .bqc-col__body {
        padding: 0 16px 16px;
    }

    .bqc .bqc-col__text {
        min-height: 0;
    }

    .bqc .bqc__stack {
        padding: 16px;
    }

    /* Rows: touch targets >= 44 px */
    .bqc .bqc-row--none {
        min-height: 44px;
    }

    .bqc button.bqc-info {
        width: 44px;
        min-height: 44px;
    }

    .bqc button.bqc-info--legend {
        top: -13px;
    }

    /* Total bar: fixed at the bottom while the form is on screen (JS), full width */
    .bqc--js .bqc-bar {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 9990;
        margin: 0;
        padding-bottom: env(safe-area-inset-bottom, 0px);
        border-radius: 0;
        box-shadow: 0 -4px 16px rgba(0, 1, 25, .18);
        transform: translateY(110%);
        visibility: hidden;
        transition: transform .2s ease, visibility 0s linear .2s;
    }

    .bqc--js.bqc--in-view .bqc-bar {
        transform: none;
        visibility: visible;
        transition: transform .2s ease, visibility 0s;
    }

    /* Step 2 on screen: the bar steps aside here too - while it is fixed, `.bqc--in-view`
       would otherwise win over `.bqc--bar-off` and leave the bar in the accessibility tree. */
    .bqc--js.bqc--in-view.bqc--bar-off .bqc-bar {
        transform: translateY(110%);
        visibility: hidden;
        transition: transform .2s ease, visibility 0s linear .2s;
    }

    .bqc .bqc-bar__inner {
        gap: 12px;
        min-height: 64px;
        padding: 8px 12px 8px 16px;
    }

    .bqc .bqc-bar__totals {
        font-size: 13px;
        line-height: 1.3;
    }

    .bqc .bqc-bar__sum {
        display: flex;
        flex-direction: column;
    }

    .bqc .bqc-bar__sep {
        display: none;
    }

    .bqc .bqc-bar__totals strong {
        font-size: 17px;
    }

    .bqc button.bqc-bar__cta {
        padding: 0 20px;
    }

    .bqc .bqc-step2 {
        margin-top: 24px;
        padding: 24px 20px;
    }
}

@media (max-width: 767px) {
    .bqc .bqc-step2 {
        padding: 20px 16px;
    }

    .bqc .bqc-step2__title {
        margin-bottom: 16px;
        font-size: 22px;
    }

    .bqc .bqc-step2__grid,
    .bqc--stacked .bqc-step2__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    .bqc .bqc-summary {
        padding: 16px;
    }

    .bqc .bqc-field-row {
        grid-template-columns: 112px minmax(0, 1fr);
    }

    .bqc .bqc-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .bqc button.beonline-calc__submit {
        width: 100%;
    }

    .bqc a.bqc-back {
        justify-content: center;
    }

    .beonline-toast {
        right: 12px;
        left: 12px;
        min-width: 0;
        max-width: none;
    }
}

@media (max-width: 380px) {
    .bqc button.bqc-bar__cta {
        padding: 0 14px;
    }
}

@media (pointer: coarse) {
    .bqc .bqc-row--none {
        min-height: 44px;
    }
}

/* ------------------------------------------------------------------ */
/* v1.6.0 - step 0 "Verfügbarkeit an Ihrer Adresse prüfen"             */
/* ------------------------------------------------------------------ */
.bqc .bqc-step0 {
    position: relative;
    margin: 0 0 24px;
    padding: 20px 24px 22px;
    background: var(--bqc-white);
    border: 1px solid var(--bqc-line);
    border-left: 3px solid var(--bqc-accent);
    border-radius: var(--bqc-radius);
    box-shadow: var(--bqc-shadow);
}

.bqc .bqc-step0__head {
    margin: 0 0 12px;
}

.bqc h3.bqc-step0__title {
    margin: 0 0 4px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--bqc-dark);
}

.bqc .bqc-step0__lead {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
    color: var(--bqc-muted);
    opacity: 1;
}

.bqc .bqc-step0__search {
    max-width: 640px;
}

.bqc .bqc-step0__combo {
    position: relative;
}

.bqc input.bqc-input.bqc-step0__input {
    height: 48px;
    padding-left: 42px;
    background: var(--bqc-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234b5563' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m21 21-4.34-4.34'/%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3C/svg%3E") no-repeat 14px 50% / 18px 18px;
}

.bqc .bqc-step0__list {
    position: absolute;
    z-index: 30;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    max-height: 316px;
    margin: 0;
    padding: 4px;
    overflow-y: auto;
    list-style: none;
    background: var(--bqc-white);
    border: 1px solid var(--bqc-line);
    border-radius: var(--bqc-radius-sm);
    box-shadow: var(--bqc-shadow);
}

.bqc .bqc-step0__option {
    display: flex;
    align-items: center;
    min-height: 44px;
    margin: 0;
    padding: 8px 12px;
    border-radius: var(--bqc-radius-sm);
    font-size: 16px;
    line-height: 1.3;
    color: var(--bqc-dark);
    cursor: pointer;
}

.bqc .bqc-step0__option:hover,
.bqc .bqc-step0__option.is-active {
    background: var(--bqc-selected);
    box-shadow: inset 3px 0 0 var(--bqc-accent);
}

.bqc .bqc-step0__status {
    min-height: 20px;
    margin: 8px 0 0;
    font-size: 14px;
    line-height: 1.45;
    color: var(--bqc-muted);
    opacity: 1;
}

.bqc .bqc-step0__status.is-error {
    color: var(--bqc-error);
}

.bqc .bqc-step0__status a {
    color: var(--bqc-dark);
    font-weight: 600;
}

.bqc .bqc-step0.is-busy .bqc-step0__status::before {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 8px;
    vertical-align: -1px;
    border: 2px solid var(--bqc-line);
    border-top-color: var(--bqc-dark);
    border-radius: 50%;
    animation: bqc-step0-spin .8s linear infinite;
}

@keyframes bqc-step0-spin {
    to { transform: rotate(360deg); }
}

.bqc .bqc-step0__result {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--bqc-line);
}

.bqc .bqc-step0__address {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--bqc-dark);
    opacity: 1;
}

.bqc .bqc-step0__check {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--bqc-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000119' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") no-repeat 50% 50% / 13px 13px;
}

/* 1.7.1: two result cards (Glasfaser, Download bis zu) share the width - also on phones; a single card ("keine
   Angaben") takes the whole width. Grid items stretch, so both cards have the same height. */
.bqc dl.bqc-step0__rows {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    background: none;
    border: 0;           /* themes (Xtra) frame <dl> */
}

.bqc .bqc-step0__row dt,
.bqc .bqc-step0__row dd {
    display: block;
    float: none;
    width: auto;
    padding: 0;
    border: 0;
    background: none;
    text-align: left;
}

.bqc .bqc-step0__row dt::before,
.bqc .bqc-step0__row dt::after {
    content: none;       /* themes add "dt:after { content: ':' }" */
}

.bqc .bqc-step0__row:only-child {
    grid-column: 1 / -1;
}

.bqc .bqc-step0__row {
    margin: 0;
    padding: 12px 14px;
    background: var(--bqc-tint);
    border-radius: var(--bqc-radius-sm);
}

.bqc .bqc-step0__row dt {
    margin: 0 0 4px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--bqc-muted);
}

.bqc .bqc-step0__row dd {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--bqc-dark);
}

.bqc .bqc-step0__note {
    margin: 12px 0 0;
    font-size: 13px;
    line-height: 1.5;
    color: var(--bqc-muted);
    opacity: 1;
}

.bqc .bqc-step0__source {
    display: block;
}

.bqc a.bqc-step0__detail {
    display: inline-block;
    padding: 6px 0;
    color: var(--bqc-dark);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.bqc button.bqc-step0__reset {
    min-height: 44px;
    margin: 4px 0 0;
    padding: 0;
    background: none;
    border: 0;
    color: var(--bqc-dark);
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 4px;
    cursor: pointer;
}

.bqc button.bqc-step0__reset:focus-visible {
    outline: 2px solid var(--bqc-dark);
    outline-offset: 2px;
}

/* options likely not available at the checked address - still selectable */
.bqc .bqc-row.is-unavailable label.bqc-row__label {
    flex-wrap: wrap;
    row-gap: 2px;
}

.bqc .bqc-row.is-unavailable .bqc-row__name {
    color: var(--bqc-muted);
}

.bqc .bqc-row__avail {
    order: 5;
    flex: 1 0 100%;
    padding-left: 30px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.35;
    color: #7a5200;            /* 6.9:1 on white */
}

.bqc .bqc-row__avail-hint {
    display: none;
}

.bqc .bqc-row.is-selected .bqc-row__avail-hint {
    display: inline;
}

.bqc .bqc-summary__avail {
    display: block;
    font-size: 12px;
    line-height: 1.35;
    color: #7a5200;
}

@media (max-width: 767px) {
    .bqc .bqc-step0 {
        padding: 16px 16px 18px;
    }

    .bqc h3.bqc-step0__title {
        font-size: 18px;
    }

    .bqc dl.bqc-step0__rows {
        gap: 8px;
    }

    .bqc .bqc-step0__row {
        padding: 10px 12px;
    }

    .bqc .bqc-step0__row dd {
        font-size: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .beonline-calc *,
    .beonline-calc *::before,
    .beonline-calc *::after {
        transition: none !important;
        animation: none !important;
    }
}
