/* Interaktive Demo im Stil leuchtender Prozess-Karten. */
.demo {
  padding: 22px;
  border: 1px solid rgba(94, 200, 255, 0.28);
  border-radius: 30px;
  background:
    radial-gradient(circle at 50% 0, rgba(33, 142, 255, 0.16), transparent 60%),
    rgba(6, 12, 24, 0.82);
  box-shadow:
    0 0 0 1px rgba(94, 200, 255, 0.06) inset,
    0 40px 100px rgba(0, 0, 0, 0.45);
}
.demo-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.demo-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.demo-tab {
  padding: 9px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.8);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.demo-tab.active {
  border-color: rgba(94, 200, 255, 0.7);
  background: rgba(33, 142, 255, 0.2);
  color: #fff;
}
.demo-badge {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: #9bcbff;
}
.demo-stage {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 300px;
  gap: 18px;
  align-items: stretch;
}
.demo-card,
.demo-side > * {
  border: 1px solid rgba(94, 200, 255, 0.35);
  border-radius: 18px;
  background: rgba(10, 20, 38, 0.9);
  box-shadow: 0 0 22px rgba(33, 142, 255, 0.12);
}
.demo-input {
  padding: 16px;
  font-size: 13px;
}
.demo-input strong {
  display: block;
  margin: 6px 0 8px;
}
.demo-input p {
  margin: 4px 0 0;
  color: var(--muted);
}
.demo-label {
  display: block;
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #5ec8ff;
}
.demo-pipeline {
  position: relative;
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.demo-pipeline::before {
  content: "";
  position: absolute;
  left: 27px;
  top: 18px;
  bottom: 18px;
  width: 2px;
  background: linear-gradient(180deg, rgba(94, 200, 255, 0.5), rgba(33, 142, 255, 0.15));
}
.demo-step {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    background-color 0.3s ease;
}
.demo-num {
  position: relative;
  z-index: 1;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(94, 200, 255, 0.45);
  border-radius: 8px;
  background: #07101f;
  font-family: var(--font-display);
  font-size: 11px;
  color: #9bcbff;
}
.demo-step.is-approval .demo-num {
  border-color: rgba(252, 211, 77, 0.6);
  color: #fcd34d;
}
.demo-step.is-active {
  border-color: rgba(94, 200, 255, 0.85);
  background: rgba(33, 142, 255, 0.14);
  box-shadow: 0 0 26px rgba(33, 142, 255, 0.35);
}
.demo-step.is-done {
  border-color: rgba(110, 231, 183, 0.45);
}
.demo-step.is-done .demo-num {
  border-color: rgba(110, 231, 183, 0.7);
  color: #6ee7b7;
}
.demo-step.is-stopped {
  border-color: rgba(248, 113, 113, 0.6);
}
.demo-side {
  display: grid;
  grid-auto-rows: min-content;
  gap: 12px;
}
.demo-log {
  max-height: 220px;
  margin: 0;
  padding: 12px 14px;
  overflow: auto;
  list-style: none;
  font-size: 12px;
  display: grid;
  gap: 8px;
}
.demo-log li {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 6px;
  color: rgba(255, 255, 255, 0.85);
}
.demo-log .demo-log-idle {
  display: block;
  color: var(--faint);
}
.demo-time {
  font-family: var(--font-display);
  color: var(--faint);
}
.demo-log .is-ok {
  color: #6ee7b7;
}
.demo-log .is-wait {
  color: #fcd34d;
}
.demo-log .is-stop {
  color: #fca5a5;
}
.demo-approval,
.demo-result {
  padding: 14px;
  font-size: 14px;
}
.demo-approval {
  border-color: rgba(252, 211, 77, 0.55);
  box-shadow: 0 0 26px rgba(252, 211, 77, 0.12);
}
.demo-approval p,
.demo-result p {
  margin: 8px 0 0;
}
.demo-approval-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.demo-approval-actions .pill {
  padding: 9px 16px;
  font-size: 14px;
}
.demo-compare {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 14px;
  margin: 10px 0 0;
  font-size: 13px;
}
.demo-compare dt {
  font-family: var(--font-display);
  font-size: 11px;
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.demo-compare dd {
  margin: 0;
  color: #fff;
}
.demo-compare dd:last-of-type {
  color: #6ee7b7;
}
.demo-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
}
.demo-start[disabled] {
  opacity: 0.6;
  cursor: progress;
}
.demo-hint {
  font-size: 13px;
  color: var(--faint);
}
@media (max-width: 1000px) {
  .demo-stage {
    grid-template-columns: 1fr;
  }
}
