@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url('../fonts/archivo-latin-standard-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url('../fonts/archivo-latin-ext-standard-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2');
}

:root {
  --paper: #f1efea;
  --panel: #fbfaf7;
  --ink: #17191a;
  --ink-2: #464b4f;
  --ink-3: #6d7276;
  --line: #dcd8d0;
  --line-2: #c7c2b8;
  --accent: #f2b000;      /* Signalgelb */
  --accent-ink: #17191a;
  --accent-soft: #fbefc9;
  --steel: #2b2f32;
  --ok: #2c6a3f;
  --err: #b0261c;
  --focus: #0a5bd6;
  --stage-top: #c3cbcf;
  --stage-bottom: #dedcd5;
  --radius: 4px;
  --header-h: 64px;
  --foot-h: 44px;
  --panel-w: 432px;
  --sans: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
svg { display: block; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--ink-3); font-weight: 400; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--ink); color: #fff; padding: 10px 14px; border-radius: var(--radius); text-decoration: none;
}
.skip:focus { top: 10px; }

/* ---------- Kopfzeile ---------- */
.top {
  height: var(--header-h);
  display: flex; align-items: center; gap: 28px;
  padding: 0 24px;
  background: var(--ink);
  color: #f3f1ec;
  position: relative; z-index: 5;
}
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; flex: none; }
.brand-mark { width: 40px; height: 26px; fill: none; stroke: var(--accent); stroke-width: 3; stroke-linejoin: round; stroke-linecap: square; }
.brand-name { font-weight: 800; font-stretch: 112%; font-size: 21px; letter-spacing: 0.06em; text-transform: uppercase; }
.brand-sub {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: #a7abad; padding-left: 10px; border-left: 1px solid #3b3f42;
}
.top-title { margin: 0; font-size: 14px; color: #cfd1d0; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-kicker { color: var(--accent); font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; margin-right: 10px; }
.top-actions { display: flex; gap: 8px; }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 14px;
  border: 1px solid #44494c; border-radius: var(--radius);
  background: transparent; color: #f3f1ec; font-size: 13.5px; font-weight: 500;
  transition: background .15s, border-color .15s;
}
.btn-ghost:hover { background: #26292b; border-color: #5c6164; }
.btn-ghost svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.btn-ghost.dark { color: var(--ink); border-color: var(--line-2); background: transparent; }
.btn-ghost.dark:hover { background: #ece9e2; border-color: var(--ink-3); }

/* ---------- Layout ---------- */
.app {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--panel-w);
  height: calc(100vh - var(--header-h) - var(--foot-h));
  height: calc(100dvh - var(--header-h) - var(--foot-h));
  min-height: 560px;
}

/* ---------- 3D-Bühne ---------- */
.stage {
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 70% at 30% 0%, rgba(255,255,255,.35), transparent 60%),
    linear-gradient(180deg, var(--stage-top) 0%, #d3d6d4 45%, var(--stage-bottom) 70%);
}
.viewport { position: absolute; inset: 0; cursor: grab; touch-action: none; }
.viewport.is-dragging { cursor: grabbing; }
.viewport canvas { width: 100% !important; height: 100% !important; display: block; }
.hud { position: absolute; z-index: 2; margin: 0; }
.hud-top {
  left: 24px; top: 22px;
  pointer-events: none;
}
.eyebrow { margin: 0 0 4px; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.hud-dims { margin: 0; font-weight: 750; font-stretch: 88%; font-size: clamp(26px, 3vw, 40px); line-height: 1.05; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.hud-sub { margin: 6px 0 0; font-size: 14px; color: var(--ink-2); }
.hud-bottom { left: 20px; right: 20px; bottom: 20px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; pointer-events: none; }
.hud-bottom > * { pointer-events: auto; }
.hud-hint {
  right: 22px; top: 24px; font-family: var(--mono); font-size: 11px; letter-spacing: .04em; color: var(--ink-2);
  background: rgba(251,250,247,.6); padding: 6px 10px; border-radius: var(--radius); backdrop-filter: blur(6px);
}

.seg { display: inline-flex; border-radius: var(--radius); }
.seg-dark { background: rgba(23,25,26,.86); backdrop-filter: blur(8px); padding: 3px; gap: 2px; box-shadow: 0 6px 20px rgba(0,0,0,.12); }
.seg-dark button {
  min-width: 40px; height: 36px; padding: 0 12px;
  border: 0; border-radius: 3px; background: transparent; color: #d9dbda;
  font-size: 13px; font-weight: 600; display: grid; place-items: center;
}
.seg-dark button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.seg-dark button:hover { color: #fff; background: rgba(255,255,255,.08); }
.seg-dark button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.seg-dark button:not(.txt):has(svg) { padding: 0 9px; }

.stage-loader {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px;
  font-family: var(--mono); font-size: 12px; color: var(--ink-2); z-index: 3;
  background: inherit; transition: opacity .4s;
}
.stage-loader span { width: 120px; height: 2px; background: var(--line-2); position: relative; overflow: hidden; }
.stage-loader span::after { content: ""; position: absolute; inset: 0; width: 40%; background: var(--ink); animation: load 1s infinite ease-in-out; }
@keyframes load { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
.stage-loader.done { opacity: 0; pointer-events: none; }
.stage-fallback { position: absolute; inset: 0; display: grid; place-items: center; padding: 32px; z-index: 3; }
.stage-fallback p { max-width: 380px; background: var(--panel); padding: 20px; border-radius: var(--radius); border: 1px solid var(--line); }

/* ---------- Panel ---------- */
.panel {
  background: var(--panel);
  border-left: 1px solid var(--line);
  display: flex; flex-direction: column; min-height: 0;
}
.steps {
  display: grid; grid-template-columns: repeat(6, 1fr);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  flex: none;
}
.steps button {
  position: relative;
  border: 0; background: transparent;
  padding: 12px 2px 11px; text-align: center;
  display: grid; gap: 1px; justify-items: center;
  color: var(--ink-3);
  border-right: 1px solid var(--line);
}
.steps button:last-child { border-right: 0; }
.steps .n { font-family: var(--mono); font-size: 11px; }
.steps .t { font-size: 12.5px; font-weight: 600; font-stretch: 92%; }
.steps button[aria-selected="true"] { color: var(--ink); background: var(--panel); }
.steps button[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--accent); }
.steps button.done .n::after { content: " ✓"; color: var(--ok); }
.steps button:hover { color: var(--ink); }

.step-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; min-height: 0; scrollbar-width: thin; }
.step { padding: 26px 28px 32px; }
.step-head { margin-bottom: 22px; }
.step-no { margin: 0 0 6px; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.step h2, .success h2 { margin: 0; font-size: 30px; line-height: 1.05; font-weight: 750; font-stretch: 86%; letter-spacing: -0.01em; }
.lead { margin: 8px 0 0; color: var(--ink-2); }
.label { margin: 0 0 10px; font-size: 13px; font-weight: 650; letter-spacing: .01em; }
.label .muted { margin-left: 6px; font-size: 12.5px; }
.hint { font-size: 12.5px; color: var(--ink-3); margin: 14px 0 0; }

/* Presets */
.presets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 26px; }
.chip {
  border: 1px solid var(--line-2); background: #fff; border-radius: var(--radius);
  padding: 8px 10px; font-size: 13px; font-weight: 600; color: var(--ink);
  display: grid; gap: 1px; text-align: left; min-width: 0;
}
.chip small { font-family: var(--mono); font-size: 11px; font-weight: 500; color: var(--ink-3); }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip[aria-pressed="true"] small { color: #c6c9ca; }

/* Slider */
.slider { margin-bottom: 22px; }
.slider-top { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
.slider-top label { font-weight: 650; font-size: 14px; }
.slider-val { font-family: var(--mono); font-size: 18px; font-variant-numeric: tabular-nums; }
.slider-val small { font-size: 12px; color: var(--ink-3); margin-left: 2px; }
.slider-row { display: flex; align-items: center; gap: 10px; }
.step-btn {
  flex: none; width: 34px; height: 34px; border: 1px solid var(--line-2); border-radius: var(--radius);
  background: #fff; display: grid; place-items: center; font-size: 18px; line-height: 1; color: var(--ink-2);
}
.step-btn:hover { border-color: var(--ink); color: var(--ink); }
input[type=range] {
  -webkit-appearance: none; appearance: none; flex: 1; min-width: 0; height: 34px; background: transparent; margin: 0;
  --p: 50%;
}
input[type=range]::-webkit-slider-runnable-track {
  height: 4px; border-radius: 2px;
  background: linear-gradient(90deg, var(--ink) var(--p), var(--line) var(--p));
}
input[type=range]::-moz-range-track { height: 4px; border-radius: 2px; background: var(--line); }
input[type=range]::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--ink); }
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 22px; height: 22px; margin-top: -9px; border-radius: 50%;
  background: var(--accent); border: 3px solid var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
input[type=range]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--accent); border: 3px solid var(--ink); }
input[type=range]:focus-visible { outline: none; }
input[type=range]:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--focus); outline-offset: 2px; }
.slider-scale { display: flex; justify-content: space-between; padding: 0 44px; font-family: var(--mono); font-size: 11px; color: var(--ink-3); }

/* Kennzahlen */
.facts {
  display: grid; grid-template-columns: repeat(3, 1fr); margin: 8px 0 0;
  border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line);
}
.facts div { padding: 12px 0 12px; border-right: 1px solid var(--line); padding-left: 12px; }
.facts div:first-child { padding-left: 0; }
.facts div:last-child { border-right: 0; }
.facts dt { font-size: 11.5px; color: var(--ink-3); font-family: var(--mono); letter-spacing: .03em; text-transform: uppercase; }
.facts dd { margin: 2px 0 0; font-size: 17px; font-weight: 650; font-variant-numeric: tabular-nums; }

/* Auswahlkarten */
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 22px; }
.card { position: relative; display: block; cursor: pointer; }
.card input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.card-in {
  display: block; height: 100%;
  border: 1px solid var(--line-2); border-radius: var(--radius); background: #fff;
  padding: 12px 12px 13px; transition: border-color .15s, box-shadow .15s;
}
.card svg { width: 100%; height: 54px; margin-bottom: 8px; background: var(--paper); border-radius: 2px; padding: 6px 0; }
.card svg * { fill: none; stroke: var(--ink-2); stroke-width: 1.4; stroke-linejoin: round; }
.card svg .b { stroke: var(--ink); stroke-width: 2.4; }
.card svg .t { stroke: var(--ink-3); stroke-width: 1; }
.card svg .f { fill: var(--ink-3); stroke: none; }
.card-name { display: block; font-weight: 700; font-size: 14.5px; }
.card-note { display: block; font-size: 12.5px; color: var(--ink-3); line-height: 1.4; margin-top: 3px; }
.card:hover .card-in { border-color: var(--ink-3); }
.card input:checked + .card-in { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.card input:checked + .card-in svg { background: var(--accent-soft); }
.card input:checked + .card-in .card-name::after { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-left: 8px; vertical-align: 2px; box-shadow: 0 0 0 1.5px var(--ink); }
.card input:focus-visible + .card-in { outline: 2px solid var(--focus); outline-offset: 2px; }

/* Schalter */
.switch { display: flex; align-items: center; gap: 14px; cursor: pointer; padding: 14px 0; border-top: 1px solid var(--line); }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-ui { flex: none; width: 42px; height: 24px; border-radius: 12px; background: var(--line-2); position: relative; transition: background .15s; }
.switch-ui::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch input:checked + .switch-ui { background: var(--ink); }
.switch input:checked + .switch-ui::after { transform: translateX(18px); background: var(--accent); }
.switch input:focus-visible + .switch-ui { outline: 2px solid var(--focus); outline-offset: 2px; }
.switch-txt strong { display: block; font-size: 14px; }
.switch-txt small { color: var(--ink-3); font-size: 12.5px; }

/* Segmente hell */
.field-group { margin-bottom: 22px; }
.field-group.disabled { opacity: .45; }
.seg-light { display: flex; border: 1px solid var(--line-2); border-radius: var(--radius); background: #fff; padding: 3px; gap: 3px; }
.seg-light button {
  flex: 1; height: 38px; border: 0; border-radius: 3px; background: transparent; font-size: 13.5px; font-weight: 600; color: var(--ink-2);
}
.seg-light button:hover { background: var(--paper); color: var(--ink); }
.seg-light button[aria-checked="true"] { background: var(--ink); color: #fff; }
.seg-light button:disabled { cursor: not-allowed; }

/* Farben */
.parts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 22px; }
.part {
  display: grid; grid-template-columns: 26px 1fr; gap: 2px 10px; align-items: center; text-align: left;
  border: 1px solid var(--line-2); border-radius: var(--radius); background: #fff; padding: 9px 10px;
}
.part .dot { grid-row: span 2; width: 26px; height: 26px; border-radius: 2px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); background-size: cover; }
.part b { font-size: 13.5px; }
.part small { font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.part[aria-checked="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 20px; }
.swatches-wood { grid-template-columns: repeat(2, 1fr); }
.sw { border: 0; padding: 0; background: transparent; text-align: left; display: block; min-width: 0; }
.sw-chip { display: block; height: 46px; border-radius: 2px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.14); position: relative; background-size: cover; background-position: center; }
.swatches-wood .sw-chip { height: 54px; }
.sw-code { display: block; font-family: var(--mono); font-size: 11px; margin-top: 5px; color: var(--ink); }
.sw-name { display: block; font-size: 11.5px; color: var(--ink-3); line-height: 1.25; }
.sw[aria-checked="true"] .sw-chip { box-shadow: 0 0 0 2px var(--panel), 0 0 0 4px var(--ink); }
.sw[aria-checked="true"] .sw-chip::after {
  content: ""; position: absolute; right: 6px; top: 6px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 2px var(--ink);
}
.sw:hover .sw-chip { transform: translateY(-1px); }
.btn-link { border: 0; background: none; padding: 0; text-decoration: underline; text-underline-offset: 3px; font-weight: 600; font-size: 13.5px; }

/* Übersicht */
.summary { border-top: 1px solid var(--ink); margin-bottom: 14px; }
.summary dl { margin: 0; }
.summary .grp { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); padding: 14px 0 4px; display: flex; justify-content: space-between; }
.summary .grp button { border: 0; background: none; padding: 0; font: inherit; color: var(--ink-2); text-decoration: underline; text-underline-offset: 2px; text-transform: none; letter-spacing: 0; }
.summary .r { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.summary dt { color: var(--ink-2); }
.summary dd { margin: 0; text-align: right; font-weight: 600; display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.summary dd i { width: 14px; height: 14px; border-radius: 2px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.18); background-size: cover; }
.summary.compact .grp:first-child { padding-top: 10px; }
.no-price { background: var(--accent-soft); border-left: 3px solid var(--accent); padding: 12px 14px; font-size: 13.5px; margin: 18px 0 28px; }

/* Formular */
.form-title { font-size: 18px; margin: 0 0 14px; font-weight: 700; font-stretch: 92%; }
.row.two, .row.plz { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row.plz { grid-template-columns: 110px 1fr; }
.field { margin-bottom: 14px; min-width: 0; }
.field > label, .field legend { display: block; font-size: 13px; font-weight: 650; margin-bottom: 5px; }
input:not([type]), input[type=email], input[type=tel], textarea, .field input:not([type=checkbox]):not([type=radio]) {
  width: 100%; border: 1px solid var(--line-2); border-radius: var(--radius); background: #fff;
  padding: 10px 12px; font-size: 15px; min-height: 44px;
  transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 84px; }
input:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(10,91,214,.18); }
[aria-invalid="true"] { border-color: var(--err) !important; }
.err { margin: 4px 0 0; color: var(--err); font-size: 12.5px; min-height: 0; }
.err:empty { display: none; }
.radios { display: grid; gap: 6px; }
.radio, .check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.radio { border: 1px solid var(--line-2); border-radius: var(--radius); padding: 10px 12px; background: #fff; }
.radio:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.radio input, .check input { margin: 3px 0 0; width: 17px; height: 17px; accent-color: var(--ink); flex: none; }
.check { font-size: 13px; color: var(--ink-2); }
.check a { color: var(--ink); }
.radios.invalid .radio { border-color: var(--err); }

.btn-primary {
  height: 44px; padding: 0 22px; border: 0; border-radius: var(--radius);
  background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 14.5px;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,.14);
  transition: filter .15s;
}
.btn-primary:hover { filter: brightness(1.05) saturate(1.1); }
.btn-wide { width: 100%; margin-top: 6px; }

/* Erfolg */
.success { padding: 0 0 8px; outline: none; }
.config-no { display: flex; flex-direction: column; gap: 2px; background: var(--ink); color: #fff; padding: 16px 18px; border-radius: var(--radius); margin: 18px 0 8px; }
.config-no span { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #b9bdbe; }
.config-no strong { font-family: var(--mono); font-size: 24px; color: var(--accent); letter-spacing: .04em; }
.success-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }

/* Panel-Fuß */
.panel-foot {
  flex: none; display: flex; align-items: center; gap: 14px; justify-content: space-between;
  padding: 12px 20px; border-top: 1px solid var(--line); background: var(--panel);
}
.panel-foot .btn-ghost { height: 44px; }
.progress { margin: 0; display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.progress-bar { width: 70px; height: 3px; background: var(--line); display: block; }
.progress-bar i { display: block; height: 100%; background: var(--ink); width: 16%; transition: width .25s; }
#btnBack[disabled] { visibility: hidden; }

/* Fußzeile */
.foot {
  height: var(--foot-h);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 0 24px; border-top: 1px solid var(--line);
  font-size: 12px; color: var(--ink-3); background: var(--paper);
}
.foot p { margin: 0; }
.foot strong { color: var(--ink-2); }
.foot-note span { margin-left: 8px; padding-left: 8px; border-left: 1px solid var(--line-2); }

.toast {
  position: fixed; left: 50%; bottom: 72px; transform: translate(-50%, 20px);
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius); font-size: 13.5px;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 30; max-width: calc(100vw - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.print-sheet { display: none; }

/* ---------- Tablet / Mobil ---------- */
@media (max-width: 1080px) {
  :root { --panel-w: 380px; }
  .top-title { display: none; }
  .step { padding: 22px 22px 28px; }
}
@media (max-width: 820px) {
  :root { --header-h: 56px; }
  .top { padding: 0 16px; gap: 12px; justify-content: space-between; }
  .brand-sub { display: none; }
  .brand-name { font-size: 18px; }
  .top-actions .btn-ghost span { display: none; }
  .top-actions .btn-ghost { width: 40px; padding: 0; justify-content: center; }
  .app { display: block; height: auto; min-height: 0; }
  .stage {
    position: sticky; top: 0; z-index: 4;
    height: 44vh; height: 44svh; min-height: 280px; max-height: 520px;
    border-bottom: 1px solid var(--line-2);
  }
  body.on-request .stage { position: relative; height: 34svh; min-height: 240px; }
  .hud-top { left: 16px; top: 14px; }
  .hud-dims { font-size: 24px; }
  .hud-sub { font-size: 12.5px; margin-top: 3px; }
  .hud-hint { display: none; }
  .hud-bottom { left: 10px; right: 10px; bottom: 10px; gap: 6px; justify-content: space-between; flex-wrap: nowrap; }
  .seg-dark button { height: 34px; min-width: 34px; padding: 0 9px; font-size: 12.5px; }
  .seg-dark button:not(.txt):has(svg) { padding: 0 7px; }
  .panel { border-left: 0; }
  .steps { position: sticky; top: calc(min(max(44svh, 280px), 520px)); z-index: 3; }
  body.on-request .steps { position: static; }
  .steps .t { font-size: 11px; }
  .step-body { overflow: visible; }
  .step { padding: 22px 16px 26px; }
  .step h2, .success h2 { font-size: 26px; }
  .panel-foot { position: sticky; bottom: 0; z-index: 3; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); box-shadow: 0 -8px 24px rgba(23,25,26,.06); }
  .foot { height: auto; flex-direction: column; align-items: flex-start; gap: 6px; padding: 18px 16px 24px; }
  .foot-note span { display: block; margin: 2px 0 0; padding: 0; border: 0; }
}
@media (max-width: 420px) {
  .hud-bottom .seg:first-child button { padding: 0 7px; }
  .seg-dark button[data-view="rueck"] { display: none; }
  .swatches { grid-template-columns: repeat(4, 1fr); gap: 7px; }
  .sw-name { font-size: 10.5px; }
  .parts { gap: 6px; }
  .part { grid-template-columns: 1fr; padding: 8px; }
  .part .dot { grid-row: auto; width: 100%; height: 14px; }
  .row.two { grid-template-columns: 1fr; gap: 0; }
  .row.plz { grid-template-columns: 96px 1fr; }
  .cards { gap: 8px; }
  .card-in { padding: 10px 10px 11px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Druck / PDF ---------- */
@media print {
  @page { size: A4; margin: 14mm 14mm 16mm; }
  body { background: #fff; font-size: 11pt; }
  body > *:not(.print-sheet) { display: none !important; }
  .print-sheet { display: block !important; color: #000; }
  .ps-head { display: flex; justify-content: space-between; align-items: flex-end; border-bottom: 2px solid #000; padding-bottom: 8px; margin-bottom: 14px; }
  .ps-brand { font-weight: 800; font-stretch: 112%; letter-spacing: .06em; text-transform: uppercase; font-size: 18pt; display: flex; align-items: center; gap: 8px; }
  .ps-brand svg { width: 34px; height: 22px; fill: none; stroke: #000; stroke-width: 3; }
  .ps-meta { text-align: right; font-family: var(--mono); font-size: 9pt; }
  .ps-meta strong { font-size: 12pt; display: block; }
  .ps-title { font-size: 20pt; font-stretch: 88%; font-weight: 750; margin: 0 0 4px; }
  .ps-img { width: 100%; height: 88mm; object-fit: cover; border: 1px solid #ccc; margin: 10px 0 12px; }
  .ps-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10mm; }
  .print-sheet .summary { border-top: 1px solid #000; }
  .print-sheet .summary .r { font-size: 10pt; padding: 4px 0; border-color: #ccc; }
  .print-sheet .summary .grp { padding-top: 8px; }
  .print-sheet .summary dd i { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .ps-note { margin-top: 12px; padding: 8px 10px; border-left: 3px solid #000; font-size: 9.5pt; background: #f3f3f3; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .ps-foot { margin-top: 14px; font-size: 8pt; color: #555; border-top: 1px solid #ccc; padding-top: 6px; }
}

/* Auswahlfelder im Formular: normale Schriftstärke */
.field > label.radio, .field > label.check { display: flex; font-weight: 450; margin-bottom: 0; }
.field > label.check { font-size: 13px; }
