/* Preisrechner & Online-Auftrag – nutzt die Design-Tokens aus style.css (mit Ersatzwerten). */
.rq { --rq-brand: var(--brand, #F2B705); --rq-brand-text: var(--brand-text, #7A5A00); --rq-ink: var(--ink, #0E1726); --rq-text: var(--text, #26324A);
    --rq-muted: var(--muted, #5B6678); --rq-line: var(--line, #DDE2EA); --rq-soft: var(--soft, #F3F5F8); --rq-card: var(--card, #FFFFFF);
    --rq-radius: var(--radius, 6px); --rq-shadow: var(--shadow, 0 1px 2px rgba(14, 23, 38, 0.06), 0 12px 32px rgba(14, 23, 38, 0.08));
    --rq-ok: #1B7F4B; --rq-err: #B42318; padding-bottom: 40px; }
.rq [hidden] { display: none !important; }
.rq-head { padding-top: 48px; padding-bottom: 8px; }
.rq-kicker { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--rq-brand-text); margin: 0 0 6px; }
.rq-head h1 { margin: 0 0 10px; }
.rq-lead { max-width: 680px; color: var(--rq-muted); font-size: 1.08rem; margin: 0; }
.rq-progress { list-style: none; display: flex; gap: 8px; padding: 0; margin: 26px 0 0; counter-reset: s; flex-wrap: wrap; }
.rq-progress li { display: flex; align-items: center; gap: 8px; font-size: 0.92rem; font-weight: 600; color: var(--rq-muted); padding: 6px 12px 6px 6px; border: 1px solid var(--rq-line); border-radius: 999px; background: var(--rq-card); }
.rq-progress li span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--rq-soft); color: var(--rq-ink); font-size: 0.85rem; font-variant-numeric: tabular-nums; }
.rq-progress li.is-active { color: var(--rq-ink); border-color: var(--rq-ink); }
.rq-progress li.is-active span { background: var(--rq-ink); color: #fff; }
.rq-progress li.is-done span { background: #1B7F4B; color: #fff; }

.rq-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start; margin-top: 26px; }
.rq-form { background: var(--rq-card); border: 1px solid var(--rq-line); border-radius: calc(var(--rq-radius) + 4px); padding: 28px; box-shadow: var(--rq-shadow); min-width: 0; }
.rq-step { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 18px; }
.rq-step legend { font-size: 1.35rem; font-weight: 700; color: var(--rq-ink); margin-bottom: 14px; padding: 0; }
.rq-field, .rq-place { display: grid; gap: 6px; font-weight: 600; color: var(--rq-ink); font-size: 0.95rem; min-width: 0; }
.rq-field small, .rq-label small { font-weight: 400; color: var(--rq-muted); }
.rq-label { font-weight: 600; color: var(--rq-ink); font-size: 0.95rem; }
.rq input:not([type=radio]):not([type=checkbox]), .rq select, .rq textarea { width: 100%; font: inherit; font-weight: 400; color: var(--rq-ink); background: var(--rq-card); border: 1px solid #C9D1DC; border-radius: var(--rq-radius); padding: 12px 14px; min-height: 48px; }
.rq textarea { min-height: 90px; resize: vertical; }
.rq input:focus, .rq select:focus, .rq textarea:focus { outline: none; border-color: var(--rq-ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--rq-brand) 45%, transparent); }
.rq input.is-valid { border-color: var(--rq-ok); }
.rq-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.rq-row > [hidden] + * { grid-column: 1 / -1; }

.rq-route { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 10px; align-items: end; }
.rq-swap { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--rq-line); background: var(--rq-soft); color: var(--rq-ink); font-size: 1.2rem; cursor: pointer; }
.rq-swap:hover { border-color: var(--rq-ink); }
.rq-combo { position: relative; }
.rq-suggest { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px); list-style: none; margin: 0; padding: 4px; background: var(--rq-card); border: 1px solid var(--rq-line); border-radius: var(--rq-radius); box-shadow: 0 16px 40px rgba(14, 23, 38, 0.16); max-height: 280px; overflow-y: auto; }
.rq-suggest li { padding: 10px 12px; border-radius: 4px; cursor: pointer; font-weight: 400; color: var(--rq-text); }
.rq-suggest li b { font-variant-numeric: tabular-nums; color: var(--rq-ink); margin-right: 4px; }
.rq-suggest li[aria-selected=true], .rq-suggest li:hover { background: var(--rq-soft); }

.rq-stepper { display: grid; grid-template-columns: 48px minmax(0, 1fr) 48px; }
.rq-stepper button { border: 1px solid #C9D1DC; background: var(--rq-soft); color: var(--rq-ink); font-size: 1.3rem; cursor: pointer; }
.rq-stepper button:first-child { border-radius: var(--rq-radius) 0 0 var(--rq-radius); }
.rq-stepper button:last-child { border-radius: 0 var(--rq-radius) var(--rq-radius) 0; }
.rq-stepper input { border-radius: 0 !important; border-left: 0 !important; border-right: 0 !important; text-align: center; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.rq-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.rq-hint { margin: -8px 0 0; font-size: 0.88rem; color: var(--rq-muted); }

.rq-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.rq-tile, .rq-extra { position: relative; cursor: pointer; }
.rq-tile input, .rq-extra input, .rq-seg input { position: absolute; opacity: 0; pointer-events: none; }
.rq-tile span { display: grid; gap: 2px; height: 100%; padding: 14px; border: 1.5px solid var(--rq-line); border-radius: var(--rq-radius); background: var(--rq-card); font-weight: 400; }
.rq-tile b, .rq-extra b { color: var(--rq-ink); font-weight: 700; }
.rq-tile small, .rq-extra small { color: var(--rq-muted); font-size: 0.84rem; line-height: 1.35; }
.rq-tile input:checked + span { border-color: var(--rq-ink); box-shadow: inset 0 0 0 1px var(--rq-ink); background: var(--rq-soft); }
.rq-tile input:focus-visible + span, .rq-extra input:focus-visible ~ span, .rq-seg input:focus-visible + * { outline: 3px solid var(--rq-brand); outline-offset: 2px; }
.rq-extras { display: grid; gap: 8px; }
.rq-extra { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; border: 1.5px solid var(--rq-line); border-radius: var(--rq-radius); }
.rq-extra::before { content: ''; width: 22px; height: 22px; border: 1.5px solid #9AA6B6; border-radius: 4px; background: var(--rq-card); }
.rq-extra:has(input:checked) { border-color: var(--rq-ink); background: var(--rq-soft); }
.rq-extra:has(input:checked)::before { background: var(--rq-ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' fill='none' stroke='%23fff' stroke-width='2.2'/%3E%3C/svg%3E") center/16px no-repeat; border-color: var(--rq-ink); }
.rq-extra span { display: grid; gap: 1px; }
.rq-extra em { font-style: normal; font-weight: 600; color: var(--rq-ink); white-space: nowrap; font-variant-numeric: tabular-nums; }

.rq-seg { display: inline-grid; grid-template-columns: 1fr 1fr; background: var(--rq-soft); border: 1px solid var(--rq-line); border-radius: var(--rq-radius); padding: 4px; justify-self: start; }
.rq-seg label { position: relative; padding: 10px 18px; border-radius: 4px; cursor: pointer; font-weight: 600; color: var(--rq-muted); text-align: center; }
.rq-seg label:has(input:checked) { background: var(--rq-card); color: var(--rq-ink); box-shadow: 0 1px 3px rgba(14, 23, 38, 0.15); }

.rq-review { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 18px; margin: 0; padding: 16px 18px; background: var(--rq-soft); border-radius: var(--rq-radius); }
.rq-review dt { color: var(--rq-muted); }
.rq-review dd { margin: 0; color: var(--rq-ink); font-weight: 600; overflow-wrap: anywhere; }
.rq-check { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; font-size: 0.95rem; color: var(--rq-text); cursor: pointer; }
.rq-check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--rq-ink); }
.rq-check small { color: var(--rq-muted); }
.rq-next-info { border-left: 3px solid var(--rq-brand); padding: 12px 16px; background: var(--rq-soft); border-radius: 0 var(--rq-radius) var(--rq-radius) 0; }
.rq-next-info p { margin: 4px 0 0; color: var(--rq-text); font-size: 0.95rem; }
.rq-nav { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.rq-nav .btn:only-child { margin-left: auto; }
.rq-submit { min-width: 260px; }
.rq-error { color: var(--rq-err); font-weight: 600; margin: 12px 0 0; }
.rq-error-inline { color: var(--rq-err); font-weight: 600; }
.rq-muted { color: var(--rq-muted); }

.rq-summary { position: sticky; top: 96px; background: var(--rq-card); border: 1px solid var(--rq-line); border-radius: calc(var(--rq-radius) + 4px); box-shadow: var(--rq-shadow); padding: 24px; }
.rq-summary p { margin: 0; }
.rq-sum-title { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--rq-muted); margin-bottom: 8px !important; }
.rq-sum-empty p:last-child { color: var(--rq-muted); }
.rq-sum-route { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; font-size: 1.2rem; color: var(--rq-ink); }
.rq-sum-route span { color: var(--rq-brand-text); font-weight: 700; }
.rq-sum-meta { color: var(--rq-muted); font-size: 0.92rem; margin-top: 4px !important; }
.rq-lines { width: 100%; border-collapse: collapse; margin: 16px 0 10px; font-size: 0.9rem; }
.rq-lines td { padding: 6px 0; border-bottom: 1px dashed var(--rq-line); vertical-align: top; color: var(--rq-text); }
.rq-lines td:last-child { text-align: right; white-space: nowrap; padding-left: 12px; font-variant-numeric: tabular-nums; }
.rq-lines .rq-sub td { color: var(--rq-muted); }
.rq-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; border-top: 2px solid var(--rq-ink); padding-top: 12px; margin-top: 4px !important; }
.rq-total span { font-weight: 600; color: var(--rq-ink); }
.rq-total strong { font-size: 1.9rem; color: var(--rq-ink); font-variant-numeric: tabular-nums; line-height: 1.1; }
.rq-notes { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 6px; font-size: 0.84rem; color: var(--rq-muted); }
.rq-notes li { padding-left: 16px; position: relative; }
.rq-notes li::before { content: ''; position: absolute; left: 0; top: 0.6em; width: 8px; height: 2px; background: var(--rq-brand); }

.rq-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: none; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #0E1726; color: #fff; box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.2); }
.rq-bar div { display: grid; }
.rq-bar span { font-size: 0.8rem; color: #C9D2DF; }
.rq-bar strong { font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.rq-bar .btn { color: #fff; border-color: rgba(255, 255, 255, 0.5); background: transparent; }

.rq-done { text-align: center; padding: 20px 0; }
.rq-done:focus { outline: none; }
.rq-done-mark, .rq-status-mark { width: 64px; height: 64px; border-radius: 50%; background: #1B7F4B; color: #fff; display: grid; place-items: center; font-size: 2rem; margin: 0 auto 14px; flex-shrink: 0; }
.rq-done-ref { font-size: 1.1rem; }
.rq-done p { max-width: 560px; margin: 10px auto; }
.rq-source { font-size: 0.8rem; color: var(--rq-muted); margin-top: 26px; }
.rq-source a { color: inherit; }

/* Kurzrechner auf der Startseite */
.rq-mini { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 12px; align-items: center; margin: 14px 0 12px; }
.rq-mini label { font-weight: 600; color: var(--ink, #0E1726); font-size: 0.92rem; }
.rq-mini input { width: 100%; font: inherit; color: var(--ink, #0E1726); background: var(--card, #fff); border: 1px solid #C9D1DC; border-radius: var(--radius, 6px); padding: 11px 13px; min-height: 46px; }
.rq-mini input:focus { outline: none; border-color: var(--ink, #0E1726); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand, #F2B705) 45%, transparent); }
.rq-mini input.is-valid { border-color: #1B7F4B; }
.rq-mini + .rq-mini-result, .rq-mini-result { min-height: 58px; display: grid; gap: 2px; margin-bottom: 12px; }
.rq-mini-result strong { font-size: 1.8rem; color: var(--ink, #0E1726); font-variant-numeric: tabular-nums; line-height: 1.1; }
.rq-mini-km { font-size: 0.9rem; color: var(--text, #26324A); font-weight: 600; }
.rq-mini-go { width: 100%; }
#quoteWidget .rq-suggest, .rq-mini .rq-suggest { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px); list-style: none; margin: 0; padding: 4px; background: var(--card, #fff); border: 1px solid var(--line, #DDE2EA); border-radius: var(--radius, 6px); box-shadow: 0 16px 40px rgba(14, 23, 38, 0.16); max-height: 240px; overflow-y: auto; text-align: left; }
#quoteWidget .rq-suggest li { padding: 9px 11px; border-radius: 4px; cursor: pointer; color: var(--text, #26324A); }
#quoteWidget .rq-suggest li[aria-selected=true], #quoteWidget .rq-suggest li:hover { background: var(--soft, #F3F5F8); }
#quoteWidget .rq-combo { position: relative; }
#quoteWidget .rq-muted { color: var(--muted, #5B6678); font-size: 0.86rem; }
#quoteWidget .rq-error-inline { color: #B42318; font-weight: 600; font-size: 0.92rem; }

/* Kundenseite */
.rq-status { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 22px; }
.rq-status h1 { margin: 0 0 6px; }
.rq-status p { margin: 0; color: var(--rq-text); }
.rq-status-mark { margin: 0; }
.rq-status-neu .rq-status-mark, .rq-status-angebot .rq-status-mark { background: var(--brand, #0E518D); }
.rq-status-abgelehnt .rq-status-mark, .rq-status-storniert .rq-status-mark { background: #5A677A; }
.rq-offer { border: 2px solid var(--rq-ink); border-radius: calc(var(--rq-radius) + 4px); padding: 20px; margin-bottom: 20px; display: grid; gap: 10px; }
.rq-offer p { margin: 0; }
.rq-status-page { max-width: 760px; padding-top: 48px; padding-bottom: 60px; }
.rq-status-page .rq-review { margin: 18px 0; }

@media (max-width: 1000px) {
    .rq-grid { grid-template-columns: minmax(0, 1fr); }
    .rq-summary { position: static; }
    .rq-bar:not([hidden]) { display: flex; }
    .rq { padding-bottom: 90px; }
    .rq-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .rq-head { padding-top: 32px; }
    .rq-form { padding: 20px 16px; }
    .rq-summary { padding: 20px 16px; }
    .rq-row { grid-template-columns: minmax(0, 1fr); }
    .rq-route { grid-template-columns: minmax(0, 1fr); }
    .rq-swap { justify-self: center; transform: rotate(90deg); width: 44px; height: 44px; }
    .rq-progress li { font-size: 0.82rem; padding-right: 10px; }
    .rq-review { grid-template-columns: minmax(0, 1fr); gap: 2px; }
    .rq-review dd { margin-bottom: 8px; }
    .rq-nav .btn { flex: 1 1 100%; }
    .rq-submit { min-width: 0; }
    .rq-extra { grid-template-columns: 24px minmax(0, 1fr); }
    .rq-extra em { grid-column: 2; }
    .rq-status { flex-direction: column; }
}
@media (max-width: 380px) {
    .rq-tiles { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-color-scheme: dark) {
    .rq { --rq-ok: #3FB27F; --rq-err: #FF8A80; }
    .rq input:not([type=radio]):not([type=checkbox]), .rq select, .rq textarea, .rq-stepper button, .rq-mini input { border-color: #3A4658; }
    .rq-progress li.is-active span { color: var(--rq-card); background: var(--rq-ink); }
    .rq-extra:has(input:checked)::before { background-color: var(--rq-brand); border-color: var(--rq-brand); }
}
