/* ==========================================================================
   ProTECH Konfigurator
   ========================================================================== */
body.cfg-page { background: var(--mist); }
.cfg-page .footer { display: none; }

.cfg {
  display: grid; grid-template-columns: minmax(0, 1fr) 500px;
  height: calc(100vh - var(--header-h)); height: calc(100svh - var(--header-h));
}

/* ---------- Bühne ---------- */
.stage {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 520px at 50% 58%, #ffffff 0%, rgba(255,255,255,0) 70%),
    linear-gradient(180deg, #e9eef4 0%, #f3f5f8 100%);
}
.stage::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(0,106,181,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(0,106,181,.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(700px 420px at 50% 62%, #000, transparent 80%);
  -webkit-mask-image: radial-gradient(700px 420px at 50% 62%, #000, transparent 80%);
}
.stage-canvas { position: absolute; inset: 0; }
.stage-canvas canvas { width: 100% !important; height: 100% !important; cursor: grab; }
.stage-canvas canvas:active { cursor: grabbing; }

.stage-top { position: absolute; left: 24px; right: 24px; top: 22px; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; pointer-events: none; z-index: 3; }
.stage-top > * { pointer-events: auto; }
.model-card { background: rgba(255,255,255,.88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid #fff; border-radius: 18px; padding: 16px 20px; box-shadow: var(--shadow); min-width: 260px; }
.model-card .k { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
.model-card .name { font-family: var(--font-display); font-stretch: 112%; font-weight: 800; font-size: 26px; letter-spacing: -.02em; line-height: 1.1; margin-top: 4px; transition: color .3s; }
.model-card .sub { font-family: var(--font-mono); font-size: 13px; color: var(--ink-3); margin-top: 4px; }
.model-card.custom .name { color: var(--blue); }

.fit-badge { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: rgba(31,157,85,.1); color: var(--ok); }
.fit-badge i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.fit-badge.warn { background: rgba(224,134,26,.12); color: var(--warn); }
.fit-badge.err { background: rgba(214,69,69,.1); color: var(--err); }

.stage-actions { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.icon-btn { height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid #fff; background: rgba(255,255,255,.88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: var(--shadow-s); display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; transition: background .2s, transform .3s var(--ease); }
.icon-btn:hover { background: #fff; transform: translateY(-1px); }
.icon-btn svg { width: 18px; }
.icon-btn[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

.stage-bottom { position: absolute; left: 24px; right: 24px; bottom: 22px; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; z-index: 3; pointer-events: none; }
.stage-bottom > * { pointer-events: auto; }
.turn-ctrl { display: flex; align-items: center; gap: 14px; background: var(--ink); color: #fff; border-radius: 999px; padding: 6px 18px 6px 6px; box-shadow: var(--shadow-l); }
.turn-ctrl button { width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--yellow); color: var(--ink); display: grid; place-items: center; transition: transform .3s var(--ease); }
.turn-ctrl button:hover { transform: scale(1.06); }
.turn-ctrl button svg { width: 20px; }
.turn-ctrl .ang { font-family: var(--font-mono); font-size: 13px; color: #a9b7cb; line-height: 1.2; }
.turn-ctrl .ang b { display: block; color: #fff; font-size: 20px; font-weight: 600; }
.turn-ctrl .gauge { width: 120px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.15); overflow: hidden; }
.turn-ctrl .gauge i { display: block; height: 100%; width: 0; background: var(--yellow); }
.legend { display: flex; gap: 14px; font-size: 12.5px; color: var(--ink-3); background: rgba(255,255,255,.75); padding: 8px 14px; border-radius: 999px; backdrop-filter: blur(8px); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; }

.dim { position: absolute; z-index: 2; transform: translate(-50%, -50%); pointer-events: none; font-family: var(--font-mono); font-size: 12px; font-weight: 600; background: var(--ink); color: #fff; padding: 4px 8px; border-radius: 6px; white-space: nowrap; transition: opacity .3s; box-shadow: 0 4px 12px rgba(0,0,0,.18); }
.dim small { color: var(--yellow); margin-right: 6px; }
.dim.hide { opacity: 0; }

/* ---------- Panel ---------- */
.panel { background: #fff; border-left: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.progress { display: flex; gap: 6px; padding: 18px 28px 0; }
.progress button { flex: 1; border: 0; background: transparent; padding: 0 0 12px; text-align: left; font-size: 12px; font-weight: 600; color: var(--ink-3); position: relative; }
.progress button::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; border-radius: 4px; background: var(--line); transition: background .3s; }
.progress button.done::after { background: var(--blue); }
.progress button.on { color: var(--ink); }
.progress button.on::after { background: var(--yellow); }
.progress button span { font-family: var(--font-mono); display: block; font-size: 11px; color: var(--ink-3); font-weight: 500; }

.panel-body { flex: 1; overflow-y: auto; padding: 26px 28px 30px; scroll-behavior: smooth; }
.step { display: none; animation: stepIn .5s var(--ease); }
.step.on { display: block; }
@keyframes stepIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.step h2 { font-family: var(--font-display); font-stretch: 112%; font-size: 30px; letter-spacing: -.02em; line-height: 1.1; margin: 0 0 8px; font-weight: 800; }
.step > p.intro { margin: 0 0 24px; color: var(--ink-2); font-size: 15.5px; }
.group { margin-top: 26px; }
.group > label, .group > .glabel { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.group > label small, .group > .glabel small { font-weight: 500; color: var(--ink-3); font-size: 12.5px; }

/* Kacheln */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile { position: relative; text-align: left; border: 1.5px solid var(--line); border-radius: 16px; background: #fff; padding: 16px; display: flex; flex-direction: column; gap: 12px; transition: border-color .2s, box-shadow .3s, transform .3s var(--ease); }
.tile:hover { border-color: var(--line-2); transform: translateY(-2px); box-shadow: var(--shadow-s); }
.tile.on { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0,106,181,.12); }
.tile .ti { width: 46px; height: 46px; border-radius: 12px; background: var(--mist); display: grid; place-items: center; color: var(--blue); transition: background .2s, color .2s; }
.tile.on .ti { background: var(--blue); color: #fff; }
.tile .ti svg { width: 26px; }
.tile b { font-size: 15px; line-height: 1.25; }
.tile span { font-size: 12.5px; color: var(--ink-3); line-height: 1.35; }
.tile .check { position: absolute; right: 12px; top: 12px; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; transition: all .2s; }
.tile.on .check { background: var(--blue); border-color: var(--blue); }
.tile .check svg { width: 12px; color: #fff; opacity: 0; }
.tile.on .check svg { opacity: 1; }
.tile .rec { position: absolute; right: 12px; top: 12px; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: var(--yellow); color: var(--ink); padding: 3px 8px; border-radius: 999px; }
.tile.wide { grid-column: span 2; flex-direction: row; align-items: center; }
.tile.drive { padding: 0; overflow: hidden; }
.tile.drive .dimg { aspect-ratio: 16/10; background: #fff; display: grid; place-items: center; border-bottom: 1px solid var(--line); }
.tile.drive .dimg img { height: 100%; object-fit: contain; padding: 8px; }
.tile.drive .dtxt { padding: 14px 16px 16px; display: grid; gap: 4px; }
.tile.drive .price { font-family: var(--font-mono); font-size: 12.5px; color: var(--blue); margin-top: 6px; }

/* Gewicht */
.weight-box { background: var(--mist); border-radius: 18px; padding: 18px 20px 22px; }
.weight-box .wrow { display: flex; align-items: baseline; gap: 8px; margin-bottom: 14px; }
.weight-box input[type=number] { width: 100%; border: 0; background: transparent; font-family: var(--font-display); font-stretch: 112%; font-weight: 800; font-size: 46px; letter-spacing: -.03em; line-height: 1; padding: 0; outline: none; -moz-appearance: textfield; }
.weight-box input::-webkit-outer-spin-button, .weight-box input::-webkit-inner-spin-button { -webkit-appearance: none; }
.weight-box .unit { font-size: 22px; font-weight: 700; color: var(--ink-3); }
.weight-box .ticks { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); margin-top: 10px; }

/* Maßfelder */
.dims { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.field { position: relative; }
.field input, .field select, .field textarea { width: 100%; height: 56px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; padding: 22px 14px 6px; font-size: 16px; font-weight: 500; outline: none; transition: border-color .2s, box-shadow .2s; -moz-appearance: textfield; }
.field textarea { height: 110px; resize: vertical; padding-top: 26px; line-height: 1.45; }
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none'%3E%3Cpath d='M3 4.5l3 3 3-3' stroke='%236b7789' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 34px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0,106,181,.1); }
.field label { position: absolute; left: 15px; top: 8px; font-size: 11.5px; font-weight: 600; color: var(--ink-3); letter-spacing: .01em; pointer-events: none; }
.field .u { position: absolute; right: 12px; bottom: 10px; font-size: 12.5px; color: var(--ink-3); font-family: var(--font-mono); pointer-events: none; }
.field input::-webkit-outer-spin-button, .field input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.field.invalid input { border-color: var(--err); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form-grid .full { grid-column: span 2; }

/* Auslastung */
.fit { border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; display: grid; gap: 12px; }
.fit-row { display: grid; grid-template-columns: 92px 1fr 64px; align-items: center; gap: 12px; font-size: 13px; }
.fit-row span:first-child { color: var(--ink-2); font-weight: 500; }
.fit-row .bar { height: 8px; border-radius: 8px; background: var(--mist-2); overflow: hidden; position: relative; }
.fit-row .bar i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--ok); border-radius: 8px; transition: width .5s var(--ease), background .3s; }
.fit-row .bar i.warn { background: var(--warn); }
.fit-row .bar i.err { background: var(--err); }
.fit-row b { font-family: var(--font-mono); font-size: 12.5px; text-align: right; font-weight: 600; }

/* Varianten-Chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-v { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 12px; font-size: 13px; font-weight: 600; font-family: var(--font-mono); transition: all .2s; }
.chip-v:hover:not(:disabled) { border-color: var(--ink); }
.chip-v.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip-v.rec { box-shadow: inset 0 0 0 1.5px var(--yellow); }
.chip-v.on.rec { box-shadow: none; }
.chip-v:disabled { opacity: .35; cursor: not-allowed; text-decoration: line-through; }

/* Segmented */
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--mist); border-radius: 14px; padding: 4px; gap: 4px; }
.seg button { border: 0; background: transparent; border-radius: 10px; padding: 10px 8px; font-size: 13px; font-weight: 600; color: var(--ink-2); line-height: 1.25; transition: background .2s, color .2s, box-shadow .2s; }
.seg button small { display: block; font-weight: 500; font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }
.seg button.on { background: #fff; color: var(--ink); box-shadow: var(--shadow-s); }

/* Toggle */
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.toggle-row:last-child { border-bottom: 1px solid var(--line); }
.toggle-row b { font-size: 14.5px; display: block; }
.toggle-row span { font-size: 12.5px; color: var(--ink-3); }
.switch { position: relative; width: 48px; height: 28px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch i { position: absolute; inset: 0; border-radius: 999px; background: var(--line-2); transition: background .25s; cursor: pointer; }
.switch i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .3s var(--ease); }
.switch input:checked + i { background: var(--blue); }
.switch input:checked + i::after { transform: translateX(20px); }
.switch input:disabled + i { opacity: .4; cursor: not-allowed; }

/* Zubehör */
.opts { display: grid; gap: 10px; }
.opt { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: center; border: 1.5px solid var(--line); border-radius: 14px; padding: 10px 14px 10px 10px; cursor: pointer; transition: border-color .2s, box-shadow .2s, opacity .2s; position: relative; }
.opt:hover { border-color: var(--line-2); }
.opt.on { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,106,181,.1); }
.opt.disabled { opacity: .45; cursor: not-allowed; }
.opt .oimg { width: 72px; height: 56px; border-radius: 10px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; }
.opt .oimg img { max-width: 100%; max-height: 100%; object-fit: contain; }
.opt b { font-size: 14.5px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.opt b em { font-style: normal; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: var(--yellow); padding: 2px 7px; border-radius: 999px; }
.opt span { font-size: 12.5px; color: var(--ink-3); line-height: 1.35; display: block; margin-top: 2px; }
.opt .op { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-2); text-align: right; white-space: nowrap; }
.opt .op .box { margin: 6px 0 0 auto; width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid var(--line-2); display: grid; place-items: center; transition: all .2s; }
.opt.on .op .box { background: var(--blue); border-color: var(--blue); }
.opt .op .box svg { width: 12px; color: #fff; opacity: 0; }
.opt.on .op .box svg { opacity: 1; }

/* Farben */
.swatch-set { display: flex; flex-wrap: wrap; gap: 8px; }
.sw { width: 38px; height: 38px; border-radius: 50%; border: 0; position: relative; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); transition: transform .25s var(--ease); }
.sw:hover { transform: scale(1.1); }
.sw.on::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--ink); }
.sw-name { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-3); margin-top: 10px; }

/* Zusammenfassung */
.summary { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.summary .srow { display: flex; justify-content: space-between; gap: 16px; padding: 11px 16px; font-size: 14px; border-bottom: 1px solid var(--line); }
.summary .srow:last-child { border-bottom: 0; }
.summary .srow span { color: var(--ink-3); }
.summary .srow b { font-weight: 600; text-align: right; }

.drop { border: 1.5px dashed var(--line-2); border-radius: 14px; padding: 18px; text-align: center; font-size: 14px; color: var(--ink-3); transition: border-color .2s, background .2s; cursor: pointer; }
.drop:hover, .drop.over { border-color: var(--blue); background: rgba(0,106,181,.04); color: var(--ink-2); }
.drop svg { width: 26px; margin: 0 auto 6px; color: var(--blue); }
.drop b { color: var(--blue); }
.files { display: grid; gap: 6px; margin-top: 10px; }
.files div { display: flex; justify-content: space-between; font-size: 13px; background: var(--mist); padding: 8px 12px; border-radius: 10px; font-family: var(--font-mono); }
.consent-row { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--ink-3); margin-top: 16px; }
.consent-row input { margin-top: 3px; accent-color: var(--blue); width: 16px; height: 16px; }

/* Panel-Fuß */
.panel-foot { border-top: 1px solid var(--line); padding: 16px 28px 18px; background: #fff; display: grid; gap: 14px; box-shadow: 0 -12px 30px -18px rgba(7,26,51,.18); }
.price-line { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.price-line .pl-k { font-size: 12.5px; color: var(--ink-3); display: flex; gap: 8px; align-items: center; }
.price-line .pl-v { font-family: var(--font-display); font-stretch: 112%; font-weight: 800; font-size: 26px; letter-spacing: -.02em; line-height: 1.1; }
.price-line .pl-v small { font-family: var(--font-body); font-size: 12px; color: var(--ink-3); font-weight: 500; margin-left: 4px; letter-spacing: 0; }
.price-line .lead-time { text-align: right; font-size: 12.5px; color: var(--ink-3); }
.price-line .lead-time b { display: block; font-size: 15px; color: var(--ink); font-weight: 600; }
.demo-pill { font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; background: var(--mist-2); color: var(--ink-3); padding: 2px 7px; border-radius: 6px; cursor: help; }
.foot-btns { display: grid; grid-template-columns: auto 1fr; gap: 10px; }
.foot-btns .btn { justify-content: center; height: 52px; }
.foot-btns .back { width: 52px; padding: 0; }

/* Erfolg & Angebot */
.overlay { position: fixed; inset: 0; z-index: 120; background: rgba(7,26,51,.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); display: none; align-items: center; justify-content: center; padding: 20px; }
.overlay.open { display: flex; animation: fadeIn .3s; }
@keyframes fadeIn { from { opacity: 0; } }
.success { background: #fff; border-radius: 26px; max-width: 560px; width: 100%; padding: 40px; box-shadow: var(--shadow-l); animation: pop .5s var(--ease); max-height: calc(100vh - 40px); overflow-y: auto; }
@keyframes pop { from { transform: translateY(20px) scale(.97); opacity: 0; } }
.check-anim { width: 76px; height: 76px; border-radius: 50%; background: rgba(31,157,85,.12); display: grid; place-items: center; margin-bottom: 22px; }
.check-anim svg { width: 40px; }
.check-anim path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .6s .2s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.success h3 { font-family: var(--font-display); font-stretch: 112%; font-size: 30px; margin: 0 0 8px; letter-spacing: -.02em; line-height: 1.1; }
.success .ticket { font-family: var(--font-mono); font-size: 13px; color: var(--ink-3); }
.flow { margin: 26px 0; display: grid; gap: 0; }
.flow > div { display: grid; grid-template-columns: 30px 1fr auto; gap: 12px; align-items: start; padding-bottom: 18px; position: relative; font-size: 14.5px; }
.flow > div::before { content: ""; position: absolute; left: 14px; top: 26px; bottom: 0; width: 2px; background: var(--line); }
.flow > div:last-child::before { display: none; }
.flow i { width: 30px; height: 30px; border-radius: 50%; background: var(--mist); display: grid; place-items: center; font-style: normal; font-size: 13px; font-weight: 700; color: var(--ink-3); position: relative; z-index: 1; }
.flow .done i { background: var(--ok); color: #fff; }
.flow .now i { background: var(--yellow); color: var(--ink); animation: pulse-y 1.6s infinite; }
.flow b { display: block; font-size: 14.5px; }
.flow span { color: var(--ink-3); font-size: 13px; }
.flow time { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); padding-top: 4px; }
.success .btns { display: flex; gap: 10px; flex-wrap: wrap; }

/* Angebots-Vorschau (A4) */
.offer-wrap { max-width: 860px; width: 100%; max-height: calc(100vh - 40px); overflow-y: auto; border-radius: 10px; box-shadow: var(--shadow-l); animation: pop .5s var(--ease); position: relative; }
.offer-tools { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; background: var(--ink); color: #fff; padding: 10px 14px 10px 20px; font-size: 13.5px; }
.offer-tools div { display: flex; gap: 8px; }
.offer-tools button { height: 36px; border-radius: 999px; border: 0; padding: 0 14px; font-weight: 600; font-size: 13px; background: rgba(255,255,255,.12); color: #fff; }
.offer-tools button.y { background: var(--yellow); color: var(--ink); }
.offer { background: #fff; padding: 56px 64px; font-size: 13.5px; line-height: 1.55; color: #222; }
.offer header { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 3px solid var(--blue); padding-bottom: 22px; }
.offer header img { height: 52px; }
.offer header .addr { text-align: right; font-size: 11.5px; color: #666; line-height: 1.5; }
.offer .meta { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin: 30px 0; }
.offer .meta .to { font-size: 13px; }
.offer .meta dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; margin: 0; font-size: 12.5px; justify-self: end; }
.offer .meta dt { color: #777; }
.offer .meta dd { margin: 0; font-weight: 600; }
.offer h2 { font-family: var(--font-display); font-stretch: 112%; font-size: 26px; margin: 0 0 6px; letter-spacing: -.01em; color: var(--ink); }
.offer .offer-hero { display: grid; grid-template-columns: 1fr 260px; gap: 26px; align-items: center; margin: 18px 0 26px; }
.offer .offer-hero img { width: 100%; border-radius: 8px; background: #f3f5f8; }
.offer table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.offer th { text-align: left; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #777; border-bottom: 1.5px solid #222; padding: 8px 6px; font-weight: 600; }
.offer td { border-bottom: 1px solid #e5e5e5; padding: 9px 6px; vertical-align: top; }
.offer td.r, .offer th.r { text-align: right; white-space: nowrap; }
.offer .total td { border-bottom: 0; border-top: 2px solid #222; font-weight: 700; font-size: 15px; padding-top: 12px; }
.offer .note { background: #f3f6fa; border-left: 3px solid var(--blue); padding: 12px 16px; font-size: 12.5px; color: #444; margin-top: 20px; }
.offer .sig { display: flex; justify-content: space-between; margin-top: 36px; font-size: 12.5px; color: #555; }
.offer footer { margin-top: 40px; padding-top: 14px; border-top: 1px solid #ddd; font-size: 10.5px; color: #888; display: flex; justify-content: space-between; gap: 20px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .cfg { grid-template-columns: minmax(0, 1fr) 440px; }
}
@media (max-width: 900px) {
  .cfg { grid-template-columns: 1fr; height: auto; }
  .stage { position: sticky; top: var(--header-h); height: 44vh; min-height: 300px; z-index: 5; border-bottom: 1px solid var(--line); }
  .panel { border-left: 0; }
  .panel-body { overflow: visible; padding: 22px var(--gutter) 30px; }
  .progress { padding: 14px var(--gutter) 0; position: sticky; top: calc(var(--header-h) + 44vh); background: #fff; z-index: 4; }
  .progress button { font-size: 0; padding-bottom: 8px; }
  .progress button span { font-size: 11px; }
  .panel-foot { position: sticky; bottom: 0; padding: 12px var(--gutter) 14px; z-index: 6; }
  .model-card { min-width: 0; padding: 10px 14px; }
  .model-card .name { font-size: 18px; }
  .model-card .sub, .fit-badge { font-size: 11.5px; }
  .fit-badge { margin-top: 6px; padding: 4px 9px; }
  .stage-top { left: 12px; right: 12px; top: 12px; }
  .stage-bottom { left: 12px; right: 12px; bottom: 12px; }
  .legend { display: none; }
  .icon-btn { height: 38px; padding: 0 12px; font-size: 12.5px; }
  .icon-btn span { display: none; }
  .turn-ctrl { padding: 4px 14px 4px 4px; }
  .turn-ctrl button { width: 40px; height: 40px; }
  .turn-ctrl .gauge { display: none; }
  .offer { padding: 28px 22px; }
  .offer .meta, .offer .offer-hero { grid-template-columns: 1fr; }
  .offer .meta dl { justify-self: start; }
}
@media (max-width: 480px) {
  .dims { grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
  .field input { padding-inline: 10px; font-size: 15px; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: span 1; }
  .fit-row { grid-template-columns: 76px 1fr 54px; }
  .success { padding: 28px 22px; }
}

/* ---------- Druck: nur das Angebot ---------- */
@media print {
  body.printing > *:not(#offerOverlay) { display: none !important; }
  body.printing #offerOverlay { position: static; display: block; background: none; backdrop-filter: none; padding: 0; }
  body.printing .offer-wrap { max-height: none; overflow: visible; box-shadow: none; border-radius: 0; }
  body.printing .offer-tools { display: none; }
  body.printing .offer { padding: 0; }
  @page { size: A4; margin: 16mm; }
}

/* ---------- Mobile: mehr Platz für Eingaben ---------- */
@media (max-width: 900px) {
  .stage { height: 36vh; min-height: 250px; }
  .progress { top: calc(var(--header-h) + 36vh); }
  .model-card { padding: 8px 12px; border-radius: 14px; }
  .model-card .k, .model-card .sub { display: none; }
  .model-card .name { font-size: 16px; margin: 0; }
  .turn-ctrl .ang span { display: none; }
  .turn-ctrl .ang b { font-size: 16px; }
  .panel-foot { grid-template-columns: 1fr auto; align-items: center; gap: 12px; }
  .price-line .lead-time, .foot-btns .back, .pl-k .demo-pill { display: none; }
  .price-line .pl-v { font-size: 19px; }
  .foot-btns { grid-template-columns: 1fr; }
  .foot-btns .btn { height: 48px; padding: 0 18px; font-size: 14.5px; }
  .dim { font-size: 10.5px; padding: 3px 6px; }
}
