/* Hausbau – Logik in web/src/hausbau/ */
.hb-main { max-width: 1180px; }
#hb { margin-bottom: var(--sp-7, 40px); display: flex; flex-direction: column; gap: 14px; }

.hb-nav { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px; margin-top: 4px; }
.hb-nav::-webkit-scrollbar { display: none; }
.hb-nav a { flex: none; padding: 9px 14px; border-radius: 99px; border: 1px solid var(--border); background: var(--surface); color: var(--text); text-decoration: none; font-weight: 600; font-size: var(--fs-s, .92rem); white-space: nowrap; }
.hb-nav a.on { background: var(--c2, var(--accent)); border-color: transparent; color: #fff; }

.hb-vars { display: flex; gap: 8px; flex-wrap: wrap; }
.hb-var { flex: 1 1 140px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: 600 var(--fs-s, .92rem) var(--font); cursor: pointer; }
.hb-var.on { border-color: var(--c2, var(--accent)); box-shadow: 0 0 0 2px color-mix(in srgb, var(--c2, var(--accent)) 30%, transparent); background: color-mix(in srgb, var(--c1, #a5b4fc) 14%, var(--surface)); }

.hb-prep { display: flex; gap: 6px; align-items: center; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.hb-prep::-webkit-scrollbar { display: none; }
.hb-prep-l { flex: none; font-size: var(--fs-s, .9rem); color: var(--muted); font-weight: 700; margin-right: 2px; }
.hb-pchip { flex: none; display: inline-flex; align-items: center; gap: 4px; padding: 7px 11px; border-radius: 99px; border: 1px dashed var(--border); background: transparent; color: var(--text); font: 600 .85rem var(--font); cursor: pointer; }
.hb-pchip.on { border-style: solid; border-color: var(--c2, var(--accent)); background: color-mix(in srgb, var(--c1, #a5b4fc) 18%, var(--surface)); }
.hb-arrow { margin-left: 4px; color: var(--muted); }

.hb-stagewrap { display: flex; flex-direction: column; gap: 10px; }
.hb-stage { position: relative; height: min(68vh, 620px); min-height: 360px; border-radius: 22px; overflow: hidden; background: linear-gradient(#9cc3ea, #dfeaf4 60%, #eef3f7); box-shadow: 0 18px 50px -22px rgba(15, 23, 42, .5), 0 0 0 1px rgba(0, 0, 0, .05) inset; touch-action: none; }
.hb-stage:fullscreen, .hb-stage.hb-fs { height: 100vh; border-radius: 0; }
.hb-stage.hb-fs { position: fixed; inset: 0; z-index: 1200; }
.hb-canvas, .hb-canvas canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; }
.hb-loading { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 12px; align-items: center; justify-content: center; color: #1e293b; font-weight: 600; text-align: center; padding: 24px; }
.hb-loading[hidden] { display: none; }
.hb-spin { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(30, 41, 59, .15); border-top-color: var(--c2, var(--accent)); animation: hbSpin 1s linear infinite; }
@keyframes hbSpin { to { transform: rotate(360deg); } }
.hb-badge { position: absolute; left: 12px; top: 12px; display: flex; flex-direction: column; gap: 1px; padding: 8px 12px; border-radius: 14px; background: rgba(255, 255, 255, .9); backdrop-filter: blur(6px); box-shadow: 0 4px 18px rgba(0, 0, 0, .12); pointer-events: none; max-width: calc(100% - 24px); }
.hb-badge b { font-size: .98rem; color: #111827; }
.hb-badge span { font-size: .8rem; color: #475569; font-variant-numeric: tabular-nums; }
.hb-tools { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; pointer-events: none; }
.hb-tools > * { pointer-events: auto; }
.hb-views, .hb-tools-r { display: flex; gap: 6px; background: rgba(255, 255, 255, .88); backdrop-filter: blur(6px); padding: 5px; border-radius: 14px; box-shadow: 0 4px 18px rgba(0, 0, 0, .12); }
.hb-vbtn, .hb-ibtn { border: 0; background: transparent; padding: 7px 10px; border-radius: 10px; font: 600 .85rem var(--font); color: #1f2937; cursor: pointer; display: inline-flex; gap: 5px; align-items: center; }
.hb-vbtn.on { background: var(--c2, var(--accent)); color: #fff; }
.hb-ibtn { font-size: 1.05rem; padding: 6px 9px; }
@media (max-width: 560px) { .hb-vname { display: none; } }
.hb-hint { position: absolute; right: 12px; top: 12px; padding: 6px 10px; border-radius: 10px; background: rgba(17, 24, 39, .72); color: #fff; font-size: .78rem; pointer-events: none; transition: opacity .4s; }
.hb-hint.off { opacity: 0; }
@media (max-width: 560px) { .hb-hint { top: auto; bottom: 64px; right: 12px; } }

.hb-dots { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hb-dot { position: absolute; left: 0; top: 0; pointer-events: auto; border: 0; padding: 0; background: none; cursor: pointer; display: flex; align-items: center; gap: 6px; margin: -13px 0 0 -13px; animation: hbPop .4s cubic-bezier(.34, 1.56, .64, 1) both; }
.hb-dot[hidden] { display: none; }
.hb-dot span { width: 26px; height: 26px; border-radius: 50%; background: var(--c2, var(--accent)); color: #fff; font: 800 .8rem var(--font); display: grid; place-items: center; box-shadow: 0 0 0 4px rgba(255, 255, 255, .7), 0 4px 12px rgba(0, 0, 0, .25); }
.hb-dot em { font-style: normal; font: 700 .78rem var(--font); background: rgba(255, 255, 255, .92); color: #111827; padding: 3px 8px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0, 0, 0, .15); white-space: nowrap; }
@media (max-width: 560px) { .hb-dot em { display: none; } }
@keyframes hbPop { from { opacity: 0; scale: .4; } }

.hb-ctrl { display: flex; align-items: center; gap: 12px; }
.hb-play { width: 46px; height: 46px; flex: none; border-radius: 50%; border: 0; background: var(--c2, var(--accent)); color: #fff; font-size: 1.05rem; cursor: pointer; box-shadow: 0 6px 16px -6px var(--c2, var(--accent)); }
.hb-scrubwrap { position: relative; flex: 1; min-width: 0; }
.hb-ticks { position: absolute; left: 9px; right: 9px; top: 50%; height: 14px; translate: 0 -50%; pointer-events: none; }
.hb-ticks i { position: absolute; top: 0; width: 2px; height: 14px; background: color-mix(in srgb, var(--text) 22%, transparent); border-radius: 2px; }
.hb-scrub { width: 100%; accent-color: var(--c2, var(--accent)); position: relative; height: 28px; }
.hb-pct { font-variant-numeric: tabular-nums; font-weight: 800; min-width: 52px; text-align: right; }

.hb-stepper { display: flex; align-items: center; gap: 6px; }
.hb-step { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: 1.3rem; line-height: 1; cursor: pointer; }
.hb-chips { flex: 1; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 3px 2px; scroll-snap-type: x proximity; }
.hb-chips::-webkit-scrollbar { display: none; }
.hb-chip { flex: none; scroll-snap-align: center; padding: 7px 11px; border-radius: 99px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: 600 .84rem var(--font); cursor: pointer; white-space: nowrap; }
.hb-chip.on { background: var(--c2, var(--accent)); color: #fff; border-color: transparent; }

.hb-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-l, 18px); padding: 18px; display: flex; flex-direction: column; gap: 12px; animation: hbIn .3s ease-out; }
@keyframes hbIn { from { opacity: .3; transform: translateY(6px); } }
.hb-ch { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.hb-ch > div { flex: 1 1 220px; min-width: 0; }
.hb-ch small { color: var(--muted); font-weight: 600; }
.hb-ch h2 { margin: 0; font-size: 1.3rem; line-height: 1.25; }
.hb-cico { width: 52px; height: 52px; flex: none; border-radius: 16px; display: grid; place-items: center; font-size: 1.7rem; background: color-mix(in srgb, var(--c1, #a5b4fc) 22%, var(--surface)); }
.hb-mine { border: 1px solid var(--border); background: var(--surface); border-radius: 99px; padding: 8px 12px; font: 600 .85rem var(--font); color: var(--text); cursor: pointer; }
.hb-mine.on { background: #fef3c7; border-color: #f59e0b; }
.hb-facts { display: flex; gap: 8px 18px; flex-wrap: wrap; font-size: var(--fs-s, .92rem); color: var(--muted); }
.hb-facts b { color: var(--text); }
.hb-what { margin: 0; font-size: 1.04rem; }
.hb-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px 22px; }
@media (min-width: 760px) { .hb-cols { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); } }
.hb-card h3 { margin: 6px 0 6px; font-size: 1rem; }
.hb-list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.hb-check { list-style: none; padding-left: 0; }
.hb-check li::before { content: "☐ "; color: var(--c2, var(--accent)); font-weight: 800; }
.hb-warn li::marker { color: #d97706; }
.hb-terms { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; font-size: var(--fs-s, .9rem); color: var(--muted); }
.hb-tchip { border: 1px solid var(--border); background: var(--bg); color: var(--text); padding: 5px 10px; border-radius: 99px; font: 600 .82rem var(--font); cursor: pointer; }
.hb-done { margin: 0; padding: 12px 14px; border-radius: 14px; background: #ecfdf5; color: #065f46; font-weight: 600; }
.hb-cta { margin: 4px 0 0; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

.hb-term { position: fixed; z-index: 1300; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 14px; padding: 12px 34px 12px 14px; box-shadow: 0 16px 40px rgba(0, 0, 0, .22); animation: hbIn .2s ease-out; }
.hb-term[hidden] { display: none; }
.hb-term p { margin: 4px 0 0; font-size: .92rem; }
.hb-x { position: absolute; right: 6px; top: 6px; border: 0; background: none; font-size: 1rem; cursor: pointer; color: var(--muted); padding: 4px 6px; }

.hb-more h2 { margin: 8px 0 10px; font-size: 1.15rem; }
.hb-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.hb-tile { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 16px; border: 1px solid var(--border); background: var(--surface); color: var(--text); text-decoration: none; transition: transform .2s; }
.hb-tile:hover { transform: translateY(-2px); color: var(--text); }
.hb-tile span:last-child { color: var(--muted); font-size: .9rem; }
.hb-tico { font-size: 1.6rem; }

.hb-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: #111827; color: #fff; padding: 10px 16px; border-radius: 12px; opacity: 0; pointer-events: none; transition: .2s; z-index: 1400; max-width: calc(100% - 32px); text-align: center; }
.hb-toast.on { opacity: 1; transform: translate(-50%, 0); }

/* Formulare (Kosten, Fahrplan, Tagebuch) */
.hb-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
@media (min-width: 900px) { .hb-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } .hb-sticky { position: sticky; top: 12px; } }
.hb-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-l, 18px); padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.hb-box h2 { margin: 0; font-size: 1.15rem; }
.hb-box h3 { margin: 4px 0 0; font-size: 1rem; }
.hb-f { display: flex; flex-direction: column; gap: 5px; font-weight: 700; font-size: var(--fs-s, .9rem); }
.hb-f small { font-weight: 400; color: var(--muted); }
.hb-f input, .hb-f select, .hb-f textarea { width: 100%; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg); color: var(--text); font: 400 1rem var(--font); }
.hb-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.hb-seg { display: flex; gap: 6px; flex-wrap: wrap; }
.hb-seg button { flex: 1 1 auto; padding: 9px 10px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg); color: var(--text); font: 600 .88rem var(--font); cursor: pointer; }
.hb-seg button.on { background: var(--c2, var(--accent)); border-color: transparent; color: #fff; }
.hb-big { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.hb-sub { color: var(--muted); font-size: var(--fs-s, .9rem); }
.hb-tbl { width: 100%; border-collapse: collapse; font-size: .95rem; }
.hb-tbl td { padding: 7px 4px; border-bottom: 1px solid var(--border); vertical-align: top; }
.hb-tbl td:last-child { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.hb-tbl tr.sum td { font-weight: 800; border-bottom: 0; border-top: 2px solid var(--text); }
.hb-tbl small { color: var(--muted); display: block; font-size: .8rem; }
.hb-bar { display: flex; height: 14px; border-radius: 99px; overflow: hidden; background: var(--border); }
.hb-bar i { display: block; height: 100%; }
.hb-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .82rem; color: var(--muted); }
.hb-legend b { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 4px; vertical-align: -1px; }
.hb-note { margin: 0; font-size: .85rem; color: var(--muted); }
.hb-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.hb-btn { padding: 10px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: 600 .92rem var(--font); cursor: pointer; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.hb-btn.primary { background: var(--c2, var(--accent)); color: #fff; border-color: transparent; }
.hb-btn.danger { color: #b91c1c; }
.hb-empty { text-align: center; color: var(--muted); padding: 24px 12px; }

/* Fahrplan */
.hb-now { margin: 0; font-weight: 600; }
.hb-fp { display: flex; flex-direction: column; gap: 8px; }
.hb-fp-it { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 12px 14px; animation: hbIn .3s ease-out both; }
.hb-fp-it.prep { border-style: dashed; }
.hb-fp-it.now { border-color: var(--c2, var(--accent)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c2, var(--accent)) 22%, transparent); }
.hb-fp-it.past { opacity: .72; }
.hb-fp-h { display: flex; align-items: center; gap: 10px; }
.hb-fp-h > div:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.hb-fp-h small { color: var(--muted); font-size: .8rem; font-variant-numeric: tabular-nums; }
.hb-fp-ico { width: 38px; height: 38px; flex: none; border-radius: 12px; display: grid; place-items: center; font-size: 1.25rem; background: color-mix(in srgb, var(--c1, #a5b4fc) 20%, var(--surface)); }
.hb-fp-shift { display: flex; gap: 4px; flex: none; }
.hb-mini { border: 1px solid var(--border); background: var(--bg); color: var(--text); border-radius: 8px; padding: 4px 7px; font: 600 .74rem var(--font); cursor: pointer; }
.hb-fp-todos { list-style: none; margin: 8px 0 0; padding: 0 0 0 48px; display: flex; flex-direction: column; gap: 4px; }
.hb-fp-todos li { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; font-size: .93rem; }
.hb-fp-todos label { display: flex; gap: 8px; align-items: flex-start; cursor: pointer; }
.hb-fp-todos input { margin-top: 3px; flex: none; }
.hb-fp-todos small { color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.hb-fp-todos li.done span { text-decoration: line-through; color: var(--muted); }
.hb-fp-todos li.late small { color: #dc2626; font-weight: 700; }
@media (max-width: 560px) { .hb-fp-todos { padding-left: 0; } .hb-fp-shift { flex-direction: column; } }
@media print { .hb-nav, .hb-btns, .hb-fp-shift, .site-header, .site-footer, .seo, .tool-head p { display: none !important; } .hb-fp-it { break-inside: avoid; animation: none; } .hb-grid { display: block; } }
.hb-cbx { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; font-size: var(--fs-s, .92rem); cursor: pointer; }
.hb-cbx input { margin-top: 2px; flex: none; }
.hb-cbx small { display: block; font-weight: 400; color: var(--muted); }

/* Bautagebuch */
.hb-tabs { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
.hb-tabs button { flex: none; position: relative; }
.hb-cnt { margin-left: 6px; background: #dc2626; color: #fff; border-radius: 99px; font-size: .72rem; padding: 1px 6px; }
.hb-tb { display: flex; flex-direction: column; gap: 12px; }
.hb-tb-head { display: flex; gap: 10px; align-items: center; }
.hb-title-in { flex: 1; min-width: 0; font: 800 1.3rem var(--font); border: 1px solid transparent; background: transparent; color: var(--text); border-radius: 10px; padding: 6px 8px; }
.hb-title-in:hover, .hb-title-in:focus { border-color: var(--border); background: var(--bg); }
.hb-entryform { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 14px; background: var(--bg); border: 1px solid var(--border); }
.hb-diary { display: flex; flex-direction: column; gap: 10px; }
.hb-filter { flex-wrap: wrap; }
.hb-entry { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; animation: hbIn .3s ease-out; }
.hb-entry-h { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.hb-entry-h > div:first-child { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.hb-entry-a { display: flex; gap: 4px; flex: none; }
.hb-stchip { font-size: .8rem; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: color-mix(in srgb, var(--c1, #a5b4fc) 22%, var(--surface)); }
.hb-entry-t { margin: 0; white-space: pre-wrap; }
.hb-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 6px; }
.hb-ph { border: 0; padding: 0; border-radius: 10px; overflow: hidden; cursor: zoom-in; aspect-ratio: 4 / 3; background: var(--border); }
.hb-ph img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
.hb-ph:hover img { transform: scale(1.05); }
.hb-lb { position: fixed; inset: 0; z-index: 1500; background: rgba(10, 12, 20, .92); display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 10px; padding: 16px; }
.hb-lb img { max-width: 100%; max-height: calc(100vh - 140px); border-radius: 8px; object-fit: contain; }
.hb-lb-cap { color: #e5e7eb; font-size: .9rem; }
.hb-lb-x, .hb-lb-p, .hb-lb-n { position: absolute; border: 0; background: rgba(255, 255, 255, .14); color: #fff; width: 46px; height: 46px; border-radius: 50%; font-size: 1.4rem; cursor: pointer; }
.hb-lb-x { top: 14px; right: 14px; }
.hb-lb-p { left: 14px; top: 50%; translate: 0 -50%; }
.hb-lb-n { right: 14px; top: 50%; translate: 0 -50%; }
.hb-lb-a { display: flex; gap: 8px; }
.hb-up { position: fixed; left: 50%; bottom: 20px; translate: -50% 0; z-index: 1450; width: min(420px, calc(100% - 32px)); background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 12px 14px; box-shadow: 0 16px 40px rgba(0, 0, 0, .25); display: flex; flex-direction: column; gap: 6px; }
.hb-mlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.hb-mlist li { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg); }
.hb-mlist li > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.hb-mlist li small { color: var(--muted); }
.hb-mlist li.st-behoben b { text-decoration: line-through; color: var(--muted); }
.hb-contacts { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.hb-contact { display: flex; flex-direction: column; gap: 4px; padding: 12px; border-radius: 14px; border: 1px solid var(--border); background: var(--bg); }
.hb-contact small { color: var(--muted); }
a.hb-mini { text-decoration: none; display: inline-flex; align-items: center; }
.hb-tb-more { display: flex; flex-direction: column; gap: 12px; }
.hb-video { width: 100%; max-height: 520px; border-radius: 12px; background: #000; }
.hb-intro .hb-list { font-size: 1.02rem; }

/* Heizlast & Energie */
.hz-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.hz-bar .hb-title-in { flex: 1 1 200px; }
.hz-mode button { flex: none; }
.hz-sum { display: flex; gap: 8px; flex-wrap: wrap; }
.hz-chip { padding: 6px 12px; border-radius: 99px; background: var(--surface); border: 1px solid var(--border); font-size: .9rem; }
.hz-kl { display: inline-block; min-width: 1.6em; text-align: center; border-radius: 6px; background: var(--k); color: #111; padding: 0 4px; }
.hz-start { gap: 14px; }
.hz-ed { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 980px) { .hz-ed { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; } .hz-side { position: sticky; top: 12px; } }
.hz-edmain { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.hz-edbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.hz-floors, .hz-tools { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.hz-floors button, .hz-tools button { flex: none; }
@media (max-width: 640px) { .hz-tn { display: none; } }
.hz-stage { position: relative; height: min(70vh, 640px); min-height: 380px; border-radius: 18px; border: 1px solid var(--border); background: #fbfbfa; overflow: hidden; touch-action: none; }
.hz-svg { width: 100%; height: 100%; display: block; user-select: none; -webkit-user-select: none; }
.hz-svg[data-tool="raum"] { cursor: crosshair; }
.hz-svg[data-tool="fenster"], .hz-svg[data-tool="tuer"] { cursor: copy; }
.hz-grid line { stroke: #d6d3d1; }
.hz-ghost { fill: none; stroke: #9ca3af; stroke-width: 0.05; stroke-dasharray: 0.2 0.15; }
.hz-room { cursor: move; }
.hz-rect { stroke: none; transition: fill .25s; }
.hz-room.sel .hz-rect { stroke: var(--c2, #4f46e5); stroke-width: 0.08; stroke-dasharray: 0.25 0.12; }
.hz-inner { fill: none; stroke: #6b7280; stroke-width: 0.06; pointer-events: none; }
.hz-ext { stroke: #1f2937; stroke-width: 0.24; stroke-linecap: square; pointer-events: none; }
.hz-open { stroke-width: 0.16; cursor: grab; stroke-linecap: butt; }
.hz-open.fenster { stroke: #38bdf8; }
.hz-open.tuer { stroke: #92400e; }
.hz-open.sel { stroke: var(--c2, #4f46e5); stroke-width: 0.24; }
.hz-name, .hz-sub, .hz-dim { text-anchor: middle; dominant-baseline: middle; pointer-events: none; font-family: var(--font, system-ui); }
.hz-name { font-weight: 700; fill: #1f2937; }
text.hz-sub { fill: #374151; }
.hz-dim { fill: var(--c2, #4f46e5); font-weight: 700; }
.hz-handle { fill: #fff; stroke: var(--c2, #4f46e5); stroke-width: 0.05; cursor: grab; }
.hz-band { fill: rgba(79, 70, 229, .12); stroke: #4f46e5; stroke-width: 0.05; stroke-dasharray: 0.2 0.1; }
.hz-north circle { fill: rgba(255, 255, 255, .9); stroke: #9ca3af; stroke-width: 0.04; }
.hz-north path { fill: #dc2626; }
.hz-north text { text-anchor: middle; font-weight: 800; fill: #111; font-family: var(--font, system-ui); }
.hz-hint { font-size: .85rem; color: var(--muted); }
.hz-side h2 { margin: 0; }
.hz-res { padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--c1, #fbbf24) 18%, var(--surface)); }
.hz-help li { font-size: .9rem; }
.hz-legend { display: flex; gap: 8px; align-items: center; font-size: .8rem; color: var(--muted); }
.hz-legend i { flex: 1; height: 10px; border-radius: 99px; }
.hz-body { display: flex; flex-direction: column; gap: 12px; }
.hz-tblwrap { overflow-x: auto; }
.hz-tbl td { white-space: nowrap; }
.hz-tbl td:first-child { white-space: normal; min-width: 140px; }
.hz-th td { font-weight: 700; color: var(--muted); font-size: .85rem; }
.hz-row td:first-child { border-left: 6px solid var(--q); padding-left: 8px; }
.hz-link { border: 0; background: none; padding: 0; font: 600 1rem var(--font); color: var(--text); cursor: pointer; text-align: left; }
table.hz-sub { width: 100%; font-size: .82rem; color: var(--muted); }
table.hz-sub td { padding: 2px 6px; border: 0; text-align: right; }
table.hz-sub td:first-child { text-align: left; }
.hz-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.hz-kpis div { padding: 10px 12px; border-radius: 14px; background: var(--bg); border: 1px solid var(--border); display: flex; flex-direction: column; }
.hz-kpis small { color: var(--muted); }
.hz-kpis b { font-size: 1.35rem; }
.hz-warn { color: #b45309; display: block; }
.hz-hk { display: flex; flex-direction: column; gap: 4px; }
.hz-hkrow { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.hz-hkrow select, .hz-hkrow input, .hz-tbl select { padding: 5px 6px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg); color: var(--text); font: inherit; }
.hz-hkrow input { width: 64px; }
.hz-inl input { width: 70px; padding: 5px 6px; border-radius: 8px; border: 1px solid var(--border); }
.hz-disclaimer { padding: 12px 14px; border-radius: 14px; background: #fffbeb; border: 1px solid #f59e0b; color: #78350f; }
.hz-scale { position: relative; display: flex; border-radius: 10px; margin: 6px 0 16px; }
.hz-scale span { flex: 1; text-align: center; font-weight: 800; font-size: .8rem; padding: 6px 0; color: #111; }
.hz-scale span:first-child { border-radius: 10px 0 0 10px; }
.hz-scale span:nth-last-child(2) { border-radius: 0 10px 10px 0; color: #fff; }
.hz-scale i { position: absolute; top: -6px; bottom: -6px; width: 4px; margin-left: -2px; background: #111; border-radius: 2px; box-shadow: 0 0 0 2px #fff; }
.hz-bars { display: flex; align-items: flex-end; gap: 4px; height: 160px; }
.hz-bars div { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 2px; }
.hz-bars i { width: 100%; background: linear-gradient(var(--c1, #fbbf24), var(--c2, #ea580c)); border-radius: 6px 6px 2px 2px; min-height: 2px; }
.hz-bars small { font-size: .7rem; color: var(--muted); }
.hz-okline { color: #059669; font-weight: 700; margin: 0; }
.hz-dlg .hb-box { max-width: 520px; width: 100%; max-height: 80vh; overflow: auto; }
:root .hb-btn.danger { background: var(--surface); color: #b91c1c; border-color: #fca5a5; box-shadow: none; }

/* ---------- Ausbau 29.10.2026: Start, Phasen, Kiqo, Traumhaus, Video, Quiz, Pass ---------- */
.hb-stage:not(.ready) { background: url("/hausbau/poster.jpg") center / cover no-repeat, linear-gradient(#9cc3ea, #dfeaf4 60%, #eef3f7); }
.hb-stage:not(.ready) .hb-loading { background: rgba(255, 255, 255, .35); backdrop-filter: blur(2px); }
.hb-topbar { position: absolute; left: 12px; right: 12px; top: 12px; display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; pointer-events: none; }
.hb-topbar .hb-badge { position: static; }
.hb-topbar .hb-vars { pointer-events: auto; flex-wrap: nowrap; gap: 4px; background: rgba(255, 255, 255, .88); backdrop-filter: blur(6px); padding: 4px; border-radius: 14px; box-shadow: 0 4px 18px rgba(0, 0, 0, .12); }
.hb-topbar .hb-var { flex: none; padding: 6px 10px; border: 0; border-radius: 10px; background: transparent; color: #1f2937; font-size: .82rem; box-shadow: none; }
.hb-topbar .hb-var.on { background: var(--c2, var(--accent)); color: #fff; }
.hb-hint { top: auto; bottom: 64px; }
@media (max-width: 640px) {
  .hb-topbar { flex-direction: column; align-items: stretch; }
  .hb-topbar .hb-badge { align-self: flex-start; }
  .hb-topbar .hb-vars { align-self: flex-start; }
  .hb-tools { flex-wrap: wrap; }
  .hb-tools-r { flex-wrap: wrap; justify-content: flex-end; }
}
.hb-bigplay { position: absolute; left: 50%; top: 50%; translate: -50% -50%; display: flex; align-items: center; gap: 14px; border: 0; cursor: pointer; padding: 14px 22px 14px 14px; border-radius: 99px; background: rgba(255, 255, 255, .94); color: #111827; box-shadow: 0 18px 40px -12px rgba(15, 23, 42, .55); text-align: left; font: inherit; animation: hbPop .5s .3s cubic-bezier(.34, 1.56, .64, 1) both; width: max-content; max-width: calc(100% - 32px); }
@media (max-width: 560px) { .hb-bigplay { padding: 10px 16px 10px 10px; gap: 10px; } .hb-bigplay b { font-size: .98rem; } .hb-bigplay small { font-size: .78rem; } .hb-bp-i { width: 44px; height: 44px; } }
.hb-bigplay[hidden] { display: none; }
.hb-bigplay b { display: block; font-size: 1.08rem; }
.hb-bigplay small { color: #475569; }
.hb-bp-i { width: 54px; height: 54px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--c2, var(--accent)); color: #fff; font-size: 1.3rem; padding-left: 4px; animation: hbPulse 1.8s ease-in-out infinite; }
@keyframes hbPulse { 50% { box-shadow: 0 0 0 12px color-mix(in srgb, var(--c2, #4f46e5) 18%, transparent); } }
.hb-bigplay:hover { transform: scale(1.03); }
.hb-scrubwrap { padding-bottom: 22px; }
.hb-ticks { top: 14px; }
.hb-phases { position: absolute; left: 9px; right: 9px; bottom: 0; height: 20px; }
.hb-phase { position: absolute; top: 0; height: 20px; border: 0; padding: 0 4px; background: none; font: 700 .72rem var(--font); color: var(--muted); cursor: pointer; border-top: 2px solid color-mix(in srgb, var(--text) 12%, transparent); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.hb-phase.on { color: var(--c2, var(--accent)); border-top-color: var(--c2, var(--accent)); }
.hb-chipsep { flex: none; align-self: center; opacity: .55; padding: 0 2px; }
.hb-chips .hb-pchip { border-style: dashed; }
.hb-chips .hb-pchip.on { border-style: solid; background: var(--c2, var(--accent)); color: #fff; }
.hb-stepname { display: none; flex: 1; text-align: center; font-weight: 700; line-height: 1.2; }
.hb-stepname small { display: block; color: var(--muted); font-weight: 600; font-size: .75rem; }
@media (max-width: 700px) { .hb-chips { display: none; } .hb-stepname { display: block; } .hb-step { width: 44px; height: 44px; } }
.hb-today { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 10px 14px; font-size: .9rem; border-radius: 14px; background: color-mix(in srgb, var(--c1, #fbbf24) 16%, var(--surface)); border: 1px solid color-mix(in srgb, var(--c2, #ea580c) 25%, var(--border)); font-weight: 600; }
.hb-today[hidden] { display: none; }
.hb-today small { flex-basis: 100%; color: var(--muted); font-weight: 500; }
.hb-today .hb-btn { padding: 6px 10px; font-size: .84rem; }
.hb-kiqo { position: absolute; left: 12px; bottom: 64px; display: flex; align-items: flex-end; gap: 6px; max-width: min(420px, calc(100% - 24px)); pointer-events: none; transition: opacity .5s; }
.hb-kiqo[hidden] { display: none; }
.hb-kiqo img { width: 72px; height: 72px; flex: none; pointer-events: auto; cursor: pointer; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .25)); }
.hb-kiqo.in img { animation: hbKiqo .6s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes hbKiqo { from { transform: translateY(40px) scale(.6); opacity: 0; } }
.hb-bubble { position: relative; pointer-events: auto; background: #fff; color: #111827; border-radius: 16px 16px 16px 4px; padding: 9px 30px 9px 12px; font-size: .84rem; line-height: 1.35; box-shadow: 0 6px 20px rgba(0, 0, 0, .18); margin-bottom: 34px; }
.hb-bubble b { display: block; font-size: .74rem; color: var(--c2, #ea580c); }
.hb-bubble .hb-x { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; font-size: .75rem; }
.hb-kiqo.quiet .hb-bubble { opacity: 0; pointer-events: none; transition: opacity .6s; }
.hb-kiqo.quiet img { opacity: .85; }
@media (max-width: 560px) { .hb-stage .hb-hint { display: none; } .hb-kiqo { bottom: 124px; } .hb-kiqo img { width: 56px; height: 56px; } .hb-bubble { font-size: .8rem; margin-bottom: 26px; } }
.hb-cardlinks { display: flex; flex-wrap: wrap; gap: 8px; }
.hb-fun { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin-bottom: 14px; }
.hb-funbtn { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; text-align: left; padding: 14px; border-radius: 16px; border: 1px solid var(--border); background: linear-gradient(135deg, color-mix(in srgb, var(--c1, #fbbf24) 14%, var(--surface)), var(--surface)); color: var(--text); font: inherit; cursor: pointer; transition: transform .15s; }
.hb-funbtn:hover { transform: translateY(-2px); }
.hb-funbtn span { grid-row: span 2; font-size: 1.8rem; }
.hb-funbtn small { color: var(--muted); }
.hb-pass { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-l, 18px); padding: 16px; margin-bottom: 16px; display: flex; flex-direction: column; gap: 12px; }
.hb-pass-h { display: flex; gap: 14px; align-items: center; }
.hb-pass-h h3 { margin: 0; font-size: 1.15rem; }
.hb-pass-h small { color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: .7rem; }
.hb-pass-h p { margin: 0; }
.hb-ring { --p: 0; --rc: var(--c2, #ea580c); width: 64px; height: 64px; flex: none; border-radius: 50%; display: grid; place-content: center; text-align: center; background: radial-gradient(closest-side, var(--surface) 76%, transparent 78% 100%), conic-gradient(var(--rc) calc(var(--p) * 1%), color-mix(in srgb, var(--text) 10%, transparent) 0); }
.hb-ring b { font-size: 1.15rem; line-height: 1; }
.hb-ring small { font-size: .68rem; color: var(--muted); }
.hb-ring.big { width: 110px; height: 110px; }
.hb-ring.big b { font-size: 1.4rem; }
.hb-rings { display: flex; gap: 18px; justify-content: center; margin: 4px 0; }
.hb-badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.hb-bdg { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: 10px 6px; border-radius: 14px; background: var(--bg); border: 1px solid var(--border); opacity: .55; }
.hb-bdg span { font-size: 1.5rem; }
.hb-bdg b { font-size: .8rem; }
.hb-bdg small { font-size: .7rem; color: var(--muted); line-height: 1.25; }
.hb-bdg.on { opacity: 1; background: color-mix(in srgb, var(--c1, #fbbf24) 16%, var(--surface)); border-color: color-mix(in srgb, var(--c2, #ea580c) 30%, var(--border)); }
.hb-side-dlg { position: fixed; z-index: 1400; right: 16px; top: 80px; bottom: 16px; width: min(380px, calc(100vw - 32px)); display: flex; animation: hbSlide .3s ease-out; }
.hb-side-dlg .hb-box { width: 100%; overflow: auto; box-shadow: 0 20px 60px -20px rgba(15, 23, 42, .5); }
@keyframes hbSlide { from { transform: translateX(30px); opacity: 0; } }
@media (max-width: 700px) { .hb-side-dlg { left: 0; right: 0; top: auto; bottom: 0; width: auto; max-height: 52vh; animation-name: hbUp; } .hb-side-dlg .hb-box { border-radius: 20px 20px 0 0; } }
@keyframes hbUp { from { transform: translateY(40px); opacity: 0; } }
.hb-konfig-h { display: flex; justify-content: space-between; align-items: center; }
.hb-konfig-h h2 { margin: 0; }
.hb-swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.hb-sw { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--border); cursor: pointer; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .6); }
.hb-sw.on { border-color: var(--c2, var(--accent)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c2, #4f46e5) 35%, transparent); }
.hb-prog { position: relative; height: 22px; border-radius: 99px; background: var(--border); overflow: hidden; }
.hb-prog i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, var(--c1, #fbbf24), var(--c2, #ea580c)); transition: width .2s; }
.hb-prog span { position: relative; display: block; text-align: center; font: 700 .8rem/22px var(--font); }
.hb-vidprev { width: 100%; max-height: 50vh; border-radius: 12px; background: #000; }
.hb-warnbox { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; padding: 10px 12px; border-radius: 12px; }
.hb-quiz .hb-qcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.hb-qcard { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 8px; border-radius: 14px; border: 1px solid var(--border); background: var(--bg); color: var(--text); font: 600 .85rem var(--font); cursor: pointer; animation: hbPop .3s both; }
.hb-qcard span { font-size: 1.6rem; }
.hb-qcard:hover { border-color: var(--c2, var(--accent)); }
.hb-qorder { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 4px; min-height: 8px; }
.hb-qorder li { font-weight: 600; }
.hb-qorder li.ok { color: #15803d; }
.hb-qorder li.bad { color: #b91c1c; }
.hb-qorder li small { color: var(--muted); font-weight: 500; }
.hb-qres { text-align: center; display: flex; flex-direction: column; gap: 8px; }
.hb-mbar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 900; display: none; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; border: 0; border-radius: 16px; background: var(--c2, var(--accent)); color: #fff; font: inherit; box-shadow: 0 12px 30px -10px rgba(15, 23, 42, .6); cursor: pointer; text-align: left; transition: transform .25s, opacity .25s; }
.hb-mbar small { display: block; opacity: .85; font-size: .72rem; }
.hb-mbar b { font-size: 1.05rem; }
.hb-mbar-go { font-size: 1.2rem; }
.hb-mbar.off { transform: translateY(120%); opacity: 0; pointer-events: none; }
@media (max-width: 899px) { .hb-mbar:not([hidden]) { display: flex; } }
@media print { .hb-mbar { display: none !important; } }
.hb-fp-ph { margin: 14px 2px 0; font-size: 1rem; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.hb-fp-ph small { color: var(--muted); font-weight: 600; font-size: .8rem; }
.hb-fp-todos label { min-height: 40px; display: flex; align-items: center; gap: 10px; }
.hb-fp-todos input[type=checkbox] { width: 20px; height: 20px; flex: none; }
.hb-demo { background: #eef2ff; border: 1px solid #c7d2fe; color: #3730a3; padding: 10px 12px; border-radius: 12px; }
.hb-abn { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; border-top: 1px solid var(--border); padding-top: 12px; }
.hb-abn h2 { margin: 0; }
.hb-abn-g h3 { margin: 8px 0 4px; font-size: .95rem; }
.hb-abn-l { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.hb-abn-l li { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 10px; background: var(--bg); }
.hb-abn-l li span { flex: 1; }
.hb-abn-l li.ok span { color: var(--muted); text-decoration: line-through; }
.hb-abn-c { border: 0; background: none; font-size: 1.2rem; cursor: pointer; padding: 2px; }
.hz-checks { list-style: none; padding: 0; }
.hz-checks li.bad { color: #b91c1c; }
.hb-solarbars div { flex-direction: row; align-items: flex-end; flex-wrap: wrap; justify-content: center; gap: 1px; }
.hb-solarbars i { width: 42%; }
.hb-solarbars i.pv { background: #f59e0b; }
.hb-solarbars i.last { background: #6366f1; }
.hb-solarbars small { flex-basis: 100%; text-align: center; }
.hb-ang .hb-angtbl th { vertical-align: top; min-width: 150px; text-align: left; }
.hb-ang .hb-angtbl th input { width: 100%; margin-bottom: 4px; }
.hb-ang .hb-angtbl td:first-child { min-width: 180px; font-size: .88rem; }
.hb-anggrp td { background: var(--bg); font-weight: 800; }
.hb-stc { display: flex; flex-direction: column; gap: 4px; }
.hb-stc input { width: 100%; font-size: .8rem; padding: 4px 6px; }
.hb-st { border: 1px solid var(--border); background: var(--surface); border-radius: 10px; font-size: 1.1rem; padding: 4px; cursor: pointer; }
.hb-st.st-ja { background: #dcfce7; }
.hb-st.st-nein { background: #fee2e2; }
.hb-st.st-unklar { background: #fef9c3; }
.hz-mpick { margin: 6px 0; }
.hz-mpick[hidden] { display: none; }
.hz-mpick button { flex: 0 0 auto; }
.hz-moeb rect { fill: rgba(255, 255, 255, .85); stroke: #64748b; stroke-width: .03; }
.hz-moeb text { text-anchor: middle; pointer-events: none; }
.hz-moeb.sel rect { stroke: var(--c2, #4f46e5); stroke-width: .07; }
.hz-moeb { cursor: move; }
.hz-wb { height: 0; border-radius: 14px; overflow: hidden; background: linear-gradient(#eef2ff, #f8fafc); }
.hz-wb.on { height: min(60vh, 460px); }
.hz-wb canvas { width: 100% !important; height: 100% !important; display: block; touch-action: none; }
.hz-wbinfo { font-size: .88rem; color: var(--muted); }
.hz-scale i.was { background: #94a3b8; }
.hz-good { color: #15803d; font-weight: 700; }

/* Abend / Nacht, Hausmaße, Augmented Reality (30.10.2026) */
.hb-stage.hb-evening { background: linear-gradient(#f4a261, #e9c46a 35%, #b8c4d6 75%, #dfe6ee); }
.hb-stage.hb-night { background: radial-gradient(1.5px 1.5px at 12% 18%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 32% 8%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 58% 14%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 76% 22%, #fff 50%, transparent 51%), radial-gradient(1.2px 1.2px at 88% 9%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 45% 26%, #fff 50%, transparent 51%), linear-gradient(#070b1f, #18224a 55%, #2c3866); }
.hb-masse label { display: flex; align-items: center; gap: 10px; font-size: .88rem; }
.hb-masse input[type=range] { flex: 1; accent-color: var(--c2, var(--accent)); }
.hb-masse small { color: var(--muted); }
.hb-ar { max-width: 640px !important; }
.hb-mv { width: 100%; height: min(60vh, 460px); border-radius: 14px; background: linear-gradient(#dfeaf4, #f4f7fa); --poster-color: transparent; }
.hb-ar-btn { position: absolute; left: 50%; bottom: 14px; translate: -50% 0; }
.hb-ar-qr { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.hb-ar-qr svg { width: 150px; height: 150px; flex: none; }
.hz-wbctl { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.hz-wbctl .hb-seg { flex-wrap: wrap; }
/* Bautagebuch: Diktieren, Foto markieren, Foto am Mangel */
.hb-flab { display: flex; align-items: center; gap: 6px; }
.hb-dict { padding: 2px 8px; }
.hb-dict.on { background: #fee2e2; border-color: #ef4444; animation: hbPulse 1.2s infinite; }
@keyframes hbPulse { 50% { box-shadow: 0 0 0 6px rgba(239, 68, 68, .18); } }
.hb-mk { background: #0a0c14; display: flex; flex-direction: column; gap: 10px; padding: 12px; align-items: stretch; justify-content: flex-start; }
.hb-mk-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; background: rgba(255,255,255,.96); border-radius: 14px; padding: 8px; }
.hb-mk-sp { flex: 1; }
.hb-mk-col { display: flex; gap: 6px; }
.hb-mk-col button { width: 30px; height: 30px; border-radius: 50%; border: 2px solid #cbd5e1; cursor: pointer; }
.hb-mk-col button.on { border-color: #4f46e5; box-shadow: 0 0 0 3px rgba(79, 70, 229, .3); }
.hb-mk-wrap { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; }
.hb-mk-cv { max-width: 100%; max-height: 100%; touch-action: none; border-radius: 10px; cursor: crosshair; }
.hb-mk-tip { color: #e2e8f0; text-align: center; font-size: .85rem; margin: 0; }
.hb-mthumb { padding: 0; border: 0; background: none; cursor: pointer; border-radius: 8px; overflow: hidden; flex: none; }
.hb-mthumb img { display: block; object-fit: cover; width: 56px; height: 42px; }
/* Umzug & Einzug */
.hb-count { justify-content: flex-end; }
.hb-count b { font-size: 1.3rem; }
.hb-count small { color: var(--muted); }
.hb-phase-h { margin: 18px 0 8px; font-size: 1rem; }
.hb-todo { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.hb-todo li { display: flex; align-items: flex-start; gap: 10px; justify-content: space-between; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; }
.hb-todo label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; flex: 1; min-width: 0; }
.hb-todo label > span { display: flex; flex-direction: column; }
.hb-todo input { margin-top: 3px; width: 18px; height: 18px; flex: none; accent-color: var(--c2, #4f46e5); }
.hb-todo small { color: var(--muted); font-size: .82rem; }
.hb-todo time { font-size: .8rem; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.hb-todo li.done { opacity: .6; }
.hb-todo li.done b { text-decoration: line-through; }
.hb-todo li.late time { color: #dc2626; font-weight: 700; }
.hb-todo li.next { border-color: var(--c2, #4f46e5); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c2, #4f46e5) 18%, transparent); }
.hb-rooms { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; margin: 12px 0; }
.hb-roomrow { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 6px 10px; }
.hb-stepn { min-width: 1.4em; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }
.hb-packed { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; margin: 10px 0; }
.hb-pk { border: 1px solid var(--border); border-left: 6px solid var(--c); border-radius: 12px; padding: 8px 10px; display: flex; flex-direction: column; gap: 4px; }
.hb-pk small { color: var(--muted); font-variant-numeric: tabular-nums; }
.hb-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.hb-linkcard { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); text-decoration: none; color: inherit; transition: transform .15s; }
.hb-linkcard:hover { transform: translateY(-2px); border-color: var(--c2, #4f46e5); }
.hb-linkcard small { color: var(--muted); }
/* Sanierungs-Fahrplan */
.hb-san { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.hb-san li { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.hb-san-start { background: var(--bg) !important; }
.hb-san-start small { color: var(--muted); }
.hb-san-h { display: flex; gap: 10px; align-items: flex-start; }
.hb-san-h > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.hb-san-h small { color: var(--muted); font-size: .85rem; }
.hb-san-n { width: 26px; height: 26px; flex: none; border-radius: 50%; background: var(--c2, #4f46e5); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: .85rem; }
.hb-san-ico { font-size: 1.4rem; flex: none; }
.hb-san-bar { height: 10px; border-radius: 99px; background: var(--bg); overflow: hidden; }
.hb-san-bar i { display: block; height: 100%; border-radius: 99px; transition: width .4s; }
.hb-san-k { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .9rem; }
.hb-push-row { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.hb-push-row > div { display: flex; flex-direction: column; flex: 1; min-width: 220px; }
.hb-push-row small { color: var(--muted); }
