+
+ {t("costs.title")}
+
+
+
+
+
+
+ {res.hasExample &&
{t("costs.exampleBanner")}
}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ | {t("costs.col.code")} |
+
+ {t("costs.col.group")} · {t("costs.col.basis")}
+ |
+ {t("costs.col.rate")} |
+ {t("costs.col.amount")} |
+ |
+
+
+
+ {res.rows.map((r, i) => (
+
+ |
+ patchGroup(i, { code: e.target.value }, "code")} />
+ |
+
+ patchGroup(i, { name: e.target.value || undefined }, "name")}
+ />
+
+
+ {r.unit ? `${formatChf(r.quantity, 1)} ${r.unit}` : costUnitLabel(r)}
+
+ |
+
+
+ patchGroup(i, { rate: v }, "rate")} />
+ {r.example ? "*" : ""}
+
+ |
+ {formatChf(r.amount)} |
+
+
+ |
+
+ ))}
+ {sumRow(t("costs.row.subtotal"), res.subtotal, "cost-subtotal", true)}
+ {sumRow(`${t("costs.row.fees")} ${pctLabel(res.feesPct)}`, res.fees, "cost-fees-row", false, "V")}
+ {sumRow(`${t("costs.row.reserve")} ${pctLabel(res.reservePct)}`, res.reserve, "cost-reserve-row", false, "Y")}
+ {sumRow(t("costs.row.net"), res.net, "cost-net", true)}
+ {sumRow(`${t("costs.row.vat")} ${pctLabel(res.vatPct)}`, res.vat, "cost-vat-row", false, "Z")}
+ {sumRow(t("costs.row.gross"), res.gross, "cost-gross", true)}
+
+ |
+
+ {t("costs.range")} ±{pctLabel(res.accuracyPct)}: {formatChf(res.low)} – {formatChf(res.high)}
+ |
+ |
+
+
+
+
+
+
+
+
+
+
+
+ {(
+ [
+ ["costs.q.gv", formatChf(res.quantities.gv, 1), "m³"],
+ ["costs.q.gf", formatChf(res.quantities.gf, 1), "m²"],
+ ["costs.q.hnf", formatChf(res.quantities.hnf, 1), "m²"],
+ ["costs.q.facade", formatChf(res.quantities.facade, 1), "m²"],
+ ["costs.q.roof", formatChf(res.quantities.roof, 1), "m²"],
+ ["costs.perGv", res.perGv === null ? "–" : formatChf(res.perGv), "CHF"],
+ ["costs.perGf", res.perGf === null ? "–" : formatChf(res.perGf), "CHF"],
+ ] as const
+ ).map(([key, value, unit]) => (
+
+ | {t(key)} |
+
+ {value} {unit}
+ |
+
+ ))}
+
+
+
+
+ {res.notes.map((k) => (
+ - {t(`costs.note.${k}`, { pct: pctLabel(res.accuracyPct) })}
+ ))}
+ - {t("costs.foot.ebkp")}
+
+
+ );
+}
diff --git a/src/panels/RoomBalancePanel.tsx b/src/panels/RoomBalancePanel.tsx
index 8a98a7c0..fa2c78a1 100644
--- a/src/panels/RoomBalancePanel.tsx
+++ b/src/panels/RoomBalancePanel.tsx
@@ -14,6 +14,7 @@ import type { Room } from "../model/types";
import { roomDisplayName } from "../model/roomStamp";
import { KennzahlenSection } from "./KennzahlenSection";
import { AreaTableSection } from "./AreaTableSection";
+import { CostEstimateSection } from "./CostEstimateSection";
import { OpeningScheduleSection } from "./OpeningScheduleSection";
import { ElementScheduleSection } from "./ElementScheduleSection";
import { RoomBookSection } from "./RoomBookSection";
@@ -45,6 +46,7 @@ export function RoomBalancePanel() {
+
{t("balance.empty")}
@@ -82,6 +84,9 @@ export function RoomBalancePanel() {
{/* Flächentabelle und IVHB-Kennziffern. */}
+ {/* Kostenschätzung grob ([209]). */}
+
+
{/* Fenster- und Türliste. */}
diff --git a/src/styles.css b/src/styles.css
index ebcfc60d..efc42037 100644
--- a/src/styles.css
+++ b/src/styles.css
@@ -8550,6 +8550,97 @@ body {
color: var(--ink-2);
}
+/* [209] Kostenschätzung grob (CostEstimateSection). */
+.cost-example-banner {
+ padding: 4px 6px;
+ border-radius: 4px;
+ background: var(--panel-2);
+ border-left: 3px solid var(--accent);
+ color: var(--ink);
+ font-size: 11px;
+}
+.cost-settings {
+ display: grid;
+ grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
+ gap: 3px 10px;
+}
+.cost-settings .kz-num {
+ width: 48px;
+}
+.cost-settings .kz-parcel > span:first-child {
+ font-size: 11px;
+}
+.cost-table {
+ table-layout: fixed;
+}
+.cost-table th:nth-child(1) {
+ width: 34px;
+}
+.cost-table th:nth-child(3) {
+ width: 62px;
+}
+.cost-table th:nth-child(4) {
+ width: 62px;
+}
+.cost-table th:nth-child(5) {
+ width: 16px;
+}
+.cost-table th:nth-child(5),
+.cost-table td:nth-child(5) {
+ padding: 2px 0;
+}
+.cost-table th {
+ white-space: normal;
+}
+.cost-table td {
+ vertical-align: top;
+}
+.cost-table .kz-input {
+ font-size: 11px;
+ max-width: 100%;
+ box-sizing: border-box;
+}
+.cost-table .cost-code {
+ width: 30px;
+}
+.cost-table .cost-name {
+ white-space: normal;
+}
+.cost-table .cost-name > .kz-input {
+ width: 100%;
+}
+.cost-sub {
+ display: flex;
+ align-items: center;
+ gap: 4px;
+ margin-top: 2px;
+ color: var(--ink-2);
+ font-size: 10px;
+}
+.cost-sub select {
+ flex: 0 0 auto;
+ width: 84px;
+ font-size: 10px;
+}
+.cost-qty {
+ white-space: nowrap;
+}
+.cost-table tr.cost-range td {
+ white-space: normal;
+ color: var(--ink-2);
+}
+.cost-rate {
+ white-space: nowrap;
+}
+.cost-rate.example .kz-input {
+ font-style: italic;
+ color: var(--ink-2);
+}
+.cost-quantities td {
+ white-space: normal;
+ border-bottom: none;
+}
+
/* Raumprogramm: Gruppenspalte, Aktionen, Soll/Ist-Vergleich, Import-Dialog ([61]). */
.kz-program-row {
grid-template-columns: minmax(0, 1fr) 52px 36px 64px 56px 18px;