/* NF-Planer – Prototyp v3 28.10.2026 (v2: Start mit einer Frage je Bildschirm, 3 geführte Schritte, Blatt mit beschrifteten Knöpfen;
   v3: Start mittig, Oberfläche mit Shop-Mustern, Style mit Front-Fotos, Anmerkung + IKEA-Plan)
   NovaFronten-Look (Shop scheme-1): Weiß, Text #0E0E0E, Akzent #575C51, Kauf/Akzent Orange #FF704D,
   Rahmen #ECECEC, Streichpreis #E93D3D. Montserrat (Überschriften), Noto Sans (Text) – lokal. */

@font-face { font-family: 'Montserrat'; src: url('assets/fonts/montserrat-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('assets/fonts/montserrat-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Noto Sans'; src: url('assets/fonts/noto-sans-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Noto Sans'; src: url('assets/fonts/noto-sans-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }

:root {
  --orange: #ff704d;
  --orange-soft: #fff1ec;
  --orange-dark: #c2410c; /* aktiver Reiter: 5,2:1 auf Weiß, 4,7:1 auf --orange-soft (--orange nur 2,7:1) */
  --green: #575c51;
  --green-soft: #eef0ea;
  --ink: #0e0e0e;
  --ink-2: #272924;
  --muted: #6b6e68;
  --bg: #ffffff;
  --bg-2: #f4f4f4;
  --line: #ececec;
  --line-2: #dcdcdc;
  --red: #e93d3d;
  --danger: #b3261e; /* Fehlertext unter Feldern (6:1 auf Weiß; --red hat nur ca. 3,9:1) */
  --ok: #2e7d4f;
  --ok-2: #276b43; /* Text auf --green-soft: 5,6:1 (--ok dort nur 4,4:1) */
  --warn: #8a5306; /* dunkler als vorher: 4,5:1 auch auf hellem Gelb */
  --muted-2: #6b6e68; /* Gründe bei grauen Optionen (statt #8a8a8a) */
  --radius: 14px;
  --radius-s: 10px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 4px 16px rgba(0, 0, 0, .06);
  --pb-h: 76px;
  --gutter: 16px;
  --head: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --body: 'Noto Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.45 var(--body); }
body.sheet-open { overflow: hidden; }
h1, h2, h3 { font-family: var(--head); font-weight: 700; color: var(--ink-2); margin: 0; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--green); }
code { font-size: 12px; background: var(--bg-2); padding: 1px 4px; border-radius: 4px; word-break: break-all; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 10px 14px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
.fine { font-size: 12.5px; color: var(--muted); margin: 6px 0; }
.note { color: var(--muted); margin: 8px 0; }
.eyebrow { font: 600 12px/1.3 var(--head); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 22px 0 10px; }
.eyebrow-s { text-transform: none; letter-spacing: 0; font-weight: 400; font-family: var(--body); }
.eyebrow.nocase { text-transform: none; letter-spacing: .01em; font-size: 13px; }
.desk-only { display: none; }
hr { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }

/* Kopf */
.top { border-bottom: 1px solid var(--line); background: #fff; }
.top-in { max-width: 1240px; margin: 0 auto; padding: 12px var(--gutter); display: flex; align-items: center; gap: 12px; min-height: 52px; }
.logo { display: inline-flex; align-items: center; min-height: 44px; }
.logo img { display: block; height: 18px; width: auto; max-width: 62vw; }
/* Weg zurück zum Shop (Felix 12.11.2026): Plan steckt im Link + „Zuletzt geplant“, geht also nicht verloren */
.to-shop { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 4px; font: 600 14px/1 var(--head); color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.to-shop span[aria-hidden] { font-size: 18px; line-height: 1; color: var(--orange-dark); }
.to-shop:hover { color: var(--orange-dark); text-decoration: underline; text-underline-offset: 3px; }
.to-shop-s { display: none; }
@media (max-width: 479px) { .to-shop-l { display: none; } .to-shop-s { display: inline; } .logo img { max-width: 52vw; } }

main { max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); outline: none; }
.loading { display: flex; align-items: center; gap: 10px; padding: 40px 0; color: var(--muted); }
.spinner { width: 18px; height: 18px; border: 2px solid var(--line-2); border-top-color: var(--orange); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.error-box { padding: 32px 0; }
.error-box h1 { font-size: 22px; margin-bottom: 8px; }

/* Knöpfe */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 999px; border: 0; font: 700 15px/1 var(--head); text-decoration: none; }
.btn-buy { background: var(--orange); color: #fff; }
.btn-buy:hover { background: #f25f3b; }
.btn-buy[aria-disabled="true"] { background: #f3b9aa; cursor: not-allowed; }
.btn-dark { background: var(--ink-2); color: #fff; }
.btn-dark:hover { background: #000; }
.btn.wide { width: 100%; margin: 10px 0; }
.btn .tag { font: 600 11px/1 var(--body); background: rgba(255, 255, 255, .25); padding: 4px 7px; border-radius: 999px; }
.btn-ghost { min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line-2); background: #fff; font: 600 14px/1 var(--head); color: var(--ink-2); }
.btn-ghost:hover { border-color: var(--green); }
.btn-ghost.small { min-height: 44px; font-size: 13px; }
.btn-ghost.danger { color: var(--red); border-color: #f2c4c4; }
.btn-ghost[aria-pressed="true"] { border-color: var(--green); background: var(--green-soft); }
.btn-link { background: none; border: 0; padding: 10px 0; min-height: 44px; color: var(--green); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-align: left; }
.btn-link.light { color: #fff; padding: 0 0 0 12px; }

/* Start (v2): eine Frage je Bildschirm */
.start { padding: 18px 0 120px; max-width: 560px; margin: 0 auto; }
/* v3: Start-Bildschirme als mittige Spalte; Überschrift, Einleitung, Schritt-Hinweis mittig, „‹ Zurück“ bleibt links */
.start .start-h, .start .lead, .start .start-step, .start .start-sys, .start .start-more, .start .start-foot, .start .eyebrow { text-align: center; }
.start .lead { margin-left: auto; margin-right: auto; }
.start-breite .wform .field, .start-breite #st-w-hint { text-align: center; }
.start-breite .wform-row, .start-breite .assume-line { justify-content: center; text-align: center; }
.start > .fine, .start #sugg > .fine:not(.note-i), .start #sugg > .note { text-align: center; }
.start-h { font-size: 26px; line-height: 1.2; margin: 4px 0 6px; outline: none; }
.lead { color: var(--muted); margin: 6px 0 18px; max-width: 640px; }
.start-step { font-size: 12.5px; color: var(--muted); margin: 6px 0 0; }
.btn-back { min-height: 44px; padding: 0 12px 0 0; border: 0; background: none; color: var(--green); font: 600 14px/1 var(--head); }
.bigs { display: grid; gap: 12px; margin: 16px 0 8px; }
.big { display: grid; grid-template-columns: 52px minmax(0, 1fr) 18px; align-items: center; gap: 14px; width: 100%; min-height: 84px; padding: 14px 16px; text-align: left; background: #fff; border: 1.5px solid var(--line-2); border-radius: var(--radius); transition: border-color .15s, box-shadow .15s; }
.big:hover { border-color: var(--green); box-shadow: var(--shadow); }
.big-ico svg { width: 52px; height: 52px; display: block; }
.big-tx { display: grid; gap: 2px; min-width: 0; }
.big-t { font: 700 17px/1.25 var(--head); color: var(--ink-2); }
.big-s { font-size: 13.5px; color: var(--muted); }
.big .chev { font-size: 24px; color: var(--muted); }
.start-sys { font-size: 13.5px; color: var(--muted); margin: 10px 0; }
.btn-link.inline { min-height: 44px; padding: 0 2px; display: inline-flex; align-items: center; }
.wform { margin: 14px 0 0; }
.wform .field { margin-bottom: 6px; color: var(--ink-2); font-size: 14px; }
.wform-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.inp-lg { padding-right: 14px; }
.inp-lg input { width: 130px; min-height: 52px; font-size: 22px; font-weight: 600; }
.assume-line { display: flex; align-items: center; flex-wrap: wrap; gap: 0 8px; font-size: 14px; color: var(--ink-2); margin: 6px 0 4px; }
.start .sitpick { margin: 4px 0 10px; }
.start-more { margin: 14px 0 0; }
.srows { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.srow { width: 100%; display: grid; grid-template-columns: 72px minmax(0, 1fr) 14px; gap: 12px; align-items: center; text-align: left; background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius); padding: 10px 10px 10px 10px; min-height: 76px; transition: border-color .15s, box-shadow .15s; }
.srow:hover { border-color: var(--green); box-shadow: var(--shadow); }
.srow-svg { width: 72px; height: 56px; background: var(--bg-2); border-radius: 8px; display: block; }
.srow-m { display: grid; gap: 3px; min-width: 0; }
.srow-t { font: 700 15.5px/1.2 var(--head); color: var(--ink-2); }
.srow-s { font-size: 12.5px; color: var(--muted); line-height: 1.3; }
.srow-s.warn { color: var(--warn); }
.srow .fit { padding: 3px 8px; font-size: 12.5px; }
.srow-l { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.srow-p { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 0 4px; font-size: 13px; }
.srow-p strong { font: 700 16px/1.2 var(--head); color: var(--ink-2); white-space: nowrap; }
.srow-p small { font-size: 12px; color: var(--muted); white-space: nowrap; }
.srow-p .ab { font-size: 12.5px; color: var(--muted); }
.srow .chev { color: var(--muted); font-size: 20px; }
.note-i { color: var(--ink-2); background: var(--bg-2); border-radius: var(--radius-s); padding: 8px 10px; }
.design-open-note { display: flex; flex-wrap: wrap; align-items: center; gap: 0 10px; margin: 0 0 12px; padding: 6px 12px; }
.strike { color: var(--red); text-decoration: line-through; font-size: .85em; margin-right: 4px; }
.field { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.inp-u { display: inline-flex; align-items: center; border: 1.5px solid var(--line-2); border-radius: 12px; background: #fff; padding-right: 12px; }
.inp-u:focus-within { border-color: var(--green); }
.inp-u input { width: 110px; border: 0; background: transparent; min-height: 46px; padding: 0 10px 0 12px; font-size: 17px; color: var(--ink); outline: none; }
.inp-u input[aria-invalid="true"] { color: var(--red); }
.sitpick { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.sitbtn { display: flex; flex-direction: column; align-items: center; gap: 4px; min-height: 76px; padding: 8px 6px; border: 1.5px solid var(--line); background: #fff; border-radius: 12px; font-size: 12.5px; text-align: center; line-height: 1.2; }
.sitbtn small { color: var(--muted); font-size: 11.5px; }
.sitbtn .sit-sub { font-size: 11px; line-height: 1.2; }
.sitbtn[aria-pressed="true"] { border-color: var(--orange); background: var(--orange-soft); }
.sitbtn.is-static { cursor: default; }
.sitbtn.is-on { border-color: var(--orange); background: var(--orange-soft); }
.sico { width: 52px; height: 30px; }
/* „Zuletzt geplant“ als Karten (28.10.) */
.recent { margin: 32px 0 0; text-align: left; }
.recent-h { font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--muted); margin: 0 0 8px; }
.rc-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.rc-list > li { min-width: 0; }
.rc { box-sizing: border-box; width: 100%; display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 12px 10px 10px; border: 1px solid var(--line); border-radius: var(--radius-s); background: #fff; color: inherit; text-decoration: none; }
.rc:hover { border-color: var(--line-2); background: #fafafa; }
.rc-ico { flex: 0 0 40px; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 8px; background: var(--green-soft); }
.rc-ico svg { width: 26px; height: 26px; }
.rc-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rc-t { font-weight: 600; font-size: 14.5px; line-height: 1.3; }
.rc-s { font-size: 13px; color: var(--muted); line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rc-r { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.rc-p { font-weight: 600; font-size: 14.5px; white-space: nowrap; }
.rc-p small { font-size: 12px; font-weight: 400; color: var(--muted); }
.rc-w { font-size: 12px; color: var(--muted); white-space: nowrap; }
.rc .chev { color: var(--muted); font-size: 20px; margin-left: 2px; }
.recent-more { margin-top: 8px; }
.recent-more summary { min-height: 44px; display: inline-flex; align-items: center; cursor: pointer; color: var(--green); font-size: 14px; }
.recent-more .rc-list { margin-top: 4px; }
.start-foot { margin-top: 28px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: var(--bg-2); padding: 5px; border-radius: 999px; }
.seg button { min-height: 44px; border: 0; background: transparent; border-radius: 999px; padding: 6px 10px; }
.seg button[aria-pressed="true"] { background: #fff; box-shadow: var(--shadow); }
.seg-small button { min-height: 44px; font: 600 13px/1.1 var(--head); }
.fit-t { font-weight: 600; }
.fit-t-gruen { color: var(--ok); }
.fit-t-gelb { color: var(--warn); }
.fit-t-rot { color: var(--red); }
.muted { color: var(--muted); }

/* Plan */
.plan { padding-bottom: calc(var(--pb-h) + 30px + env(safe-area-inset-bottom)); }
/* Fokus per Tab/Umschalt+Tab nicht unter klebenden Leisten (Review 28.10.): unten Preisleiste; am Handy oben kleine
   Zeichnung (--stick-h) + Reiterleiste (--mtabs-h, 0 wenn sie nicht klebt), beide aus planer.js. Nur in „Ihr Plan“. */
html:has(#plan-root) { scroll-padding-bottom: calc(var(--pb-h) + 8px + env(safe-area-inset-bottom)); }
@media (max-width: 959px) { html:has(#plan-root) { scroll-padding-top: calc(var(--stick-h, 0px) + var(--mtabs-h, 0px) + 8px); } }
.plan-bar { display: flex; align-items: center; gap: 8px; padding: 8px 0; }
.plan-title { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; line-height: 1.2; text-align: center; }
.plan-h { font: 700 15px/1.2 var(--head); color: var(--ink-2); outline: none; }
.saved { font: 400 11.5px/1.2 var(--body); color: var(--ok); }
.hints { display: flex; align-items: center; gap: 10px; background: var(--green-soft); border-radius: var(--radius-s); padding: 6px 6px 6px 12px; margin: 8px 0; font-size: 13.5px; line-height: 1.3; }
.hints span { flex: 1; }
.hints .btn-ghost { flex: 0 0 auto; }

/* minmax(0, 1fr): sonst macht die wischbare Style-Reihe (7 × 112 px) die Spalte 836 px breit (seitliches Scrollen) */
.plan-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.col-side { min-width: 0; }
/* Handy: Spalte auflösen, damit die Zeichnung über alle Abschnitte oben klebt */
.col-draw { display: contents; }
.draw-card { position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 1px solid var(--line); margin: 0 calc(-1 * var(--gutter)); padding: 6px var(--gutter) 4px; }
.draw-wrap { width: 100%; }
/* ohne Übergang: die Höhe wird gemessen (Hysterese + margin-bottom in planer.js), damit die Seite nicht springt */
.drawing { display: block; width: 100%; height: auto; max-height: 36vh; margin: 0 auto; touch-action: manipulation; }
.draw-card.is-compact .drawing { max-height: 24vh; }
/* kleine Zeichnung: Legende und Ampel bleiben, nur der Knopf „Türen öffnen“ geht */
.draw-card.is-compact .draw-tools { min-height: 0; padding: 2px 0; }
.draw-card.is-compact .draw-tools .btn-ghost { display: none; }
.draw-card.is-compact .draw-tools .fit { padding: 2px 8px; font-size: 12.5px; }
.draw-tools { display: flex; align-items: center; justify-content: space-between; gap: 4px 8px; flex-wrap: wrap; min-height: 40px; }
.legend { font-size: 12px; color: var(--muted); }
.wall-tabs { display: grid; grid-template-columns: 1fr 84px; gap: 10px; align-items: center; margin-bottom: 4px; }
.grundriss { width: 84px; height: 70px; }

/* SVG-Teile */
.pz-part { cursor: pointer; }
.pz-part .pz-outline { stroke: transparent; transition: stroke .12s; }
.pz-part:hover .pz-outline, .pz-part.is-hl .pz-outline { stroke: rgba(255, 112, 77, .55); }
.pz-part.is-sel .pz-outline { stroke: var(--orange); }
.pz-part.is-err .pz-outline { stroke: var(--red); }
.pz-part:focus { outline: none; }
.pz-part:focus-visible .pz-outline { stroke: var(--green); }
.pz-part.flash { animation: flash .4s ease-out; }
@keyframes flash { 0% { filter: brightness(1.25) drop-shadow(0 0 4px var(--orange)); } 100% { filter: none; } }
.drawing text { font-family: var(--body); user-select: none; }

/* Listen „Ihre Korpusse von links“ / „Schränke“: Zeile = Knopf, „Ändern ›“ öffnet das Blatt */
.lrows { list-style: none; padding: 0; margin: 0 0 8px; border: 1px solid var(--line); border-radius: var(--radius-s); }
.lrows li + li { border-top: 1px solid var(--line); }
.lrow { width: 100%; min-height: 52px; display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; grid-template-areas: "no t go" "no s go"; align-items: center; gap: 0 10px; padding: 8px 12px; background: #fff; border: 0; text-align: left; border-radius: 0; }
.lrows li:first-child .lrow { border-radius: var(--radius-s) var(--radius-s) 0 0; }
.lrows li:last-child .lrow { border-radius: 0 0 var(--radius-s) var(--radius-s); }
.lrows li:only-child .lrow { border-radius: var(--radius-s); }
.lrow-no { grid-area: no; width: 26px; height: 26px; border-radius: 50%; background: var(--ink-2); color: #fff; font: 700 12.5px/26px var(--head); text-align: center; }
.lrow-t { grid-area: t; font-weight: 600; font-size: 14.5px; }
.lrow small { grid-area: s; color: var(--muted); font-size: 12.5px; }
.lrow-go { grid-area: go; color: var(--green); font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.lrow:hover .lrow-go { text-decoration: underline; }
.lrow.is-sel { background: var(--orange-soft); box-shadow: inset 4px 0 0 var(--orange); }
.lrow.is-sel .lrow-no { background: var(--orange); }
.lrow.is-err small { color: var(--red); }
.lrow.is-err .lrow-no { background: var(--red); }
.addbtn { width: 100%; min-height: 48px; border: 1.5px dashed var(--green); border-radius: var(--radius-s); background: #fff; color: var(--green); font: 700 14.5px/1 var(--head); }
.addbtn:hover { background: var(--green-soft); }
.addbox { border: 1.5px dashed var(--green); border-radius: var(--radius-s); padding: 10px 12px; background: #fbfcfa; }
.addbox-h { margin: 0 0 8px; font: 600 13.5px/1.3 var(--head); color: var(--ink-2); }
.addbox .fine { margin: 8px 0 0; }

/* IKEA-Box */
.ikea-box { border-left: 5px solid var(--orange); background: var(--orange-soft); border-radius: var(--radius-s); padding: 0 14px; }
.ikea-box summary { list-style: none; cursor: pointer; min-height: 52px; padding: 10px 24px 10px 0; display: flex; flex-direction: column; justify-content: center; position: relative; }
.ikea-box summary::-webkit-details-marker { display: none; }
.ikea-box summary::after { content: '⌄'; position: absolute; right: 2px; top: 12px; font-size: 18px; color: var(--ink-2); }
.ikea-box[open] summary::after { content: '⌃'; }
.ikea-t { font: 700 15px/1.25 var(--head); color: var(--ink-2); }
.ikea-s { font-size: 13px; color: var(--ink-2); }
.ikea-box[open] { padding-bottom: 10px; }
.ikea-list { list-style: none; padding: 0; margin: 6px 0; display: grid; gap: 4px; }
.ikea-list li { display: grid; grid-template-columns: 34px 1fr auto; gap: 6px; align-items: baseline; font-size: 13.5px; padding: 4px 0; border-bottom: 1px dashed rgba(0, 0, 0, .08); }
.ikea-list .q { font-weight: 700; }
.ikea-list small { color: var(--muted); }
.ikea-list .why { display: block; font-size: 12px; margin-top: 1px; }
.ikea-list .p { white-space: nowrap; color: var(--ink-2); }
.ikea-list a { color: var(--ink-2); }
.proto-note { color: var(--warn); }
.kasse-note { margin-top: 8px; text-align: center; }
.btn-buy[aria-busy="true"] { opacity: .7; cursor: progress; }

/* 3 geführte Schritte: nur einer offen, fertige als Zeile „✓ … Ändern“, kommende grau mit Vorgabe */
.steps { margin-top: 10px; }
/* Abstand IKEA-Kasten → Schritte (Felix 30.10.: berührte den Kasten darunter; am Desktop war er 0) */
#ikea:not(:empty) + .steps { margin-top: 16px; }
.steps-q { font: 700 17px/1.25 var(--head); margin: 6px 0 8px; color: var(--ink-2); }
.step { border: 1px solid var(--line); border-radius: var(--radius); margin: 0 0 10px; background: #fff; scroll-margin-top: calc(var(--stick-h, 26vh) + 8px); }
.step.is-open { border-color: var(--line-2); box-shadow: var(--shadow); }
.step-h { margin: 0; font-size: inherit; }
.step-head { font: 400 15px/1.4 var(--body); width: 100%; min-height: 60px; display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; grid-template-areas: "no t x" "no sum sum"; gap: 2px 10px; align-items: center; padding: 10px 14px; background: none; border: 0; text-align: left; border-radius: var(--radius); }
.step-no { grid-area: no; width: 26px; height: 26px; border-radius: 50%; background: var(--ink-2); color: #fff; font: 700 13px/26px var(--head); text-align: center; }
.step.is-open .step-no { background: var(--orange); }
.step.is-done .step-no { background: var(--ok); }
.step.is-todo .step-no { background: #fff; color: var(--muted); box-shadow: inset 0 0 0 1.5px #b9bbb6; }
.step.is-warn .step-no { background: var(--red); }
.step.is-warn { border-color: #f5c2c2; }
.step-t { grid-area: t; font: 700 16px/1.2 var(--head); color: var(--ink-2); }
.step.is-todo .step-t { color: var(--muted); }
.step-x { grid-area: x; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.step-edit { grid-area: x; color: var(--green); font-weight: 600; font-size: 13.5px; text-decoration: underline; text-underline-offset: 3px; }
.step.is-todo .step-edit { color: var(--muted); }
.step-sum { grid-area: sum; font-size: 13.5px; color: var(--ink-2); line-height: 1.3; }
.step.is-todo .step-sum { color: var(--muted); }
.step-sum.is-err { color: var(--red); font-weight: 600; }
.step-b { padding: 0 14px 16px; }
.step-next { margin-top: 14px; }
.lbl { font: 600 13.5px/1.3 var(--head); color: var(--ink-2); margin: 16px 0 8px; }
.lbl.first { margin-top: 4px; }
.lbl .opt, .lbl .req { font: 400 12.5px var(--body); color: var(--muted); }
.lbl .req { color: var(--red); }
.lbl .cur { font-weight: 700; }
.wall-h { color: var(--ink-2); border-left: 4px solid var(--orange); padding-left: 8px; }
.info { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--muted); margin: 10px 0; }
.info-i { flex: 0 0 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--muted); font: 700 11px/15px var(--head); text-align: center; color: var(--muted); font-style: italic; }
/* Zeile mit Vorgabe: „Korpus 236 cm hoch · 58 cm tief   Ändern“ */
.optline { border-top: 1px solid var(--line); margin-top: 10px; }
.ol-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "k btn" "v btn"; align-items: center; gap: 0 10px; min-height: 52px; padding: 6px 0; }
.ol-k { grid-area: k; font: 600 12.5px/1.3 var(--head); color: var(--muted); }
.ol-v { grid-area: v; font-size: 14.5px; color: var(--ink-2); }
.ol-btn { grid-area: btn; padding: 0 2px; }
.optline.is-later .ol-v { color: var(--muted); }
.ol-p { padding: 0 0 10px; }
/* Einbausituation als Zeile: Piktogramm + Text, darunter Wandbreite/Ampel */
.ol-sit { display: inline-flex; align-items: center; gap: 8px; }
.ol-sit .sico { width: 38px; height: 22px; flex: 0 0 auto; }
.ol-fit { display: block; font-size: 13.5px; margin-top: 2px; }
.ol-p .optline { margin-top: 12px; }
.wandbox { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 2px; }
.doorlist { list-style: none; padding: 0; margin: 0; }
.doorlist li { padding: 8px 0; border-bottom: 1px dashed var(--line); }
/* Teilbereiche in „Ihre Küche“ als Reiter (28.10., Felix: in der Aufklapp-Liste übersah man die anderen Teile).
   Leiste klebt beim Scrollen unter der kleinen Zeichnung (Handy: --stick-h aus planer.js) bzw. oben (Desktop);
   kein Vorfahre hat overflow (nur body.sheet-open, dann ist die Seite ohnehin gesperrt). z-index unter der Zeichnung (20). */
.mtabs { position: sticky; top: var(--stick-h, 0px); z-index: 10; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 0 -14px; padding: 4px 14px 10px; background: #fff; border-bottom: 1px solid var(--line); }
/* Fließtext statt Flex: die zweite Zeile („schränke“) bekommt die volle Breite, auch unter der Marke */
.mtab { min-width: 0; min-height: 48px; padding: 6px 4px; border: 1.5px solid var(--line-2); border-radius: 12px; background: #fff; font: 600 13px/1.25 var(--head); color: var(--ink-2); text-align: center; -webkit-hyphens: manual; hyphens: manual; transition: border-color .15s, background-color .15s; }
.mtab:hover { border-color: #b9bbb6; background: #fafafa; }
.mtab-no { display: inline-block; width: 19px; height: 19px; margin-right: 5px; border-radius: 50%; vertical-align: baseline; font: 700 11.5px/19px var(--head); text-align: center; background: #fff; color: var(--muted); box-shadow: inset 0 0 0 1.5px #b9bbb6; }
.mtab.is-done .mtab-no { background: var(--ok); color: #fff; box-shadow: none; }
/* aktiver Reiter: gefüllt + kräftige Unterkante. Review 28.10.: Rand, Unterkante und Marke in --orange-dark statt --orange
   (2,7:1 bzw. 2,5:1 auf --orange-soft, weiße Ziffer unter 4,5:1) – Rand aktiv/inaktiv jetzt 3,8:1, Ziffer 5,2:1 */
.mtab.is-sel, .mtab.is-sel:hover { border-color: var(--orange-dark); background: var(--orange-soft); box-shadow: inset 0 -3px 0 var(--orange-dark); cursor: default; }
.mtab.is-sel .mtab-no { background: var(--orange-dark); color: #fff; box-shadow: none; }
/* Windows-Kontrastmodus: Farben und box-shadow fallen weg → aktiver Reiter mit dickem Rand und Marke in Highlight */
@media (forced-colors: active) {
  .mtab.is-sel, .mtab.is-sel:hover { border: 3px solid Highlight; }
  .mtab.is-sel .mtab-no { forced-color-adjust: none; background: Highlight; color: HighlightText; }
}
/* Querformat am Handy (Review 28.10.): Zeichnung + Leiste + Preisleiste ließen 27–124 px Inhalt → Leiste klebt nicht */
@media (max-height: 500px) { .mtabs { position: static; } }
.mpanel-sum { margin: 12px 0 10px; font: 600 13.5px/1.35 var(--head); color: var(--ink-2); }
.mpanel > .btn.wide { margin-top: 12px; }

/* Auswahl-Chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips.tight { gap: 6px; }
.chips.col { flex-direction: column; }
.chips.col .chip { width: 100%; }
.chips.cards2 .chip { flex: 1 1 160px; }
.chip { min-height: 44px; padding: 8px 12px; border: 1.5px solid var(--line-2); background: #fff; border-radius: 12px; display: inline-flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 1px; text-align: left; line-height: 1.2; position: relative; }
.chip:hover { border-color: var(--green); }
.chip.is-sel { border-color: var(--orange); background: var(--orange-soft); box-shadow: inset 0 0 0 1px var(--orange); }
.chip.is-off { background: var(--bg-2); color: #9a9a9a; border-color: var(--line); cursor: not-allowed; }
.chip-l { font-weight: 600; font-size: 14px; }
.chip-s { font-size: 12px; color: var(--muted); }
.chip-d { font-size: 12.5px; color: var(--green); font-weight: 600; }
.chip-r { font-size: 11.5px; color: var(--muted-2); max-width: 240px; }
.chip .dico { width: 22px; height: 30px; margin-bottom: 2px; }
.chip.hinge, .hinge .chip { flex-direction: row; align-items: center; gap: 8px; }
.hico { width: 34px; height: 24px; flex: 0 0 auto; }
.bg-dot { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .15); margin-bottom: 2px; }
.drow { padding: 10px 0; border-bottom: 1px dashed var(--line); }
.drow-h { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 6px; font-size: 14px; }
.drow-h span { color: var(--muted); }
.hrow { display: flex; align-items: center; justify-content: space-between; gap: 6px 10px; flex-wrap: wrap; padding: 4px 0; }
.hrow > span, .hrow-l { font-size: 13.5px; color: var(--ink-2); }
/* Scharniere einer einzelnen Tür: kompakter Umschalter links | rechts */
.seg2 { display: inline-grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--bg-2); padding: 3px; border-radius: 12px; }
.seg2-b { min-height: 44px; min-width: 96px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 10px; border: 1.5px solid transparent; border-radius: 10px; background: transparent; font-weight: 600; font-size: 14px; }
.seg2-b.is-sel { background: #fff; border-color: var(--orange); box-shadow: var(--shadow); }
.seg2-b .hico { width: 28px; height: 20px; }
.pair-note { display: flex; align-items: center; gap: 8px; margin: 4px 0; font-size: 13.5px; color: var(--ink-2); }
.pair-ico { display: inline-flex; gap: 0; }
.pair-ico .hico { width: 26px; height: 18px; }
/* v3.2: Griffposition je Front (Picker aus assets/nf-griff.js), ein Block je Platz mit Statuszeile */
.gblock { padding: 8px 0 4px; border-bottom: 1px dashed var(--line); }
.gblock:last-of-type { border-bottom: 0; }
.gblock .nfg { margin-top: 0; }
.gstat { display: flex; align-items: center; flex-wrap: wrap; gap: 0 6px; margin: 4px 0 0; font-size: 12.5px; color: var(--muted); min-height: 24px; }
.gstat .btn-link.inline { min-height: 44px; font-size: 13px; }
.gman { display: flex; align-items: center; flex-wrap: wrap; gap: 0 6px; margin: 8px 0 0; font-size: 13px; color: var(--ink-2); }
.erow { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; flex-wrap: wrap; }
.auto-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.auto-list li { display: grid; gap: 2px; padding: 8px 10px; background: var(--bg-2); border-radius: 10px; font-size: 14px; }
.auto-list small { color: var(--muted); font-size: 12.5px; }
.auto-list li.is-err { background: #fdeeee; }
.auto-list li.is-err small { color: var(--red); }
.wand-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.fit { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; padding: 6px 10px; border-radius: 999px; }
.fit::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
.fit-gruen { color: var(--ok); background: #e9f5ee; }
.fit-gelb { color: var(--warn); background: #fdf3e3; }
.fit-rot { color: var(--red); background: #fdeeee; }
.fit-none { color: var(--muted); background: var(--bg-2); font-weight: 400; }

/* Schritt 2 wie die Produktseite (Felix 29.10.; Maße aus collection-configurator.css / nf-einzel-*.css im Live-Theme):
   Kachel = Muster im grauen Feld (#f4f4f2, Radius 10px), Name darunter, gewählt = 2px orange Rahmen (Radius 12px) und fett */
.s2-h { display: flex; align-items: baseline; gap: 12px; font: 600 16px/1.3 var(--head); color: var(--ink); margin: 20px 0 10px; }
.s2-h.first { margin-top: 4px; }
.s2-val { margin-left: auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 500 14px/1.3 var(--body); color: var(--green); }
.s2-hint, .s2-notes { margin: 6px 0 0; }
.s2-notes { color: var(--muted-2); }
.surfcards, .stylecards { display: flex; flex-wrap: wrap; gap: 6px; }
.surfcard, .stylecard { box-sizing: border-box; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 4px 0 6px; border: 2px solid transparent; border-radius: 12px; background: #fff; text-align: center; color: var(--ink-2); }
.surfcard { width: 64px; }
.stylecard { width: calc((100% - 18px) / 4); max-width: 104px; }
@media (hover: hover) { .surfcard:hover, .stylecard:hover { border-color: #e5e5e5; } }
.surfcard.is-sel, .stylecard.is-sel { border-color: var(--orange); }
.surfcard.is-off, .stylecard.is-off { cursor: not-allowed; }
.surfcard.is-off .sf-ph, .stylecard.is-off .sc-ph { opacity: .4; }
.sf-ph { position: relative; display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 10px; overflow: hidden; background: #f4f4f2; }
.sf-img { display: block; width: 34px; height: 34px; object-fit: contain; }
.sf-ph.is-fail { background: var(--sf-bg, #e7e5e0); }
.sf-ph.is-fail .sf-img { visibility: hidden; }
/* Style: echtes Front-Foto (Felix 28.10.) im selben grauen Feld; lädt es nicht, die gezeichnete Tür */
.sc-ph { position: relative; display: block; width: 100%; aspect-ratio: 1 / 1; border-radius: 10px; overflow: hidden; background: #f4f4f2; }
.sc-img { display: block; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.sc-ph .sc-door { display: none; }
.sc-ph.is-fail .sc-img { display: none; }
.sc-ph.is-fail .sc-door { display: block; position: absolute; inset: 6% 0; margin: auto; height: 88%; width: auto; }
.stylecard.is-off .sc-door { opacity: .35; }
.sc-door { width: 62px; height: 100px; display: block; }
.ol-v.is-open { color: var(--muted); font-style: italic; }
/* Name wie auf der Produktseite: 11px Noto Sans, gewählt fett */
.sc-n { font: 400 11px/1.2 var(--body); color: #444; overflow-wrap: anywhere; -webkit-hyphens: auto; hyphens: auto; }
.surfcard.is-sel .sc-n, .stylecard.is-sel .sc-n { font-weight: 700; color: var(--ink); }
.sc-p { min-height: 13px; font-size: 10.5px; line-height: 1.2; font-weight: 600; color: var(--green); }

/* Farben wie auf der Produktseite: Kreis 36px mit Shop-Muster, gewählt = Ring, Name darunter */
.swatches { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.sw { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 1px; min-height: 64px; border: 0; border-radius: 8px; background: transparent; }
@media (hover: hover) { .sw:hover { background: var(--ne-panel, #f4f3ef); } }
.sw.is-off { opacity: .4; cursor: not-allowed; }
.sw-dot { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(39, 41, 36, .2); background-size: cover; background-position: center; }
.sw-dot.wood { background-image: repeating-linear-gradient(100deg, rgba(40, 25, 10, .14) 0 1px, transparent 1px 5px); }
.sw.is-sel .sw-dot { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ink-2); }
/* Farbnamen mit Trennstrich statt mitten im Wort („Eukalip-tus“); nur wenn das nicht reicht, hart umbrechen */
.sw-n { font-size: 10.5px; line-height: 1.2; text-align: center; color: var(--green); word-break: normal; overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; }
.sw.is-sel .sw-n { color: var(--ink); font-weight: 700; }
.sw-d { font-size: 10.5px; color: var(--green); font-weight: 600; }
.off-list { margin-top: 8px; }

/* Prüfen & kaufen */
.errbox { background: #fdeeee; border: 1px solid #f5c2c2; color: #8f1d1d; border-radius: var(--radius-s); padding: 10px 12px; margin: 10px 0; font-size: 14px; }
.errbox ul { margin: 6px 0 0; padding-left: 18px; }
.errbox .btn-link { color: #8f1d1d; min-height: 44px; padding: 0; display: inline-flex; align-items: center; }
.errbox.small { font-size: 13px; }
.bom { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.bom th { text-align: left; font: 600 12px var(--head); color: var(--muted); padding: 6px 4px; border-bottom: 1px solid var(--line); }
.bom td { padding: 8px 4px; border-bottom: 1px solid var(--line); vertical-align: top; }
.bom td.q { width: 34px; font-weight: 700; }
.bom td.n .t { display: block; font-weight: 600; }
.bom td.n small { display: block; color: var(--muted); font-size: 12px; }
.bom td.n small.vid { color: var(--muted-2); font-size: 11px; word-break: break-word; }
.bom td.u, .bom td.s { text-align: right; }
.bom td.u span, .bom td.s span, .bom td.s strong { white-space: nowrap; }
/* Streichpreis in eigener Zeile: sonst wird die Tabelle bei einer Aktion breiter als 375 px */
.bom s { display: block; color: var(--red); font-size: .9em; white-space: nowrap; }
.bom tfoot th { text-align: left; font: 600 13px var(--body); color: var(--ink-2); padding-top: 10px; }
.bom tfoot td.s { padding-top: 10px; font-size: 15px; }
.bom tr.is-hl td { background: var(--orange-soft); }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; min-height: 44px; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--orange); flex: 0 0 auto; }
.check span { display: grid; gap: 2px; font-size: 14px; }
.check small { color: var(--muted); font-size: 12.5px; }
.sumrow { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 12px 0 4px; border-top: 2px solid var(--ink-2); margin-top: 10px; font-size: 15px; }
.sumrow strong { font-family: var(--head); }
.testlink { border: 2px dashed var(--orange); border-radius: var(--radius-s); padding: 12px; margin: 8px 0; }
.testlink .permalink { display: block; margin: 6px 0; font-size: 11px; }
.testlink pre { max-height: 260px; overflow: auto; font-size: 11px; background: var(--bg-2); padding: 8px; border-radius: 8px; }
.testlink details summary { cursor: pointer; min-height: 40px; display: flex; align-items: center; font-size: 13px; color: var(--green); font-weight: 600; }
.share-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
.mail-help { margin-top: 0; }
/* v3: Anmerkung + IKEA-Plan (optional) vor dem Warenkorb-Knopf */
.notes { margin: 14px 0 8px; display: grid; gap: 2px; }
.tfield { display: grid; gap: 6px; margin-top: 8px; }
.tfield-l { font: 600 13.5px/1.3 var(--head); color: var(--ink-2); }
.tfield textarea, .tfield input { width: 100%; min-height: 46px; border: 1.5px solid var(--line-2); border-radius: 12px; background: #fff; padding: 10px 12px; font-size: 16px; line-height: 1.4; color: var(--ink); }
.tfield textarea { min-height: 88px; resize: vertical; }
.tfield textarea:focus, .tfield input:focus { border-color: var(--green); outline: none; box-shadow: 0 0 0 3px rgba(87, 92, 81, .18); }
.tfield input[aria-invalid="true"] { border-color: var(--danger); }
.tcount { text-align: right; margin: 2px 0 0; }
.ferr { font-size: 13px; color: var(--danger); margin: 4px 0 0; }
.ferr:empty { display: none; }
.bom-notes { margin: 10px 0 0; padding: 8px 10px; background: var(--bg-2); border-radius: var(--radius-s); font-size: 13px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 10px; }
.bom-notes dt { font-weight: 600; color: var(--ink-2); }
.bom-notes dd { margin: 0; white-space: pre-line; overflow-wrap: anywhere; color: var(--ink-2); }
.bom .muted { color: var(--muted); }
.bom td.n small.open-d { color: var(--warn); }
/* v3.1: Plan an den Kundenservice senden – Karte am Ende von „Prüfen & kaufen“ und Blatt mit Formular */
.sup-card { margin: 18px 0 8px; padding: 14px 16px 4px; border-radius: var(--radius); background: var(--green-soft); }
.sup-h { font-size: 16px; line-height: 1.3; }
.sup-t { margin: 6px 0 0; font-size: 14px; color: var(--ink-2); }
.sup-st { margin: 8px 0 0; font-size: 13.5px; color: var(--ink-2); }
.sup-st.is-ok { color: var(--ok-2); font-weight: 600; }
.sup-st.is-warn { color: var(--warn); }
.sup-card .btn[aria-disabled="true"] { background: #9c9e99; cursor: not-allowed; }
.sup-box { margin: 2px 0 4px; padding: 10px 12px; border-radius: var(--radius-s); background: var(--bg-2); }
.sup-box-h { font: 600 12px/1.3 var(--head); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
.sup-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; font-size: 13.5px; color: var(--ink-2); }
.sup-list li { overflow-wrap: anywhere; }
.sup-li-t { font-weight: 600; }
.sup-plan-e { margin: 8px 0 0; }
.sup-req { margin: 12px 0 0; }
.req-m { color: var(--danger); }
.tfield-l .opt { font: 400 12.5px var(--body); color: var(--muted); }
.tfield textarea[aria-invalid="true"] { border-color: var(--danger); }
.sup-row { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 10px; }
.sup-f { min-width: 0; }
.sup-legal { margin-top: 10px; }
.sheet-f .sup-send { flex: 1 1 auto; margin-left: 0; }
.sup-send[aria-busy="true"] { opacity: .7; cursor: progress; }
.sup-done { padding: 6px 0 4px; overflow-wrap: anywhere; } /* lange E-Mail-Adresse bricht statt quer zu scrollen */
.sup-done-i { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--green-soft); color: var(--ok); font: 700 20px/1 var(--head); margin-bottom: 8px; }
.sup-done-h { font-size: 18px; line-height: 1.3; }
.sup-done-h:focus { outline: none; }
.sup-done.is-warn .sup-done-h { color: var(--warn); }
.sup-ref { font: 700 15px/1.3 var(--head); color: var(--ink-2); margin: 6px 0; }
.sup-done p { font-size: 14px; }
/* Vor- und Nachname nebeneinander, sobald zwei Felder Platz haben (auch im 440-px-Blatt am Desktop) */
@media (min-width: 420px) { .sup-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
/* Handy: Formular-Blatt etwas höher (Tastatur), Desktop behält die Höhe der anderen Blätter */
@media (max-width: 959px) { .sheet.sheet-sup { max-height: 92vh; max-height: 92dvh; } }
.proto { margin: 18px 0; font-size: 13px; border: 1px dashed var(--line-2); border-radius: var(--radius-s); padding: 0 12px; }
.proto summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; color: var(--muted); font-weight: 600; }
.sheet-price { margin: 12px 0 4px; font-size: 14px; }

/* Preisleiste */
.pricebar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -4px 18px rgba(0, 0, 0, .07); padding-bottom: env(safe-area-inset-bottom); }
.pb-in { position: relative; max-width: 1240px; margin: 0 auto; padding: 10px var(--gutter); display: flex; align-items: center; gap: 12px; min-height: var(--pb-h); }
.pb-price { flex: 1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; min-width: 0; }
.pb-total { font: 700 21px/1.1 var(--head); color: var(--ink-2); }
.pb-total.pb-empty { font-size: 16px; }
.pb-price small { flex-basis: 100%; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pb-err { color: var(--red); font-weight: 600; }
.pb-sum { display: inline-flex; align-items: baseline; gap: 4px; white-space: nowrap; }
.pb-ab { font: 600 13px/1 var(--body); color: var(--muted); }
@media (max-width: 400px) { .pb-sum.is-ab .pb-total { font-size: 19px; } }
.pb-hint { color: var(--ink-2); font-weight: 600; }
.pb-part { font-size: 11.5px; color: var(--muted); }
/* schwebt über der Leiste, damit die Leiste 76 px hoch bleibt */
.pb-delta { position: absolute; left: var(--gutter); top: -34px; font: 700 13px/1 var(--head); padding: 7px 10px; border-radius: 999px; box-shadow: var(--shadow); animation: pop .3s ease-out; }
.pb-delta.up { color: #8f3a1f; background: var(--orange-soft); }
.pb-delta.down { color: var(--ok); background: #e9f5ee; }
@keyframes pop { from { transform: scale(.7); opacity: 0; } to { transform: none; opacity: 1; } }
.pricebar .btn-buy { flex: 0 0 auto; padding: 0 18px; }

/* Blatt von unten */
.sheet-ov { position: fixed; inset: 0; background: rgba(14, 14, 14, .35); z-index: 60; animation: fade .15s; touch-action: none; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 61; background: #fff; border-radius: 18px 18px 0 0; max-height: 82vh; max-height: 82dvh; display: flex; flex-direction: column; box-shadow: 0 -10px 40px rgba(0, 0, 0, .18); animation: up .2s ease-out; padding-bottom: env(safe-area-inset-bottom); }
.sheet-grab { width: 40px; height: 4px; border-radius: 4px; background: var(--line-2); margin: 8px auto 0; }
.sheet-h { display: flex; align-items: center; gap: 10px; padding: 6px var(--gutter) 6px; }
.sheet-ht { flex: 1; min-width: 0; }
.sheet-h h2 { font-size: 17px; line-height: 1.25; }
.sheet-sub { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.movebtns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.btn-ghost.mv { width: 100%; min-height: 48px; font-size: 13.5px; padding: 0 8px; }
.btn-ghost[aria-disabled="true"] { color: #a3a3a3; border-color: var(--line); background: var(--bg-2); cursor: not-allowed; }
.btn-ghost.wide { width: 100%; }
.btn-ghost.del { margin-top: 14px; min-height: 48px; }
.sheet-b { overflow-y: auto; overscroll-behavior: contain; padding: 0 var(--gutter) 10px; }
.sheet-f { display: flex; gap: 8px; align-items: center; padding: 10px var(--gutter) 12px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.sheet-f .btn-dark { margin-left: auto; }
.sheet-tot { font-size: 13.5px; color: var(--ink-2); }
.sheet-tot strong { font-family: var(--head); }
.sheet-tot .up { color: #8f3a1f; font-weight: 600; }
.sheet-tot .down { color: var(--ok); font-weight: 600; }
@keyframes up { from { transform: translateY(30px); opacity: .4; } to { transform: none; opacity: 1; } }
@keyframes fade { from { opacity: 0; } }

/* Toast */
.toasts { position: fixed; left: 0; right: 0; bottom: calc(var(--pb-h) + 14px + env(safe-area-inset-bottom)); z-index: 70; display: flex; justify-content: center; pointer-events: none; padding: 0 var(--gutter); }
/* Blatt offen: Toast oben, damit er den Blatt-Fuß (Fertig, Rückgängig) nicht verdeckt */
body.sheet-open .toasts { top: calc(12px + env(safe-area-inset-top)); bottom: auto; }
.toast { pointer-events: auto; background: var(--ink-2); color: #fff; border-radius: 12px; padding: 10px 14px; font-size: 14px; display: flex; align-items: center; min-height: 44px; box-shadow: var(--shadow); max-width: 520px; animation: up .2s ease-out; }

/* Desktop: zwei Spalten, links Zeichnung + Stückliste (klebt), rechts Abschnitte */
@media (min-width: 960px) {
  :root { --gutter: 24px; }
  .start { padding-top: 28px; }
  .start-h { font-size: 32px; }
  .srow { grid-template-columns: 104px minmax(0, 1fr) 14px; }
  .srow-svg { width: 104px; height: 66px; }
  .desk-only { display: block; }
  .plan-grid { grid-template-columns: minmax(0, 60fr) minmax(360px, 40fr); gap: 28px; align-items: start; }
  .col-draw { display: block; position: sticky; top: 8px; max-height: calc(100vh - var(--pb-h) - 16px); overflow-y: auto; padding-right: 4px; }
  .draw-card { position: static; margin: 0; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); }
  .drawing { max-height: 52vh; }
  #desk-bom { margin-top: 16px; }
  .steps { margin-top: 0; }
  .sheet { left: auto; right: 24px; bottom: calc(var(--pb-h) + 12px); width: 440px; border-radius: 18px; max-height: calc(100vh - var(--pb-h) - 40px); }
  .sheet-grab { display: none; }
  .sheet-ov { background: rgba(14, 14, 14, .12); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
