/* Küche · 3D-Planung. Handy zuerst (390 px), Rechner ab 900 px. Keine Inline-Stile (CSP style-src 'self'). */
:root {
  --bg: #ebe7e1;
  --paper: #fffdfa;
  --glass: rgba(255, 253, 250, 0.9);
  --ink: #2c2620;
  --muted: #6b6156;   /* F1: 4,9:1 auf dem Seitengrund (vorher #776c60 = 4,2:1) */
  --line: #e2dbd1;
  --accent: #85532f;   /* F1: 5,2:1 auf --accent-soft und dem Seitengrund (vorher #8c5a35 = 4,7:1) */
  --accent-soft: #f3e7da;
  --ok: #3f7a4a;
  --warn: #a8461f;
  --radius: 14px;
  --bar-h: 62px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --shadow: 0 6px 24px rgba(52, 40, 28, 0.14), 0 1px 3px rgba(52, 40, 28, 0.1);
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); overflow: hidden; }
body {
  font: 15px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}
button, select { font: inherit; color: inherit; }
button { cursor: pointer; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic.s { width: 16px; height: 16px; }

#c { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; outline: none; }

/* Kopfzeile */
#top {
  position: fixed; z-index: 20; top: calc(var(--safe-t) + 8px); left: 8px; right: 8px;
  display: grid; grid-template-columns: 1fr auto; gap: 6px 8px; align-items: center;
  padding: 8px 10px 7px; background: var(--glass); border-radius: var(--radius); box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.brand { display: flex; align-items: baseline; gap: 7px; min-width: 0; }
.brand strong { font-size: 16px; letter-spacing: 0.01em; }
.brand span { color: var(--muted); font-size: 13px; white-space: nowrap; }
.price {
  display: flex; flex-direction: column; align-items: flex-end; border: 0; background: var(--accent-soft);
  border-radius: 10px; padding: 3px 10px 4px; line-height: 1.15; min-height: 40px; justify-content: center;
}
.price small { font-size: 11px; color: var(--muted); }
.price b { font-size: 16px; color: var(--accent); font-variant-numeric: tabular-nums; }
.segs { grid-column: 1 / -1; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.seg { display: flex; background: #efe9e1; border-radius: 10px; padding: 3px; gap: 2px; }
.seg button {
  border: 0; background: transparent; border-radius: 8px; padding: 7px 12px; min-height: 36px; min-width: 44px;
  color: var(--muted); font-weight: 600; font-size: 14px; white-space: nowrap;
}
.seg button[aria-pressed="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 1px 3px rgba(52, 40, 28, 0.18); }
.seg .cap { align-self: center; font-size: 11px; color: var(--muted); padding: 0 4px 0 6px; font-weight: 500; }
#varSel { border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; background: var(--paper); max-width: 100%; }
#variantKurz { grid-column: 1 / -1; margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.3; }

.banner {
  position: fixed; z-index: 19; left: 8px; right: 8px; top: calc(var(--safe-t) + 150px);
  display: flex; gap: 8px; align-items: flex-start; padding: 8px 10px; border-radius: 12px;
  background: #fff4e3; color: #6d4515; box-shadow: var(--shadow); font-size: 13px;
}
.banner span { flex: 1; }
.banner button { border: 0; background: transparent; padding: 2px; min-width: 32px; min-height: 32px; color: inherit; }

/* Blickwinkel-Chips */
#views {
  position: fixed; z-index: 15; left: 0; right: 0; bottom: calc(var(--bar-h) + var(--safe-b) + 8px);
  display: flex; gap: 6px; overflow-x: auto; padding: 2px 8px; scrollbar-width: none;
}
#views::-webkit-scrollbar { display: none; }
#views button {
  flex: none; border: 0; border-radius: 999px; padding: 8px 13px; min-height: 38px; background: var(--glass);
  box-shadow: var(--shadow); font-size: 13.5px; font-weight: 600; color: var(--ink);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
#views button[aria-pressed="true"] { background: var(--ink); color: #fff; }

/* Werkzeugleiste */
#bar {
  position: fixed; z-index: 16; left: 0; right: 0; bottom: 0; height: calc(var(--bar-h) + var(--safe-b));
  padding-bottom: var(--safe-b); display: grid; grid-template-columns: repeat(5, 1fr);
  background: var(--glass); border-top: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
#bar button {
  border: 0; background: transparent; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; font-size: 11.5px; color: var(--muted); min-height: 44px;
}
#bar button[aria-pressed="true"] { color: var(--accent); }
#bar button[aria-pressed="true"] .ic { stroke-width: 2.1; }
#bar button:focus-visible, #views button:focus-visible, .seg button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

/* Bottom-Sheets */
.sheet {
  position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; background: var(--paper);
  border-radius: 18px 18px 0 0; box-shadow: 0 -8px 30px rgba(52, 40, 28, 0.2);
  padding: 6px 0 calc(var(--safe-b) + 10px); display: flex; flex-direction: column;
}
.sheet[hidden] { display: none; }
.grab { width: 40px; height: 5px; border-radius: 3px; background: #d8d0c4; margin: 2px auto 6px; flex: none; }
.sheet .x { border: 0; background: #f1ece5; border-radius: 50%; width: 36px; height: 36px; display: grid; place-items: center; }
.card { max-height: 50vh; }
.card .x { position: absolute; top: 10px; right: 12px; }
#cardBody { overflow-y: auto; padding: 0 16px 4px; -webkit-overflow-scrolling: touch; }
#cardBody h2 { margin: 2px 44px 2px 0; font-size: 18px; line-height: 1.25; }
#cardBody .art { margin: 0 0 8px; color: var(--muted); font-size: 13.5px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0 0 8px; font-size: 14.5px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-variant-numeric: tabular-nums; }
.note { background: #f6f1ea; border-radius: 10px; padding: 8px 10px; font-size: 13.5px; margin: 6px 0; }
.btnrow { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 2px; }
.btn {
  display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 10px; padding: 9px 13px;
  min-height: 42px; background: var(--ink); color: #fff; text-decoration: none; font-weight: 600; font-size: 14px;
}
.btn.ghost { background: #f1ece5; color: var(--ink); }

.panel { height: 74vh; }
.tabs {
  display: flex; gap: 4px; padding: 0 10px 8px 12px; overflow-x: auto; flex: none; align-items: center;
  border-bottom: 1px solid var(--line); scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs [role="tab"] {
  flex: none; border: 0; background: transparent; padding: 8px 10px; border-radius: 9px; min-height: 38px;
  font-weight: 600; font-size: 14px; color: var(--muted);
}
.tabs [role="tab"][aria-selected="true"] { background: var(--accent-soft); color: var(--accent); }
.tabs .x { margin-left: auto; flex: none; }
.pbody { overflow-y: auto; padding: 10px 14px 18px; -webkit-overflow-scrolling: touch; flex: 1; outline: none; }
.pbody h3 { font-size: 15px; margin: 14px 0 6px; }
.pbody h3:first-child { margin-top: 2px; }
.pbody p { margin: 4px 0 8px; }
.pbody ul { margin: 4px 0 10px; padding-left: 18px; }
.pbody li { margin: 3px 0; }
.muted { color: var(--muted); }
.nw { white-space: nowrap; font-size: 12.5px; }
.small { font-size: 12.5px; }

table.t { width: 100%; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
table.t th, table.t td { text-align: left; padding: 7px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.t th { font-size: 12px; color: var(--muted); font-weight: 600; }
table.t td.n, table.t th.n { text-align: right; white-space: nowrap; }
table.t tr.sum td { font-weight: 700; border-bottom: 0; border-top: 2px solid var(--ink); }
table.t tr.click { cursor: pointer; }
table.t tr.click:hover td, table.t tr.sel td { background: #f6efe6; }
table.t th.cur, table.t td.cur { background: var(--accent-soft); }
.tscroll { overflow-x: auto; margin: 0 -14px; padding: 0 14px; }
.tscroll table { min-width: 520px; }
.gcard { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin: 0 0 10px; }
.gcard h4 { margin: 0 0 2px; font-size: 15px; }
.gcard .cat { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.tag { display: inline-block; font-size: 11.5px; padding: 1px 7px; border-radius: 999px; background: #eef3ec; color: var(--ok); margin-left: 6px; vertical-align: 1px; }
a { color: var(--accent); }

/* Maß-Beschriftungen */
#dims { position: fixed; inset: 0; pointer-events: none; z-index: 5; overflow: hidden; }
#dims .d {
  position: absolute; left: 0; top: 0; transform-origin: 0 0; white-space: nowrap; pointer-events: none;
  background: rgba(255, 253, 250, 0.94); border: 1px solid #c79a73; color: #5d3b20; border-radius: 7px;
  padding: 2px 6px 3px; font-size: 12.5px; font-weight: 700; line-height: 1.15; text-align: center;
  box-shadow: 0 1px 4px rgba(52, 40, 28, 0.18); font-variant-numeric: tabular-nums;
}
#dims .d small { display: block; font-size: 10.5px; font-weight: 500; color: var(--muted); }
#dims .d.bad { border-color: var(--warn); color: var(--warn); }
#dims .d[hidden] { display: none; }

/* Ladeanzeige */
#loading {
  position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; background: var(--bg); color: var(--muted); text-align: center; padding: 24px;
}
#loading.done { display: none; }
#loading.err { color: var(--warn); }
.spin { width: 34px; height: 34px; border-radius: 50%; border: 3px solid #d8cfc3; border-top-color: var(--accent); animation: spin 0.9s linear infinite; }
#loading.err .spin { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 600px) {
  .seg .cap { display: none; }
  #variantKurz .vl { display: none; }
  .segs { flex-wrap: nowrap; }
}
@media (max-width: 370px) {
  .seg button { padding: 7px 9px; }
  .brand span { display: none; }
}

/* Rechner */
@media (min-width: 900px) {
  #top { right: auto; width: 520px; left: 16px; top: 16px; padding: 10px 12px; }
  .banner { left: 16px; right: auto; width: 520px; top: 150px; }
  #views { left: 50%; right: auto; transform: translateX(-50%); bottom: 88px; max-width: calc(100vw - 32px); }
  #bar {
    left: 50%; right: auto; bottom: 16px; transform: translateX(-50%); width: 480px; height: 62px; padding: 0;
    border-radius: 16px; border: 0; box-shadow: var(--shadow);
  }
  .sheet { border-radius: 16px; box-shadow: var(--shadow); }
  .card { left: 16px; right: auto; bottom: 150px; width: 390px; max-height: calc(100vh - 340px); padding-bottom: 12px; }
  .panel { left: auto; right: 16px; top: 16px; bottom: 16px; width: 440px; height: auto; padding-bottom: 8px; }
  .panel .grab, .card .grab { display: none; }
  .card { padding-top: 12px; }
  .panel { padding-top: 12px; }
}
@media (prefers-reduced-motion: reduce) { .spin { animation: none; } }

/* Kostenvergleich: Raster statt breiter Tabelle (passt ohne seitliches Scrollen auf 390 px) */
.empf { background: var(--accent-soft); border: 1px solid #e2c9ad; border-radius: 12px; padding: 10px 12px 4px; margin: 0 0 12px; }
.empf h3 { margin: 0 0 4px; color: var(--accent); font-size: 15px; }
.empf p { margin: 0 0 8px; font-size: 14px; }
.cmp { margin: 0 0 6px; }
.cmp-head, .cmp-vals { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 4px; }
.cmp-head { position: sticky; top: -10px; z-index: 2; background: var(--paper); padding: 6px 0 5px; border-bottom: 1px solid var(--line); }
.cmp-head span { font-size: 11.5px; font-weight: 700; color: var(--muted); text-align: right; padding: 3px 5px; border-radius: 6px; line-height: 1.2; }
.cmp-head span.cur, .cmp-vals span.cur { background: var(--accent-soft); color: var(--accent); }
.cmp-row { padding: 7px 0 6px; border-bottom: 1px solid var(--line); }
.cmp-row .lbl { font-size: 13px; line-height: 1.3; margin: 0 0 3px; }
.cmp-vals span { text-align: right; font-variant-numeric: tabular-nums; font-size: 13.5px; padding: 2px 5px; border-radius: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 22px; }
.cmp-row.sum { border-bottom: 2px solid var(--ink); }
.cmp-row.sum .lbl, .cmp-row.sum .cmp-vals span { font-weight: 700; }
.cmp-all { font-size: 13px; color: var(--ink); }
.cmp-list { list-style: none; margin: 2px 0 0; padding: 0; font-size: 13px; }
.cmp-list li { margin: 2px 0; padding: 1px 5px; border-radius: 6px; }
.cmp-list li.cur { background: var(--accent-soft); }

/* ===== Runde 2: Konfigurator, Fotos, Bestellliste ===== */
#bar { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 1fr; }
#priceBtn.mod small { color: var(--accent); font-weight: 600; }
.opts { max-height: 47vh; z-index: 31; }
.ohead { display: flex; align-items: center; justify-content: space-between; padding: 0 12px 6px 16px; flex: none; }
.ohead h2 { margin: 0; font-size: 16px; }
.opt { padding: 6px 0 7px; border-bottom: 1px solid var(--line); }
@media (max-width: 600px) {
  .opt { display: grid; grid-template-columns: 92px 1fr; gap: 0 8px; align-items: center; padding: 5px 0 6px; }
  .olbl { margin: 0; font-size: 12px; line-height: 1.2; overflow-wrap: anywhere; hyphens: auto; }
  .ohint { grid-column: 1 / -1; }
  .oseg button { min-height: 40px; }
  .oseg button span { font-size: 12.5px; line-height: 1.15; }
}
.opt:last-of-type { border-bottom: 0; }
.olbl { font-size: 13px; font-weight: 600; color: var(--muted); margin: 0 0 5px; }
.oseg { display: flex; flex-wrap: wrap; gap: 3px; background: #efe9e1; border-radius: 10px; padding: 3px; }
.oseg button {
  flex: 1 1 0; min-width: calc(33.3% - 3px); border: 0; background: transparent; border-radius: 8px; padding: 5px 5px 4px; min-height: 42px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; color: var(--muted); line-height: 1.15;
}
.oseg button span { font-size: 13.5px; font-weight: 600; text-align: center; }
.oseg button small { font-size: 11px; font-variant-numeric: tabular-nums; }
.oseg button[aria-pressed="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 1px 3px rgba(52, 40, 28, 0.18); }
.oseg button[aria-pressed="true"] small { color: var(--accent); }
.oseg button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.ohint { margin: 5px 2px 0; font-size: 12.5px; color: #6d4515; }
.osum { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; margin: 10px 0 8px; padding: 8px 10px; background: var(--accent-soft); border-radius: 10px; font-size: 13px; font-variant-numeric: tabular-nums; }
.osum b { margin-left: auto; color: var(--accent); font-size: 15px; }
#optsReset:disabled { opacity: 0.45; cursor: default; }
figure.foto { margin: 4px 0 10px; }
figure.foto img { display: block; max-width: 100%; max-height: 150px; height: auto; border-radius: 10px; background: #fff; border: 1px solid var(--line); object-fit: contain; }
figure.foto figcaption { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.gcard h5 { margin: 10px 0 4px; font-size: 13px; }
ul.alt, ul.blist { list-style: none; padding: 0; margin: 4px 0 6px; }
ul.alt li, ul.blist li { padding: 6px 0; border-bottom: 1px solid var(--line); }
ul.alt li:last-child, ul.blist li:last-child { border-bottom: 0; }
.brow { display: flex; gap: 10px; justify-content: space-between; align-items: baseline; }
.bname { font-size: 13.5px; }
.bpreis { font-size: 13.5px; font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; }
.tag2 { display: inline-block; font-size: 11.5px; padding: 1px 7px; border-radius: 999px; background: #eef3ec; color: var(--ok); margin: 2px 0; }
.bgroup { border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px 6px; margin: 0 0 10px; }
.bhead { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.bhead h4 { margin: 0; font-size: 15px; }
.btn.sm { min-height: 36px; padding: 6px 10px; font-size: 13px; }
.bsum { text-align: right; font-weight: 700; font-size: 14px; padding: 6px 0 2px; border-top: 2px solid var(--ink); font-variant-numeric: tabular-nums; }
.bsum.all { border-top: 0; color: var(--accent); font-size: 15px; }
.offscreen { position: fixed; left: -9999px; top: 0; opacity: 0; }
@media (max-width: 370px) { .oseg button span { font-size: 12.5px; } #bar button { font-size: 10.5px; } }
@media (min-width: 900px) {
  .opts { left: 16px; right: auto; top: 160px; bottom: auto; width: 340px; max-height: calc(100vh - 176px); padding: 12px 0 8px; }
  .opts .grab { display: none; }
  body[data-opts="1"] .card { left: 372px; }
  body[data-opts="1"] .banner { left: 372px; width: 420px; }
}

/* ===== Runde 3: Blätter schließbar, Optionen mit Gruppen und Farbfeldern, Preise, Maßgruppen ===== */
.grab { width: 100%; height: 26px; margin: -6px 0 0; padding: 0; background: transparent; border: 0; display: flex; align-items: center; justify-content: center; cursor: grab; touch-action: none; flex: none; }
.grab i { display: block; width: 44px; height: 5px; border-radius: 3px; background: #cfc6b9; }
.ohead { touch-action: none; }
.sheet { transition: transform 0.18s ease-out; will-change: transform; }
.sheet.drag { transition: none; }
.sheet .x { width: 44px; height: 44px; }
.sheet .x .ic { width: 22px; height: 22px; }
.card .x { top: 14px; }
.opts { max-height: 62vh; }
.onote { margin: 0 0 8px; }
.osum { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 2px 14px; margin: 2px 0 8px; padding: 8px 10px; }
.osum div { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.osum div span { color: var(--muted); font-size: 12.5px; }
.osum div b { margin-left: 0; font-size: 14px; color: var(--ink); font-variant-numeric: tabular-nums; }
.osum div.k b, .osum div.g b { color: var(--accent); font-size: 15px; }
.otools { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 6px; }
.otools .btn { flex: 1 1 auto; justify-content: center; }
.ogroup { margin: 6px 0 2px; }
.ogh { font-size: 12px !important; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); margin: 12px 0 2px !important; }
.odesc { margin: 0 0 4px; font-size: 12px; color: var(--muted); }
@media (max-width: 600px) {
  .opt { display: block; padding: 6px 0 8px; }
  .olbl { margin: 0 0 4px; font-size: 12.5px; }
}
.oseg button { position: relative; }
.oseg button .wl { font-size: 13px; font-weight: 600; text-align: center; line-height: 1.15; }
.oseg button small { white-space: nowrap; }
.oseg.sws button { flex: 1 1 calc(33.3% - 3px); min-width: calc(33.3% - 3px); flex-direction: column; padding-top: 6px; }
.sw { display: block; width: 26px; height: 26px; border-radius: 50%; border: 1px solid rgba(44, 38, 32, 0.25); background-size: cover; background-position: center; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.45); flex: none; margin-bottom: 2px; }
.oseg button[aria-pressed="true"] .sw { outline: 2px solid var(--accent); outline-offset: 2px; }
table.t tr.sub td { color: var(--muted); font-size: 12.5px; padding-top: 4px; padding-bottom: 4px; }
table.t tr.rab td { color: var(--ok); }
.bsums { border-top: 2px solid var(--ink); padding-top: 4px; }
.bline { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; padding: 2px 0; font-variant-numeric: tabular-nums; }
.bline.rab { color: var(--ok); }
.bline.sum { font-size: 14.5px; }
.bline b { white-space: nowrap; }
#dimgroups {
  position: fixed; z-index: 15; left: 0; right: 0; bottom: calc(var(--bar-h) + var(--safe-b) + 54px);
  display: flex; gap: 6px; justify-content: center; padding: 2px 8px;
}
#dimgroups button {
  border: 1px solid #c79a73; border-radius: 999px; padding: 6px 12px; min-height: 36px; background: var(--glass); color: #5d3b20;
  font-size: 13px; font-weight: 600; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
#dimgroups button[aria-pressed="false"] { opacity: 0.55; text-decoration: line-through; }
#dims .d.s { font-size: 11px; padding: 1px 4px 2px; border-radius: 5px; }
#dims .d.s small { display: none; }
#dims .d.h { border-color: #7d8fa0; color: #34495c; }
.pdfbusy { opacity: 0.6; pointer-events: none; }
@media (min-width: 900px) {
  #dimgroups { left: 50%; right: auto; transform: translateX(-50%); bottom: 140px; }
  .opts { max-height: calc(100vh - 176px); width: 360px; }
  body[data-opts="1"] .card { left: 392px; }
  body[data-opts="1"] .banner { left: 392px; }
  .grab { display: none; }
  .oseg.sws button { flex: 1 1 calc(33.3% - 3px); }
}

/* ===== Runde 4: Optionen durchklicken und dabei die Küche sehen (Fokus-Ansicht) ===== */
/* Handy: Optionsfenster halb hoch (Höhe setzt app.js), hochziehen auf ganz; Szene bleibt darüber sichtbar */
@media (max-width: 899px) {
  .opts { max-height: none; transition: height 0.22s ease-out, transform 0.18s ease-out; }
  .opts.drag { transition: none; }
  .opts .grab i { width: 48px; }
  .opts.full .grab i { background: #b9ae9f; }
}
.ofollow {
  display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: transparent; padding: 6px 2px 8px;
  min-height: 44px; text-align: left; font-size: 13.5px; font-weight: 600; color: var(--ink);
}
.ofollow .tg {
  position: relative; flex: none; width: 40px; height: 24px; border-radius: 999px; background: #d8d0c4;
  transition: background 0.15s ease-out;
}
.ofollow .tg::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(52, 40, 28, 0.3); transition: transform 0.15s ease-out;
}
.ofollow[aria-checked="true"] .tg { background: var(--accent); }
.ofollow[aria-checked="true"] .tg::after { transform: translateX(16px); }
.ofollow small { display: block; font-weight: 500; font-size: 11.5px; color: var(--muted); }
.ofollow:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
@media (prefers-reduced-motion: reduce) { .opts, .ofollow .tg, .ofollow .tg::after { transition: none; } }
.ohead .ofollow { width: auto; margin: 0 6px 0 auto; padding: 0 4px; min-height: 44px; gap: 8px; font-size: 12.5px; color: var(--muted); }
.ohead .ofollow[aria-checked="true"] { color: var(--ink); }
.ohead .ofollow .tg { width: 34px; height: 20px; }
.ohead .ofollow .tg::after { width: 14px; height: 14px; }
.ohead .ofollow[aria-checked="true"] .tg::after { transform: translateX(14px); }
@media (max-width: 360px) { .ohead .ofollow .ft { font-size: 11.5px; } }

/* ===== Runde 5 (V5): Anschlüsse, Legende, Liste, Aufbau selbst ===== */
#ansch { position: fixed; inset: 0; pointer-events: none; z-index: 6; overflow: hidden; }
#ansch[hidden] { display: none; }
#ansch .an {
  position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 5px; white-space: nowrap; pointer-events: none;
  background: rgba(255, 253, 250, 0.96); border: 1.5px solid var(--c, #999); border-radius: 999px; padding: 1px 8px 1px 2px;
  font-size: 12px; font-weight: 600; color: #2c2620; line-height: 1.25; box-shadow: 0 1px 4px rgba(52, 40, 28, 0.2);
  font-variant-numeric: tabular-nums;
}
#ansch .an b {
  display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 3px; border-radius: 999px;
  background: var(--c, #999); color: #fff; font-size: 11px; font-weight: 700;
}
#ansch .an.hell { border-color: #3b3631; }
#ansch .an.hell b, #ansch .an.gelb b { color: #2c2620; box-shadow: inset 0 0 0 1.5px #3b3631; }
#ansch .an.k { padding: 0; border-width: 0; background: transparent; box-shadow: none; }
#ansch .an.k span { display: none; }
#ansch .an.k b { min-width: 22px; height: 22px; font-size: 12px; box-shadow: 0 0 0 1.5px #fff, 0 1px 4px rgba(0, 0, 0, 0.35); }
#ansch .an.k.hell b { box-shadow: inset 0 0 0 1.5px #3b3631, 0 0 0 1.5px #fff, 0 1px 4px rgba(0, 0, 0, 0.35); }
#ansch .an.sel { outline: 3px solid var(--accent); outline-offset: 2px; }
#ansch .an[hidden], #ansch .anl[hidden] { display: none; }
#ansch .anl { position: absolute; left: 0; top: 0; height: 1.5px; background: var(--c, #777); transform-origin: 0 50%; opacity: 0.85; }
#anleg {
  position: fixed; z-index: 15; left: 0; right: 0; bottom: calc(var(--bar-h) + var(--safe-b) + 54px);
  display: flex; gap: 6px; align-items: center; overflow-x: auto; padding: 2px 8px; scrollbar-width: none;
}
#anleg::-webkit-scrollbar { display: none; }
#anleg[hidden] { display: none; }
body[data-dims="1"] #anleg { bottom: calc(var(--bar-h) + var(--safe-b) + 98px); }
#anleg .lg {
  flex: none; display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 4px 9px; min-height: 30px;
  background: var(--glass); box-shadow: var(--shadow); font-size: 12px; font-weight: 600; color: var(--ink);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
#anleg .lg i { width: 11px; height: 11px; border-radius: 50%; background: var(--c, #999); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25); }
#anleg .lg.hell i { box-shadow: 0 0 0 1.5px #3b3631; }
#anleg button {
  flex: none; border: 1px solid var(--accent); border-radius: 999px; padding: 5px 12px; min-height: 34px; background: var(--paper);
  color: var(--accent); font-size: 12.5px; font-weight: 700;
}
.agroup h4 { margin: 14px 0 6px; font-size: 14px; color: var(--accent); }
.alist { list-style: none; margin: 0; padding: 0; }
.arow { border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; margin: 0 0 8px; cursor: pointer; }
.arow:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.ahead { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.adot {
  flex: none; display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 24px; border-radius: 999px;
  background: var(--c, #999); color: #fff; font-size: 12px; font-weight: 700; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2);
}
.adot.hell { color: #2c2620; box-shadow: inset 0 0 0 1.5px #3b3631; }
.alage { margin: 5px 0 4px; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.adet { display: grid; grid-template-columns: auto 1fr; gap: 1px 10px; margin: 0; font-size: 12.5px; }
.adet dt { color: var(--muted); }
.adet dd { margin: 0; }
.aq { margin: 4px 0 0; font-size: 11.5px; color: var(--muted); overflow-wrap: anywhere; }
.osum .selbst b, .bline.selbst b { color: var(--ok); }
.note.selbst { background: #eef3ec; color: var(--ok); border-radius: 10px; padding: 6px 10px; font-size: 13px; }
@media (max-width: 430px) { #bar button { font-size: 10.5px; letter-spacing: -0.15px; } #bar button span { max-width: 100%; overflow: hidden; text-overflow: clip; } }
@media (min-width: 900px) {
  #bar { width: 540px; }
  #anleg { left: 392px; right: 16px; bottom: 140px; flex-wrap: wrap; justify-content: center; overflow: visible; }
  body:not([data-opts="1"]) #anleg { left: 16px; }
  body[data-dims="1"] #anleg { bottom: 186px; }
}
.adot.gelb { color: #2c2620; }
#ansch .an { z-index: 2; }
#ansch .anl { z-index: 1; }

/* ===== Runde 5: Vorschläge als Auswahlfeld im Kopf (Handy: zwei Zeilen; ab 601 px mit Marke und Beschreibung) ===== */
#top { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "vor price" "segs segs" "kurz kurz"; }
#top .brand { grid-area: brand; display: none; }
.vor { grid-area: vor; min-width: 0; display: flex; }
#priceBtn { grid-area: price; }
#top .segs { grid-area: segs; }
#variantKurz { grid-area: kurz; }
.vorbtn {
  display: flex; align-items: center; gap: 6px; width: 100%; min-width: 0; min-height: 40px; margin: 0;
  border: 1px solid var(--line); background: var(--paper); border-radius: 10px; padding: 3px 8px 4px 10px; text-align: left; line-height: 1.15;
}
.vorbtn .vtx { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.vorbtn small { font-size: 11px; color: var(--muted); }
.vorbtn b { font-size: 15px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vorbtn.eigen b { color: var(--muted); font-style: italic; }
.vorbtn.lang b { font-size: 13px; }
.vorbtn.lang2 small { display: none; }
.vorbtn.lang2 b { font-size: 13px; line-height: 1.15; white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.vorbtn .ic { color: var(--muted); transition: transform 0.15s ease-out; }
.vorbtn[aria-expanded="true"] { border-color: var(--accent); }
.vorbtn[aria-expanded="true"] .ic { transform: rotate(180deg); }
.vorbtn:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
#variantKurz .pd { color: var(--ink); overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; min-height: 2.6em; }
#variantKurz .vl { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 11.5px; }
@media (max-width: 600px) {
  #variantKurz { display: none; }
  .price small .mo { display: none; }
}
@media (min-width: 601px) {
  #top { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "brand vor price" "segs segs segs" "kurz kurz kurz"; }
  #top .brand { display: flex; }
  #top .brand span { display: none; }
}
.vorlist {
  position: fixed; z-index: 40; left: 8px; top: 120px; width: calc(100vw - 16px); overflow-y: auto; overscroll-behavior: contain;
  background: var(--paper); border-radius: 14px; box-shadow: var(--shadow); padding: 2px 6px 6px; outline: none;
}
.vgh { padding: 10px 8px 4px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.vopt { display: block; padding: 8px 10px 9px; border-radius: 10px; cursor: pointer; min-height: 44px; outline: none; }
.vopt + .vopt { margin-top: 2px; }
@media (hover: hover) { .vopt:hover { background: #f6f1ea; } }
.vopt:focus-visible { box-shadow: inset 0 0 0 2px var(--accent); }
.vopt[aria-selected="true"] { background: var(--accent-soft); box-shadow: inset 0 0 0 1.5px rgb(133 83 47 / 0.45); }   /* F1: Fläche und feiner Ring statt Balken an einer Seite */
.vopt[aria-selected="true"]:focus-visible { box-shadow: inset 0 0 0 2px var(--accent); }
.vopt .vt { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.vopt .vt b { font-size: 14.5px; font-weight: 650; }
.vopt .vp { flex: none; font-size: 14px; font-weight: 650; color: var(--accent); font-variant-numeric: tabular-nums; }
.vopt .vd { margin-top: 2px; font-size: 12.5px; line-height: 1.3; color: var(--muted); }
.vopt.eigen { margin-top: 6px; }
.vopt.eigen .vt b { font-style: italic; }
.vorhint {
  position: fixed; z-index: 21; left: 8px; top: 120px; width: calc(100vw - 16px); padding: 8px 12px 9px;
  background: var(--paper); border-radius: 12px; box-shadow: var(--shadow); font-size: 13px; line-height: 1.35; cursor: pointer;
}
.vorhint b { display: block; font-weight: 650; }
.vorhint span { display: block; color: var(--muted); }
.ovor { margin: 0 0 8px; font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.ovor b { color: var(--ink); font-weight: 650; }
.ovor .lk { border: 0; background: none; padding: 0; margin: 0; color: var(--accent); font-weight: 650; text-decoration: underline; text-underline-offset: 2px; font-size: inherit; }
@media (prefers-reduced-motion: reduce) { .vorbtn .ic { transition: none; } }

/* ===== V7: Meine Stände (Speichern im Kopf, Gruppe in der Liste, Dialog) ===== */
.savebtn {
  margin-left: auto; display: inline-flex; align-items: center; gap: 5px; min-height: 40px; padding: 6px 9px 6px 8px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--accent); font-size: 13.5px; font-weight: 650; white-space: nowrap;
}
.savebtn .ic { stroke-width: 1.9; }
.savebtn:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
@media (hover: hover) { .savebtn:hover { background: #f6f1ea; } }
@media (max-width: 430px) { .savebtn { font-size: 13px; padding: 6px 8px 6px 7px; gap: 4px; } }
@media (max-width: 382px) { .savebtn { width: 40px; padding: 0; justify-content: center; } .savebtn .l1 { display: none; } }
@media (max-width: 334px) { .savebtn { display: none; } }
.vsth { padding: 10px 8px 4px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--accent); }
.vopt.vstand .vt b { min-width: 0; overflow-wrap: anywhere; }
.vopt.vstand .vt { align-items: center; }
.vopt.vstand .vp { margin-left: auto; }
.vman {
  flex: none; display: grid; place-items: center; width: 36px; height: 32px; margin: -6px -6px -6px -4px; border: 0; border-radius: 8px;
  background: transparent; color: var(--muted); cursor: pointer;
}
@media (hover: hover) { .vman:hover { background: #ebe4da; color: var(--ink); } }
.vman .ic { width: 20px; height: 20px; stroke-width: 2.6; }
.vopt .vw, .sdi .vw { margin-top: 3px; font-size: 12px; color: var(--warn); line-height: 1.3; }
.vopt.off { cursor: default; opacity: 0.75; }
.vopt.off .vt b { text-decoration: line-through; }
.vact {
  display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; padding: 9px 10px; flex-wrap: wrap; margin-top: 2px; min-height: 44px; border-radius: 10px;
  color: var(--accent); font-size: 14px; font-weight: 650; cursor: pointer; outline: none; border: 1px dashed #d7c7b6;
}
.vact span { flex: 1 1 0; min-width: 0; }
.vact small { flex-basis: 100%; padding-left: 24px; font-size: 12.5px; font-weight: 400; color: var(--muted); }
@media (hover: hover) { .vact:hover { background: #f6f1ea; } }
.vact:focus-visible { box-shadow: inset 0 0 0 2px var(--accent); }
.vgrp.vst { padding-bottom: 6px; margin-bottom: 2px; border-bottom: 1px solid var(--line); }
.stback { position: fixed; inset: 0; z-index: 44; background: rgba(44, 38, 32, 0.28); }
.stback[hidden], .standdlg[hidden] { display: none; }
.standdlg {
  position: fixed; z-index: 45; left: 8px; top: 120px; width: calc(100vw - 16px); overflow-y: auto; overscroll-behavior: contain;
  background: var(--paper); border-radius: 14px; box-shadow: var(--shadow); padding: 10px 14px 14px;
}
.sdh { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sdh h2 { margin: 0; font-size: 17px; }
.standdlg .x { border: 0; background: #f1ece5; border-radius: 50%; width: 40px; height: 40px; display: grid; place-items: center; flex: none; }
.sdf label { display: block; margin: 8px 0 5px; font-size: 13px; font-weight: 600; color: var(--ink); }
.sdrow { display: flex; gap: 8px; }
.sdrow input, .sdre input {
  flex: 1; min-width: 0; min-height: 44px; border: 1px solid var(--line); border-radius: 10px; padding: 8px 11px; font-size: 16px; background: #fff; color: var(--ink);
}
.sdrow input:focus, .sdre input:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.sdrow .btn { flex: none; min-height: 44px; }
.sdinfo { margin: 7px 0 0; font-size: 12.5px; color: var(--muted); }
.sdwarn { margin: 7px 0 0; font-size: 12.5px; color: var(--warn); line-height: 1.35; }
.sdmsg { margin: 6px 0 0; font-size: 13px; color: var(--accent); min-height: 1.2em; }
.sdmsg:empty { min-height: 0; margin: 0; }
.sdlist h3 { margin: 14px 0 6px; font-size: 14px; color: var(--accent); }
.sdleer { margin: 0; font-size: 13px; color: var(--muted); }
.sdi { border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; margin: 0 0 8px; }
.sdi.akt { border-color: var(--accent); background: var(--accent-soft); }
.sdt { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.sdt b { font-size: 14.5px; overflow-wrap: anywhere; }
.sdt .vp { flex: none; font-size: 14px; font-weight: 650; color: var(--accent); font-variant-numeric: tabular-nums; }
.sdm { margin-top: 2px; font-size: 12.5px; color: var(--muted); }
.sda, .sdre { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 7px; }
.sdre .sdmsg { flex-basis: 100%; }
.sdq { font-size: 13px; font-weight: 600; margin-right: 2px; }
.btn.sdyes { background: var(--warn); color: #fff; }
.sda .btn:focus-visible, .sdre .btn:focus-visible, .sdrow .btn:focus-visible, .standdlg .x:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 600px) {
  .sda:not(.frage) { display: grid; grid-template-columns: 1fr 1fr; }
  .sda:not(.frage) .btn { justify-content: center; }
}
.btn.ghost.sddel { color: var(--warn); }

/* ===== V8: ganze Wohnung (Raumwahl, Gesamtansicht, Ebenen, Planung je Raum, Bedienung am Rechner) ===== */
.rbtn {
  grid-area: brand; display: none; grid-template-columns: minmax(0, 1fr) auto; column-gap: 6px; align-items: center; min-width: 0; min-height: 40px; margin: 0;
  border: 1px solid var(--line); background: var(--paper); border-radius: 10px; padding: 3px 8px 4px 10px; text-align: left; line-height: 1.15;
}
.rbtn small { grid-column: 1; grid-row: 1; font-size: 11px; color: var(--muted); white-space: nowrap; }
.rbtn b { grid-column: 1; grid-row: 2; font-size: 15px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.rbtn .ic { grid-column: 2; grid-row: 1 / span 2; color: var(--muted); transition: transform 0.15s ease-out; }
.rbtn[aria-expanded="true"] { border-color: var(--accent); }
.rbtn[aria-expanded="true"] .ic { transform: rotate(180deg); }
.rbtn:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
@media (hover: hover) { .rbtn:hover { background: #f6f1ea; } }
@media (min-width: 601px) { #top .rbtn.brand { display: grid; max-width: 160px; } }   /* Rechner/Tablett: Raumwahl an der Stelle der Marke */
#raumInfo { grid-area: info; margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.3; }
#raumInfo b { color: var(--ink); font-weight: 600; }
#raumInfo .tag { display: inline-block; margin-left: 4px; padding: 0 6px; border-radius: 6px; background: #f1e6d9; color: var(--accent); font-size: 11.5px; }
body[data-wmodus="wohnung"] #top { grid-template-columns: minmax(0, 1fr); grid-template-areas: "brand" "info"; }
body[data-wmodus="wohnung"] #top .rbtn.brand { display: grid; width: 100%; max-width: none; }
body[data-wmodus="wohnung"] #top .rbtn b { font-size: 16px; }
body[data-wmodus="wohnung"] :is(#vorBox, #priceBtn, #top .segs, #variantKurz, #views, #dims, #ansch, #anleg, #dimgroups,
  #tDims, #tAnsch, #tOpts, #tList, #tMore, #opts, #panel, #card, #vorList, #vorHint) { display: none !important; }
@media (min-width: 900px) { body[data-wmodus="wohnung"] #top { width: 440px; } }

.raumlist {
  position: fixed; z-index: 40; left: 8px; width: min(360px, calc(100vw - 16px)); max-height: min(70vh, 560px); overflow-y: auto; overscroll-behavior: contain;
  background: var(--paper); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; border: 1px solid var(--line);
}
.raumlist .rgr { margin: 6px 8px 2px; font-size: 11.5px; font-weight: 650; color: var(--muted); text-transform: none; }
.raumlist .ropt { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 44px; border: 0; background: transparent; border-radius: 9px; padding: 6px 10px; text-align: left; }
.raumlist .ropt .rn { flex: 1; min-width: 0; font-weight: 600; font-size: 14.5px; }
.raumlist .ropt .rm { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.raumlist .ropt .rt { font-size: 11px; color: var(--accent); background: #f1e6d9; border-radius: 6px; padding: 1px 6px; white-space: nowrap; }
.raumlist .ropt[aria-selected="true"] { background: var(--accent-soft); }
.raumlist .ropt:focus-visible, .raumlist .ropt.kb { outline: 2px solid var(--accent); outline-offset: -2px; }
@media (hover: hover) { .raumlist .ropt:hover { background: #f6f1ea; } }

#wlabels { position: fixed; inset: 0; pointer-events: none; z-index: 5; overflow: hidden; }
#wlabels button {
  position: absolute; left: 0; top: 0; pointer-events: auto; border: 0; border-radius: 999px; padding: 5px 10px 5px; min-height: 30px;
  background: rgba(255, 253, 250, 0.92); box-shadow: 0 2px 8px rgba(52, 40, 28, 0.18); font-size: 12.5px; font-weight: 650; color: var(--ink);
  white-space: nowrap; line-height: 1.1; will-change: transform;
}
#wlabels button small { display: block; font-weight: 500; font-size: 11px; color: var(--muted); }
#wlabels button.og { background: rgba(250, 243, 233, 0.94); }
#wlabels button:focus-visible { outline: 2px solid var(--accent); }
@media (hover: hover) { #wlabels button:hover { background: #fff; } }

#wviews {
  position: fixed; z-index: 15; left: 0; right: 0; bottom: calc(var(--bar-h) + var(--safe-b) + 8px);
  display: flex; gap: 6px; overflow-x: auto; padding: 2px 8px; scrollbar-width: none;
}
#wviews::-webkit-scrollbar { display: none; }
#wviews button {
  flex: none; border: 0; border-radius: 999px; padding: 8px 13px; min-height: 40px; min-width: 44px; background: var(--glass);
  box-shadow: var(--shadow); font-size: 13.5px; font-weight: 600; color: var(--ink);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
#wviews button[aria-pressed="true"] { background: var(--ink); color: #fff; }
#wviews .sep { flex: none; width: 1px; margin: 6px 2px; background: rgba(44, 38, 32, 0.18); }
#wviews button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
@media (min-width: 900px) { #wviews { left: 50%; right: auto; transform: translateX(-50%); bottom: 88px; max-width: calc(100vw - 32px); } }
#views .wtoggle[aria-pressed="false"] { opacity: 0.85; }

.wopts .ohead h2 { font-size: 16px; }
.wopts { height: 46vh; height: 46dvh; }
@media (min-width: 900px) { .wopts { height: auto; } }
.wopts .wgrp { margin: 10px 0 12px; }
.wopts .wnote { font-size: 12.5px; color: var(--muted); margin: 4px 0 8px; }
.wopts .wstand { display: flex; gap: 6px; margin: 8px 0; }
.wopts .wstand input { flex: 1; min-width: 0; font: inherit; font-size: 16px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.wopts .wsl { list-style: none; margin: 4px 0 8px; padding: 0; }
.wopts .wsl li { display: flex; align-items: center; gap: 6px; padding: 4px 0; border-top: 1px solid var(--line); }
.wopts .wsl li span { flex: 1; min-width: 0; font-size: 14px; overflow-wrap: anywhere; }
.wopts .wsl li small { color: var(--muted); font-size: 11.5px; display: block; }
.wopts .wbtn { border: 1px solid var(--line); background: var(--paper); border-radius: 9px; padding: 7px 12px; min-height: 40px; font-weight: 600; font-size: 13.5px; }
.wopts .wbtn.del { color: var(--warn); }

.hilfebtn { display: none; }
.hilfebtn .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (min-width: 900px) and (hover: hover) {
  .hilfebtn {
    display: flex; position: fixed; z-index: 16; right: 16px; bottom: 16px; width: 44px; height: 44px; border-radius: 50%; border: 0;
    align-items: center; justify-content: center; background: var(--glass); box-shadow: var(--shadow); color: var(--muted);
  }
  .hilfebtn[aria-expanded="true"] { color: var(--accent); }
  body:not([data-wmodus="wohnung"]) .hilfebtn { right: 16px; }
  body:has(#panel:not([hidden])) .hilfebtn { display: none; }
}
.hilfe {
  position: fixed; z-index: 45; right: 16px; bottom: 70px; width: min(380px, calc(100vw - 32px)); background: var(--paper); border-radius: 14px;
  box-shadow: var(--shadow); padding: 12px 16px 12px; border: 1px solid var(--line);
}
.hilfe .hh { display: flex; align-items: center; justify-content: space-between; }
.hilfe h2 { font-size: 15px; margin: 0; }
.hilfe dl { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 4px 12px; margin: 10px 0 8px; font-size: 13px; }
.hilfe dt { font-weight: 600; }
.hilfe dd { margin: 0; color: var(--muted); }
.hilfe .x { border: 0; background: transparent; width: 40px; height: 40px; }
.hinweisv8 {
  position: fixed; z-index: 44; left: 50%; transform: translateX(-50%); bottom: calc(var(--bar-h) + var(--safe-b) + 58px);
  background: rgba(44, 38, 32, 0.9); color: #fff; padding: 8px 14px; border-radius: 10px; font-size: 13px; max-width: calc(100vw - 32px); text-align: center;
}
@media (min-width: 900px) { .hinweisv8 { bottom: 140px; } }
/* V8: am Rechner Werkzeugleiste und Ansichtsknöpfe in der Mitte des freien Bereichs, wenn links eine Seitenleiste offen ist
   (vorher lag die Leiste bei 900 bis 1200 px Fensterbreite halb unter den Optionen) */
@media (min-width: 900px) {
  body[data-opts="1"]:not([data-wmodus="wohnung"]) :is(#bar, #views), body[data-wopts="1"][data-wmodus="wohnung"] :is(#bar, #wviews) {
    left: calc(50% + 196px); max-width: calc(100vw - 424px);
  }
  body[data-opts="1"]:not([data-wmodus="wohnung"]) #bar, body[data-wopts="1"][data-wmodus="wohnung"] #bar { width: min(480px, calc(100vw - 424px)); }
}
@media (pointer: coarse) {
  #wviews button { min-height: 44px; }
  #wlabels button { min-height: 40px; padding: 6px 12px; }
}
@media (max-width: 600px) {
  #wlabels button { font-size: 12px; padding: 5px 9px; }
  #wlabels button small { display: none; }
}

/* ===== V10: Raumplanung mit Kosten, Einkaufsliste, Ständen, Maßen, Karte, Licht, Druckansicht ===== */
#wdims { position: fixed; inset: 0; pointer-events: none; z-index: 5; overflow: hidden; }
#wdims[hidden], #wdims .d[hidden] { display: none; }
#wdims .d {
  position: absolute; left: 0; top: 0; white-space: nowrap; pointer-events: none;
  background: rgba(255, 253, 250, 0.94); border: 1px solid #c79a73; color: #5d3b20; border-radius: 7px;
  padding: 2px 6px 3px; font-size: 12.5px; font-weight: 700; line-height: 1.15; text-align: center;
  box-shadow: 0 1px 4px rgba(52, 40, 28, 0.18); font-variant-numeric: tabular-nums;
}
#wdims .d small { display: block; font-size: 10.5px; font-weight: 500; color: var(--muted); }
#wdims .d.bad { border-color: var(--warn); color: var(--warn); }
#wdims .d.h { border-color: #7d8fa0; color: #34495c; }
#wdims .d.s { font-size: 11px; padding: 1px 5px 2px; border-radius: 5px; }
#wdims .d.s small { font-size: 9.5px; }
@media (max-width: 600px) { #wdims .d { font-size: 11.5px; } #wdims .d small { font-size: 9.5px; } #wdims .d.s small { display: none; } }
body[data-wmodus="kueche"] #tWMasse { display: none; }
.wopts .wsum { display: grid; gap: 2px; margin: 8px 0 6px; padding: 8px 10px; background: var(--accent-soft); border-radius: 10px; font-size: 13px; font-variant-numeric: tabular-nums; }
.wopts .wsum .wsl1 { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.wopts .wsum .wsl1 b { font-weight: 650; white-space: nowrap; }
.wopts .wsum .wsl1.g { font-size: 14.5px; padding-top: 3px; margin-top: 2px; border-top: 1px solid rgba(155, 90, 42, 0.25); }
.wopts .wsum .wsl1.g b { font-weight: 750; color: var(--accent); }
.wopts .wsum .wsw { margin-top: 6px; }
.wopts .wsum .wnote { margin: 4px 0 0; }
.wopts .wfuss { margin-top: 12px; }
.wopts .wtools { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.wopts .wtabs { display: flex; gap: 3px; background: #efe9e1; border-radius: 10px; padding: 3px; margin: 10px 0 4px; }
.wopts .wtabs button { flex: 1 1 0; min-width: 0; min-height: 40px; border: 0; background: transparent; border-radius: 8px; font-weight: 600; font-size: 13.5px; color: var(--ink); padding: 4px 6px; }
.wopts .wtabs button[aria-selected="true"] { background: var(--paper); box-shadow: 0 1px 3px rgba(52, 40, 28, 0.18); color: var(--accent); }
.wopts .wtabs button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.wopts .wgh { margin: 16px 0 2px; font-size: 13px; color: var(--accent); text-transform: none; letter-spacing: 0; }
.wopts .odesc { margin: 0 0 4px; font-size: 12.5px; color: var(--muted); }
.wopts .wkgrp h4 { display: flex; justify-content: space-between; gap: 10px; margin: 14px 0 4px; font-size: 14px; }
.wopts .wkl { list-style: none; margin: 0; padding: 0; }
.wopts .wkl li { padding: 6px 0 7px; border-top: 1px solid var(--line); }
.wopts .wkr { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.wopts .wkn { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 600; overflow-wrap: anywhere; }
.wopts .wkp { flex: none; font-weight: 650; font-size: 13.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.wopts .wks { font-size: 12px; color: var(--muted); margin-top: 1px; overflow-wrap: anywhere; }
.wopts .wka { display: inline-block; font-size: 12.5px; margin-top: 2px; padding: 4px 0; }
.wopts .wkl li.aus .wkn, .wopts .wkl li.aus .wkp { color: var(--muted); }
.wopts .wkl li.aus .wkp { font-weight: 500; }
.wtag { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 6px; background: #fbeee0; color: #9a5a1c; font-size: 11px; font-weight: 600; vertical-align: 1px; }
.wopts .wsl li.akt span { color: var(--accent); }
.wopts .wgeteilt { margin: 6px 0 10px; padding: 9px 11px; border: 1px solid var(--accent); border-radius: 10px; background: #fffaf4; font-size: 13.5px; }
.wopts .wgeteilt p { margin: 0 0 2px; color: var(--muted); font-size: 12.5px; }
.wopts .wgeteilt .wbtn { display: block; margin-top: 8px; width: 100%; }
.wkarte {
  position: fixed; z-index: 30; right: 12px; top: 120px; width: min(300px, calc(100vw - 24px)); background: var(--paper); border-radius: 12px;
  box-shadow: var(--shadow); border: 1px solid var(--line); padding: 10px 12px 10px;
}
.wkarte[hidden] { display: none; }
.wkarte h3 { margin: 0 38px 6px 0; font-size: 15px; }
.wkarte .x { position: absolute; top: 4px; right: 4px; border: 0; background: #f1ece5; border-radius: 50%; width: 36px; height: 36px; display: grid; place-items: center; }
.wkarte .wkdl { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; margin: 0; font-size: 13px; font-variant-numeric: tabular-nums; }
.wkarte dt { color: var(--muted); }
.wkarte dd { margin: 0; font-weight: 600; }
.wkarte .wkpost { margin: 6px 0 0; font-size: 12.5px; }
@media (max-width: 899px) { .wkarte { left: 12px; right: 12px; width: auto; } }
.wopts .wtabs { position: sticky; top: 0; z-index: 2; box-shadow: 0 -12px 0 var(--paper), 0 4px 0 var(--paper); }   /* R3: deckt auch den Innenabstand oben ab (WebKit) */
body[data-wopts="1"] .wkarte { right: 12px; }
#wprint { display: none; }
@media print {
  body > *:not(#wprint) { display: none !important; }
  html, body { background: #fff !important; overflow: visible !important; height: auto !important; }
  #wprint { display: block !important; color: #000; font: 11pt/1.35 system-ui, sans-serif; }
  #wprint h1 { font-size: 16pt; margin: 0 0 4pt; }
  #wprint h2 { font-size: 12.5pt; margin: 12pt 0 4pt; }
  #wprint p { margin: 2pt 0; }
  #wprint .pk { font-size: 9.5pt; color: #444; }
  #wprint table { width: 100%; border-collapse: collapse; font-size: 10pt; table-layout: fixed; }
  #wprint th:nth-child(1) { width: 13%; } #wprint th:nth-child(3), #wprint th:nth-child(4) { width: 15%; }
  #wprint th, #wprint td { border-bottom: 0.5pt solid #bbb; padding: 3pt 4pt; text-align: left; vertical-align: top; }
  #wprint td.n, #wprint th.n { text-align: right; white-space: nowrap; }
  #wprint small { display: block; font-size: 8pt; color: #555; overflow-wrap: anywhere; }
  #wprint .psum { margin-top: 10pt; font-weight: 700; font-size: 12pt; }
}

/* ===== V11: Produktkarte (Maße + Produkt), Galerie, Alternativen, gleiche Navigation in Küche und Räumen ===== */
#top #wPreisBtn { grid-area: wpreis; }
#top #wsegs { grid-area: wsegs; display: flex; gap: 8px; align-items: center; min-width: 0; }
#wsegs[hidden], #wPreisBtn[hidden] { display: none !important; }
#wsegVar { min-width: 0; overflow-x: auto; scrollbar-width: none; }
#wsegVar::-webkit-scrollbar { display: none; }
#wsegVar button { padding: 7px 11px; }
#wsegs .savebtn { flex: none; }
body[data-wmodus="wohnung"][data-wplan="1"] #top { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "brand wpreis" "wsegs wsegs" "info info"; }
body[data-wmodus="kueche"] :is(#wPreisBtn, #wsegs, #tWTeile, #tWMehr, #tWOpts) { display: none !important; }
.wkarte {
  z-index: 34; top: 16px; right: 16px; width: 400px; max-height: calc(100vh - 112px); max-height: calc(100dvh - 112px); overflow-y: auto; overscroll-behavior: contain;
  padding: 12px 14px 14px; border-radius: 14px; outline: none;
}
@media (max-width: 899px) {
  .wkarte { top: auto; left: 8px; right: 8px; width: auto; bottom: calc(var(--bar-h) + var(--safe-b) + 6px); max-height: 60vh; max-height: 60dvh; padding: 10px 12px 12px; }
}
.wkarte h3 { font-size: 16px; line-height: 1.25; margin: 0 40px 2px 0; }
.wkarte .pkunter { margin: 0 40px 4px 0; font-size: 12.5px; color: var(--muted); }
.wkarte .pkpreis { margin: 6px 0 8px; }
.wkarte .pkp { margin: 0; font-size: 14px; }
.wkarte .pkp b { font-size: 18px; color: var(--accent); font-variant-numeric: tabular-nums; }
.wkarte .pksub { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.wkarte .pkmasse { margin: 8px 0 10px; padding: 8px 10px; border-radius: 10px; background: #f3efe8; border: 1px solid var(--line); }
.wkarte .pkmh { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.wkarte .pkmh b { font-size: 19px; font-weight: 750; font-variant-numeric: tabular-nums; letter-spacing: -0.2px; }
.wkarte .pkmh small { font-size: 12px; color: var(--muted); }
.wkarte .pkmd { display: grid; grid-template-columns: auto 1fr; gap: 1px 10px; margin: 6px 0 0; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.wkarte .pkmd dt { color: var(--muted); }
.wkarte .pkmd dd { margin: 0; font-weight: 600; }
.wkarte .pkgal { margin: 8px 0 6px; }
.wkarte .pkbild { position: relative; aspect-ratio: 4 / 3; max-height: 270px; width: 100%; background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
@media (max-width: 899px) { .wkarte .pkbild { max-height: 210px; } }
.wkarte .pkbild img { width: 100%; height: 100%; object-fit: contain; display: block; }
.pkki { position: absolute; left: 8px; top: 8px; padding: 2px 8px; border-radius: 6px; background: rgba(44, 38, 32, 0.82); color: #fff; font-size: 11.5px; font-weight: 650; }
.pkki[hidden] { display: none; }
.wkarte .pkzahl { position: absolute; right: 8px; top: 8px; padding: 1px 7px; border-radius: 6px; background: rgba(255, 253, 250, 0.9); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.wkarte .pkpf { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255, 253, 250, 0.92); box-shadow: 0 1px 4px rgba(52, 40, 28, 0.25); display: grid; place-items: center; }
.wkarte .pkpf.l { left: 6px; } .wkarte .pkpf.l .ic { transform: rotate(90deg); }
.wkarte .pkpf.r { right: 6px; } .wkarte .pkpf.r .ic { transform: rotate(-90deg); }
.wkarte .pkvoll { position: absolute; right: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 4px; border: 0; border-radius: 8px; padding: 5px 8px; min-height: 32px; background: rgba(255, 253, 250, 0.92); font-size: 12px; font-weight: 600; }
.wkarte .pkcap { margin: 4px 0 0; font-size: 12px; color: var(--muted); }
.wkarte .pkthumbs { display: flex; gap: 5px; margin-top: 6px; overflow-x: auto; scrollbar-width: none; }
.wkarte .pkthumbs::-webkit-scrollbar { display: none; }
.wkarte .pkthumbs button { flex: none; width: 52px; height: 40px; padding: 0; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: #fff; }
.wkarte .pkthumbs button img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wkarte .pkthumbs button.ki { border-style: dashed; }
.wkarte .pkthumbs button[aria-current="true"] { border: 2px solid var(--accent); }
.wkarte .pklink { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 8px 0 4px; min-height: 42px; padding: 8px 12px; border-radius: 10px; background: var(--accent); color: #fff; font-weight: 650; font-size: 14px; text-decoration: none; }
.wkarte .pklink .ic { stroke: #fff; }
.wkarte .pkh { margin: 12px 0 5px; font-size: 13px; font-weight: 700; color: var(--accent); }
.wkarte .pksws { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 6px; }
.wkarte .pksw { display: flex; flex-direction: column; align-items: stretch; gap: 3px; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); text-align: left; min-height: 44px; }
.wkarte .pksw[aria-pressed="true"] { border: 2px solid var(--accent); padding: 3px; background: var(--accent-soft); }
.wkarte .pkth { display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: 7px; overflow: hidden; background: #fff; border: 1px solid #efe9e1; }
.wkarte .pkth img { width: 100%; height: 100%; object-fit: contain; display: block; }
.wkarte .pkth.leer { background: #f3efe8; }
.wkarte .pkth.leer span { font-size: 10.5px; color: var(--muted); }
.wkarte .pkswn { font-size: 12px; font-weight: 600; line-height: 1.2; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.wkarte .pksw small { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.wkarte .pksw[aria-pressed="true"] small { color: var(--accent); font-weight: 650; }
.wkarte .pkvl, .wkarte .pkpl { list-style: none; margin: 0; padding: 0; }
.wkarte .pkvb { display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px 8px; margin: 0 0 5px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); text-align: left; min-height: 44px; }
.wkarte .pkvb[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.wkarte .pkvb img { flex: none; width: 44px; height: 34px; object-fit: cover; border-radius: 5px; }
.wkarte .pkvn { display: flex; flex-direction: column; min-width: 0; }
.wkarte .pkvn b { font-size: 13px; font-weight: 600; }
.wkarte .pkvn small { font-size: 11.5px; color: var(--muted); }
.wkarte .pkpl li { padding: 5px 0; border-top: 1px solid var(--line); font-size: 12.5px; }
.wkarte .pkpl li small { color: var(--muted); }
.wkarte .pkpl li.aus { color: var(--muted); }
.wkarte .pkpr { display: flex; justify-content: space-between; gap: 8px; }
.wkarte .pkpr b { white-space: nowrap; font-variant-numeric: tabular-nums; }
.wkarte .pksum { margin: 4px 0 0; font-size: 12.5px; font-weight: 650; }
.wkarte .pkimplan { margin: 12px 0 0; font-size: 12px; color: var(--muted); line-height: 1.4; }
.wkarte .pkimplan b { color: var(--ink); }
.wkarte .pknone { font-size: 12.5px; color: var(--muted); margin: 6px 0; }
.wvoll { position: fixed; inset: 0; z-index: 60; background: rgba(24, 20, 16, 0.94); display: grid; grid-template-rows: 1fr auto; padding: calc(var(--safe-t) + 52px) 12px calc(var(--safe-b) + 14px); }
.wvoll[hidden] { display: none; }
.wvbox { position: relative; min-height: 0; display: grid; place-items: center; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.wvbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; background: #fff; }
.wvcap { margin: 8px 0 0; color: #f2ede6; text-align: center; font-size: 13px; }
.wvpf { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 253, 250, 0.9); display: grid; place-items: center; }
.wvpf.l { left: 12px; } .wvpf.l .ic { transform: rotate(90deg); }
.wvpf.r { right: 12px; } .wvpf.r .ic { transform: rotate(-90deg); }
.wvx { position: absolute; top: calc(var(--safe-t) + 8px); right: 12px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 253, 250, 0.9); display: grid; place-items: center; }
.wopts .wkl li { cursor: pointer; }
.wopts .wkb { display: inline-block; max-width: 100%; border: 0; background: none; padding: 0; margin: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; text-decoration: underline; text-decoration-color: rgba(155, 90, 42, 0.35); text-underline-offset: 2px; }
.wopts .wkb:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.wopts .wteile { list-style: none; margin: 4px 0 8px; padding: 0; }
.wopts .wtb { display: flex; align-items: center; gap: 9px; width: 100%; padding: 6px 2px; border: 0; border-top: 1px solid var(--line); background: transparent; text-align: left; min-height: 48px; }
.wopts .wtth { flex: none; width: 52px; height: 40px; border-radius: 6px; background: #f3efe8; overflow: hidden; display: grid; place-items: center; }
.wopts .wtth img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.wopts .wttx { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.wopts .wttx b { font-size: 13.5px; font-weight: 600; overflow-wrap: anywhere; }
.wopts .wttx small { font-size: 11.5px; color: var(--muted); overflow-wrap: anywhere; }
.wopts .wtp { flex: none; font-size: 13px; font-weight: 650; font-variant-numeric: tabular-nums; }
.wopts .whinw { margin: 6px 0 8px; padding-left: 18px; font-size: 13px; }
.wopts .whinw li { margin: 4px 0; }
.wopts .wtabs { overflow-x: auto; scrollbar-width: none; }
.wopts .wtabs::-webkit-scrollbar { display: none; }
.wopts .wtabs button { flex: 1 0 auto; padding: 4px 9px; white-space: nowrap; }
@media (max-width: 430px) { .wopts .wtabs button { font-size: 12.5px; padding: 4px 7px; } }

/* ===== T1: Teilen (Knopf im Kopf, Dialog, Empfänger eines Teilen-Links, Handwerker-Ansicht) ===== */
.teilbtn { margin-left: 0; }
#wsegs .teilbtn { flex: none; }
#top > .teilw { grid-area: teilw; display: none; }
body[data-wmodus="wohnung"]:not([data-wplan="1"]) #top { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "brand teilw" "info info"; }
body[data-wmodus="wohnung"]:not([data-wplan="1"]) #top > .teilw { display: inline-flex; }
@media (max-width: 600px) {
  .teilbtn { width: 40px; padding: 0; justify-content: center; }
  .teilbtn .l1 { display: none; }
}
#teilInfo { grid-column: 1 / -1; margin: 0; padding: 4px 9px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); font-size: 12.5px; line-height: 1.3; }
#teilInfo b { font-weight: 700; }
#teilInfo[hidden], #teilStatus[hidden], .tdfeld[hidden] { display: none; }
.teildlg { max-height: calc(100vh - 136px); max-height: calc(100dvh - 136px); }
@media (min-width: 601px) { .teildlg { left: 50%; width: 460px; margin-left: -230px; top: 96px; } }
.tdopt { margin-top: 12px; }
.tdopt .btn { width: 100%; justify-content: center; min-height: 44px; }
.tdopt .btn:disabled { opacity: 0.55; }
.tdopt .btn:focus-visible, .tdfeld input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tdtxt { margin: 5px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.tdtxt span { color: var(--accent); font-weight: 600; }
.teildlg .sdwarn { margin-top: 12px; }
.tdfeld { margin-top: 12px; }
.tdfeld label { display: block; font-size: 12.5px; font-weight: 600; margin-bottom: 4px; }
.tdfeld input { width: 100%; min-height: 40px; border: 1px solid var(--line); border-radius: 9px; padding: 7px 10px; font-size: 13px; background: #fff; color: var(--ink); }
.teilsperre { margin: 8px 0; padding: 7px 10px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); font-size: 13px; line-height: 1.35; }
body[data-teilen] :is(.teilbtn, #optsTeilen, #wTeilenBtn, #optsLink, #wLinkBtn, .sdlink) { display: none !important; }
body[data-teilen][data-wmodus="wohnung"]:not([data-wplan="1"]) #top { grid-template-columns: minmax(0, 1fr); grid-template-areas: "brand" "info"; }
body[data-teilen="handwerker"] :is(#saveBtn, #wSaveBtn, #wStaendeBtn, #optsBody .otools, .wgeteilt .wbtn) { display: none !important; }
body[data-teilen="handwerker"] :is(#segLayout, #segProv, #varSel, #vorBtn, #wsegVar, #optsBody .oseg, #optsBody .ovor .lk, #woptsBody .oseg, .pksws) { pointer-events: none; }
body[data-teilen="handwerker"] :is(#segLayout, #segProv, #wsegVar, #optsBody .oseg, #woptsBody .oseg) button:not([aria-pressed="true"]) { opacity: 0.5; }
body[data-teilen="handwerker"] .pksw:not([aria-pressed="true"]) { opacity: 0.55; }

/* ===== F1 (22.11.2026): Menüführung und Oberfläche. Leiste mit sechs festen Einstiegen (Räume, Maße, Ansicht, Optionen, Teile,
   Kosten), Menü „Ansicht“, Kopf mit Ort und Stand, Touch-Ziele ab 44 px, sichtbarer Fokus, Kontrast ===== */
:where(button, a, input, select, summary, [role="tab"], [role="option"]):focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
#c:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; }

/* Kopf: Raumwahl überall (auch am Handy in der Küche), eine Zeile für Variante, Speichern und Teilen */
#top { border-radius: 18px; padding: 8px; gap: 6px; }
#top .rbtn.brand { display: grid; }
.rbtn, .vorbtn, .savebtn { border-color: rgb(44 38 32 / 0.13); }
@media (max-width: 600px) {
  body:not([data-wmodus="wohnung"]) #top { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "brand vor price" "segs segs segs" "kurz kurz kurz"; }
  body:not([data-wmodus="wohnung"]) #top .rbtn.brand { max-width: 108px; }
}
@media (min-width: 900px) { #top { padding: 10px; } }
@media (min-width: 1100px) { body:not([data-wmodus="wohnung"]) #top { width: 624px; } }   /* Platz für Grundriss, Anbieter, Speichern und Teilen in einer Zeile */
#top .segs { flex-wrap: nowrap; gap: 6px; min-width: 0; }
#top #wsegs { gap: 6px; }
#top .segs .seg { flex: 0 1 auto; min-width: 0; }
#top .segs .seg button { flex: 0 1 auto; overflow: hidden; text-overflow: ellipsis; }
#top .savebtn { flex: none; width: auto; min-width: 44px; padding: 0 12px 0 10px; gap: 6px; font-size: 13.5px; justify-content: center; }
#top .savebtn .l1 { display: inline; }
#top :is(.eng1 .teilbtn, .eng .savebtn) { width: 44px; padding: 0; }
#top :is(.eng1 .teilbtn, .eng .savebtn) .l1 { display: none; }
@media (max-width: 430px) { #top .segs .seg button { padding-left: 10px; padding-right: 10px; } }
@media (max-width: 380px) { #top .segs .seg button { padding-left: 8px; padding-right: 8px; } }
#raumInfo { padding: 0 2px; }
#raumInfo .iv { color: var(--ink); font-weight: 650; }
#raumInfo :is(.iv, .tag) + .if1::before { content: "· "; }
#raumInfo .iv ~ .if2 { display: none; }   /* mit Planung: Variante statt Deckenhöhe (die steht in den Maßen) */
@media (max-width: 600px) { #raumInfo .if2 { display: none; } }

/* Leiste: gleich breite Einstiege, klarer Zustand (offenes Blatt, eingeschaltete Maße) */
#bar { display: flex; padding-left: max(4px, env(safe-area-inset-left, 0px)); padding-right: max(4px, env(safe-area-inset-right, 0px)); }
#bar button {
  position: relative; flex: 1 1 0; min-width: 0; min-height: 48px; padding: 0 1px; gap: 3px; font-size: 11.5px; font-weight: 600; letter-spacing: 0; color: var(--muted);
  transition: transform 140ms var(--ease), color 140ms var(--ease);
}
#bar button span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#bar button::before {
  content: ""; position: absolute; left: 50%; top: 7px; width: 48px; height: 28px; margin-left: -24px; border-radius: 999px; background: var(--accent-soft);
  opacity: 0; transform: scale(0.86); transition: opacity 140ms var(--ease), transform 140ms var(--ease);
}
#bar button > * { position: relative; }
#bar button:is([aria-pressed="true"], [aria-expanded="true"]) { color: var(--accent); }
#bar button:is([aria-pressed="true"], [aria-expanded="true"])::before { opacity: 1; transform: none; }
#bar button:active { transform: scale(0.96); }
@media (min-width: 900px) { #bar { padding: 0 6px; } #bar button { border-radius: 12px; } }
/* Handy: die Leiste bleibt über den Blättern sichtbar (zeigt das offene Blatt, wechselt ohne vorher zu schließen) */
@media (max-width: 899px) {
  #bar { z-index: 32; }
  .sheet { padding-bottom: calc(var(--bar-h) + var(--safe-b) + 8px); }
}

/* Menü „Ansicht“: was gezeigt wird (Schalter), darunter die Bedienung */
.amenu {
  position: fixed; z-index: 36; left: 8px; right: 8px; bottom: calc(var(--bar-h) + var(--safe-b) + 60px); background: var(--paper);
  border: 1px solid rgb(44 38 32 / 0.1); border-radius: 18px; box-shadow: var(--shadow); padding: 6px; animation: amenuIn 160ms var(--ease) both;
}
.amenu[hidden] { display: none; }
.amenu { max-height: calc(100vh - var(--bar-h) - 80px); max-height: calc(100dvh - var(--bar-h) - 80px); overflow-y: auto; overscroll-behavior: contain; }   /* Querformat am Handy */
@keyframes amenuIn { from { opacity: 0; transform: translateY(6px); } }
.amenu .amh { display: flex; align-items: center; justify-content: space-between; padding: 0 0 0 10px; }
.amenu h2 { margin: 0; font-size: 15px; }
.amenu .x { border: 0; background: transparent; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--muted); }
.amenu :is(.amrows button, .alink) {
  display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: center; column-gap: 10px; width: 100%; min-height: 52px;
  padding: 6px 10px; border: 0; background: transparent; border-radius: 12px; text-align: left; color: var(--ink);
}
.amenu :is(.amrows button, .alink)[hidden] { display: none; }
.amenu .ic { color: var(--muted); }
.amenu .at b { display: block; font-size: 14.5px; font-weight: 600; line-height: 1.25; }
.amenu .at small { display: block; font-size: 12px; color: var(--muted); line-height: 1.3; }
.amenu .sw { position: relative; width: 40px; height: 24px; border-radius: 999px; background: #cfc5b8; transition: background-color 160ms var(--ease); }
.amenu .sw::after { content: ""; position: absolute; left: 2px; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgb(52 40 28 / 0.3); transition: transform 160ms var(--ease); }
.amenu button[aria-pressed="true"] .sw { background: var(--accent); }
.amenu button[aria-pressed="true"] .sw::after { transform: translateX(16px); }
.amenu button[aria-pressed="true"] .ic { color: var(--accent); }
.amenu .alink { margin-top: 4px; padding-top: 8px; border-top: 1px solid var(--line); border-radius: 0 0 12px 12px; }
@media (hover: hover) { .amenu :is(.amrows button, .alink):hover { background: #f6f1ea; } }
@media (min-width: 900px) { .amenu { right: auto; width: 340px; } }

/* Blickwinkel-Zeile: Raum vor und zurück ruhiger als die Blickwinkel */
#wviews .pf { background: rgba(255, 253, 250, 0.72); color: var(--muted); }

/* Erster Besuch: zwei Sätze, nimmt keine Eingaben an; Meldungen ebenso */
.erst {
  position: fixed; z-index: 18; left: 8px; right: 8px; bottom: calc(var(--bar-h) + var(--safe-b) + 62px); max-width: 460px; margin: 0 auto;
  padding: 10px 14px 11px; border-radius: 14px; background: rgb(44 38 32 / 0.93); color: #fff; font-size: 13.5px; line-height: 1.4;
  pointer-events: none; box-shadow: var(--shadow); animation: erstIn 240ms var(--ease) both;
}
.erst[hidden] { display: none; }
.erst b { display: block; font-weight: 650; }
.erst span { display: block; color: rgb(255 255 255 / 0.88); }
@keyframes erstIn { from { opacity: 0; transform: translateY(8px); } }
@media (min-width: 900px) { .erst { bottom: 140px; } }
.hinweisv8 { pointer-events: none; }

/* Hilfe: auch am Handy, mit „Wo finde ich was“ */
.hilfe { z-index: 46; display: flex; flex-direction: column; max-height: calc(100vh - 100px); max-height: calc(100dvh - 100px); padding: 8px 6px 10px 16px; }
.hilfe[hidden] { display: none; }
.hilfe .hbody { overflow-y: auto; overscroll-behavior: contain; padding-right: 10px; }
.hilfe h3 { margin: 12px 0 2px; font-size: 13px; color: var(--accent); }
.hilfe h3:first-child { margin-top: 2px; }
.hilfe dl { margin: 4px 0 6px; }
.hilfe dl.hwo { grid-template-columns: auto minmax(0, 1fr); }
.hilfe .x { width: 44px; height: 44px; display: grid; place-items: center; }
@media (max-width: 899px) {
  .hilfe { left: 8px; right: 8px; width: auto; bottom: calc(var(--bar-h) + var(--safe-b) + 8px); max-height: calc(100dvh - var(--bar-h) - 150px); }
  .hilfe .hrechner { display: none; }
}
@media (min-width: 900px) and (hover: hover) and (pointer: fine) { .hilfe .hhandy { display: none; } }

/* Reiter überall gleich (Küche: Teile, Kosten …; Räume: Optionen, Teile, Kosten …) */
.tabs { gap: 2px; padding: 2px 8px 8px 10px; }
.tabs [role="tab"] { border-radius: 999px; padding: 8px 12px; }
.tabs .x { position: sticky; right: 0; background: var(--paper); box-shadow: -10px 0 8px -2px var(--paper); }   /* Kreuz bleibt sichtbar, auch wenn die Reiter rollen */
/* Fläche als Verlauf mit 1 px Rundung: eine deckende, eckige, klebende Fläche lässt Chromium am Handy einen Streifen der 3D-Ansicht
   weg (Verdeckungsrechnung an der falschen Stelle; gemessen 23.11.2026, dbg-Lauf im Bericht F1) */
.wopts .wtabs { gap: 2px; margin: 8px -2px 6px; padding: 0 0 8px; border-radius: 1px; background: linear-gradient(var(--paper), var(--paper)); border-bottom: 1px solid var(--line); }
.wopts .wtabs button { flex: 0 0 auto; border-radius: 999px; padding: 8px 10px; font-size: 14px; color: var(--muted); }
.wopts .wtabs button[aria-selected="true"] { background: var(--accent-soft); color: var(--accent); box-shadow: none; }
@media (max-width: 430px) { .wopts .wtabs button { font-size: 13.5px; padding: 8px 9px; } }

/* Rückmeldung beim Drücken */
:is(#views button, #wviews button, .savebtn, .btn, .price, .rbtn, .vorbtn) { transition: transform 140ms var(--ease), background-color 140ms var(--ease); }
:is(#views button, #wviews button, .savebtn, .btn, .price):active { transform: scale(0.97); }

/* Touch-Ziele ab 44 px (Handy, Tablett und jeder grobe Zeiger) */
@media (max-width: 899px), (pointer: coarse) {
  .rbtn, .vorbtn, .price, .savebtn { min-height: 44px; }
  #top .seg { padding: 2px; }
  #top .seg button { min-height: 44px; }
  #views button, #wviews button, #dimgroups button, #anleg button { min-height: 44px; }
  .sheet .x, .wkarte .x, .standdlg .x { width: 44px; height: 44px; }
  .banner button { min-width: 44px; min-height: 44px; }
  .tabs [role="tab"], .wopts .wtabs button { min-height: 44px; }
  .btn, .btn.sm, .wopts .wbtn { min-height: 44px; }
  .oseg button { min-height: 44px; }
  .wkarte .pkpf { width: 44px; height: 44px; }
  .wkarte .pkvoll { min-height: 44px; padding: 5px 11px; }
  .wkarte .pkthumbs button { width: 58px; height: 44px; }
  .wkarte .pkvgl button { min-height: 44px; }
  #wlabels button { min-height: 44px; min-width: 44px; }
}

/* Karte: 3D-Ansicht kennzeichnen, KI-Vorschau und 3D-Ansicht nebeneinander */
.wkarte .pkbild img.b2[hidden], .wvbox img.b2[hidden] { display: none; }
.wkarte .pkbild.vgl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; background: var(--line); }
.wkarte .pkbild.vgl img { background: #fff; min-width: 0; }
.pkki.k2 { left: calc(50% + 9px); }
.wkarte .pkvgl { display: inline-flex; gap: 2px; margin: 6px 0 0; padding: 2px; border-radius: 10px; background: #efe9e1; }
.wkarte .pkvgl[hidden] { display: none; }
.wkarte .pkvgl button { border: 0; background: transparent; border-radius: 8px; padding: 0 11px; min-height: 34px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.wkarte .pkvgl button[aria-pressed="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 1px 3px rgb(52 40 28 / 0.18); }
.wkarte .pkthumbs button { position: relative; }
.wkarte .pkthumbs button.d3 { border-style: dashed; }
.wkarte .pkthumbs button[data-art]::after {
  content: attr(data-art); position: absolute; left: 2px; bottom: 2px; padding: 0 4px; border-radius: 4px; background: rgb(44 38 32 / 0.82); color: #fff;
  font-size: 9.5px; font-weight: 700; line-height: 14px;
}
.wvbox.vgl { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.wvbox.vgl img { min-width: 0; min-height: 0; }
.wvbox .pkki.k2 { left: calc(50% + 12px); }
@media (orientation: portrait) {
  .wvbox.vgl { grid-template-columns: minmax(0, 1fr); grid-template-rows: repeat(2, minmax(0, 1fr)); }
  .wvbox.vgl .pkki.k2 { left: 68px; top: calc(50% + 12px); }   /* neben dem Pfeil, der auf der Naht sitzt */
}
@media (prefers-reduced-motion: reduce) {
  .amenu, .erst { animation: none; }
  #bar button, #bar button::before, .amenu .sw, .amenu .sw::after, :is(#views button, #wviews button, .savebtn, .btn, .price, .rbtn, .vorbtn) { transition: none; }
}

/* ======================================================================
   R3 (U1, 23.11.2026): Mehrfachauswahl als Kästchen-Liste, Hinweis bei kaputten Teilen
   ====================================================================== */
.wopts .wmehr .olbl { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.wopts .wmehr .wzahl { font-weight: 650; font-size: 12px; color: var(--accent); white-space: nowrap; font-variant-numeric: tabular-nums; }
.omehr { display: grid; gap: 4px; }
.omk { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 44px; padding: 6px 10px;
  border: 1px solid #e3dbd0; border-radius: 10px; background: var(--paper); color: var(--ink); text-align: left; font: inherit; cursor: pointer; }
.omk .omkx { width: 20px; height: 20px; border: 2px solid #8f8273; border-radius: 5px; display: grid; place-items: center; background: #fff; box-sizing: border-box; }
.omk[aria-checked="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: var(--accent-soft); }
.omk[aria-checked="true"] .omkx { background: var(--accent); border-color: var(--accent); }
.omk[aria-checked="true"] .omkx::after { content: ''; width: 9px; height: 5px; border: solid #fff; border-width: 0 0 2.5px 2.5px; transform: translateY(-1px) rotate(-45deg); }
.omk .omkn { font-size: 13.5px; font-weight: 600; line-height: 1.2; overflow-wrap: anywhere; hyphens: auto; }
.omk small { font-size: 11.5px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.omk:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
body[data-teilen="handwerker"] #woptsBody .omehr { pointer-events: none; }
body[data-teilen="handwerker"] #woptsBody .omk[aria-checked="false"] { opacity: 0.5; }
.wopts .wprob { color: #8a2f1c; background: #fbeee9; border-radius: 8px; padding: 6px 9px; }

/* ======================================================================
   R3 (U1, Etappe 2): Optionenblatt mit klaren Abschnitten (U-1), Farbpunkte (U-10), Zeilen mit Vorschaubild (U-5),
   Kärtchen beim Umschalten (U-5), Vergleichen (U-6), Produktkarte (U-7, U-8), lange Namen (U-9), Anschlüsse (U-4),
   Arbeitszeit eingeklappt (U-11), „ändert nur den Preis“ (G1)
   ====================================================================== */
.wopts .wtitel { margin: 2px 0 0; }
.wopts .wogrp { margin: 0 0 4px; }
.wopts .wgh { position: sticky; top: var(--wtabs-h, 52px); z-index: 1; display: flex; align-items: center; gap: 8px; margin: 12px -4px 6px; padding: 9px 4px 8px;
  font-size: 17.5px; font-weight: 760; letter-spacing: -0.01em; line-height: 1.2; color: var(--ink); text-transform: none;
  background: linear-gradient(var(--paper), var(--paper)); border-radius: 1px; border-bottom: 1px solid #e6ddd1; }
.wopts .wopt { margin: 8px 0 16px; }
.wopts .wopt .ohd { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 7px; min-height: 36px; }
.wopts .wopt .olbl { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; min-width: 0; margin: 0; font-size: 15px; font-weight: 700; line-height: 1.25; color: var(--ink); }
.wopts .wopt .oname { overflow-wrap: anywhere; hyphens: auto; }
.wopts .wopt .wzahl { font-size: 12.5px; font-weight: 650; color: var(--accent); font-variant-numeric: tabular-nums; white-space: nowrap; }
.wopts .wopt .odesc { margin: -3px 0 7px; font-size: 12.5px; line-height: 1.35; color: var(--muted); }
.ovgl { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px 0 10px; border: 1px solid #e0d5c8; border-radius: 999px;
  background: var(--paper); color: var(--accent); font: inherit; font-size: 13px; font-weight: 650; cursor: pointer; transition: background-color .15s ease, border-color .15s ease; }
.ovgl .ic { width: 16px; height: 16px; }
@media (hover: hover) { .ovgl:hover { background: var(--accent-soft); border-color: #d9c3ab; } }
.ovgl:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* U-10: Farbpunkte (Armaturen, Mikrozement-Ton, Fliesenton) */
.ofarben { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.ofb { display: flex; flex-direction: column; align-items: center; gap: 6px; min-height: 44px; padding: 11px 6px 9px; border: 1px solid #e3dbd0; border-radius: 14px;
  background: var(--paper); color: var(--ink); font: inherit; cursor: pointer; transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease; }
.ofb .ofd { width: 42px; height: 42px; border-radius: 50%; background: radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 46%), var(--f, #cfc8bd);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.16), 0 1px 3px rgba(52, 40, 28, 0.22); transition: box-shadow .15s ease; }
.ofb .ofd.leer { background: repeating-linear-gradient(45deg, #eee7dd 0 6px, #f8f4ee 6px 12px); }
.ofb .ofn { font-size: 13px; font-weight: 650; line-height: 1.2; text-align: center; overflow-wrap: anywhere; hyphens: auto; }
.ofb small { font-size: 11.5px; line-height: 1.15; color: var(--muted); font-variant-numeric: tabular-nums; min-height: 1.15em; }
.ofb[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.ofb[aria-pressed="true"] .ofd { box-shadow: 0 0 0 3px var(--accent-soft), 0 0 0 5px var(--accent), inset 0 0 0 1px rgba(0, 0, 0, 0.16); }
.ofb[aria-pressed="true"] small { color: var(--accent); font-weight: 650; }
@media (hover: hover) { .ofb:hover, .owr:hover { border-color: #d6c6b3; } }
.ofb:focus-visible, .owr:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* U-5 (a), U-9: Werte als Zeilen mit Vorschaubild, volle Namen brechen um */
.oliste { display: grid; gap: 6px; }
.owr { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 7px 12px 7px 9px; border: 1px solid #e3dbd0; border-radius: 12px;
  background: var(--paper); color: var(--ink); text-align: left; font: inherit; cursor: pointer; transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease; }
.owr .owb { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 9px; overflow: hidden; background: #fff; border: 1px solid #eee6dc; }
.owr .owb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.owr .owb.farbe { background: radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0) 46%), var(--f); border-radius: 50%; }
.owr .owb.leer { background: repeating-linear-gradient(45deg, #f1ebe2 0 6px, #f8f4ee 6px 12px); }
.owr .owt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.owr .own { font-size: 14px; font-weight: 650; line-height: 1.25; overflow-wrap: anywhere; hyphens: auto; }
.owr .ows { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 8px; font-size: 12px; line-height: 1.25; color: var(--muted); font-variant-numeric: tabular-nums; }
.owr .owk { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #cfc4b6; box-sizing: border-box; transition: background-color .15s, border-color .15s; }
.owr[aria-pressed="true"], .owr[aria-checked="true"] { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.owr[aria-pressed="true"] .owk { border-color: var(--accent); background: var(--accent); }
.owr[aria-pressed="true"] .owk::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.owr[aria-pressed="true"] .ows { color: var(--accent); font-weight: 650; }
.owr .omkx { flex: none; width: 22px; height: 22px; border: 2px solid #8f8273; border-radius: 6px; display: grid; place-items: center; background: #fff; box-sizing: border-box; }
.owr[aria-checked="true"] .omkx { background: var(--accent); border-color: var(--accent); }
.owr[aria-checked="true"] .omkx::after { content: ''; width: 9px; height: 5px; border: solid #fff; border-width: 0 0 2.5px 2.5px; transform: translateY(-1px) rotate(-45deg); }
.wnk { display: inline-block; padding: 1px 8px; border-radius: 999px; background: #edf0f3; color: #46505c; font-size: 11px; font-weight: 600; line-height: 1.5; white-space: nowrap; }
.oseg .wnk { margin-top: 2px; }
body[data-teilen="handwerker"] #woptsBody :is(.oliste, .ofarben) { pointer-events: none; }
body[data-teilen="handwerker"] #woptsBody :is(.owr, .ofb):not([aria-pressed="true"]):not([aria-checked="true"]) { opacity: 0.55; }
/* U-11: Arbeitszeit eingeklappt */
.warb { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; margin: 6px 0 0; padding: 6px 2px; border: 0; border-top: 1px solid rgba(155, 90, 42, 0.25);
  background: transparent; color: var(--accent); font: inherit; font-size: 13.5px; font-weight: 650; text-align: left; cursor: pointer; }
.warb small { margin-left: auto; color: var(--muted); font-size: 12px; font-weight: 500; text-align: right; }
.warb::after { content: ''; flex: none; width: 7px; height: 7px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); transition: transform .15s ease; }
.warb[aria-expanded="true"]::after { transform: translateY(2px) rotate(-135deg); }
.warbbox { display: grid; gap: 6px; padding: 4px 0 2px; }
.warbbox[hidden] { display: none; }
.wopts .warbsec { margin-top: 10px; }
.wopts .warbsec .warb { border-top: 1px solid var(--line); color: var(--ink); }
/* U-9: lange Namen umbrechen statt überlappen */
.wopts .wkb { white-space: normal; overflow-wrap: anywhere; hyphens: auto; }
.wkarte h3, .wkarte .pkunter { overflow-wrap: anywhere; hyphens: auto; }
@media (pointer: coarse), (max-width: 899px) { .wopts .wka { display: inline-flex; align-items: center; min-height: 44px; padding: 0 2px; } .ovgl { min-height: 44px; } }
/* U-5 (b): Kärtchen beim Umschalten */
.wtoast { position: fixed; left: 50%; top: 96px; z-index: 60; display: flex; align-items: center; gap: 12px; width: min(360px, calc(100vw - 24px)); padding: 10px 14px 10px 10px;
  border-radius: 16px; background: rgba(255, 253, 250, 0.97); box-shadow: 0 12px 32px rgba(44, 32, 20, 0.22), 0 0 0 1px rgba(44, 32, 20, 0.06);
  pointer-events: none; opacity: 0; transform: translate(-50%, -10px) scale(0.98); transition: opacity .22s ease, transform .22s ease; }
.wtoast.an { opacity: 1; transform: translate(-50%, 0) scale(1); }
.wtoast[hidden] { display: none; }
.wtoast .wtb { flex: none; display: grid; place-items: center; width: 140px; height: 105px; border-radius: 11px; overflow: hidden; background: #fff; border: 1px solid #efe8de; }
.wtoast .wtb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.wtoast .wtb img[hidden], .wtoast .wtf[hidden] { display: none; }
.wtoast .wtf { width: 74px; height: 74px; border-radius: 50%; background: radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 46%), var(--f); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15); }
.wtoast.ohnebild .wtb { display: none; }
.wtoast .wtt { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.wtoast .wto { font-size: 11.5px; font-weight: 650; color: var(--muted); }
.wtoast .wtn { font-size: 15px; line-height: 1.25; color: var(--ink); overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.wtoast .wtp { font-size: 13px; font-weight: 650; font-variant-numeric: tabular-nums; color: var(--ink); }
.wtoast .wtd { font-size: 12.5px; font-weight: 650; font-variant-numeric: tabular-nums; color: var(--accent); }
.wtoast .wtp:empty, .wtoast .wtd:empty { display: none; }
@media (max-width: 400px) { .wtoast .wtb { width: 112px; height: 86px; } }
@media (prefers-reduced-motion: reduce) { .wtoast { transition: opacity .15s linear; transform: translate(-50%, 0); } }
/* U-6: Vergleichen (Hochformat: 3D oben, Karte unten; Querformat und Rechner: 3D links, Karte rechts) */
body[data-wvgl] :is(#top, #bar, #wviews, #wdims, #wlabels, #hinweisV8, #erst, .wkarte) { visibility: hidden; }
.wvgl { position: fixed; z-index: 55; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; height: 45vh; height: 45dvh; min-height: 300px;
  padding: 10px 0 calc(12px + env(safe-area-inset-bottom, 0px)); background: var(--paper); border-radius: 20px 20px 0 0; box-shadow: 0 -10px 32px rgba(44, 32, 20, 0.18); }
.wvgl[hidden] { display: none; }
@media (min-width: 900px), (orientation: landscape) and (max-height: 560px) {
  .wvgl { top: 0; left: auto; width: min(460px, 42vw); height: auto; min-height: 0; border-radius: 20px 0 0 20px; box-shadow: -10px 0 32px rgba(44, 32, 20, 0.16); padding-top: 14px; } }
@media (min-width: 900px) and (min-height: 600px) {   /* Rechner: Karte so hoch wie ihr Inhalt, Bild im Querformat */
  .wvgl .vgbahn { align-items: center; }
  .wvgl .vgb { flex: none; aspect-ratio: 4 / 3; } }
.wvgl:focus { outline: none; }
.wvgl .vgkopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 16px 8px; }
.wvgl .vgtt { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
.wvgl .vgt { font-size: 16.5px; font-weight: 760; line-height: 1.2; color: var(--ink); overflow-wrap: anywhere; }
.wvgl .vgz { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.wvgl .vgfertig { flex: none; min-height: 44px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--accent); color: #fff; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.wvgl .vgfertig:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.wvgl .vgmitte { position: relative; flex: 1 1 auto; min-height: 0; }
.wvgl .vgbahn { display: flex; gap: 12px; height: 100%; box-sizing: border-box; padding: 2px 7% 6px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory;
  scroll-padding: 0 7%; touch-action: pan-x; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.wvgl .vgbahn::-webkit-scrollbar { display: none; }
.wvgl .vgk { flex: 0 0 86%; scroll-snap-align: center; scroll-snap-stop: always; display: flex; flex-direction: column; min-height: 0; overflow: hidden;
  background: #fff; border: 1px solid #e8dfd3; border-radius: 16px; box-shadow: 0 2px 10px rgba(44, 32, 20, 0.07); transition: box-shadow .2s ease, border-color .2s ease; }
.wvgl .vgk.akt { border-color: #d9c6b0; box-shadow: 0 6px 20px rgba(44, 32, 20, 0.14); }
.wvgl .vgb { position: relative; flex: 1 1 auto; min-height: 96px; display: grid; place-items: center; overflow: hidden; background: #fff; }
.wvgl .vgb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.wvgl .vgb.ki img { object-fit: cover; }
.wvgl .vgb.farbe { background: linear-gradient(#faf7f3, #f1ebe3); }
.wvgl .vgf { width: min(110px, 60%); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 46%), var(--f);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15), 0 6px 18px rgba(44, 32, 20, 0.18); }
.wvgl .vgleer { padding: 16px; font-weight: 650; color: var(--muted); text-align: center; }
.wvgl .vgtx { flex: none; display: flex; flex-direction: column; gap: 3px; padding: 9px 13px 11px; border-top: 1px solid #f0e9df; }
.wvgl .vgtx h3 { margin: 0; font-size: 15px; line-height: 1.25; color: var(--ink); overflow-wrap: anywhere; hyphens: auto; }   /* U-9: voller Name, das Bild darüber gibt Platz ab */
.wvgl .vgp { margin: 0; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-variant-numeric: tabular-nums; }
.wvgl .vgp b { font-size: 15px; }
.wvgl .vgd { font-size: 13px; font-weight: 650; color: var(--accent); text-align: right; }
.wvgl .vgm { margin: 0; min-height: 2.6em; font-size: 12.5px; line-height: 1.3; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wvgl .vgsw { margin-top: 2px; }
.wvgl .vgpf { position: absolute; top: calc(50% - 46px); z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(255, 253, 250, 0.95); color: var(--ink); box-shadow: 0 2px 10px rgba(44, 32, 20, 0.22); cursor: pointer; transition: opacity .15s ease; }
.wvgl .vgpf.l { left: 8px; } .wvgl .vgpf.r { right: 8px; }
.wvgl .vgpf.l .ic { transform: rotate(90deg); } .wvgl .vgpf.r .ic { transform: rotate(-90deg); }
.wvgl .vgpf:disabled { opacity: 0; pointer-events: none; }
.wvgl .pkki { position: absolute; left: 8px; top: 8px; padding: 2px 8px; border-radius: 6px; background: rgba(44, 38, 32, 0.82); color: #fff; font-size: 11.5px; font-weight: 650; }
@media (min-width: 900px), (orientation: landscape) and (max-height: 560px) { .wvgl .vgk { flex-basis: 84%; } }
/* U-7: erstes Bild groß (KI-Bild füllt den Rahmen), Tippen öffnet das Vollbild */
.wkarte .pkbild { max-height: 320px; cursor: zoom-in; }
@media (max-width: 899px) { .wkarte .pkbild { max-height: 250px; } }
.wkarte .pkbild.ki img { object-fit: cover; }
.wkarte .pkvgl { display: none !important; }
/* U-8: weitere Produkte auf demselben Strahl */
.pkauch { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 6px 0 2px; font-size: 12.5px; color: var(--muted); }
.pkab { min-height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; overflow-wrap: anywhere; text-align: left; }
.pkhz { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pkhz .pkh { margin: 0; }
@media (pointer: coarse), (max-width: 899px) { .pkab { min-height: 44px; } }
/* U-4: Anschlüsse */
.wopts .wnav { margin: 6px 0 2px; }
.wopts .wanl .wgh .wand { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--f); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15); }
.wanliste { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 5px; }
.wanz { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; min-height: 48px; padding: 7px 12px; border: 1px solid #e3dbd0; border-radius: 11px; background: var(--paper); color: var(--ink); text-align: left; font: inherit; cursor: pointer; }
.wanz .wantx { font-size: 14px; font-weight: 650; line-height: 1.25; overflow-wrap: anywhere; }
.wanz small { font-size: 12px; color: var(--muted); }
@media (hover: hover) { .wanz:hover { border-color: #d6c6b3; } }
/* R3 Nachbesserung: Summe kompakt (Gesamt zuerst), Raumaufteilung in zwei Spalten */
.wopts .wsum .wsl1.g:first-child { border-top: 0; padding-top: 0; margin-top: 0; font-size: 16px; }
.wopts .wsum .wsl1.g:first-child b { font-size: 17px; }
.wopts .wtabbody > .wsum { margin-top: 18px; }
.oliste.zwei { grid-template-columns: repeat(auto-fill, minmax(min(100%, 168px), 1fr)); }
.oliste.zwei .owr { min-height: 56px; }

/* ======================================================================
   R3c (X2, 23.11.2026): Kärtchen beim Umschalten ganz oben über dem Kopf und größer (N2), Planungsblatt höher ziehen (N3)
   ====================================================================== */
.wtoast { width: min(440px, calc(100vw - 16px)); padding: 8px 14px 8px 8px; gap: 14px; }
.wtoast .wtb { width: 168px; height: 124px; }
.wtoast .wtn { font-size: 16px; font-weight: 650; -webkit-line-clamp: 3; }
.wtoast .wtp { font-size: 14px; }
@media (max-width: 400px) { .wtoast .wtb { width: 156px; height: 122px; } .wtoast .wtn { font-size: 15px; } }
@media (min-width: 900px) { .wtoast { left: 236px; } }   /* Rechner: über dem Kopf links, das 3D rechts bleibt frei */
.wopts .ohead .wgross { margin-left: auto; margin-right: 8px; }
.wopts .ohead .wgross .ic { transform: rotate(180deg); transition: transform .18s ease; }
.wopts .ohead .wgross[aria-pressed="true"] .ic { transform: none; }
@media (min-width: 900px) { .wopts .ohead .wgross { display: none; } }
@media (max-width: 899px) { .wopts { transition: height 0.22s ease-out, transform 0.18s ease-out; } .wopts.drag { transition: none; } .wopts .ohead, .wopts .grab { touch-action: none; } }
/* N4: Kopf klappt am Handy zu einem Menüknopf ein (drei Striche, Summe daneben) */
.kopfknopf { display: none; }
@media (max-width: 899px) {
  body[data-kopfzu="1"][data-wmodus="wohnung"] #top { display: none; }
  body[data-kopfzu="1"][data-wmodus="wohnung"] .kopfknopf { position: fixed; z-index: 21; top: calc(var(--safe-t) + 8px); left: 8px; display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
    padding: 0 16px 0 14px; border: 0; border-radius: 999px; background: var(--glass); box-shadow: var(--shadow); color: var(--ink); font: inherit; font-size: 14.5px; font-weight: 650; cursor: pointer; }
  .kopfknopf .hb { display: grid; gap: 4px; }
  .kopfknopf .hb i { display: block; width: 18px; height: 2px; border-radius: 1px; background: currentColor; }
  .kopfknopf .ks { font-variant-numeric: tabular-nums; color: var(--accent); }
  .kopfknopf .ks:empty { display: none; }
  .kopfknopf:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
}

/* R4 (Y3, Aufgabe 5): Name dieses Geräts (Teilen, Meine Stände), unauffällig */
.geraetname { margin: 12px 16px 8px; font-size: 13px; color: #6f6860; }
.geraetname label { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.geraetname input { font: inherit; font-size: 16px; color: #2b2622; width: 11em; max-width: 60%; min-height: 44px; box-sizing: border-box; padding: 6px 10px; border: 1px solid #d6cfc6; border-radius: 10px; background: #fffdfa; }
.geraetname input:focus { outline: 2px solid #b88a5a; outline-offset: 1px; }

/* ======================================================================
   G1 (R4, 23.11.2026): Reiter „Bilder“ (Bildergalerie). Je Auswahl eine waagerecht wischbare Reihe großer Bildkarten (4:3, scroll-snap;
   am Handy etwa 80 % breit, die nächste schaut hervor), „Das nehme ich“ wählt, am Rechner Pfeilknöpfe. Vollbild der Galerie mit Knopf.
   ====================================================================== */
.wopts .galhead { margin: 2px 0 2px; }
.wopts .galtitel { margin: 6px 0 2px; font-size: 19px; font-weight: 760; letter-spacing: -0.01em; line-height: 1.2; color: var(--ink); }
.wopts .galhead .wnote { margin: 2px 0 4px; }
.wopts .galrow { margin: 6px 0 20px; }
.wopts .galkopf { display: flex; align-items: baseline; gap: 10px; margin: 0 0 7px; min-height: 20px; }
.wopts .galname { margin: 0; min-width: 0; font-size: 15px; font-weight: 700; line-height: 1.25; color: var(--ink); overflow-wrap: anywhere; }
.wopts .galzahl { flex: none; margin-left: auto; font-size: 12.5px; font-weight: 650; color: var(--accent); font-variant-numeric: tabular-nums; white-space: nowrap; }
.wopts .galwrap { position: relative; container-type: inline-size; }
.wopts .galbahn { position: relative; display: flex; gap: 10px; margin: 0 -14px; padding: 2px 14px 8px; list-style: none; overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; scroll-padding: 0 14px; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.wopts .galbahn::-webkit-scrollbar { display: none; }
.wopts .galk { flex: 0 0 85%; max-width: 460px; min-width: 0; margin: 0; scroll-snap-align: start; display: flex; flex-direction: column; gap: 7px; }
.wopts .galbild { position: relative; display: block; width: 100%; margin: 0; padding: 0; border: 1px solid #e6ddd1; border-radius: 12px; overflow: hidden;
  background: #f3efe8; cursor: zoom-in; font: inherit; color: inherit; transition: box-shadow .15s ease, border-color .15s ease; }
.wopts .galbild::before { content: ""; display: block; padding-top: 75%; }   /* 4:3, feste Höhe vor dem Laden */
.wopts .galbild img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.wopts .galbild:not(.ki) img { object-fit: contain; background: #fff; }   /* Shop-Fotos ganz zeigen */
.wopts .galk.an .galbild { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.wopts .galgew { position: absolute; right: 8px; top: 8px; padding: 3px 10px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; line-height: 1.4; }
.wopts .galtx { display: flex; flex-direction: column; gap: 2px; min-height: 40px; padding: 0 2px; }
.wopts .galn { font-size: 14px; font-weight: 650; line-height: 1.28; color: var(--ink); overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wopts .galp { font-size: 12.5px; font-weight: 650; line-height: 1.25; color: var(--accent); font-variant-numeric: tabular-nums; min-height: 1.25em; }
.galwahl { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; width: 100%; min-height: 46px; margin-top: auto; padding: 6px 12px;
  border: 0; border-radius: 12px; background: var(--accent); color: #fff; font: inherit; font-size: 15px; font-weight: 700; line-height: 1.2; cursor: pointer; transition: background-color .15s ease; }
.galwahl small { font-size: 11.5px; font-weight: 600; opacity: 0.9; }
.galwahl.an { background: var(--accent-soft); color: var(--accent); box-shadow: inset 0 0 0 1px #e3cdb6; }
.galwahl[aria-disabled="true"] { cursor: default; }
@media (hover: hover) { .galwahl:not(.an):hover { background: #6f4527; } }
.galwahl:focus-visible, .wopts .galbild:focus-visible, .wopts .galpf:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wopts .galpf { display: none; }
@media (hover: hover) and (pointer: fine) {
  .wopts .galpf { position: absolute; top: 30%; top: calc(2px + 31.875cqi - 20px); z-index: 2; display: grid; place-items: center; width: 40px; height: 40px; padding: 0;
    border: 1px solid #e0d5c8; border-radius: 50%; background: rgba(255, 253, 250, 0.96); box-shadow: var(--shadow); color: var(--ink); cursor: pointer; }
  .wopts .galpf .ic { width: 20px; height: 20px; }
  .wopts .galpf.l { left: -6px; } .wopts .galpf.l .ic { transform: rotate(90deg); }
  .wopts .galpf.r { right: -6px; } .wopts .galpf.r .ic { transform: rotate(-90deg); }
  .wopts .galpf:disabled { opacity: 0; pointer-events: none; }
  .wopts .galpf:hover { background: var(--accent-soft); }
}
.wvoll.gal { grid-template-rows: minmax(0, 1fr) auto auto; }
.wvoll.gal .wvbox { grid-template: minmax(0, 1fr) / minmax(0, 1fr); }   /* Bild bleibt im Rahmen (sonst große Bilder in voller Größe über dem Knopf) */
.wvoll.gal .wvbox img { justify-self: center; align-self: center; }
.wvwahl { justify-self: center; display: flex; flex-direction: column; align-items: stretch; gap: 5px; width: min(360px, 100%); margin: 10px 0 0; }
.wvwahl .galwahl { min-height: 50px; font-size: 16px; }
.wvwahl .galwahl.an { background: rgba(255, 253, 250, 0.94); box-shadow: none; }
.wvwahl .galp { color: #f2ede6; text-align: center; font-size: 13px; font-weight: 650; font-variant-numeric: tabular-nums; min-height: 1.2em; }
@media (prefers-reduced-motion: reduce) { .wopts .galbahn { scroll-behavior: auto; } .galwahl, .wopts .galbild { transition: none; } }
/* Die Reihen reichen bis an den Blattrand: klebende Reiter und Überschriften decken die Randstreifen mit ab (sonst scheinen Karten durch) */
.wopts .wtabs { box-shadow: 0 -12px 0 var(--paper), 0 4px 0 var(--paper), -14px 0 0 var(--paper), 14px 0 0 var(--paper), -14px -12px 0 var(--paper), 14px -12px 0 var(--paper), -14px 4px 0 var(--paper), 14px 4px 0 var(--paper); }
.wopts .galgrp .wgh { box-shadow: -10px 0 0 var(--paper), 10px 0 0 var(--paper); }

/* ---------- R5: kleines Bild an jeder Auswahl („Swatches“), geladen wird die kleine Fassung ---------- */
/* Zeilen: Raumbild 4:3 statt 48 px Quadrat (das KI-Bild je Wert füllt den Rahmen; Shop-Fotos bleiben freigestellt) */
.oliste.raumbild .owr { min-height: 76px; padding: 6px 12px 6px 6px; }
.oliste.raumbild .owr .owb { width: 84px; height: 63px; border-radius: 8px; }
.oliste.raumbild .owr .owb.raum img { object-fit: cover; }
.oliste.raumbild .owr .owb.farbe { border-radius: 8px; }   /* Farbe ohne Bild: Fläche im selben Rahmen statt Kugel */
/* Farbkacheln mit Raumbild: Bild oben, der Farbpunkt bleibt klein in der Ecke */
.ofarben.raumbild { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }
.ofb.mitbild { padding: 5px 5px 8px; gap: 5px; align-items: stretch; }
.ofb.mitbild .ofbild { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: #f3efe8; }
.ofb.mitbild .ofbild img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ofb.mitbild .ofbild.leer { background: var(--f, repeating-linear-gradient(45deg, #eee7dd 0 6px, #f8f4ee 6px 12px)); }
.ofb.mitbild .ofd.mini, .ofb.mitbild[aria-pressed="true"] .ofd.mini { position: absolute; left: 5px; bottom: 5px; width: 18px; height: 18px; box-shadow: 0 0 0 2px #fff, 0 1px 3px rgba(0, 0, 0, 0.35); }
.ofb.mitbild .ofn, .ofb.mitbild small { text-align: center; }
/* Raumaufteilung: Raumbild oben, Name und Preis darunter */
.oliste.zwei.vbilder { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }   /* immer zwei nebeneinander (auch im schmalen Blatt am Rechner) */
.oliste.zwei.vbilder .owr.vbild { flex-wrap: wrap; align-items: flex-start; gap: 8px 10px; padding: 6px 6px 9px; }
.oliste.zwei.vbilder .ovb { flex: 0 0 100%; display: block; aspect-ratio: 4 / 3; border-radius: 9px; overflow: hidden; background: #f3efe8; }
.oliste.zwei.vbilder .ovb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.oliste.zwei.vbilder .ovb.leer { background: repeating-linear-gradient(45deg, #f1ebe2 0 6px, #f8f4ee 6px 12px); }
.oliste.zwei.vbilder .owr.vbild { align-content: flex-start; }
.oliste.zwei.vbilder .owr.vbild .owt { flex: 1 1 0; padding-left: 4px; }   /* Basis 0: der Auswahlpunkt bleibt neben dem Namen, auch wenn er umbricht */
.oliste.zwei.vbilder .owr.vbild { position: relative; }
.oliste.zwei.vbilder .owr.vbild .owt { padding-right: 4px; }
/* Auswahlpunkt oben rechts auf dem Bild: der Name bekommt die ganze Breite der Kachel */
.oliste.zwei.vbilder .owr.vbild .owk { position: absolute; top: 12px; right: 12px; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); }
.oliste.zwei.vbilder .owr.vbild[aria-pressed="true"] .owk { background: var(--accent); }
/* Produktkarte: Raumbild im Auswahlfeld füllt den Rahmen */
.wkarte .pkth.raum img { object-fit: cover; }

/* Demo-Fassung (nur das Bad): Raumwahl, Teilen und "Wohnung drumherum" aus */
html[data-demo] #tRaeume, html[data-demo] #raumList, html[data-demo] .teilbtn, html[data-demo] #teilDlg,
html[data-demo] #teilBack, html[data-demo] #teilInfo, html[data-demo] #vWohnung { display: none !important; }
html[data-demo] #raumBtn { pointer-events: none; }
html[data-demo] #raumBtn svg { display: none; }
