/* =====================================================================
   HOLDEN SmartPanel – Designsystem
   Prinzipien: ruhige, dunkle Grundfläche · Farbe nur mit Bedeutung
   (ISA-101) · Blau = Interaktion/Auswahl · Grün/Gelb/Rot = Zustand
   Touch-Ziele ≥ 48 px · tabellarische Ziffern · 1280 × 800 Raster
   ===================================================================== */
:root {
  --bg: #0B1117; --s1: #121A22; --s2: #18222C; --s3: #202C38; --s4: #2A3846;
  --line: #222E3A; --line-2: #2E3D4D;
  --tx: #EAF0F6; --tx-2: #9CADBF; --tx-3: #64768A;
  --acc: #2F9BFF; --acc-2: #6CB8FF; --acc-dim: rgba(47, 155, 255, .14); --acc-ink: #04121F;
  --ok: #34C98B; --ok-dim: rgba(52, 201, 139, .14);
  --warn: #F3B43F; --warn-dim: rgba(243, 180, 63, .15);
  --fault: #FF5B61; --fault-dim: rgba(255, 91, 97, .15);
  --setup: #9A8CFF; --setup-dim: rgba(154, 140, 255, .16);
  --r-s: 8px; --r-m: 12px; --r-l: 16px;
  --font: "Inter", "Inter Variable", "Segoe UI", Roboto, "Noto Sans", "DejaVu Sans", system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; background: #03060A; overflow: hidden; }
body {
  font-family: var(--font); color: var(--tx); font-size: 15px; line-height: 1.35;
  -webkit-font-smoothing: antialiased; user-select: none; -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  font-feature-settings: "tnum" 1, "cv11" 1, "ss01" 1;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; touch-action: manipulation; text-align: inherit; }
button:disabled { cursor: default; }
h1 { font-size: 26px; font-weight: 600; letter-spacing: -.01em; }
h2 { font-size: 20px; font-weight: 600; letter-spacing: -.005em; }
h3 { font-size: 12.5px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--tx-2); }
.eyebrow { display: block; font-size: 11.5px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--tx-3); }
.mono { font-family: "JetBrains Mono", "DejaVu Sans Mono", Consolas, monospace; font-size: .92em; letter-spacing: -.01em; }
.dim { color: var(--tx-3); } .small { font-size: 12.5px; } .acc { color: var(--acc-2) !important; }
.sp { flex: 1; } .w { width: 100%; } .mt { margin-top: 18px; } .center { text-align: center; }
.ok-t { color: var(--ok); } .warn-t { color: var(--warn); }
.fine { font-size: 12.5px; color: var(--tx-3); display: flex; align-items: center; gap: 6px; }
.fine.center { justify-content: center; }
.ic { flex: none; display: block; }
.scroll { overflow-y: auto; touch-action: pan-y; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--s4) transparent; }
.scroll::-webkit-scrollbar { width: 6px; } .scroll::-webkit-scrollbar-thumb { background: var(--s4); border-radius: 3px; }

/* ---------- Bühne ---------- */
.stage {
  position: absolute; left: 0; top: 0; width: 1280px; height: 800px; transform-origin: 0 0; overflow: hidden;
  background: radial-gradient(1200px 500px at 70% -10%, #13202D 0%, transparent 60%), var(--bg);
  display: grid; grid-template-rows: 72px auto 1fr 88px;
}
.stage > .top { grid-row: 1; } .stage > .banner { grid-row: 2; } .stage > .views { grid-row: 3; } .stage > .bottom { grid-row: 4; }

/* ---------- Kopfzeile ---------- */
.top { display: flex; align-items: center; gap: 14px; padding: 0 18px 0 14px; border-bottom: 1px solid var(--line); background: linear-gradient(#141D26, #10171E); }
.brand { display: flex; align-items: center; gap: 11px; padding: 6px 8px; border-radius: 12px; }
.brand-mark { width: 34px; height: 34px; }
.brand-t { display: flex; flex-direction: column; line-height: 1.15; }
.brand-t b { font-size: 14px; letter-spacing: .22em; font-weight: 700; }
.brand-t small { font-size: 12px; color: var(--tx-2); }
.state { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 18px 0 16px; border-radius: 23px; background: var(--s2); border: 1px solid var(--line-2); min-width: 210px; transition: background .3s, border-color .3s; }
.state .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--tx-3); box-shadow: 0 0 0 4px rgba(255, 255, 255, .04); }
.st-t { font-weight: 650; font-size: 16px; }
.st-s { font-size: 13px; color: var(--tx-2); margin-left: auto; padding-left: 8px; }
.state.ok .dot { background: var(--ok); box-shadow: 0 0 0 4px var(--ok-dim); }
.state.pulse .dot { animation: pulse 1s ease-in-out infinite; }
.state.setup { background: var(--setup-dim); border-color: rgba(154, 140, 255, .4); }
.state.setup .dot { background: var(--setup); }
.state.fault { background: var(--fault-dim); border-color: rgba(255, 91, 97, .55); }
.state.fault .dot { background: var(--fault); animation: pulse .9s ease-in-out infinite; }
.hdr-order { display: flex; align-items: center; gap: 18px; height: 46px; padding: 0 16px; border-radius: 12px; min-width: 0; }
.hdr-order:active { background: var(--s2); }
.ho-t { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.ho-t b { font-size: 15px; font-weight: 600; white-space: nowrap; }
.ho-t small { font-size: 12px; color: var(--tx-3); white-space: nowrap; }
.ho-p { display: flex; align-items: center; gap: 10px; }
.ho-p .bar { width: 120px; height: 6px; }
.ho-p small { font-size: 13px; color: var(--tx-2); width: 50px; }
.hdr-bell { position: relative; width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; color: var(--tx-2); background: var(--s2); border: 1px solid var(--line); }
.hdr-bell .badge-n:empty { display: none; }
.hdr-bell .badge-n { position: absolute; top: -5px; right: -5px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; font-size: 12px; font-weight: 700; display: grid; place-items: center; background: var(--acc); color: var(--acc-ink); border: 2px solid var(--bg); }
.hdr-bell.warn { color: var(--warn); } .hdr-bell.warn .badge-n { background: var(--warn); }
.hdr-bell.fault { color: var(--fault); border-color: rgba(255, 91, 97, .5); } .hdr-bell.fault .badge-n { background: var(--fault); color: #fff; }
.hdr-bell.unack .ic { animation: ring 1.6s ease-in-out infinite; transform-origin: 50% 20%; }
.user-chip { display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 14px 0 6px; border-radius: 25px; background: var(--s2); border: 1px solid var(--line); }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; background: linear-gradient(135deg, #2F9BFF, #6A7CFF); color: #fff; letter-spacing: .02em; }
.avatar.xl { width: 64px; height: 64px; font-size: 20px; }
.u-t { display: flex; flex-direction: column; line-height: 1.2; }
.u-t b { font-size: 14px; font-weight: 600; } .u-t small { font-size: 12px; color: var(--tx-3); }
.clock { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.15; min-width: 92px; }
.clock b { font-size: 19px; font-weight: 600; letter-spacing: .01em; }
.clock small { font-size: 12px; color: var(--tx-3); }

/* ---------- Störmeldebanner ---------- */
.banner { display: none; align-items: center; gap: 14px; height: 56px; padding: 0 18px; border-bottom: 1px solid rgba(255, 91, 97, .45); background: linear-gradient(90deg, rgba(255, 91, 97, .28), rgba(255, 91, 97, .08) 70%); }
.banner.show { display: flex; animation: slideDown .25s ease; }
.banner .bn-ic { color: var(--fault); }
.banner.unack .bn-ic { animation: pulse .9s ease-in-out infinite; }
.banner b { font-size: 16px; font-weight: 600; }
.banner .mono { padding: 3px 8px; border-radius: 6px; background: rgba(255, 91, 97, .2); color: #FFC9CB; font-weight: 600; }

/* ---------- Ansichten ---------- */
.views { position: relative; overflow: hidden; min-height: 0; }
.view { position: absolute; inset: 0; padding: 18px 20px; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .22s ease, transform .22s ease, visibility 0s .22s; }
.view.active { opacity: 1; visibility: visible; transform: none; transition: opacity .22s ease, transform .22s ease; }

/* ---------- Karten / Grundelemente ---------- */
.card { position: relative; background: linear-gradient(180deg, #141D26, #111920); border: 1px solid var(--line); border-radius: var(--r-l); padding: 16px 18px; min-height: 0; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; min-height: 26px; }
.chip { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 13px; font-size: 12.5px; font-weight: 600; background: var(--s3); color: var(--tx-2); white-space: nowrap; font-style: normal; }
.chip.ok { background: var(--ok-dim); color: var(--ok); }
.chip.warn { background: var(--warn-dim); color: var(--warn); }
.chip.fault { background: var(--fault-dim); color: var(--fault); }
.chip.setup { background: var(--setup-dim); color: var(--setup); }
.chip.acc { background: var(--acc-dim); color: var(--acc-2); }
.bar { position: relative; height: 8px; border-radius: 4px; background: var(--s3); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #1F7FE0, var(--acc)); transition: width .5s ease; }
.bar.lg { height: 12px; border-radius: 6px; }
.bar.warn i { background: var(--warn); }
.bar em { position: absolute; top: -2px; bottom: -2px; width: 2px; background: var(--tx-3); border-radius: 1px; }
.kv-list { display: flex; flex-direction: column; }
.kv { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--tx-2); }
.kv:last-child { border-bottom: 0; }
.kv b { color: var(--tx); font-weight: 600; text-align: right; }
.num { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; background: var(--s3); color: var(--tx-2); border: 1px solid var(--line-2); }
.num.lg { width: 44px; height: 44px; font-size: 18px; background: var(--acc-dim); color: var(--acc-2); border-color: rgba(47, 155, 255, .4); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 52px; padding: 0 20px; border-radius: var(--r-m); font-size: 15px; font-weight: 600; white-space: nowrap; transition: transform .08s, background .15s, opacity .15s; }
.btn:active:not(:disabled) { transform: scale(.97); }
.btn.sm { height: 40px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn.primary { background: var(--acc); color: var(--acc-ink); }
.btn.primary:disabled { background: var(--s3); color: var(--tx-3); }
.btn.ghost { background: var(--s2); border: 1px solid var(--line-2); }
.btn.ghost:disabled { opacity: .5; }
.btn.danger { background: var(--fault); color: #fff; }
.icon-btn { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; color: var(--tx-2); background: var(--s2); border: 1px solid var(--line-2); flex: none; }
.icon-btn:disabled { opacity: .3; }
.icon-btn:active:not(:disabled) { background: var(--s3); }
.simtag { font-style: normal; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; padding: 2px 6px; border-radius: 5px; background: var(--setup-dim); color: var(--setup); text-transform: uppercase; }
.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); }
.seg button { height: 42px; padding: 0 16px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--tx-2); display: flex; align-items: center; gap: 8px; }
.seg button.on { background: var(--s4); color: var(--tx); box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset; }
.seg.mini button { height: 36px; padding: 0 14px; font-size: 13px; }
.seg .cnt { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--s3); font-size: 12px; display: grid; place-items: center; }
.seg button.on .cnt { background: var(--acc); color: var(--acc-ink); }
.empty { height: 100%; min-height: 200px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--tx-3); text-align: center; }
.empty b { color: var(--tx-2); font-size: 16px; }
.empty .ic { color: var(--ok); opacity: .7; margin-bottom: 6px; }

/* ---------- Fußzeile ---------- */
.bottom { display: flex; align-items: stretch; gap: 14px; padding: 10px 14px 12px; border-top: 1px solid var(--line); background: linear-gradient(#0F161D, #0B1116); }
.nav { display: flex; gap: 6px; }
.nav-btn { position: relative; width: 108px; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; color: var(--tx-3); font-size: 12.5px; font-weight: 600; transition: background .2s, color .2s; }
.nav-btn.active { background: var(--acc-dim); color: var(--acc-2); }
.nav-btn.active::before { content: ""; position: absolute; top: -11px; left: 30%; right: 30%; height: 3px; border-radius: 0 0 3px 3px; background: var(--acc); }
.nav-btn:active { background: var(--s2); }
.nb-dot { position: absolute; top: 9px; right: 30px; width: 10px; height: 10px; border-radius: 50%; display: none; border: 2px solid #0D1319; }
.nb-dot.fault, .nb-dot.warn, .nb-dot.info, .nb-dot.setup { display: block; }
.nb-dot.fault { background: var(--fault); } .nb-dot.warn { background: var(--warn); } .nb-dot.info { background: var(--acc); } .nb-dot.setup { background: var(--setup); }
.ctx { flex: 1; display: flex; align-items: center; gap: 10px; padding: 0 16px; font-size: 13.5px; color: var(--tx-2); border-left: 1px solid var(--line); border-right: 1px solid var(--line); min-width: 0; }
.ctx-ic { color: var(--acc-2); }
.ctrl { display: flex; gap: 8px; }
.key { width: 96px; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 13px; font-weight: 650; background: linear-gradient(#25323F, #1C2732); border: 1px solid var(--line-2); box-shadow: 0 2px 0 #0A0F14, 0 1px 0 rgba(255, 255, 255, .06) inset; transition: transform .08s, opacity .2s; }
.key:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 0 0 #0A0F14; }
.key:disabled { opacity: .32; }
.k-start:not(:disabled) { color: var(--ok); border-color: rgba(52, 201, 139, .45); }
.k-start:not(:disabled) span { color: var(--tx); }
.k-reset.attn { color: var(--warn); border-color: rgba(243, 180, 63, .6); animation: glow 1.4s ease-in-out infinite; }
.k-reset.attn span { color: var(--tx); }

/* ---------- 1 Produktion ---------- */
.prod { display: grid; height: 100%; grid-template-columns: 1fr 1fr 1fr; grid-template-rows: 1.42fr 1fr; gap: 16px; }
.c-perf { grid-column: 1 / 3; display: flex; flex-direction: column; }
.perf-body { flex: 1; display: grid; grid-template-columns: 250px 1fr 250px; align-items: center; gap: 18px; min-height: 0; }
.gauge { position: relative; width: 250px; height: 250px; display: block; margin: auto; }
.gauge.tap { border-radius: 50%; }
.gauge.tap:active { background: radial-gradient(circle, var(--acc-dim) 0, transparent 65%); }
.g-svg { width: 100%; height: 100%; display: block; }
.g-ticks line { stroke: #2A3846; stroke-width: 3.6; stroke-linecap: round; transition: stroke .2s; }
.g-ticks line.mj { stroke-width: 4.2; }
.g-ticks line.on { stroke: var(--acc); }
.g-ticks line.head { stroke: #BFE1FF; }
.g-track { fill: none; stroke: var(--line-2); stroke-width: 2; }
.g-fill { fill: none; stroke: var(--acc); stroke-width: 2; opacity: .55; }
.g-set path { fill: var(--tx); }
.g-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding-bottom: 6px; pointer-events: none; }
.g-val { font-size: 58px; font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.g-unit { font-size: 13px; color: var(--tx-2); margin-top: 6px; }
.g-label { position: absolute; left: 0; right: 0; bottom: 30px; text-align: center; font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--tx-3); pointer-events: none; }
.g-scale { position: absolute; left: 50px; right: 50px; bottom: 8px; display: flex; justify-content: space-between; font-size: 12px; color: var(--tx-3); pointer-events: none; }
.perf-mid { display: flex; flex-direction: column; gap: 14px; }
.setp { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: 14px; background: var(--s2); border: 1px solid var(--line-2); transition: border-color .2s; }
.setp:active { border-color: var(--acc); }
.setp .big { font-size: 40px; font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }
.setp .big small { font-size: 14px; font-weight: 500; color: var(--tx-2); margin-left: 8px; letter-spacing: 0; }
.edit-hint { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--acc-2); font-weight: 600; }
.c-order { display: flex; flex-direction: column; }
.o-name { font-size: 23px; font-weight: 600; letter-spacing: -.01em; }
.o-sub { font-size: 13.5px; color: var(--tx-2); margin-top: 2px; }
.o-pct { font-size: 60px; font-weight: 600; letter-spacing: -.03em; line-height: 1; margin: auto 0 12px; }
.o-pct small { font-size: 24px; color: var(--tx-2); margin-left: 4px; }
.o-count { font-size: 14px; color: var(--tx-2); margin-top: 10px; }
.o-count b { color: var(--tx); }
.o-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.o-grid b { display: block; font-size: 16px; font-weight: 600; margin-top: 3px; white-space: nowrap; }
.oee-body { display: flex; align-items: center; gap: 20px; height: calc(100% - 36px); }
.oee-ring { position: relative; width: 132px; height: 132px; flex: none; }
.ring { width: 100%; height: 100%; }
.ring-t { fill: none; stroke: var(--s3); }
.ring-v { fill: none; stroke: var(--acc); stroke-linecap: round; transition: stroke-dashoffset .6s ease; }
.oee-val { position: absolute; inset: 0; display: flex; align-items: baseline; justify-content: center; padding-top: 46px; }
.oee-val b { font-size: 32px; font-weight: 600; letter-spacing: -.02em; }
.oee-val small { font-size: 14px; color: var(--tx-2); margin-left: 2px; }
.oee-bars { flex: 1; display: flex; flex-direction: column; gap: 14px; }
.ob-h { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--tx-2); margin-bottom: 6px; }
.ob-h b { color: var(--tx); font-weight: 600; }
.legend-s { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--tx-3); }
.legend-s i { width: 14px; height: 3px; border-radius: 2px; display: inline-block; margin-left: 8px; }
.l-act { background: var(--acc); } .l-set { background: repeating-linear-gradient(90deg, var(--tx-2) 0 4px, transparent 4px 7px); }
.trend { position: relative; height: calc(100% - 36px); padding: 0 0 22px 28px; }
.trend svg { width: 100%; height: 100%; display: block; overflow: visible; }
.grid { stroke: var(--line); stroke-width: 1; fill: none; vector-effect: non-scaling-stroke; }
.t-line { fill: none; stroke: var(--acc); stroke-width: 2.2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.t-area { fill: url(#trendFill); }
.t-set { fill: none; stroke: var(--tx-2); stroke-width: 1.2; stroke-dasharray: 5 4; vector-effect: non-scaling-stroke; opacity: .8; }
.t-y { position: absolute; left: 0; top: -6px; bottom: 16px; display: flex; flex-direction: column; justify-content: space-between; font-size: 11px; color: var(--tx-3); }
.t-x { position: absolute; left: 28px; right: 0; bottom: 0; display: flex; justify-content: space-between; font-size: 11px; color: var(--tx-3); }
.c-mat { display: flex; flex-direction: column; }
.mat { margin-top: auto; padding-top: 10px; }
.mat:first-of-type { margin-top: 4px; }
.mat-h { display: flex; align-items: baseline; gap: 10px; font-size: 13.5px; color: var(--tx-2); margin-bottom: 7px; }
.mat-h span:first-child { flex: 1; }
.mat-h b { color: var(--tx); font-weight: 600; }

/* ---------- 2 Maschine ---------- */
.mv { display: grid; grid-template-columns: 1fr 390px; gap: 16px; height: 100%; }
.mv-left { padding: 0; overflow: hidden; background: radial-gradient(900px 400px at 50% 55%, #18232E 0%, #0F161D 75%); }
.mv-bar { position: absolute; z-index: 2; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.crumbs { display: flex; align-items: center; gap: 6px; font-size: 15px; color: var(--tx-2); }
.crumbs button { padding: 8px 6px; border-radius: 8px; color: var(--tx-2); }
.crumbs b { color: var(--tx); font-weight: 600; }
.crumbs .sep { color: var(--tx-3); }
.mv-canvas { position: absolute; inset: 64px 8px 44px 8px; }
.mv-legend { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 18px; padding: 12px 18px; font-size: 12.5px; color: var(--tx-2); border-top: 1px solid var(--line); background: rgba(11, 17, 23, .6); }
.mv-legend span { display: flex; align-items: center; gap: 7px; }
.lgd { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.lgd.ok { background: var(--ok); } .lgd.warn { background: var(--warn); } .lgd.fault { background: var(--fault); }
.mv-right { display: flex; flex-direction: column; min-height: 0; }
.st-list { display: flex; flex-direction: column; gap: 6px; margin: 0 -6px; padding: 0 6px; }
.st-row { display: grid; grid-template-columns: 30px 1fr auto 18px; align-items: center; gap: 12px; min-height: 56px; padding: 8px 10px; border-radius: 12px; background: var(--s2); border: 1px solid transparent; transition: border-color .15s; }
.st-row:active { border-color: var(--acc); }
.st-main { display: flex; flex-direction: column; min-width: 0; }
.st-main b { font-size: 15px; font-weight: 600; }
.st-main small { font-size: 12.5px; color: var(--tx-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-main small span { color: var(--tx-2); }
.sp-h { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.sp-t { flex: 1; min-width: 0; }
.prm-list { display: flex; flex-direction: column; gap: 8px; }
.prm { display: grid; grid-template-columns: 1fr auto 48px; align-items: center; gap: 12px; min-height: 66px; padding: 8px 8px 8px 14px; border-radius: 12px; background: var(--s2); border: 1px solid transparent; transition: border-color .2s; }
.prm.sel { border-color: rgba(47, 155, 255, .7); background: linear-gradient(90deg, rgba(47, 155, 255, .08), var(--s2)); }
.prm-l { display: flex; flex-direction: column; min-width: 0; }
.prm-l .lbl { font-size: 14px; font-weight: 600; }
.prm-l .s { font-size: 12.5px; color: var(--tx-3); }
.prm-v { font-size: 25px; font-weight: 600; letter-spacing: -.02em; white-space: nowrap; transition: color .2s; }
.prm-v small { font-size: 13px; font-weight: 500; color: var(--tx-2); margin-left: 4px; letter-spacing: 0; }
.prm-v.dev { color: var(--warn); }
.prm .icon-btn.edit { color: var(--acc-2); }
.sp-trend { margin-top: 14px; padding: 12px 14px 10px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); }
.sp-trend-h { display: flex; justify-content: space-between; margin-bottom: 6px; }
.sp-trend svg { width: 100%; height: 80px; display: block; }
.sp-actions { margin-top: auto; padding-top: 14px; display: flex; flex-direction: column; gap: 8px; }

/* Maschinengrafik */
.machine { width: 100%; height: 100%; display: block; font-family: var(--font); }
.machine .hit { fill: transparent; }
.machine .st { cursor: pointer; transition: opacity .45s ease; }
.machine.static .st { cursor: default; }
.machine.has-sel .st:not(.sel) { opacity: .18; }
.machine.has-sel .m-base { opacity: .55; transition: opacity .45s; }
.m-shadow { fill: rgba(0, 0, 0, .35); }
.web-line { stroke: #B5C2CF; stroke-width: 2.4; }
.cav rect { fill: #A9B7C5; stroke: #788797; stroke-width: .6; }
.tabs circle { fill: #F4F7FA; }
.lid-line { stroke: #E3E9EF; stroke-width: 2.2; }
.lamp-mini { fill: #2A3643; }
.run .lamp-mini { fill: var(--ok); }
.cam-led { fill: #3A4652; }
.run .cam-led { fill: var(--ok); animation: blink var(--dur) steps(2) infinite; }
.cone { opacity: .15; }
.run .cone { animation: flash var(--dur) ease-out infinite; }
.heatline { opacity: .85; }
.run .web-move { animation: webmove var(--dur) linear infinite; }
.run .spin { animation: spin calc(var(--dur) * 7) linear infinite; transform-box: fill-box; transform-origin: center; }
.run .spin.fast { animation-duration: calc(var(--dur) * 2.5); }
.run .press { animation: press var(--dur) ease-in-out infinite; }
.run .vib { animation: vib .12s linear infinite; }
.door { transition: transform .5s ease; }
.door.open { transform: translateY(-36px); }
.door.open .door-glass { stroke: var(--fault); stroke-opacity: 1; stroke-width: 2.5; }
.empty-foil .web-line, .empty-foil .cav, .empty-foil .tabs { opacity: .25; }
.stack rect { fill: #D9E0E7; stroke: #8E99A4; stroke-width: .5; }
[data-lamp] { fill: #252F39; }
[data-lamp].on.r { fill: var(--fault); } [data-lamp].on.a { fill: var(--warn); } [data-lamp].on.g { fill: var(--ok); }
[data-lamp].blink { animation: blink .6s steps(2) infinite; }
.badge { cursor: pointer; }
.badge circle { fill: #1B252F; stroke: #3B4C5E; stroke-width: 1.5; transition: fill .2s; }
.badge text { fill: var(--tx-2); font-size: 12px; font-weight: 700; text-anchor: middle; }
.badge-line { stroke: #34465A; stroke-width: 1; stroke-dasharray: 2 3; }
.badge.warn circle { fill: var(--warn); stroke: var(--warn); } .badge.warn text { fill: #261A00; }
.badge.fault circle { fill: var(--fault); stroke: var(--fault); animation: pulse .9s ease-in-out infinite; } .badge.fault text { fill: #fff; }
.badge.cur circle { stroke: var(--acc); stroke-width: 3; }
.badge.cur.ok circle { fill: var(--acc); } .badge.cur.ok text { fill: var(--acc-ink); }
.badge { transition: opacity .35s; }
.machine.has-sel .badge { opacity: 0; pointer-events: none; }
.tag { display: none; }
.tag.show { display: inline; animation: fadeIn .4s .25s both; }
.tag rect { fill: rgba(9, 14, 19, .9); stroke: var(--acc); stroke-opacity: .7; stroke-width: .8; }
.tag-l { stroke: var(--acc); stroke-width: .8; fill: none; stroke-opacity: .8; }
.tag-a { fill: var(--acc); }
.tag-k { fill: var(--tx-2); font-size: 7px; font-weight: 600; letter-spacing: .02em; }
.tag-v { fill: var(--tx); font-size: 11px; font-weight: 650; }
.hl { animation: hl 1.6s ease-in-out infinite; }
.hl rect, .hl circle, .hl polygon, .hl line { stroke: var(--acc) !important; stroke-width: 2.4 !important; stroke-opacity: 1 !important; }
[data-part="web"].hl, .machine .web.hl { opacity: 1; }

/* ---------- 3 Assistenten ---------- */
.wz-list { height: 100%; display: flex; flex-direction: column; gap: 20px; }
.wz-intro { display: flex; align-items: flex-end; padding: 6px 4px 0; }
.wz-intro h1 { font-size: 30px; margin: 4px 0 6px; }
.wz-intro p { color: var(--tx-2); max-width: 760px; font-size: 15px; }
.wz-cards { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; min-height: 0; }
.wz-card { display: flex; flex-direction: column; gap: 10px; padding: 22px; text-align: left; transition: border-color .2s, transform .1s; }
.wz-card:active { transform: scale(.99); border-color: var(--acc); }
.wz-card.rec { border-color: rgba(243, 180, 63, .55); background: linear-gradient(180deg, rgba(243, 180, 63, .07), #111920 55%); }
.wz-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 8px; }
.wz-ic { width: 68px; height: 68px; border-radius: 20px; display: grid; place-items: center; background: var(--acc-dim); color: var(--acc-2); border: 1px solid rgba(47, 155, 255, .3); }
.wz-card h3 { font-size: 22px; color: var(--tx); text-transform: none; letter-spacing: -.01em; }
.wz-card p { font-size: 14.5px; color: var(--tx-2); line-height: 1.45; }
.wz-why { font-size: 13px; color: var(--warn); font-weight: 600; min-height: 18px; }
.wz-foot { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13px; color: var(--tx-3); padding-top: 14px; border-top: 1px solid var(--line); }
.wz-foot span { display: flex; align-items: center; gap: 6px; }
.wz-go { display: flex; align-items: center; justify-content: space-between; height: 50px; padding: 0 16px; margin-top: 6px; border-radius: 12px; background: var(--s2); border: 1px solid var(--line-2); font-weight: 600; color: var(--acc-2); }
.wz-card.rec .wz-go { background: var(--acc); color: var(--acc-ink); border-color: var(--acc); }
.wz-run { display: grid; grid-template-columns: 1fr 360px; gap: 16px; height: 100%; }
.wz-main { display: grid; grid-template-rows: auto 1fr auto; gap: 14px; min-height: 0; }
.wz-head { display: flex; align-items: center; gap: 12px; }
.wz-head h1 { font-size: 24px; margin-top: 2px; }
.wz-ill { padding: 0; overflow: hidden; background: radial-gradient(700px 300px at 50% 60%, #18232E 0%, #0F161D 80%); }
.wz-machine { position: absolute; inset: 10px; }
.wz-ill-tag { position: absolute; left: 14px; top: 14px; display: flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 22px; background: rgba(9, 14, 19, .8); border: 1px solid var(--line-2); font-weight: 600; font-size: 14px; }
.wz-ill-tag .num { background: var(--acc); color: var(--acc-ink); border: 0; }
.wz-stepno { position: absolute; right: 18px; bottom: 12px; font-size: 14px; color: var(--tx-3); }
.wz-stepno b { font-size: 34px; color: var(--tx); font-weight: 600; letter-spacing: -.02em; }
.wz-instr { padding: 18px 20px; }
.wz-text { font-size: 16.5px; line-height: 1.5; color: var(--tx); margin-bottom: 14px; max-width: 760px; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.chk { display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 10px 14px; border-radius: 12px; background: var(--s2); border: 1px solid var(--line-2); font-size: 15px; font-weight: 500; transition: background .15s, border-color .15s; }
.chk .box { flex: none; width: 30px; height: 30px; border-radius: 8px; border: 2px solid #3E5063; display: grid; place-items: center; color: transparent; transition: all .15s; }
.chk.on { background: var(--acc-dim); border-color: rgba(47, 155, 255, .45); }
.chk.on .box { background: var(--acc); border-color: var(--acc); color: var(--acc-ink); }
.wz-param { display: flex; align-items: center; gap: 28px; padding: 14px 16px; border-radius: 12px; background: var(--s2); border: 1px solid var(--line-2); }
.wp-item b { display: block; font-size: 20px; font-weight: 600; margin-top: 2px; }
.wz-param .btn { margin-left: auto; }
.recipe { display: flex; flex-direction: column; gap: 4px; }
.rc-h, .rc-r { display: grid; grid-template-columns: 1.4fr 1fr 28px 1fr; align-items: center; gap: 10px; padding: 7px 12px; font-size: 14px; }
.rc-h { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--tx-3); font-weight: 600; }
.rc-r { border-radius: 10px; background: var(--s2); color: var(--tx-2); }
.rc-r b { color: var(--tx); }
.rc-r.chg b { color: var(--acc-2); }
.rc-r .ic { color: var(--tx-3); }
.recipe .btn { align-self: flex-end; margin-top: 8px; }
.sign { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 12px 16px; border-radius: 12px; border: 1px dashed var(--line-2); color: var(--tx-2); font-size: 14px; }
.sign .ic { color: var(--acc-2); }
.wz-steps { display: flex; flex-direction: column; gap: 14px; }
.wz-prog-h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.wz-prog-h b { font-size: 14px; }
.wz-ol { list-style: none; flex: 1; display: flex; flex-direction: column; overflow-y: auto; }
.wz-ol li { position: relative; display: grid; grid-template-columns: 34px 1fr; align-items: center; gap: 12px; min-height: 50px; padding: 4px 8px; border-radius: 12px; color: var(--tx-3); font-size: 14.5px; }
.wz-ol li:not(:last-child)::after { content: ""; position: absolute; left: 24px; top: 38px; height: 24px; width: 2px; background: var(--line-2); }
.wz-ol li .n { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; border: 2px solid var(--line-2); background: var(--bg); position: relative; z-index: 1; }
.wz-ol li.done { color: var(--tx-2); cursor: pointer; }
.wz-ol li.done .n { background: var(--acc); border-color: var(--acc); color: var(--acc-ink); }
.wz-ol li.done::after { background: var(--acc); }
.wz-ol li.cur { background: var(--s2); color: var(--tx); font-weight: 600; }
.wz-ol li.cur .n { border-color: var(--acc); color: var(--acc-2); box-shadow: 0 0 0 4px var(--acc-dim); }
.wz-nav { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; }
.wz-done { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; }
.done-ic { width: 112px; height: 112px; border-radius: 50%; display: grid; place-items: center; background: var(--ok-dim); color: var(--ok); margin-bottom: 14px; animation: pop .5s cubic-bezier(.2, 1.4, .4, 1); }
.wz-done h1 { font-size: 30px; }
.done-grid { display: grid; grid-template-columns: repeat(4, 170px); gap: 12px; margin: 24px 0; }
.done-grid > div { padding: 14px; border-radius: 12px; background: var(--s1); border: 1px solid var(--line); }
.done-grid b { display: block; font-size: 18px; margin-top: 4px; }
.done-act { display: flex; gap: 12px; }

/* ---------- 4 Meldungen ---------- */
.al { display: grid; grid-template-columns: 1fr 440px; gap: 16px; height: 100%; }
.al.wide { grid-template-columns: 1fr 0; gap: 0; }
.al.wide .al-right { display: none; }
.al-left { display: flex; flex-direction: column; min-height: 0; }
.al-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.al-list { flex: 1; min-height: 0; margin: 0 -6px; padding: 0 6px; }
.al-row { position: relative; display: grid; grid-template-columns: 5px 30px 1fr 84px 82px; align-items: center; gap: 12px; width: 100%; min-height: 62px; padding: 8px 14px 8px 0; margin-bottom: 8px; border-radius: 12px; background: var(--s2); border: 1px solid transparent; overflow: hidden; text-align: left; }
.al-row.sel { border-color: var(--acc); }
.sev-bar { align-self: stretch; }
.al-row.fault .sev-bar { background: var(--fault); } .al-row.warn .sev-bar { background: var(--warn); } .al-row.info .sev-bar { background: var(--acc); }
.al-row.fault .al-ic { color: var(--fault); } .al-row.warn .al-ic { color: var(--warn); } .al-row.info .al-ic { color: var(--acc-2); }
.al-row.unack.act.fault { background: linear-gradient(90deg, rgba(255, 91, 97, .14), var(--s2) 60%); }
.al-row.unack .sev-bar { animation: blink 1s steps(2) infinite; }
.al-row.gone { opacity: .62; }
.al-main { display: flex; flex-direction: column; min-width: 0; }
.al-main b { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.al-main small { font-size: 12.5px; color: var(--tx-3); }
.al-time { font-size: 13px; color: var(--tx-2); }
.al-state { font-size: 12.5px; font-weight: 600; color: var(--tx-3); text-align: right; }
.al-row.unack .al-state { color: var(--tx); }
.al-right { display: flex; flex-direction: column; min-height: 0; }
.ad { display: flex; flex-direction: column; gap: 16px; height: 100%; }
.ad-h { display: flex; gap: 14px; align-items: flex-start; }
.sev-ic { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; flex: none; }
.ad.fault .sev-ic { background: var(--fault-dim); color: var(--fault); }
.ad.warn .sev-ic { background: var(--warn-dim); color: var(--warn); }
.ad.info .sev-ic { background: var(--acc-dim); color: var(--acc-2); }
.ad-h h2 { margin-top: 3px; line-height: 1.25; }
.ad-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ad-meta > div { padding: 10px 12px; border-radius: 10px; background: var(--s2); }
.ad-meta span { display: block; font-size: 11.5px; color: var(--tx-3); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.ad-meta b { font-size: 14px; font-weight: 600; }
.ad-sec p { color: var(--tx-2); font-size: 14.5px; line-height: 1.5; margin-top: 5px; }
.rem { list-style: none; counter-reset: r; margin-top: 6px; display: flex; flex-direction: column; gap: 6px; }
.rem li { counter-increment: r; display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; line-height: 1.4; }
.rem li::before { content: counter(r); flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: var(--s3); color: var(--tx-2); }
.ad-act { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; }
.ad-act .btn { flex: 1 1 45%; }
.audit-h, .audit-r { display: grid; grid-template-columns: 96px 170px 210px 1fr 170px; gap: 14px; align-items: center; padding: 10px 14px; font-size: 14px; }
.audit-h { position: sticky; top: 0; background: #111920; font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--tx-3); font-weight: 600; border-bottom: 1px solid var(--line); z-index: 1; }
.audit-r { border-bottom: 1px solid var(--line); }
.audit-r b { display: block; font-weight: 600; } .audit-r small { font-size: 12px; color: var(--tx-3); }

/* ---------- 5 Auftrag ---------- */
.ord { display: grid; grid-template-columns: 1fr 420px; gap: 16px; height: 100%; }
.ord-cur { display: flex; flex-direction: column; gap: 18px; }
.oc-top { display: flex; align-items: center; gap: 22px; }
.oc-top h1 { font-size: 30px; margin: 2px 0; }
.pack-ill { width: 170px; flex: none; padding: 10px; border-radius: 14px; background: var(--s2); border: 1px solid var(--line); }
.pack-ill svg { width: 100%; display: block; }
.pk-b { fill: #C3CDD7; } .pk-c { fill: #EDF1F5; stroke: #93A1AF; stroke-width: 1.2; }
.oc-prog-h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.oc-prog-h b { font-size: 28px; font-weight: 600; letter-spacing: -.02em; }
.oc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.oc-grid > div { padding: 12px 14px; border-radius: 12px; background: var(--s2); }
.oc-grid b { display: block; font-size: 17px; font-weight: 600; margin-top: 3px; }
.recipe-t { margin-top: auto; }
.recipe-t .eyebrow { margin-bottom: 4px; }
.ord-q { display: flex; flex-direction: column; min-height: 0; }
.q-list { flex: 1; display: flex; flex-direction: column; gap: 10px; margin: 0 -6px; padding: 0 6px; }
.q-item { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 14px; background: var(--s2); border: 1px solid var(--line-2); }
.q-item.first { border-color: rgba(47, 155, 255, .45); }
.q-h { display: flex; justify-content: space-between; align-items: center; }
.q-name { font-size: 18px; font-weight: 600; margin-top: 4px; }
.q-sub { font-size: 13px; color: var(--tx-2); margin-bottom: 10px; }

/* ---------- Layer / Dialoge ---------- */
.layer { position: absolute; inset: 0; pointer-events: none; z-index: 40; }
.scrim { position: absolute; inset: 0; pointer-events: auto; display: grid; place-items: center; background: rgba(3, 6, 10, .62); opacity: 0; transition: opacity .2s ease; }
.scrim.in { opacity: 1; }
.sheet { background: linear-gradient(180deg, #17212B, #121A22); border: 1px solid var(--line-2); border-radius: 22px; padding: 24px; box-shadow: 0 40px 100px rgba(0, 0, 0, .55); transform: translateY(14px) scale(.98); transition: transform .24s cubic-bezier(.2, .9, .3, 1); max-height: 740px; }
.scrim.in .sheet { transform: none; }
.dlg-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.dlg-h h2 { font-size: 24px; margin-top: 2px; }
.dlg-f { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 22px; }
.confirm-dlg { width: 480px; text-align: center; padding: 30px; }
.confirm-dlg h2 { margin: 14px 0 8px; }
.confirm-dlg p { color: var(--tx-2); font-size: 15px; line-height: 1.5; }
.confirm-dlg .dlg-f { justify-content: center; }
.confirm-dlg .dlg-f .btn { flex: 1; }
.cf-ic { width: 64px; height: 64px; margin: 0 auto; border-radius: 20px; display: grid; place-items: center; background: var(--acc-dim); color: var(--acc-2); }
.cf-ic.fault { background: var(--fault-dim); color: var(--fault); }
.dial-dlg { width: 820px; }
.dial-wrap { display: grid; grid-template-columns: 330px 1fr; gap: 34px; align-items: center; }
.dial { position: relative; width: 330px; height: 330px; touch-action: none; }
.dial svg { width: 100%; height: 100%; display: block; overflow: visible; }
.d-plate { fill: url(#none); fill: #0E151C; stroke: var(--line); }
.d-ticks line { stroke: #34465A; stroke-width: 1.6; stroke-linecap: round; }
.d-ticks line.mj { stroke: #5A7088; stroke-width: 2.2; }
.d-track { fill: none; stroke: var(--s3); stroke-width: 16; stroke-linecap: round; }
.d-arc { fill: none; stroke: var(--acc); stroke-width: 16; stroke-linecap: round; }
.d-old { fill: var(--tx-2); }
.k1 { fill: #fff; stroke: var(--acc); stroke-width: 4; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .5)); }
.k2 { fill: var(--acc); }
.d-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; }
.d-val { font-size: 64px; font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.d-unit { font-size: 14px; color: var(--tx-2); margin-top: 4px; }
.d-act { font-size: 13px; color: var(--tx-3); margin-top: 10px; padding: 4px 10px; border-radius: 8px; background: var(--s2); }
.stepper { display: grid; grid-template-columns: 76px 1fr 76px; gap: 10px; align-items: center; margin-top: 16px; }
.step-btn { height: 64px; border-radius: 16px; display: grid; place-items: center; background: var(--s3); border: 1px solid var(--line-2); color: var(--tx); }
.step-btn:active { background: var(--acc); color: var(--acc-ink); }
.step-lbl { text-align: center; font-size: 12px; color: var(--tx-3); display: flex; flex-direction: column; }
.step-lbl b { font-size: 15px; color: var(--tx-2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chip-btn { height: 44px; padding: 0 14px; border-radius: 22px; background: var(--s2); border: 1px solid var(--line-2); font-size: 13.5px; font-weight: 600; color: var(--tx-2); }
.chip-btn.on { background: var(--acc-dim); border-color: var(--acc); color: var(--acc-2); }
.role-dlg { width: 680px; }
.users { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.user-card { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 22px 12px; border-radius: 16px; background: var(--s2); border: 1px solid var(--line-2); text-align: center; }
.user-card.on { border-color: var(--acc); background: var(--acc-dim); }
.user-card b { font-size: 16px; margin-top: 6px; } .user-card small { color: var(--tx-2); font-size: 13px; }
.lvl { display: flex; gap: 4px; margin-top: 6px; }
.lvl i { width: 18px; height: 5px; border-radius: 3px; background: var(--s4); }
.lvl i.f { background: var(--acc); }
.note { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 12px; margin-bottom: 16px; font-size: 14px; }
.note.warn { background: var(--warn-dim); color: #FFD892; }
.demo-dlg { width: 760px; }
.demo-dlg > .fine { margin: -8px 0 16px; }
.demo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.demo-b { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px; border-radius: 14px; background: var(--s2); border: 1px solid var(--line-2); }
.demo-b .ic { color: var(--acc-2); margin-bottom: 6px; }
.demo-b b { font-size: 14px; } .demo-b small { font-size: 12px; color: var(--tx-3); }
.demo-b:active { border-color: var(--acc); }
.demo-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.demo-row > span { flex: 1; color: var(--tx-2); }
.switch { width: 58px; height: 34px; border-radius: 17px; background: var(--s4); position: relative; transition: background .2s; }
.switch i { position: absolute; top: 4px; left: 4px; width: 26px; height: 26px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch.on { background: var(--acc); } .switch.on i { transform: translateX(24px); }

/* ---------- Toasts ---------- */
.toasts { position: absolute; left: 50%; bottom: 104px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 60; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; padding: 12px 18px 12px 14px; border-radius: 14px; background: #233140; border: 1px solid var(--line-2); font-size: 14.5px; font-weight: 500; box-shadow: 0 16px 40px rgba(0, 0, 0, .45); animation: toastIn .28s cubic-bezier(.2, .9, .3, 1); }
.toast.out { opacity: 0; transform: translateY(8px); transition: all .28s; }
.toast.ok .ic { color: var(--ok); } .toast.warn .ic { color: var(--warn); } .toast.fault .ic { color: var(--fault); } .toast.info .ic { color: var(--acc-2); }

/* ---------- Animationen ---------- */
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes blink { 0% { opacity: 1; } 50% { opacity: .25; } }
@keyframes glow { 0%, 100% { box-shadow: 0 2px 0 #0A0F14, 0 0 0 0 rgba(243, 180, 63, 0); } 50% { box-shadow: 0 2px 0 #0A0F14, 0 0 0 5px rgba(243, 180, 63, .18); } }
@keyframes ring { 0%, 60%, 100% { transform: rotate(0); } 10% { transform: rotate(12deg); } 20% { transform: rotate(-10deg); } 30% { transform: rotate(6deg); } 40% { transform: rotate(-4deg); } }
@keyframes slideDown { from { transform: translateY(-12px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes webmove { from { transform: translateX(0); } to { transform: translateX(22px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes press { 0%, 100% { transform: translateY(0); } 45%, 55% { transform: translateY(5px); } }
@keyframes vib { 0% { transform: translateX(0); } 50% { transform: translateX(1px); } }
@keyframes flash { 0% { opacity: .9; } 35%, 100% { opacity: .2; } }
@keyframes hl { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }

/* ---------- Erweiterte Informationen (Overlay) ---------- */
.info-sheet { width: 1232px; height: 760px; max-height: 760px; padding: 0; display: flex; flex-direction: column; overflow: hidden; }
.info-h { display: flex; align-items: center; gap: 14px; padding: 14px 16px 14px 20px; border-bottom: 1px solid var(--line-2); }
.info-ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--acc-dim); color: var(--acc-2); flex: none; }
.info-t { flex: 1; min-width: 0; }
.info-t h2 { font-size: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.info-close { min-width: 150px; }
.info-body { flex: 1; position: relative; background: #FFFFFF; }
.info-body iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #FFFFFF; }
.info-state { position: absolute; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: var(--s1); color: var(--tx); text-align: center; padding: 40px; }
.info-state.on { display: flex; }
.info-state b { font-size: 20px; }
.info-state p { color: var(--tx-2); max-width: 560px; }
.info-state .st-ic { color: var(--warn); }
.info-state .spin-ic { color: var(--acc-2); animation: spin 1.2s linear infinite; }
.info-f { display: flex; align-items: center; gap: 8px; padding: 10px 20px; border-top: 1px solid var(--line-2); font-size: 12.5px; color: var(--tx-3); }
.info-f .mono { color: var(--tx-2); }
