/* Design B: Graphit, klare Instrumente und gezielt leuchtende Energiepfade. */
:root{--teal:#128b80;--green:#277f51;--orange:#bd7809;--blue:#2e7bbb;--bg:#edf0f2;--surface:#fff;--soft:#f3f5f6;--border:#d6dde2;--muted:#5e6872;--text:#17212a;--red:#e52730;--shadow:0 12px 35px #17232d08;font-variant-numeric:tabular-nums}
[data-theme=dark]{--bg:#0b1013;--surface:#151c21;--soft:#1c252c;--text:#f1f4f6;--muted:#a4b0ba;--border:#35434c;--red:#ff494d;--green:#8ce9a8;--teal:#52e3ce;--orange:#ffc44b;--blue:#6ccaff;--purple:#b697ee;--shadow:0 16px 40px #00000020}
body{background:radial-gradient(ellipse at 48% 15%,#8b9ba108,transparent 65%),var(--bg)}
.sidebar{position:relative;inset:auto;width:100%;min-height:108px;height:auto;padding:0 42px 0 0;display:flex;flex-direction:row;align-items:center;gap:40px;border:0;border-bottom:1px solid var(--border);background:var(--surface);z-index:3}
[data-theme=dark] .sidebar{background:linear-gradient(110deg,#192127,#10171b)}
.brand{flex:none;width:240px;height:108px;margin:0;padding:9px 40px 10px 28px;display:flex;flex-direction:column;align-items:center;justify-content:center;background:white;border-right:5px solid #ed1c24;border-radius:0 0 22px 0;transform:skewX(-10deg);transform-origin:top left}
.brand img{width:166px;height:72px;object-fit:cover;object-position:center;transform:skewX(10deg);border-radius:0}
.brand>span{display:block;margin:1px 0 0;color:#111;font-size:12px;font-weight:650;letter-spacing:.15px;transform:skewX(10deg);white-space:nowrap}
.sidebar nav{display:flex;align-items:center;gap:14px;flex:1}
.sidebar nav a{font-size:13px;white-space:nowrap;padding:11px 14px;gap:9px;border:1px solid transparent;border-radius:7px;color:var(--text)}
.sidebar nav a span{font-size:21px;font-weight:400}
.sidebar nav a.active{border-color:#e74a45a0;background:linear-gradient(130deg,#ff594321,#ff594306);box-shadow:inset 0 0 14px #ff593a09;color:var(--red)}
.sidebar nav a:hover{border-color:var(--border);background:var(--soft)}
.theme-button{flex:none;width:auto;min-width:110px;white-space:nowrap;font-size:12px;border-color:var(--border);background:var(--soft);border-radius:20px;text-align:center;padding:8px 12px}
.theme-button span{margin-left:4px}.workspace{margin-left:0}.topbar{max-width:1440px;height:52px;margin:auto;padding:0 40px;background:none;border:0}.breadcrumb{font-size:11px}.demo-pill{font-size:9px;letter-spacing:1.4px;background:var(--soft);border-color:var(--border);color:var(--muted)}
main{max-width:1440px;padding:24px 40px 30px;min-height:calc(100vh - 240px)}
.page-heading{margin-bottom:25px;align-items:center}.eyebrow{font-size:10px;letter-spacing:1.7px;color:var(--muted)}h1{font-size:34px;font-weight:650;letter-spacing:-1.1px;line-height:1.17;margin-bottom:10px}.subtitle{font-size:13px}.subtitle:before{content:'';display:inline-block;width:26px;height:2px;background:var(--red);margin:0 10px 3px 0}.site-select{background:var(--surface);border-color:var(--border);font-size:12px;padding:12px 16px;border-radius:8px;white-space:nowrap}
.card{border-radius:14px;border:1px solid var(--border);box-shadow:var(--shadow);background:var(--surface)}
[data-theme=dark] .card{background:linear-gradient(115deg,#202930a8,#141c21 60%,#10181c)}
.hero-grid{grid-template-columns:minmax(0,2.05fr) minmax(270px,1fr);gap:18px}.card-head{padding:20px 22px 0}.card-head h2,.daily-title h2,.chart-heading h2{font-size:17px;font-weight:600;letter-spacing:-.25px;position:relative;padding-left:12px}.card-head h2:before,.daily-title h2:before,.chart-heading h2:before{position:absolute;content:'';width:2px;height:18px;background:var(--red);left:0;top:3px}.status{font-size:11px;color:var(--teal)}.status:before{box-shadow:0 0 10px currentColor}.status.warning{color:var(--orange)}.status.danger{color:#de4147}[data-theme=dark] .status.danger{color:#ff8a8a}
.energy-card{background:radial-gradient(ellipse at center,#aebac408,transparent 70%),var(--surface)}.flow{height:auto;max-height:335px;min-height:245px;width:100%;margin:0 auto}.flow .wire{stroke:var(--border);stroke-width:1.5}.flow .energy-light{stroke:currentColor;stroke-width:2;fill:none;opacity:.65}.flow .pulse{stroke-width:3;stroke-dasharray:4 13;stroke-linecap:round;animation:flow 1.8s linear infinite}.flow .reverse{animation-direction:reverse}
.flow .node{fill:var(--surface);stroke:var(--node-color);stroke-width:1.2}.flow .node-aura{fill:none;stroke:var(--node-color);stroke-width:2;opacity:0}.flow .equipment-icon{fill:none;stroke:var(--node-color);stroke-width:1.65;stroke-linejoin:round;stroke-linecap:round}.flow .flow-label{font-size:12px;fill:var(--text)}.flow .flow-value{font-size:25px;fill:var(--text);font-weight:600}.flow .flow-unit{font-size:12px;fill:var(--muted)}.flow .hub{fill:#f7f8f9;stroke:#e0e2e4;stroke-width:1}.flow .hub-rim{fill:none;stroke:#f64849;stroke-width:2}.flow .hub-halo{fill:none;stroke:#ff5555;stroke-width:2;opacity:.15}.flow .hub-brand{fill:#ec1722;font-size:22px;font-weight:850;font-style:italic;letter-spacing:-1px}.flow .hub-caption{fill:#31363a;font-size:5.3px;letter-spacing:.35px}
[data-theme=dark] .flow .energy-light{filter:drop-shadow(0 0 5px currentColor)}[data-theme=dark] .flow .pulse{filter:drop-shadow(0 0 4px currentColor)}[data-theme=dark] .flow .node{fill:#162026}[data-theme=dark] .flow .node-aura{opacity:.25;filter:blur(5px)}[data-theme=dark] .flow .hub-halo{opacity:.7;filter:blur(5px)}[data-theme=dark] .flow .hub{fill:#f0f2f4}
.flow-footer{padding:5px 22px 18px;font-size:10px}.flow-footer select{background:var(--soft);border-color:var(--border);color:var(--text);font-size:10px;border-radius:6px;padding:6px 9px;max-width:190px}
.daily-card{padding:20px 23px;justify-content:flex-start}.daily-value{font-size:53px;letter-spacing:-2px;line-height:1.08;margin-top:20px}.daily-value small{font-size:23px}.daily-caption{font-size:12px;color:var(--muted);margin-top:10px}.sun-icon{font-size:27px}.mini-bars{height:93px;margin-top:auto;gap:6px;padding-top:22px}.mini-bars i{background:color-mix(in srgb,var(--orange) 38%,transparent);border-radius:3px 3px 0 0}.mini-bars i:nth-child(n+8):nth-child(-n+13){background:linear-gradient(0deg,#b57716,var(--orange))}[data-theme=dark] .mini-bars i:nth-child(n+8):nth-child(-n+13){box-shadow:0 0 7px #ffbd3025}.daily-divider{margin:17px 0 9px}.daily-pair{font-size:12px;margin-top:10px}.daily-pair strong{font-size:15px;font-weight:600}
.metrics{gap:16px;margin:18px 0}.metric{padding:18px 20px}.metric-label{font-size:12px;color:var(--text)}.metric-label span{color:var(--orange);font-size:21px;line-height:1}.metric:nth-child(2) .metric-label span{color:var(--green)}.metric:nth-child(4) .metric-label span{color:var(--blue)}.metric-value{font-size:31px;line-height:1.3;margin:7px 0 3px;letter-spacing:-.6px}.metric-value small{font-size:16px;color:var(--muted)}.metric-note{font-size:11px}
.chart-card{padding:21px 24px}.chart-subheading{font-size:11px;padding-left:12px;margin-top:5px}.chart{max-height:220px;margin-top:17px}.chart path[stroke="var(--orange)"],.chart path[stroke="var(--blue)"]{stroke-width:2.8}[data-theme=dark] .chart path[stroke="var(--orange)"]{filter:drop-shadow(0 0 4px #ffbb3566)}[data-theme=dark] .chart path[stroke="var(--blue)"]{filter:drop-shadow(0 0 4px #6ccaff44)}.segmented{background:var(--bg);border-color:var(--border);padding:3px;gap:3px}.segmented button{border:1px solid transparent;min-width:55px;font-size:12px;padding:5px 13px}.segmented button.active,.segmented button[aria-pressed=true]{border-color:var(--orange);color:var(--text);background:color-mix(in srgb,var(--orange) 8%,var(--surface));box-shadow:0 0 10px #ffbb3510}.chart-legend{gap:22px;margin-top:12px}.chart-legend label{font-size:11px}.chart-legend small{font-size:10px}
.detail-card h2,.table-header h2{font-size:18px}.detail-card{padding:26px}.form-field input:focus{border-color:var(--blue)}.notice{background:color-mix(in srgb,var(--orange) 5%,var(--surface));border-radius:7px;border-left-color:var(--orange)}.alarm-icon{border:1px solid #e8606044;background:#e8606012;color:#d94949}[data-theme=dark] .alarm-icon{color:#ff9a9a}.alarm button:hover{border-color:var(--red)}.search{background:var(--bg)}th{background:var(--soft)}td{padding-top:19px;padding-bottom:19px}.table-wrap{border-radius:0 0 14px 14px}footer{max-width:1440px;padding:12px 40px 26px;font-size:10px;letter-spacing:0;line-height:1.8}footer strong{font-size:9px;letter-spacing:1px}footer>span:last-child{text-align:right}.toast{background:var(--surface);color:var(--text);border:1px solid var(--border);box-shadow:0 5px 30px #0005}
@media(min-width:1600px){.sidebar{padding-left:calc((100vw - 1500px)/2);padding-right:calc((100vw - 1440px)/2)}main{padding-top:30px}.flow{max-height:350px}.daily-value{font-size:57px}}
@media(max-width:1150px){.sidebar{gap:20px;padding-right:22px}.brand{width:205px;padding-left:20px;padding-right:28px}.sidebar nav{gap:5px}.sidebar nav a{font-size:12px;padding:10px}.theme-button{min-width:90px;font-size:11px}.topbar{padding:0 28px}main{padding:20px 28px 25px}.hero-grid{grid-template-columns:minmax(0,1.85fr) minmax(235px,1fr)}.daily-value{font-size:45px}.daily-value small{font-size:18px}.daily-card{padding:20px}.daily-pair{font-size:11px}.daily-pair strong{font-size:13px}.card-head h2,.daily-title h2,.chart-heading h2{font-size:15px}.metric-value{font-size:28px}.brand>span{font-size:12px}footer{padding-left:28px;padding-right:28px}}
@media(max-width:900px){.sidebar{height:auto;min-height:90px;gap:12px;padding-right:18px;flex-wrap:wrap}.brand{width:185px;height:90px;padding-top:5px;padding-bottom:6px}.brand img{width:145px;height:60px}.brand>span{display:block;font-size:11px;letter-spacing:.1px}.sidebar nav{flex:1;justify-content:center;gap:4px}.sidebar nav a{font-size:11px;flex-direction:column;gap:4px;padding:7px 9px}.sidebar nav a span{font-size:19px;width:auto}.theme-button{font-size:11px;min-width:0;padding:8px 10px}.workspace{margin-left:0}.flow{min-height:225px}.flow-footer{padding:6px 15px 15px;gap:8px}.flow-footer>span{max-width:130px}.daily-caption{font-size:11px}.daily-value{font-size:40px}.metrics{gap:10px}.metric{padding:16px}.metric-label{font-size:11px}.metric-note{font-size:10px}.metric-value small{font-size:13px}.two-col{grid-template-columns:1fr}}
@media(max-width:700px){.sidebar{display:grid;grid-template-columns:1fr auto;gap:0;min-height:0;padding:0 15px 0 0;position:relative}.brand{width:178px;height:91px;margin:0;grid-row:1;grid-column:1;padding:7px 25px 7px 15px}.brand img{width:145px;height:61px}.brand>span{font-size:11px}.theme-button{grid-column:2;grid-row:1;justify-self:end;padding:8px 12px}.sidebar nav{grid-row:2;grid-column:1/-1;display:flex;justify-content:space-around;gap:3px;padding:12px 0 12px 15px;width:100%}.sidebar nav a{flex-direction:row;gap:5px;font-size:10px;padding:8px 6px}.sidebar nav a span{font-size:16px}.topbar{height:45px;padding:0 16px}.breadcrumb{display:none}.top-actions{width:100%;justify-content:space-between}.demo-pill{font-size:8px}.role-switch select{font-size:11px}main{padding:20px 16px 25px}.page-heading{display:block;margin-bottom:21px}h1{font-size:29px}.eyebrow{font-size:9px}.subtitle{font-size:11px;line-height:1.7}.site-select{display:inline-block;margin-top:14px;font-size:10px;padding:7px 10px;max-width:none}.hero-grid{grid-template-columns:1fr;gap:14px}.card-head{padding:18px 15px 0}.card-head h2,.daily-title h2{font-size:15px}.status{font-size:9px}.flow{margin:8px 0 0;min-height:0;max-height:340px}.flow .flow-label{font-size:12px}.flow .flow-value{font-size:26px}.flow-footer{padding:6px 13px 15px;font-size:9px}.flow-footer>span{max-width:none}.flow-footer select{font-size:9px;padding:5px;max-width:160px}.daily-card{display:grid;grid-template-columns:1fr 1fr;gap:0 15px;padding:18px}.daily-title{grid-column:1/-1}.production{grid-row:2/4;align-self:center}.daily-value{font-size:40px;margin-top:12px}.daily-value small{font-size:16px}.daily-caption{max-width:155px;font-size:10px;line-height:1.6}.mini-bars{height:65px;margin-top:0;padding-top:12px;gap:4px}.daily-card .daily-divider{display:none}.daily-facts{grid-column:2}.daily-pair{font-size:9px;gap:7px;align-items:flex-start}.daily-pair strong{font-size:11px;white-space:nowrap}.daily-pair span{max-width:75px}.metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:14px 0}.metric{padding:16px}.metric-label{font-size:11px}.metric-value{font-size:28px}.metric-note{font-size:9px}.chart-card{padding:18px 13px}.chart-heading{align-items:flex-start;flex-wrap:wrap;gap:12px}.chart-heading h2{font-size:15px}.chart-subheading{font-size:9px}.segmented button{font-size:11px;min-width:48px;padding:5px 10px}.chart{min-height:145px;margin-top:12px}.chart-legend{gap:14px}.chart-legend small{width:100%;margin-left:0;font-size:9px}.table-header{padding:18px}.alarm-list{padding:0 16px}footer{padding:0 17px 24px;display:flex;flex-direction:column;font-size:9px}footer>span:last-child{text-align:left}.card{min-width:0}.detail-card{padding:20px}}
@media(prefers-reduced-motion:reduce){.flow .pulse{animation:none!important}}
.brand img{object-position:center 42%}
