/* =====================================================================
   MAX EMBEDDING ENGINE – „Datenlabor“
   ---------------------------------------------------------------------
   Dunkle Datenverarbeitungsmaschine in der Max-Welt: Teal/Cyan als
   Datenfarben, Messing als Maschinenrahmen (Verwandtschaft zum System
   Scan, aber eigenständig – Labor statt Steampunk-Cockpit).
   Namespace: .emb-* – beeinflusst keine anderen Seiten.
   ===================================================================== */

.emb-page{
  --emb-bg:      #06090c;
  --emb-panel:   #0d1319;
  --emb-panel-2: #090d12;
  --emb-fg:      rgba(255,255,255,.92);
  --emb-muted:   rgba(255,255,255,.66);
  --emb-faint:   rgba(255,255,255,.45);

  --emb-teal:    #12c5bc;
  --emb-cyan:    #38e1ff;
  --emb-brass:   #d9a441;
  --emb-brass-t: #e8b87a;
  --emb-green:   #22c55e;
  --emb-amber:   #f5b32b;
  --emb-red:     #ff5d5d;

  --emb-border:  rgba(18,197,188,.16);
  --emb-mono: 'Courier Prime','Courier New',Courier,monospace;
  --emb-sans: 'Inter',ui-sans-serif,system-ui,-apple-system,'Segoe UI',Roboto,Arial,sans-serif;
}

.emb-page *, .emb-page *::before, .emb-page *::after{ box-sizing:border-box; margin:0; padding:0; }
html:has(.emb-page){ overflow-x:hidden; }
body.emb-page{
  min-height:100vh;
  background:
    radial-gradient(1100px 680px at 50% -10%, #0c1620, transparent 65%),
    radial-gradient(900px 500px at 85% 20%, rgba(18,197,188,.05), transparent 60%),
    var(--emb-bg);
  color:var(--emb-fg);
  font-family:var(--emb-sans);
  overflow-x:hidden;
}

.emb-visually-hidden{
  position:absolute!important; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0;
}

/* ── Kopfzeile ────────────────────────────────────────────────────── */
.emb-topbar{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  flex-wrap:wrap;
  padding:18px 22px; max-width:1280px; margin:0 auto;
}
.emb-back{
  display:inline-flex; align-items:center;
  min-height:44px; padding:4px 10px 4px 0;
  font-family:var(--emb-mono); font-size:12px; letter-spacing:.04em;
  color:var(--emb-faint); text-decoration:none; white-space:nowrap;
  transition:color .2s;
}
.emb-back:hover{ color:var(--emb-teal); }
.emb-back:focus-visible{ outline:2px solid var(--emb-cyan); outline-offset:3px; border-radius:6px; }
.emb-badge{
  display:inline-flex; align-items:center; gap:9px;
  font-family:var(--emb-mono); font-size:10px; letter-spacing:.28em;
  text-transform:uppercase; color:var(--emb-brass-t);
  background:rgba(217,164,65,.07); border:1px solid rgba(217,164,65,.22);
  border-radius:100px; padding:7px 15px;
}
.emb-badge .dot{
  width:7px; height:7px; border-radius:50%; background:var(--emb-teal);
  box-shadow:0 0 8px var(--emb-teal); animation:embPulse 2.4s ease-in-out infinite;
}
@keyframes embPulse{ 0%,100%{opacity:1} 50%{opacity:.35} }
.emb-mode{
  font-family:var(--emb-mono); font-size:10px; letter-spacing:.2em;
  color:var(--emb-cyan);
  border:1px solid rgba(56,225,255,.35); background:rgba(56,225,255,.06);
  border-radius:100px; padding:7px 14px; white-space:nowrap;
}

.emb-sound{
  display:inline-flex; align-items:center; gap:7px;
  min-height:44px; min-width:44px; padding:7px 14px;
  font-family:var(--emb-mono); font-size:11px; letter-spacing:.14em;
  text-transform:uppercase; color:var(--emb-faint);
  background:transparent; border:1px solid rgba(255,255,255,.12);
  border-radius:100px; cursor:pointer; white-space:nowrap;
  transition:color .2s, border-color .2s;
}
.emb-sound:hover{ color:var(--emb-muted); border-color:rgba(18,197,188,.5); }
.emb-sound:focus-visible{ outline:2px solid var(--emb-cyan); outline-offset:3px; }
.emb-sound[aria-pressed="true"]{ color:var(--emb-teal); border-color:rgba(18,197,188,.4); }
@media (max-width:480px){
  .emb-sound span:last-child{ display:none; }
}

.emb-main{ position:relative; z-index:1; max-width:1280px; margin:0 auto; padding:8px 22px 40px; }

/* ── Hero ─────────────────────────────────────────────────────────── */
.emb-hero{
  display:grid; grid-template-columns:230px 1fr; gap:34px; align-items:center;
  padding:26px 4px 34px;
}
.emb-hero-coin{ padding-bottom:18px; }
#embCoin{ --coin-size:100%; width:100%; }
.emb-hero-text h1{
  font-size:clamp(26px, 4vw, 42px); font-weight:800; letter-spacing:.06em;
  background:linear-gradient(100deg, var(--emb-fg) 30%, var(--emb-teal) 70%, var(--emb-cyan));
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.emb-claim{
  margin-top:8px; font-family:var(--emb-mono); font-size:14.5px;
  color:var(--emb-brass-t); letter-spacing:.03em;
}
.emb-sub{ margin-top:10px; color:var(--emb-muted); max-width:640px; line-height:1.55; }
.emb-status{
  margin-top:16px; display:flex; align-items:baseline; gap:8px;
  font-family:var(--emb-mono); font-size:14px; color:var(--emb-teal);
  min-height:1.6em;
}
.emb-cursor{ animation:embBlink 1s steps(1) infinite; }
@keyframes embBlink{ 50%{opacity:0} }
.emb-privacy{
  margin-top:12px; font-size:12.5px; color:var(--emb-faint);
  max-width:640px; line-height:1.55;
}
.emb-hero-note{
  margin-top:10px; font-size:12.5px; color:var(--emb-muted); max-width:640px;
  line-height:1.55; border-left:2px solid rgba(217,164,65,.4); padding-left:12px;
}
.emb-hero-note em{ color:var(--emb-brass-t); font-style:normal; }

/* ── Prozesslinie ─────────────────────────────────────────────────── */
.emb-stagebar{
  display:flex; gap:8px; margin:6px 0 6px;
}
.emb-stage{
  flex:1; display:flex; align-items:center; gap:8px; min-width:0;
  font-family:var(--emb-mono); font-size:11px; letter-spacing:.1em;
  text-transform:uppercase; color:var(--emb-faint);
  border:1px solid rgba(255,255,255,.10); border-radius:10px;
  padding:9px 12px; background:rgba(255,255,255,.02);
  transition:color .4s, border-color .4s, box-shadow .4s, background .4s;
}
.emb-stage .n{
  width:20px; height:20px; flex:none; display:grid; place-items:center;
  border-radius:50%; border:1px solid currentColor; font-size:10px;
}
.emb-stage .t{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.emb-stage .mark{ display:none; margin-left:auto; }
.emb-stage.is-active{
  color:var(--emb-teal); border-color:rgba(18,197,188,.55);
  background:rgba(18,197,188,.06);
  box-shadow:0 0 16px rgba(18,197,188,.18), inset 0 0 12px rgba(18,197,188,.05);
}
.emb-stage.is-next{
  color:var(--emb-amber); border-color:rgba(245,179,43,.32);
  box-shadow:0 0 8px rgba(245,179,43,.08);
}
.emb-stage.is-done{ color:var(--emb-green); border-color:rgba(34,197,94,.3); }
.emb-stage.is-done .mark{ display:inline; }
.emb-stageline{
  font-family:var(--emb-mono); font-size:11.5px; letter-spacing:.18em;
  text-transform:uppercase; color:var(--emb-muted);
  margin:8px 2px 18px; min-height:1.4em;
}

/* ── Panels ───────────────────────────────────────────────────────── */
.emb-panel{
  position:relative;
  background:
    linear-gradient(160deg, rgba(18,197,188,.045) 0%, rgba(0,0,0,0) 40%),
    linear-gradient(180deg, var(--emb-panel) 0%, var(--emb-panel-2) 100%);
  border:1px solid var(--emb-border);
  border-radius:16px;
  box-shadow:
    0 14px 40px rgba(0,0,0,.45),
    inset 0 1px 0 rgba(56,225,255,.06),
    inset 0 0 24px rgba(0,0,0,.35);
  padding:22px 24px;
  margin-bottom:22px;
}
/* Eck-Nieten (Messing – Maschinenrahmen) */
.emb-panel::before, .emb-panel::after,
.emb-panel > .rivets::before, .emb-panel > .rivets::after{
  content:''; position:absolute; width:8px; height:8px; border-radius:50%;
  background:radial-gradient(circle at 35% 30%, #f6d996, var(--emb-brass) 55%, #8a5a1e);
  border:1px solid #452b0a;
  box-shadow:0 1px 2px rgba(0,0,0,.6);
}
.emb-panel::before{ top:8px; left:8px; }
.emb-panel::after { top:8px; right:8px; }
.emb-panel > .rivets::before{ bottom:8px; left:8px; }
.emb-panel > .rivets::after { bottom:8px; right:8px; }

.emb-panel-title{
  font-weight:800; font-size:13px; letter-spacing:.24em; text-transform:uppercase;
  color:var(--emb-brass-t); display:flex; align-items:center; gap:10px; margin-bottom:8px;
}
.emb-panel-title::after{
  content:''; flex:1; height:1px;
  background:linear-gradient(to right, rgba(18,197,188,.4), transparent);
}
.emb-panel-note{ font-size:13px; color:var(--emb-muted); line-height:1.55; margin-bottom:14px; max-width:760px; }

/* Zustandsmodell der Abschnitte */
.emb-sec{ transition:opacity .5s ease, border-color .5s ease, box-shadow .5s ease; }
.emb-sec.is-idle{ opacity:.55; }
.emb-sec.is-next{
  opacity:.85; border-color:rgba(245,179,43,.32);
  box-shadow:0 14px 40px rgba(0,0,0,.45), 0 0 12px rgba(245,179,43,.08),
    inset 0 1px 0 rgba(56,225,255,.06), inset 0 0 24px rgba(0,0,0,.35);
}
.emb-sec.is-active{
  border-color:rgba(18,197,188,.55);
  box-shadow:0 18px 44px rgba(0,0,0,.5), 0 0 26px rgba(18,197,188,.16),
    inset 0 1px 0 rgba(56,225,255,.08), inset 0 0 24px rgba(18,197,188,.04);
}
.emb-sec.is-done{ border-color:rgba(34,197,94,.28); }
.emb-state-tag{
  position:absolute; top:7px; right:24px;
  font-family:var(--emb-mono); font-size:8.5px; letter-spacing:.24em;
  text-transform:uppercase; padding:3px 9px; border-radius:100px;
  border:1px solid transparent; pointer-events:none;
  opacity:0; transition:opacity .4s;
}
.emb-sec.is-active > .emb-state-tag{
  opacity:1; color:var(--emb-teal);
  border-color:rgba(18,197,188,.4); background:rgba(18,197,188,.07);
}
.emb-sec.is-active > .emb-state-tag::after{ content:'AKTIV'; }
.emb-sec.is-next > .emb-state-tag{
  opacity:1; color:var(--emb-amber);
  border-color:rgba(245,179,43,.35); background:rgba(245,179,43,.06);
}
.emb-sec.is-next > .emb-state-tag::after{ content:'BEREIT'; }
.emb-sec.is-done > .emb-state-tag{
  opacity:.9; color:var(--emb-green);
  border-color:rgba(34,197,94,.32); background:rgba(34,197,94,.06);
}
.emb-sec.is-done > .emb-state-tag::after{ content:'✔ FERTIG'; }

/* ── Buttons ──────────────────────────────────────────────────────── */
.emb-btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  min-height:44px; padding:10px 20px;
  font-family:var(--emb-mono); font-size:12.5px; letter-spacing:.1em;
  text-transform:uppercase; color:var(--emb-fg);
  background:rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.16);
  border-radius:10px; cursor:pointer; text-decoration:none;
  transition:border-color .2s, box-shadow .2s, background .2s, color .2s;
}
.emb-btn:hover{ border-color:rgba(18,197,188,.55); box-shadow:0 0 14px rgba(18,197,188,.14); }
.emb-btn:focus-visible{ outline:2px solid var(--emb-cyan); outline-offset:3px; }
.emb-btn--primary{
  color:#04211f; background:linear-gradient(120deg, var(--emb-teal), #0ea69e);
  border-color:rgba(18,197,188,.6); font-weight:700;
}
.emb-btn--primary:hover{ box-shadow:0 0 20px rgba(18,197,188,.35); }
.emb-btn--ghost{ color:var(--emb-muted); background:transparent; }
.emb-btn[disabled]{ opacity:.4; cursor:not-allowed; box-shadow:none; }

.emb-sec-actions{ display:flex; flex-wrap:wrap; gap:12px; margin-top:18px; }

/* ── Eingangsschleuse ─────────────────────────────────────────────── */
.emb-drop{
  border:2px dashed rgba(18,197,188,.35);
  border-radius:14px;
  padding:34px 20px;
  text-align:center;
  cursor:pointer;
  background:
    repeating-linear-gradient(-45deg, rgba(18,197,188,.02) 0 14px, transparent 14px 28px);
  transition:border-color .25s, background-color .25s, box-shadow .25s;
}
.emb-drop:hover, .emb-drop.is-over{
  border-color:var(--emb-cyan);
  box-shadow:inset 0 0 30px rgba(56,225,255,.07), 0 0 18px rgba(56,225,255,.10);
}
.emb-drop:focus-visible{ outline:2px solid var(--emb-cyan); outline-offset:4px; }
.emb-drop-ico{
  font-size:26px; color:var(--emb-teal);
  width:52px; height:52px; margin:0 auto 10px; display:grid; place-items:center;
  border:1px solid rgba(18,197,188,.4); border-radius:50%;
}
.emb-drop-line{ font-size:16px; font-weight:600; }
.emb-drop-sub{ margin-top:6px; font-size:12.5px; color:var(--emb-faint); }

.emb-intake-actions{ display:flex; flex-wrap:wrap; gap:12px; margin-top:16px; }

.emb-error{
  margin-top:16px; padding:12px 16px;
  border:1px solid rgba(255,93,93,.45); border-left-width:4px;
  border-radius:10px; background:rgba(255,93,93,.07);
  color:#ffb4b4; font-size:13.5px; line-height:1.5;
}
.emb-filecard{
  margin-top:16px; display:flex; align-items:center; gap:14px;
  border:1px solid rgba(18,197,188,.3); border-radius:10px;
  padding:12px 16px; background:rgba(18,197,188,.05);
}
.emb-filecard .ico{ font-size:20px; color:var(--emb-teal); }
.emb-filecard .name{ font-weight:600; word-break:break-all; }
.emb-filecard .meta{ font-size:12px; color:var(--emb-faint); font-family:var(--emb-mono); }

/* ── Instrumente ──────────────────────────────────────────────────── */
.emb-instruments{
  display:grid; grid-template-columns:repeat(4, 1fr); gap:16px; margin:6px 0 18px;
}
.emb-instr{
  border:1px solid rgba(255,255,255,.08); border-radius:12px;
  background:rgba(0,0,0,.25); padding:14px; text-align:center;
}
.emb-instr .lbl{
  font-family:var(--emb-mono); font-size:10px; letter-spacing:.18em;
  text-transform:uppercase; color:var(--emb-faint); margin-bottom:10px;
}
/* Mechanischer Zähler */
.emb-odometer{
  display:inline-flex; gap:4px; padding:8px 10px;
  background:#04070a; border:1px solid rgba(217,164,65,.35); border-radius:8px;
  box-shadow:inset 0 2px 8px rgba(0,0,0,.8);
}
.emb-odometer span{
  display:grid; place-items:center;
  width:24px; height:34px; border-radius:4px;
  background:linear-gradient(180deg, #1a222c, #0b0f14 55%, #1a222c);
  border:1px solid rgba(255,255,255,.09);
  font-family:var(--emb-mono); font-size:20px; font-weight:700; color:var(--emb-cyan);
  text-shadow:0 0 8px rgba(56,225,255,.6);
}
/* Halbkreis-Manometer (SVG per JS) */
.emb-gauge svg{ width:100%; max-width:150px; height:auto; display:block; margin:0 auto; }
.emb-gauge .g-track{ fill:none; stroke:rgba(255,255,255,.1); stroke-width:10; }
.emb-gauge .g-bar{ fill:none; stroke:var(--emb-teal); stroke-width:10; stroke-linecap:round;
  filter:drop-shadow(0 0 6px rgba(18,197,188,.5)); }
.emb-gauge .g-needle{ stroke:var(--emb-brass-t); stroke-width:3; stroke-linecap:round; }
.emb-gauge .g-pivot{ fill:var(--emb-brass); }
.emb-gauge .g-val{
  font-family:var(--emb-mono); font-size:17px; font-weight:700;
  fill:var(--emb-fg); text-anchor:middle;
}
/* Balkenanzeige Feldtypen */
.emb-bars{ display:grid; gap:8px; text-align:left; }
.emb-bar-row{ display:grid; grid-template-columns:74px 1fr 26px; align-items:center; gap:8px; }
.emb-bar-row .b-lbl{ font-family:var(--emb-mono); font-size:10.5px; color:var(--emb-muted); }
.emb-bar-row .b-track{ height:9px; border-radius:5px; background:rgba(255,255,255,.07); overflow:hidden; }
.emb-bar-row .b-fill{
  height:100%; width:0; border-radius:5px;
  background:linear-gradient(90deg, var(--emb-teal), var(--emb-cyan));
  transition:width 1.1s cubic-bezier(.2,.7,.3,1);
}
.emb-bar-row.b-num  .b-fill{ background:linear-gradient(90deg,#7a6cff,#a89bff); }
.emb-bar-row.b-date .b-fill{ background:linear-gradient(90deg,var(--emb-brass),#f6d996); }
.emb-bar-row.b-cat  .b-fill{ background:linear-gradient(90deg,#22c55e,#7be3a5); }
.emb-bar-row.b-leer .b-fill{ background:rgba(255,255,255,.25); }
.emb-bar-row .b-val{ font-family:var(--emb-mono); font-size:11px; color:var(--emb-faint); text-align:right; }

/* Kennzahlen-Zeilen */
.emb-rows{ display:grid; grid-template-columns:repeat(auto-fill, minmax(220px, 1fr)); gap:10px; }
.emb-row{
  display:flex; justify-content:space-between; align-items:baseline; gap:10px;
  border-bottom:1px dashed rgba(255,255,255,.09); padding:7px 2px;
  font-size:13px;
}
.emb-row .k{ color:var(--emb-muted); }
.emb-row .v{ font-family:var(--emb-mono); color:var(--emb-fg); text-align:right; overflow-wrap:anywhere; }
.emb-row .v.est{ color:var(--emb-brass-t); }

/* Warnleuchte */
.emb-warnlamp{
  margin-top:14px; display:flex; align-items:center; gap:10px;
  border:1px solid rgba(245,179,43,.4); border-radius:10px;
  background:rgba(245,179,43,.06); padding:10px 14px;
  color:#ffd98a; font-size:13px;
}
.emb-warnlamp i{
  width:10px; height:10px; flex:none; border-radius:50%;
  background:var(--emb-amber); box-shadow:0 0 10px var(--emb-amber);
  animation:embPulse 1.6s ease-in-out infinite;
}

/* ── Feldzuordnung ────────────────────────────────────────────────── */
.emb-map-grid{ display:grid; gap:12px; }
.emb-map-card{
  display:grid; grid-template-columns:minmax(140px,1.2fr) minmax(110px,.9fr) 2fr;
  gap:12px; align-items:center;
  border:1px solid rgba(255,255,255,.09); border-radius:12px;
  background:rgba(0,0,0,.22); padding:12px 16px;
}
.emb-map-name{ font-family:var(--emb-mono); font-size:13.5px; word-break:break-all; }
.emb-map-info{ font-size:11px; color:var(--emb-faint); }
.emb-map-type{
  font-family:var(--emb-mono); font-size:10px; letter-spacing:.12em; text-transform:uppercase;
  border:1px solid rgba(255,255,255,.14); border-radius:100px;
  padding:3px 10px; justify-self:start; color:var(--emb-muted); white-space:nowrap;
}
.emb-roles{ display:flex; flex-wrap:wrap; gap:6px; }
.emb-role{
  min-height:34px; padding:5px 12px;
  font-family:var(--emb-mono); font-size:10.5px; letter-spacing:.08em; text-transform:uppercase;
  background:transparent; color:var(--emb-faint);
  border:1px solid rgba(255,255,255,.15); border-radius:100px; cursor:pointer;
  transition:color .2s, border-color .2s, background .2s, box-shadow .2s;
}
.emb-role:hover{ color:var(--emb-fg); border-color:rgba(255,255,255,.4); }
.emb-role:focus-visible{ outline:2px solid var(--emb-cyan); outline-offset:2px; }
.emb-role[aria-pressed="true"]{ font-weight:700; }
.emb-role--id[aria-pressed="true"]{
  color:#0a1a2e; background:var(--emb-cyan); border-color:var(--emb-cyan);
  box-shadow:0 0 12px rgba(56,225,255,.35);
}
.emb-role--embed[aria-pressed="true"]{
  color:#04211f; background:var(--emb-teal); border-color:var(--emb-teal);
  box-shadow:0 0 12px rgba(18,197,188,.35);
}
.emb-role--meta[aria-pressed="true"]{
  color:#241703; background:var(--emb-brass); border-color:var(--emb-brass);
  box-shadow:0 0 12px rgba(217,164,65,.3);
}
.emb-role--ignore[aria-pressed="true"]{
  color:var(--emb-fg); background:rgba(255,255,255,.14); border-color:rgba(255,255,255,.35);
}

.emb-preview{ margin-top:20px; }
.emb-preview h3{
  font-size:12px; letter-spacing:.2em; text-transform:uppercase;
  color:var(--emb-brass-t); display:flex; align-items:center; gap:10px;
}
.emb-tag{
  font-family:var(--emb-mono); font-size:9px; letter-spacing:.14em;
  border:1px solid rgba(255,255,255,.16); border-radius:100px; padding:2px 9px;
  color:var(--emb-faint); text-transform:none;
}
.emb-preview-note{ font-size:12px; color:var(--emb-faint); margin:6px 0 10px; }
.emb-preview-box{
  font-family:var(--emb-mono); font-size:13px; line-height:1.6;
  color:var(--emb-teal);
  background:#04070a; border:1px solid rgba(18,197,188,.3); border-radius:10px;
  padding:14px 16px; white-space:pre-wrap; word-break:break-word;
  max-height:220px; overflow:auto;
  box-shadow:inset 0 0 20px rgba(0,0,0,.6);
}
.emb-preview-box:empty::before{ content:'– kein Embedding-Inhalt gewählt –'; color:var(--emb-faint); }

/* ── Aufbereitung: Förderband ─────────────────────────────────────── */
.emb-conveyor{
  display:grid; grid-template-columns:1fr 76px 1fr; gap:12px; align-items:stretch;
  min-height:120px; margin-bottom:16px;
}
.emb-conveyor .lane{
  border:1px solid rgba(255,255,255,.08); border-radius:12px;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.02) 0 26px, transparent 26px 52px),
    rgba(0,0,0,.25);
  padding:10px; display:flex; flex-direction:column; gap:8px; overflow:hidden;
  position:relative;
}
.emb-conveyor .machine{
  display:grid; place-items:center;
  border:1px solid rgba(217,164,65,.35); border-radius:12px;
  background:radial-gradient(circle at 50% 40%, rgba(217,164,65,.10), rgba(0,0,0,.3));
}
.emb-conveyor .gear{
  font-size:34px; color:var(--emb-brass); display:block;
  animation:embGear 4s linear infinite paused;
}
.emb-conveyor.is-running .gear{ animation-play-state:running; }
@keyframes embGear{ to{ transform:rotate(360deg); } }
.emb-chip{
  font-family:var(--emb-mono); font-size:10.5px; color:var(--emb-muted);
  border:1px solid rgba(255,255,255,.12); border-radius:8px;
  background:rgba(255,255,255,.03); padding:6px 10px;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
  animation:embChipIn .5s ease both;
}
.lane-out .emb-chip{
  color:var(--emb-teal); border-color:rgba(18,197,188,.35);
  background:rgba(18,197,188,.05);
}
@keyframes embChipIn{ from{ opacity:0; transform:translateX(-12px); } to{ opacity:1; transform:none; } }
.lane-out .emb-chip{ animation-name:embChipOut; }
@keyframes embChipOut{ from{ opacity:0; transform:translateX(12px); } to{ opacity:1; transform:none; } }

/* Kennzahlen-Kacheln (Aufbereitung + Simulation) */
.emb-stat-grid{
  display:grid; grid-template-columns:repeat(auto-fill, minmax(170px, 1fr)); gap:12px;
}
.emb-stat{
  border:1px solid rgba(255,255,255,.09); border-radius:12px;
  background:rgba(0,0,0,.25); padding:14px 16px;
  transition:border-color .4s, box-shadow .4s;
}
.emb-stat .v{
  font-family:var(--emb-mono); font-size:23px; font-weight:700; color:var(--emb-fg);
  text-shadow:0 0 10px rgba(18,197,188,.25);
  overflow-wrap:anywhere;
}
.emb-stat .v small{ font-size:12px; color:var(--emb-faint); font-weight:400; }
.emb-stat .l{
  margin-top:4px; font-family:var(--emb-mono); font-size:9.5px;
  letter-spacing:.14em; text-transform:uppercase; color:var(--emb-faint); line-height:1.5;
}
.emb-stat.is-live{
  border-color:rgba(18,197,188,.5);
  box-shadow:0 0 16px rgba(18,197,188,.14), inset 0 0 14px rgba(18,197,188,.04);
}
.emb-stat.is-soon{ border-color:rgba(245,179,43,.25); }
.emb-stat.is-est .v{ color:var(--emb-brass-t); }

/* ── Simulation ───────────────────────────────────────────────────── */
.emb-sec--sim .emb-sim-note{
  border:1px solid rgba(56,225,255,.3); border-left-width:4px; border-radius:10px;
  background:rgba(56,225,255,.05); color:var(--emb-muted);
  font-size:13px; line-height:1.55; padding:12px 16px; margin-bottom:16px; max-width:820px;
}
.emb-sim-dims{
  display:flex; align-items:center; gap:16px; margin-bottom:16px;
  border:1px solid rgba(217,164,65,.35); border-radius:12px;
  background:rgba(217,164,65,.05); padding:12px 18px; width:fit-content; max-width:100%;
}
.emb-sim-dims .v{
  font-family:var(--emb-mono); font-size:30px; font-weight:700; color:var(--emb-brass-t);
  text-shadow:0 0 12px rgba(217,164,65,.35);
}
.emb-sim-dims .l{
  font-family:var(--emb-mono); font-size:10px; letter-spacing:.16em; color:var(--emb-muted);
}
.emb-sim-dims small{ letter-spacing:.06em; color:var(--emb-faint); text-transform:none; }
.emb-vector{ margin-top:16px; }
.emb-vector .lbl{
  font-family:var(--emb-mono); font-size:10px; letter-spacing:.16em;
  text-transform:uppercase; color:var(--emb-amber); margin-bottom:8px;
}
.emb-vector code{
  display:block; font-family:var(--emb-mono); font-size:13px; color:var(--emb-cyan);
  background:#04070a; border:1px solid rgba(56,225,255,.25); border-radius:10px;
  padding:12px 16px; overflow-x:auto; white-space:nowrap;
}

/* ── Ergebnisbericht ──────────────────────────────────────────────── */
.emb-report-done{
  font-family:var(--emb-mono); font-size:15px; color:var(--emb-green);
  margin-bottom:8px; text-shadow:0 0 10px rgba(34,197,94,.35);
}
.emb-report-grid{
  display:grid; grid-template-columns:repeat(auto-fill, minmax(260px, 1fr)); gap:8px 24px;
}

/* ── Testsuche ────────────────────────────────────────────────────── */
.emb-search-form{ display:flex; gap:12px; flex-wrap:wrap; }
.emb-search-input{
  flex:1; min-width:220px; min-height:44px;
  font-family:var(--emb-mono); font-size:14px; color:var(--emb-fg);
  background:#04070a; border:1px solid rgba(18,197,188,.35); border-radius:10px;
  padding:10px 16px;
}
.emb-search-input:focus-visible{ outline:2px solid var(--emb-cyan); outline-offset:2px; }
.emb-search-input::placeholder{ color:var(--emb-faint); }
.emb-search-results{ margin-top:16px; display:grid; gap:12px; }
.emb-hit{
  border:1px solid rgba(255,255,255,.1); border-radius:12px;
  background:rgba(0,0,0,.25); padding:14px 16px;
}
.emb-hit-head{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-bottom:8px; }
.emb-hit-id{
  font-family:var(--emb-mono); font-size:11px; color:var(--emb-cyan);
  border:1px solid rgba(56,225,255,.35); border-radius:100px; padding:2px 10px;
}
.emb-hit-score{
  margin-left:auto; font-family:var(--emb-mono); font-size:12px; color:var(--emb-teal);
}
.emb-hit-score .bar{
  display:inline-block; vertical-align:middle; width:70px; height:7px; margin-left:8px;
  border-radius:4px; background:rgba(255,255,255,.08); overflow:hidden;
}
.emb-hit-score .bar i{
  display:block; height:100%; background:linear-gradient(90deg, var(--emb-teal), var(--emb-cyan));
}
.emb-hit-text{ font-size:13px; color:var(--emb-muted); line-height:1.55; }
.emb-hit-meta{ margin-top:8px; display:flex; flex-wrap:wrap; gap:6px; }
.emb-hit-meta span{
  font-family:var(--emb-mono); font-size:10px; color:var(--emb-brass-t);
  border:1px solid rgba(217,164,65,.3); border-radius:100px; padding:2px 9px;
}
.emb-hit-why{ margin-top:8px; font-size:11.5px; color:var(--emb-faint); }
.emb-hit-why b{ color:var(--emb-teal); font-weight:600; }
.emb-noresult{ color:var(--emb-faint); font-size:13.5px; }

/* ── Wissensbereich ───────────────────────────────────────────────── */
.emb-know-grid{ display:grid; grid-template-columns:1fr 1fr; gap:10px 22px; }
.emb-know details{
  border-bottom:1px dashed rgba(255,255,255,.1); padding:4px 0;
}
.emb-know summary{
  cursor:pointer; font-size:14px; font-weight:600; padding:9px 4px;
  color:var(--emb-fg); list-style-position:inside;
}
.emb-know summary:hover{ color:var(--emb-teal); }
.emb-know summary:focus-visible{ outline:2px solid var(--emb-cyan); outline-offset:2px; border-radius:6px; }
.emb-know details p{ font-size:13px; color:var(--emb-muted); line-height:1.6; padding:2px 4px 12px 4px; }
.emb-know details em{ color:var(--emb-brass-t); font-style:normal; }
.emb-know-example{ margin-top:22px; }
.emb-know-example h3{
  font-size:12px; letter-spacing:.2em; text-transform:uppercase; color:var(--emb-brass-t);
  margin-bottom:10px;
}
.emb-know-table-wrap{ overflow-x:auto; }
.emb-know-table{
  border-collapse:collapse; font-size:13px; min-width:480px; width:100%;
}
.emb-know-table th, .emb-know-table td{
  border:1px solid rgba(255,255,255,.12); padding:8px 12px; text-align:left;
}
.emb-know-table th{
  font-family:var(--emb-mono); font-size:11px; letter-spacing:.1em;
  text-transform:uppercase; color:var(--emb-teal); background:rgba(18,197,188,.05);
}
.emb-know-example ul{ margin-top:12px; padding-left:20px; display:grid; gap:6px; }
.emb-know-example li{ font-size:13px; color:var(--emb-muted); line-height:1.55; }
.emb-know-example strong{ color:var(--emb-fg); }

/* ── Datenschutz-Panel + Fuß ──────────────────────────────────────── */
.emb-legal ul{ padding-left:20px; display:grid; gap:7px; }
.emb-legal li{ font-size:13px; color:var(--emb-muted); line-height:1.55; }
.emb-legal-links{ margin-top:14px; font-size:13px; }
.emb-legal-links a, .emb-footer a{ color:var(--emb-teal); text-decoration:none; }
.emb-legal-links a:hover, .emb-footer a:hover{ text-decoration:underline; }
.emb-legal-links a:focus-visible, .emb-footer a:focus-visible{
  outline:2px solid var(--emb-cyan); outline-offset:2px; border-radius:4px;
}
.emb-footer{
  text-align:center; padding:26px 22px 40px; color:var(--emb-faint); font-size:12.5px;
}
.emb-footer p{ margin-top:6px; }

/* ── Responsiv ────────────────────────────────────────────────────── */
@media (max-width: 980px){
  .emb-hero{ grid-template-columns:190px 1fr; gap:24px; }
  .emb-instruments{ grid-template-columns:1fr 1fr; }
  .emb-know-grid{ grid-template-columns:1fr; }
}
@media (max-width: 720px){
  .emb-main{ padding:8px 14px 30px; }
  .emb-topbar{ padding:14px; }
  .emb-hero{ grid-template-columns:1fr; text-align:center; padding-top:12px; }
  .emb-hero-coin{ width:min(200px, 60vw); margin:0 auto; }
  .emb-hero-note{ text-align:left; }
  .emb-status{ justify-content:center; }
  .emb-stagebar{ flex-wrap:wrap; }
  .emb-stage{ flex:1 1 45%; }
  .emb-stage .t{ font-size:10px; }
  .emb-map-card{ grid-template-columns:1fr; gap:8px; }
  .emb-map-type{ justify-self:start; }
  .emb-conveyor{ grid-template-columns:1fr; }
  .emb-conveyor .machine{ min-height:56px; }
  .emb-panel{ padding:18px 16px; }
}
@media (max-width: 420px){
  .emb-instruments{ grid-template-columns:1fr; }
  .emb-stat-grid{ grid-template-columns:1fr 1fr; }
  .emb-stat{ padding:12px; }
  .emb-stat .v{ font-size:17px; }
  .emb-mode{ white-space:normal; text-align:center; }
}

/* ── Bewegungsreduktion ───────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce){
  .emb-badge .dot, .emb-warnlamp i{ animation:none; }
  .emb-cursor{ animation:none; }
  .emb-conveyor .gear, .emb-conveyor.is-running .gear{ animation:none; }
  .emb-chip{ animation:none; }
  .emb-bar-row .b-fill{ transition:none; }
  .emb-sec, .emb-stage, .emb-btn, .emb-stat{ transition:none; }
}
