/* Geräteliste · Studio-Look (20.11.2026)
   Ruhig: warmgrauer oder fast schwarzer Grund, Karten ohne Glas, schwarze Pillen, Blau nur als Akzent.
   Eigene Schicht über stil.css, kfx-kurvenleiste.css und umbau.css.
   Zum Zurückschalten reicht es, die Zeilen mit studio.css und studio.js in index.html zu entfernen. */

html:root {
  color-scheme: dark;
  --s-grund: #0D0D0E; --s-karte: #18181A; --s-karte2: #1F1F22; --s-mulde: #232326;
  --s-pille: #F4F2EE; --s-aufpille: #141414;
  --s-schatten: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
  --s-hoch: 0 2px 4px rgba(0,0,0,.35), 0 18px 40px rgba(0,0,0,.35);
  --grund: #0D0D0E; --flaeche: #18181A;
  --text: #EEEDEA; --gedaempft: #BDB9B2; --leise: #A19D96;
  --akzent: #67C7F4; --akzent-text: #8FD6F7;
  --verlauf: #F4F2EE;
  --ok: #8FE3B0; --warn: #F5C26B; --fehler: #FF8A8A;
  --balken: #67C7F4; --gitter: rgba(255,255,255,.06); --gitter-stark: rgba(255,255,255,.12);
  --mulde: #232326; --mulde-rand: rgba(255,255,255,.07);
  --zeile: rgba(255,255,255,.03); --zeile-hover: rgba(255,255,255,.05);
  --g1: 24,24,26; --g2: 24,24,26; --g3: 24,24,26; --a1: 1; --a2: 1; --a3: 1;
  --kante1: transparent; --kante2: transparent; --kante3: transparent;
  --schatten1: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
  --schatten2: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
  --schatten3: 0 2px 4px rgba(0,0,0,.35), 0 18px 40px rgba(0,0,0,.35);
  --glanz: none; --hintergrund: #0D0D0E; --leiterbahn: transparent;
}
html:root[data-thema="hell"] {
  color-scheme: light;
  --s-grund: #EAE8E3; --s-karte: #FFFFFF; --s-karte2: #F5F4F1; --s-mulde: #EFEDE9;
  --s-pille: #141414; --s-aufpille: #FFFFFF;
  --s-schatten: 0 1px 2px rgba(20,18,16,.04), 0 8px 24px rgba(20,18,16,.05);
  --s-hoch: 0 2px 4px rgba(20,18,16,.05), 0 18px 40px rgba(20,18,16,.10);
  --grund: #EAE8E3; --flaeche: #FFFFFF;
  --text: #141414; --gedaempft: #4F4C47; --leise: #6A665F;
  --akzent: #0E86B8; --akzent-text: #064A66;
  --verlauf: #141414;
  --ok: #1F7A45; --warn: #8A5A00; --fehler: #B3261E;
  --balken: #0E86B8; --gitter: rgba(20,18,16,.07); --gitter-stark: rgba(20,18,16,.12);
  --mulde: #EFEDE9; --mulde-rand: rgba(20,18,16,.08);
  --zeile: rgba(20,18,16,.025); --zeile-hover: rgba(20,18,16,.045);
  --g1: 255,255,255; --g2: 255,255,255; --g3: 255,255,255;
  --kante1: transparent; --kante2: transparent; --kante3: transparent;
  --schatten1: 0 1px 2px rgba(20,18,16,.04), 0 8px 24px rgba(20,18,16,.05);
  --schatten2: 0 1px 2px rgba(20,18,16,.04), 0 8px 24px rgba(20,18,16,.05);
  --schatten3: 0 2px 4px rgba(20,18,16,.05), 0 18px 40px rgba(20,18,16,.10);
  --glanz: none; --hintergrund: #EAE8E3; --leiterbahn: transparent;
}

html, body { background: var(--s-grund); }
.kulisse { display: none; }

/* ---------- Karten statt Glas ---------- */
.lq-1, .lq-2, .lq-3 {
  background: var(--s-karte); border-color: transparent;
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
.lq-1, .lq-2 { box-shadow: var(--s-schatten); }
.lq-3 { box-shadow: var(--s-hoch); }
.lq-spec { display: none; }
.dialog-hinter { background: rgba(20,18,16,.32); -webkit-backdrop-filter: none; backdrop-filter: none; }
.toast, .toasts .toast { background: var(--s-pille); color: var(--s-aufpille); border-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: var(--s-hoch); }
h1 .hervor, html:root[data-thema="hell"] h1 .hervor { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--text); }

/* Mulden: Segment, Eingaben, Chips */
.segment { background: var(--s-mulde); box-shadow: none; }
.segment button[aria-pressed="true"], html:root[data-thema="hell"] .segment button[aria-pressed="true"] { background: var(--s-pille); color: var(--s-aufpille); box-shadow: none; }
select, input[type="text"], input[type="search"], input[type="password"], textarea { background-color: var(--s-mulde); border-color: transparent; box-shadow: none; }
select:focus, input:focus, textarea:focus { border-color: var(--akzent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--akzent) 18%, transparent); }
.chip { background: var(--s-mulde); box-shadow: none; }

/* ---------- Knöpfe ---------- */
.knopf, html:root[data-thema="hell"] .knopf { background: var(--s-karte2); border-color: transparent; color: var(--text); box-shadow: none; }
.knopf:hover { background: var(--s-mulde); }
.knopf.haupt, html:root[data-thema="hell"] .knopf.haupt { background: var(--s-pille); color: var(--s-aufpille); border-color: transparent; box-shadow: none; }
.knopf.haupt:hover { background: var(--s-pille); filter: brightness(1.12); }
.knopf.leise { background: transparent; }
/* Symbolkacheln, die vorher den Blauverlauf trugen: Pille mit passender Schrift */
.schritte b, .ss-ic, .ta-ic, .tb-ort i, .tb-k.ja { color: var(--s-aufpille); box-shadow: none; }
.bewerten { background: var(--s-karte2); }

/* Tabelle */
th { background: var(--s-karte); color: var(--leise); }
tbody tr.markiert td { background: color-mix(in srgb, var(--akzent) 10%, transparent); }

/* Zusatzleiste unten (markierte Geräte) */
.dock { background: var(--s-karte); box-shadow: var(--s-hoch); }

/* ---------- Seitenleiste (Kurvenleiste) ---------- */
html:root .kl {
  --kl-akzent: #67C7F4; --kl-akzent-rgb: 103, 199, 244;
  --kl-text: #EEEDEA; --kl-leise: #A19D96;
  --kl-glas-oben: #18181A; --kl-glas-unten: #18181A; --kl-grund: #18181A;
  --kl-kante: transparent; --kl-kachel: #F4F2EE; --kl-kachel-text: #141414;
  --kl-hover: rgba(255,255,255,.06); --kl-schatten: rgba(0,0,0,.35);
}
html:root[data-thema="hell"] .kl {
  --kl-akzent: #0E86B8; --kl-akzent-rgb: 14, 134, 184;
  --kl-text: #141414; --kl-leise: #6A665F;
  --kl-glas-oben: #FFFFFF; --kl-glas-unten: #FFFFFF; --kl-grund: #FFFFFF;
  --kl-kante: transparent; --kl-kachel: #141414; --kl-kachel-text: #FFFFFF;
  --kl-hover: rgba(20,18,16,.05); --kl-schatten: rgba(20,18,16,.10);
}
.kl-teil { -webkit-backdrop-filter: none; backdrop-filter: none; }
.kl-glanz { display: none; }
.kl-punkt.aktiv .kl-ic { box-shadow: none; }
.kl-wichtig .kl-ic { background: var(--kl-kachel); color: var(--kl-kachel-text); box-shadow: none; }
.kl-logo { filter: none; }

/* ---------- Bewegung ---------- */
button, .knopf { transition: transform .2s cubic-bezier(.3,1.6,.5,1), background-color .25s, color .25s, box-shadow .3s, filter .25s; }
button:active, .knopf:active { transform: scale(.96); }
@media (hover: hover) {
  .kachel, .listen-kachel { transition: transform .45s cubic-bezier(.2,.8,.2,1), box-shadow .45s; }
  .kachel:hover, .listen-kachel:hover { transform: translateY(-3px); box-shadow: var(--s-hoch); }
}
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { z-index: 2; }

/* Lautsprecher (studio.js) */
.st-ton-ic svg, .st-ton-kopf svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; display: block; }
.st-ton-kopf { display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--s-mulde); color: var(--text); cursor: pointer; }

@media (prefers-reduced-motion: reduce) { button:active, .knopf:active { transform: none; } }
