/* "Strom-Fahrplan" page: clock ring, price curve, power mix, heatmap, device cards, share. Follows the site theme variables (dark default, html[data-theme=light]).
   Price colours: green -> yellow -> red, always paired with symbols (▼ ● ▲) and numbers. */
.strom { --st-card: var(--panel); --st-good: #2bb673; --st-focus: #8fb4ff; overflow-x: clip; }
.strom [hidden] { display: none !important; }
.strom .dim { color: var(--muted); }
.strom * { min-width: 0; }
.st-hero .h2 { font-size: clamp(32px, 6.2vw, 62px); line-height: 1.05; letter-spacing: -.01em; }
.st-live { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 10px; font: 700 13px var(--font-m); letter-spacing: .1em; color: var(--text); }
.st-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--st-good); box-shadow: 0 0 0 0 rgba(43, 182, 115, .6); animation: st-pulse 2s infinite; }
.st-stand { color: var(--muted); font-weight: 500; letter-spacing: 0; }
@keyframes st-pulse { 70% { box-shadow: 0 0 0 9px rgba(43, 182, 115, 0); } 100% { box-shadow: 0 0 0 0 rgba(43, 182, 115, 0); } }
.st-status { margin: 22px 0; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); color: var(--muted); }
.st-status.err { border-color: var(--accent); color: var(--text); }
.st-status .st-btn { margin-top: 10px; }

.st-legal { margin: 22px 0 8px; padding: 16px 20px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); border-left: 5px solid #f1bf5b; }
.st-legal h2 { margin: 0 0 6px; font: 700 14px var(--font-m); letter-spacing: .09em; text-transform: uppercase; color: var(--text); }
.st-legal p { margin: 0 0 6px; line-height: 1.55; font-size: 15.5px; color: var(--text); }
.st-legal .st-attr { margin: 0; color: var(--muted); font-size: 14px; }

.st-sec { margin: 40px 0 0; }
.st-sec > h2, .st-how h2 { margin: 0 0 16px; font: 700 clamp(22px, 3.4vw, 30px)/1.15 var(--font-d, var(--font-b)); }
.st-js .st-sec { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.st-js .st-sec.in { opacity: 1; transform: none; }

.st-dash-grid { display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 1fr); gap: 26px; align-items: start; }
.st-clockcard { padding: 10px 10px 16px; border-radius: 20px; background: var(--st-card); border: 1px solid var(--line); box-shadow: 0 14px 40px rgba(0, 0, 0, .2); }
.st-clock { display: block; width: 100%; height: auto; max-width: 500px; margin: 0 auto; border-radius: 50%; touch-action: pan-y; }
.st-disc { fill: var(--bg); stroke: var(--line); }
.st-seg { stroke: var(--st-card); stroke-width: 0; cursor: crosshair; transform-box: fill-box; transform-origin: center; }
.st-seg.na { fill: var(--line); opacity: .55; }
.st-seg.pop { animation: st-pop .55s cubic-bezier(.2, .9, .3, 1.3) both; }
.st-seg.sel { stroke: var(--text); stroke-width: 3; }
@keyframes st-pop { from { opacity: 0; transform: scale(.82); } to { opacity: 1; transform: none; } }
.st-hl { font: 600 13px var(--font-m); fill: var(--text); }
.st-tk { stroke: var(--muted); stroke-width: 1; opacity: .5; }
.st-bestarc { fill: none; stroke: var(--text); stroke-width: 6; stroke-linecap: round; }
.st-co2tr { fill: none; stroke: var(--line-2, var(--line)); stroke-width: 8; }
.st-co2arc { fill: none; stroke-width: 8; stroke-linecap: round; }
.st-co2arc.draw, .st-line.draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: st-draw 1.6s ease forwards; }
.st-co2arc.draw { animation-duration: 1.2s; }
@keyframes st-draw { to { stroke-dashoffset: 0; } }
.st-c-s { font: 500 15px var(--font-m); fill: var(--muted); }
.st-c-b { font: 800 56px var(--font-b); fill: var(--text); }
.st-c-g { font: 700 16px var(--font-m); fill: var(--text); }
.st-c-n { font: 500 12px var(--font-m); fill: var(--muted); }
.st-nl { stroke: var(--text); stroke-width: 4; stroke-linecap: round; }
.st-nt { fill: var(--text); }
.st-clock-read { min-height: 3.2em; margin: 8px 8px 0; font: 500 14px/1.5 var(--font-m); color: var(--text); text-align: center; }

.st-legend { margin: 12px 8px 0; }
.st-lg-row { display: flex; align-items: center; gap: 10px; font: 600 13px var(--font-m); color: var(--text); }
.st-grad { flex: 1 1 auto; height: 12px; border-radius: 6px; background: linear-gradient(90deg, rgb(43, 182, 115), rgb(245, 197, 66), rgb(198, 48, 48)); border: 1px solid var(--line-2, var(--line)); }
.st-lg-n { margin: 6px 0 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.st-sec > .st-legend { margin: 10px 0 0; }

.st-chips { list-style: none; margin: 0 0 22px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }
.st-chip { display: flex; flex-direction: column; gap: 3px; padding: 13px 15px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
.st-chip-l { font: 600 12.5px var(--font-m); letter-spacing: .04em; color: var(--muted); }
.st-chip-v { font: 700 24px/1.2 var(--font-b); color: var(--text); overflow-wrap: anywhere; }
.st-gl { font-style: normal; }
.st-chip-s { font: 500 13px/1.45 var(--font-m); color: var(--muted); }
.st-side h3 { margin: 0 0 10px; font: 700 13px var(--font-m); letter-spacing: .09em; text-transform: uppercase; color: var(--text); }
.st-wins { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.st-win { display: flex; flex-direction: column; gap: 2px; padding: 12px 15px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--st-good); }
.st-win-l { font: 600 13.5px var(--font-m); color: var(--muted); }
.st-win-t { font: 700 20px var(--font-m); color: var(--text); }
.st-win-s { font: 500 13px var(--font-m); color: var(--muted); }

.st-chart { position: relative; width: 100%; padding: 8px 6px 4px; border-radius: 16px; background: var(--st-card); border: 1px solid var(--line); }
.st-svg { display: block; width: 100%; height: auto; touch-action: pan-y; }
.st-grid { stroke: var(--line); stroke-width: 1; } .st-grid.zero { stroke: var(--muted); stroke-dasharray: 4 4; }
.st-ax { font: 500 11.5px var(--font-m); fill: var(--muted); }
.st-line { fill: none; stroke-width: 3; stroke-linejoin: round; }
.st-area { opacity: .3; }
.st-negz { fill: rgba(50, 90, 200, .22); }
.st-negl { font: 700 12px var(--font-m); fill: var(--text); }
.st-bestz { fill: rgba(43, 182, 115, .16); stroke: var(--st-good); stroke-width: 1.5; stroke-dasharray: 5 3; }
.st-bestl, .st-nowl { font: 700 12px var(--font-m); fill: var(--text); }
.st-day { stroke: var(--muted); stroke-dasharray: 2 4; }
.st-now { stroke: var(--text); stroke-width: 2; stroke-dasharray: 5 3; }
.st-curline { stroke: var(--text); stroke-width: 1.5; }
.st-curdot { fill: var(--bg); stroke: var(--text); stroke-width: 3; }
.st-dim { fill: var(--st-card); opacity: .78; pointer-events: none; }

.st-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 0 12px; }
.st-mix-read { margin: 0; font: 600 14.5px var(--font-m); color: var(--text); }
.st-mixa { opacity: .92; }
.st-js .st-mixsec.in .st-mixa { animation: st-fade .9s ease both; }
@keyframes st-fade { from { opacity: 0; } to { opacity: .92; } }
.st-loadl { fill: none; stroke: var(--text); stroke-width: 2.2; stroke-dasharray: 7 4; }
.st-co2l { fill: none; stroke: #d34fa8; stroke-width: 2.4; }
.st-mixlist { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 6px 14px; }
.st-mrow { display: flex; align-items: center; gap: 8px; font-size: 14.5px; color: var(--text); }
.st-sw { flex: 0 0 14px; height: 14px; border-radius: 3px; border: 2px solid transparent; }
.st-sw.dash { border: 0; border-top: 3px dashed currentColor; height: 0; border-radius: 0; }
.st-mn { flex: 1 1 auto; } .st-mv { font: 600 13px var(--font-m); white-space: nowrap; color: var(--text); }
.st-mixsec.nomix .st-chart { display: none; }

.st-heat-box { overflow: hidden; }
.st-heat { width: 100%; border-collapse: separate; border-spacing: 2px; table-layout: fixed; }
.st-heat th { font: 600 11px var(--font-m); color: var(--muted); text-align: center; padding: 0; }
.st-heat .st-dh { text-align: right; padding-right: 6px; width: 76px; white-space: nowrap; }
.st-hc { height: 30px; border-radius: 4px; text-align: center; font: 600 11px var(--font-m); padding: 0; cursor: default; }
.st-hc.na { background: repeating-linear-gradient(45deg, var(--line), var(--line) 3px, transparent 3px, transparent 6px); }
.st-hc.neg { box-shadow: inset 0 0 0 2px #2a47b8; }
.st-hc.cur { outline: 3px solid var(--text); outline-offset: -1px; }
.st-heat thead th:first-child { width: 76px; }
.st-heat.tr thead th:first-child { width: 32px; }
.st-heat.tr .st-dh { width: 32px; padding-right: 4px; }
.st-heat.tr .st-hc { height: 21px; font-size: 11px; }
.st-heat.tr th.st-hh { font-size: 11px; }

.st-surch { margin: 0 0 18px; max-width: 560px; }
.st-surch label { display: block; margin: 0 0 6px; font: 600 14.5px var(--font-m); color: var(--text); }
.st-range { width: 100%; height: 30px; accent-color: var(--st-good); cursor: pointer; }
.st-devs { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.st-dev { padding: 16px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.st-dev-h { margin: 0 0 6px; font: 700 18px var(--font-b); color: var(--text); }
.st-dev-ic { font-size: 22px; }
.st-dev-w { display: flex; flex-direction: column; gap: 2px; margin: 0 0 8px; }
.st-dev-l { font: 600 12px var(--font-m); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.st-dev-t { font: 800 19px var(--font-m); color: var(--text); padding-left: 10px; border-left: 4px solid var(--st-good); }
.st-dev-x { font: 600 15px var(--font-m); color: var(--text); padding-left: 10px; border-left: 4px solid #c63030; }
.st-dev-ex { margin-top: 8px; font-size: 14px; line-height: 1.5; color: var(--text); }
.st-ctl2-t { display: flex; justify-content: space-between; font: 600 13px var(--font-m); color: var(--muted); }
.st-o { font: 700 13px var(--font-m); color: var(--text); }
.st-dnote { margin: 14px 0 0; max-width: 70ch; font-size: 14px; }

.st-share { display: flex; flex-wrap: wrap; gap: 10px; }
.st-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: 10px; border: 1px solid var(--line-2, var(--line)); background: transparent; color: var(--text); font: 600 14.5px var(--font-m); text-decoration: none; cursor: pointer; transition: border-color .2s, transform .2s; }
.st-btn:hover { border-color: var(--accent); transform: translateY(-1px); }
.st-pri { background: var(--st-good); border-color: var(--st-good); color: #06130c; font-weight: 800; }
.st-pri:hover { filter: brightness(1.1); border-color: var(--st-good); }
.st-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.strom a:focus-visible, .strom button:focus-visible, .strom svg:focus-visible, .strom input:focus-visible { outline: 3px solid var(--st-focus); outline-offset: 3px; }

.st-how { margin: 44px 0 0; }
.st-tip { position: fixed; z-index: 60; max-width: min(320px, 88vw); padding: 9px 12px; border-radius: 8px; background: #0b0f14; color: #fff; border: 1px solid rgba(255, 255, 255, .25); font: 500 12.5px/1.5 var(--font-m); white-space: pre-line; pointer-events: none; box-shadow: 0 8px 24px rgba(0, 0, 0, .4); }

@media (max-width: 860px) { .st-dash-grid { grid-template-columns: minmax(0, 1fr); } .st-clockcard { max-width: 520px; width: 100%; margin: 0 auto; } }
@media (max-width: 480px) {
  .st-chips { grid-template-columns: minmax(0, 1fr); } .st-win-t { font-size: 17px; }
  .st-legal { padding: 14px; } .st-btn { flex: 1 1 calc(50% - 10px); }
  .st-mixlist { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .st-dot, .st-seg.pop, .st-co2arc.draw, .st-line.draw, .st-js .st-mixsec.in .st-mixa { animation: none !important; }
  .st-js .st-sec { opacity: 1; transform: none; transition: none; } .st-btn { transition: none; }
}

.st-code { display: block; width: 100%; box-sizing: border-box; margin: 6px 0 12px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line-2, var(--line)); background: var(--bg-2, rgba(127,127,127,.08)); color: inherit; font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; resize: vertical; white-space: pre-wrap; word-break: break-all; }
.st-code-l { display: block; font-weight: 700; margin-top: 12px; }
.st-ecopy-s { margin-left: 10px; color: var(--accent); font-weight: 600; }
