/* Klarer Weg: Erzeuger/Verbraucher — Netz — Speicher. */
.storage-tabs button[aria-selected=true]:hover{color:var(--accent)}
.flow.energy-flow{display:block;position:relative;height:auto;min-height:242px;margin:0 0 15px;color:#f2f5ed}
.energy-flow .flow-heading{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:17px}
.energy-flow .flow-context-heading{font-size:8px;letter-spacing:.065em;color:#c6d3ba;line-height:1.5}
.energy-flow .flow-status{position:static;display:flex;font-size:8px;letter-spacing:.075em;gap:6px;flex-shrink:0}
.energy-flow .flow-status i{width:6px;height:6px;box-shadow:0 0 0 4px #ffcc0018;animation:energy-status 2s ease-in-out infinite}
.energy-flow .flow-chain{display:grid;grid-template-columns:82px minmax(24px,1fr) 90px minmax(24px,1fr) 82px;align-items:center;gap:8px;min-height:183px}
.energy-flow .flow-context-row{display:flex;flex-direction:column;align-items:center;gap:8px}
.energy-flow .flow-context{position:relative}
.energy-flow .flow-context::after{content:"";position:absolute;right:0;top:20px;bottom:35px;width:1px;background:#769168}
.energy-flow .flow-context-row.consumers{display:none}
.energy-flow.is-discharging .generators{display:none}
.energy-flow.is-discharging .consumers{display:flex}
.energy-flow .flow-context-item{position:relative;width:100%;padding-right:8px;display:flex;align-items:center;flex-direction:column;gap:3px;font-size:10px;line-height:1.2;text-align:center;color:#e3ebdb}
.energy-flow .flow-context-item::after{content:"";position:absolute;right:0;top:20px;width:calc(50% - 16px);height:1px;background:#769168}
.energy-flow .flow-context-item svg{width:40px;height:40px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.energy-flow .icon-accent{stroke:#ffcc00}
.energy-flow .flow-main-node{display:flex;align-items:center;flex-direction:column;gap:10px}
.energy-flow .flow-main-node>svg{width:76px;height:105px;fill:none;stroke-linecap:round;stroke-linejoin:round}
.energy-flow .flow-network-icon{stroke:#d5e1cc;stroke-width:2}
.energy-flow .flow-node-label{font-size:10px;font-weight:600;letter-spacing:.06em;line-height:1.4;white-space:nowrap}
.energy-flow .flow-store-node>.flow-node-label{color:#ffcc00}
.energy-flow .flow-battery-outline{stroke:#ffcc00;stroke-width:2.4;fill:#244125}
.energy-flow .flow-battery-fill{fill:#ffcc00;transform-box:fill-box;transform-origin:50% 100%;animation:storage-charge 6s linear infinite}
.energy-flow .flow-cell-divider{stroke:#244125;stroke-width:3}
.energy-flow .flow-link{position:relative;height:14px;transform:translateY(-12px)}
.energy-flow .flow-link::before{content:"";position:absolute;left:0;right:5px;top:6px;height:2px;background:repeating-linear-gradient(90deg,#ffcc00 0 7px,#ffcc0030 7px 14px);animation:energy-dashes 1s linear infinite}
.energy-flow .flow-link::after{content:"";position:absolute;right:0;top:2px;border-top:5px solid transparent;border-bottom:5px solid transparent;border-left:6px solid #ffcc00}
.energy-flow .flow-link>i{position:absolute;left:0;top:4px;width:6px;height:6px;background:#ffcc00;border-radius:50%;box-shadow:0 0 8px #ffcc0060;animation:energy-travel 2s linear infinite}
.energy-flow .flow-link>i.particle-two{animation-delay:-1s}
.energy-flow.is-discharging .flow-link::before,.energy-flow.is-discharging .flow-link>i{animation-direction:reverse}
.energy-flow.is-discharging .flow-link::after{right:auto;left:0;border-left:0;border-right:6px solid #ffcc00}
.energy-flow.is-discharging .flow-battery-fill{animation-name:storage-discharge}
.energy-flow .peak-demo{display:none}
.energy-flow.is-balancing .flow-chain{display:none}
.energy-flow.is-balancing .peak-demo{display:block}
.energy-flow.is-balancing .flow-battery-fill{animation:storage-smoothing 7s linear infinite}
.peak-legend{display:flex;gap:22px;margin:0 0 17px;font-size:10px;line-height:1.4;flex-wrap:wrap}
.peak-key{display:flex;align-items:center;gap:7px;color:#e3ebdb}
.peak-key::before{content:"";width:17px;height:3px;background:#ffcc00}
.peak-key.smooth::before{background:#a4cf70}
.peak-axis-title{display:block;font-size:9px;color:#c6d3ba;margin-bottom:6px}
.energy-flow .peak-chart{display:block;width:100%;height:auto;overflow:visible}
.peak-guide{stroke:#ffffff15;stroke-dasharray:4 5}
.peak-axis{stroke:#9cb58c;stroke-width:1}
.peak-raw{stroke:#ffcc00;stroke-width:2.2;stroke-opacity:.8;stroke-linejoin:round}
.peak-smooth{stroke:#a4cf70;stroke-width:3.5;stroke-linecap:round}
.peak-scan{stroke:#ffffff55;stroke-width:1;fill:#fff;animation:peak-sweep 7s linear infinite}
.peak-highlight{fill:#ffcc0040;stroke:#ffcc00;stroke-width:1;animation:peak-surplus 7s linear infinite}
.peak-demand{animation-name:peak-demand}
.peak-time{display:block;text-align:right;font-size:9px;color:#c6d3ba;margin-top:-4px}
.peak-functions{display:flex;justify-content:space-between;gap:15px;font-size:10px;line-height:1.4;margin-top:17px;color:#e3ebdb}
.peak-functions>span:first-child{color:#ffdd65}
.peak-functions>span:last-child{color:#b9dfa0}
.peak-storage{display:flex;align-items:center;justify-content:center;gap:14px;margin-top:20px;padding-top:17px;border-top:1px solid #61725680;font-size:12px;line-height:1.45;color:#e3ebdb}
.energy-flow .peak-storage>svg{width:34px;height:48px}
.flow-controls{display:flex;justify-content:flex-end;margin:0 0 23px}
.flow-motion-toggle{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:34px;padding:6px 11px;border:1px solid #708163;border-radius:18px;background:transparent;color:#e3ebdb;font-size:10px;line-height:1.4}
.flow-motion-toggle:hover{background:#44513b;border-color:#c1d3b1}
.flow-motion-toggle>span:first-child{font-size:15px;line-height:1}
.energy-flow.is-paused *,.energy-flow.is-paused *::before{animation-play-state:paused!important}
@keyframes energy-dashes{to{background-position:14px 0}}
@keyframes energy-travel{0%{left:0;opacity:0}12%,88%{opacity:1}100%{left:calc(100% - 6px);opacity:0}}
@keyframes storage-charge{0%{transform:scaleY(.16)}88%,100%{transform:scaleY(1)}}
@keyframes storage-discharge{0%{transform:scaleY(1)}88%,100%{transform:scaleY(.16)}}
@keyframes storage-smoothing{0%,12%,75%,100%{transform:scaleY(.4)}31%,55%{transform:scaleY(.8)}}
@keyframes energy-status{50%{opacity:.55}}
@keyframes peak-sweep{from{transform:translateX(22px)}to{transform:translateX(458px)}}
@keyframes peak-surplus{0%,12%,31%,100%{opacity:.2}17%,25%{opacity:1}}
@keyframes peak-demand{0%,55%,73%,100%{opacity:.2}60%,68%{opacity:1}}
@media(max-width:560px){.flow.energy-flow{min-height:225px;margin-bottom:12px}.energy-flow .flow-heading{gap:10px;margin-bottom:16px}.energy-flow .flow-context-heading{font-size:7px;letter-spacing:.025em}.energy-flow .flow-status{font-size:7px}.energy-flow .flow-chain{grid-template-columns:58px minmax(16px,1fr) 58px minmax(16px,1fr) 58px;gap:5px}.energy-flow .flow-context-item{font-size:9px}.energy-flow .flow-context-item svg{width:38px;height:38px}.energy-flow .flow-context-row{gap:8px}.energy-flow .flow-main-node>svg{width:58px;height:86px}.energy-flow .flow-main-node{gap:9px}.energy-flow .flow-node-label{font-size:8px;letter-spacing:.025em}.energy-flow .flow-link{transform:translateY(-10px)}.energy-flow .flow-link>i{width:5px;height:5px;top:4.5px}.flow-controls{margin-bottom:20px}.flow-motion-toggle{font-size:9px}.peak-legend{font-size:9px;gap:17px;margin-bottom:15px}.peak-functions{font-size:9px;gap:13px}.peak-storage{font-size:11px;margin-top:18px}.energy-flow .peak-storage>svg{width:32px;height:45px}}
@media(prefers-reduced-motion:reduce){.energy-flow:not(.is-motion-enabled) *,.energy-flow:not(.is-motion-enabled) *::before{animation:none!important}.energy-flow:not(.is-motion-enabled) .flow-battery-fill{transform:scaleY(.55)}.energy-flow:not(.is-motion-enabled) .flow-link>i{display:none}.energy-flow:not(.is-motion-enabled) .peak-scan{display:none}.energy-flow:not(.is-motion-enabled) .peak-highlight{opacity:.5}}
