:root {
  --bg: #f4f6f8; --panel: #ffffff; --line: #e2e7ec; --ink: #16202a; --mute: #66727f;
  --acc: #0f766e; --acc-2: #14b8a6; --acc-soft: #dff5f1; --danger: #b42318; --warn: #b45309;
  --top: 56px; --rw: 340px; --pw: 300px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); font-size: 14px; }
body:not(.login-body) { overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 1px solid var(--line); background: #fff; border-radius: 9px; padding: 6px 11px; }
button:hover { border-color: #c5ced6; background: #f8fafb; }
button.on { background: var(--acc-soft); border-color: var(--acc); color: var(--acc); }
button.primary, label.primary { background: var(--acc); border-color: var(--acc); color: #fff; font-weight: 600; }
button.primary:hover { background: #0b5d57; }
button.big { padding: 11px 18px; font-size: 15px; }
button.small { padding: 4px 9px; font-size: 12.5px; }
button.danger { color: var(--danger); }
button.ic { padding: 4px 8px; min-width: 34px; }
button.wide { width: 100%; padding: 10px; }
button:disabled { opacity: .6; cursor: default; }
input, select, textarea { border: 1px solid var(--line); border-radius: 9px; padding: 7px 9px; background: #fff; min-width: 0; width: 100%; }
input[type=checkbox], input[type=radio] { width: auto; }
input[type=color] { padding: 2px; height: 34px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--acc-soft); border-color: var(--acc); }
kbd { font: 11px ui-monospace, monospace; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; padding: 0 4px; background: #fff; }
code { font-size: 12px; }
.hint { color: var(--mute); font-size: 12.5px; line-height: 1.55; }
.hint.small { font-size: 11.5px; }
.grow { flex: 1; }
[hidden] { display: none !important; }
label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--mute); }
label.full { margin-bottom: 10px; }
label.chk { flex-direction: row; align-items: center; gap: 8px; color: var(--ink); font-size: 13px; padding: 3px 0; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin-bottom: 9px; }
.btns { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.btns button { flex: 1; font-size: 12.5px; }
.btns.end { justify-content: flex-end; align-items: center; }
.btns.end button { flex: none; }

/* Kopfzeile */
header.top { position: fixed; inset: 0 0 auto 0; height: var(--top); display: flex; align-items: center; gap: 10px; padding: 0 14px; background: var(--panel); border-bottom: 1px solid var(--line); z-index: 20; }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); }
.brand svg { width: 28px; height: 28px; color: var(--acc); }
.brand b { font-size: 16px; letter-spacing: -.01em; }
.ptabs { display: flex; gap: 4px; margin-left: 14px; }
.ptabs button { border: 0; background: none; font-weight: 600; color: var(--mute); padding: 8px 12px; border-radius: 9px; }
.ptabs button.on { background: var(--acc-soft); color: var(--acc); }
.sync { font-size: 12px; padding: 4px 9px; border-radius: 99px; background: #eef2f5; color: var(--mute); white-space: nowrap; }
.sync[data-state=ok] { background: #e6f6ee; color: #11734b; } .sync[data-state=off] { background: #fdf3e6; color: var(--warn); }
.mode select { width: auto; font-size: 12.5px; padding: 5px 8px; }
.budget { font-size: 12px; color: var(--mute); white-space: nowrap; }
.budget.low { color: var(--warn); font-weight: 600; }
.budget.credits { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--ink, #222); background: var(--acc-soft); padding: 4px 10px; border-radius: 99px; }
.budget.credits.low { color: var(--warn); }
.cr-bal { display: flex; align-items: baseline; gap: 10px; margin: 6px 0 14px; } .cr-bal b { font-size: 30px; } .cr-bal span { color: var(--mute); }
.cr-warn { background: #fff4e5; border-radius: 8px; padding: 8px 10px; font-size: 13.5px; }
.cr-amts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0; }
.cr-amt { min-width: 64px; font-weight: 600; } .cr-amt.on { background: var(--acc); color: #fff; border-color: var(--acc); }
.cr-own { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--mute); } .cr-own input { width: 80px; }
.cr-consent { font-size: 12.5px; line-height: 1.4; margin: 6px 0 10px; align-items: flex-start; }
.cr-ref { display: flex; gap: 6px; } .cr-ref input { flex: 1; min-width: 0; font-size: 13px; }
.cr-hist table, table.cr-wallets { width: 100%; font-size: 12.5px; } .cr-hist td.neg { color: #a33; } .cr-hist td.pos { color: #187a3c; }
table.cr-wallets td small { display: block; color: var(--mute); font-size: 11px; }
.cr-legal { margin-top: 14px; text-align: center; }
.grid4 { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px 12px; margin-bottom: 10px; } .grid4 small { color: var(--mute); font-size: 11px; }
label.chk.big { font-size: 14.5px; margin: 6px 0 12px; }
.user { position: relative; }
#btn-user { border-radius: 50%; width: 34px; height: 34px; font-weight: 700; background: var(--acc); color: #fff; border: 0; }
.menu { position: absolute; right: 0; top: 42px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 14px 40px rgba(0,0,0,.14); padding: 6px; min-width: 210px; z-index: 30; display: flex; flex-direction: column; }
.menu button { border: 0; text-align: left; padding: 9px 10px; }
.menu-head { font-size: 12px; color: var(--mute); padding: 6px 10px 8px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.menu.floating { position: fixed; top: calc(var(--top) + 52px); right: 14px; }
.menu .chk, .menu .range { padding: 6px 10px; }

/* Seiten */
.page { position: fixed; top: var(--top); left: 0; right: 0; bottom: 0; overflow-y: auto; padding: 22px 26px 80px; }
.page.full { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.page-head h1 { margin: 0; font-size: 22px; letter-spacing: -.02em; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.pcard { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; cursor: pointer; position: relative; transition: box-shadow .15s; }
.pcard:hover { box-shadow: 0 10px 30px rgba(0,0,0,.08); }
.pcover { aspect-ratio: 16/10; background: #e9eef2; display: grid; place-items: center; font-size: 40px; }
.pcover img { width: 100%; height: 100%; object-fit: cover; }
.pbody { padding: 10px 12px; } .pbody b { display: block; } .pbody span { font-size: 12px; color: var(--mute); }
.pdel { position: absolute; top: 8px; right: 8px; background: rgba(255,255,255,.9); }
.howto { margin-top: 30px; max-width: 760px; } .howto li { margin-bottom: 8px; line-height: 1.5; }
.src-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.card.wide { grid-column: 1 / -1; }
.card h2 { margin: 0 0 6px; font-size: 16px; }
.drop { border: 2px dashed #cfd8df; border-radius: 12px; padding: 22px; text-align: center; cursor: pointer; color: var(--mute); margin: 8px 0; align-items: center; }
.drop.over { border-color: var(--acc); background: var(--acc-soft); }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.thumbs figure { margin: 0; position: relative; border-radius: 9px; overflow: hidden; border: 1px solid var(--line); background: #f3f5f7; }
.thumbs img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.thumbs select { border: 0; border-top: 1px solid var(--line); border-radius: 0; font-size: 11.5px; padding: 4px; }
.thumbs button { position: absolute; top: 4px; right: 4px; background: rgba(255,255,255,.9); min-width: 26px; padding: 2px 6px; }
.job { margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: #eef6f5; font-size: 13.5px; }
.job.err { background: #fdecec; color: var(--danger); } .job.ok { background: #e6f6ee; color: #11734b; }
.job small { color: var(--mute); margin-left: 6px; }
.spin { display: inline-block; width: 14px; height: 14px; border: 2px solid var(--acc-2); border-top-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; vertical-align: -2px; margin-right: 6px; }
@keyframes spin { to { transform: rotate(360deg); } }
.center-card { max-width: 440px; margin: 10vh auto; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 28px; text-align: center; }

/* Grundriss */
.plan-bar, .model-bar { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: #fff; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.tools { display: flex; gap: 4px; flex-wrap: wrap; } .tools.right { margin-left: auto; }
.tools button { font-size: 13px; padding: 6px 9px; white-space: nowrap; }
.levels { display: flex; gap: 4px; }
.levels button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.plan-wrap, .model-wrap { flex: 1; display: flex; min-height: 0; position: relative; }
.plan-canvas { flex: 1; position: relative; background: #fbfcfd; touch-action: none; }
.plan-canvas[data-tool=wall], .plan-canvas[data-tool=area] { cursor: crosshair; }
.plan-canvas[data-tool=door], .plan-canvas[data-tool=window], .plan-canvas[data-tool=glassdoor], .plan-canvas[data-tool=opening], .plan-canvas[data-tool=split] { cursor: copy; }
.plan-svg { width: 100%; height: 100%; display: block; user-select: none; }
.plan-panel { width: var(--pw); border-left: 1px solid var(--line); background: #fff; padding: 14px; overflow-y: auto; }
.plan-panel h3 { margin: 0 0 10px; font-size: 15px; }
.plan-svg .g05 { stroke: #eef1f4; stroke-width: 1; } .plan-svg .g1 { stroke: #e1e6eb; stroke-width: 1; }
.plan-svg .room { stroke: none; cursor: pointer; opacity: .8; } .plan-svg .room.sel { opacity: 1; stroke: var(--acc); stroke-width: 2; stroke-dasharray: 5 4; }
.plan-svg .area { fill: #e8f2e3; stroke: #a8c49b; stroke-width: 1; cursor: pointer; } .plan-svg .area.terrasse { fill: #e5e8ec; stroke: #b5bcc4; } .plan-svg .area.balkon { fill: #e9edf0; } .plan-svg .area.kies { fill: #efe7da; } .plan-svg .area.sel { stroke: var(--acc); stroke-width: 2; }
.plan-svg .area-label { font-size: 11px; fill: #61705a; text-anchor: middle; pointer-events: none; }
.plan-svg .wall { fill: #3a4048; cursor: pointer; } .plan-svg .wall.ext { fill: #22272e; } .plan-svg .wall.sel { fill: var(--acc); }
.plan-svg .op { fill: #fff; stroke: #22272e; stroke-width: 1; cursor: grab; } .plan-svg .op.window, .plan-svg .op.glassdoor, .plan-svg .op.fixglass { fill: #dff2f7; } .plan-svg .op.sel { fill: #ffe9a8; stroke: var(--warn); }
.plan-svg .door-leaf { stroke: #22272e; stroke-width: 2; pointer-events: none; } .plan-svg .door-arc { fill: none; stroke: #8a929b; stroke-width: 1; stroke-dasharray: 4 3; pointer-events: none; }
.plan-svg .win-line { stroke: #2b7a9b; stroke-width: 2; pointer-events: none; }
.plan-svg .node { fill: #fff; stroke: var(--acc); stroke-width: 2; cursor: move; } .plan-svg .node.sel { fill: var(--acc); }
.plan-svg .room-name { font-size: 13px; font-weight: 700; fill: #1f2933; text-anchor: middle; cursor: pointer; paint-order: stroke; stroke: rgba(255,255,255,.8); stroke-width: 3px; }
.plan-svg .room-area { font-size: 11px; fill: #55606b; text-anchor: middle; cursor: pointer; paint-order: stroke; stroke: rgba(255,255,255,.8); stroke-width: 3px; }
.plan-svg .dim { font-size: 11px; fill: #1d4ed8; text-anchor: middle; dominant-baseline: middle; font-family: ui-monospace, monospace; paint-order: stroke; stroke: #fff; stroke-width: 3px; cursor: pointer; } .plan-svg .dim.sel { fill: var(--acc); font-weight: 700; }
.plan-svg .draft { fill: none; stroke: var(--acc); stroke-width: 3; stroke-dasharray: 6 4; } .plan-svg .draft-dim { fill: var(--acc); }
.plan-svg .fixed rect { fill: #f3efe8; stroke: #a8946f; stroke-width: 1; cursor: grab; } .plan-svg .fixed .front { stroke: #a8946f; stroke-width: 2.5; } .plan-svg .fixed.sel rect { fill: #ffe9a8; stroke: var(--warn); }
.plan-svg .fixed-label { font-size: 9.5px; fill: #6b5b3e; text-anchor: middle; pointer-events: none; }
.plan-svg .stair { fill: #f6f2ec; stroke: #9b6b3f; } .plan-svg .stair-line { stroke: #c9a885; } .plan-svg .stair-label { font-size: 10px; text-anchor: middle; fill: #7a5634; }
.plan-svg .hole { fill: #fff; stroke: #9aa3ab; stroke-dasharray: 4 3; }
.plan-svg .scalebar rect { fill: #22272e; } .plan-svg .scalebar text { font-size: 11px; fill: #22272e; }
.plan-svg .plan-empty { font-size: 14px; fill: var(--mute); }

/* 3D */
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.seg button, .seg span { border: 0; border-radius: 0; padding: 6px 11px; font-weight: 600; font-size: 13px; }
.seg button.on { background: var(--acc); color: #fff; }
.seg label { flex: 1; } .seg input { display: none; } .seg label span { display: block; text-align: center; cursor: pointer; }
.seg input:checked + span { background: var(--acc); color: #fff; }
.layout-pick { display: flex; gap: 4px; } .layout-pick select { width: auto; max-width: 240px; font-weight: 600; }
.viewport { flex: 1; position: relative; min-width: 0; }
.viewport canvas { display: block; touch-action: none; }
.labels-layer { position: absolute; inset: 0; pointer-events: none; }
aside.right { width: var(--rw); border-left: 1px solid var(--line); background: #fff; display: flex; flex-direction: column; min-height: 0; overflow-x: hidden; }
.tabs { display: flex; border-bottom: 1px solid var(--line); }
.tabs button { flex: 1; border: 0; border-radius: 0; padding: 12px 4px; font-weight: 600; color: var(--mute); background: none; border-bottom: 2px solid transparent; }
.tabs button.on { color: var(--acc); border-bottom-color: var(--acc); background: none; }
.pill { font-size: 11px; background: #eef2f5; border-radius: 99px; padding: 1px 6px; color: var(--mute); }
.tab { padding: 12px 14px 30px; overflow-y: auto; flex: 1; }
.tab h4 { font-size: 12px; margin: 14px 0 6px; display: flex; justify-content: space-between; } .tab h4 small { color: var(--mute); font-weight: 400; }
h4.sep { border-top: 1px solid var(--line); padding-top: 12px; }
#lib-search { margin-top: 10px; }
.lib-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.lib-chip { text-align: left; display: grid; grid-template-columns: 12px 1fr; column-gap: 7px; align-items: center; font-size: 12.5px; padding: 7px 8px; }
.lib-chip i { width: 12px; height: 12px; border-radius: 3px; grid-row: span 2; } .lib-chip small { color: var(--mute); font-size: 10.5px; }
.lib-card { display: grid; grid-template-columns: 44px 1fr auto; gap: 9px; align-items: center; padding: 6px; border: 1px solid var(--line); border-radius: 9px; margin-bottom: 6px; cursor: pointer; }
.lib-card img, .lib-card .swatch { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; }
.lib-card b { display: block; font-size: 13px; } .lib-card span { font-size: 11.5px; color: var(--mute); }
#list .row { display: grid; grid-template-columns: 10px 1fr auto; gap: 8px; align-items: center; padding: 6px 8px; border-radius: 7px; cursor: pointer; font-size: 13px; }
#list .row:hover { background: #f3f6f8; } #list .row i { width: 10px; height: 10px; border-radius: 3px; } #list .row small { color: var(--mute); }
#props h3 { margin: 6px 0; font-size: 16px; }
.dims { font-weight: 600; } .fixed-badge { display: inline-block; font-size: 11px; font-weight: 700; color: #92400e; background: #fef3c7; border-radius: 99px; padding: 2px 9px; }
.prop-photo { width: 100%; border-radius: 8px; margin-top: 6px; }
.opts { border: 1px dashed var(--line); border-radius: 9px; padding: 8px 10px 2px; margin: 0 0 10px; }
.elev { border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; margin: 2px 0 10px; background: #fafbfc; }
.elev label { flex-direction: row; justify-content: space-between; color: var(--ink); font-size: 12.5px; }
.elev input[type=range] { margin: 6px 0; accent-color: var(--acc); padding: 0; border: 0; }
.elev-btns { display: grid; grid-template-columns: auto auto minmax(0, 60px) minmax(0, 1fr) auto; gap: 5px; align-items: center; }
.elev-btns button { font-size: 12px; padding: 5px 7px; }
label.file { text-align: center; border-radius: 9px; padding: 9px; cursor: pointer; flex-direction: row; justify-content: center; color: #fff !important; font-size: 13.5px; }
label.file.small { display: block; margin: 8px 0; }
.room-label { background: rgba(255,255,255,.86); border: 1px solid rgba(22,32,42,.12); border-radius: 7px; padding: 3px 8px; font-size: 12px; text-align: center; white-space: nowrap; }
.room-label b { display: block; } .room-label span { display: block; font-size: 11px; color: var(--mute); } .room-label.out { background: rgba(240,253,244,.85); }
.measure-label { background: #e11d48; color: #fff; border-radius: 6px; padding: 3px 8px; font-weight: 700; font-size: 13px; }
.tip { position: fixed; z-index: 40; pointer-events: none; background: rgba(22,32,42,.92); color: #fff; font-size: 12px; padding: 5px 9px; border-radius: 7px; }
.compass-wrap { position: absolute; left: 14px; bottom: 14px; width: 54px; height: 54px; border-radius: 50%; background: rgba(255,255,255,.9); border: 1px solid var(--line); pointer-events: none; z-index: 2; }
#compass { position: absolute; inset: 0; } #compass b, #compass span { position: absolute; left: 50%; transform: translateX(-50%); font-size: 11px; line-height: 1; }
#compass b { top: 5px; color: #b42318; } #compass span { bottom: 5px; color: var(--mute); }
#compass i { position: absolute; left: 50%; top: 17px; bottom: 17px; width: 4px; margin-left: -2px; background: linear-gradient(#b42318 50%, #94a3b8 50%); border-radius: 2px; }
.selbar { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 5; display: flex; align-items: center; gap: 4px; background: rgba(255,255,255,.96); border: 1px solid var(--line); border-radius: 14px; padding: 6px; box-shadow: 0 10px 30px rgba(0,0,0,.14); max-width: calc(100% - 24px); overflow-x: auto; }
.selbar .sb-name { font-size: 12.5px; font-weight: 600; padding: 0 8px; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.selbar button { min-width: 36px; height: 36px; padding: 0 8px; font-size: 15px; border-radius: 10px; flex: none; }

/* Assistent */
/* KI-Eingabe unten – über der Arbeitsfläche (ohne Seitenpanel) zentriert */
.composer { position: fixed; bottom: 14px; left: 0; right: 0; z-index: 20; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; padding: 0 16px; }
body.view-model .composer { right: var(--rw); } body.view-plan .composer { right: var(--pw); }
.composer > * { pointer-events: auto; width: min(760px, 100%); }
.composer-bar { display: flex; align-items: flex-end; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 7px 7px 7px 12px; box-shadow: 0 10px 34px rgba(16,24,40,.16); }
.composer-bar:focus-within { border-color: var(--acc-2); box-shadow: 0 10px 34px rgba(15,118,110,.22); }
.composer-bar textarea { flex: 1; border: 0; outline: 0; resize: none; background: transparent; padding: 7px 2px; line-height: 1.4; max-height: 160px; min-height: 22px; overflow-y: hidden; }
.composer-bar textarea::placeholder { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.composer-bar .attach { cursor: pointer; font-size: 18px; padding: 6px 2px; align-self: center; }
.composer-bar .hist { border: 0; background: none; font-size: 16px; padding: 6px; position: relative; color: var(--mute); }
.composer-bar .hist sup { position: absolute; top: 0; right: -2px; font-size: 10px; background: var(--acc); color: #fff; border-radius: 9px; padding: 0 4px; line-height: 14px; }
.composer-bar .hist sup:empty { display: none; }
.composer-bar .send { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--acc); color: #fff; font-size: 16px; padding: 0; flex: none; }
.composer-bar .send:disabled { background: #b8c4cc; }
.composer-bar .send.busy { font-size: 0; } .composer-bar .send.busy::after { content: ""; display: inline-block; width: 16px; height: 16px; border: 2px solid #fff; border-top-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
.chip { display: inline-flex; align-items: center; gap: 4px; background: var(--acc-soft); color: var(--acc); border-radius: 99px; padding: 3px 4px 3px 9px; font-size: 12.5px; align-self: center; white-space: nowrap; }
.chip button { border: 0; background: none; padding: 0 4px; font-size: 12px; }
.chat-panel { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 18px 50px rgba(16,24,40,.18); display: flex; flex-direction: column; max-height: min(58vh, 560px); }
.chat-panel header { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.chat-panel header #chat-clear { margin-left: auto; }
.chat-log { flex: 1; overflow-y: auto; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; min-height: 60px; }
.msg { max-width: 88%; padding: 8px 11px; border-radius: 12px; font-size: 13.5px; line-height: 1.45; }
.msg.user { align-self: flex-end; background: var(--acc); color: #fff; border-bottom-right-radius: 4px; }
.msg.assistant { align-self: flex-start; background: #f1f4f6; border-bottom-left-radius: 4px; }
.msg.action { align-self: center; max-width: 100%; background: none; color: var(--mute); font-size: 12.5px; border: 1px dashed var(--line); border-radius: 99px; padding: 5px 12px; }
.msg.action.busy { color: var(--acc); border-color: var(--acc-2); background: #f2fbf9; }
.msg.action.ok { color: #11734b; } .msg.action.err { color: var(--danger); border-color: #f3c0bb; }
.msg.action small { margin-left: 6px; opacity: .8; }
.msg button { display: block; margin-top: 8px; }
.qs { margin-top: 10px; display: flex; flex-direction: column; gap: 10px; }
.q p { margin: 0 0 5px; font-weight: 600; }
.qs .q .opts { border: 0; padding: 0; background: none; display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 5px; }
.msg .q .opts button { display: inline-block; margin: 0; padding: 4px 10px; border-radius: 99px; font-size: 12.5px; }
.q input { width: 100%; padding: 5px 9px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; background: #fff; }
.qs-act { display: flex; gap: 6px; flex-wrap: wrap; } .msg .qs-act button { display: inline-block; margin: 0; }
.qs-done { margin: 8px 0 0; padding-left: 16px; color: var(--mute); font-size: 12.5px; }
.ai-busy { display: inline-flex; align-items: center; gap: 2px; font-size: 12.5px; color: var(--acc); background: #f2fbf9; border: 1px solid #bfe9e1; border-radius: 99px; padding: 3px 10px; white-space: nowrap; max-width: 280px; overflow: hidden; text-overflow: ellipsis; }
.selbar { bottom: 82px; }
.compass-wrap { bottom: 82px !important; }

/* Toast & Dialoge */
.toast { position: fixed; left: 50%; bottom: 80px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; font-size: 13px; z-index: 50; box-shadow: 0 8px 24px rgba(0,0,0,.2); max-width: calc(100% - 32px); }
.toast button { margin-left: 8px; background: none; color: #7dd3fc; border: 0; text-decoration: underline; }
dialog { border: 0; border-radius: 16px; padding: 0; box-shadow: 0 30px 80px rgba(0,0,0,.3); }
dialog::backdrop { background: rgba(10,20,30,.45); }
.dlg { width: min(520px, calc(100vw - 24px)); } .dlg form > div { padding: 18px 20px 6px; } .dlg h2 { margin: 0 0 12px; font-size: 18px; }
.dlg footer, #modal footer { display: flex; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--line); }
#modal { width: min(880px, calc(100vw - 24px)); }
#modal header { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); } #modal h2 { margin: 0; font-size: 17px; }
.c-body { display: grid; grid-template-columns: 1fr 1.25fr; gap: 18px; padding: 16px 18px; max-height: calc(100vh - 170px); overflow-y: auto; }
.photo-box { display: flex; flex-direction: column; gap: 8px; }
#c-photo-prev { aspect-ratio: 4/3; background: #eef2f5; border-radius: 10px; display: grid; place-items: center; overflow: hidden; color: var(--mute); }
#c-photo-prev img { width: 100%; height: 100%; object-fit: contain; }
#c-preview { width: 100%; aspect-ratio: 16/10; background: linear-gradient(#f7f9fb, #e9eef2); border-radius: 10px; display: block; }
.status { font-size: 12.5px; margin: 0; } .status.busy { color: var(--acc); } .status.ok { color: #11734b; } .status.err { color: var(--warn); }
table { width: 100%; border-collapse: collapse; font-size: 13px; } th, td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: 11.5px; color: var(--mute); font-weight: 600; } td select, td input[type=number] { width: auto; min-width: 70px; }
.table-wrap { overflow-x: auto; } table.small td { padding: 4px 6px; }

/* Login */
.login-body { background: radial-gradient(1200px 600px at 20% -10%, #d7f3ee 0%, transparent 60%), var(--bg); min-height: 100%; }
.login { max-width: 420px; margin: 0 auto; padding: 8vh 18px 40px; }
.login-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.login-brand svg { width: 42px; height: 42px; color: var(--acc); } .login-brand b { font-size: 24px; display: block; } .login-brand span { color: var(--mute); font-size: 13px; }
.login-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px; box-shadow: 0 20px 50px rgba(0,0,0,.06); }
.login-card h2 { margin: 0 0 6px; } .login-card form { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.login-card .seg { display: flex; width: 100%; } .err { color: var(--danger); font-size: 13px; margin: 0; }
.or { display: flex; align-items: center; gap: 10px; margin: 16px 0; color: var(--mute); font-size: 12px; } .or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.google { display: flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid var(--line); border-radius: 10px; padding: 10px; text-decoration: none; color: var(--ink); font-weight: 600; }
.login-foot { text-align: center; color: var(--mute); font-size: 12px; margin-top: 18px; }
.login-foot a { color: inherit; } .ref-note { background: var(--acc-soft); border-radius: 8px; padding: 7px 10px; font-size: 13px; margin: 0; }
.terms { font-size: 12.5px; align-items: flex-start !important; line-height: 1.4; } .google-terms { font-size: 11.5px; color: var(--mute); text-align: center; margin: 8px 0 0; }

.only-mobile { display: none; }

/* Handy */
@media (max-width: 900px) {
  :root { --top: 52px; --rw: 0px; --pw: 0px; }
  input, select, textarea, button { font-size: 16px; }
  .only-mobile { display: inline-block; }
  header.top { gap: 6px; padding: 0 8px; }
  .brand b, .budget:not(.credits), .sync { display: none; }
  .ptabs { position: fixed; top: var(--top); left: 0; right: 0; margin: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 6px 8px; z-index: 19; overflow-x: auto; }
  .ptabs button { flex: 1; font-size: 13.5px; padding: 8px 6px; white-space: nowrap; }
  body.view-sources .page, body.view-plan .page, body.view-model .page { top: calc(var(--top) + 48px); }
  .page { padding: 14px 14px 90px; }
  .src-grid { grid-template-columns: 1fr; }
  .plan-bar, .model-bar { padding: 6px 8px; gap: 6px; overflow-x: auto; flex-wrap: nowrap; }
  .tools { flex-wrap: nowrap; } .tools button { font-size: 13px; padding: 7px 8px; }
  .plan-panel { position: fixed; left: 0; right: 0; bottom: 0; width: 100%; max-height: 45vh; border-left: 0; border-top: 1px solid var(--line); border-radius: 16px 16px 0 0; box-shadow: 0 -10px 30px rgba(0,0,0,.12); z-index: 15; }
  aside.right { position: fixed; left: 0; right: 0; bottom: 0; width: 100%; height: 62vh; border-left: 0; border-radius: 18px 18px 0 0; transform: translateY(105%); transition: transform .2s; box-shadow: 0 -12px 40px rgba(0,0,0,.18); z-index: 15; }
  body.show-right aside.right { transform: none; }
  .sheet-handle { display: block; padding: 8px 0 2px; text-align: center; } .sheet-handle i { display: inline-block; width: 44px; height: 5px; border-radius: 3px; background: #cbd3db; }
  .selbar .sb-name, .selbar [data-s=rr], .selbar [data-s=close] { display: none; }
  .selbar button { min-width: 34px; height: 38px; padding: 0 6px; font-size: 14px; }
  .compass-wrap { width: 44px; height: 44px; bottom: 70px; }
  body.show-right .selbar, body.show-right .compass-wrap, body.show-right .composer { display: none; }
  .composer { bottom: 8px; padding: 0 8px; }
  .chat-panel { max-height: 60vh; }
  body.view-plan .plan-panel { bottom: 70px; max-height: 38vh; border-radius: 16px; left: 8px; right: 8px; width: auto; border: 1px solid var(--line); }
  .selbar { bottom: 74px; } .compass-wrap { bottom: 132px !important; }
  .ai-busy { max-width: 44px; } #ai-busy-t { display: none; }
  .c-body { grid-template-columns: 1fr; }
  .layout-pick select { max-width: 150px; }
  .menu.floating { right: 8px; }
}

/* bis die Anmeldung geprüft ist nichts zeigen (kein Aufblitzen der leeren Oberfläche) */
body.view-loading > * { visibility: hidden; }

/* Maßlinien im Grundriss: Innenmaße (Hauptmaße), Außenmauern, Einbau-Abstände */
.plan-svg .arr { fill: currentColor; }
.plan-svg .mdim { color: #0f766e; }
.plan-svg .mdim line { stroke: currentColor; stroke-width: 1.1; }
.plan-svg .mdim line.ext { stroke-width: .7; stroke-dasharray: 2 2; opacity: .7; }
.plan-svg .mdim text { fill: currentColor; font-size: 11.5px; font-weight: 600; text-anchor: middle; dominant-baseline: middle; font-family: ui-monospace, monospace; paint-order: stroke; stroke: #fff; stroke-width: 3.5px; cursor: pointer; }
.plan-svg .mdim text:hover { fill: #b45309; }
.plan-svg .mdim.sel { color: #c2410c; } .plan-svg .mdim.sel text { font-size: 13px; }
.plan-svg .mdim.out { color: #4b5563; }
.plan-svg .mdim.fd { color: #7c3aed; }
.plan-svg .owall { fill: #9ca3af; stroke: #4b5563; stroke-width: 1; cursor: pointer; } .plan-svg .owall.sel { fill: #f59e0b; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.grid4 label { font-size: 11.5px; } .grid4 input { width: 100%; }
.seg-pick { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 8px; } .seg-pick button { font-size: 12.5px; }

/* Fotos im Chat */
.chat-imgs { display: flex; gap: 6px; flex-wrap: wrap; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 6px; box-shadow: 0 6px 20px rgba(16,24,40,.1); }
.chat-imgs .thumb { position: relative; } .chat-imgs img { width: 64px; height: 64px; object-fit: cover; border-radius: 9px; display: block; }
.chat-imgs .thumb button { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; padding: 0; border-radius: 50%; font-size: 11px; line-height: 18px; }
.msg-imgs { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 6px; }
.msg-imgs img { width: 84px; height: 84px; object-fit: cover; border-radius: 8px; cursor: zoom-in; border: 2px solid rgba(255,255,255,.6); }
/* Rückfragen */
.q { border-left: 3px solid #cfd8dc; padding-left: 8px; } .q.done { border-left-color: var(--acc-2); }
.q .qn { display: inline-block; font-size: 11px; color: #fff; background: var(--acc); border-radius: 99px; padding: 0 6px; margin-right: 6px; vertical-align: 1px; }
.q-status { margin: 2px 0 0; font-size: 12px; color: var(--mute); }
.q-cost { margin: 8px 0 4px; font-size: 12.5px; color: var(--mute); }
.msg .q-cost + button { margin-right: 6px; }
.msg button.ghost { background: none; border-color: transparent; color: var(--mute); text-decoration: underline; }
/* Auswahl + Liste, Fotos-Tab */
.list-head { margin: 16px 0 6px; padding-top: 12px; border-top: 2px solid var(--line); font-weight: 700; font-size: 13px; display: flex; align-items: center; gap: 6px; }
.photo-bar { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
label.btnlike { display: inline-flex; align-items: center; padding: 6px 11px; border-radius: 9px; cursor: pointer; }
.ph-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; margin-bottom: 10px; }
.ph-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; cursor: zoom-in; }
#ph-list h4 { margin: 10px 0 5px; font-size: 13px; } #ph-list h4 small { color: var(--mute); font-weight: 400; }

/* Grundriss: Werkzeugleiste links (Auswählen, darunter Einfügen) */
.plan-side { width: 124px; flex: none; background: #fff; border-right: 1px solid var(--line); padding: 10px 8px; display: flex; flex-direction: column; gap: 4px; overflow-y: auto; }
.plan-side button { display: flex; align-items: center; gap: 8px; text-align: left; padding: 8px 9px; border-color: transparent; background: none; font-size: 13px; }
.plan-side button:hover { background: #f2f5f7; }
.plan-side button.on { background: var(--acc-soft); border-color: var(--acc); color: var(--acc); font-weight: 600; }
.plan-side button i { font-style: normal; width: 18px; text-align: center; }
.plan-side .side-sep { margin: 10px 4px 2px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--mute); }
.plan-svg .axis { stroke: #fff; stroke-width: 1.2; stroke-dasharray: 6 3 1 3; pointer-events: none; }
.plan-svg .mdim.outer { color: #1f2937; }
@media (max-width: 900px) {
  .plan-side { position: absolute; left: 6px; top: 6px; z-index: 6; width: auto; padding: 4px; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 6px 20px rgba(0,0,0,.12); max-height: calc(100% - 90px); }
  .plan-side button span, .plan-side .side-sep { display: none; }
  .plan-side button { padding: 8px; justify-content: center; } .plan-side .side-sep + button { margin-top: 6px; }
}

/* Kopfzeile: Teilen / Export */
.hdr-btn { display: inline-flex; align-items: center; gap: 5px; padding: 6px 11px; border-radius: 9px; border: 1px solid var(--line); background: #fff; font-size: 13px; text-decoration: none; color: var(--ink); white-space: nowrap; }
.hdr-btn.primary { background: var(--acc); border-color: var(--acc); color: #fff; font-weight: 600; }
.share-link { display: flex; gap: 6px; margin: 10px 0; } .share-link input { flex: 1; font-family: ui-monospace, monospace; font-size: 12px; }
a.btnlike { display: inline-flex; align-items: center; padding: 6px 11px; border: 1px solid var(--line); border-radius: 9px; text-decoration: none; color: var(--ink); background: #fff; }
a.btnlike.primary, label.btnlike.primary { background: var(--acc); border-color: var(--acc); color: #fff; font-weight: 600; }
/* Export-Dialog */
.exp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; margin-bottom: 8px; }
.exp-btn { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 9px 11px; text-align: left; }
.exp-btn small { color: var(--mute); font-size: 11.5px; }
.dlg h3 select { margin-left: 8px; font-size: 13px; }
/* App installieren */
.install-card { display: flex; align-items: center; gap: 12px; background: linear-gradient(135deg, #e6f6f3, #f3fbfa); border: 1px solid #bfe9e1; border-radius: 14px; padding: 12px 14px; margin: 0 0 18px; max-width: 760px; }
.install-card img { border-radius: 11px; flex: none; }
.install-card div { flex: 1; display: flex; flex-direction: column; gap: 2px; } .install-card span { font-size: 13px; color: var(--mute); }
.install-card.small { margin: 0 0 14px; padding: 9px 10px; } .install-card.small span { font-size: 12px; }
label.cam { margin-top: 6px; cursor: pointer; }
@media (max-width: 900px) { label.only-mobile { display: inline-flex; } .hdr-btn span { display: none; } }

/* Nur-Ansicht (geteilter Link) */
body.viewer { display: flex; flex-direction: column; height: 100%; }
body.viewer header.top { gap: 8px; }
.v-name { font-weight: 600; font-size: 14px; color: var(--mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
body.viewer .seg button { padding: 6px 12px; } body.viewer .seg button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
body.viewer select { padding: 5px 8px; border-radius: 9px; border: 1px solid var(--line); background: #fff; max-width: 170px; }
.v-main { flex: 1; position: relative; min-height: 0; display: flex; }
.v-main .viewport, .v-main .plan-canvas { flex: 1; position: relative; }
.v-info { position: absolute; left: 50%; top: 14px; transform: translateX(-50%); background: rgba(255,255,255,.95); border: 1px solid var(--line); border-radius: 12px; padding: 7px 12px; display: flex; gap: 10px; font-size: 13px; box-shadow: 0 6px 20px rgba(0,0,0,.1); z-index: 4; }
.v-info span { color: var(--mute); }
.v-msg { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 20px; background: var(--bg); }
.promo { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 20; display: flex; align-items: center; gap: 12px; width: min(720px, calc(100% - 24px)); background: #fff; border: 1px solid #bfe9e1; border-radius: 16px; padding: 10px 12px; box-shadow: 0 12px 36px rgba(16,24,40,.18); }
.promo-ico { font-size: 26px; } .promo-txt { flex: 1; display: flex; flex-direction: column; gap: 1px; font-size: 13.5px; } .promo-txt span { color: var(--mute); font-size: 12.5px; }
body.viewer .compass-wrap { bottom: 96px !important; }
@media (max-width: 700px) {
  .v-name { display: none; } body.viewer header.top { flex-wrap: wrap; height: auto; padding: 6px 8px; }
  .promo { flex-wrap: wrap; } .promo .promo-txt span { display: none; } .promo a { flex: 1; justify-content: center; }
}
body.viewer header.top { position: relative; inset: auto; flex: none; }

/* Logo: Haus mit KI-Funken, Wortmarke Home|lands */
.brand b i, .login-brand b i { font-style: normal; color: var(--acc-2); }
.brand svg { width: 30px; height: 30px; }
.slogan { margin: 2px 0 0; color: var(--acc); font-weight: 600; font-size: 14px; }

/* Teilen-Symbol */
.share-ico { display: inline-flex; } .share-ico svg { display: block; }
/* 3D: Raumnamen erst beim Hineinzoomen */
.labels-layer.far .room-label { display: none; }
/* 3D: Steuerelement unten rechts */
.nav-pad { position: absolute; right: 12px; bottom: 84px; z-index: 6; display: grid; grid-template-columns: repeat(3, 34px); gap: 3px; padding: 5px; background: rgba(255,255,255,.88); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 6px 20px rgba(0,0,0,.12); }
.nav-pad button { width: 34px; height: 34px; padding: 0; border-radius: 9px; font-size: 15px; }
.nav-pad [data-nav=up] { grid-column: 2; } .nav-pad [data-nav=down] { grid-column: 2; }
.nav-pad [data-nav=in] { grid-column: 1; } .nav-pad [data-nav=out] { grid-column: 3; }
.nav-pad [data-nav=home] { background: var(--acc-soft); color: var(--acc); }
/* Mobil: großer Möbel-Knopf */
.fab-furn { position: absolute; left: 12px; bottom: 76px; z-index: 7; border: 0; border-radius: 99px; padding: 12px 18px; font-weight: 700; font-size: 15px; color: #fff; background: linear-gradient(135deg, var(--acc), var(--acc-2)); box-shadow: 0 10px 26px rgba(15,118,110,.4); }
/* Mobil: „Mehr“-Menü mit Erklärungen */
.mobmenu { right: 8px; top: 48px; width: min(320px, calc(100vw - 16px)); padding: 6px; display: flex; flex-direction: column; gap: 2px; max-height: 70vh; overflow-y: auto; }
.mobmenu button { display: flex; align-items: center; gap: 10px; text-align: left; border: 0; background: none; padding: 9px 8px; border-radius: 10px; }
.mobmenu button:hover { background: #f2f5f7; } .mobmenu i { font-style: normal; width: 24px; text-align: center; font-size: 17px; }
.mobmenu span { display: flex; flex-direction: column; } .mobmenu small { color: var(--mute); font-size: 12px; }
.mobmenu .sep { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--mute); padding: 8px 8px 2px; border-top: 1px solid var(--line); margin-top: 4px; }
/* 2D: Klappmenü-Kopf (nur mobil sichtbar) */
.plan-side .side-toggle { display: none; }
/* Gestalten */
#fin h4 { margin: 16px 0 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--mute); }
.fin-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
.fin-sw { display: flex; flex-direction: column; align-items: stretch; gap: 4px; padding: 5px; font-size: 11.5px; line-height: 1.2; text-align: center; }
.fin-sw i { display: block; height: 34px; border-radius: 6px; border: 1px solid rgba(0,0,0,.08); }
.fin-sw.on { border-color: var(--acc); box-shadow: 0 0 0 2px var(--acc-soft); }
.fin-row { display: flex; align-items: flex-end; gap: 8px; margin-top: 8px; } .fin-row label { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.fin-colors { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.chip-col { width: 30px; height: 30px; border-radius: 50%; padding: 0; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); cursor: pointer; }
.chip-col.on { box-shadow: 0 0 0 2px var(--acc); }
.chip-col.custom { display: inline-flex; align-items: center; justify-content: center; position: relative; background: conic-gradient(#e63946, #f4a261, #e9c46a, #2a9d8f, #457b9d, #8e7dbe, #e63946); color: #fff; font-weight: 700; }
.chip-col.custom input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.fl-parkett { background: repeating-linear-gradient(0deg, #c8925a 0 9px, #b07c47 9px 10px); }
.fl-parkett_dunkel { background: repeating-linear-gradient(0deg, #6b4428 0 9px, #4e301c 9px 10px); }
.fl-fischgraet { background: repeating-linear-gradient(45deg, #b8844f 0 6px, #9a663c 6px 12px), #b8844f; }
.fl-dielen { background: repeating-linear-gradient(0deg, #dcc7a4 0 13px, #b89c74 13px 14px); }
.fl-vinyl { background: repeating-linear-gradient(0deg, #cdbfa8 0 11px, #bcae96 11px 12px); }
.fl-fliesen { background: #e9e7e3; background-image: linear-gradient(#b9b6b0 1px, transparent 1px), linear-gradient(90deg, #b9b6b0 1px, transparent 1px); background-size: 14px 14px; }
.fl-fliesen_gross { background: #ece9e4; background-image: linear-gradient(#bdbab4 1px, transparent 1px); background-size: 100% 17px; }
.fl-fliesen_dunkel { background: #4b4e53; background-image: linear-gradient(#35373b 1px, transparent 1px), linear-gradient(90deg, #35373b 1px, transparent 1px); background-size: 16px 9px; }
.fl-marmor { background: linear-gradient(135deg, #f4f2ee 0 40%, #d6d5d3 45%, #f4f2ee 50% 80%, #cfcdca 85%, #f4f2ee); }
.fl-terrazzo { background: radial-gradient(#9a8f84 1.5px, transparent 2px) 0 0/9px 9px, radial-gradient(#d9a58a 1.5px, transparent 2px) 4px 5px/11px 11px, #e3ded6; }
.fl-beton { background: #9c9a96; } .fl-estrich { background: #b3b1ac; } .fl-teppich { background: #bdb4a6; }

@media (max-width: 900px) {
  .ptabs .num, .ptabs .long { display: none; }
  /* 3D-Leiste: Geschoss + Variante + Mehr */
  #lvl-seg, .model-bar .tools.right > button:not(#m-more), .layout-pick .ic { display: none; }
  #lvl-sel { display: inline-block; max-width: 140px; font-weight: 600; }
  .model-bar { overflow: visible; } .model-bar .tools.right { margin-left: auto; }
  #m-more { font-size: 20px; padding: 4px 12px; }
  .nav-pad { right: 8px; bottom: 140px; grid-template-columns: repeat(3, 32px); }
  .nav-pad button { width: 32px; height: 32px; }
  body.show-right .nav-pad, body.show-right .fab-furn { display: none; }
  .room-label { font-size: 10.5px !important; padding: 2px 6px !important; }
  /* 2D: Werkzeugleiste als Klappmenü mit Beschriftung */
  .plan-side { padding: 4px; }
  .plan-side .side-toggle { display: flex; align-items: center; gap: 8px; font-weight: 700; padding: 9px 10px; }
  .plan-side .side-toggle em { font-style: normal; color: var(--mute); }
  .plan-side:not(.open) > button[data-tool], .plan-side:not(.open) .side-sep { display: none; }
  .plan-side.open { width: 200px; } .plan-side.open button span, .plan-side.open .side-sep { display: inline; }
  .plan-side.open button { justify-content: flex-start; }
  .plan-side.open .side-toggle em { transform: rotate(180deg); }
}
@media (max-width: 900px) { .plan-side .side-toggle span { display: inline; } }
.nav-pad { grid-template-areas: ". up ." "left home right" "in down out"; }
.nav-pad [data-nav=up] { grid-area: up; } .nav-pad [data-nav=down] { grid-area: down; } .nav-pad [data-nav=left] { grid-area: left; } .nav-pad [data-nav=right] { grid-area: right; } .nav-pad [data-nav=home] { grid-area: home; } .nav-pad [data-nav=in] { grid-area: in; } .nav-pad [data-nav=out] { grid-area: out; }
.mobmenu { z-index: 40; top: 150px; right: 8px; left: auto; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 16px 40px rgba(0,0,0,.2); }
#m-mobmenu.menu.floating { z-index: 60; top: 150px; right: 8px; left: auto; }
@media (max-width: 900px) { .plan-side.open { z-index: 18; max-height: calc(100% - 20px); } }

/* Steuerkreuz: Drehen in den Ecken, Verschieben als Kreuz, Zoom unten, Neigung darunter */
.nav-pad { grid-template-areas: none !important; grid-template-columns: repeat(3, 34px); }
.nav-pad button { grid-area: auto !important; grid-column: auto !important; }
.nav-pad .tilt { font-size: 14px; color: var(--mute); }
.nav-pad [data-nav=pup], .nav-pad [data-nav=pdown], .nav-pad [data-nav=pleft], .nav-pad [data-nav=pright] { font-weight: 700; }
.hist-btn:disabled { opacity: .35; }
@media (max-width: 900px) {
  .model-bar .tools.right > button.hist-btn:not(#m-more) { display: inline-flex; padding: 4px 10px; font-size: 17px; }
  .nav-pad { grid-template-columns: repeat(3, 32px); bottom: 132px; }
}
@media (max-width: 900px) {
  aside.right, .chat-panel, .mobmenu, .plan-side, .plan-panel { transition: transform .18s ease; }
  .plan-panel.min { max-height: 46px !important; overflow: hidden; }
  .plan-panel.min::before { content: "▴ Details"; display: block; text-align: center; font-size: 12px; color: var(--mute); margin: -6px 0 6px; }
  aside.right .sheet-handle { padding: 10px 0 6px; }
}
@media (max-width: 900px) { #lvl-sel { max-width: 118px; min-width: 96px; flex: 0 1 auto; } .layout-pick { min-width: 0; flex: 1 1 auto; } .layout-pick select { max-width: 100%; min-width: 0; } .model-bar .tools.right > button.hist-btn:not(#m-more) { padding: 4px 7px; } .model-bar { gap: 5px; } }

/* Eigenes Möbel: mehrere Fotos */
.c-thumbs { display: flex; flex-wrap: wrap; gap: 6px; } .c-thumbs:empty { display: none; }
.c-thumbs .thumb { position: relative; } .c-thumbs img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; display: block; border: 2px solid transparent; }
.c-thumbs .thumb.main img { border-color: var(--acc); }
.c-thumbs .thumb button { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; padding: 0; border-radius: 50%; font-size: 11px; line-height: 18px; }
.c-photo-btns { display: flex; gap: 6px; flex-wrap: wrap; }
#c-hint { width: 100%; resize: vertical; }
#c-build { padding: 10px 14px; font-size: 14.5px; }

/* Steuerung unten rechts: blauer Zoom-Balken + 9er-Feld */
.nav-ctrl { position: absolute; right: 12px; bottom: 84px; z-index: 6; display: flex; gap: 6px; align-items: stretch; }
.nav-ctrl .nav-pad { position: static; display: grid; grid-template-columns: repeat(3, 34px) !important; grid-template-areas: none !important; gap: 3px; }
.zoom-bar { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 40px; padding: 5px 0; border-radius: 14px; background: linear-gradient(180deg, #2f6fed, #1e4fc2); box-shadow: 0 6px 20px rgba(30,79,194,.35); }
.zoom-bar button { width: 30px; height: 28px; padding: 0; border: 0; border-radius: 8px; background: rgba(255,255,255,.18); color: #fff; font-size: 17px; font-weight: 700; }
.zoom-bar button:hover { background: rgba(255,255,255,.3); }
.zoom-bar input[type=range] { writing-mode: vertical-lr; direction: rtl; flex: 1; width: 22px; min-height: 60px; margin: 2px 0; accent-color: #ffffff; cursor: pointer; background: transparent; }
@media (max-width: 900px) {
  .nav-ctrl { right: 8px; bottom: 132px; }
  .nav-ctrl .nav-pad { grid-template-columns: repeat(3, 32px) !important; }
  body.show-right .nav-ctrl { display: none; }
}
.c-photo-btns label.file { flex: 1; background: var(--acc); }

#ph-list details { border-bottom: 1px solid var(--line); padding: 6px 0; }
#ph-list summary { cursor: pointer; font-weight: 700; font-size: 13.5px; padding: 4px 0; } #ph-list summary small { color: var(--mute); font-weight: 400; margin-left: 4px; }
#ph-list h5 { margin: 8px 0 4px; font-size: 12px; color: var(--mute); text-transform: uppercase; letter-spacing: .04em; }

.linkbtn { background: none; border: 0; color: var(--acc); text-decoration: underline; padding: 6px 0; font-size: 13px; cursor: pointer; }
.login-card .ok { color: #11734b; font-size: 13px; margin: 6px 0 0; }
.admin-strip { position: fixed; top: 0; left: 50%; transform: translateX(-50%); z-index: 50; background: #1e4fc2; color: #fff; font-size: 12px; font-weight: 700; padding: 3px 12px; border-radius: 0 0 10px 10px; }

/* Admin: Tester-Dashboard */
.t-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; } .t-head h2 { margin: 0; }
.t-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; margin-bottom: 12px; }
.t-tiles div { background: #f6f8f9; border: 1px solid var(--line); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; }
.t-tiles b { font-size: 20px; } .t-tiles span { font-size: 12px; color: var(--mute); }
.t-alert { background: #fff7e6; border: 1px solid #f5d38f; color: #8a5a00; border-radius: 10px; padding: 8px 12px; font-size: 13px; }
.t-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 10px; }
.t-card { border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 10px; background: #fff; }
.t-card.blocked { opacity: .6; }
.t-card header { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.t-card header div { display: flex; flex-direction: column; min-width: 0; } .t-card header small { color: var(--mute); font-size: 12px; overflow: hidden; text-overflow: ellipsis; }
.t-card header em { font-size: 12px; color: var(--mute); font-style: normal; }
.badge { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: #eef2f5; color: var(--ink); white-space: nowrap; }
.badge.ok { background: #e6f6ee; color: #11734b; } .badge.wait { background: #eef4ff; color: #1e4fc2; } .badge.warn { background: #fff4dd; color: #8a5a00; } .badge.off { background: #fdecec; color: var(--danger); }
.t-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.t-stats div { background: #f8fafb; border-radius: 10px; padding: 7px 9px; display: flex; flex-direction: column; }
.t-stats span { font-size: 11px; color: var(--mute); text-transform: uppercase; letter-spacing: .04em; } .t-stats b { font-size: 15px; } .t-stats small { font-size: 11.5px; color: var(--mute); }
.t-projects { display: flex; flex-direction: column; gap: 4px; }
.t-projects a { text-decoration: none; color: var(--acc); font-weight: 600; font-size: 13px; } .t-projects a small { color: var(--mute); font-weight: 400; margin-left: 4px; }
.t-edit { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; align-items: end; } .t-edit label { font-size: 11.5px; } .t-edit .chk { grid-column: 1 / -1; font-size: 13px; }
.t-card footer { display: flex; flex-wrap: wrap; gap: 6px; } .t-card footer button { font-size: 12.5px; }

/* Fahrplan „Vom Plan zum 3D-Modell“ */
.pipe-card { border: 2px solid var(--acc-soft); }
.pipe-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; } .pipe-head h2 { margin: 0; }
.pipe { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.pipe-step { display: grid; grid-template-columns: 34px minmax(0, 1fr) 96px auto; gap: 10px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.pipe-step.done { background: #f3fbf7; border-color: #bfe6d0; } .pipe-step.wait { opacity: .6; } .pipe-step.skip { opacity: .5; }
.pipe-n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--acc-soft); color: var(--acc); }
.pipe-step.done .pipe-n { background: #11734b; color: #fff; }
.pipe-body b { font-size: 14.5px; } .pipe-body .hint { margin: 2px 0 0; font-size: 12.5px; }
.pipe-hints { margin: 6px 0 0; padding: 0; list-style: none; font-size: 12.5px; color: var(--ink); }
.pipe-cost { display: flex; flex-direction: column; align-items: flex-end; text-align: right; } .pipe-cost b { font-size: 14px; } .pipe-cost small { font-size: 11px; color: var(--mute); }
.pipe-act button { white-space: nowrap; }
.pipe-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: flex-end; margin-top: 10px; } .pipe-foot #pipe-total { margin-right: auto; font-size: 13.5px; }
/* Fotos prüfen */
.rv-bar { position: sticky; top: 0; z-index: 3; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; background: #fff; border: 1px solid var(--acc-2); border-radius: 12px; padding: 8px; margin: 8px 0; box-shadow: 0 6px 18px rgba(0,0,0,.08); }
.rv-group h4 { margin: 14px 0 6px; font-size: 14px; } .rv-group h4 small { color: var(--mute); font-weight: 400; margin-left: 4px; }
.rv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.rv-tile { margin: 0; position: relative; border-radius: 10px; overflow: hidden; background: #f3f5f7; cursor: pointer; border: 2px solid transparent; }
.rv-tile img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.rv-tile figcaption { font-size: 11.5px; padding: 4px 6px 6px; line-height: 1.25; color: var(--ink); min-height: 2.6em; }
.rv-tile.sel { border-color: var(--acc); box-shadow: 0 0 0 2px var(--acc-soft); } .rv-tile.sel::after { content: "✓"; position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; border-radius: 50%; background: var(--acc); color: #fff; display: grid; place-items: center; font-size: 13px; }
.rv-tile.excl { opacity: .45; } .rv-flag { position: absolute; top: 6px; left: 6px; font-size: 10.5px; background: rgba(0,0,0,.65); color: #fff; padding: 1px 6px; border-radius: 99px; }
@media (max-width: 700px) {
  .pipe-step { grid-template-columns: 30px minmax(0, 1fr); } .pipe-cost { grid-column: 2; flex-direction: row; gap: 6px; align-items: baseline; justify-content: flex-start; } .pipe-act { grid-column: 2; }
  .rv-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; } .rv-tile figcaption { font-size: 10.5px; }
}

label.btnlike.only-mobile { display: none; }
@media (max-width: 900px) { label.btnlike.only-mobile { display: inline-flex; } }

/* Fahrplan: Raumliste, Nordrichtung, Hinweis, Flächenabgleich */
.pipe-rooms { display: grid; gap: 4px; margin: 8px 0 4px; }
.pipe-rooms > div { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.pipe-rooms b { font-size: 12px; margin-right: 4px; color: var(--ink); }
.pipe-room { display: inline-flex; gap: 4px; align-items: baseline; padding: 2px 8px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 12px; color: var(--ink); }
.pipe-room small { color: var(--muted, #6b7280); }
.pipe-north { display: inline-flex; gap: 6px; align-items: center; margin-top: 6px; font-size: 13px; color: var(--ink); }
.pipe-north select { width: auto; padding: 2px 6px; font-size: 13px; }
.pipe-ask { margin-top: 8px; }
.pipe-ask textarea { width: 100%; font: inherit; font-size: 13px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; resize: vertical; box-sizing: border-box; }
.pipe-report { margin-top: 6px; font-size: 12.5px; padding: 6px 9px; border-radius: 8px; background: #f3f7ff; border: 1px solid #dbe6ff; color: var(--ink); }

/* Admin: KI-Agenten */
.ag { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; margin: 8px 0; background: #fff; }
.ag summary { cursor: pointer; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ag summary small { margin-left: auto; color: var(--muted, #6b7280); }
.ag-text { width: 100%; box-sizing: border-box; font: 12.5px/1.45 ui-monospace, SFMono-Regular, Consolas, monospace; padding: 10px; border: 1px solid var(--line); border-radius: 8px; resize: vertical; tab-size: 2; }
.ag .btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }

/* Hinweisbalken: Grundriss fertig → 3D-Modell erstellen; neue App-Version */
.next-step { position: fixed; z-index: 60; left: 50%; transform: translateX(-50%); top: 112px; width: min(720px, calc(100vw - 24px)); display: flex; gap: 10px; align-items: center; padding: 10px 12px; background: #fff; border: 1px solid #cfe6dc; border-left: 4px solid var(--brand, #0f766e); border-radius: 12px; box-shadow: 0 8px 28px rgba(0,0,0,.14); }
.next-step > div { flex: 1; display: grid; gap: 2px; font-size: 13px; }
.next-step > div span { color: var(--muted, #6b7280); }
.next-step button small { opacity: .8; font-weight: 400; margin-left: 4px; }
.update-bar { position: fixed; z-index: 70; left: 50%; transform: translateX(-50%); bottom: 90px; display: flex; gap: 10px; align-items: center; padding: 8px 12px; background: #111827; color: #fff; border-radius: 12px; font-size: 13px; box-shadow: 0 8px 28px rgba(0,0,0,.25); }
@media (max-width: 700px) { .next-step { top: 104px; flex-wrap: wrap; } .next-step > div { flex-basis: 100%; } }
.next-step[hidden], .update-bar[hidden] { display: none; }

/* 2D: Dachschrägen */
.plan-svg .slope { fill: rgba(150, 105, 55, 0.13); stroke: none; pointer-events: none; }
.plan-svg .slope-line { stroke: rgba(130, 85, 40, 0.55); stroke-width: 1; stroke-dasharray: 5 4; pointer-events: none; }
.plan-svg .slope-eave { stroke: rgba(130, 85, 40, 0.9); stroke-width: 2; stroke-dasharray: 10 4 2 4; pointer-events: none; }
.plan-svg .slope-h { font-size: 10px; fill: rgba(110, 70, 30, 0.9); pointer-events: none; }
.plan-svg .slope-label { font-size: 11px; font-weight: 600; fill: rgb(110, 70, 30); text-anchor: middle; pointer-events: none; paint-order: stroke; stroke: #fff; stroke-width: 3px; }
.slope-row { align-items: end; }

/* „Die KI arbeitet“ – großes Fenster in der Mitte */
.ai-modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: rgba(15, 23, 42, 0.35); padding: 16px; }
.ai-modal[hidden] { display: none; }
.aim-card { width: min(440px, 100%); background: #fff; border-radius: 18px; padding: 22px 22px 18px; box-shadow: 0 24px 60px rgba(0,0,0,.28); text-align: center; display: grid; gap: 8px; }
.aim-card small { color: var(--mute, #6b7280); font-size: 12.5px; letter-spacing: .02em; }
.aim-card h2 { margin: 0; font-size: 21px; }
.aim-icon { justify-self: center; width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; background: #e9f5f1; font-size: 30px; color: var(--brand, #0f766e); }
.aim-spin { width: 34px; height: 34px; border: 4px solid #bfe3d8; border-top-color: var(--brand, #0f766e); border-radius: 50%; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.aim-now { margin: 0; font-size: 14.5px; color: var(--ink); }
.aim-bar { height: 10px; border-radius: 99px; background: #eef1f4; overflow: hidden; }
.aim-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand, #0f766e), #34d399); border-radius: 99px; transition: width 0.9s linear; }
.aim-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 4px 0; }
.aim-stats div { background: #f6f8fa; border-radius: 12px; padding: 10px 6px; display: grid; }
.aim-stats b { font-size: 22px; } .aim-stats span { font-size: 12px; color: var(--mute, #6b7280); }
.aim-card .hint { font-size: 12.5px; margin: 2px 0 4px; }
.aim-card.done .aim-icon { background: #dcfce7; }
.ai-busy { cursor: pointer; }
/* Fahrplan: Kosten und Dauer gut sichtbar */
.pipe-cost b { font-size: 19px; color: var(--ink); } .pipe-cost small { font-size: 13px; color: var(--ink); opacity: .75; }
#pipe-total { font-size: 14px; } #pipe-total .pt-big { font-size: 16.5px; } #pipe-total .pt-paid { color: var(--mute, #6b7280); margin-left: 6px; }

/* Pläne & Fotos: Eingaben oben, farblich abgesetzt */
.inputs-card { background: #f3f8ff; border: 2px solid #cfe0fb; }
.inputs-card .pipe-head h2 { color: #1d4f91; }
.inputs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.in-box { background: #fff; border: 1px solid #dbe6f7; border-radius: 12px; padding: 14px; display: grid; gap: 8px; align-content: start; }
.in-box h3 { margin: 0; font-size: 15.5px; }
.in-box .hint { margin: 0; }
.in-meta { margin-top: 14px; }
.inputs-card .drop { background: #f8fbff; border-color: #b9cff3; }
@media (max-width: 760px) { .inputs-grid { grid-template-columns: 1fr; } }

/* Grundriss: Kenndaten rechts unten */
.plan-info { position: absolute; right: 12px; bottom: 12px; width: 258px; max-height: calc(100% - 24px); overflow-y: auto; overflow-x: hidden; background: rgba(255,255,255,.96); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 6px 22px rgba(15,23,42,.10); font-size: 12px; padding: 8px 12px 10px; z-index: 3; }
.plan-info.min { width: auto; padding: 6px 10px; }
.plan-info .pi-head { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; padding: 2px 0 6px; user-select: none; }
.plan-info.min .pi-head { padding: 0; }
.plan-info .pi-head b { flex: 1; } .plan-info .pi-head i { font-style: normal; color: var(--mute); }
.plan-info .pi-row { display: flex; justify-content: space-between; gap: 8px; padding: 2px 0; }
.plan-info .pi-row span { color: #475569; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plan-info .pi-row small { color: var(--mute); }
.plan-info .pi-row b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.plan-info .pi-row.big b { font-size: 14px; } .plan-info .pi-row.warn b { color: #b45309; }
.plan-info .pi-sec { margin: 8px 0 3px; padding-top: 6px; border-top: 1px solid var(--line); font-size: 11px; font-weight: 700; color: var(--mute); text-transform: uppercase; letter-spacing: .04em; }
.plan-info .pi-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 3px 10px; }
.plan-info .pi-facts span, .plan-info .pi-lift { display: flex; justify-content: space-between; gap: 6px; color: #475569; }
.plan-info .pi-lift { font: inherit; background: #f1f5f9; border: 1px dashed #cbd5e1; border-radius: 6px; padding: 1px 6px; cursor: pointer; text-align: left; }
.plan-info .pi-lift:disabled { cursor: default; background: none; border-color: transparent; padding: 0; }
.plan-info .pi-lift b, .plan-info .pi-facts b { color: #0f172a; }
.plan-svg .mdim.adim { color: #4d7c0f; }
.plan-svg .mdim.adim.sel { color: #c2410c; }
.plan-svg .node.anode { stroke: #4d7c0f; }
.plan-svg .area { cursor: move; }
@media (max-width: 760px) { .plan-info { top: 8px; bottom: auto; right: 8px; width: 230px; max-height: 55%; } }
/* Außenanlage im Grundriss: weitere Beläge, Zäune, Hecken, Tore, Bäume, Lauflinie der Stiege */
.plan-svg .area.gras { fill: #e3f0da; stroke: #9cc08a; } .plan-svg .area.pflaster, .plan-svg .area.platten { fill: #e9e6e1; stroke: #b9b2a8; } .plan-svg .area.asphalt { fill: #d9dadc; stroke: #9fa3a8; }
.plan-svg .area.beet { fill: #eadfd2; stroke: #b49b80; } .plan-svg .area.wasser { fill: #d6ecf5; stroke: #7fb7cf; } .plan-svg .area.holz { fill: #efe2cf; stroke: #b99a72; }
.plan-svg .owall.zaun { fill: #4b5563; stroke: none; } .plan-svg .owall.hecke { fill: #9cc08a; stroke: #6f9a5c; }
.plan-svg .gate { stroke: #fff; stroke-width: 5; } .plan-svg .gate-label { font-size: 9px; text-anchor: middle; fill: #4b5563; pointer-events: none; }
.plan-svg .fixed.plant ellipse { fill: rgba(120, 170, 95, 0.35); stroke: #5f8f4a; stroke-width: 1; cursor: grab; } .plan-svg .fixed.plant .trunk { fill: #7a5a3c; stroke: none; }
.plan-svg .fixed.plant.sel ellipse { stroke: var(--warn); stroke-width: 2; } .plan-svg .fixed.plant rect { fill: rgba(120, 170, 95, 0.45); stroke: #5f8f4a; }
.plan-svg .stair.free { fill: #eceae6; stroke: #8a8a8a; } .plan-svg .stair-walk { fill: none; stroke: #9b6b3f; stroke-width: 1; stroke-dasharray: 4 3; }
#m-ext.on { background: var(--acc); color: #fff; }
/* Rechtliche Seiten & Preise */
body.legal { overflow: auto; height: auto; }
.legal-page { max-width: 760px; margin: 0 auto; padding: 24px 18px 60px; line-height: 1.6; font-size: 15px; }
.legal-page h1 { font-size: 28px; margin: 14px 0 8px; } .legal-page h2 { font-size: 18px; margin: 26px 0 6px; }
.legal-page .lead { font-size: 16.5px; } .legal-back { color: var(--acc); text-decoration: none; font-size: 14px; }
.legal-page .draft { background: #fff4dd; color: #8a5a00; border-radius: 8px; padding: 8px 12px; font-size: 13.5px; }
.legal-table { width: 100%; border-collapse: collapse; margin: 8px 0; } .legal-table td, .legal-table th { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--line, #e3e7ea); }
.legal-table td:not(:first-child), .legal-table th:not(:first-child) { text-align: right; white-space: nowrap; } .legal-table tr.sum td { font-weight: 700; border-bottom: 0; }
.legal-foot { margin-top: 36px; color: var(--mute); font-size: 13px; } .legal-foot a { color: inherit; }
