body.demo, body { background: #07090e; color: #ece8e0; }

.top { background: linear-gradient(135deg, #0e131f, #1a1208); padding: 28px 0 20px; border-bottom: 1px solid rgba(255,122,0,.15); }
.top h1 { margin: 0 0 6px; font-size: 1.8rem; color: #fff; }
.top h1 span { color: #ff7a00; font-weight: 600; }
.top p { margin: 0; color: #9a9385; font-size: .95rem; }

.tabs { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 18px; padding-bottom: 6px; }
.tab { background: rgba(11,15,25,.72); color: #ece8e0; border: 1px solid rgba(255,122,0,.15); border-radius: 999px; padding: 8px 16px; font: inherit; font-size: .9rem; cursor: pointer; }
.tab.on { background: #ff7a00; color: #07090e; border-color: #ff7a00; font-weight: 600; }

main h2 { font-size: 1.2rem; color: #ff7a00; margin: 24px 0 14px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.card { background: rgba(11,15,25,.72); border: 1px solid rgba(255,122,0,.15); border-radius: 16px; padding: 18px; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.card-title { font-weight: 700; color: #fff; margin-bottom: 10px; }
.row { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px solid rgba(255,255,255,.05); color: #9a9385; font-size: .92rem; }
.row b { color: #ece8e0; font-weight: 600; }
.empty { margin-top: 10px; font-size: .8rem; color: #9a9385; }

.list { display: flex; flex-direction: column; gap: 10px; max-width: 520px; }
.bn { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: rgba(11,15,25,.72); border: 1px solid rgba(255,122,0,.15); border-radius: 12px; padding: 12px 16px; }
.bn small { display: block; color: #9a9385; font-size: .8rem; }
.bn-toggle { position: relative; flex-shrink: 0; cursor: pointer; }
.bn-toggle input { position: absolute; opacity: 0; width: 44px; height: 24px; margin: 0; cursor: pointer; }
.bn-toggle input:checked + .sw { background: #22c55e; }
.bn-toggle input:checked + .sw::after { transform: translateX(20px); }
.bn-toggle input:focus-visible + .sw { outline: 2px solid #ff7a00; outline-offset: 2px; }
.bn-status { margin-top: 14px; font-size: .85rem; color: #9a9385; min-height: 1.4em; }
.sw { width: 44px; height: 24px; border-radius: 24px; background: rgba(255,255,255,.12); position: relative; flex-shrink: 0; }
.sw::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s; }

.js .pane { display: none; }
.js .pane.on { display: block; }

footer { border-top-color: rgba(255,122,0,.15); color: #9a9385; }
footer a { color: #ff7a00; }

.soll { width: 100%; margin-top: 10px; accent-color: #ff7a00; }
.dial { color: #ff7a00 !important; }

.akku { max-width: 34rem; }
.akku svg { width: 100%; height: auto; display: block; }
.akku .card h2 { font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: #9a9385; margin: 0 0 6px; }
.akku .section { font-size: .8rem; color: #9a9385; text-transform: uppercase; letter-spacing: .08em; margin: 22px 0 10px; }
.akku .meta { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 6px; }
.akku .pct { font-size: 2.4rem; font-weight: 700; line-height: 1.1; color: #ece8e0; }
.akku .state { color: #9a9385; font-size: 1rem; }
.akku .body { fill: none; stroke: #c9ced6; stroke-width: 4; }
.akku .level { fill: #22c55e; }
.akku .mid .level { fill: #ff7a00; }
.akku .low .level { fill: #ef4444; }
.akku .shell { fill: #c9ced6; }
.akku .slot { fill: #1b2230; }
.akku .cable { stroke: #c9ced6; stroke-width: 6; stroke-linecap: round; fill: none; }
.akku .plug { transition: transform .5s ease, opacity .5s ease; }
.akku .off .plug { opacity: .35; }
.akku .bolt { display: none; fill: #07090e; }
.akku .on .bolt { display: block; }
.akku .on .level { animation: akkupulse 2.4s ease-in-out infinite; }
@keyframes akkupulse { 50% { opacity: .6; } }
@media (prefers-reduced-motion: reduce) { .akku .on .level { animation: none; } .akku .plug { transition: none; } }

.akku .level { transition: width .5s ease, fill .5s ease; }
.dbtns { display: flex; flex-wrap: wrap; gap: 8px; }
.dbtn { background: rgba(11,15,25,.72); color: #ece8e0; border: 1px solid rgba(255,122,0,.15); border-radius: 999px; padding: 8px 16px; font: inherit; font-size: .9rem; cursor: pointer; }
.dbtn:hover { border-color: #ff7a00; }
