/* Depot – neue Oberfläche, von Grund auf gebaut (Stil F: ruhig, kühles Grau / Schwarz, große Titel, flache Gruppen).
   Aufbau: Token · Grundlagen · Hülle (Handy: Leiste unten, PC: Seitenleiste) · Kopf · Gruppe und Zeile · Zahl und Balken · Befund ·
   Knöpfe und Felder · Blatt · Anmeldung. Jede Regel steht einmal; Farben nur als Token; nichts hängt an Klassen der alten Oberfläche. */
@import url("schrift.css");

/* ---------- Token ---------- */
:root {
  color-scheme: light;
  --grund: #F2F2F6; --flaeche: #FFFFFF; --feld: #E8E8EE; --linie: #E1E1E6; --strich: #C9C9CE;
  --text: #111111; --text2: #3C3C43; --leise: #6A6A70;
  --akzent: #111111; --auf-akzent: #FFFFFF; --blau: #2F6FE0;
  --rot: #C4242A; --rot-hell: #FBE3E1; --gruen: #1F7A4A; --gelb: #A85A00; --gelb-hell: #FFF1DC;
  --d1: #2F6FE0; --d2: #8AA6D8; --d3: #B6C5E0; --d4: #D6DDED; --drest: #D9D9DF;
  --hinten: rgba(10, 10, 20, .4);
  --hoehe: 0 1px 2px rgba(20, 20, 40, .05), 0 10px 22px -12px rgba(20, 20, 40, .22);
  --hoehe-hoch: 0 2px 6px rgba(20, 20, 40, .08), 0 18px 36px -14px rgba(20, 20, 40, .34);
  --glas: color-mix(in srgb, var(--flaeche) 90%, transparent);
  --leiste-h: 86px; --sp: 0px;
  --r: 14px; --r-k: 12px; --r-f: 10px;
  --schrift: Roboto, system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-thema="hell"]) {
    color-scheme: dark;
    --grund: #000000; --flaeche: #1C1C1E; --feld: #2C2C2E; --linie: #2C2C2E; --strich: #3A3A3E;
    --text: #FFFFFF; --text2: #C7C7CC; --leise: #9A9AA0;
    --akzent: #FFFFFF; --auf-akzent: #000000; --blau: #5B9BFF;
    --rot: #FF6B6B; --rot-hell: rgba(255, 107, 107, .18); --gruen: #52C685; --gelb: #F0B04A; --gelb-hell: rgba(240, 176, 74, .16);
    --d1: #5B9BFF; --d2: #3F6AB0; --d3: #2F4D80; --d4: #26364F; --drest: #3A3A3E;
    --hinten: rgba(0, 0, 0, .6);
    --hoehe: inset 0 1px 0 rgba(255, 255, 255, .06), 0 12px 24px -14px rgba(0, 0, 0, .95);
    --hoehe-hoch: inset 0 1px 0 rgba(255, 255, 255, .08), 0 20px 40px -14px rgba(0, 0, 0, .95);
  }
}
:root[data-thema="dunkel"] {
  color-scheme: dark;
  --grund: #000000; --flaeche: #1C1C1E; --feld: #2C2C2E; --linie: #2C2C2E; --strich: #3A3A3E;
  --text: #FFFFFF; --text2: #C7C7CC; --leise: #9A9AA0;
  --akzent: #FFFFFF; --auf-akzent: #000000; --blau: #5B9BFF;
  --rot: #FF6B6B; --rot-hell: rgba(255, 107, 107, .18); --gruen: #52C685; --gelb: #F0B04A; --gelb-hell: rgba(240, 176, 74, .16);
  --d1: #5B9BFF; --d2: #3F6AB0; --d3: #2F4D80; --d4: #26364F; --drest: #3A3A3E;
  --hinten: rgba(0, 0, 0, .6);
  --hoehe: inset 0 1px 0 rgba(255, 255, 255, .06), 0 12px 24px -14px rgba(0, 0, 0, .95);
  --hoehe-hoch: inset 0 1px 0 rgba(255, 255, 255, .08), 0 20px 40px -14px rgba(0, 0, 0, .95);
}

/* ---------- Grundlagen ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--grund); color: var(--text); font: 16px/1.45 var(--schrift); font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--blau); outline-offset: 2px; }
#wurzel { height: 100dvh; }

/* ---------- Hülle: Handy = Inhalt + Leiste unten, PC = Seitenleiste + Inhalt ---------- */
.huelle { height: 100dvh; display: grid; grid-template-rows: minmax(0, 1fr); grid-template-areas: "inhalt"; }
.inhalt { grid-area: inhalt; overflow-y: auto; overscroll-behavior: contain; padding: 0 14px calc(var(--leiste-h) + var(--sp) + 14px + env(safe-area-inset-bottom)); }
.leiste { position: fixed; z-index: 20; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(var(--reiter, 5), minmax(0, 1fr)); padding: 5px;
  border-radius: 24px; background: var(--glas); -webkit-backdrop-filter: blur(24px) saturate(1.5); backdrop-filter: blur(24px) saturate(1.5); box-shadow: var(--hoehe-hoch); }
.leiste .marke, .leiste .fuss { display: none; }
.leiste a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 50px; border-radius: 19px;
  color: var(--leise); font-size: 12px; font-weight: 500; }
.leiste a svg { display: block; }
.leiste a[aria-current="page"] { color: var(--text); font-weight: 700; background: color-mix(in srgb, var(--text) 9%, transparent); }
.leiste a:active { background: var(--feld); }
@media (min-width: 900px) {
  .huelle { grid-template-rows: none; grid-template-columns: 248px minmax(0, 1fr); grid-template-areas: "leiste inhalt"; }
  .leiste { grid-area: leiste; position: static; display: flex; flex-direction: column; gap: 2px; padding: 20px 14px; border-radius: 0; border-right: 1px solid var(--linie); background: var(--grund);
    -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; overflow-y: auto; }
  .leiste .marke { display: flex; align-items: center; gap: 10px; padding: 2px 8px 18px; font-weight: 700; font-size: 17px; }
  .leiste .marke img { width: 26px; height: 26px; border-radius: 7px; }
  .leiste .fuss { display: block; margin-top: auto; padding: 12px 10px 0; color: var(--leise); font-size: 12.5px; line-height: 1.5; }
  .leiste a { flex-direction: row; justify-content: flex-start; gap: 12px; min-height: 42px; padding: 0 12px; font-size: 15px; }
  .leiste a[aria-current="page"] { background: var(--feld); }
  .inhalt { padding: 0 40px 40px; }
  .seite { max-width: 880px; margin: 0 auto; }
}

/* ---------- Kopf: großer Titel links, darunter eine Zeile ---------- */
.kopf { padding: 14px 4px 2px; }
.kopf h1 { margin: 0; font-size: 28px; line-height: 1.12; font-weight: 700; letter-spacing: -.02em; }
.kopf p { margin: 2px 0 0; color: var(--leise); font-size: 14px; }

/* ---------- Gruppe und Zeile: eine Gestalt für Listen, Einstellungen, Dateien ---------- */
.gruppe { margin-top: 14px; }
.gruppe > h2 { margin: 0 4px 5px 14px; font-size: 12.5px; font-weight: 600; color: var(--leise); letter-spacing: .01em; }
.liste { background: var(--flaeche); border-radius: var(--r); overflow: hidden; box-shadow: var(--hoehe); }
.liste.innen { padding: 14px; }
.zeile { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 46px; padding: 7px 14px; border: 0; border-top: 1px solid var(--linie);
  background: transparent; text-align: left; font-size: 15.5px; }
.zeile:first-child { border-top: 0; }
a.zeile:active, button.zeile:active { background: var(--feld); }
.zeile .text { flex: 1; min-width: 0; }
.zeile .text b { display: block; font-weight: 500; }
.zeile .text small { display: block; margin-top: 0; color: var(--leise); font-size: 12.5px; overflow-wrap: anywhere; }
.zeile .wert { flex: none; max-width: 48%; color: var(--leise); font-size: 14.5px; text-align: right; }
.zeile .wert.ok { color: var(--gruen); }
.zeile .wert.warn { color: var(--gelb); }
.zeile .wert.neg { color: var(--rot); font-weight: 500; }
.zeile .pfeil { color: var(--leise); display: grid; }

/* ---------- Zahl und Balken ---------- */
.zahl { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.zahl strong { font-size: 28px; line-height: 1; font-weight: 700; letter-spacing: -.02em; }
.zahl span { color: var(--leise); font-size: 14px; }
.balken { display: flex; gap: 2px; height: 10px; margin: 10px 0 10px; border-radius: 5px; overflow: hidden; background: var(--feld); }
.balken i { display: block; height: 100%; min-width: 2px; }
.fortschritt { margin: 12px 14px 4px; display: grid; gap: 6px; }
.fortschritt-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.fortschritt-kopf span { font-variant-numeric: tabular-nums; color: var(--leise); }
.fortschritt-balken { height: 6px; border-radius: 3px; overflow: hidden; background: var(--feld); }
.fortschritt-balken i { display: block; width: 100%; height: 100%; background: var(--blau); transform-origin: left; transition: transform .6s linear; }
.fortschritt small { color: var(--leise); min-height: 1.3em; }
.legende { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--leise); font-size: 13px; }
.legende i { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 2px; }

/* ---------- Befund: ein Hinweis, der dich braucht ---------- */
.befund { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 12px 14px; border: 0; border-radius: var(--r); background: var(--rot-hell); width: 100%; text-align: left; }
.befund.gelb { background: var(--gelb-hell); }
.befund .text { flex: 1; min-width: 0; }
.kartelink { display: block; color: inherit; }
.kartelink:active { filter: brightness(.96); }
.sammel { margin-top: 12px; }
.sammel .befund { margin-top: 0; padding: 10px 12px 10px 14px; }
.sammel .befund small { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; overflow: hidden; font-size: 13px; }
.sammel .liste { margin-top: 6px; }
.pfeil.offen { transform: rotate(90deg); }
.hinweise { display: grid; gap: 6px; margin-top: 12px; }
.hinweise .befund { margin-top: 0; padding: 9px 12px 9px 14px; }
.hinweise .befund b { font-size: 15px; }
.hinweise .befund small { -webkit-line-clamp: 1; font-size: 13px; }
.hinweise .weitere { padding: 4px 14px; color: var(--leise); font-size: 13.5px; }
.befund small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.befund b { display: block; font-size: 15.5px; font-weight: 600; color: var(--rot); }
.befund.gelb b { color: var(--gelb); }
.befund small { display: block; margin-top: 1px; color: var(--text2); font-size: 13.5px; overflow-wrap: anywhere; }
.befund .pfeil { color: var(--leise); display: grid; }

/* ---------- Knöpfe, Felder, Texte ---------- */
.knopf { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border: 1px solid var(--strich); border-radius: var(--r-k);
  background: var(--flaeche); color: var(--text); font-weight: 600; white-space: nowrap; }
.knopf.haupt { background: var(--akzent); color: var(--auf-akzent); border-color: transparent; }
.knopf.voll { width: 100%; }
.knopf:disabled { opacity: .5; cursor: default; }
.knopf:active:not(:disabled) { filter: brightness(.94); }
.feld { display: block; width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid var(--strich); border-radius: var(--r-f); background: var(--grund); font-size: 16px; }
label.beschriftung { display: block; margin: 0 0 6px; font-size: 14px; font-weight: 500; }
.fehlertext { min-height: 20px; margin: 10px 0 0; color: var(--rot); font-size: 14px; }
.hinweistext { margin: 10px 16px 0; color: var(--leise); font-size: 13px; line-height: 1.45; }
.leer { padding: 36px 16px; text-align: center; color: var(--leise); }

/* ---------- Anmeldung ---------- */
.anmeldung { min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; }
.anmeldung .karte { width: 100%; max-width: 400px; }
.anmeldung .marke { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 22px; text-align: center; }
.anmeldung .marke img { width: 64px; height: 64px; border-radius: 16px; }
.anmeldung .marke h1 { margin: 0; font-size: 30px; letter-spacing: -.02em; }
.anmeldung .marke p { margin: 0; color: var(--leise); font-size: 14px; }
.anmeldung .feldgruppe { display: grid; gap: 14px; }
.anmeldung .wechsel { display: block; margin: 14px auto 0; padding: 8px 12px; border: 0; background: none; color: var(--blau); font-size: 15px; }

/* ---------- Dateizeilen, Suche, Aktionen ---------- */
.zeile, .karte-datei { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.zeile .antippen { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; padding: 0; border: 0; background: none; text-align: left; color: inherit; }
.zeile .vorn { display: grid; color: var(--leise); flex: none; }
.zeile .mehr { flex: none; display: grid; place-items: center; width: 44px; height: 44px; margin: -8px -12px -8px 0; border: 0; background: none; color: var(--leise); border-radius: var(--r-f); }
.zeile .mehr:active { background: var(--feld); }
.suchzeile { margin-top: 12px; }
.feld.suche { background: var(--feld); border-color: transparent; }
.zurueck { display: inline-flex; align-items: center; gap: 2px; margin: 14px 0 0 -4px; padding: 6px 8px; color: var(--blau); font-size: 16px; border-radius: var(--r-f); }
.zurueck svg { display: block; }
/* Aktionsplatz: Hauptaktion und Auswahlleiste liegen auf jeder Seite an derselben Stelle – fest über der Leiste, gleiche Breite, Knöpfe gleich breit */
.aktion, .auswahlleiste { position: fixed; z-index: 15; left: 10px; right: 10px; bottom: calc(var(--leiste-h) + var(--sp) + env(safe-area-inset-bottom)); max-width: 560px; margin: 0 auto;
  display: flex; justify-content: center; gap: 8px; pointer-events: none; }
.aktion > *, .auswahlleiste > * { pointer-events: auto; flex: 1 1 0; min-width: 0; min-height: 46px; padding: 0 12px; box-shadow: var(--hoehe-hoch); }
.aktion > * { max-width: 220px; }
.seite:has(.aktion, .auswahlleiste) { padding-bottom: 76px; }
.knopfreihe { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; margin-top: 16px; }
.knopf.gefahr { background: var(--rot); color: #fff; }

/* ---------- Kacheln: Zustände auf einen Blick, zwei je Reihe ---------- */
.kacheln { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.kachel { display: flex; flex-direction: column; justify-content: space-between; gap: 2px; min-height: 70px; padding: 10px 12px; border: 0; border-radius: var(--r); background: var(--flaeche);
  box-shadow: var(--hoehe); text-align: left; color: inherit; }
a.kachel:active, button.kachel:active { filter: brightness(.96); }
.kachel small { color: var(--leise); font-size: 12.5px; }
.kachel b { font-size: 18px; font-weight: 650; letter-spacing: -.01em; overflow-wrap: anywhere; }
.kachel b.ok { color: var(--gruen); }
.kachel b.warn { color: var(--gelb); }
.kachel b.neg { color: var(--rot); }
.kachel span { color: var(--leise); font-size: 12.5px; }

/* ---------- Werkzeugleiste (Suchen, Auswählen, Sortieren, Ansicht) ---------- */
.werkzeug { display: flex; gap: 8px; align-items: center; margin-top: 10px; }
.werkzeug .feld.suche { flex: 1; min-width: 0; min-height: 40px; padding: 8px 12px; }
.chip { flex: 1 1 0; min-width: 0; max-width: 150px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; padding: 0 12px; border: 0; border-radius: var(--r-k);
  background: var(--flaeche); color: var(--text); font-size: 14.5px; font-weight: 500; box-shadow: var(--hoehe); }
.chip[aria-pressed="true"] { background: var(--akzent); color: var(--auf-akzent); }
.chip svg { display: block; }

/* ---------- Dateien: Typkacheln, Vorschaubilder, Raster, Auswahl ---------- */
.kachelicon { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; overflow: hidden; background: var(--feld); color: var(--leise);
  font-size: 10.5px; font-weight: 700; letter-spacing: .02em; }
.kachelicon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kachelicon.ordner { background: color-mix(in srgb, var(--blau) 16%, var(--flaeche)); color: var(--blau); }
.kachelicon.pdf { background: color-mix(in srgb, var(--rot) 14%, var(--flaeche)); color: var(--rot); }
.kachelicon.medium { background: color-mix(in srgb, var(--gelb) 16%, var(--flaeche)); color: var(--gelb); }
.kachelicon.text { background: color-mix(in srgb, var(--gruen) 14%, var(--flaeche)); color: var(--gruen); }
.haken { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border: 1.5px solid var(--strich); border-radius: 50%; color: transparent; }
.zeile.gewaehlt { background: color-mix(in srgb, var(--blau) 10%, transparent); }
.zeile.gewaehlt .haken, .karte-datei.gewaehlt .haken { background: var(--blau); border-color: var(--blau); color: #fff; }
.raster { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.karte-datei { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 0 0 8px; border: 0; border-radius: var(--r-k); overflow: hidden; background: var(--flaeche); box-shadow: var(--hoehe); text-align: left; color: inherit; }
.karte-datei .kachelicon { width: 100%; height: auto; aspect-ratio: 1; border-radius: 0; font-size: 13px; }
.karte-datei b { padding: 0 8px; font-size: 12.5px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.karte-datei .haken { position: absolute; top: 6px; right: 6px; background: color-mix(in srgb, var(--flaeche) 70%, transparent); }
.karte-datei.gewaehlt { outline: 2px solid var(--blau); outline-offset: -2px; }
.auswahlleiste .knopf { font-size: 14.5px; padding: 0 8px; }
@media (min-width: 900px) { :root { --leiste-h: 20px; } .aktion, .auswahlleiste { left: 288px; right: 40px; } .raster { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

/* ---------- Blatt und Meldung ---------- */
.hinten { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; background: var(--hinten); }
.blatt { width: 100%; max-width: 560px; max-height: 88dvh; overflow-y: auto; padding: 8px 16px calc(16px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--flaeche) 86%, transparent); -webkit-backdrop-filter: blur(28px) saturate(1.5); backdrop-filter: blur(28px) saturate(1.5); border-radius: 22px 22px 0 0; box-shadow: var(--hoehe-hoch); }
.blatt .griff { width: 36px; height: 4px; margin: 4px auto 12px; border-radius: 2px; background: var(--strich); }
.blatt-titel { margin: 0 0 4px; font-size: 18px; font-weight: 700; overflow-wrap: anywhere; }
.blatt-text { margin: 4px 0 8px; color: var(--leise); font-size: 15px; }
.blatt .liste { margin: 12px 0; background: var(--grund); }
.blatt .feld { margin-top: 12px; background: var(--grund); }
.blatt .knopf.voll { margin-top: 4px; }
.zeile.neg .text b { color: var(--rot); }
@media (min-width: 900px) { .hinten { align-items: center; } .blatt { border-radius: 20px; } }
.meldung { position: fixed; left: 50%; bottom: calc(var(--leiste-h) + var(--sp) + 74px + env(safe-area-inset-bottom)); z-index: 60; max-width: min(92vw, 420px); padding: 11px 18px; border-radius: var(--r-k);
  background: var(--akzent); color: var(--auf-akzent); font-size: 15px; transform: translate(-50%, 10px); opacity: 0; pointer-events: none; transition: opacity .18s, transform .18s; }
@media (min-width: 900px) { .meldung { bottom: 28px; } }
.meldung.da { opacity: 1; transform: translate(-50%, 0); }
.vorschau img, .vorschau video { display: block; max-width: 100%; max-height: 60dvh; margin: 8px auto; border-radius: var(--r-f); }
.vorschau audio { width: 100%; margin: 8px 0; }
.textvorschau { margin: 8px 0 0; padding: 12px; max-height: 50dvh; overflow: auto; border-radius: var(--r-f); background: var(--grund); font: 13px/1.5 ui-monospace, Menlo, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }

/* ---------- Bewegung: leise und kurz, nur transform und opacity ---------- */
@keyframes hoch { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes ein { from { opacity: 0; } to { opacity: 1; } }
@keyframes blatt-hoch { from { transform: translateY(28px); } to { transform: none; } }
.seite.ein > div > * { animation: ein .22s ease-out backwards; }
.seite.ein > div > :nth-child(2) { animation-delay: 30ms; }
.seite.ein > div > :nth-child(3) { animation-delay: 60ms; }
.seite.ein > div > :nth-child(4) { animation-delay: 90ms; }
.seite.ein > div > :nth-child(5) { animation-delay: 120ms; }
.seite.ein > div > :nth-child(n+6) { animation-delay: 150ms; }
.seite.ein > div > .aktion, .seite.ein > div > .auswahlleiste { animation: none; }
.hinten { animation: ein .18s ease-out backwards; }
.blatt { animation: blatt-hoch .26s cubic-bezier(.2, .8, .2, 1) backwards; }
.sammel .liste { animation: hoch .22s cubic-bezier(.2, .8, .2, 1) backwards; }
.pfeil { transition: transform .2s cubic-bezier(.2, .8, .2, 1); }
.zeile, .kachel, .karte-datei, .knopf, .chip, .befund, .leiste a { transition: background-color .15s, filter .12s; }
.kachel:active, .karte-datei:active, .befund:active, .knopf:active:not(:disabled), .chip:active { filter: brightness(.92); }
.leiste a:active { background: var(--feld); }
.haken { transition: background-color .15s, border-color .15s, color .15s; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- Medienspieler ---------- */
body.hat-spieler { --sp: 66px; }
.spieler-medium { display: none; width: 100%; max-height: 38dvh; border-radius: var(--r); background: #000; }
.spieler-voll.video .spieler-medium { display: block; }
.spieler-mini { position: fixed; z-index: 19; left: 10px; right: 10px; bottom: calc(var(--leiste-h) + env(safe-area-inset-bottom)); max-width: 560px; margin: 0 auto; display: flex; align-items: center; gap: 2px; padding: 6px 6px 6px 8px;
  border-radius: 20px; background: var(--glas); -webkit-backdrop-filter: blur(24px) saturate(1.5); backdrop-filter: blur(24px) saturate(1.5); box-shadow: var(--hoehe-hoch); overflow: hidden; }
.spieler-mini[hidden] { display: none; }
.mini-text { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 2px 4px; border: 0; background: none; text-align: left; color: inherit; }
.mini-ton { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--feld); color: var(--leise); }
.mini-titel { min-width: 0; display: grid; }
.mini-titel b { font-size: 14.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-titel small { color: var(--leise); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.spieler-mini button:not(.mini-text) { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 14px; background: none; color: var(--text); }
.spieler-mini button:not(.mini-text):active { background: var(--feld); }
.mini-zu { color: var(--leise) !important; }
.mini-fort { position: absolute; left: 14px; right: 14px; bottom: 0; height: 2px; background: color-mix(in srgb, var(--text) 10%, transparent); border-radius: 1px; }
.mini-fort i { display: block; height: 100%; width: 0; background: var(--blau); border-radius: 1px; }
@media (min-width: 900px) { .spieler-mini { left: 288px; right: 40px; } }

.spieler-voll { position: fixed; z-index: 40; inset: 0; display: flex; flex-direction: column; gap: 14px; padding: calc(10px + env(safe-area-inset-top)) 18px calc(18px + env(safe-area-inset-bottom)); background: var(--grund); overflow-y: auto;
  transform: translateY(100%); transition: transform .26s cubic-bezier(.2, .8, .2, 1); }
.spieler-voll[hidden] { display: none; }
.spieler-voll.offen { transform: none; }
.spieler-voll > * { width: 100%; max-width: 520px; margin-left: auto; margin-right: auto; }
.voll-kopf { display: flex; align-items: center; justify-content: space-between; }
.voll-wo { color: var(--leise); font-size: 14px; }
.rund { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--flaeche); color: var(--text); box-shadow: var(--hoehe); }
.voll-buehne { flex: 1; min-height: 160px; display: grid; place-items: center; }
.voll-buehne .cover { display: grid; place-items: center; width: min(68vw, 300px); aspect-ratio: 1; border-radius: 28px; background: var(--flaeche); color: var(--leise); box-shadow: var(--hoehe-hoch); }
.spieler-voll.video .cover { display: none; }
.voll-titel { text-align: left; }
.voll-titel b { display: block; font-size: 22px; font-weight: 700; letter-spacing: -.01em; overflow-wrap: anywhere; }
.voll-titel small { color: var(--leise); font-size: 14.5px; }
.regler { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; margin: 0; background: transparent; --fuell: 0%; }
.regler::-webkit-slider-runnable-track { height: 5px; border-radius: 3px; background: linear-gradient(to right, var(--text) var(--fuell), color-mix(in srgb, var(--text) 16%, transparent) var(--fuell)); }
.regler::-moz-range-track { height: 5px; border-radius: 3px; background: color-mix(in srgb, var(--text) 16%, transparent); }
.regler::-moz-range-progress { height: 5px; border-radius: 3px; background: var(--text); }
.regler::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -6.5px; border-radius: 50%; background: var(--text); border: 0; }
.regler::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--text); border: 0; }
.zeiten { display: flex; justify-content: space-between; margin-top: 2px; color: var(--leise); font-size: 13px; }
.voll-tasten { display: flex; align-items: center; justify-content: space-between; }
.taste { display: grid; place-items: center; width: 56px; height: 56px; border: 0; border-radius: 50%; background: none; color: var(--text); }
.taste:active { background: var(--feld); }
.taste.gross { width: 72px; height: 72px; background: var(--akzent); color: var(--auf-akzent); box-shadow: var(--hoehe-hoch); }
.taste.gross:active { filter: brightness(.9); background: var(--akzent); }
.voll-extras { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.voll-extras .chip { min-width: 52px; }
.e-wiederholen[data-art="eins"]::after { content: "1"; font-size: 11px; font-weight: 700; }
.voll-liste { display: none; flex: 1; overflow-y: auto; border-radius: var(--r); background: var(--flaeche); box-shadow: var(--hoehe); }
.spieler-voll.zeigt-liste .voll-liste { display: block; }
.spieler-voll.zeigt-liste .voll-buehne, .spieler-voll.zeigt-liste .voll-titel { display: none; }
.lz { display: flex; align-items: center; border-top: 1px solid var(--linie); }
.lz:first-child { border-top: 0; }
.lz.jetzt { background: color-mix(in srgb, var(--blau) 10%, transparent); }
.lz-text { flex: 1; min-width: 0; display: grid; gap: 1px; padding: 10px 14px; border: 0; background: none; text-align: left; color: inherit; }
.lz-text b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lz-text small { color: var(--leise); font-size: 12.5px; }
.lz-weg { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: none; color: var(--leise); }
@media (prefers-reduced-motion: reduce) { .spieler-voll { transition: none; } }

/* ---------- Formular im Blatt (Apps verwalten, Rechte der Personen) ---------- */
.formular .formzeile { display: grid; gap: 4px; margin-top: 12px; }
.formzeile > b { font-size: 14px; font-weight: 500; }
.formzeile > small, .schalterzeile small { color: var(--leise); font-size: 12.5px; line-height: 1.35; }
.formzeile[hidden] { display: none; }
.formzeile .feld { margin-top: 0; }
.formzeile select.feld { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--leise) 50%), linear-gradient(135deg, var(--leise) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.formular .schalterzeile { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.schalterzeile > span { display: grid; gap: 2px; min-width: 0; }
.schalterzeile > span > b { font-size: 15px; font-weight: 500; }
.formular .haken { flex: none; width: 24px; height: 24px; accent-color: var(--akzent); }
.formular textarea.feld { resize: vertical; min-height: 92px; }
.formular input[type="file"].feld { padding: 10px 12px; }
/* ---------- Laptop: Diagramme, Messwerte, Felder im Blatt (Statistik, Speicher, Dienst hinzufügen) ---------- */
.diagramm svg { display: block; width: 100%; height: 72px; }
.diagramm rect { fill: var(--d1); }
.diagramm-achse { display: grid; margin-top: 4px; color: var(--leise); font-size: 11.5px; text-align: center; }
.mw-rahmen { display: flex; gap: 8px; align-items: stretch; }
.mw-y { display: flex; flex-direction: column; justify-content: space-between; min-width: 52px; color: var(--leise); font-size: 11.5px; text-align: right; }
.mw-bild { position: relative; flex: 1; min-width: 0; touch-action: pan-y; }
.mw-bild svg { display: block; width: 100%; height: 150px; }
.mw-gitter { stroke: var(--strich); stroke-width: 1; vector-effect: non-scaling-stroke; }
.mw-linie, .mw-spitze { fill: none; stroke: var(--d1); stroke-width: 2; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.mw-linie.b { stroke: var(--d2); }
.mw-spitze { stroke: var(--d2); stroke-width: 1.5; stroke-dasharray: 4 3; }
.mw-marke { stroke: var(--leise); stroke-width: 1; vector-effect: non-scaling-stroke; }
.mw-achse { display: flex; justify-content: space-between; margin: 4px 0 0 60px; color: var(--leise); font-size: 11.5px; }
.mw-wert { margin: 0 0 8px; min-height: 1.5em; }
/* Tabelle (Leistung: langsame Anfragen): feste Spalten, Zahlen rechtsbündig, der Weg bricht statt die Breite zu sprengen */
.tabelle { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 13.5px; }
.tabelle th { padding: 9px 6px 7px; color: var(--leise); font-size: 12px; font-weight: 600; text-align: left; }
.tabelle td { padding: 7px 6px; border-top: 1px solid var(--linie); vertical-align: top; }
.tabelle th:first-child, .tabelle td:first-child { width: 70px; padding-left: 14px; white-space: nowrap; }
.tabelle th:nth-child(3), .tabelle td:nth-child(3) { width: 52px; }
.tabelle th:last-child, .tabelle td:last-child { width: 50px; padding-right: 14px; }
.tabelle .rechts { text-align: right; white-space: nowrap; }
.tabelle .weg { overflow-wrap: break-word; }
.tabelle .weg small { display: block; color: var(--leise); font-size: 11.5px; }
.tabelle .neg { color: var(--rot); font-weight: 500; }
.feldname { display: block; margin: 14px 0 0; color: var(--leise); font-size: 13.5px; }
select.feld { appearance: none; -webkit-appearance: none; background: var(--grund); }
.blatt .feldname + .feld { margin-top: 6px; }
.zeile .wert { overflow-wrap: anywhere; }
/* ---------- Tresor und GitHub (Zugang → Entwicklung) ---------- */
.feldname { display: block; margin: 14px 2px 6px; color: var(--leise); font-size: 13px; }
.feld.mono, textarea.feld { font-family: ui-monospace, Consolas, monospace; font-size: 15px; }
textarea.feld { resize: vertical; min-height: 110px; }
.geheimnisse { display: grid; gap: 14px; margin-top: 8px; }
.geheimnis { display: grid; grid-template-columns: 1fr 104px; gap: 8px; align-items: start; }
.geheimnis .feld { margin-top: 0; }
.geheimnis select.feld { grid-column: 1 / -1; grid-row: 2; }
.geheimnis .knopf { min-height: 46px; }
.schritte { margin: 0; padding: 12px 16px 12px 36px; color: var(--leise); font-size: 14px; line-height: 1.5; }
.gruppe .liste > a.zeile[target] { text-decoration: none; }
/* ---------- Fingerabdruck und Anmeldung ---------- */
.anmeldung .oder { margin: 12px 0 0; text-align: center; color: var(--leise); font-size: 14px; }
.anmeldung .oder[hidden], .anmeldung .knopf[hidden], .anmeldung .wechsel[hidden] { display: none; }
.anmeldung .karte > .knopf { margin-bottom: 4px; }
.blatt .feldgruppe { display: grid; gap: 12px; }

/* ---------- Testzugang: feste Leiste über der Reiterleiste ---------- */
.testleiste { position: fixed; z-index: 16; left: 10px; right: 10px; bottom: calc(var(--leiste-h) + var(--sp) + env(safe-area-inset-bottom)); max-width: 560px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 6px 8px 6px 16px; border-radius: var(--r-k); background: var(--gelb-hell); color: var(--gelb); box-shadow: var(--hoehe-hoch); }
.testleiste span { font-size: 14px; font-weight: 500; min-width: 0; }
.testleiste button { flex: none; min-height: 40px; padding: 0 16px; }
.anmeldung .testleiste { position: static; margin: 16px 0 0; box-shadow: none; }
@media (min-width: 900px) { .testleiste { left: 288px; right: 40px; } }