/* MassKante · Konfigurator und Warenkorb
   Baut auf site.css auf. Die Nische ist die Bühne, das Bedienfeld liegt auf Haarlinien,
   Gelb gibt es nur am Hauptknopf. */

:root {
  --head-h: 76px;
  --panel-w: 480px;
  --bar-h: 104px;
}

/* Kopf als feste Leiste */
.site-head.is-bar {
  position: sticky; top: 0; inset: auto; height: var(--head-h);
  padding: 0 var(--gutter);
  background: var(--room-edge);
  border-bottom: 1px solid var(--rib-dim);
}
.head-cart {
  margin-left: auto; display: inline-flex; align-items: center; gap: 10px;
  font-size: .95rem; color: #D6CDBE; text-decoration: none; padding: 9px 4px;
  transition: color 160ms;
}
.head-cart:hover, .head-cart[aria-current="page"] { color: var(--washi-hot); }
.head-cart + .head-cta { margin-left: 0; }
.cart-n {
  min-width: 26px; padding: 3px 7px; text-align: center;
  font: 500 .78rem/1 var(--mono); font-variant-numeric: tabular-nums;
  color: var(--text-muted); border: 1px solid var(--rib-dim); border-radius: 2px;
}
.head-cart.has-items .cart-n { color: var(--washi-hot); border-color: var(--rib); }
@media (max-width: 1100px) {
  .head-cart + .head-cta + .menu-btn, .head-cart ~ .menu-btn { margin-left: 16px; }
}

/* ---------- Grundraster ---------- */
.konf {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--panel-w);
  min-height: calc(100svh - var(--head-h));
  background: var(--room-edge);
}

/* ---------- Bühne: die Nische ---------- */
.k-stage {
  position: sticky; top: var(--head-h);
  height: calc(100svh - var(--head-h)); min-width: 0; overflow: hidden;
  background: radial-gradient(ellipse 70% 65% at 50% 46%, #2A241E 0%, var(--room) 52%, var(--room-edge) 100%);
}
.k-stage.is-raum { background: radial-gradient(ellipse 90% 80% at 50% 40%, #3A352F 0%, #23201C 70%, var(--room-edge) 100%); }
#view { position: absolute; inset: 0; }
#view canvas { display: block; outline: none; cursor: grab; touch-action: none; }
#view canvas:active { cursor: grabbing; }
.k-loading { position: absolute; inset: 0; display: grid; place-items: center; font: 400 .85rem var(--mono); color: var(--text-muted); }

.k-toolbar {
  position: absolute; left: var(--gutter); right: var(--gutter); top: 20px;
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; pointer-events: none;
}
.k-grp {
  pointer-events: auto; display: flex; gap: 2px; padding: 3px;
  background: rgba(17, 18, 19, .72); border: 1px solid var(--rib-dim); border-radius: 2px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.k-tb {
  display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 6px 12px;
  font: 450 .88rem var(--font); color: var(--text-muted);
  background: transparent; border: 0; border-radius: 2px; cursor: pointer;
  transition: color 160ms, background-color 160ms;
}
.k-tb svg { width: 16px; height: 16px; flex: none; }
.k-tb:hover { color: var(--washi-hot); }
.k-tb[aria-pressed="true"] { color: var(--washi-hot); background: rgba(255, 249, 238, .08); box-shadow: inset 0 -1.5px 0 var(--washi-hot); }

/* Maßetiketten auf den Maßlinien */
#labels { position: absolute; inset: 0; pointer-events: none; }
.lbl {
  position: absolute; left: 0; top: 0;
  font: 500 .82rem/1 var(--mono); font-variant-numeric: tabular-nums; letter-spacing: .02em;
  color: var(--washi-hot); background: rgba(17, 18, 19, .78);
  padding: 5px 8px; border: 1px solid var(--rib-dim); white-space: nowrap;
  transition: opacity .25s;
}
.lbl small { margin-left: 4px; font-size: .7rem; color: var(--text-muted); }

.k-helper, .k-note {
  position: absolute; bottom: 18px; margin: 0;
  font: 400 .68rem var(--mono); color: #A39A8C; pointer-events: none;
}
.k-helper { left: 50%; transform: translateX(-50%); white-space: nowrap; transition: opacity .6s; }
.k-helper.gone { opacity: 0; }
.k-note { left: var(--gutter); }
.k-helper:not(.gone) + .k-toast + .k-note { opacity: 0; }
.k-toast {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: 52px; margin: 0 auto; max-width: 520px;
  padding: 12px 16px; font-size: .9rem; line-height: 1.45; color: var(--text);
  background: rgba(17, 18, 19, .9); border: 1px solid rgba(240, 138, 108, .55); border-radius: 2px;
}
.k-toast b { color: var(--error); font-weight: 560; }

/* ---------- Bedienfeld ---------- */
.k-panel {
  min-width: 0; padding: 40px clamp(20px, 2.4vw, 36px) calc(var(--bar-h) + 120px);
  border-left: 1px solid var(--rib-dim);
  background: linear-gradient(180deg, rgba(247, 239, 223, .025), rgba(247, 239, 223, 0) 320px), var(--room);
}
.k-intro h1 {
  font-size: clamp(1.9rem, 2.4vw, 2.4rem); line-height: 1.06; font-weight: 300; font-stretch: 104%;
  letter-spacing: -.02em; color: var(--washi-hot);
}
.k-intro p { margin-top: 14px; color: #CFC6B7; font-size: 1rem; max-width: 30rem; }

.k-step { padding: 28px 0; border-top: 1px solid var(--rib-dim); }
.k-intro + .k-step { margin-top: 32px; }
.k-step h2 {
  display: flex; align-items: baseline; gap: 14px; margin-bottom: 18px;
  font-size: 1.3rem; font-weight: 420; letter-spacing: -.01em; color: var(--washi-hot);
}
.k-n { font: 500 .85rem var(--mono); color: var(--rib); min-width: 1ch; }
.k-step h2 em { margin-left: auto; font-style: normal; font-size: .85rem; font-weight: 400; color: var(--text-muted); letter-spacing: 0; }

.k-hint { margin: 10px 0 0; font-size: .88rem; line-height: 1.5; color: var(--text-muted); }
.k-hsub { margin: -10px 0 14px calc(64px + 14px); }
.k-hint b { color: var(--text); font-weight: 500; }
.warn, .modwarn { margin: 12px 0 0; font-size: .9rem; line-height: 1.45; color: var(--error); }
.modwarn { font-size: .85rem; }

/* Möbelwahl */
.k-prod { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-bottom: 1px solid var(--rib-dim); }
.k-prod button {
  display: grid; gap: 6px; align-content: start; justify-items: start; padding: 4px 6px 14px;
  font: 450 .95rem/1.25 var(--font); text-align: left; color: var(--text-muted);
  background: none; border: 0; border-bottom: 1.5px solid transparent; margin-bottom: -1px; cursor: pointer;
  transition: color 160ms, border-color 160ms;
}
.k-prod svg { width: 100%; height: 42px; color: #6E6558; transition: color 160ms; }
.k-prod small { font-size: .78rem; color: #8D8576; line-height: 1.3; }
.k-prod button:hover { color: var(--text); }
.k-prod button:hover svg { color: var(--rib); }
.k-prod button[aria-pressed="true"] { color: var(--washi-hot); border-bottom-color: var(--washi-hot); }
.k-prod button[aria-pressed="true"] svg { color: var(--washi); }

/* Maße: Regler und Maßeingabe */
.k-field { display: grid; grid-template-columns: 64px minmax(0, 1fr) 104px; align-items: center; gap: 14px; margin: 14px 0; }
.k-field label { font: 500 .72rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); }
.k-field input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; }
.k-field input[type="range"]::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(90deg, var(--rib) var(--f, 50%), var(--rib-dim) var(--f, 50%)); }
.k-field input[type="range"]::-moz-range-track { height: 2px; background: var(--rib-dim); }
.k-field input[type="range"]::-moz-range-progress { height: 2px; background: var(--rib); }
.k-field input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; margin-top: -7px; background: var(--washi-hot); border: 0; border-radius: 50%; transition: transform 160ms var(--ease-out); }
.k-field input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; background: var(--washi-hot); border: 0; border-radius: 50%; }
.k-field input[type="range"]:hover::-webkit-slider-thumb { transform: scale(1.15); }
.k-field input[type="range"]:focus-visible { outline: 2px solid var(--stamp); outline-offset: 3px; }
.k-num { display: flex; align-items: baseline; gap: 6px; border-bottom: 1px solid var(--rib); transition: border-color 160ms; }
.k-num:hover { border-bottom-color: var(--washi); }
.k-num:focus-within { border-bottom: 2px solid var(--stamp); margin-bottom: -1px; }
.k-num input {
  width: 100%; min-width: 0; padding: 4px 2px; text-align: right;
  font: 500 1.2rem/1.1 var(--mono); font-variant-numeric: tabular-nums; color: var(--washi-hot);
  background: transparent; border: 0; outline: none;
}
.k-num span { font: 400 .8rem var(--mono); color: var(--text-muted); }

/* Aufteilung */
.stepper { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.stepper .k-hint { margin: 0; flex: 1; }
.stepper button {
  width: 44px; height: 44px; font: 300 1.3rem/1 var(--font); color: var(--text);
  background: transparent; border: 1px solid rgba(238, 231, 218, .35); border-radius: 2px; cursor: pointer;
  transition: border-color 160ms, background-color 160ms;
}
.stepper button:hover { border-color: var(--text); background: rgba(238, 231, 218, .06); }
.stepper output { font: 500 1.2rem var(--mono); font-variant-numeric: tabular-nums; color: var(--washi-hot); min-width: 2ch; text-align: center; }
.mods { display: grid; gap: 0; }
.mod { display: grid; gap: 10px; padding: 14px 0; border-top: 1px solid var(--rib-dim); transition: background-color 160ms; }
.mod:last-child { border-bottom: 1px solid var(--rib-dim); }
.mod:hover, .mod:focus-within { background: linear-gradient(90deg, rgba(247, 239, 223, .04), rgba(247, 239, 223, 0)); }
.modhead { display: flex; justify-content: space-between; font: 400 .8rem var(--mono); color: var(--text-muted); font-variant-numeric: tabular-nums; }
.modhead b { color: var(--washi-hot); font-weight: 500; }
.modbreite { display: inline-flex; align-items: center; gap: 6px; }
.modbreite input { width: 5.5em; font: inherit; color: var(--text); text-align: right; padding: 4px 6px; border: 1px solid var(--rib-dim); border-radius: 6px; background: transparent; }
.modgleich { justify-self: start; margin-top: 8px; padding: 0; border: 0; background: none; font: inherit; font-size: .85rem; color: var(--text); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.picks { display: flex; flex-wrap: wrap; gap: 6px; }
.pick {
  display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 6px 12px 6px 8px;
  font: 450 .88rem var(--font); color: var(--text-muted);
  background: transparent; border: 1px solid var(--rib-dim); border-radius: 2px; cursor: pointer;
  transition: color 160ms, border-color 160ms, background-color 160ms;
}
.pick svg { width: 22px; height: 22px; flex: none; }
.pick:hover { color: var(--text); border-color: var(--rib); }
.pick[aria-pressed="true"] { color: var(--washi-hot); border-color: var(--washi-hot); background: rgba(255, 249, 238, .06); }
.hinge { display: flex; align-items: center; gap: 6px; font-size: .85rem; color: var(--text-muted); }
.hinge span { margin-right: auto; }
.hinge em { font-style: normal; font: 400 .72rem var(--mono); color: #8D8576; margin-left: 6px; }
.hb {
  min-height: 34px; padding: 4px 12px; font: 450 .82rem var(--font); color: var(--text-muted);
  background: transparent; border: 1px solid var(--rib-dim); border-radius: 2px; cursor: pointer;
}
.hb:hover { color: var(--text); border-color: var(--rib); }
.hb[aria-pressed="true"] { color: var(--washi-hot); border-color: var(--washi-hot); }

/* Auswahlfelder */
.seg2, .seg3 { display: grid; gap: 8px; }
[hidden] { display: none !important; }
.k-fub { margin-top: 14px; padding: 2px 0 0 14px; border-left: 2px solid var(--washi-hot); }
.k-fub + .k-fub, .k-fub + #swFront { margin-top: 16px; }
.k-sublabel { margin: 0 0 8px; font: 500 .68rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); }
.k-fub .k-sublabel + .seg2 + .k-sublabel { margin-top: 12px; }
.k-fub .k-hint { margin-top: 8px; }
.seg3 .opt { min-width: 0; font-size: .92rem; hyphens: manual; overflow-wrap: anywhere; }
.seg2 { grid-template-columns: 1fr 1fr; }
.seg3 { grid-template-columns: repeat(3, 1fr); }
/* Auswahl mit wechselnder Anzahl, z. B. Grifflängen */
.segN { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
#griffWahl { display: grid; gap: 8px; margin-top: 8px; }
#griffWahl[hidden] { display: none; }
#ladeWahl { display: grid; gap: 8px; margin-top: 16px; }
#ladeWahl[hidden] { display: none; }
#segGriff, #segDeckel, #segLeiste { margin-top: 18px; }
#segFuss { margin-top: 12px; }
.schopts { display: grid; gap: 18px; }
.lbl2 { margin-bottom: 8px; font: 500 .72rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); }
.opt {
  display: grid; gap: 2px; padding: 12px 14px; text-align: left;
  font: 480 .95rem/1.25 var(--font); color: var(--text);
  background: transparent; border: 1px solid var(--rib-dim); border-radius: 2px; cursor: pointer;
  transition: border-color 160ms, background-color 160ms, color 160ms;
}
.opt small { font-size: .78rem; font-weight: 400; color: var(--text-muted); }
.opt:hover { border-color: var(--rib); }
.opt[aria-pressed="true"] { color: var(--washi-hot); border-color: var(--washi-hot); background: rgba(255, 249, 238, .06); }
.opt:disabled { opacity: .38; cursor: not-allowed; }
.opt:disabled:hover { border-color: var(--rib-dim); }

/* Dekore */
.swgroup { margin-top: 20px; }
.swgroup h3 { margin: 0 0 10px; font: 500 .72rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 8px; }
.sw {
  position: relative; aspect-ratio: 1; max-width: 100%; padding: 0; cursor: pointer;
  border: 0; border-radius: 0; background-size: cover;
  box-shadow: inset 0 1px 0 rgba(255, 236, 200, .35), inset 0 0 0 1px rgba(0, 0, 0, .25);
  transition: transform 160ms var(--ease-out);
}
.sw:hover { transform: translateY(-2px); }
.sw[aria-pressed="true"] { outline: 1.5px solid var(--washi-hot); outline-offset: 3px; }
.swname { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; font-size: .92rem; color: var(--text-muted); }
.swname b { color: var(--washi-hot); font-weight: 500; }
.swname code { font: 400 .78rem var(--mono); color: #8D8576; white-space: nowrap; }
.linkbtn { font: inherit; color: var(--text); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-decoration-color: var(--rib); text-underline-offset: .22em; }
.k-sample { margin-top: 20px; font-size: .9rem; color: var(--text-muted); }
.k-sample .link-quiet { margin-left: 4px; }

.toggle { display: flex; align-items: flex-start; gap: 12px; margin-top: 16px; font-size: .95rem; line-height: 1.45; color: var(--text); cursor: pointer; }
.toggle input {
  -webkit-appearance: none; appearance: none; flex: none; width: 20px; height: 20px; margin: 1px 0 0;
  border: 1px solid var(--rib); border-radius: 2px; background: transparent; cursor: pointer;
  display: grid; place-content: center; transition: border-color 160ms, background-color 160ms;
}
.toggle input::after { content: ""; width: 10px; height: 6px; border: solid var(--ink); border-width: 0 0 1.6px 1.6px; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.toggle input:checked { background: var(--washi-hot); border-color: var(--washi-hot); }
.toggle input:checked::after { opacity: 1; }
.toggle input:hover { border-color: var(--washi); }

/* Preis */
.breakdown { font-size: .95rem; }
.breakdown div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--rib-dim); color: #CFC6B7; }
.breakdown div span:last-child { font-family: var(--mono); font-variant-numeric: tabular-nums; color: var(--text); white-space: nowrap; }
.breakdown .tot { border-bottom: 0; color: var(--washi-hot); font-weight: 500; }
.breakdown .tot span:last-child { color: var(--washi-hot); font-weight: 500; }
.k-promises { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 28px; }
.k-promises li { padding: 0 14px; font-size: .82rem; line-height: 1.4; color: var(--text-muted); border-left: 1px solid var(--rib-dim); }
.k-promises li:first-child { padding-left: 0; border-left: 0; }
.k-promises b { display: block; margin-bottom: 4px; font-size: .9rem; font-weight: 500; color: var(--text); }

details.intern { margin-top: 28px; padding: 12px 14px; border: 1px dashed var(--rib-dim); }
details.intern summary { cursor: pointer; font: 400 .8rem var(--mono); color: var(--text-muted); }
.tbl { overflow-x: auto; }
.tbl table { border-collapse: collapse; width: 100%; margin-top: 8px; font: 400 .75rem var(--mono); font-variant-numeric: tabular-nums; }
.tbl th, .tbl td { text-align: left; padding: 6px; border-bottom: 1px solid var(--rib-dim); white-space: nowrap; }
.tbl .r { text-align: right; }

/* Hinweis auf den nächsten Schritt, sitzt auf der Preisleiste und blendet den Inhalt darüber weich aus */
.k-step { scroll-margin-top: calc(var(--head-h) + 12px); }
.k-more {
  position: absolute; left: 0; right: 0; bottom: 100%;
  display: flex; align-items: flex-end; justify-content: center; gap: 8px;
  height: 72px; padding: 0 0 12px; border: 0; cursor: pointer;
  font: 500 .72rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--washi-hot);
  background: linear-gradient(180deg, rgba(17, 18, 19, 0), var(--room-edge) 78%);
}
.k-more[hidden] { display: none; }
.k-more-lbl { color: var(--text-muted); }
#kMoreName { font: 450 .95rem/1 var(--font); letter-spacing: 0; text-transform: none; }
.k-more svg { width: 12px; height: 12px; animation: k-nudge 1.6s var(--ease-out) 3; }
.k-more:hover, .k-more:focus-visible { color: #fff; }
@keyframes k-nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(3px); } }

/* Preisleiste */
.k-pricebar {
  position: fixed; right: 0; bottom: 0; z-index: 12; width: var(--panel-w);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px 20px;
  padding: 16px clamp(20px, 2.4vw, 36px) calc(16px + env(safe-area-inset-bottom, 0px));
  background: var(--room-edge); border-top: 1px solid var(--rib-dim); border-left: 1px solid var(--rib-dim);
}
.k-price { display: grid; gap: 4px; margin: 0; }
.k-price output { font-size: 1.75rem; line-height: 1.1; font-weight: 360; font-stretch: 104%; font-variant-numeric: tabular-nums; color: var(--washi-hot); }
.k-price output.is-pending { color: var(--text-muted); }
.k-sub { font-size: .8rem; color: var(--text-muted); }
.k-pricebar .btn:disabled { opacity: .4; cursor: not-allowed; }
.k-added {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 14px;
  padding-bottom: 12px; margin-bottom: 2px; border-bottom: 1px solid var(--rib-dim);
  font-size: .9rem; color: var(--text);
}
.k-added[hidden] { display: none; }
.k-added p { margin: 0; flex: 1; }
.k-added.is-in { animation: k-in 420ms var(--ease-out); }
/* Planung speichern: Link, Kopieren, E-Mail (19.10.2026) */
.k-save { grid-column: 1 / -1; position: relative; display: grid; gap: 10px; padding-bottom: 14px; margin-bottom: 2px; border-bottom: 1px solid var(--rib-dim); font-size: .9rem; color: var(--text); }
.k-save[hidden] { display: none; }
.k-save p { margin: 0; padding-right: 36px; }
.k-save input { width: 100%; box-sizing: border-box; font: 500 .78rem/1.4 var(--mono); padding: 9px 10px; border: 1px solid var(--rib-dim); border-radius: 3px; background: transparent; color: var(--text); }
.k-save-acts { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.k-save-acts .btn { padding: 9px 14px; font-size: .85rem; }
.k-save-acts .link-quiet, .k-savebtn { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; font-size: .85rem; }
.k-save-note { min-height: 1.2em; margin: 0; color: var(--text-muted); font-size: .82rem; }
.k-save .k-close { position: absolute; right: 0; top: 0; }
.k-savebtn { justify-self: start; margin-top: 2px; font-size: .82rem; }
@keyframes k-in { from { opacity: 0; transform: translateY(6px); } }
.k-close { flex: none; width: 36px; height: 36px; display: grid; place-items: center; color: var(--text-muted); background: none; border: 1px solid transparent; border-radius: 2px; cursor: pointer; }
.k-close svg { width: 12px; height: 12px; }
.k-close:hover { color: var(--washi-hot); border-color: var(--rib-dim); }

/* Unter der Preisleiste: Fuß mit Luft */
.konf + .site-foot { padding-bottom: calc(var(--bar-h) + 24px); }

/* ---------- Warenkorb ---------- */
.cart { padding: calc(var(--sec-y) * .6) 0 var(--sec-y); min-height: calc(100svh - var(--head-h) - 200px); }
.cart h1 { font-size: var(--h2); line-height: 1.04; font-weight: 300; font-stretch: 104%; letter-spacing: -.02em; color: var(--washi-hot); }
.cart-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 5vw, 80px); align-items: start; margin-top: 48px; }
.cart-list { border-top: 1px solid var(--rib-dim); }
.cart-item { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 8px 22px; padding: 24px 0; border-bottom: 1px solid var(--rib-dim); }
.cart-chips { display: grid; grid-template-rows: 1fr 22px; gap: 4px; height: 72px; }
.cart-chips span { background-size: cover; box-shadow: inset 0 1px 0 rgba(255, 236, 200, .35), inset 0 0 0 1px rgba(0, 0, 0, .25); }
.cart-item h2 { font-size: 1.25rem; font-weight: 440; color: var(--washi-hot); }
.cart-dims { margin-top: 4px; font: 500 .95rem var(--mono); font-variant-numeric: tabular-nums; color: var(--text); }
.cart-dims small { font-size: .78rem; color: var(--text-muted); font-weight: 400; }
.cart-meta { margin-top: 8px; font-size: .9rem; line-height: 1.55; color: var(--text-muted); }
.cart-side { display: grid; justify-items: end; align-content: space-between; gap: 12px; }
.cart-price { font: 500 1.05rem var(--mono); font-variant-numeric: tabular-nums; color: var(--washi-hot); white-space: nowrap; }
.cart-remove { font: 450 .88rem var(--font); color: var(--text-muted); background: none; border: 0; padding: 6px 0; cursor: pointer; text-decoration: underline; text-decoration-color: var(--rib-dim); text-underline-offset: .22em; }
.cart-remove:hover { color: var(--washi-hot); text-decoration-color: var(--rib); }
.cart-empty { padding: 32px 0; border-bottom: 1px solid var(--rib-dim); }
.cart-empty p { margin-bottom: 20px; font-size: var(--lead); color: #CFC6B7; }
.cart .render-note { margin-top: 24px; }
.cart-sum { display: grid; gap: 4px; padding: 26px 28px 28px; border: 1px solid var(--rib-dim); background: linear-gradient(180deg, rgba(247, 239, 223, .04), rgba(247, 239, 223, .01)); position: sticky; top: calc(var(--head-h) + 24px); }
.cart-sum[hidden] { display: none; }
.cart-sum .btn { width: 100%; margin-top: 20px; }
.cart-sum .toggle { font-size: .92rem; }
.cart-sum .field-error { margin-top: 6px; }
.cart-sum.has-error .field-error { display: block; }
.cart-sum.has-error #cbMasse { border-color: var(--error); }
.cart-montage { margin: 22px 0 6px; padding-top: 20px; border-top: 1px solid var(--rib-dim); }
.cart-montage h2 { margin-bottom: 14px; font-size: 1rem; font-weight: 500; color: var(--washi-hot); }
.cart-montage .field { margin-bottom: 0; }
.cart-montage .field input { max-width: 9em; font-family: var(--mono); letter-spacing: .04em; }
.cart-montage .toggle b { font: 500 .92rem var(--mono); font-variant-numeric: tabular-nums; color: var(--washi-hot); white-space: nowrap; }
.toggle:has(input:disabled) { cursor: default; color: var(--text-muted); }
.toggle input:disabled { opacity: .45; cursor: default; }

/* ---------- Kleinere Bildschirme ---------- */
@media (max-width: 1200px) {
  :root { --panel-w: 420px; }
  .k-prod { grid-template-columns: 1fr 1fr; row-gap: 6px; }
}
@media (max-width: 1000px) {
  :root { --head-h: 68px; --bar-h: 92px; }
  .konf { grid-template-columns: 1fr; }
  .k-stage { position: relative; top: auto; height: clamp(320px, 56svh, 520px); }
  .k-panel { border-left: 0; padding: 32px var(--gutter) calc(var(--bar-h) + 40px); }
  .k-pricebar { width: 100%; border-left: 0; padding-inline: var(--gutter); }
  .k-helper { display: none; }
  .k-note { bottom: 12px; }
  .k-prod { grid-template-columns: repeat(4, 1fr); }
  .cart-grid { grid-template-columns: 1fr; }
  .cart-sum { position: static; }
}
@media (max-width: 640px) {
  .k-tb span { display: none; }
  .k-tb { padding: 6px 10px; min-width: 40px; justify-content: center; }
  .k-prod { grid-template-columns: 1fr 1fr; }
  .k-field { grid-template-columns: 56px minmax(0, 1fr) 92px; gap: 10px; }
  .seg3 { grid-template-columns: 1fr; }
  .k-promises { grid-template-columns: 1fr; gap: 12px; }
  .k-promises li { padding: 0; border-left: 0; }
  .k-price output { font-size: 1.45rem; }
  .k-pricebar { gap: 8px 14px; }
  .k-pricebar .btn { padding: 14px 18px; }
  .head-cart { font-size: 0; gap: 0; }
  .head-cart .cart-n { font-size: .78rem; }
  .head-cart::before { content: ""; width: 20px; height: 20px; margin-right: 8px; background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='1.3'%3E%3Cpath d='M2 3h2.5l2 10h9l1.5-7H5.5'/%3E%3Ccircle cx='8' cy='16.5' r='1.2'/%3E%3Ccircle cx='14.5' cy='16.5' r='1.2'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='1.3'%3E%3Cpath d='M2 3h2.5l2 10h9l1.5-7H5.5'/%3E%3Ccircle cx='8' cy='16.5' r='1.2'/%3E%3Ccircle cx='14.5' cy='16.5' r='1.2'/%3E%3C/svg%3E") center / contain no-repeat; }
  .cart-item { grid-template-columns: 56px minmax(0, 1fr); }
  .cart-side { grid-column: 2; justify-items: start; grid-auto-flow: column; justify-content: space-between; align-items: center; }
  .cart-chips { height: 56px; grid-template-rows: 1fr 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .k-more svg { animation: none; }
  .k-added.is-in { animation: none; }
  .sw:hover { transform: none; }
}

/* ===== „Was im Preis steckt“ im Konfigurator (28.10.2026): Knopf in der Preiszeile, Dialog mit den sechs Punkten ===== */
.k-pricelinks { display: flex; gap: 16px; flex-wrap: wrap; align-items: baseline; }
.k-dialog { border: 0; padding: 0; margin: auto; background: var(--paper, #F6F1E8); color: var(--text, #1C1B19); width: min(760px, calc(100vw - 32px)); max-height: calc(100vh - 32px); border-radius: 2px; box-shadow: 0 30px 80px rgba(0,0,0,.45); overflow: auto; }
.k-dialog::backdrop { background: rgba(10,9,8,.7); }
.k-dialog-inhalt { padding: 36px 36px 32px; }
.k-eyebrow { display: block; font: 500 .7rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--washi-hot); margin-bottom: 10px; }
.k-dialog h2 { margin: 0 0 10px; font-size: 1.7rem; line-height: 1.1; }
.k-dialog-lead { margin: 0 0 24px; color: var(--text-muted); line-height: 1.5; max-width: 56ch; }
.k-impreis { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 28px; margin-bottom: 28px; }
.k-impreis > div { border-top: 1px solid currentColor; padding-top: 12px; }
.k-impreis .num { display: block; font: 400 1.2rem/1 var(--mono); color: var(--washi-hot); margin-bottom: 8px; }
.k-impreis h3 { margin: 0 0 6px; font-size: 1rem; }
.k-impreis p { margin: 0; font-size: .88rem; line-height: 1.5; color: var(--text-muted); }
.k-dialog-x { position: absolute; top: 12px; right: 12px; }
@media (max-width: 640px) { .k-impreis { grid-template-columns: 1fr; } .k-dialog-inhalt { padding: 28px 20px 24px; } }

/* ===== Warenkorb: Kundenangaben und Bestellen (28.10.2026) ===== */
.cart-kunde { margin: 22px 0 6px; padding-top: 20px; border-top: 1px solid var(--rib-dim); }
.cart-kunde h2 { margin-bottom: 14px; font-size: 1rem; font-weight: 500; color: var(--washi-hot); }
.cart-kunde .field { margin-bottom: 14px; }
.cart-kunde .field textarea { min-height: 64px; resize: vertical; line-height: 1.45; }
.cart-kunde .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.cart-sum .toggle + .toggle { margin-top: 12px; }
.cart-sum .cart-error { display: block; margin-top: 12px; }
.cart-sum .cart-error[hidden] { display: none; }
.cart-sum .btn[disabled] { opacity: .6; cursor: wait; }
/* Warenkorb-Spalten dürfen schmaler werden als ihr Inhalt (28.10.2026): vorher sprengte die Preisbox ab etwa 1100 px die Seite */
.cart-grid > * { min-width: 0; }
.cart-sum { grid-template-columns: minmax(0, 1fr); }
