/* „Im Einsatz" — Gefahrgut-Agent für GBM (seit 08.10.2026, v3_10).
   Der Abschnitt zeigt einen Agenten und trägt deshalb den Agenten-Ton (Violett) —
   nur als Linie, Beschriftung, Punkt und leiser Schein (≤ 15 %), wie im Brandguide.
   Hintergrund: Rautenfeld (Form der Gefahrzettel) mit wanderndem Prüfstreifen, assets/js/einsatz.js. */

.einsatz {
  --ton: var(--ton-agenten);
  overflow: hidden;
  isolation: isolate;
}
.einsatz::before {             /* leiser Schein hinter der Überschrift */
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 50% 60% at 8% 18%, rgba(var(--ton), .12), transparent 70%),
    radial-gradient(ellipse 40% 50% at 82% 55%, rgba(var(--ton), .07), transparent 70%);
}
.einsatz-feld { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.einsatz-feld canvas { display: block; width: 100%; height: 100%; }
.einsatz > .container { position: relative; z-index: 1; }

/* ---------- Text links ---------- */
.einsatz-eyebrow { color: rgb(var(--ton)); }
.einsatz-eyebrow::before { background: rgb(var(--ton)); }
.live-punkt {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: #4ade80; margin-right: 10px; vertical-align: 1px;
  animation: status-pulse 2s ease-out infinite;
}
.einsatz .proof-content h2 .serif { color: rgb(var(--ton)); }

/* ---------- Demo-Karte ---------- */
.einsatz-demo {
  background: rgba(21, 37, 64, .82);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border-color: rgba(var(--ton), .22);
  box-shadow: 0 40px 80px -40px rgba(0,0,0,.75), 0 0 0 1px rgba(255,255,255,.02);
}
.einsatz-demo::before {        /* statt der grauen Scheibe: Kennlinie oben */
  inset: -1px -1px auto -1px; width: auto; height: 2px; border-radius: 0;
  background: linear-gradient(90deg, rgb(var(--ton)), rgba(var(--ton), .12));
  z-index: 2;
}
.einsatz-demo::after {         /* leiser Schein in der Karte */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 70% 50% at 100% 0%, rgba(var(--ton), .10), transparent 70%);
}
.einsatz-demo .demo-brand img { background: var(--white); }

.demo-faelle {
  position: relative; z-index: 1;
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
}
.demo-faelle li {
  padding: 14px 4px 12px;
  font-size: 10px; letter-spacing: .12em; text-transform: uppercase; text-align: center;
  color: var(--gray-400); cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: color .25s, border-color .25s;
}
.demo-faelle li:hover { color: var(--gray-300); }
.demo-faelle li.ist-aktiv { color: var(--white); border-bottom-color: rgb(var(--ton)); }

.einsatz-demo .chat-window { padding-top: 22px; }
.einsatz-demo .chat-bubble { border-radius: 2px; }
.einsatz-demo .chat-bubble.agent {
  border-left: 2px solid rgba(var(--ton), .7);
  color: var(--off-white);
}

.chat-beleg {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 11px 14px;
  border: 1px dashed rgba(255,255,255,.16);
  font-size: 13px; color: var(--gray-300);
}
.beleg-marke {
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  color: rgb(var(--ton));
}
.chat-beleg.ist-uebergabe { border-style: solid; border-color: rgba(255,255,255,.4); color: var(--white); }
.chat-beleg.ist-uebergabe .beleg-marke { color: var(--white); }
.chat-beleg.ist-uebergabe .beleg-marke::before { content: "⚑ "; }
.chat-beleg.beleg-ein { animation: chip-pop .45s ease-out both; }

.demo-takt {
  position: absolute; left: 0; right: 0; bottom: 0; height: 2px; z-index: 2;
  background: rgba(255,255,255,.06);
}
.demo-takt i {
  display: block; height: 100%; width: 0;
  background: rgba(255,255,255,.45);
}

/* ---------- Fähigkeitskacheln: aktive Kachel folgt der Demo ---------- */
.einsatz .capability-scan article { cursor: default; }
.einsatz .capability-scan article.ist-aktiv {
  border-color: rgba(var(--ton), .45);
  background-color: rgba(255,255,255,.052);
}
.einsatz .capability-scan article.ist-aktiv::before { opacity: 1; }
.einsatz .capability-scan article.ist-aktiv::after { opacity: 1; transform: scaleX(1); }
.einsatz .capability-scan article.ist-aktiv > span { color: rgb(var(--ton)); letter-spacing: .18em; }
.einsatz .capability-scan article.ist-aktiv > span::before,
.einsatz .capability-scan article.ist-aktiv > span::after { opacity: 1; transform: translateX(0) scaleX(1); }

@media (max-width: 560px) {
  .demo-faelle li { font-size: 9px; letter-spacing: .06em; }
}

@media (prefers-reduced-motion: reduce) {
  .live-punkt { animation: none; }
  .chat-beleg.beleg-ein { animation: none; }
}
