/* Bestellstrecke internet-baden.ch (ctek AG, 2026-09-30) */
:root { --ib-orange: #fc6f34; --ib-orange-dark: #e05a22; --ib-dark: #141413; --ib-grey: #ebebeb; --ib-grey-2: #f6f6f6; --ib-border: #d8d8d8; }

#angebots-preise .order-titles h2 { font-size: 2.6em; margin: 0 0 6px; line-height: 1.15; }
#angebots-preise .order-titles { margin-bottom: 30px; }

.ib-step { margin-bottom: 40px; }
.ib-step__title { font-family: 'Open Sans Condensed', sans-serif; font-size: 2.2em; color: var(--ib-dark); margin: 0 0 8px; display: flex; align-items: center; gap: 12px; }
.ib-step__num { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ib-orange); color: #fff; font-size: 0.8em; font-weight: 700; flex: 0 0 40px; }
.ib-step__hint { color: #555; margin: 0 0 16px; font-size: 0.95em; }
.ib-step__hint--center { text-align: center; margin-top: 14px; }
.ib-optional { color: #888; font-weight: normal; font-size: 0.85em; }
.ib-price { color: var(--ib-orange); font-weight: 700; white-space: nowrap; }

/* Abo-Karten */
.ib-abos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ib-abo { position: relative; display: block; background: var(--ib-grey-2); border: 2px solid var(--ib-border); border-radius: 10px; padding: 22px 18px 18px 18px; cursor: pointer; margin: 0; font-weight: normal; transition: border-color .15s, box-shadow .15s, transform .15s; }
.ib-abo:hover { border-color: #bbb; transform: translateY(-2px); }
.ib-abo input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ib-abo__check { position: absolute; top: 14px; right: 14px; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--ib-border); background: #fff; }
.ib-abo__check::after { content: ''; position: absolute; left: 8px; top: 3px; width: 7px; height: 13px; border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg); opacity: 0; }
.ib-abo input:checked ~ .ib-abo__check { background: var(--ib-orange); border-color: var(--ib-orange); }
.ib-abo input:checked ~ .ib-abo__check::after { opacity: 1; }
.ib-abo input:checked ~ * { color: inherit; }
.ib-abo:has(input:checked), .ib-abo.is-selected { border-color: var(--ib-orange); box-shadow: 0 0 0 3px rgba(252, 111, 52, .18); background: #fff; }
.ib-abo input:focus-visible ~ .ib-abo__check { outline: 3px solid rgba(252, 111, 52, .5); outline-offset: 2px; }
.ib-abo__badge { position: absolute; top: -12px; left: 18px; background: var(--ib-dark); color: #fff; font-size: 0.75em; text-transform: uppercase; letter-spacing: 1px; padding: 3px 10px; border-radius: 12px; }
.ib-abo__name { display: block; font-family: 'Open Sans Condensed', sans-serif; font-size: 2em; font-weight: 700; color: var(--ib-orange); line-height: 1.1; }
.ib-abo__speed { display: block; color: #666; font-size: 0.95em; margin-bottom: 10px; }
.ib-abo__price { display: block; font-family: 'Open Sans Condensed', sans-serif; font-size: 2.4em; color: var(--ib-dark); line-height: 1; margin-bottom: 8px; }
.ib-abo__price small { font-size: 0.45em; color: #666; font-weight: 300; }
.ib-abo__desc { display: block; font-size: 0.9em; color: #444; }

/* Toggles */
.ib-option { background: var(--ib-grey-2); border: 1px solid var(--ib-border); border-radius: 10px; padding: 14px 16px; margin-bottom: 12px; }
.ib-option--plain { background: transparent; border: 0; padding: 4px 0 0; }
.ib-toggle { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; margin: 0; font-weight: normal; padding: 6px 0; line-height: 1.4; }
.ib-toggle--small { padding: 4px 0; font-size: 0.95em; }
.ib-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ib-toggle__box { flex: 0 0 24px; width: 24px; height: 24px; border-radius: 6px; border: 2px solid #999; background: #fff; position: relative; margin-top: 1px; }
.ib-toggle__box::after { content: ''; position: absolute; left: 7px; top: 2px; width: 6px; height: 12px; border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg); opacity: 0; }
.ib-toggle input:checked ~ .ib-toggle__box { background: var(--ib-orange); border-color: var(--ib-orange); }
.ib-toggle input:checked ~ .ib-toggle__box::after { opacity: 1; }
.ib-toggle input:focus-visible ~ .ib-toggle__box { outline: 3px solid rgba(252, 111, 52, .5); outline-offset: 2px; }
.ib-toggle__text small { color: #666; }
.ib-suboptions { margin: 10px 0 4px 36px; padding-left: 14px; border-left: 3px solid var(--ib-orange); }
.ib-radiogroup { display: flex; flex-wrap: wrap; gap: 6px 24px; margin-bottom: 6px; }
.ib-radio { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: normal; margin: 0; padding: 4px 0; font-size: 0.95em; }
.ib-radio input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ib-radio__dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #999; background: #fff; position: relative; flex: 0 0 20px; }
.ib-radio input:checked ~ .ib-radio__dot { border-color: var(--ib-orange); }
.ib-radio input:checked ~ .ib-radio__dot::after { content: ''; position: absolute; left: 4px; top: 4px; width: 8px; height: 8px; border-radius: 50%; background: var(--ib-orange); }

/* Felder */
.ib-field { margin-bottom: 14px; }
.ib-field label { display: block; font-weight: 600; font-size: 0.9em; margin-bottom: 4px; color: var(--ib-dark); }
.ib-order .form-control { height: 44px; font-size: 1em; border: 1px solid var(--ib-border); border-radius: 6px; box-shadow: none; background: #fff; }
.ib-order .form-control:focus { border-color: var(--ib-orange); box-shadow: 0 0 0 3px rgba(252, 111, 52, .18); }
.ib-order .form-control.is-invalid { border-color: #c0392b; background: #fff6f5; }
.ib-help { display: block; color: #666; margin-top: 4px; font-size: 0.85em; }
.ib-agb { margin-top: 8px; }
.ib-hp { position: absolute; left: -9999px; top: -9999px; height: 0; width: 0; opacity: 0; }
.ib-turnstile-wrap { margin: 18px 0 10px; }
.ib-status { padding: 12px 16px; border-radius: 6px; margin: 10px 0; font-size: 1em; }
.ib-status--error { background: #fdecea; color: #a12d20; border: 1px solid #f3b8b1; }
.ib-status--info { background: var(--ib-grey); color: var(--ib-dark); }
.ib-submit { display: block; width: 100%; max-width: 420px; margin: 12px auto 0; border: 0; border-radius: 8px; padding: 14px 20px; font-size: 1.6em !important; text-transform: uppercase; letter-spacing: 1px; background: var(--ib-orange); }
.ib-submit:hover { background: var(--ib-dark); }
.ib-submit[disabled] { opacity: .6; cursor: wait; }

/* Zusammenfassung */
.ib-summary { background: var(--ib-dark); color: #fff; border-radius: 10px; padding: 22px 22px 18px; position: sticky; top: 120px; }
.ib-summary h3 { color: var(--ib-orange); font-size: 2em; margin: 0 0 10px; }
.ib-summary__empty { color: #bbb; margin: 0 0 8px; }
.ib-summary__list { list-style: none; padding: 0; margin: 0 0 12px; }
.ib-summary__list li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid #333; font-size: 0.95em; }
.ib-summary__list li span:last-child { white-space: nowrap; color: #ddd; }
.ib-summary__list li.is-once span:last-child { color: #bbb; font-style: italic; }
.ib-summary__total { border-top: 2px solid var(--ib-orange); padding-top: 10px; }
.ib-summary__row { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.1em; padding: 4px 0; }
.ib-summary__row strong { font-family: 'Open Sans Condensed', sans-serif; font-size: 1.7em; color: var(--ib-orange); }
.ib-summary__row--once strong { font-size: 1.2em; color: #fff; }
.ib-summary__note { color: #999; font-size: 0.8em; margin: 10px 0 0; }

/* Danke */
.ib-thanks h2 { font-size: 2.6em; }
.ib-thanks__box { background: var(--ib-grey-2); border-radius: 10px; padding: 22px; max-width: 720px; }
.ib-thanks__box table { width: 100%; }
.ib-thanks__box td { padding: 6px 0; border-bottom: 1px solid var(--ib-border); vertical-align: top; }
.ib-thanks__box td:last-child { text-align: right; white-space: nowrap; }

@media (max-width: 991px) {
    .ib-summary { position: static; margin-top: 10px; }
    .ib-abos { grid-template-columns: 1fr; }
    .ib-abo--featured { order: -1; }
    #angebots-preise .order-titles h2 { font-size: 2em; }
    .ib-step__title { font-size: 1.8em; }
}
@media (min-width: 768px) and (max-width: 991px) {
    .ib-abos { grid-template-columns: repeat(3, 1fr); }
    .ib-abo--featured { order: 0; }
}
