aboutsummaryrefslogtreecommitdiff
path: root/web/style.css
diff options
context:
space:
mode:
authorLouis <louis@dnge.de>2026-11-08 15:20:31 +0100
committerLouis <louis@dnge.de>2026-11-08 15:20:31 +0100
commit5a956f1c82b10f4283fa8bbfd52fd9c6c2a39bd9 (patch)
tree8527285fffe0cf92438766ae2273178c63c392b7 /web/style.css
parent618b26b81fe2bb6fb33cb9a1924c16e44bf45399 (diff)
downloaddeckungsanteil-5a956f1c82b10f4283fa8bbfd52fd9c6c2a39bd9.tar.gz
Add Panasonic Aquarea, hot water and PV, step-by-step layoutHEADmain
- Panasonic Aquarea J (WH-MDC05/07/09J3E5) and L (WH-WDG05/07/09LE5) monobloc capacity and COP tables from the service manuals. - Optional hot water (daily demand charged 11-15 h MEZ with priority over heating) and PV with battery from DWD 10-minute global/diffuse irradiation, each switched on separately; surplus fed in or curtailed. - Inputs in five steps with the key figures always visible on top and the matching chart beside each step; full results in the last step. - Bisect the bivalence point so no hour at exactly that temperature is left uncovered (seen with 1 K bins). - Average the duration curve between sample points instead of picking single hours, which showed hot water hours as spikes. - Make the hidden attribute override label display rules. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'web/style.css')
-rw-r--r--web/style.css91
1 files changed, 83 insertions, 8 deletions
diff --git a/web/style.css b/web/style.css
index 20d6574..8d529fe 100644
--- a/web/style.css
+++ b/web/style.css
@@ -8,6 +8,10 @@
--backup: #d9822b;
--uncovered: #c0392b;
--accent: #2f7d6d;
+ --ww: #3d7cc9;
+ --pv: #d4a017;
+ --battery: #7a9a3a;
+ --grid-el: #8a8f8c;
}
@media (prefers-color-scheme: dark) {
:root {
@@ -20,9 +24,14 @@
--backup: #e89a4c;
--uncovered: #e06456;
--accent: #4fb39d;
+ --ww: #6aa2e8;
+ --pv: #e8c04a;
+ --battery: #9cbf5a;
+ --grid-el: #7b817e;
}
}
* { box-sizing: border-box; }
+[hidden] { display: none !important; }
body {
margin: 0;
background: var(--bg);
@@ -32,16 +41,75 @@ body {
header { padding: 24px 16px 8px; max-width: 1200px; margin: 0 auto; }
h1 { margin: 0 0 4px; font-size: 1.5rem; }
header p { margin: 0; color: var(--muted); }
-main {
+main, footer { max-width: 1200px; margin: 0 auto; padding: 0 16px 16px; }
+.preview {
+ position: sticky;
+ top: 0;
+ z-index: 2;
+ background: var(--bg);
+ border-bottom: 1px solid var(--line);
+ padding: 10px max(16px, calc((100% - 1200px) / 2 + 16px)) 8px;
+}
+.kpis.compact { grid-template-columns: repeat(6, minmax(0, 1fr)); margin: 0 0 6px; gap: 8px; }
+.kpis.compact .kpi { padding: 6px 10px; }
+.kpis.compact .value { font-size: 1.1rem; }
+.kpis.compact .sub { display: none; }
+@media (max-width: 800px) {
+ .kpis.compact { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
+ .kpis.compact .kpi { padding: 4px 6px; }
+ .kpis.compact .label { font-size: 0.68rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
+ .kpis.compact .value { font-size: 0.92rem; white-space: nowrap; }
+ .preview #status { font-size: 0.72rem; }
+}
+.stepper {
+ display: flex;
+ gap: 4px;
+ max-width: 1200px;
+ margin: 14px auto;
+ padding: 0 16px;
+ overflow-x: auto;
+}
+.stepper button {
+ flex: 1 0 auto;
+ display: flex;
+ align-items: center;
+ gap: 8px;
+ border: 0;
+ border-bottom: 3px solid var(--line);
+ border-radius: 0;
+ background: none;
+ color: var(--muted);
+ padding: 6px 4px 8px;
+ white-space: nowrap;
+}
+.stepper .num {
+ display: inline-grid;
+ place-items: center;
+ width: 22px;
+ height: 22px;
+ border-radius: 50%;
+ border: 1px solid var(--line);
+ font-size: 0.8rem;
+}
+.stepper button.done { border-bottom-color: var(--hp); color: var(--text); }
+.stepper button.done .num { background: var(--hp); border-color: var(--hp); color: var(--panel); }
+.stepper button[aria-current="step"] { border-bottom-color: var(--accent); color: var(--text); font-weight: 600; }
+.stepper button[aria-current="step"] .num { border-color: var(--accent); color: var(--accent); }
+.step:not([hidden]) {
display: grid;
- grid-template-columns: 320px 1fr;
+ grid-template-columns: 340px minmax(0, 1fr);
gap: 20px;
- max-width: 1200px;
- margin: 0 auto;
- padding: 16px;
+ align-items: start;
}
-@media (max-width: 800px) { main { grid-template-columns: 1fr; } }
-form, #results { min-width: 0; }
+.step:not(:has(aside)), .step.results { grid-template-columns: minmax(0, 560px); }
+.step.results:not([hidden]) { display: block; }
+@media (max-width: 800px) { .step:not([hidden]) { grid-template-columns: minmax(0, 1fr); } }
+.step fieldset { margin: 0; }
+h2 { font-size: 1.1rem; margin: 18px 0 0; }
+.results h2:first-child, .results > div:first-child h2 { margin-top: 0; }
+.step-nav { display: flex; justify-content: space-between; gap: 8px; margin-top: 16px; }
+.step-nav #next { margin-left: auto; }
+button.primary { background: var(--accent); border-color: var(--accent); color: var(--panel); }
fieldset {
border: 1px solid var(--line);
background: var(--panel);
@@ -117,4 +185,11 @@ figcaption { font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--panel); }
-#results.stale > :not(#status) { opacity: 0.35; pointer-events: none; }
+body.stale .kpis, body.stale figure { opacity: 0.35; }
+.chart .ww { fill: var(--ww); }
+.chart .pv { fill: var(--pv); }
+.chart .battery { fill: var(--battery); }
+.chart .grid-el { fill: var(--grid-el); }
+.chart .pvline { stroke: var(--pv); stroke-width: 2; fill: none; }
+.kpi.pv { border-left: 4px solid var(--pv); }
+.kpi.ww { border-left: 4px solid var(--ww); }