/* PDF Editor · Studio-Look (20.11.2026)
   Ruhig: warmgrauer oder fast schwarzer Grund, Karten ohne Glas, schwarze Pillen, Blau nur als Akzent.
   Hell und Dunkel über data-thema am Wurzelelement (gesetzt von studio.js).
   Eigene Schicht über app.css. Zum Zurückschalten die Zeilen mit studio.css und studio.js in index.html entfernen. */

html:root {
  color-scheme: dark;
  --grund: #0D0D0E; --flaeche: #18181A;
  --s-karte: #18181A; --s-karte2: #1F1F22; --s-mulde: #232326;
  --s-pille: #F4F2EE; --s-aufpille: #141414;
  --s-rand: rgba(255,255,255,.07);
  --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);
  --s-schleier: rgba(0,0,0,.5);
  --verlauf: #F4F2EE;
  --himmel: #67C7F4; --violett: #67C7F4;
  --text: #EEEDEA; --gedaempft: #BDB9B2; --leise: #A19D96;
  --ok: #8FE3B0; --warn: #F5C26B; --fehler: #FF8A8A;
}
html:root[data-thema="hell"] {
  color-scheme: light;
  --grund: #EAE8E3; --flaeche: #FFFFFF;
  --s-karte: #FFFFFF; --s-karte2: #F5F4F1; --s-mulde: #EFEDE9;
  --s-pille: #141414; --s-aufpille: #FFFFFF;
  --s-rand: rgba(20,18,16,.08);
  --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);
  --s-schleier: rgba(20,18,16,.3);
  --verlauf: #141414;
  --himmel: #0E86B8; --violett: #0E86B8;
  --text: #141414; --gedaempft: #4F4C47; --leise: #6A665F;
  --ok: #1F7A45; --warn: #8A5A00; --fehler: #B3261E;
}

body { background: var(--grund); transition: background-color .3s; }
.welt { 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, body.arbeit .nav, body.arbeit .leiste, body.arbeit .format { box-shadow: var(--s-hoch); }
.lq-spec { display: none; }
.marke img { filter: none; }
.marke-name { letter-spacing: -.02em; }

/* Mulden */
.chip, .segment, .karte-symbol { background: var(--s-mulde); box-shadow: none; }
.trenner { background: var(--s-rand); }
.status { background: var(--s-karte); box-shadow: var(--s-schatten); -webkit-backdrop-filter: none; backdrop-filter: none; }
.ablage-feld { background: var(--s-mulde); box-shadow: none; outline-color: color-mix(in srgb, var(--text) 22%, transparent); }
.ablage-feld:hover, .ablage-feld.drueber { outline-color: var(--himmel); background: color-mix(in srgb, var(--himmel) 8%, var(--s-mulde)); }
.ablage-symbol { background: var(--s-pille); color: var(--s-aufpille); box-shadow: none; }

/* Überschrift ohne Verlauf, Akzent nur als Farbe */
h1 .verlauf-text { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--text); }
.ueberzeile { color: var(--leise); }

/* ---------- Knöpfe ---------- */
.knopf { background: var(--s-karte2); border-color: transparent; color: var(--text); box-shadow: none; }
.knopf:hover:not(:disabled) { filter: none; background: var(--s-mulde); transform: translateY(-1px); }
.knopf.primaer { background: var(--s-pille); color: var(--s-aufpille); box-shadow: none; }
.knopf.primaer:hover:not(:disabled) { background: var(--s-pille); filter: brightness(1.12); }
.segment button[aria-pressed="true"] { background: var(--s-pille); color: var(--s-aufpille); box-shadow: none; }
.format .knopf[aria-pressed="true"] { background: var(--s-pille); color: var(--s-aufpille); }
.farbe { box-shadow: inset 0 0 0 1px var(--s-rand); }
#knopf-ocr.hinweis { color: var(--s-aufpille); background: var(--s-pille); box-shadow: 0 0 0 4px color-mix(in srgb, var(--himmel) 35%, transparent); }

/* Seiten im Arbeitsbereich: weiches Papier auf ruhigem Grund */
.seite { box-shadow: 0 1px 2px rgba(0,0,0,.12), 0 18px 44px rgba(0,0,0,.22), 0 0 0 1px var(--s-rand); }
body.arbeit .welt { filter: none; }

/* Dialog, Fortschritt, Ablage über dem Fenster */
dialog.dlg::backdrop { background: var(--s-schleier); -webkit-backdrop-filter: none; backdrop-filter: none; }
.dlg-innen input[type="password"] { background: var(--s-mulde); border-color: transparent; box-shadow: none; }
.dlg-innen input:focus { border-color: var(--himmel); box-shadow: 0 0 0 4px color-mix(in srgb, var(--himmel) 20%, transparent); }
.fortschritt { background: var(--s-mulde); box-shadow: none; }
.fortschritt i { box-shadow: none; }
.vollablage { background: var(--s-schleier); -webkit-backdrop-filter: none; backdrop-filter: none; }

/* ---------- Bewegung ---------- */
.knopf, button { transition: transform .2s cubic-bezier(.3,1.6,.5,1), background-color .25s, color .25s, filter .25s, opacity .2s; }
.knopf:active:not(:disabled), .segment button:active { transform: scale(.96); }
@media (hover: hover) {
  .karte, .schritte li { transition: transform .45s cubic-bezier(.2,.8,.2,1), box-shadow .45s; }
  .karte:hover, .schritte li:hover { transform: translateY(-3px); box-shadow: var(--s-hoch); }
}
.st-rein { animation: st-rein .7s cubic-bezier(.2,.8,.2,1) both; }
@keyframes st-rein { from { opacity: 0; transform: translateY(16px); filter: blur(5px); } to { opacity: 1; transform: none; filter: blur(0); } }
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { z-index: 2; }

/* Lautsprecher und Hell/Dunkel oben in der Leiste (studio.js) */
.st-rund { appearance: none; border: 0; flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--s-mulde); color: var(--text); cursor: pointer; }
.st-rund svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; display: block; }
@media (max-width: 640px) {
  .st-rund { width: 32px; height: 32px; }
  .nav { gap: 8px; }
  .nav .chip-schutz { display: none; }
}
@media (max-width: 400px) { body.arbeit .nav .marke-text { display: none; } }
@media (prefers-reduced-motion: reduce) { .st-rein { animation: none; } .knopf:active:not(:disabled) { transform: none; } }
