/* EMQON Command Center – dunkler Premium-Stil nach Markenboard (Navy, Electric/Light Blue, Silver, Glow, Glas) */
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --navy: #050a14;
  --navy-2: #0a1a2f;
  --blue: #0066ff;
  --light: #00b4ff;
  --silver: #c9d2e1;
  --white: #ffffff;
  --muted: #7d8aa3;
  --off: #46526b;
  --glass: rgba(10, 26, 47, 0.62);
  --glass-line: rgba(0, 180, 255, 0.28);
  --line: rgba(201, 210, 225, 0.11); /* feine Trennlinien in Fenstern, Tabellen und Karten */
  --radius: 14px;
  /* Ampelfarben (wie in „Heute“, Karte und Lampen) */
  --ok: #2ecc8f;
  --warn: #f5b74b;
  --crit: #ff5d6c;
  --ml-platz: 104px; /* Platz unten für die Menüleiste: Arbeitsfenster und „Heute“ enden darüber */
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--navy); color: var(--white); font-family: "Manrope", system-ui, sans-serif; }
body { overflow: hidden; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; }
input, select, textarea { font-family: inherit; }

.center { position: fixed; inset: 0; }
.stage { position: absolute; inset: 0; }
.stage canvas { display: block; width: 100%; height: 100%; cursor: grab; }
.stage canvas:active { cursor: grabbing; }

/* Leichter Vignetten-Schleier wie in den Referenzbildern */
.center::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 45%, transparent 55%, rgba(2, 5, 12, 0.75) 100%);
}

/* ---------- Kopfzeile ---------- */
.hud-top {
  position: absolute; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 28px;
  background: linear-gradient(180deg, rgba(5, 10, 20, 0.85), transparent);
  pointer-events: none;
}
.hud-top > * { pointer-events: auto; }
.brand { display: flex; align-items: center; gap: 16px; }
.brand img { height: 38px; width: auto; }
.brand-divider { width: 1px; height: 28px; background: linear-gradient(180deg, transparent, var(--glass-line), transparent); }
.brand-title { font-weight: 600; letter-spacing: 0.32em; text-transform: uppercase; font-size: 12px; color: var(--silver); }
.status { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px; font-size: 12px; font-weight: 600;
  background: var(--glass); border: 1px solid var(--glass-line); backdrop-filter: blur(10px);
}
.chip-muted { color: var(--silver); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--light); box-shadow: 0 0 10px var(--light); }

/* ---------- Raumbeschriftungen ---------- */
.labels { position: absolute; inset: 0; z-index: 10; pointer-events: none; overflow: hidden; }
.room-label {
  position: absolute; left: 0; top: 0; pointer-events: auto; cursor: pointer;
  display: flex; align-items: center; gap: 9px; white-space: nowrap;
  padding: 7px 13px 7px 9px; border-radius: 10px;
  background: var(--glass); border: 1px solid var(--glass-line); backdrop-filter: blur(8px);
  transition: border-color .2s, box-shadow .2s, opacity .2s;
}
.room-label img { width: 22px; height: 22px; padding: 4px; border-radius: 7px; background: linear-gradient(135deg, var(--blue), var(--light)); }
.room-label span { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.room-label b { font-size: 12.5px; font-weight: 700; }
.room-label small { font-size: 10.5px; color: var(--light); font-weight: 600; letter-spacing: .04em; }
.room-label.is-active { border-color: rgba(0, 180, 255, 0.7); box-shadow: 0 0 22px rgba(0, 120, 255, 0.45); }
.room-label.is-active::after {
  content: ""; position: absolute; left: 50%; top: 100%; width: 1px; height: 18px;
  background: linear-gradient(180deg, var(--light), transparent);
}
.room-label.is-disabled { opacity: 0.72; border-color: rgba(120, 135, 165, 0.25); }
.room-label.is-disabled img { background: #1c2436; opacity: .8; }
.room-label.is-disabled small { color: var(--muted); }
.room-label.is-hover, .room-label:focus-visible { opacity: 1; border-color: var(--light); box-shadow: 0 0 26px rgba(0, 180, 255, 0.55); outline: none; }

/* ---------- Hinweis und Leiste ---------- */
.hud-hint {
  position: absolute; left: 28px; top: 84px; z-index: 20;
  display: flex; align-items: center; gap: 14px; font-size: 12px; color: var(--muted);
}
.btn-ghost {
  padding: 7px 14px; border-radius: 999px; cursor: pointer; font-size: 12px; font-weight: 600;
  background: var(--glass); border: 1px solid var(--glass-line); color: var(--silver);
}
.btn-ghost:hover, .btn-ghost:focus-visible { border-color: var(--light); color: var(--white); outline: none; }

.dock {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 20;
  display: flex; gap: 6px; padding: 8px; max-width: calc(100vw - 32px); overflow-x: auto;
  border-radius: 18px; background: var(--glass); border: 1px solid var(--glass-line); backdrop-filter: blur(14px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
}
.dock-item {
  display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 92px;
  padding: 10px 10px 8px; border-radius: 12px; border: 1px solid transparent; background: transparent;
  cursor: pointer; font-size: 11px; font-weight: 600; color: var(--silver); text-align: center; line-height: 1.2;
  transition: background .2s, border-color .2s;
}
.dock-item img { width: 34px; height: 34px; padding: 7px; border-radius: 10px; background: linear-gradient(135deg, var(--blue), var(--light)); box-shadow: 0 0 18px rgba(0, 120, 255, 0.55); }
.dock-item:hover, .dock-item:focus-visible, .dock-item[aria-current="true"] { background: rgba(0, 102, 255, 0.14); border-color: var(--glass-line); outline: none; }
.dock-item.is-disabled { color: var(--off); }
.dock-item.is-disabled img { background: #151c2b; box-shadow: none; opacity: .55; }

/* ---------- Seitenpanel ---------- */
.panel {
  position: absolute; top: 86px; right: 24px; bottom: 110px; z-index: 30; width: min(380px, calc(100vw - 32px));
  padding: 26px 24px; overflow-y: auto; border-radius: 18px;
  background: linear-gradient(160deg, rgba(10, 26, 47, 0.9), rgba(5, 10, 20, 0.92));
  border: 1px solid var(--glass-line); backdrop-filter: blur(16px);
  box-shadow: 0 0 0 1px rgba(0, 102, 255, 0.08), 0 20px 60px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  animation: panel-in .35s cubic-bezier(.2, .8, .2, 1);
}
@keyframes panel-in { from { opacity: 0; transform: translateX(24px); } }
.panel-close {
  position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: 10px; cursor: pointer;
  background: transparent; border: 1px solid var(--glass-line); font-size: 18px; line-height: 1;
}
.panel-close:hover, .panel-close:focus-visible { border-color: var(--light); outline: none; }
.panel-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; padding-right: 36px; }
.panel-head img { width: 46px; height: 46px; padding: 10px; border-radius: 13px; background: linear-gradient(135deg, var(--blue), var(--light)); box-shadow: 0 0 24px rgba(0, 120, 255, 0.6); }
.panel.is-disabled .panel-head img { background: #151c2b; box-shadow: none; }
.panel h2 { margin: 0; font-size: 19px; font-weight: 700; }
.badge { display: inline-block; margin-top: 4px; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .04em; }
.badge-on { background: rgba(0, 180, 255, 0.16); color: var(--light); border: 1px solid rgba(0, 180, 255, 0.45); }
.badge-off { background: rgba(70, 82, 107, 0.2); color: var(--muted); border: 1px solid rgba(70, 82, 107, 0.45); }
.panel p { margin: 0 0 18px; font-size: 13.5px; line-height: 1.55; color: var(--silver); }
.panel h3 { margin: 0 0 10px; font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.features { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.features li {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 10px; font-size: 13px;
  background: rgba(0, 102, 255, 0.07); border: 1px solid rgba(0, 180, 255, 0.14);
}
.features li span { font-size: 10.5px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.panel.is-disabled .features li { background: rgba(255, 255, 255, 0.02); border-color: rgba(120, 135, 165, 0.14); color: var(--muted); }

/* ---------- Knöpfe ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 0 18px; border: 0; border-radius: 999px; cursor: pointer;
  font-size: 13.5px; font-weight: 700; color: #fff; white-space: nowrap;
  background: linear-gradient(180deg, #1f7bff 0%, #0060f0 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 0 0 1px rgba(0, 140, 255, .35), 0 10px 30px -10px rgba(0, 102, 255, .65);
  transition: filter .2s, box-shadow .25s;
}
.btn:hover, .btn:focus-visible { filter: brightness(1.08); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 0 0 1px rgba(0, 180, 255, .5), 0 14px 40px -8px rgba(0, 120, 255, .85); outline: none; }
.btn:disabled { opacity: .45; cursor: not-allowed; filter: none; }
.btn-block { width: 100%; margin: 0 0 22px; }
.btn-ghost.danger { color: #ff9aa8; border-color: rgba(255, 110, 130, .3); }
.btn-ghost.danger:hover, .btn-ghost.danger:focus-visible { border-color: #ff6e82; color: #fff; }
.btn-ghost:disabled { opacity: .4; cursor: not-allowed; }

/* Menüpunkte der aktiven Abteilung im Panel */
.features li:has(.feature-link) { padding: 0; }
.feature-link {
  display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 10px;
  padding: 10px 12px; border: 0; border-radius: 10px; background: transparent; cursor: pointer; text-align: left; font-size: 13px;
}
.feature-link > span:last-child { color: var(--light); font-size: 18px; line-height: 1; }
.feature-link:hover, .feature-link:focus-visible { background: rgba(0, 102, 255, .16); outline: none; box-shadow: inset 0 0 0 1px rgba(0, 180, 255, .45); }
.feature-title { color: var(--white); }

/* ---------- Arbeitsfenster ---------- */
.workspace {
  position: absolute; inset: 86px 24px var(--ml-platz); z-index: 40; display: grid; grid-template-rows: auto 1fr; overflow: hidden;
  border-radius: 20px; border: 1px solid var(--glass-line);
  background: linear-gradient(160deg, rgba(10, 26, 47, .94), rgba(5, 10, 20, .96));
  backdrop-filter: blur(18px);
  box-shadow: 0 0 0 1px rgba(0, 102, 255, .08), 0 30px 80px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .05);
  animation: ws-in .35s cubic-bezier(.2, .8, .2, 1);
}
.workspace[hidden] { display: none; }
@keyframes ws-in { from { opacity: 0; transform: translateY(16px) scale(.99); } }
.ws-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; border-bottom: 1px solid var(--line); position: relative; }
.ws-head .panel-close { position: static; }
.ws-kopf-knoepfe { display: flex; gap: 8px; align-items: center; }
.panel-neu { font-size: 17px; }
.panel-neu.dreht { animation: neu-drehen .8s linear infinite; }
@keyframes neu-drehen { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .panel-neu.dreht { animation: none; opacity: .5; } }
#panel-neu { right: 54px; }
.ws-brand { display: flex; align-items: center; gap: 14px; }
.ws-brand small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--light); }
.ws-brand h2 { margin: 2px 0 0; font-size: 20px; font-weight: 700; }
.ws-badge { width: 42px; height: 42px; padding: 9px; border-radius: 12px; background: linear-gradient(135deg, var(--blue), var(--light)); box-shadow: 0 0 24px rgba(0, 120, 255, .6); }
.ws-body { display: grid; grid-template-columns: 250px 1fr; min-height: 0; }
.ws-nav { display: flex; flex-direction: column; gap: 4px; padding: 16px 12px; border-right: 1px solid var(--line); overflow-y: auto; }
.ws-tab {
  display: flex; align-items: center; gap: 11px; padding: 9px 11px; border: 1px solid transparent; border-radius: 11px;
  background: transparent; cursor: pointer; text-align: left; font-size: 13px; font-weight: 600; color: var(--silver);
}
.ws-tab .ico { width: 28px; height: 28px; padding: 6px; border-radius: 8px; background: rgba(0, 102, 255, .18); flex: none; }
.ws-tab:hover, .ws-tab:focus-visible { background: rgba(0, 102, 255, .1); outline: none; color: var(--white); }
.ws-tab[aria-current="true"] { background: rgba(0, 102, 255, .16); border-color: var(--glass-line); color: var(--white); }
.ws-tab[aria-current="true"] .ico { background: linear-gradient(135deg, var(--blue), var(--light)); box-shadow: 0 0 16px rgba(0, 120, 255, .55); }
.ws-main { overflow-y: auto; padding: 22px; display: grid; gap: 18px; align-content: start; outline: none; }
.ws-card { padding: 20px; border-radius: 16px; background: linear-gradient(170deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015)); box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgba(255, 255, 255, .06); min-width: 0; }
.ws-card h3 { margin: 0 0 14px; font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.ws-card p { margin: 0 0 12px; font-size: 13.5px; line-height: 1.55; color: var(--silver); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.kpi {
  display: flex; flex-direction: column; gap: 4px; padding: 18px; border-radius: 16px; cursor: pointer; text-align: left;
  border: 1px solid rgba(0, 180, 255, .22); background: linear-gradient(160deg, rgba(0, 102, 255, .2), rgba(0, 102, 255, .04));
  transition: border-color .2s, box-shadow .2s;
}
.kpi b { font-size: 30px; font-weight: 800; letter-spacing: -.03em; }
.kpi span { font-size: 12px; font-weight: 600; color: var(--silver); }
.kpi:hover, .kpi:focus-visible { border-color: var(--light); box-shadow: 0 0 24px rgba(0, 120, 255, .35); outline: none; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 9px 18px; margin: 0; font-size: 13.5px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.facts.small { font-size: 12.5px; gap: 6px 14px; }
.mono, code { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 12px; color: #7fd8ff; }
.list, .commits, .checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.list li, .commits li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 12px; border-radius: 10px; background: rgba(255, 255, 255, .025); font-size: 13px; }
.list time, .commits time { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.commits li { display: grid; grid-template-columns: auto 1fr auto; }
.commits span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; white-space: nowrap; background: rgba(0, 180, 255, .14); color: #7fd8ff; box-shadow: inset 0 0 0 1px rgba(0, 180, 255, .3); }
.pill.muted, .pill.verworfen, .pill.kann { background: rgba(125, 138, 163, .14); color: var(--muted); box-shadow: inset 0 0 0 1px rgba(125, 138, 163, .3); }
.pill.in_arbeit, .pill.soll { background: rgba(122, 92, 255, .16); color: #b9a8ff; box-shadow: inset 0 0 0 1px rgba(122, 92, 255, .4); }
.pill.test { background: rgba(255, 176, 32, .14); color: #ffc960; box-shadow: inset 0 0 0 1px rgba(255, 176, 32, .35); }
.pill.freigegeben { background: rgba(43, 217, 124, .14); color: #6fe8a8; box-shadow: inset 0 0 0 1px rgba(43, 217, 124, .35); }
.pill.muss { background: rgba(0, 102, 255, .2); color: #8fc4ff; }
.note { margin: 0; padding: 12px 14px; border-radius: 12px; font-size: 12.5px; line-height: 1.5; color: var(--muted); background: rgba(0, 102, 255, .06); border: 1px dashed rgba(0, 180, 255, .2); }
.ws-card .note { margin-top: 4px; }
.empty { color: var(--muted) !important; font-size: 13px; }
.loading { color: var(--muted); font-size: 13px; }

/* Formulare */
.form { display: grid; gap: 14px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.form.inline { grid-template-columns: 2fr 120px 2fr auto; align-items: end; }
.field { display: grid; gap: 6px; font-size: 12px; font-weight: 600; color: var(--silver); }
.field small { color: var(--muted); font-weight: 500; }
.field input, .field select, .field textarea, .actions input, .status-select {
  width: 100%; padding: 10px 12px; border-radius: 10px; font-size: 13.5px; color: var(--white);
  background: rgba(5, 10, 20, .6); border: 1px solid rgba(201, 210, 225, .16); outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; font-family: inherit; }
.field input:focus, .field select:focus, .field textarea:focus, .actions input:focus, .status-select:focus { border-color: var(--light); box-shadow: 0 0 0 3px rgba(0, 180, 255, .18); }
select option { background: var(--navy-2); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.actions input { flex: 1 1 220px; width: auto; }

/* Tabellen und Karten */
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th { text-align: left; padding: 0 12px 10px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.table td { padding: 12px; border-top: 1px solid var(--line); vertical-align: top; }
.table td small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.row-actions { text-align: right; white-space: nowrap; }
.row-actions > * + * { margin-left: 6px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.proj { display: grid; gap: 14px; padding: 16px; border-radius: 14px; background: rgba(0, 102, 255, .06); border: 1px solid rgba(0, 180, 255, .16); }
.proj header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.proj header b { display: block; font-size: 15px; }
.proj header small { color: var(--muted); font-size: 12px; }
.proj p { margin: 0; }
.proj.is-test { opacity: .55; } /* Testbestellungen ausgegraut */
.status-select { width: auto; padding: 6px 10px; font-size: 12px; }
.checklist li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, .025); }
.checklist label { display: flex; align-items: flex-start; gap: 12px; flex: 1; cursor: pointer; min-width: 0; }
.checklist input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--light); flex: none; }
.checklist b { display: block; font-size: 13.5px; font-weight: 600; }
.checklist small { display: block; color: var(--muted); font-size: 12px; }
.checklist li.done b { text-decoration: line-through; color: var(--muted); }

/* Server Control und Git Center */
.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.measured { color: var(--muted); font-size: 12px; }
.ws-card .measured { display: block; margin-top: 10px; }
.meters { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.meter { padding: 16px 18px; border-radius: 16px; background: linear-gradient(170deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015)); box-shadow: inset 0 0 0 1px var(--line); }
.meter-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 12.5px; font-weight: 600; color: var(--silver); }
.meter-head b { font-size: 24px; font-weight: 800; letter-spacing: -.02em; color: var(--white); }
.meter-track { height: 8px; margin: 10px 0 8px; border-radius: 4px; background: rgba(201, 210, 225, .1); overflow: hidden; }
.meter-track i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--blue), var(--light)); transition: width .6s cubic-bezier(.2, .8, .2, 1); }
.meter.warn .meter-track i { background: #ffb020; }
.meter.crit .meter-track i { background: #ff6e82; }
.meter small { color: var(--muted); font-size: 12px; }
.scroll { overflow-x: auto; }
.facts + :is(.scroll, .table-scroll, .table), :is(.scroll, .table-scroll, .table, .note, .banner) + .facts { margin-top: 14px; }
.ws-card > .banner:not(:last-child) { margin-bottom: 14px; }
.ws-main label:not(.field):has(> input[type="month"]) { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; color: var(--silver); }
.ws-main label:not(.field) > input[type="month"] { padding: 9px 12px; border-radius: 10px; font-size: 13.5px; color: var(--white); background: rgba(5, 10, 20, .6); border: 1px solid rgba(201, 210, 225, .16); outline: none; }
.ws-main label:not(.field) > input[type="month"]:focus { border-color: var(--light); box-shadow: 0 0 0 3px rgba(0, 180, 255, .18); }
.banner { display: grid; gap: 10px; padding: 16px 18px; border-radius: 16px; border: 1px solid rgba(0, 180, 255, .3); background: rgba(0, 102, 255, .1); font-size: 15px; }
.banner.ok { border-color: rgba(43, 217, 124, .4); background: rgba(43, 217, 124, .08); }
.banner.warn { border-color: rgba(255, 176, 32, .45); background: rgba(255, 176, 32, .08); }
.banner.crit { border-color: rgba(255, 110, 130, .5); background: rgba(255, 110, 130, .09); }
.alert-line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; min-width: 0; overflow-wrap: anywhere; }
.pill.kritisch { background: rgba(255, 110, 130, .15); color: #ffa3b1; box-shadow: inset 0 0 0 1px rgba(255, 110, 130, .45); }
.chip-alert { cursor: pointer; color: #ffc960; border-color: rgba(255, 176, 32, .5); }
.chip-alert.is-critical { color: #ffa3b1; border-color: rgba(255, 110, 130, .6); box-shadow: 0 0 16px rgba(255, 110, 130, .3); }
.chip-alert:hover, .chip-alert:focus-visible { color: var(--white); outline: none; }
.chip-alert[hidden] { display: none; }
.link { padding: 0; border: 0; background: none; cursor: pointer; font-weight: 700; color: var(--white); text-align: left; overflow-wrap: anywhere; }
.detail-stack { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.back-button { position: sticky; top: 0; z-index: 5; align-self: flex-start; background: rgb(8, 18, 34); }
.link.nowrap { white-space: nowrap; overflow-wrap: normal; }
.link:hover, .link:focus-visible { color: var(--light); outline: none; }
.table tr.is-selected td { background: rgba(0, 102, 255, .08); }
.table input.status-select { width: 100%; min-width: 260px; }
.ws-card > .note { margin-top: 12px; }
.note code { overflow-wrap: anywhere; }
.diff { margin: 0; padding: 12px 14px; max-height: 520px; overflow: auto; border-radius: 10px; background: rgba(2, 6, 14, .6); font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 12px; line-height: 1.5; color: var(--silver); white-space: pre-wrap; overflow-wrap: anywhere; }
.diff .add { color: #6fe8a8; }
.diff .del { color: #ffa3b1; }
.diff .hunk { color: #7fd8ff; }
.diff .meta { color: var(--muted); font-weight: 700; }
details summary { cursor: pointer; font-size: 13px; font-weight: 600; margin-bottom: 10px; color: var(--silver); }

/* Mail Center */
.table .row-actions:has(input) { display: flex; align-items: center; gap: 8px; }
.table .row-actions input.status-select { flex: 1; min-width: 150px; width: auto; }
.mail-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.mail-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 14px; width: 100%; padding: 11px 13px; border: 1px solid transparent; border-radius: 11px; background: rgba(255, 255, 255, .025); cursor: pointer; text-align: left; font-size: 13px; }
.mail-row:hover, .mail-row:focus-visible { border-color: var(--glass-line); background: rgba(0, 102, 255, .1); outline: none; }
.mail-row b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Mail Center: gelesen = normal und etwas gedämpft; neu (hier noch nicht geöffnet) = fett, blaue Kante, Marke „Neu“ */
.mail-list .mail-row:not(.is-neu) b { font-weight: 500; opacity: .82; }
.mail-list .mail-row.is-neu { border-left: 3px solid var(--light, #4d94ff); background: rgba(0, 102, 255, .07); }
.mail-list .mail-row.is-neu b { font-weight: 700; }
.mail-neu { display: inline-block; margin-right: 8px; padding: 1px 7px; border-radius: 999px; background: var(--light, #4d94ff); color: #fff; font-size: 10.5px; font-weight: 700; letter-spacing: .02em; vertical-align: 1px; }
.mail-row time { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.mail-row small { grid-column: 1 / -1; color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-row .chips { grid-column: 1 / -1; gap: 6px; margin-top: 4px; }
.mail-body { margin: 0; padding: 14px; max-height: 420px; overflow: auto; border-radius: 10px; background: rgba(2, 6, 14, .6); font: inherit; font-size: 13.5px; line-height: 1.55; color: var(--silver); white-space: pre-wrap; overflow-wrap: anywhere; }
.ki-news-text { white-space: pre-line; overflow-wrap: anywhere; }
.action-gap { margin-top: 16px; }
.steps { margin: 0 0 14px; padding-left: 22px; display: grid; gap: 8px; font-size: 13.5px; line-height: 1.5; color: var(--silver); }
.preview { display: grid; gap: 10px; padding: 14px; border-radius: 12px; border: 1px solid rgba(0, 180, 255, .2); background: rgba(0, 102, 255, .05); }

/* EMQON Finance */
.field[hidden] { display: none; }
a.btn-ghost { display: inline-flex; align-items: center; text-decoration: none; }
.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.table-scroll { overflow-x: auto; }
.doc-lines th:nth-child(1) { width: 46%; }
.doc-lines td { padding: 8px 6px; vertical-align: top; }
.doc-lines input, .doc-lines textarea { width: 100%; min-width: 72px; padding: 8px 10px; border-radius: 9px; font: inherit; font-size: 13px; color: var(--white); background: rgba(5, 10, 20, .6); border: 1px solid rgba(201, 210, 225, .16); outline: none; resize: vertical; }
.doc-lines input:focus, .doc-lines textarea:focus { border-color: var(--light); box-shadow: 0 0 0 3px rgba(0, 180, 255, .18); }
.totals { justify-content: end; max-width: 460px; margin-left: auto; }
.totals dd { text-align: right; font-variant-numeric: tabular-nums; }
.inline-new { grid-template-columns: 180px minmax(200px, 1fr) auto; align-items: end; }
@media (max-width: 760px) { .inline-new { grid-template-columns: 1fr; } }

/* Vorlagenbibliothek */
.form-grid .field { align-content: start; }
.sub { margin: 20px 0 12px; font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }

/* Meldungen */
.ws-toast {
  position: absolute; right: 22px; bottom: 22px; z-index: 5; max-width: 420px; padding: 12px 16px; border-radius: 12px;
  font-size: 13px; font-weight: 600; background: rgba(10, 26, 47, .96); border: 1px solid rgba(43, 217, 124, .45);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .5); animation: panel-in .3s ease;
}
.ws-toast.err { border-color: rgba(255, 110, 130, .55); }
.ws-toast[hidden] { display: none; }

@media (max-width: 960px) {
  .ws-body { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .ws-nav { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 10px; }
  .ws-tab { flex: none; }
  .ws-tab span { white-space: nowrap; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-2 { grid-template-columns: 1fr; }
  .form.inline { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .workspace { inset: 64px 8px var(--ml-platz); }
  .ws-main { padding: 14px; }
  .ws-head { padding: 12px 14px; }
  .table thead { display: none; }
  .table tr { display: grid; padding: 10px 0; border-top: 1px solid var(--line); }
  .table td { border: 0; padding: 4px 0; }
  .row-actions { text-align: left; }
}

/* ---------- Laden / Ersatz ---------- */
.loader {
  position: absolute; inset: 0; z-index: 50; display: grid; place-content: center; justify-items: center; gap: 16px;
  background: var(--navy); color: var(--muted); font-size: 13px; transition: opacity .6s;
}
.loader img { filter: drop-shadow(0 0 18px rgba(0, 120, 255, 0.7)); animation: pulse 1.6s ease-in-out infinite; }
.loader.is-done { opacity: 0; pointer-events: none; }
@keyframes pulse { 50% { opacity: .55; } }
.fallback { position: absolute; top: 45%; left: 50%; transform: translate(-50%, -50%); z-index: 15; max-width: 420px; text-align: center; color: var(--silver); }

@media (max-width: 760px) {
  .hud-top { padding: 14px 16px; }
  .brand img { height: 28px; }
  .brand-divider, .brand-title, .chip-muted { display: none; }
  .hud-hint { left: 16px; top: 64px; }
  .hud-hint span { display: none; }
  .dock { bottom: 16px; }
  .dock-item { min-width: 76px; font-size: 10px; }
  .panel { top: auto; right: 16px; left: 16px; bottom: 104px; width: auto; max-height: 55vh; }
  .room-label small { display: none; }
  .room-label.is-disabled { padding: 5px; }
  .room-label.is-disabled span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Projektverwaltung */
/* Kennzahlen wie die übrigen Kacheln (.kpi): Zahl oben, Beschriftung darunter */
.project-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.project-kpis .tile { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 4px; padding: 18px; border-radius: 16px; border: 1px solid rgba(0, 180, 255, .22); background: linear-gradient(160deg, rgba(0, 102, 255, .2), rgba(0, 102, 255, .04)); min-width: 0; }
.project-kpis small { display: block; font-size: 12px; font-weight: 600; color: var(--silver); }
.project-kpis b { font-size: 30px; font-weight: 800; letter-spacing: -.03em; overflow-wrap: anywhere; }
.project-kpis .tile:last-child b { font-size: 22px; line-height: 36px; } /* Datum der letzten Sicherung passt so in eine Zeile */

/* Anleitung */
.guide-step { display: grid; gap: 8px; padding: 14px 0; }
.guide-step + .guide-step { border-top: 1px solid rgba(255, 255, 255, .08); }
.guide-step h4 { margin: 0; font-size: 15px; }
.guide-step p { margin: 0; line-height: 1.55; }
.guide-step img { width: 100%; height: auto; margin-top: 6px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .12); }
.check { display: flex; gap: 8px; align-items: center; font-size: 13px; }
.ws-card > .actions, .ws-card > dl + .actions { margin-top: 12px; }
.tarif-wahl { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.tarif-wahl select { flex: 0 1 280px; }

/* ---------- Startseite „Heute“ ---------- */
.heute { position: absolute; inset: 72px 0 var(--ml-platz) 0; z-index: 30; display: grid; grid-template-columns: 1fr; overflow: hidden;
  background: linear-gradient(160deg, rgba(10, 26, 47, .97), rgba(5, 10, 20, .985)); }
.heute[hidden] { display: none; }
.h-inst { font-size: 12px; color: var(--muted); border: 1px solid var(--glass-line); border-radius: 10px; padding: 8px 10px; margin-bottom: 10px; }
.h-inst b { color: #2ecc8f; }
.h-badge { background: var(--blue); color: #fff; border-radius: 999px; font-size: 12px; padding: 0 8px; }
.h-badge.crit { background: #ff5d6c; }
.h-main { padding: 24px 28px 40px; overflow-y: auto; }
.h-main h1 { margin: 0; font-size: 26px; color: #fff; }
.h-sub { margin: 2px 0 18px; color: var(--muted); }
.h-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.h-card { background: rgba(11, 22, 38, .9); border: 1px solid var(--glass-line); border-radius: 14px; padding: 16px 18px; min-width: 0; }
.h-card.wide { grid-column: span 2; }
.h-card h2 { margin: 0 0 10px; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.h-card ul { list-style: none; margin: 0; padding: 0; }
.h-card li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid rgba(255, 255, 255, .06); }
.h-card li:first-child { border-top: 0; }
.h-rowbtn { background: none; border: 0; color: var(--silver); font: inherit; text-align: left; padding: 0; cursor: pointer; }
.h-rowbtn:hover, .h-rowbtn:focus-visible { color: #fff; text-decoration: underline; outline: none; }
.h-big { font-size: 30px; font-weight: 800; color: #fff; }
.h-big.crit { color: #ff5d6c; }
.h-note { color: var(--muted); font-size: 13px; margin: 8px 0 0; }
.h-note.warn { color: #f5b74b; }
.h-pill { font-size: 12px; border-radius: 999px; padding: 1px 9px; white-space: nowrap; background: rgba(0, 180, 255, .15); color: var(--light); }
.h-pill.warn { background: rgba(245, 183, 75, .16); color: #f5b74b; }
.h-pill.ok { background: rgba(46, 204, 143, .15); color: #2ecc8f; }
.h-pill.crit { background: rgba(255, 93, 108, .15); color: #ff5d6c; }
.h-run { display: grid !important; grid-template-columns: auto 1fr auto; }
.h-bar { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.h-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--light)); }
.h-card .btn-ghost { margin-top: 10px; }
@media (max-width: 1100px) { .h-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .heute { inset: 64px 0 var(--ml-platz) 0; } .h-grid { grid-template-columns: 1fr; } .h-card.wide { grid-column: auto; } .h-main { padding: 18px 16px 32px; } .h-card li { flex-wrap: wrap; } }

/* ---------- „Heute“ neu (09.11.2026): Satz, Ampel, Als Nächstes, Dieser Monat, Technik ---------- */
.hn { --ok: #2ecc8f; --warn: #f5b74b; --crit: #ff5d6c; display: flex; flex-direction: column; gap: 18px; }
.hn > * { max-width: 1180px; width: 100%; }
.hn-kopf { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.hn-kopf h1 { margin: 0; font-size: 26px; letter-spacing: -.02em; }
.hn-datum { color: var(--muted); font-size: 14px; }
.hn-satz { margin: -8px 0 0; font-size: clamp(19px, 2.1vw, 24px); font-weight: 600; line-height: 1.35; color: #fff; letter-spacing: -.01em; text-wrap: balance; }
.hn-satz.dringend { color: #ffb3ba; }
.hn-punkt { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--muted); }
[data-stufe="gut"] .hn-punkt { background: var(--ok); }
[data-stufe="achtung"] .hn-punkt { background: var(--warn); }
[data-stufe="kritisch"] .hn-punkt { background: var(--crit); box-shadow: 0 0 0 4px rgba(255, 93, 108, .18); }

.hn-ampel { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.hn-lampe { display: flex; flex-direction: column; gap: 6px; min-height: 76px; padding: 14px 16px; text-align: left; font: inherit; color: var(--silver); cursor: pointer;
  border-radius: 14px; border: 1px solid var(--line); background: rgba(11, 22, 38, .9); transition: border-color .18s ease, background-color .18s ease; }
.hn-lampe:hover, .hn-lampe:focus-visible { border-color: var(--glass-line); background: rgba(0, 102, 255, .1); outline: none; }
.hn-lampe:focus-visible { box-shadow: 0 0 0 2px var(--light); }
.hn-lampe[data-stufe="achtung"] { border-color: rgba(245, 183, 75, .35); }
.hn-lampe[data-stufe="kritisch"] { border-color: rgba(255, 93, 108, .55); background: rgba(255, 93, 108, .08); }
.hn-lampe-titel { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: #fff; }
.hn-lampe-text { font-size: 14px; line-height: 1.35; }
.hn-lampe[data-stufe="unbekannt"] .hn-lampe-text { color: var(--muted); }

.hn-spalten { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, 1fr); gap: 18px; align-items: start; }
.hn-seite { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.hn-block { background: rgba(11, 22, 38, .9); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; min-width: 0; }
.hn-block h2 { margin: 0; font-size: 15px; font-weight: 700; color: #fff; letter-spacing: 0; text-transform: none; }
.hn-kopfzeile { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.hn-leer { margin: 10px 0 0; color: var(--muted); font-size: 14px; }

.hn-naechstes { border-color: var(--glass-line); }
.hn-schritte { list-style: none; margin: 10px 0 0; padding: 0; }
.hn-schritt { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 13px 0; border-top: 1px solid var(--line); }
.hn-schritte > .hn-schritt:first-child { border-top: 0; }
.hn-schritt[data-prio="kritisch"] .hn-punkt { background: var(--crit); box-shadow: 0 0 0 4px rgba(255, 93, 108, .18); }
.hn-schritt[data-prio="hoch"] .hn-punkt { background: var(--warn); }
.hn-schritt[data-prio="normal"] .hn-punkt { background: var(--light); }
.hn-schritt[data-prio="info"] .hn-punkt { background: transparent; border: 2px solid var(--muted); width: 8px; height: 8px; }
.hn-schritt-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hn-schritt-text b { font-size: 15.5px; font-weight: 600; color: #fff; line-height: 1.35; }
.hn-schritt-text span { font-size: 13.5px; color: var(--silver); opacity: .8; }
.hn-knopf { flex: none; min-height: 38px; padding: 8px 16px; border-radius: 10px; border: 1px solid rgba(0, 102, 255, .6); background: rgba(0, 102, 255, .16); color: #fff;
  font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: background-color .15s ease; }
.hn-knopf:hover, .hn-knopf:focus-visible { background: var(--blue); outline: none; }
.hn-knopf:focus-visible { box-shadow: 0 0 0 2px var(--light); }
.hn-schritt[data-prio="kritisch"] .hn-knopf { background: var(--blue); border-color: var(--blue); }
.hn-weitere { margin-top: 6px; border-top: 1px solid var(--line); padding-top: 10px; }
.hn-weitere summary, .hn-notizen summary, .hn-technik summary { cursor: pointer; color: var(--light); font-size: 13.5px; }

.hn-zahlen { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; margin-top: 12px; }
.hn-zahl { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hn-zahl b { font-size: 24px; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.hn-zahl span { font-size: 12.5px; color: var(--muted); }
.hn-link { background: none; border: 0; padding: 0; font: inherit; font-size: 13px; color: var(--light); cursor: pointer; text-align: left; text-underline-offset: 3px; }
.hn-link:hover, .hn-link:focus-visible { text-decoration: underline; outline: none; color: #fff; }
.hn-link.klein { font-size: 12px; align-self: flex-start; }

.hn-neu { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.hn-neu-eintrag { display: inline-flex; gap: 4px; align-items: baseline; padding: 7px 12px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04);
  color: var(--silver); font: inherit; font-size: 13.5px; cursor: pointer; }
.hn-neu-eintrag b { color: #fff; font-variant-numeric: tabular-nums; }
.hn-neu-eintrag:hover, .hn-neu-eintrag:focus-visible { border-color: var(--glass-line); color: #fff; outline: none; }

.hn-notizen summary { display: flex; align-items: center; gap: 10px; list-style: none; color: inherit; }
.hn-notizen summary::-webkit-details-marker { display: none; }
.hn-notizen summary::after { content: ''; margin-left: auto; width: 7px; height: 7px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .18s ease; }
.hn-notizen[open] summary::after { transform: rotate(-135deg); }
.hn-zaehler { font-size: 12px; padding: 0 8px; border-radius: 999px; background: rgba(0, 180, 255, .15); color: var(--light); }
.hn-notizen ul { list-style: none; margin: 10px 0 6px; padding: 0; }
.hn-notizen li { display: flex; flex-direction: column; gap: 1px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.hn-notizen li:first-child { border-top: 0; }
.hn-notizen small { color: var(--muted); font-size: 12px; }

.hn-technik { border-top: 1px solid var(--line); padding: 12px 2px 0; font-size: 13px; color: var(--muted); }
.hn-technik summary { display: flex; gap: 10px; flex-wrap: wrap; color: var(--muted); }
.hn-technik summary b { color: var(--silver); font-weight: 600; }
.hn-technik ul { list-style: none; margin: 10px 0 0; padding: 0; max-width: 720px; }
.hn-technik li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-top: 1px solid var(--line); }
.hn-klein { margin: 10px 0 0; font-size: 12.5px; color: var(--muted); }

@media (max-width: 1100px) { .hn-ampel { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hn-spalten { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .hn { gap: 14px; padding-bottom: 28px; }
  .hn-ampel { gap: 8px; }
  .hn-lampe { min-height: 0; padding: 11px 12px; }
  .hn-lampe-text { font-size: 13px; }
  .hn-block { padding: 14px; }
  .hn-schritt { grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; }
  .hn-schritt .hn-knopf { grid-column: 2; justify-self: start; margin-top: 6px; }
}
@media (prefers-reduced-motion: reduce) { .hn-lampe, .hn-knopf, .hn-notizen summary::after { transition: none; } }

/* Kleine Karte „Heute“ in der 3D-Zentrale */
.z-satz { margin: 6px 0 10px; font-size: 15px; font-weight: 600; line-height: 1.4; color: #fff; }
.z-lampen { display: flex; flex-wrap: wrap; gap: 6px 12px; margin: 0 0 12px; font-size: 12px; color: var(--silver); }
.z-lampe { display: inline-flex; align-items: center; gap: 6px; }
.z-lampe i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.z-lampe[data-stufe="gut"] i { background: #2ecc8f; } .z-lampe[data-stufe="achtung"] i { background: #f5b74b; } .z-lampe[data-stufe="kritisch"] i { background: #ff5d6c; }
.z-liste button b { display: block; font-weight: 600; color: #fff; }
.z-liste button small { display: block; font-size: 12px; color: var(--muted); margin-top: 1px; }
/* ---------- Vertrieb & Marketing ---------- */
.vt-kpis-8 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kpi .vt-est { font-style: normal; font-size: 11px; font-weight: 700; color: #ffc960; }
.vt-side { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.vt-stack { display: grid; gap: 14px; align-content: start; }
.vt-sub { display: block; color: var(--muted); font-size: 12px; }
.vt-funnel { display: grid; gap: 8px; margin-bottom: 12px; }
.vt-funnel-row { display: grid; grid-template-columns: 200px 1fr 44px; gap: 12px; align-items: center; font-size: 13px; color: var(--silver); }
.vt-funnel-row b { text-align: right; color: var(--white); }
.vt-bar { height: 10px; border-radius: 5px; background: rgba(201, 210, 225, .08); overflow: hidden; }
.vt-bar i { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, var(--blue), var(--light)); }
.vt-checks { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 6px; }
.vt-checks li { display: flex; gap: 10px; align-items: baseline; padding: 9px 12px; border-radius: 10px; background: rgba(255, 255, 255, .025); font-size: 13px; }
.vt-checks li::before { content: "✓"; font-weight: 800; color: #6fe8a8; }
.vt-checks li.no::before { content: "✕"; color: #ffa3b1; }
.vt-checks li.q::before { content: "?"; color: #ffc960; }
.vt-checks small { display: block; color: var(--muted); font-size: 12px; }
.vt-legal { display: grid; gap: 6px; padding: 14px 16px; border-radius: 14px; font-size: 13px; margin-bottom: 12px; }
.vt-legal.ok { background: rgba(43, 217, 124, .08); box-shadow: inset 0 0 0 1px rgba(43, 217, 124, .35); }
.vt-legal.warn { background: rgba(255, 176, 32, .08); box-shadow: inset 0 0 0 1px rgba(255, 176, 32, .4); }
.vt-legal.crit { background: rgba(255, 110, 130, .09); box-shadow: inset 0 0 0 1px rgba(255, 110, 130, .45); }
.vt-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin-bottom: 14px; }
.vt-toolbar .field { min-width: 160px; flex: 1; }
.vt-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.vt-chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; font-size: 12.5px; color: var(--silver); background: rgba(0, 102, 255, .08); border: 1px solid rgba(0, 180, 255, .18); cursor: pointer; }
.vt-chip input { accent-color: var(--light); }
.vt-dossier-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; align-items: start; }
.ws-card .vt-title { margin: 0; font-size: 22px; letter-spacing: -.01em; text-transform: none; color: var(--white); }
.vt-score-wrap { display: flex; gap: 14px; align-items: center; }
.vt-score-wrap small { display: block; color: var(--muted); font-size: 12px; }
.vt-score { display: grid; place-items: center; width: 92px; height: 92px; border-radius: 50%; background: conic-gradient(var(--light) calc(var(--v) * 1%), rgba(201, 210, 225, .1) 0); }
.vt-score span { display: grid; place-items: center; width: 74px; height: 74px; border-radius: 50%; background: var(--navy-2); font-size: 24px; font-weight: 800; }
.vt-timeline { list-style: none; margin: 12px 0 0; padding: 0 0 0 14px; border-left: 1px solid var(--glass-line); display: grid; gap: 10px; }
.vt-timeline li { position: relative; font-size: 13px; color: var(--silver); }
.vt-timeline li::before { content: ""; position: absolute; left: -19px; top: 5px; width: 9px; height: 9px; border-radius: 50%; background: var(--light); }
.vt-timeline time { display: block; font-size: 11.5px; color: var(--muted); }
.vt-assets { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 12px; }
.vt-asset { display: grid; gap: 6px; padding: 10px; border-radius: 14px; background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px var(--line); border: 0; color: inherit; cursor: pointer; text-align: left; font: inherit; }
.vt-asset[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--light), 0 0 20px rgba(0, 120, 255, .3); }
.vt-asset b { font-size: 12.5px; }
.vt-asset small { font-size: 11px; color: var(--muted); }
.vt-thumb { height: 170px; border-radius: 10px; overflow: hidden; display: grid; place-items: center; background: rgba(2, 6, 14, .6); }
.vt-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.vt-personal { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 18px; align-items: start; }
.vt-canvas { width: 260px; height: auto; border-radius: 18px; box-shadow: 0 0 0 1px var(--line); }
.vt-inbox { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 18px; align-items: start; }
.vt-mail-list { display: grid; gap: 6px; }
.mail-row[aria-current="true"] { border-color: var(--light); background: rgba(0, 102, 255, .14); }
.vt-thread { display: grid; gap: 12px; margin-bottom: 12px; }
.vt-msg { padding: 14px; border-radius: 12px; background: rgba(2, 6, 14, .5); box-shadow: inset 0 0 0 1px var(--line); }
.vt-msg.out { box-shadow: inset 3px 0 0 var(--blue), inset 0 0 0 1px var(--line); }
.vt-msg header { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; align-items: center; font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.vt-msg header b { color: var(--white); }
.vt-msg pre { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; font-size: 13px; line-height: 1.55; color: var(--silver); }
.vt-board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 12px; }
.vt-col { display: grid; gap: 10px; align-content: start; padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, .02); box-shadow: inset 0 0 0 1px var(--line); }
.vt-col h4 { margin: 0 0 4px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.vt-task { display: grid; gap: 6px; padding: 12px; border-radius: 12px; background: rgba(0, 102, 255, .06); border: 1px solid rgba(0, 180, 255, .16); font-size: 13px; }
.vt-task small { color: var(--muted); font-size: 12px; }
.vt-row { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.vt-row .status-select { width: auto; padding: 5px 8px; font-size: 12px; }
@media (max-width: 1180px) { .vt-side, .vt-inbox { grid-template-columns: 1fr; } }
@media (max-width: 960px) { .vt-board { grid-template-columns: 1fr; } .vt-kpis-8 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .vt-personal { grid-template-columns: 1fr; } .vt-funnel-row { grid-template-columns: 1fr 40px; } .vt-funnel-row .vt-bar { grid-column: 1 / -1; grid-row: 2; } }
.field input[type="color"] { height: 44px; padding: 4px; cursor: pointer; }
.ws-card .facts + .field { margin-top: 14px; }
.ws-card .field + .field { margin-top: 12px; }
/* In Raster-Formularen sorgt der Spaltenabstand für Luft, sonst rutscht das zweite Feld nach unten */
.ws-card :is(.form, .form-grid) > .field + .field { margin-top: 0; }
.vt-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.vt-product { display: grid; gap: 8px; align-content: start; padding: 16px; border-radius: 14px; text-align: left; font: inherit; color: inherit; cursor: pointer; background: rgba(0, 102, 255, .06); border: 1px solid rgba(0, 180, 255, .18); }
.vt-product b { font-size: 15px; }
.vt-product small { color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.vt-product[aria-pressed="true"] { border-color: var(--light); box-shadow: 0 0 24px rgba(0, 120, 255, .35); background: rgba(0, 102, 255, .14); }
.vt-product.is-off { cursor: default; opacity: .6; background: rgba(255, 255, 255, .02); border-color: var(--line); }
.vt-branchen { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.vt-branche { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; font-size: 13px; }
.vt-branche input { margin-top: 3px; accent-color: var(--light); }
.vt-branche small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.vt-steps { margin: 0 0 14px; padding-left: 20px; display: grid; gap: 6px; font-size: 13.5px; color: var(--silver); line-height: 1.5; }

/* ---------- Anmeldung ---------- */
body.login-page { overflow: auto; display: grid; place-items: center; min-height: 100%; padding: 16px; background: radial-gradient(90% 70% at 50% 20%, rgba(0, 102, 255, .18), transparent 70%), var(--navy); }
.login-box { width: min(380px, 100%); padding: 28px 24px; border-radius: 20px; border: 1px solid var(--glass-line); background: linear-gradient(160deg, rgba(10, 26, 47, .94), rgba(5, 10, 20, .96)); box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.login-logo { height: 34px; display: block; margin-bottom: 8px; }
.login-box h1 { margin: 0 0 20px; font-size: 12px; font-weight: 600; letter-spacing: .32em; text-transform: uppercase; color: var(--silver); }
.login-msg { margin: 0; min-height: 1.2em; color: #ffa3b1; font-size: 13px; }
.vt-qr { width: 220px; padding: 12px; border-radius: 14px; background: #fff; }
.vt-qr svg { display: block; width: 100%; height: auto; }
.vt-files { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.vt-file { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: #7fd8ff; text-decoration: none; background: rgba(0, 180, 255, .1); box-shadow: inset 0 0 0 1px rgba(0, 180, 255, .3); }
.vt-file:hover, .vt-file:focus-visible { color: var(--white); background: rgba(0, 180, 255, .2); outline: none; }
.vt-bulk { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; padding: 12px 14px; border-radius: 12px; background: rgba(0, 102, 255, .06); box-shadow: inset 0 0 0 1px rgba(0, 180, 255, .16); }
.vt-bulk .status-select { width: auto; min-width: 120px; }

/* ---------- 3D-Zentrale mit Karte „Heute“ rechts (Menü: Leiste unten) ---------- */
.z-karte {
  position: absolute; right: 24px; top: 86px; z-index: 25; width: min(340px, calc(100vw - 32px)); max-height: calc(100vh - 86px - var(--ml-platz) - 12px);
  overflow-y: auto; padding: 18px; border-radius: 18px;
  background: linear-gradient(160deg, rgba(10, 26, 47, 0.9), rgba(5, 10, 20, 0.92)); border: 1px solid var(--glass-line);
  backdrop-filter: blur(14px); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}
.z-karte.zu { width: auto; padding: 0; background: none; border: 0; box-shadow: none; backdrop-filter: none; }
body.panel-offen .z-karte { display: none; }
.z-karte-kopf { display: flex; justify-content: space-between; align-items: center; }
.z-karte h2 { margin: 0; font-size: 19px; }
.z-karte-knopf { background: none; border: 0; color: var(--muted); font: inherit; font-size: 12px; cursor: pointer; }
.z-karte-knopf:hover, .z-karte-knopf:focus-visible { color: #fff; outline: none; }
.z-karte-mini { display: flex; gap: 8px; align-items: center; padding: 9px 16px; border-radius: 999px; cursor: pointer; font: inherit; font-weight: 600; color: #fff;
  background: var(--glass); border: 1px solid var(--glass-line); backdrop-filter: blur(14px); }
.z-note { margin: 4px 0 12px; font-size: 12.5px; color: var(--muted); }
.z-liste { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.z-liste li { position: relative; padding: 9px 10px 9px 26px; border-radius: 10px; background: rgba(255, 255, 255, .035); font-size: 13.5px; line-height: 1.4; }
.z-liste li::before { content: ''; position: absolute; left: 10px; top: 15px; width: 8px; height: 8px; border-radius: 50%; background: var(--light); }
.z-liste li.warn::before { background: #f5b74b; } .z-liste li.crit::before { background: #ff5d6c; } .z-liste li.ok::before { background: #2ecc8f; }
.z-liste button { all: unset; cursor: pointer; display: block; }
.z-liste button:hover, .z-liste button:focus-visible { color: #fff; text-decoration: underline; }
.z-zahlen { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 4px 0 12px; }
.z-zahlen div { padding: 10px 12px; border-radius: 12px; border: 1px solid var(--glass-line); background: rgba(0, 102, 255, .06); }
.z-zahlen b { display: block; font-size: 20px; color: #fff; }
.z-zahlen span { font-size: 12px; color: var(--muted); }
.z-alle { display: block; width: 100%; margin-top: 6px; text-align: center; }
/* Solange „Heute“ oder ein Arbeitsfenster offen ist, scheinen Karte und Raumschilder nicht durch */
.center:has(> .heute:not([hidden])) :is(.z-karte, .hud-hint, .labels),
.center:has(> .workspace:not([hidden])) :is(.z-karte, .hud-hint, .labels) { visibility: hidden; }
/* Die alte Abteilungsleiste bleibt unsichtbar; die Menüleiste unten (.ml) ersetzt sie */
.dock { display: none; }
@media (max-width: 900px) {
  .hud-hint span { display: none; }
  /* Karte endet über dem Assistent-Knopf (.ki-start: 54px + 12px über der Leiste) */
  .z-karte { top: auto; bottom: calc(var(--ml-platz) + 78px); left: 16px; right: 16px; width: auto; max-height: 40vh; }
  .z-karte.zu { left: auto; }
}
/* Legal & Compliance: Fassungsvergleich (Einfügungen und Löschungen) */
.diff ins { color: #6fe8a8; background: rgba(43, 217, 124, .14); text-decoration: none; border-radius: 3px; }
.diff del { color: #ffa3b1; background: rgba(255, 110, 130, .14); text-decoration: line-through; border-radius: 3px; }

/* ---------- Überarbeitung 09.11.2026: Gruppen im Arbeitsfenster, Mail-Auswahl, Menüleiste fürs Handy ---------- */
.ws-grp { margin: 12px 10px 2px; font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ws-grp:first-child { margin-top: 2px; }
.ws-tab.in-grp { padding-left: 15px; }
.ws-nav-knopf { display: none; }

.mail-auswahl { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin-bottom: 12px; padding: 10px 14px; border-radius: 12px; background: rgba(0, 102, 255, .06); box-shadow: inset 0 0 0 1px rgba(0, 180, 255, .16); }
.mail-auswahl .actions { margin-left: auto; }
.mail-alle { display: inline-flex; gap: 8px; align-items: center; font-size: 13px; font-weight: 600; color: var(--silver); cursor: pointer; }
.mail-auswahl input[type="checkbox"], .mail-check { width: 18px; height: 18px; accent-color: var(--blue); cursor: pointer; flex: none; }
.mail-list.mit-auswahl li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start; }
.mail-list.mit-auswahl .mail-check { margin-top: 13px; }
.btn-ghost:disabled { opacity: .45; cursor: not-allowed; }

@media (max-width: 960px) {
  /* Im Arbeitsfenster: Ansichten als aufklappbare Liste statt versteckter Reiter */
  .ws-body { grid-template-rows: auto auto 1fr; }
  .ws-nav-knopf { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 10px 12px 0; padding: 10px 14px; border-radius: 12px;
    border: 1px solid var(--glass-line); background: rgba(0, 102, 255, .1); color: #fff; font-size: 13.5px; text-align: left; cursor: pointer; }
  .ws-nav-knopf span { color: var(--silver); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .ws-nav-knopf b { flex: none; }
  .ws-body > .ws-nav { display: none; }
  .ws-body.nav-offen > .ws-nav { display: flex; flex-direction: column; overflow-x: visible; max-height: 55vh; overflow-y: auto; border-bottom: 1px solid var(--line); padding: 8px 12px 12px; }
  .ws-body.nav-offen > .ws-nav .ws-tab span { white-space: normal; }
}
@media (max-width: 760px) {
  /* Kopfzeile: nur Marke und Warnungen, damit nichts übereinanderliegt */
  .status > .chip:not(.chip-alert) { display: none; }
  .status { flex-wrap: wrap; justify-content: flex-end; }
  .mail-auswahl .actions { margin-left: 0; width: 100%; }
  .mail-auswahl .actions .btn-ghost { flex: 1; }
}

.ws-intro { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--silver); }
@media (max-width: 900px) { .z-lampen { display: none; } }

/* ---------- Menüleiste unten (ab 10.11.2026): Bereiche mit Zahl, Klick öffnet die Menüpunkte darüber ----------
   Nur Tokens und Bausteine aus diesem Stylesheet: Glas wie .panel/.z-karte, Knöpfe wie die frühere .dock-Leiste, Zahl wie .h-badge */
/* Mittig ohne transform: ein transform würde die Liste (.ml-pop, position: fixed) an die Leiste statt an das Fenster binden und nach rechts verschieben */
.ml { position: fixed; left: 0; right: 0; bottom: 14px; margin-inline: auto; width: fit-content; z-index: 60;
  /* Rechts unten sitzt der Assistent-Knopf (.ki-start, 24px + 58px): die Leiste bleibt mittig und berührt ihn nie */
  max-width: calc(100vw - 2 * 98px); }
.ml-reihe { display: flex; gap: 4px; padding: 6px; border-radius: 18px;
  background: linear-gradient(160deg, rgba(10, 26, 47, 0.9), rgba(5, 10, 20, 0.92)); border: 1px solid var(--glass-line);
  backdrop-filter: blur(14px); box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45); }
.ml-knopf { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 5px; min-width: 76px; min-height: 44px; white-space: nowrap;
  padding: 7px 8px 6px; border: 1px solid transparent; border-radius: 12px; background: transparent; cursor: pointer;
  font: inherit; font-size: 11px; font-weight: 600; line-height: 1.2; color: var(--silver); text-align: center; transition: background-color .2s, border-color .2s, color .2s; }
/* Symbol als Kachel im Markenverlauf wie .dock-item und .room-label */
.ml-ico { position: relative; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px;
  background: linear-gradient(135deg, var(--blue), var(--light)); box-shadow: 0 0 14px rgba(0, 120, 255, 0.35); transition: box-shadow .2s; }
.ml-ico img { width: 18px; height: 18px; }
.ml-knopf:hover, .ml-knopf:focus-visible, .ml-knopf[aria-expanded="true"], .ml-knopf[aria-current="page"] {
  background: rgba(0, 102, 255, 0.14); border-color: var(--glass-line); color: var(--white); outline: none; }
.ml-knopf:focus-visible { border-color: var(--light); }
.ml-knopf[aria-expanded="true"] .ml-ico, .ml-knopf[aria-current="page"] .ml-ico { box-shadow: 0 0 18px rgba(0, 120, 255, 0.55); }
.ml-kurz, .ml-mehr { display: none; }
/* Zahl: gleiche Form und Farben wie .h-badge auf „Heute“ */
.ml-zahl { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 7px; border-radius: 999px;
  background: var(--blue); color: var(--white); font-size: 12px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.ml-zahl.crit { background: var(--crit); }
.ml-zahl.info { background: rgba(125, 138, 163, .22); color: var(--silver); }
.ml-ico > .ml-zahl { position: absolute; top: -8px; right: -12px; box-shadow: 0 0 0 2px var(--navy-2); }
.ml-ico > .ml-zahl.crit { animation: ml-puls 2.4s ease-out 2; }
@keyframes ml-puls { 0% { box-shadow: 0 0 0 2px var(--navy-2), 0 0 0 2px rgba(255, 93, 108, .6); } 100% { box-shadow: 0 0 0 2px var(--navy-2), 0 0 0 10px rgba(255, 93, 108, 0); } }

/* Liste über dem Knopf: Glas wie .z-karte, Einträge wie die frühere Menüspalte */
.ml-pop { position: fixed; bottom: var(--ml-platz); z-index: 61; width: 300px; max-height: min(60vh, 520px); overflow-y: auto; padding: 8px;
  border-radius: 18px; background: linear-gradient(160deg, rgba(10, 26, 47, 0.96), rgba(5, 10, 20, 0.97)); border: 1px solid var(--glass-line);
  backdrop-filter: blur(14px); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45); transform-origin: bottom center; animation: ml-auf .18s cubic-bezier(.2, .8, .2, 1); }
.ml-pop[hidden] { display: none; }
@keyframes ml-auf { from { opacity: 0; transform: translateY(6px) scale(.98); } }
.ml-titel { margin: 6px 10px; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ml-titel:not(:first-child) { margin-top: 14px; }
.ml-pop ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.ml-punkt { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 40px; padding: 8px 10px; border: 0; border-radius: 10px;
  background: none; cursor: pointer; font: inherit; font-size: 14px; color: var(--silver); text-align: left; }
.ml-punkt:hover, .ml-punkt:focus-visible { background: rgba(0, 102, 255, .18); color: var(--white); outline: none; }
.ml-punkt:focus-visible { box-shadow: inset 0 0 0 1px var(--light); }

@media (max-width: 1240px) {
  .ml-lang { display: none; }
  .ml-kurz { display: inline; }
  .ml-knopf { min-width: 66px; }
}
@media (max-width: 900px) {
  /* Leiste über die ganze Breite; Platz unten schließt den Rand des Handys (Home-Leiste) mit ein */
  :root { --ml-platz: calc(66px + env(safe-area-inset-bottom)); }
  .ml { left: 0; right: 0; bottom: 0; width: auto; max-width: none; }
  .ml-reihe { justify-content: space-around; gap: 2px; padding: 5px 4px calc(5px + env(safe-area-inset-bottom)); border-radius: 0; border-width: 1px 0 0; box-shadow: none; }
  .ml-knopf { flex: 1 1 0; min-width: 0; min-height: 54px; padding: 5px 0 4px; gap: 4px; font-size: 11px; }
  .ml-kurz { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; padding: 0 2px; }
  .ml-ico { width: 30px; height: 30px; }
  .ml-ico > .ml-zahl { top: -7px; right: -11px; }
  .ml-breit { display: none; }
  .ml-mehr { display: flex; }
  .ml-pop { left: 8px !important; right: 8px; width: auto; max-height: 62vh; }
  .ml-punkt { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) { .ml-pop, .ml-ico > .ml-zahl.crit { animation: none; } .ml-knopf, .ml-ico { transition: none; } }

/* ---------- Video-Studio (Social Media Studio, Stufe 1) ---------- */
.vs-player { display: block; width: 100%; max-height: 72vh; border-radius: 14px; background: #02060d; box-shadow: inset 0 0 0 1px var(--line); object-fit: contain; }
.vs-player.vs-f-9x16 { aspect-ratio: 9 / 16; max-width: 400px; margin: 0 auto; }
.vs-player.vs-f-1x1 { aspect-ratio: 1 / 1; max-width: 560px; margin: 0 auto; }
.vs-player.vs-f-16x9 { aspect-ratio: 16 / 9; }
.vs-leer { display: grid; place-items: center; color: var(--muted); font-size: 13px; padding: 20px; text-align: center; }
.vs-freigabe { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 18px; align-items: start; }
.vs-buehne { position: sticky; top: 0; }
.vs-pre { white-space: pre-wrap; }
.vs-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.btn-ghost.is-on { border-color: var(--light); color: var(--white); background: rgba(0, 102, 255, .14); }
.vs-galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.vs-kachel { display: grid; gap: 8px; padding: 10px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); color: inherit; font: inherit; text-align: left; cursor: pointer; transition: border-color .2s, transform .2s; }
.vs-kachel:hover, .vs-kachel:focus-visible { border-color: var(--light); transform: translateY(-2px); outline: none; }
.vs-kachel img, .vs-kachel-leer { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 10px; background: #02060d; }
.vs-kachel-leer { display: grid; place-items: center; color: var(--muted); }
.vs-kachel b { font-size: 13px; line-height: 1.3; }
.vs-kal-kopf { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.vs-monat { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.vs-wt { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 0 6px; }
.vs-woche { display: grid; gap: 8px; }
.vs-tag { min-height: 92px; padding: 6px; border-radius: 10px; background: rgba(255, 255, 255, .025); box-shadow: inset 0 0 0 1px var(--line); display: grid; align-content: start; gap: 5px; min-width: 0; transition: box-shadow .15s, background .15s; }
.vs-woche .vs-tag { min-height: 0; padding: 10px 12px; }
.vs-tag.is-aus { opacity: .45; }
.vs-tag.is-heute { box-shadow: inset 0 0 0 1px var(--light); }
.vs-tag.is-ziel { background: rgba(0, 102, 255, .14); box-shadow: inset 0 0 0 2px var(--light); }
.vs-datum { font-size: 12px; font-weight: 700; color: var(--silver); }
.vs-eintrag { display: grid; gap: 3px; padding: 6px 8px; border-radius: 8px; font-size: 11.5px; background: rgba(0, 102, 255, .12); border-left: 3px solid var(--blue); min-width: 0; overflow-wrap: anywhere; }
.vs-eintrag[draggable="true"] { cursor: grab; }
.vs-eintrag span { color: var(--silver); }
.vs-eintrag small { color: var(--muted); }
.vs-eintrag.vs-ausstehend, .vs-eintrag.vs-pruefen { border-left-color: #ffb020; background: rgba(255, 176, 32, .1); }
.vs-eintrag.vs-fehlgeschlagen { border-left-color: #ff6e82; background: rgba(255, 110, 130, .1); }
.vs-eintrag.vs-veroeffentlicht { border-left-color: #2bd97c; background: rgba(43, 217, 124, .08); }
.vs-eintrag.vs-pausiert, .vs-eintrag.vs-uebersprungen { opacity: .55; }
.vs-woche .vs-eintrag { font-size: 13px; padding: 10px 12px; }
@media (max-width: 960px) { .vs-freigabe { grid-template-columns: 1fr; } .vs-buehne { position: static; } }
@media (max-width: 760px) {
  .vs-monat { grid-template-columns: 1fr; }
  .vs-wt, .vs-tag.is-aus { display: none; }
  .vs-tag { min-height: 0; }
}

/* Video-Studio: Anweisung an das Studio */
.vs-vorschlaege .btn-ghost { font-size: 12px; padding: 4px 10px; }
.vs-freigabe .field textarea { width: 100%; min-height: 72px; }


/* ---------- EMQON AI Voice (nur neue Klassen) ---------- */
.vwin { display: grid; gap: 16px; padding: 0 20px 20px; border-radius: 24px; background: linear-gradient(170deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015)); box-shadow: inset 0 0 0 1px var(--line), 0 0 40px rgba(0, 102, 255, .12); }
.vwin-bar { display: flex; justify-content: space-between; align-items: center; margin: 0 -20px; padding: 10px 20px; border-bottom: 1px solid var(--line); font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.vwin-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.vwin-head h3 { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.vwin-head small { color: var(--silver); font-size: 12.5px; }
.vchart-wrap { margin: 0; }
.vchart { width: 100%; height: auto; display: block; }
.vchart-axis { stroke: var(--line); stroke-width: 1; }
.vchart-bar { fill: var(--blue); }
.vchart-bar:hover { fill: var(--light); }
.vchart-line { fill: none; stroke: var(--light); stroke-width: 2; }
.vchart-label { fill: var(--muted); font-size: 11px; }
.vchart-wrap figcaption { margin-top: 6px; font-size: 12px; color: var(--muted); }
.vlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.vlist li { display: flex; gap: 10px; align-items: center; justify-content: space-between; font-size: 13px; color: var(--silver); }
.vpos { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 12.5px; }
.vpos li { display: flex; justify-content: space-between; gap: 12px; }
.vchecks { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; font-size: 13px; color: var(--silver); }
.vchecks legend { padding: 0 6px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.vchecks label, .vcheck { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--silver); }
.vchecks input, .vcheck input { accent-color: var(--light); width: 16px; height: 16px; }
.ws-card details summary { cursor: pointer; margin: 12px 0; color: var(--light); font-size: 13px; font-weight: 600; }
@media (max-width: 720px) { .vwin { padding: 0 14px 14px; } .vwin-bar { margin: 0 -14px; padding: 10px 14px; } .vwin-head { flex-direction: column; } }
.vportal-body { overflow: auto; height: auto; min-height: 100%; background: radial-gradient(ellipse at top, rgba(0, 102, 255, .14), transparent 60%), var(--navy); }
.vportal { max-width: 1080px; margin: 0 auto; padding: 24px 16px 60px; display: grid; gap: 18px; }
.vportal-top { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.vportal-top .btn-ghost { margin-left: auto; }
.vportal .ws-toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); }
@media (max-width: 720px) { .vportal .kpis { grid-template-columns: 1fr 1fr; } .vportal .grid-2 { grid-template-columns: 1fr; } }

/* AI Voice – Einrichtungsassistent */
.stack { display: grid; gap: 14px; align-content: start; }
.vsteps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.vstep { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .025); }
.vstep div { display: grid; gap: 2px; min-width: 0; }
.vstep small { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.vstep-nr { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: rgba(125, 138, 163, .18); color: var(--silver); }
.vstep.geprueft .vstep-nr { background: rgba(43, 217, 124, .2); color: #6fe8a8; }
.vstep.erledigt .vstep-nr { background: rgba(0, 102, 255, .25); color: #8fc4ff; }
.vstep.warnung .vstep-nr { background: rgba(255, 176, 32, .2); color: #ffc960; }
@media (max-width: 720px) { .vstep { grid-template-columns: 26px 1fr; } .vstep .pill { grid-column: 2; justify-self: start; } }
