:root{--bg:#eef3f7;--card:#fff;--ink:#173047;--muted:#6d7d8a;--line:#dbe4ea;--brand:#153a5b;--brand2:#1d6c8c;--soft:#eaf2f6;--ok:#2e6f57;--danger:#9b3434;--shadow:0 10px 30px rgba(20,50,70,.08);font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink)}button,input,select,textarea{font:inherit}.app-shell{display:flex;min-height:100vh}.sidebar{width:270px;background:linear-gradient(180deg,#102f4a,#173f60);color:white;padding:22px 18px;position:fixed;inset:0 auto 0 0;overflow:auto}.brand{display:flex;gap:12px;align-items:center;margin-bottom:24px}.brand-mark{width:44px;height:44px;border-radius:12px;display:grid;place-items:center;background:white;color:var(--brand);font-weight:800}.brand-title{font-weight:800}.brand-sub{font-size:12px;opacity:.75}.nav{display:grid;gap:5px}.nav button{background:transparent;border:0;color:#dbeaf4;text-align:left;padding:12px 13px;border-radius:10px;cursor:pointer}.nav button:hover,.nav button.active{background:rgba(255,255,255,.12);color:white}.privacy-card{margin-top:24px;padding:14px;border:1px solid rgba(255,255,255,.18);border-radius:12px;font-size:12px;display:grid;gap:5px;color:#d8e5ee}.workspace{margin-left:270px;min-width:0;width:calc(100% - 270px)}.topbar{height:78px;background:rgba(255,255,255,.92);backdrop-filter:blur(12px);border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 28px;position:sticky;top:0;z-index:5}.topbar-left,.topbar-actions{display:flex;align-items:center;gap:12px}.eyebrow{text-transform:uppercase;letter-spacing:.08em;font-size:11px;font-weight:800;color:var(--brand2)}.project-title{font-weight:800}.icon-btn{display:none;border:0;background:var(--soft);border-radius:10px;padding:9px 11px}.save-state{font-size:12px;color:var(--ok)}.content{padding:28px;max-width:1500px;margin:auto}.page{display:none}.page.active{display:block}.hero{background:linear-gradient(120deg,#173f60,#246f8b);color:white;padding:30px;border-radius:20px;box-shadow:var(--shadow);display:flex;justify-content:space-between;gap:30px;align-items:flex-start}.hero h1{font-size:32px;max-width:820px;margin:8px 0 10px}.hero p{max-width:850px;opacity:.9}.hero .eyebrow{color:#c8e8f2}.hero-badge{border:1px solid rgba(255,255,255,.35);border-radius:999px;padding:8px 13px;font-weight:700}.grid{display:grid;gap:18px;margin-top:18px}.stats-grid{grid-template-columns:repeat(4,1fr)}.two-col{grid-template-columns:1.4fr 1fr}.card{background:var(--card);border:1px solid var(--line);border-radius:16px;padding:20px;box-shadow:var(--shadow)}.card h2{margin:0 0 6px}.card p{color:var(--muted)}.stat{display:grid;gap:6px}.stat span,.stat small{color:var(--muted)}.stat strong{font-size:24px}.page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:18px}.page-head h1{margin:4px 0 0;font-size:30px}.page-head p{margin:8px 0 0;color:var(--muted);max-width:900px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.form-card label,.form-card .full{display:grid;gap:6px;color:#405669;font-size:13px;font-weight:700}.full{display:grid;gap:6px;margin-top:14px;color:#405669;font-size:13px;font-weight:700}input,select,textarea{width:100%;border:1px solid #cfdbe3;border-radius:10px;padding:11px 12px;background:white;color:var(--ink);outline:none}input:focus,select:focus,textarea:focus{border-color:#4f92ab;box-shadow:0 0 0 3px rgba(48,125,154,.12)}textarea{resize:vertical}.btn,.file-btn{border:0;border-radius:10px;padding:10px 14px;font-weight:800;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:8px}.btn.primary{background:var(--brand);color:white}.btn.secondary{background:var(--soft);color:var(--brand)}.btn.ghost{background:transparent;border:1px solid var(--line);color:var(--brand)}.btn.danger{background:var(--danger);color:white}.btn.danger.ghost{background:white;color:var(--danger);border:1px solid #e5c0c0}.wide{width:100%}.card-head{display:flex;align-items:center;justify-content:space-between;gap:15px}.quick-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.quick-action{border:1px solid var(--line);background:#f9fbfc;border-radius:12px;padding:16px;text-align:left;display:flex;gap:12px;align-items:center;color:var(--ink);cursor:pointer}.quick-action strong{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:var(--brand);color:white}.project-list{display:grid;gap:10px;margin-top:14px}.project-row{border:1px solid var(--line);padding:12px;border-radius:12px;display:flex;justify-content:space-between;gap:14px;align-items:center}.project-row small{color:var(--muted)}.result-card{display:flex;flex-direction:column;justify-content:center;min-height:230px}.big-value{font-size:42px;font-weight:850;letter-spacing:-.03em;margin:8px 0}.formula,.breakdown{color:var(--muted);line-height:1.65}.breakdown{font-size:13px}.method-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:14px}.method-tab{border:1px solid var(--line);background:white;padding:10px 14px;border-radius:999px;cursor:pointer;font-weight:800;color:var(--brand)}.method-tab.active{background:var(--brand);color:white}.method-panel{display:none}.method-panel.active{display:block}.final-value-card{margin-top:18px}.hint{font-size:12px}.source-highlight{display:flex;justify-content:space-between;gap:18px;align-items:center;background:linear-gradient(120deg,#f7fbfd,#edf6fa)}.source-list{display:grid;gap:10px;margin-top:12px}.source-list a,.source-row{border:1px solid var(--line);border-radius:12px;padding:13px 14px;color:var(--brand);text-decoration:none;background:#fbfdfe}.source-row{display:flex;align-items:center;justify-content:space-between;gap:12px}.source-row small{color:var(--muted)}.source-list.compact a{padding:11px}.document-list{display:grid;gap:10px}.doc-row{display:flex;justify-content:space-between;gap:10px;align-items:center;border:1px solid var(--line);border-radius:12px;padding:12px}.upload-card{display:grid;gap:12px;margin-bottom:18px}.upload-card small{color:var(--muted)}.report{padding:38px;line-height:1.6}.report h1{font-size:28px}.report h2{border-bottom:1px solid var(--line);padding-bottom:6px;margin-top:26px}.report table{width:100%;border-collapse:collapse}.report td{border-bottom:1px solid var(--line);padding:8px 4px;vertical-align:top}.report td:first-child{width:38%;color:var(--muted)}.stack{display:grid;gap:10px;margin-top:14px}.file-btn{background:var(--soft);color:var(--brand)}.file-btn input{display:none}.info-card{margin-top:18px}.special-result{margin-top:16px;padding:12px;background:var(--soft);border-radius:12px}.toast{position:fixed;right:24px;bottom:24px;background:#173047;color:white;padding:12px 16px;border-radius:10px;box-shadow:var(--shadow);opacity:0;transform:translateY(10px);pointer-events:none;transition:.2s}.toast.show{opacity:1;transform:none}.comparison-table{width:100%;border-collapse:collapse}.comparison-table th,.comparison-table td{padding:10px;border-bottom:1px solid var(--line);text-align:left}.comparison-table input{padding:8px}.comparison-actions button{border:0;background:#f3e7e7;color:var(--danger);border-radius:8px;padding:7px 9px;cursor:pointer}
@media (max-width:1100px){.stats-grid{grid-template-columns:1fr 1fr}.two-col{grid-template-columns:1fr}.sidebar{transform:translateX(-100%);transition:.2s;z-index:20}.sidebar.open{transform:none}.workspace{margin-left:0;width:100%}.icon-btn{display:inline-block}.topbar{padding:0 18px}.content{padding:20px}}
@media (max-width:700px){.stats-grid,.form-grid,.quick-grid{grid-template-columns:1fr}.content{padding:14px}.topbar{height:auto;min-height:72px;gap:10px;align-items:flex-start;padding:12px 14px}.topbar-actions{flex-wrap:wrap;justify-content:flex-end}.save-state{display:none}.hero{padding:22px}.hero h1{font-size:25px}.hero-badge{display:none}.page-head{align-items:flex-start;flex-direction:column}.source-highlight{align-items:flex-start;flex-direction:column}.big-value{font-size:34px}.report{padding:20px}.source-row{align-items:flex-start;flex-direction:column}}
@media print{.sidebar,.topbar,.page-head,.method-tabs,.toast{display:none!important}.workspace{margin:0;width:100%}.content{padding:0;max-width:none}.page{display:none!important}#page-report{display:block!important}.report{box-shadow:none;border:0;padding:0}.report.card{border:0}.report h1{margin-top:0}}
.selection-summary{margin-top:14px;padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:#f7fbfd;color:#355268;font-size:13px;font-weight:750;line-height:1.5}
select:disabled{background:#f1f4f6;color:#8a98a3;cursor:not-allowed}

/* V3 – Gutachteneditor, Büroprofil und formale A4-Ausgabe */
.page-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.report-actions select{width:auto;min-width:210px;font-weight:800}.report-toolbar{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:18px;background:#f7fbfd}.report-toolbar span{color:var(--muted);font-size:13px}.report-toolbar strong{color:var(--ink)}
.report-text-grid .card{margin-top:0}.report-text-grid textarea{min-height:130px}.report-meta-card{margin-bottom:18px}.logo-editor{margin-top:18px;padding-top:18px;border-top:1px solid var(--line);display:grid;gap:12px}.logo-editor p{margin:5px 0 0}.logo-controls{display:flex;gap:10px;flex-wrap:wrap}.logo-preview{min-height:110px;border:1px dashed #bdcbd4;border-radius:12px;background:#fbfdfe;display:flex;align-items:center;justify-content:center;gap:16px;padding:15px;color:var(--muted)}.logo-preview img{max-width:260px;max-height:100px;object-fit:contain}.office-profile-actions{margin-top:18px}
.report{padding:0;overflow:hidden;background:white;color:#1b2b38}.report-cover{min-height:920px;padding:46px 52px 36px;display:flex;flex-direction:column}.report-office{display:flex;align-items:flex-start;justify-content:flex-start;gap:20px;font-size:13px;line-height:1.45}.report-office>div{max-width:520px}.report-logo{display:block;max-width:240px;max-height:95px;object-fit:contain;margin-right:12px}.cover-office{margin-bottom:74px}.cover-main{flex:1}.report-kicker{text-transform:uppercase;letter-spacing:.12em;font-size:11px;font-weight:800;color:var(--brand2);margin-bottom:12px}.report-cover h1{font-size:34px;line-height:1.15;margin:0 0 12px;color:var(--brand)}.report-cover h2{font-size:21px;border:0;margin:0 0 4px;padding:0;color:#334e62}.cover-address{font-size:16px;color:var(--muted);margin-top:5px}.cover-value{margin:54px 0 30px;border:2px solid var(--brand);padding:22px 26px;border-radius:4px;max-width:590px}.cover-value span,.cover-value small{display:block;color:var(--muted)}.cover-value strong{display:block;font-size:34px;color:var(--brand);margin:7px 0}.cover-meta{margin-top:auto}.report-body{padding:42px 52px 50px}.report-toc{min-height:730px}.report-toc ol{padding-left:24px;line-height:2}.report-section{margin:0 0 28px}.report-section h2{font-size:20px;color:var(--brand);border-bottom:1px solid #ced9df;padding-bottom:7px;margin:0 0 14px}.report-prose{line-height:1.7;text-align:justify;margin-bottom:14px}.report-table{width:100%;border-collapse:collapse;margin:12px 0 18px}.report-table td{border-bottom:1px solid #dde5ea;padding:8px 5px;vertical-align:top}.report-table td:first-child{width:38%;color:#667985}.value-emphasis{font-size:18px;color:var(--brand)}.signature-block{margin-top:56px;display:flex;justify-content:flex-end}.signature-block>div{width:300px}.signature-line{height:62px;border-bottom:1px solid #78858d;margin-bottom:8px}.report-endnote{margin-top:48px;border-top:1px solid #d7e0e5;padding-top:12px;color:#71808a;font-size:11px;line-height:1.5}.attachment-note{background:#f5f8fa;border:1px solid #dce4e9;padding:12px 14px;border-radius:8px}.quick-report{padding-top:38px}.quick-report .report-section{margin-bottom:24px}
@media(max-width:700px){.report-toolbar{align-items:flex-start;flex-direction:column}.report-actions{width:100%}.report-actions select,.report-actions .btn{width:100%}.report-cover{min-height:auto;padding:26px 22px}.report-body{padding:26px 22px}.cover-office{margin-bottom:35px}.cover-value{margin:30px 0}.report-office{flex-direction:column}.report-logo{max-width:200px}.logo-preview{align-items:flex-start;flex-direction:column}}
@page{size:A4;margin:17mm 16mm 18mm}
@media print{
  body{background:white;color:#111;font-size:10.5pt;-webkit-print-color-adjust:exact;print-color-adjust:exact}.sidebar,.topbar,.page-head,.report-toolbar,.method-tabs,.toast{display:none!important}.workspace{margin:0;width:100%}.content{padding:0;max-width:none}.page{display:none!important}#page-report{display:block!important}.report{box-shadow:none;border:0!important;border-radius:0;padding:0;overflow:visible}.report.card{border:0}.report-cover{min-height:260mm;padding:0;break-after:page;page-break-after:always}.report-body{padding:0}.report-toc{min-height:240mm;break-after:page;page-break-after:always}.report-section{break-inside:auto;page-break-inside:auto}.report-section h2{break-after:avoid;page-break-after:avoid}.report-table tr{break-inside:avoid;page-break-inside:avoid}.cover-office{margin-bottom:38mm}.cover-value{margin-top:26mm}.signature-block{break-inside:avoid;page-break-inside:avoid}.report-endnote{break-inside:avoid;page-break-inside:avoid}.report-logo{max-width:55mm;max-height:25mm}.quick-report{padding:0}
}
.report-table th{padding:8px 5px;text-align:left;border-bottom:2px solid #cbd7de;color:#405669;font-size:12px}.comparison-report-table td:first-child{width:auto;color:inherit}


/* V4 Fachmodule */
.online-state{font-size:.78rem;padding:.38rem .6rem;border-radius:999px;background:#e8f5ef;color:#236247;white-space:nowrap}.online-state.warn{background:#fff2dc;color:#8b5a12}
.four-col{grid-template-columns:repeat(4,minmax(0,1fr))}.stack-list{display:grid;gap:16px}.dynamic-card h2{margin:0}.empty-state{padding:28px;text-align:center;color:#6d7d8a}
.subtabs{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 14px}.subtabs button{border:1px solid #ccd8e0;background:#fff;padding:10px 13px;border-radius:10px;cursor:pointer;font-weight:700;color:#425463}.subtabs button.active{background:#173f60;color:#fff;border-color:#173f60}.desc-panel{display:none}.desc-panel.active{display:block}
.check-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.check-grid label,.inline-check{display:flex;gap:8px;align-items:center;padding:10px;border:1px solid #e0e7eb;border-radius:10px;background:#fafcfd}.check-grid input,.inline-check input{width:auto}
.table-scroll{overflow:auto}.edit-table{width:100%;border-collapse:collapse}.edit-table th,.edit-table td{padding:8px;border-bottom:1px solid #e3e9ed;text-align:left}.edit-table input{min-width:115px}.edit-table td:first-child input{min-width:220px}
.photo-gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:18px}.photo-card{border:1px solid #dce5ea;border-radius:14px;overflow:hidden;background:#fff}.photo-card img{width:100%;height:220px;object-fit:cover;display:block}.photo-body{padding:14px;display:grid;gap:10px}.photo-body textarea{width:100%}
.source-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px}.source-grid a{display:block;border:1px solid #dce5ea;border-radius:10px;padding:12px 14px;background:#fafcfd;text-decoration:none;color:#173f60;font-weight:700}.source-grid a:hover{background:#eef5f9}
.update-status-panel{min-height:140px}.online-source-list{display:grid;gap:8px}.online-source-list>div{display:grid;grid-template-columns:16px 1fr;gap:2px 8px;align-items:center;padding:8px 0;border-bottom:1px solid #edf1f3}.online-source-list small{grid-column:2;color:#6c7b85}.dot{width:10px;height:10px;border-radius:50%;background:#aaa}.dot.ok{background:#2f8f64}.dot.bad{background:#b54b4b}.source-status{padding:10px 12px;border-radius:10px;background:#f5f8fa}
.report-photo-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}.report-photo-grid figure{margin:0;break-inside:avoid;border:1px solid #ddd;padding:8px}.report-photo-grid img{width:100%;max-height:260px;object-fit:contain}.report-photo-grid figcaption{font-size:9pt;margin-top:6px}
@media(max-width:900px){.four-col{grid-template-columns:repeat(2,minmax(0,1fr))}.check-grid{grid-template-columns:1fr}.report-photo-grid{grid-template-columns:1fr}}
@media(max-width:600px){.four-col{grid-template-columns:1fr}.online-state{display:none}}
@media print{.report-photo-grid{grid-template-columns:repeat(2,1fr)}.report-photo-grid figure{page-break-inside:avoid}}

/* V5 professional valuation workbench */
.module-button-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.65rem;margin-top:.75rem}.module-button-grid .btn{min-height:46px;text-align:center}.summary-text-card{margin-bottom:1rem}.page-head.compact{margin-bottom:.7rem;padding-bottom:.5rem}.page-head.compact h2{margin:0}.live-source-ok{border-left:4px solid currentColor;padding-left:.65rem}.source-stamp{font-size:.82rem;opacity:.78}.damage-report-item{break-inside:avoid;margin-bottom:1rem}.damage-report-item figure{max-width:280px;float:right;margin:0 0 1rem 1rem}.damage-report-item:after{content:"";display:block;clear:both}.appendix-entry{break-inside:avoid;border-bottom:1px solid #d8dde4;padding:.65rem 0}.appendix-entry h3{margin:.2rem 0}.validation-box ul{margin:.3rem 0 .3rem 1.25rem}
@media(max-width:820px){.module-button-grid{grid-template-columns:1fr 1fr}.damage-report-item figure{float:none;max-width:100%;margin:.5rem 0}}
@media(max-width:520px){.module-button-grid{grid-template-columns:1fr}}
/* V5 project workflow */
.project-search{display:flex;gap:.55rem;align-items:center;margin:.65rem 0 1rem}.project-search input{flex:1;min-width:0}
@media(max-width:720px){.project-search{flex-direction:column;align-items:stretch}}
.standard-row-detailed{grid-template-columns:minmax(170px,.7fr) minmax(160px,.6fr) minmax(260px,1.5fr);align-items:start}.standard-criterion{font-size:.82rem;line-height:1.35;color:#5b6e7c;padding:.45rem .55rem;background:#f6f9fb;border-radius:.45rem;border:1px solid #e1e8ed}
@media(max-width:950px){.standard-row-detailed{grid-template-columns:1fr}.standard-criterion{margin-top:.15rem}}

.inline-action-bar{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:10px 0 16px}.inline-action-bar .hint{margin:0;max-width:880px}.active-row td{background:#eef7ff}.textblock-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.textblock-actions select{min-width:260px}.page-actions .file-btn{margin:0}.page-actions .file-btn input{display:none}

.floor-description-list{display:grid;gap:16px}.floor-card{border:1px solid var(--line);border-radius:16px;padding:18px;background:#fbfdff}.floor-card h3{margin:0}.floor-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:14px}.floor-grid label{display:flex;flex-direction:column;gap:6px}.floor-grid .full{grid-column:1/-1}.floor-card textarea{min-height:92px}.floor-card .floor-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.floor-card .floor-actions{display:flex;gap:8px;flex-wrap:wrap}.state-auto-badge{display:inline-flex;gap:6px;align-items:center;padding:4px 8px;border-radius:999px;background:#e7f4ec;font-size:12px;font-weight:700}.state-defaults-list{margin:8px 0 0 18px}.state-defaults-list li{margin:4px 0}@media(max-width:800px){.floor-grid{grid-template-columns:1fr}}

.automation-panel{margin:14px 0;padding:14px;border:1px solid var(--line);border-radius:14px;background:#f8fbfd}.building-textblock-picker{margin-bottom:16px}.textblock-preview{white-space:pre-wrap;padding:12px 14px;border:1px solid var(--line);border-radius:10px;background:#f8fbfd;min-height:68px;color:var(--muted)}.clause-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.clause-card{display:flex;gap:10px;align-items:flex-start;padding:12px;border:1px solid var(--line);border-radius:12px;background:#fbfdff}.clause-card input{margin-top:4px}.clause-card strong{display:block}.clause-card small{display:block;color:var(--muted);margin-top:4px;line-height:1.45}@media(max-width:800px){.clause-grid{grid-template-columns:1fr}}

/* V5.5 Ausstattung-Referenzbibliothek */
.equipment-reference-card{margin:16px 0}.equipment-reference-card .notice{margin:10px 0 14px}.equipment-reference-card .form-grid{margin-top:10px}.equipment-reference-card #equipmentReferencePreview{min-height:92px}.equipment-reference-card #equipmentReferenceSource{margin-top:8px}.equipment-reference-card .page-actions{margin-top:12px}

/* V6.0 Arbeitsablauf */
.workflow-summary-grid{margin-bottom:16px}.workflow-progress{height:12px;background:#e7eef4;border-radius:999px;overflow:hidden;margin-bottom:18px}.workflow-progress-bar{height:100%;width:0;background:linear-gradient(90deg,#1d628f,#2b8a68);transition:width .25s ease}.workflow-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.workflow-step{border:1px solid var(--border);border-radius:14px;padding:14px;background:#fff;display:flex;flex-direction:column;gap:8px;min-height:150px}.workflow-step.done{border-color:#9ad4b1;background:#f4fbf7}.workflow-step.warn{border-color:#e8c46a;background:#fffaf0}.workflow-step.open{border-color:#a9c7df;background:#f7fbff}.workflow-step .step-no{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:#eaf2f7;font-weight:900}.workflow-step.done .step-no{background:#dff4e8}.workflow-step h3{margin:0}.workflow-step p{margin:0;color:var(--muted);font-size:13px}.workflow-list,.workflow-issues{display:flex;flex-direction:column;gap:8px}.workflow-item,.workflow-issue{border:1px solid var(--border);border-radius:10px;padding:10px 12px;display:flex;gap:10px;justify-content:space-between;align-items:center}.workflow-issue.error{border-left:4px solid #a92c2c}.workflow-issue.warn{border-left:4px solid #c98800}.workflow-issue.info{border-left:4px solid #2f6e9c}.required-missing{background:#fff6bf!important;border-radius:8px;padding:5px}.required-ok{background:#f1faf4!important;border-radius:8px;padding:5px}.auto-value-badge{font-size:11px;border-radius:999px;padding:2px 7px;background:#e7f3ff;color:#14517a;font-weight:800}
/* Raum-/Geschossassistent */
.space-building{border:1px solid var(--border);border-radius:14px;padding:14px;margin:12px 0;background:#fbfdff}.space-building-head,.space-floor-head{display:flex;justify-content:space-between;gap:12px;align-items:center;flex-wrap:wrap}.space-floor{border:1px solid #d8e3eb;border-radius:12px;padding:12px;margin:12px 0;background:#fff}.space-floor-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:10px 0}.space-floor-summary label{font-size:12px}.space-room-table input,.space-room-table select{min-width:110px}.space-room-table input[type=number]{min-width:90px}.space-total-line{display:flex;gap:16px;flex-wrap:wrap;padding:8px 0;font-weight:800}.compact-number{width:110px!important}
/* Standort */
.location-criteria-list{display:flex;flex-direction:column;gap:8px;max-height:900px;overflow:auto}.location-criterion{display:grid;grid-template-columns:minmax(200px,1.3fr) 140px 130px minmax(180px,1fr);gap:8px;align-items:center;border:1px solid var(--border);border-radius:10px;padding:9px;background:#fff}.location-criterion.inactive{opacity:.6}.location-criterion .criterion-name{display:flex;gap:8px;align-items:flex-start}.location-criterion small{display:block;color:var(--muted)}
/* Marktdaten */
.market-cockpit{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.market-cell{border:1px solid var(--border);border-radius:12px;padding:12px;background:#fff}.market-cell.ok{border-left:4px solid #2c8a57}.market-cell.missing{border-left:4px solid #d89b1d;background:#fffaf1}.market-cell.auto{border-left:4px solid #2f78a8;background:#f5fbff}.market-cell strong{display:block;font-size:17px;margin:3px 0}.market-cell small{color:var(--muted)}
/* Bauschäden */
.damage-cost-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.damage-cost-strip div{padding:10px;border-radius:10px;background:#f5f8fa}.damage-cost-strip strong{display:block;font-size:17px}
@media(max-width:1100px){.workflow-steps{grid-template-columns:repeat(2,minmax(0,1fr))}.market-cockpit{grid-template-columns:repeat(2,minmax(0,1fr))}.location-criterion{grid-template-columns:1fr 130px 120px}.location-criterion .criterion-note{grid-column:1/-1}}
@media(max-width:700px){.workflow-steps,.market-cockpit,.damage-cost-strip{grid-template-columns:1fr}.location-criterion{grid-template-columns:1fr}.space-floor-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Inline Textbausteine */
.inline-tb-btn{margin-top:6px;font-size:12px;padding:5px 9px;border-radius:8px}.tb-modal[hidden]{display:none!important}.tb-modal{position:fixed;inset:0;z-index:9999;display:grid;place-items:center;padding:20px}.tb-modal-backdrop{position:absolute;inset:0;background:rgba(8,24,38,.55)}.tb-modal-dialog{position:relative;z-index:1;background:#fff;width:min(920px,96vw);max-height:92vh;overflow:auto;border-radius:16px;padding:20px;box-shadow:0 24px 80px rgba(0,0,0,.3)}.tb-modal-dialog select,.tb-modal-dialog textarea{width:100%}


/* ===== V6.1 Gutachtenaufbau / Deckblattfoto ===== */

.cover-photo-card{margin-bottom:18px}
.cover-photo-grid{display:grid;grid-template-columns:minmax(320px,1fr) minmax(220px,.8fr);gap:16px;align-items:start}
.cover-preview-note{border:1px dashed #bdcbd4;border-radius:12px;background:#fbfdfe;padding:16px;color:var(--muted);line-height:1.6}
.cover-preview-note p{margin:8px 0 0}
.report-cover-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(260px,.85fr);gap:28px;align-items:start}
.cover-intro{font-size:16px;line-height:1.65;color:#334e62;max-width:690px;margin:6px 0 0}
.cover-expert{margin-top:18px;line-height:1.6;color:#435867}
.cover-photo{margin:0;border:1px solid #dde5ea;border-radius:10px;background:#fff;padding:10px}
.cover-photo img{width:100%;max-height:340px;object-fit:cover;border-radius:6px;display:block}
.cover-photo figcaption{font-size:12px;color:var(--muted);margin-top:8px;line-height:1.45}
.report-sheet,.report-summary-sheet,.report-page-break{break-after:page;page-break-after:always}
.description-grid{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(260px,.9fr);gap:24px;align-items:start}
.summary-callout{border:1px solid #dbe4ea;background:#f7fafb;border-radius:10px;padding:16px 18px}
.summary-callout h3{margin:0 0 8px;color:var(--brand)}
.summary-callout p{margin:0 0 8px;line-height:1.6}
.summary-callout strong{display:block;font-size:26px;color:var(--brand);margin-top:10px}
.report-subtable{margin-top:14px}
.report-subtable h3{margin:0 0 8px;color:#2a4152;font-size:17px}
.report-subtable h4{margin:12px 0 6px;color:#506675;font-size:15px}
.report-section .report-photo-grid figure,.report-section .appendix-entry,.report-section .damage-report-item{break-inside:avoid;page-break-inside:avoid}
.report-appendix-note{font-size:12px;color:var(--muted)}
@media(max-width:900px){.cover-photo-grid,.report-cover-grid,.description-grid{grid-template-columns:1fr}.cover-photo img{max-height:280px}}
@media print{.cover-photo-grid,.report-cover-grid,.description-grid{grid-template-columns:1fr 1fr}.report-sheet,.report-summary-sheet,.report-page-break{break-after:page;page-break-after:always}}

/* V6.2 Rechtsbasierte Textbausteine */
.legal-basis{display:block;margin-top:4px;color:#557084;font-size:11px;line-height:1.45}.legal-notice{margin-top:14px}.clause-card .legal-basis{margin-top:6px}.textblock-card .card-head small+small{margin-top:3px}

/* V6.3 große Gebäudebaustein-Bibliothek */
.building-textblock-picker .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.building-textblock-picker #buildingTextSearch{min-width:0}.building-textblock-picker .textblock-preview{min-height:130px;line-height:1.55}.building-textblock-picker #buildingTextCount{margin:8px 0}.building-textblock-picker select{max-width:100%}@media(max-width:780px){.building-textblock-picker .form-grid{grid-template-columns:1fr}}

/* V6.4 Grundstücks-Textbausteine */
.site-textblock-picker{margin-bottom:18px}.site-textblock-picker .textblock-preview{min-height:92px}.site-textblock-picker .legal-basis{display:block;margin-top:7px;color:var(--muted)}

/* V6.5 Kurzbeschreibung / Barrierefreiheit */
#desc-quick .preset-preview,#desc-accessibility .preset-preview{margin-top:12px;min-height:96px}
#desc-quick select[size],#desc-accessibility select[size]{min-height:210px}
#desc-accessibility .grid.two-col>.card{margin-top:0}
