/* ESA SolarWerk: Ergänzungen zum ESA-Grundlayout */
.menubar .mod { color: #7fcdd7; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 11px 8px 0 14px; white-space: nowrap; }
.menubar .mod.soon { color: #8f999f; cursor: help; padding-left: 10px; }
.menubar .mod.soon::after { content: " · bald"; text-transform: none; letter-spacing: 0; font-weight: 400; }
.sec-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.sec-head h2 { margin: 0; font-size: 22px; }
.pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pill { background: var(--bar); border-radius: 22px; padding: 6px 16px; text-align: center; min-width: 120px; }
.pill b { display: block; font-family: var(--display); font-weight: 300; font-size: 20px; line-height: 1.2; }
.pill b small { font-family: var(--text); font-size: 12px; font-weight: 600; }
.pill span { font-size: 12px; color: var(--muted); }

.proj-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.proj-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: stretch; }
.proj-grid > div:first-child { border-right: 1px solid var(--grid); padding-right: 18px; }
dl.params { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 0; }
dl.params .wide { flex-basis: 100%; }
dl.params dt { color: var(--muted); font-size: 13px; }
dl.params dd { margin: 0; }
.notiz { margin-top: 12px; font-size: 13px; }
.map iframe { width: 100%; height: 100%; min-height: 200px; border: 1px solid var(--line); display: block; }

.grid2even { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin-bottom: 12px; align-items: start; }
.grid2even > * { min-width: 0; }
.card2 { border: 1px solid var(--line); padding: 12px 14px; background: #fff; margin-bottom: 12px; }
.grid2even > .card2 { margin-bottom: 0; }
.card2-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.card2-head h3 { margin: 0; }
.seg2 { display: inline-flex; gap: 4px; }
.seg2 a { border: 1px solid var(--line); border-radius: 3px; padding: 3px 10px; font-size: 13px; text-decoration: none; background: #fff; }
.seg2 a.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 600; }
form.week { display: flex; align-items: center; gap: 8px; }
form.week input[type=range] { width: 140px; padding: 0; accent-color: var(--accent); border: 0; }

svg.chart { width: 100%; height: auto; display: block; overflow: visible; }
svg.chart text.ax { font: 10px var(--text); fill: var(--muted); }
.grid2even svg.chart text.ax, .pv-grid svg.chart text.ax { font-size: 15px; }
.grid2even svg.chart text.val { font-size: 17px; }
svg.chart text.val { font: 600 12px var(--text); fill: var(--ink); }
.legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--muted); margin: 4px 0 2px 58px; }
.legend i { display: inline-block; width: 14px; height: 4px; margin-right: 5px; vertical-align: middle; }

.share { display: flex; height: 30px; margin: 6px 0 6px; overflow: hidden; border-radius: 3px; }
.share div { display: flex; align-items: center; justify-content: center; min-width: 2px; }
.share span { font-size: 12px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.share-leg { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.share-leg i { display: inline-block; width: 10px; height: 10px; margin-right: 5px; border-radius: 2px; vertical-align: -1px; }
.share-leg b { color: var(--ink); }

dl.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; margin: 0 0 14px; }
dl.kpis.cols3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
dl.kpis div { border-bottom: 1px solid var(--grid); padding-bottom: 6px; }
dl.kpis dt { color: var(--muted); font-size: 13px; }
dl.kpis dd { margin: 0; font-weight: 600; }
.pv-grid { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 18px; margin-bottom: 8px; }

.reco { border-top: 3px solid var(--accent); }
.reco h2 { font-size: 20px; }
.reco-row { display: grid; grid-template-columns: 200px 200px minmax(0, 1fr); gap: 18px; align-items: center; }
.reco-row span { display: block; font-size: 13px; }
.big { font-family: var(--display); font-weight: 300; font-size: 30px; }
tr.sel { background: var(--tint); box-shadow: inset 3px 0 var(--accent); }
td.neg { color: var(--bad-ink); }
.batt-pick { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }

table.flows td { border: 0; padding: 4px 6px; font-size: 13px; }
table.flows td:first-child { white-space: nowrap; width: 1%; }
table.flows .barcell { width: 60%; }
table.flows .barcell i { display: block; height: 12px; border-radius: 2px; }
details.calc { margin-top: 6px; font-size: 13px; color: var(--muted); }
details.calc summary { cursor: pointer; }
details > summary { cursor: pointer; color: var(--muted); margin-top: 8px; }
.upload h3 { margin-top: 10px; }
input.mini { width: 80px; padding: 3px 6px; }

/* Bericht */
.report { max-width: 980px; margin: 0 auto; padding: 24px; background: #fff; }
.rep-head { display: flex; justify-content: space-between; align-items: center; border-bottom: 3px solid var(--accent); padding-bottom: 10px; margin-bottom: 18px; }
.rep-head img { height: 34px; }
.rep-head div { text-align: right; font-size: 13px; }
.report h2 { margin-top: 22px; }
table.rep td, table.rep th { padding: 5px 8px; font-size: 13px; }
.disclaimer { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 8px; }
@media print {
  body { background: #fff; }
  .noprint, form.week, .seg2, details { display: none !important; }
  .report { padding: 0; }
  .card2, .panel, table, svg { break-inside: avoid; }
  @page { size: A4; margin: 14mm; }
}
@media (max-width: 900px) {
  .proj-grid, .grid2even, .pv-grid, .reco-row { grid-template-columns: minmax(0, 1fr); }
  .proj-grid > div:first-child { border-right: 0; padding-right: 0; }
  dl.kpis.cols3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Projekt-Reiter und SolarWerk Dach */
nav.tabs { display: flex; gap: 2px; margin: -6px 0 14px; border-bottom: 2px solid var(--line); }
nav.tabs a, nav.tabs span { padding: 7px 18px; text-decoration: none; font-family: var(--display); font-weight: 800; letter-spacing: .03em; font-size: 15px; border-bottom: 3px solid transparent; margin-bottom: -2px; }
nav.tabs a.on { border-bottom-color: var(--accent); }
nav.tabs a:hover { background: var(--tint); }
nav.tabs .soon { color: var(--silver); cursor: help; }
.roofs { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; margin-bottom: 12px; }
a.roofcard { display: block; border: 1px solid var(--line); border-top: 2px solid var(--accent); background: #fff; padding: 10px 12px; text-decoration: none; color: var(--ink); }
a.roofcard:hover { background: var(--tint); }
.roof-head { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 6px; font-size: 14px; }
.roof-foot { display: flex; flex-direction: column; gap: 2px; font-size: 13px; margin-top: 6px; }
svg.roof { width: 100%; height: auto; display: block; }
svg.roof text.ax { font: 11px var(--text); fill: var(--muted); }
.dach-edit { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 12px; align-items: start; }
.dach-preview { position: sticky; top: 8px; }
@media (max-width: 900px) { .dach-edit { grid-template-columns: minmax(0, 1fr); } .dach-preview { position: static; } }
.menubar a.sep { margin-left: auto; }

/* SolarWerk Strang */
.einsatz { border: 1px solid var(--line); border-left: 3px solid var(--accent); padding: 10px 12px; margin: 10px 0; background: #fbfcfc; }
.einsatz-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.einsatz .table-wrap { margin-bottom: 6px; }
.meldung { font-size: 13px; line-height: 1.5; }
.wr-pruef { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
form.temps { margin: 0 0 6px; }
form.import { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 10px 14px; }
form.import input[type=file] { width: auto; }

/* ---------- Projekt-Assistent (wie PV*SOL: Schritte oben, Übersicht rechts) ---------- */
main:has(> nav.schritte) { max-width: 1560px; display: grid; grid-template-columns: minmax(0, 1fr) 300px; column-gap: 22px; row-gap: 0; align-items: start; }
main:has(> nav.schritte) > * { grid-column: 1; min-width: 0; }
main:has(> nav.schritte) > nav.schritte { grid-column: 1 / -1; }
main:has(> nav.schritte) > aside.uebersicht { grid-column: 2; grid-row: 2 / span 400; align-self: start; position: sticky; top: 10px; }
nav.schritte { display: flex; gap: 4px; margin: -6px 0 16px; overflow-x: auto; padding-bottom: 2px; }
nav.schritte a { flex: 1 1 0; min-width: 118px; display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: var(--panel); border: 1px solid var(--line); border-bottom: 3px solid var(--line); text-decoration: none; font-size: 13px; line-height: 1.2; }
nav.schritte a .nr { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--bar); font-family: var(--display); font-weight: 800; }
nav.schritte a:hover { background: var(--tint); }
nav.schritte a.on { border-bottom-color: var(--accent); background: var(--tint); font-weight: 600; }
nav.schritte a.on .nr { background: var(--accent); color: var(--on-accent); }
aside.uebersicht { background: var(--panel); border: 1px solid var(--line); padding: 12px 14px; font-size: 12.5px; max-height: calc(100vh - 20px); overflow-y: auto; }
aside.uebersicht h3 { font-size: 15px; margin-bottom: 6px; }
aside.uebersicht h4 { font-family: var(--display); font-weight: 800; font-size: 13px; margin: 10px 0 3px; }
aside.uebersicht h4 a { text-decoration: none; color: var(--accent); }
aside.uebersicht dl { margin: 0; }
aside.uebersicht dl div { display: grid; grid-template-columns: 44% 56%; gap: 4px; padding: 1px 0; }
aside.uebersicht dt { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: pre; }
aside.uebersicht dd { margin: 0; overflow-wrap: anywhere; }
.weiter { display: flex; justify-content: space-between; gap: 10px; margin: 18px 0 6px; }
.weiter a:only-child { margin-left: auto; }
.fields.one { grid-template-columns: 1fr 1fr; }
ol.ablauf { margin: 0 0 12px 18px; padding: 0; }
ol.ablauf li { margin: 3px 0; }
svg.schema { width: 100%; max-width: 760px; display: block; margin: 14px auto 2px; }
svg.schaltplan { width: 100%; max-width: 860px; display: block; }
svg.obj-plan { width: 100%; height: auto; display: block; background: #20323d; }
table.monate input.mini { width: 90px; text-align: right; }
td.actions { white-space: nowrap; }
td.actions form.inline { display: inline; }
@media (max-width: 1100px) {
  main:has(> nav.schritte) { display: block; }
  aside.uebersicht { position: static; max-height: none; margin-top: 18px; }
}
@media print {
  nav.schritte, aside.uebersicht, .weiter, .menubar, header.brand, .actions, form.import { display: none !important; }
  main:has(> nav.schritte) { display: block; }
}

/* ---------- 3D-Modell ---------- */
.modell3d { display: grid; grid-template-columns: minmax(0, 1fr) 250px; grid-template-rows: auto 1fr; gap: 8px; margin-bottom: 14px; }
.m3d-leiste { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.m3d-hinweis { color: var(--muted); font-size: 13px; margin-left: auto; }
.m3d-flaeche { position: relative; height: min(72vh, 760px); background: #dfe8ee; border: 1px solid var(--line); }
.m3d-flaeche canvas { width: 100%; height: 100%; display: block; cursor: crosshair; }
.m3d-laden { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); }
.m3d-liste { background: var(--panel); border: 1px solid var(--line); padding: 10px 12px; font-size: 13px; overflow-y: auto; max-height: min(72vh, 760px); }
.m3d-eintrag { display: grid; grid-template-columns: 12px 1fr; column-gap: 8px; padding: 6px 4px; border-bottom: 1px solid var(--grid); cursor: pointer; }
.m3d-eintrag.on { background: var(--tint); }
.m3d-eintrag i { width: 12px; height: 12px; margin-top: 4px; grid-row: span 5; }
.m3d-eintrag span, .m3d-eintrag a { grid-column: 2; }
dialog#m3d-dialog { border: 1px solid var(--line); padding: 16px 18px; min-width: 380px; }
dialog#m3d-dialog::backdrop { background: rgba(0, 31, 50, .35); }
table.datenblatt input { width: 100%; min-width: 70px; }
table.datenblatt td:nth-child(2) input { min-width: 170px; }
@media (max-width: 1100px) { .modell3d { grid-template-columns: 1fr; } }
[hidden] { display: none !important; }
table.datenblatt input.fehlt { background: #fff6dc; border-color: #f0c86a; }
/* Sperrflächen im 3D-Modell */
.m3d-sperrliste { margin: -2px 0 10px 18px; display: grid; gap: 3px; }
.m3d-sperr { display: grid; grid-template-columns: 10px 1fr auto auto; gap: 6px; align-items: center; font-size: 12.5px; padding: 3px 6px; border-radius: 4px; cursor: pointer; }
.m3d-sperr:hover { background: #f1f5f8; }
.m3d-sperr.on { background: #ffe9e3; }
.m3d-sperr i { width: 10px; height: 10px; border-radius: 2px; background: #d94b4b; }
.m3d-sperr.vor i { background: #f39c12; }
.m3d-sperr em { font-style: normal; font-size: 11px; color: #b06d00; background: #fff3dc; padding: 0 5px; border-radius: 8px; margin-left: 4px; }
button.mini { padding: 2px 8px; font-size: 12px; min-height: 0; line-height: 1.5; }
.m3d-sperrknoepfe { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.m3d-editor { border: 1px solid #ffc4b5; background: #fff8f6; border-radius: 6px; padding: 8px; display: grid; gap: 6px; font-size: 12.5px; }
.m3d-editor input { width: 100%; padding: 3px 6px; font-size: 12.5px; }
.m3d-editor-masse { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.m3d-editor-masse input { width: 60px; }
.m3d-editor p { margin: 0; }
table.datenblatt.breit input { min-width: 54px; }
table.datenblatt.breit th { white-space: normal; font-size: 12px; }
.field .wert { padding: 8px 0; }
/* 3D-Modell: Werkzeugleiste, Zeichenstatus, erkannte Dachebenen */
.m3d-werkzeuge { position: absolute; left: 10px; top: 10px; display: grid; gap: 4px; background: rgba(255,255,255,.94); border: 1px solid var(--line); border-radius: 10px; padding: 5px; box-shadow: 0 2px 8px rgba(0,31,50,.12); }
.m3d-werkzeuge .wz { display: grid; grid-template-columns: 22px auto 16px; align-items: center; gap: 8px; background: transparent; border: 1px solid transparent; color: var(--ink); font-weight: 500; font-size: 13px; padding: 6px 9px; border-radius: 7px; text-align: left; }
.m3d-werkzeuge .wz svg { width: 22px; height: 22px; fill: currentColor; stroke: currentColor; }
.m3d-werkzeuge .wz kbd { font: 600 10px var(--text); color: var(--muted); border: 1px solid var(--line); border-radius: 3px; padding: 0 3px; text-align: center; }
.m3d-werkzeuge .wz:hover:not(:disabled) { background: var(--tint); border-color: transparent; color: var(--ink); }
.m3d-werkzeuge .wz.on { background: var(--chrome); color: #fff; }
.m3d-werkzeuge .wz.on kbd { color: #cfe3ea; border-color: #46657a; }
.m3d-typen { position: absolute; left: 160px; top: 10px; right: 10px; display: flex; flex-wrap: wrap; gap: 5px; }
.m3d-typen .typ { background: rgba(255,255,255,.94); color: var(--ink); border: 1px solid var(--line); border-radius: 14px; padding: 3px 11px; font-size: 12.5px; font-weight: 500; }
.m3d-typen .typ:hover:not(:disabled) { background: #fff; border-color: #d94b4b; color: var(--ink); }
.m3d-typen .typ.on { background: #d94b4b; border-color: #d94b4b; color: #fff; }
.m3d-status { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; background: var(--chrome); color: #fff; border-radius: 10px; padding: 7px 8px 7px 14px; font-size: 13px; box-shadow: 0 3px 12px rgba(0,31,50,.25); white-space: nowrap; }
.m3d-status em { font-style: normal; color: var(--yellow); }
.m3d-status button.ghost { background: transparent; color: #fff; border-color: #46657a; }
.m3d-status button.ghost:hover:not(:disabled) { background: #143e5a; color: #fff; }
.m3d-status button:disabled { opacity: .45; }
.m3d-vliste { display: grid; gap: 3px; }
.m3d-vor { display: grid; grid-template-columns: 18px 24px 1fr; gap: 7px; align-items: center; padding: 4px 6px; border-radius: 6px; border: 1px solid transparent; cursor: pointer; font-size: 12.5px; }
.m3d-vor:hover { border-color: var(--line); background: #f6f8f9; }
.m3d-vor.an { background: var(--tint); }
.m3d-vor input { width: 16px; height: 16px; }
.m3d-vor i { width: 24px; height: 20px; border-radius: 5px; font: 700 11px/20px var(--text); font-style: normal; text-align: center; color: #fff; text-shadow: 0 0 2px rgba(0,0,0,.45); }
.m3d-vliste button { margin-top: 6px; justify-self: start; }
/* Projektübersicht */
.projektsuche { display: flex; align-items: center; gap: 12px; margin: 0 0 10px; }
.projektsuche input { max-width: 460px; }
table.projekte td.nowrap { white-space: nowrap; }
table.projekte th.aktionen, table.projekte td.aktionen { width: 1%; white-space: nowrap; text-align: right; }
table.projekte td.aktionen { position: relative; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
details.menue { display: inline-block; position: relative; margin-left: 4px; }
details.menue summary { list-style: none; cursor: pointer; padding: 4px 10px; }
details.menue summary::-webkit-details-marker { display: none; }
.menue-liste { position: absolute; right: 0; top: calc(100% + 4px); z-index: 20; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 6px 20px rgba(0,31,50,.16); min-width: 190px; padding: 5px; display: grid; text-align: left; }
.menue-liste a, .menue-liste button { display: block; width: 100%; text-align: left; padding: 7px 10px; border-radius: 5px; border: 0; background: transparent; color: var(--ink); font: inherit; font-weight: 400; text-decoration: none; cursor: pointer; }
.menue-liste a:hover, .menue-liste button:hover:not(:disabled) { background: var(--tint); color: var(--ink); }
.menue-liste form { margin: 0; }
.menue-liste button.gefahr { color: var(--bad-ink); }
.menue-liste button.gefahr:hover:not(:disabled) { background: var(--bad-bg); color: var(--bad-ink); }
/* Konto, Zwei-Faktor */
.flash.good { border-left-color: var(--good); background: #e3f3ea; }
.actions-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 8px; }
.actions-row form.inline { display: flex; gap: 6px; }
.actions-row form.inline input { width: 230px; }
.field .hint { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; }
.zfa { display: grid; grid-template-columns: 240px 1fr; gap: 24px; align-items: start; }
.zfa-qr svg { width: 220px; height: 220px; display: block; border: 1px solid var(--line); padding: 8px; background: #fff; }
.zfa ol { padding-left: 18px; margin-top: 0; }
.zfa ol li { margin-bottom: 8px; }
code.schluessel { display: inline-block; margin-top: 4px; font-size: 15px; letter-spacing: .06em; background: var(--bar); padding: 3px 8px; border-radius: 4px; user-select: all; }
input.code { font-size: 24px; letter-spacing: .25em; text-align: center; max-width: 220px; font-variant-numeric: tabular-nums; }
.gate input.code { max-width: 100%; }
.gate details { margin-top: 14px; }
.codes { display: grid; grid-template-columns: repeat(4, max-content); gap: 8px 18px; margin: 12px 0; }
.codes code { font-size: 16px; letter-spacing: .05em; background: var(--bar); padding: 4px 10px; border-radius: 4px; }
@media (max-width: 700px) { .zfa { grid-template-columns: 1fr; } .codes { grid-template-columns: repeat(2, max-content); } }
@media print { header.brand, nav.menubar, footer.app, .actions-row { display: none; } }

/* Speicherauswahl im Projekt */
.speicher-wahl { display: flex; flex-direction: column; border: 1px solid var(--line); margin-bottom: 10px; }
.speicher { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 10px 12px; border-top: 1px solid var(--line); }
.speicher:first-child { border-top: 0; }
.speicher:hover { background: var(--tint); }
.sp-kopf a.small { font-size: 12px; }
.sp-kopf { flex: 1 1 auto; min-width: 0; }
.sp-anzahl { flex: 0 0 auto; display: flex; flex-wrap: nowrap; align-items: center; gap: 6px; justify-content: flex-end; }
label.chip { position: relative; cursor: pointer; }
label.chip input { position: absolute; opacity: 0; width: 0; height: 0; }
label.chip span { display: inline-block; min-width: 34px; text-align: center; padding: 5px 10px; border: 1px solid var(--line); background: var(--panel); font-weight: 600; font-size: 14px; }
label.chip input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
label.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.check-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 4px 16px; margin: 4px 0; }
@media (max-width: 700px) { .speicher { flex-direction: column; align-items: flex-start; } .sp-anzahl { justify-content: flex-start; } }
.speicher.an { background: var(--tint); box-shadow: inset 3px 0 var(--accent); }
.sp-anzahl input.stk { width: 64px; text-align: center; font-weight: 600; }
.sp-anzahl button.stk { width: 34px; padding: 6px 0; background: var(--panel); color: var(--ink); border: 1px solid var(--line); }
.sp-anzahl button.stk:hover { border-color: var(--accent); }
.sp-summe { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: -4px 0 18px; }
#berechnung h3 { margin: 16px 0 8px; }
label.check.sp-kopf { align-items: flex-start; }

/* Kundenreport */
.report.kunde { max-width: 1000px; }
.report.kunde h2 { border-bottom: 2px solid var(--accent); padding-bottom: 4px; }
.report .abschnitt { margin-bottom: 26px; }
.deck-ueber { margin: 40px 0 4px; text-transform: uppercase; letter-spacing: .08em; font-size: 12px; }
.deck-titel { font-family: var(--display); font-size: 34px; margin: 0 0 6px; }
.report.kunde h2.deck-projekt { border: 0; font-size: 20px; margin: 0 0 26px; color: var(--muted); }
.deck-daten { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 22px; font-size: 14px; line-height: 1.5; }
.deck-daten table.rep td:first-child { color: var(--muted); width: 45%; }
.deck-text { border-left: 3px solid var(--accent); padding: 8px 14px; margin: 0 0 22px; background: var(--tint); font-size: 14px; line-height: 1.55; }
.deck-kz { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.deck-kz div { border: 1px solid var(--line); border-top: 3px solid var(--accent); padding: 10px 12px; }
.deck-kz span { display: block; font-size: 12px; color: var(--muted); }
.deck-kz b { font-family: var(--display); font-weight: 400; font-size: 17px; white-space: nowrap; }
table.rep.kv td:first-child { color: var(--muted); width: 30%; }
table.rep tr.summe td { border-top: 2px solid var(--ink); }
.rep-dach { display: grid; grid-template-columns: repeat(auto-fill, minmax(440px, 1fr)); gap: 14px; }
.rep-karte { border: 1px solid var(--line); padding: 10px; break-inside: avoid; }
.rep-karte svg { width: 100%; height: auto; margin-top: 6px; }
.report svg.schaltplan { width: 100%; height: auto; }
.report-wahl label.check { align-items: flex-start; padding: 6px 0; }
@media print {
  .report .seite-neu { break-before: page; }
  .report h2, .report h3 { break-after: avoid; }
  .report table, .report svg { break-inside: avoid; }
  .noprint { display: none; }
}
@page { size: A4; margin: 14mm 12mm; }
.deck-bild { display: block; width: 100%; max-height: 380px; object-fit: cover; margin: 0 0 20px; border: 1px solid var(--line); }
.energie-kz { margin-bottom: 8px; }
.report .share { margin-bottom: 4px; }
