/* PI-Gestaltungssprache – gemeinsame Grundlage aller Oberflächen von PI Cloud Drive (App-Fenster, Weboberfläche,
   Anmeldeseite). Leitfaden: docs/DESIGN.md. Werte nur über Variablen; Produktfarbe Cloud Drive = Kobalt.
   Reihenfolge: 1 Token · 2 Grundlagen · 3 Rahmen · 4 Karten · 5 Schaltflächen · 6 Eingaben · 7 Tabellen ·
   8 Plaketten/Status · 9 Dialoge · 10 Info-Schaltflächen · 11 Dateistatus · 12 Handbuch · 13 Bewegung · 14 Schmal */

/* 1 · Token ------------------------------------------------------------------------------------------- */
/* Entwurf D „Kobaltglas im Serverraum“ (Dennis-Wahl 13.11.2026): bewusst dunkel – der eigene Serverraum ist die Bühne,
   Karten sind Glas mit feiner Körnung und Lichtkante. Eine helle Fassung gibt es nicht mehr (wie VaultTree). */
:root {
  /* Flächen */
  --bg: #050a16; --bg-2: #081022; --panel: #0e1730; --raised: #142042; --well: rgba(2, 6, 16, .6);
  --line: rgba(160, 195, 255, .12); --line-2: rgba(160, 195, 255, .18); --line-strong: rgba(160, 195, 255, .32);
  /* Text */
  --text: #eef3ff; --text-2: #c6d0e5; --muted: #9aa8c3; --faint: #6f7d99;
  /* Kobalt – Produktfarbe Cloud Drive */
  --accent: #6aa2ff; --accent-hover: #8ab6ff; --accent-text: #ffffff; --accent-soft: rgba(91, 149, 255, .16); --accent-line: rgba(91, 149, 255, .45); --accent-glow: rgba(91, 149, 255, .7);
  /* Zustände */
  --ok: #5fd39a; --ok-soft: rgba(95, 211, 154, .13);
  --warn: #f2c25b; --warn-soft: rgba(242, 194, 91, .14);
  --danger: #ff8b82; --danger-soft: rgba(255, 139, 130, .13);
  --info: #8db7ff; --info-soft: rgba(91, 149, 255, .11);
  --chip: rgba(0, 0, 0, .3);
  /* Material */
  --koernung: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNjAiIGhlaWdodD0iMTYwIj48ZmlsdGVyIGlkPSJrIj48ZmVUdXJidWxlbmNlIHR5cGU9ImZyYWN0YWxOb2lzZSIgYmFzZUZyZXF1ZW5jeT0iLjkiIG51bU9jdGF2ZXM9IjIiIHN0aXRjaFRpbGVzPSJzdGl0Y2giLz48ZmVDb2xvck1hdHJpeCB2YWx1ZXM9IjAgMCAwIDAgMSAgMCAwIDAgMCAxICAwIDAgMCAwIDEgIDAgMCAwIC4wNiAwIi8+PC9maWx0ZXI+PHJlY3Qgd2lkdGg9IjE2MCIgaGVpZ2h0PSIxNjAiIGZpbHRlcj0idXJsKCNrKSIvPjwvc3ZnPg==);
  --glas: var(--koernung), linear-gradient(180deg, rgba(255, 255, 255, .085), rgba(255, 255, 255, .015) 45%, rgba(255, 255, 255, .03)), rgba(12, 20, 42, .66);
  --glas-kante: inset 0 1px 0 rgba(255, 255, 255, .2), inset 1px 0 0 rgba(255, 255, 255, .05), inset 0 -1px 0 rgba(0, 0, 0, .45);
  --knopf-haupt: linear-gradient(180deg, #6aa2ff 0%, #2f6ef0 50%, #1f5fd0 51%, #2563d8 100%);
  /* Form */
  --radius-xs: 6px; --radius-sm: 9px; --radius-md: 12px; --radius-lg: 18px; --radius-xl: 24px;
  --shadow-1: 0 1px 0 rgba(0, 0, 0, .4), 0 4px 12px -4px rgba(0, 0, 0, .6);
  --shadow-2: var(--glas-kante), 0 1px 0 rgba(0, 0, 0, .4), 0 34px 70px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(0, 0, 0, .35);
  --shadow-3: 0 30px 90px rgba(0, 0, 0, .7), 0 0 0 1px rgba(0, 0, 0, .4);
  --focus: 0 0 0 4px rgba(91, 149, 255, .25), 0 0 0 1.5px #7fb0ff;
  /* Abstände (4-px-Raster) */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px;
  /* Schrift */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", system-ui, Roboto, "Helvetica Neue", sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --fs-xs: 12px; --fs-sm: 13px; --fs-md: 15px; --fs-lg: 17px; --fs-xl: 22px; --fs-2xl: 28px;
  /* Bewegung */
  --ease: cubic-bezier(.2, .7, .2, 1); --t-fast: 120ms; --t-med: 220ms;
  /* Steuergrößen */
  --control-h: 40px; --control-h-sm: 32px;
  color-scheme: dark;
}

/* 2 · Grundlagen -------------------------------------------------------------------------------------- */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: var(--fs-md)/1.5 var(--font); -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss01"; }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -.01em; }
h3 { font-size: var(--fs-md); margin: var(--s4) 0 var(--s2); }
p { margin: 6px 0; }
a { color: var(--accent); }
.muted { color: var(--muted); }
.small { font-size: var(--fs-sm); }
.error { color: var(--danger); }
.error:empty { display: none; }
.ok { color: var(--ok); }
.warn { color: var(--warn); }
.row { display: flex; gap: var(--s2); align-items: center; flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.center-text { text-align: center; }
code, .mono { font-family: var(--mono); font-size: var(--fs-sm); }
::selection { background: var(--accent-soft); }

/* Linien-Symbole (symbole.js): 24er-Raster, Strichstärke 1,75, Farbe aus dem Text */
.sym { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; vertical-align: -4px; }
.sym.klein { width: 15px; height: 15px; vertical-align: -3px; }
.sym.gross { width: 22px; height: 22px; }
.upicon { width: 15px; height: 15px; vertical-align: -3px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* 3 · Rahmen: Kopfzeile, Reiter, Inhalt ---------------------------------------------------------------- */
header.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: var(--s3); padding: 10px var(--s5); min-height: 60px; flex-wrap: wrap;
  background: color-mix(in srgb, var(--panel) 86%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
header.top h1 { font-size: var(--fs-lg); font-weight: 650; margin: 0; display: flex; align-items: center; gap: 10px; }
header.top h1::before { content: ""; width: 26px; height: 26px; border-radius: 8px; flex: none; background: url(icon.svg) center / cover no-repeat; box-shadow: var(--shadow-1); }
header.top .spacer { flex: 1; }
nav.tabs { display: flex; gap: 2px; padding: 0 var(--s5); overflow-x: auto; background: var(--panel); border-bottom: 1px solid var(--line); scrollbar-width: none; }
nav.tabs::-webkit-scrollbar { display: none; }
nav.tabs button { position: relative; border: 0; border-radius: 0; background: none; color: var(--muted); padding: 13px 12px 12px; min-height: 46px; white-space: nowrap; font-weight: 520; box-shadow: none; }
nav.tabs button:hover { color: var(--text); background: none; border: 0; }
nav.tabs button::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; border-radius: 2px; background: transparent; transition: background var(--t-fast) var(--ease); }
nav.tabs button[aria-current="page"] { color: var(--text); font-weight: 620; }
nav.tabs button[aria-current="page"]::after { background: var(--accent); }
main { padding: var(--s5); max-width: 1120px; margin: 0 auto; }
.center { max-width: 480px; margin: 6vh auto; }

/* 4 · Karten und Gruppen ------------------------------------------------------------------------------- */
section.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px 22px; margin-bottom: var(--s4); box-shadow: var(--shadow-1); }
section.card h2, dialog h2 { font-size: var(--fs-lg); font-weight: 640; margin: 0 0 var(--s3); }
section.card .row > h2 { margin: 0; }
section.card h3 { margin: 0 0 var(--s2); }
.gruppe { margin: 0 0 var(--s6); }
.gruppen-titel { margin: 0 0 var(--s2); padding: 0; font-size: var(--fs-xs); font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border: 0; }
.gruppen-text { margin: 0 0 var(--s3); max-width: 760px; }
.gruppe section.card { border-left: 3px solid var(--line-strong); }
.gruppe.verbunden section.card { border-left-color: var(--accent); }
.gruppe.eigen section.card { border-left-color: var(--accent-line); }
.gruppe.fremd section.card { border-left-color: var(--ok); }
section.card.wegweiser { border: 1px solid var(--accent-line); background: linear-gradient(180deg, var(--accent-soft), transparent 70%), var(--panel); }
section.card.wegweiser ul { margin: 6px 0 0; padding-left: 20px; }
section.card.wegweiser li { margin: 6px 0; }
.merken { border: 1px solid var(--line); background: var(--well); border-radius: var(--radius-md); padding: var(--s3) var(--s4); margin: var(--s3) 0; }
.merken p { margin: 6px 0 0; }
.stat { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: var(--s3); }
.stat div { background: var(--well); border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--s3) var(--s4); }
.stat b { display: block; font-size: var(--fs-xl); font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: -.01em; margin-top: 2px; }

/* 5 · Schaltflächen: klar beschriftet, mindestens 40 px hoch, eine Hauptaktion je Ansicht ---------------- */
button, select, input, textarea { font: inherit; color: inherit; }
button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: var(--control-h); padding: 0 15px; border: 1px solid var(--line-2); background: var(--raised); color: var(--text);
  border-radius: var(--radius-md); font-weight: 560; cursor: pointer; box-shadow: var(--shadow-1); transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease); }
button:hover { border-color: var(--line-strong); background: color-mix(in srgb, var(--raised) 92%, var(--text)); }
button:active { transform: translateY(1px); }
button.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); font-weight: 640; box-shadow: 0 1px 2px rgba(0, 0, 0, .12), inset 0 1px 0 rgba(255, 255, 255, .14); }
button.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
button.danger { color: var(--danger); }
button.danger:hover { border-color: color-mix(in srgb, var(--danger) 55%, transparent); background: var(--danger-soft); }
button.link { border: 0; background: none; padding: 0; min-height: 0; color: var(--accent); text-align: left; box-shadow: none; font-weight: 520; justify-content: flex-start; }
button.link:hover { text-decoration: underline; background: none; }
button.wide, .gate button.primary { width: 100%; min-height: 46px; }
button.gross { min-height: 48px; padding: 0 22px; font-size: 16px; }
button:disabled { opacity: .45; cursor: default; transform: none; }
:is(button, input, select, textarea, a):focus-visible { outline: none; box-shadow: var(--focus); }
a:has(> button) { text-decoration: none; }
a > button { color: var(--text); }
a > button.primary { color: var(--accent-text); }

/* 6 · Eingaben ------------------------------------------------------------------------------------------ */
input[type=text], input[type=password], input[type=number], input[type=email], input[type=search], select, textarea {
  min-height: var(--control-h); border: 1px solid var(--line-2); background: var(--well); border-radius: var(--radius-sm); padding: 0 12px; min-width: 0;
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease); }
input::placeholder, textarea::placeholder { color: var(--faint); }
input:hover, select:hover, textarea:hover { border-color: var(--line-strong); }
select { padding-right: 30px; appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 17px) 52%, calc(100% - 12px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
textarea { width: 100%; min-height: 110px; padding: 10px 12px; resize: vertical; }
label.field { display: block; margin: var(--s3) 0; }
label.field > span { display: block; font-size: var(--fs-sm); font-weight: 560; color: var(--text-2); margin-bottom: 6px; }
label.field input[type=text], label.field input[type=email], label.field select { width: 100%; }
label.check { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0; cursor: pointer; }
label.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.pw { display: flex; }
.pw input { flex: 1; border-top-right-radius: 0; border-bottom-right-radius: 0; }
.pw button { border-left: 0; border-top-left-radius: 0; border-bottom-left-radius: 0; min-width: 46px; padding: 0; box-shadow: none; background: var(--well); border-color: var(--line-2); color: var(--muted); }
.pw button:hover { color: var(--text); }
select.lang { min-height: var(--control-h-sm); padding: 0 28px 0 10px; font-size: var(--fs-sm); background-color: transparent; }
.langrow { margin: var(--s4) 0 0; text-align: right; }

/* 7 · Tabellen ------------------------------------------------------------------------------------------- */
.scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: var(--fs-xs); font-weight: 620; letter-spacing: .03em; color: var(--muted); white-space: nowrap; }
tbody tr { transition: background var(--t-fast) var(--ease); }
tbody tr:hover { background: color-mix(in srgb, var(--accent) 4%, transparent); }
tbody tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
td.actions { white-space: nowrap; text-align: right; }
td.actions button { min-height: var(--control-h-sm); padding: 0 11px; font-size: var(--fs-sm); margin-left: 4px; }
pre.copy { background: var(--well); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; white-space: pre-wrap; word-break: break-all; margin: 6px 0 var(--s2); }
.crumbs { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin: var(--s3) 0 var(--s2); font-size: var(--fs-sm); }
.bar { height: 6px; background: var(--chip); border-radius: 3px; overflow: hidden; min-width: 60px; }
.bar > i { display: block; height: 100%; background: var(--accent); border-radius: 3px; }

/* 8 · Plaketten und Zustände ----------------------------------------------------------------------------- */
.chip { display: inline-flex; align-items: center; gap: 5px; background: var(--chip); color: var(--text-2); border: 1px solid transparent; border-radius: 999px; padding: 2px 10px; font-size: var(--fs-xs); font-weight: 560; white-space: nowrap; line-height: 1.6; }
.chip.ok { background: var(--ok-soft); color: var(--ok); }
.chip.warn { background: var(--warn-soft); color: var(--warn); }
.chip.error { background: var(--danger-soft); color: var(--danger); }
.chip.muted { color: var(--muted); }
.chip.akzent { background: var(--accent-soft); color: var(--accent); }
.chip.ok::before, .chip.warn::before, .chip.error::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.hinweis { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); background: var(--well); border-radius: var(--radius-md); padding: 10px 14px; margin: var(--s3) 0; font-size: var(--fs-sm); }
.hinweis.warn { border-color: color-mix(in srgb, var(--warn) 35%, transparent); background: var(--warn-soft); }

/* 9 · Dialoge -------------------------------------------------------------------------------------------- */
dialog { border: 1px solid var(--line-2); border-radius: var(--radius-xl); background: var(--panel); color: var(--text); padding: 24px; width: min(520px, calc(100vw - 32px)); box-shadow: var(--shadow-3); }
dialog::backdrop { background: rgba(6, 9, 15, .5); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
dialog[open] { animation: pi-auf var(--t-med) var(--ease); }
dialog form > .row:last-child { margin-top: var(--s4); }
dialog.breit { width: min(760px, calc(100vw - 32px)); }
/* Wichtige Meldung: mittig, groß, bleibt bis „Verstanden“ – WAS ist los, WAS tun */
dialog.meldung { --m: var(--danger); --m-weich: var(--danger-soft); width: min(560px, calc(100vw - 32px)); padding: 34px 34px 26px; text-align: center;
  border-color: color-mix(in srgb, var(--m) 30%, var(--line-2));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--m) 14%, transparent), 0 0 80px -14px color-mix(in srgb, var(--m) 45%, transparent), var(--shadow-3);
  background: linear-gradient(180deg, color-mix(in srgb, var(--m) 5%, var(--panel)), var(--panel) 45%); }
dialog.meldung[open] { animation: pi-meldung 460ms cubic-bezier(.2, 1.3, .3, 1); }
dialog.meldung::backdrop { background: rgba(6, 9, 15, .62); backdrop-filter: blur(8px) saturate(120%); -webkit-backdrop-filter: blur(8px) saturate(120%); }
dialog.meldung--warnung { --m: var(--warn); --m-weich: var(--warn-soft); }
dialog.meldung--info { --m: var(--info); --m-weich: var(--info-soft); }
.meldung-symbol { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 20px; display: flex; align-items: center; justify-content: center; color: var(--m);
  background: var(--m-weich); border: 1px solid color-mix(in srgb, var(--m) 35%, transparent);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--m) 7%, transparent), 0 0 30px -6px var(--m); }
.meldung-symbol .sym { width: 32px; height: 32px; }
dialog.meldung h2 { font-size: var(--fs-xl); font-weight: 700; letter-spacing: -.01em; margin-bottom: var(--s3); }
.meldung-text { font-size: var(--fs-md); line-height: 1.6; margin: 0 0 var(--s3); white-space: pre-line; }
.meldung-tun { text-align: left; font-size: var(--fs-md); line-height: 1.55; margin: 0 0 var(--s3); padding: 12px 14px; border-radius: var(--radius-md);
  background: var(--m-weich); border: 1px solid color-mix(in srgb, var(--m) 28%, transparent); }
.meldung-tun b { color: var(--m); }
.meldung-knoepfe { display: flex; justify-content: center; margin-top: var(--s4); }
.meldung-knoepfe button { min-width: 180px; }
@keyframes pi-meldung { from { opacity: 0; transform: translateY(16px) scale(.94); } to { opacity: 1; transform: none; } }

/* 10 · Info-Schaltflächen: ausführliche Erklärung auf Klick, in den Einstellungen abschaltbar ------------ */
.info-btn { min-height: 0; width: 24px; height: 24px; padding: 0; border-radius: 50%; margin-left: 6px; vertical-align: middle; color: var(--accent); background: var(--accent-soft); border: 1px solid transparent; box-shadow: none; flex: none; }
.info-btn:hover { background: var(--accent); color: var(--accent-text); border-color: transparent; }
.info-btn[aria-expanded="true"] { background: var(--accent); color: var(--accent-text); }
.info-btn .sym { width: 16px; height: 16px; vertical-align: 0; stroke-width: 2.6; }
.info-text { margin: var(--s2) 0 var(--s3); padding: 12px 14px 12px 16px; border-radius: var(--radius-md); border: 1px solid var(--accent-line); background: var(--info-soft); color: var(--text-2); font-size: var(--fs-sm); line-height: 1.55; font-weight: 400; letter-spacing: 0; text-transform: none; }
.info-text p { margin: 0 0 6px; }
.info-text p:last-child { margin-bottom: 0; }
.info-text button.link { font-size: var(--fs-sm); }
body.infos-aus .info-btn, body.infos-aus .info-text { display: none !important; }

/* 11 · Dateistatus (Dateiliste im App-Fenster und im Browser) --------------------------------------------- */
.datei { display: inline-flex; align-items: center; gap: 9px; min-width: 0; }
.datei .sym { color: var(--muted); }
.datei.ordner .sym { color: var(--accent); }
.datei-name { overflow: hidden; text-overflow: ellipsis; }
tr.nur-online td:first-child, tr.nur-online td:nth-child(2) { opacity: .55; }
.zustand { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-sm); color: var(--muted); white-space: nowrap; }
.zustand.vor-ort { color: var(--ok); }
.zustand.runter, .zustand.hoch { color: var(--accent); }
.zustand.runter .sym, .zustand.hoch .sym { animation: pi-puls 1.4s var(--ease) infinite; }
.zustand .bar { width: 64px; display: inline-block; }
.ordner-symbol { width: 40px; height: 40px; border-radius: var(--radius-md); flex: none; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); overflow: hidden; }
.ordner-symbol img { width: 100%; height: 100%; object-fit: contain; }
.ordner-symbol .sym { width: 22px; height: 22px; }
.ordner-kopf { display: flex; gap: var(--s3); align-items: center; }
.ordner-kopf h2 { margin: 0 !important; }
.symbol-vorschau { display: flex; gap: var(--s4); align-items: center; margin: var(--s3) 0; }
.symbol-vorschau .ordner-symbol { width: 72px; height: 72px; border-radius: var(--radius-lg); }

/* 12 · Handbuch ----------------------------------------------------------------------------------------- */
.handbuch { display: grid; grid-template-columns: 230px 1fr; gap: var(--s5); align-items: start; }
.handbuch nav { position: sticky; top: 120px; display: flex; flex-direction: column; gap: 2px; font-size: var(--fs-sm); }
.handbuch nav button { justify-content: flex-start; min-height: 34px; border: 0; background: none; box-shadow: none; color: var(--muted); text-align: left; padding: 0 10px; font-weight: 520; }
.handbuch nav button:hover { color: var(--text); background: var(--chip); }
.handbuch nav button[aria-current="true"] { color: var(--accent); background: var(--accent-soft); }
.handbuch article { max-width: 720px; }
.handbuch article h2 { font-size: var(--fs-xl); margin: var(--s6) 0 var(--s3); scroll-margin-top: 120px; }
.handbuch article h2:first-child { margin-top: 0; }
.handbuch article h3 { font-size: var(--fs-md); margin: var(--s5) 0 var(--s2); }
.handbuch article p, .handbuch article li { color: var(--text-2); line-height: 1.65; }
.handbuch article ul, .handbuch article ol { padding-left: 22px; }
.handbuch article code { background: var(--chip); padding: 1px 6px; border-radius: 5px; }

/* 13 · Bewegung ----------------------------------------------------------------------------------------- */
@keyframes pi-auf { from { opacity: 0; transform: translateY(6px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes pi-puls { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
main > section.card, main > .gruppe { animation: pi-auf var(--t-med) var(--ease) both; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* 14 · Schmale Fenster und Handy ------------------------------------------------------------------------ */
@media (max-width: 760px) {
  .handbuch { grid-template-columns: 1fr; }
  .handbuch nav { position: static; flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 640px) {
  main { padding: var(--s3); }
  header.top { padding: 8px var(--s3); }
  nav.tabs { padding: 0 var(--s2); }
  section.card { padding: 16px; border-radius: var(--radius-md); }
  th, td { padding: 8px 6px; }
  .hide-narrow { display: none; }
  td.actions { white-space: normal; }
  td.actions button { margin: 2px 0 2px 4px; }
}
main > section.card.ruhig { animation: none; }
.chip:has(> .sym)::before { display: none; }
label.check.warnung .muted { color: var(--warn); }

/* 15 · Material „Kobaltglas im Serverraum“ (Entwurf D) ---------------------------------------------------
   Bühne: der gezeichnete Serverraum, leicht weich und abgedunkelt; darüber Glas mit Körnung, Lichtkante oben,
   Tiefe nach unten. Hauptknöpfe wie poliertes Kobalt. Alles Gestaltung, keine Bilder von außen. */
body { background: #03060d; min-height: 100vh; }
body::before { content: ""; position: fixed; inset: -2%; z-index: 0; pointer-events: none; background: url(serverraum.svg) center / cover no-repeat #070b16; filter: blur(1.2px) saturate(1.15) brightness(.8); }
body::after { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse 70% 55% at 50% 42%, rgba(6, 14, 36, .3), rgba(3, 6, 14, .84) 85%), linear-gradient(180deg, rgba(10, 30, 80, .25), transparent 30%, transparent 70%, rgba(3, 6, 14, .65)); }
#app { position: relative; z-index: 1; min-height: 100vh; }
header.top { background: var(--koernung), linear-gradient(180deg, rgba(20, 32, 62, .84), rgba(6, 12, 28, .8)); border-bottom-color: rgba(160, 195, 255, .1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 10px 30px rgba(0, 0, 0, .45); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); }
header.top h1::before { position: relative; box-shadow: 0 0 0 1px rgba(255, 255, 255, .18), 0 8px 20px rgba(31, 95, 208, .6), 0 0 26px rgba(91, 149, 255, .35); }
nav.tabs { background: rgba(4, 9, 22, .55); border-bottom-color: rgba(160, 195, 255, .08); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
nav.tabs button[aria-current="page"]::after { background: #7fb0ff; box-shadow: 0 0 12px #5b95ff, 0 0 2px #fff; }
section.card, .glas { position: relative; background: var(--glas); border-color: rgba(160, 195, 255, .16); box-shadow: var(--shadow-2);
  backdrop-filter: blur(20px) saturate(1.35); -webkit-backdrop-filter: blur(20px) saturate(1.35); }
section.card::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; background: linear-gradient(115deg, rgba(255, 255, 255, .06), transparent 28%, transparent 72%, rgba(120, 170, 255, .05)); }
section.card > * { position: relative; z-index: 1; }
section.card.wegweiser { background: var(--koernung), radial-gradient(520px 200px at 85% 0%, rgba(91, 149, 255, .22), transparent 70%), rgba(12, 22, 48, .7); }
.merken, .stat div, .hinweis, .git-block, pre.copy, .kennung { background: linear-gradient(180deg, rgba(0, 0, 0, .3), rgba(0, 0, 0, .14)); border-color: rgba(255, 255, 255, .08); box-shadow: inset 0 2px 6px rgba(0, 0, 0, .4), 0 1px 0 rgba(255, 255, 255, .04); }
.hinweis.warn { background: var(--warn-soft); border-color: rgba(242, 194, 91, .35); }
.stat b { text-shadow: 0 0 20px rgba(111, 164, 255, .4); }
button { background: linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .03)); border-color: rgba(255, 255, 255, .14); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 4px 12px -4px rgba(0, 0, 0, .6); }
button:hover { background: linear-gradient(180deg, rgba(255, 255, 255, .17), rgba(255, 255, 255, .06)); border-color: rgba(255, 255, 255, .24); }
button.primary { background: var(--knopf-haupt); border-color: rgba(150, 195, 255, .7); color: #fff; text-shadow: 0 1px 1px rgba(0, 0, 0, .3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -2px 6px rgba(0, 0, 0, .25), 0 10px 26px -6px rgba(47, 110, 240, .85), 0 0 0 1px rgba(0, 0, 0, .35); }
button.primary:hover { background: linear-gradient(180deg, #84b3ff 0%, #4580f5 50%, #2d6be0 51%, #3271e6 100%); border-color: rgba(170, 210, 255, .85); }
button.danger:hover { background: var(--danger-soft); }
button.link, button.link:hover, .info-btn, nav.tabs button, .handbuch nav button, .pw button { background: none; box-shadow: none; }
.info-btn { background: var(--accent-soft); } .info-btn:hover, .info-btn[aria-expanded="true"] { background: var(--accent); color: #06101f; }
.pw button { background: var(--well); }
input[type=text], input[type=password], input[type=number], input[type=email], input[type=search], select, textarea {
  background-color: var(--well); border-color: rgba(160, 195, 255, .14); box-shadow: inset 0 2px 7px rgba(0, 0, 0, .55), 0 1px 0 rgba(255, 255, 255, .05); }
input:focus, select:focus, textarea:focus { border-color: #7fb0ff; }
select option { background: #0e1730; color: var(--text); }
.chip { border-color: rgba(255, 255, 255, .1); }
.chip.ok, .chip.warn, .chip.error, .chip.akzent { border-color: color-mix(in srgb, currentColor 35%, transparent); }
.chip.ok::before, .chip.warn::before, .chip.error::before { box-shadow: 0 0 6px currentColor; }
.bar { background: rgba(0, 0, 0, .4); box-shadow: inset 0 1px 3px rgba(0, 0, 0, .6); }
.bar > i { background: linear-gradient(90deg, #2f6ef0, #7fb2ff 80%, #d6e6ff); box-shadow: 0 0 10px var(--accent-glow); }
tbody tr:hover { background: rgba(91, 149, 255, .07); }
.ordner-symbol, .leer-symbol { color: #e3eeff; background: radial-gradient(circle at 32% 22%, rgba(170, 205, 255, .75), rgba(47, 110, 240, .55) 45%, rgba(12, 26, 66, .9) 85%);
  border: 1px solid rgba(160, 200, 255, .35); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 -3px 6px rgba(0, 0, 0, .35), 0 10px 22px -8px rgba(47, 110, 240, .9); }
dialog { background: var(--koernung), linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .01) 40%), #0d1630; border-color: rgba(160, 195, 255, .2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), var(--shadow-3); }
dialog.meldung { background: var(--koernung), linear-gradient(180deg, color-mix(in srgb, var(--m) 9%, #0d1630), #0d1630 45%); }
dialog::backdrop { background: rgba(2, 5, 12, .62); }
section.card h2, .handbuch article h2 { text-shadow: 0 1px 0 rgba(0, 0, 0, .4); }

/* Statuskugel: lebt, solange abgeglichen wird; grün ruhig, Bernstein pausiert, rot Fehler, grau getrennt */
.zustand-kugel { display: inline-flex; align-items: center; gap: 10px; padding: 5px 14px 5px 7px; border-radius: 999px; background: var(--glas); border: 1px solid rgba(160, 195, 255, .16); box-shadow: var(--glas-kante); }
.zustand-kugel b { display: block; font-size: var(--fs-sm); line-height: 1.2; }
.kugel { --k: var(--accent); position: relative; width: 22px; height: 22px; display: grid; place-items: center; flex: none; }
.kugel i { width: 12px; height: 12px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, var(--k) 55%); box-shadow: 0 0 0 3px color-mix(in srgb, var(--k) 25%, transparent), 0 0 14px var(--k); }
.kugel::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--k); opacity: 0; }
.kugel.laeuft::before { animation: pi-atmen 2.2s var(--ease) infinite; }
.kugel.ok { --k: var(--ok); } .kugel.warn { --k: var(--warn); } .kugel.error { --k: var(--danger); } .kugel.muted { --k: #6f7d99; }

/* Bühne: Erzählkarte mit Szene (Aktivität, „Noch kein Rechner verbunden“) */
section.card.held { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); align-items: center; gap: var(--s3); padding: 26px 30px; border-radius: var(--radius-xl); overflow: hidden;
  background: var(--koernung), radial-gradient(640px 280px at 78% 45%, rgba(91, 149, 255, .24), transparent 70%), linear-gradient(180deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .02)), rgba(10, 18, 40, .7); }
section.card.held::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg, transparent, rgba(170, 205, 255, .85), transparent); }
.held h2 { font-size: 26px !important; line-height: 1.15; font-weight: 700 !important; letter-spacing: -.02em; margin: 4px 0 10px !important;
  background: linear-gradient(180deg, #ffffff 0%, #e4ecfb 50%, #a9c3f0 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.held p { color: var(--text-2); max-width: 470px; }
.oberzeile { margin: 0 !important; font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.held .bar { height: 8px; max-width: 420px; margin: 14px 0 8px; }
.held .bar > i { position: relative; overflow: hidden; }
.held .bar > i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent); transform: translateX(-100%); animation: pi-schimmer 1.8s ease-in-out infinite; }
.held-bild { min-width: 0; }
.kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--s4); margin-bottom: var(--s4); }
.kachel { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; padding: 16px 18px; border-radius: var(--radius-lg); }
.kachel .leer-symbol { grid-row: span 3; }
.kachel small { color: var(--muted); font-size: var(--fs-xs); font-weight: 600; letter-spacing: .02em; }
.kachel b { font: 700 24px/1.15 var(--font-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; text-shadow: 0 0 20px rgba(111, 164, 255, .4); }
.kachel span:last-child { color: var(--muted); font-size: var(--fs-sm); }

/* Leerzustände: ruhiges Symbol statt nackter Zeile */
.leer { display: flex; align-items: center; gap: var(--s4); padding: var(--s4); border-radius: var(--radius-md); border: 1px dashed rgba(160, 195, 255, .2); background: rgba(0, 0, 0, .18); }
.leer p { margin: 0; color: var(--muted); }
.leer-symbol { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex: none; }
.leer-symbol .sym { width: 22px; height: 22px; }

/* Anmeldung: links die Erzählung, rechts das Formular */
.buehne { display: none; }
@media (min-width: 1000px) {
  .gate.mit-buehne { grid-template-columns: minmax(0, 1.25fr) minmax(380px, 470px); gap: 40px; padding: 40px 56px; align-items: center; }
  .gate.mit-buehne .buehne { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
}
.buehne .marke { display: flex; align-items: center; gap: 14px; }
.buehne .marke::before { content: ""; width: 52px; height: 52px; border-radius: 14px; flex: none; background: url(icon.svg) center / cover no-repeat; box-shadow: 0 0 0 1px rgba(255, 255, 255, .18), 0 8px 20px rgba(31, 95, 208, .6), 0 0 32px rgba(91, 149, 255, .35); }
.buehne .marke b { display: block; font: 700 30px/1.1 var(--font-display); letter-spacing: -.02em; background: linear-gradient(180deg, #fff, #e4ecfb 50%, #a9c3f0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.buehne .marke small { display: block; color: var(--muted); font-size: var(--fs-md); }
.fakten { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 22px; }
.fakten li { display: flex; gap: 12px; align-items: flex-start; }
.fakten .leer-symbol { width: 36px; height: 36px; border-radius: 11px; }
.fakten .leer-symbol .sym { width: 18px; height: 18px; }
.fakten b { display: block; font-size: var(--fs-sm); } .fakten small { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.4; }

@keyframes pi-atmen { 0%, 100% { transform: scale(1); opacity: .55; } 50% { transform: scale(1.6); opacity: 0; } }
@keyframes pi-schimmer { to { transform: translateX(100%); } }
@media (max-width: 760px) {
  section.card.held { grid-template-columns: 1fr; padding: 20px; }
  .fakten { grid-template-columns: 1fr; }
}

/* 16 · Szene (szene.js) ----------------------------------------------------------------------------------- */
.szene { width: 100%; height: auto; display: block; overflow: visible; }
.sz-text { fill: #e3ebff; font: 600 15px var(--font); letter-spacing: .01em; }
.sz-text.klein { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; fill: #9db0d4; }
.sz-klein { fill: #9db0d4; font: 500 11px var(--font); } .sz-klein.b { fill: #e3ebff; font-weight: 650; font-size: 12px; }
.szene-d .d-kanal-glow { fill: none; stroke: #4f8cff; stroke-width: 34; opacity: .32; }
.szene-d .d-faden { fill: none; stroke: #e6f0ff; stroke-width: 1.6; stroke-dasharray: 2 9; stroke-linecap: round; animation: pi-faden 1.2s linear infinite; }
.szene-d .d-koffer { offset-path: path('M226 136 C 312 136, 336 96, 386 96 S 468 136, 552 136'); offset-rotate: 0deg; animation: pi-wandern 4.5s cubic-bezier(.45, .05, .55, .95) infinite; filter: drop-shadow(0 5px 8px rgba(10, 40, 120, .65)); }
.szene-d .k1 { animation-delay: -.9s; } .szene-d .k2 { animation-delay: -1.8s; } .szene-d .k3 { animation-delay: -2.7s; } .szene-d .k4 { animation-delay: -3.6s; }
.szene-d .d-led { animation: pi-blinken 1.8s steps(2, jump-none) infinite; filter: drop-shadow(0 0 3px currentColor); }
.szene-d .l1 { animation-delay: .3s; } .szene-d .l2 { animation-delay: .41s; } .szene-d .l3 { animation-delay: .59s; } .szene-d .l4 { animation-delay: .82s; }
.szene-d .l5 { animation-delay: .88s; } .szene-d .l6 { animation-delay: 1.23s; } .szene-d .l7 { animation-delay: 1.17s; }
.szene-d .d-led-0 { fill: #5fd39a; color: #5fd39a; } .szene-d .d-led-1 { fill: #6fa4ff; color: #6fa4ff; } .szene-d .d-led-2 { fill: #f2c25b; color: #f2c25b; }
/* Ruhig (pausiert, nicht verbunden, Leerzustand): Koffer stehen, nur die Leuchtdioden leben */
.szene.ruhig .d-koffer, .szene.ruhig .d-faden { animation: none; }
.szene.ruhig .d-koffer { offset-distance: 50%; opacity: 0; } .szene.ruhig .d-koffer.k0 { opacity: 1; }
@keyframes pi-wandern { 0% { offset-distance: 0%; opacity: 0; transform: scale(.7); } 12% { opacity: 1; transform: scale(1); } 88% { opacity: 1; transform: scale(1); } 100% { offset-distance: 100%; opacity: 0; transform: scale(.7); } }
@keyframes pi-faden { to { stroke-dashoffset: -11; } }
@keyframes pi-blinken { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .szene-d .d-koffer { offset-distance: 50%; opacity: 0; } .szene-d .d-koffer.k0 { opacity: 1; } }
