/* ==========================================================================
   WireCode – Website (Landingpage)
   ========================================================================== */

/* ---------- Sektionen allgemein ---------- */
.section { padding: clamp(72px, 10vw, 120px) 0; }
.section-alt {
  background: var(--paper-2);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.sec-head { max-width: 820px; margin-bottom: clamp(36px, 5vw, 56px); }
.sec-head h2, .sec-head h1 { font-size: clamp(30px, 4.2vw, 50px); }
.page-first { padding-top: clamp(48px, 7vw, 88px); }

/* ---------- Überblick (Startseite) ---------- */
.tiles {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
  padding: 18px 20px 18px;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--card);
  color: var(--ink);
  text-decoration: none;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.tile:hover { border-color: var(--ink-3); transform: translateY(-2px); box-shadow: 0 16px 30px -24px rgba(20, 22, 26, .5); }
.tile-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.tile-code { padding: 2px 7px; border: 1px solid var(--ink); border-radius: 3px; font-family: var(--f-mono); font-size: 12px; font-weight: 600; }
.tile b { font-family: var(--f-display); font-size: 21px; font-weight: 600; }
.tile-text { color: var(--ink-2); font-size: 15px; line-height: 1.45; }
.tile-go { margin-top: auto; padding-top: 10px; font-family: var(--f-mono); font-size: 12.5px; color: var(--ink-3); }
.tile:hover .led { background: var(--green); box-shadow: 0 0 0 2px rgba(54, 210, 111, .2), 0 0 8px rgba(54, 210, 111, .6); }
.tile:hover .tile-go { color: var(--ink); }
.sec-head .sub { margin-top: 18px; font-size: 18px; color: var(--ink-2); max-width: 40em; }
.sec-head .sub a { color: var(--ink); }

.sec-head-split {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 48px;
  align-items: end;
}
.sec-head-split .sub { margin: 0; font-size: 17px; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.eyebrow .code {
  padding: 3px 8px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: .04em;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { padding: clamp(48px, 7vw, 88px) 0 clamp(40px, 5vw, 64px); }

.kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 26px;
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.status-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 9px;
  border-radius: 4px;
  background: var(--ink);
  color: #F6D5CF;
  font-weight: 600;
  letter-spacing: .1em;
}

.hero-title {
  font-size: clamp(40px, 7.6vw, 98px);
  font-weight: 700;
  line-height: .98;
  letter-spacing: -.025em;
  text-wrap: initial;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(36px, 6vw, 80px);
  margin-top: clamp(36px, 5vw, 60px);
  align-items: start;
}

.hero-copy { padding-top: 8px; }
.lead { font-size: clamp(17px, 1.5vw, 19px); line-height: 1.6; color: var(--ink-2); max-width: 32em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  row-gap: 6px;
  margin: 44px 0 0;
  border-top: 1px solid var(--rule-strong);
}
.hero-facts div { padding: 14px 16px 0 0; margin-right: 16px; border-right: 1px solid var(--rule); }
.hero-facts div:last-child { border-right: 0; margin-right: 0; }
.hero-facts dt {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.hero-facts dd { margin: 2px 0 0; font-weight: 500; white-space: nowrap; }

/* ---------- Gerät mit Display ---------- */
.demo { position: relative; }

.device {
  position: relative;
  padding: 24px 28px 18px;
  border-radius: 16px;
  background: linear-gradient(180deg, #1F2328 0%, #16191D 100%);
  color: var(--panel-muted);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .07),
    inset 0 -2px 0 rgba(0, 0, 0, .35),
    var(--shadow-lg);
}
.screw {
  position: absolute;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #6E747B, #2A2E33 72%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06);
}
.screw::after {
  content: "";
  position: absolute;
  left: 2px; right: 2px; top: 4.75px;
  height: 1.5px;
  background: #15181B;
  transform: rotate(var(--rot, 32deg));
}
.screw.tl { top: 9px; left: 9px; }
.screw.tr { top: 9px; right: 9px; --rot: -18deg; }
.screw.bl { bottom: 9px; left: 9px; --rot: 74deg; }
.screw.br { bottom: 9px; right: 9px; --rot: 12deg; }

.device-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 16px;
  margin: 0 4px 14px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.device-leds { display: flex; gap: 16px; }
.device-leds span { display: inline-flex; align-items: center; gap: 7px; }

.lcd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px;
  border-radius: 8px;
  background: #0A0B0D;
  box-shadow: inset 0 2px 12px rgba(0, 0, 0, .85), 0 0 0 1px #2C3036;
}
.lcd-seg { height: clamp(64px, 8vw, 96px); }
.lcd-seg svg { transition: opacity .08s; }
.lcd-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .12em;
  color: #FF6A55;
  text-shadow: 0 0 6px rgba(255, 80, 60, .45);
  text-align: right;
}
.lcd-side span:first-child { padding: 1px 6px; border: 1px solid rgba(255, 106, 85, .55); border-radius: 3px; }
.lcd-side span:last-child { opacity: .6; }

.device-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 14px 4px 0;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  padding-bottom: 34px; /* Platz für die überlappende Ergebniskarte */
}
.device-keys { display: flex; gap: 8px; }
.device-keys span {
  display: grid;
  place-items: center;
  min-width: 36px; height: 24px;
  padding: 0 6px;
  border-radius: 5px;
  background: #272B31;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 2px 0 #0D0F12;
  font-size: 10px;
  color: #8B9199;
}

/* ---------- Ergebniskarte ---------- */
.decode {
  position: relative;
  z-index: 2;
  margin: -40px -12px 0 40px;
  border: 1px solid var(--rule-strong);
  border-radius: 12px;
  background: var(--card);
  box-shadow: 0 28px 50px -30px rgba(20, 22, 26, .45);
  overflow: hidden;
}
.decode-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 18px;
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--ink-3);
}
.decode-brand { display: inline-flex; align-items: center; gap: 9px; }
.decode-bar code {
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--ink);
  color: #FF7A66;
  font-weight: 600;
  letter-spacing: .06em;
}
.decode-body { padding: 18px 22px 20px; }
.decode-body.is-swapping > * { animation: swapIn .45s cubic-bezier(.2, .7, .2, 1) both; }
.decode-body.is-swapping > *:nth-child(2) { animation-delay: .05s; }
.decode-body.is-swapping > *:nth-child(3) { animation-delay: .1s; }
@keyframes swapIn { from { opacity: 0; transform: translateY(6px); } }

.chip {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--paper-2);
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--ink-2);
}
.decode h3 { margin: 10px 0 16px; font-size: clamp(21px, 2.1vw, 26px); }
.decode-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.decode h4 {
  margin-bottom: 8px;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.decode ul, .decode ol { margin: 0; padding: 0; list-style: none; font-size: 14.5px; line-height: 1.45; }
.decode li + li { margin-top: 8px; }
.decode ul li { position: relative; padding-left: 16px; }
.decode ul li::before {
  content: "";
  position: absolute;
  left: 0; top: .62em;
  width: 7px; height: 2px;
  background: var(--red);
}
.decode ol { counter-reset: s; }
.decode ol li { display: grid; grid-template-columns: 26px 1fr; counter-increment: s; }
.decode ol li::before {
  content: counter(s, decimal-leading-zero);
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.7;
  color: var(--green-ink);
}


.demo-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin: 16px -12px 0 40px;
}
.demo-tab {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1px;
  overflow: hidden;
  padding: 7px 10px 8px;
  text-align: left;
  border: 1px solid var(--rule-strong);
  border-radius: 4px;
  background: transparent;
  font-family: var(--f-mono);
  font-size: 12.5px;
  color: var(--ink-2);
  cursor: pointer;
}
.demo-tab b { font-weight: 600; letter-spacing: .04em; }
.demo-tab span { font-family: var(--f-body); font-size: 12.5px; opacity: .75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-tab:hover { border-color: var(--ink-3); color: var(--ink); }
.demo-tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.demo-tab::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 2px; width: 100%;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
}
.demo-tab.is-running::after { animation: tabProgress var(--dur, 7s) linear forwards; }
@keyframes tabProgress { to { transform: scaleX(1); } }

/* ==========================================================================
   Was ist WireCode
   ========================================================================== */
.what-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(36px, 6vw, 80px);
  align-items: start;
}
.what-intro { font-size: 18px; color: var(--ink-2); }
.points { list-style: none; margin: 32px 0 0; padding: 0; }
.points li { padding: 18px 0; border-top: 1px solid var(--rule); color: var(--ink-2); }
.points li:last-child { border-bottom: 1px solid var(--rule); }
.points b {
  display: block;
  margin-bottom: 4px;
  font-family: var(--f-display);
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
}

.protocol-wrap {
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  background: var(--card);
  overflow: hidden;
}
.protocol-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 12px 16px;
  border-bottom: 1.5px solid var(--ink);
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.protocol-head span:first-child { font-weight: 600; }
.protocol-head span:last-child { color: var(--ink-3); }

.protocol { width: 100%; border-collapse: collapse; font-size: 15px; }
.protocol thead th {
  padding: 10px 14px;
  border-bottom: 1px solid var(--ink);
  background: var(--paper-2);
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-align: left;
  color: var(--ink-3);
}
.protocol td, .protocol tbody th {
  padding: 14px;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
  text-align: left;
  line-height: 1.4;
}
.protocol tbody th { font-weight: 600; }
.protocol td:first-child { font-family: var(--f-mono); font-size: 13px; color: var(--ink-3); width: 52px; }
.protocol td:nth-child(3) { color: var(--ink-3); }
.protocol td + td + td { border-left: 1px dashed var(--rule); }
.protocol td:last-child { color: var(--ink); font-weight: 500; }
.protocol tr:last-child td, .protocol tr:last-child th { border-bottom: 0; }
.protocol-result td, .protocol-result th { background: var(--paper); }
.protocol-result .led { margin-right: 8px; vertical-align: 1px; }

/* ==========================================================================
   Ablauf / Klemmleiste
   ========================================================================== */
.steps {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.step {
  display: flex;
  flex-direction: column;
  padding-bottom: 28px;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--card);
  overflow: hidden;
}
.step-wire { display: flex; align-items: center; height: 52px; padding-left: 20px; }
.term {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 38px; height: 30px;
  border: 1px solid var(--rule-strong);
  border-radius: 3px;
  background: linear-gradient(#E9E7E1, #D5D1C8);
}
.term i {
  position: relative;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #B4B8BD, #6A6F75);
}
.term i::after {
  content: "";
  position: absolute;
  left: 2px; right: 2px; top: 6px;
  height: 2px;
  background: #3E4247;
  transform: rotate(-35deg);
}
.wire {
  flex: 1;
  height: 7px;
  margin-left: -2px;
  border-radius: 3px 0 0 3px;
  background: var(--wire);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .18), inset 0 -2px 0 rgba(0, 0, 0, .2);
}
.step-no {
  margin: 4px 22px 0;
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--ink-3);
}
.step-vis {
  display: grid;
  place-items: center;
  height: 168px;
  margin: 14px 22px 24px;
  padding: 18px;
  border-radius: 8px;
  background: var(--panel);
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, .5);
}
.step h3 { margin: 0 22px 8px; font-size: 22px; }
.step > p:last-child { margin: 0 22px; font-size: 16px; color: var(--ink-2); }

.mini-seg { height: 64px; }

.mini-app { width: 100%; max-width: 260px; font-size: 13px; color: var(--panel-text); }
.mini-crumbs { display: flex; gap: 6px; margin-bottom: 8px; font-family: var(--f-mono); font-size: 11px; color: var(--panel-muted); white-space: nowrap; overflow: hidden; }
.mini-crumbs .sep { color: #555B63; }
.mini-input {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid #3A3F47;
  border-radius: 6px;
  background: #0E1013;
  color: var(--panel-muted);
}
.typed { font-family: var(--f-mono); font-size: 15px; font-weight: 600; letter-spacing: .06em; color: #F1EFEA; }
.caret { width: 2px; height: 18px; margin-left: -6px; background: var(--green); animation: blink 1s steps(1, end) infinite; }
.mini-hit {
  display: flex;
  gap: 10px;
  align-items: baseline;
  margin-top: 8px;
  padding: 9px 12px;
  border-radius: 6px;
  background: #22262C;
  border-left: 3px solid var(--green);
}
.mini-hit b { font-family: var(--f-mono); font-size: 12.5px; color: #FF7A66; }

.mini-res { width: 100%; max-width: 260px; color: var(--panel-text); }
.mini-title { display: flex; gap: 10px; align-items: baseline; margin-bottom: 10px; font-family: var(--f-display); font-size: 16px; font-weight: 600; color: #F1EFEA; }
.mini-title code { font-size: 12px; color: #FF7A66; }
.mini-res ol { list-style: none; margin: 0; padding: 0; counter-reset: s; font-size: 13px; }
.mini-res li {
  display: grid;
  grid-template-columns: 24px 1fr;
  padding: 6px 8px;
  border-radius: 5px;
  counter-increment: s;
}
.mini-res li span { min-width: 0; }
.mini-res li::before { content: counter(s, decimal-leading-zero); font-family: var(--f-mono); font-size: 11px; color: var(--panel-muted); line-height: 1.75; }
.mini-res li.is-current { background: #22262C; color: #fff; }
.mini-res li.is-current::before { color: var(--green); }

/* ==========================================================================
   Bereiche / Verteiler als Anlagen-Display (HMI)
   ========================================================================== */
.hmi {
  --phos: #3BE07A;
  --phos-dim: #1E5A36;
  --phos-line: rgba(59, 224, 122, .16);
  --fault: #FF5A44;
  position: relative;
  padding: 22px clamp(14px, 2.4vw, 28px) 16px;
  border-radius: 16px;
  background: linear-gradient(180deg, #1F2328 0%, #15181C 100%);
  color: var(--panel-muted);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .07),
    inset 0 -2px 0 rgba(0, 0, 0, .35),
    var(--shadow-lg);
}

.hmi-head, .hmi-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 16px;
  margin: 0 6px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.hmi-head { margin-bottom: 14px; }
.hmi-foot { margin-top: 12px; font-size: 10.5px; color: #5F656D; }
.hmi-title { color: #9AA0A8; }
.hmi-leds { display: flex; gap: 16px; }
.hmi-leds span { display: inline-flex; align-items: center; gap: 7px; }

/* ---------- Bildschirm ---------- */
.hmi-screen {
  position: relative;
  border-radius: 10px;
  background: radial-gradient(ellipse at 50% 40%, #0A120D 0%, #050806 70%);
  box-shadow: inset 0 0 0 1px #2C3036, inset 0 3px 22px rgba(0, 0, 0, .9);
  overflow: clip;
}
/* Scanlines + Vignette */
.hmi-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  border-radius: inherit;
  background:
    repeating-linear-gradient(0deg, rgba(0, 0, 0, .28) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse at center, transparent 60%, rgba(0, 0, 0, .55) 100%);
}
/* Lichtband, das langsam über den Bildschirm wandert */
.hmi-sweep {
  position: absolute;
  left: 0; right: 0; top: -30%;
  z-index: 2;
  height: 26%;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(59, 224, 122, .05) 50%, transparent);
  animation: hmiSweep 7s linear infinite;
}
@keyframes hmiSweep { to { top: 110%; } }

.hmi-crt {
  position: relative;
  z-index: 1;
  padding: 14px clamp(12px, 1.6vw, 18px) 0;
  color: var(--phos);
  font-family: var(--f-mono);
  transform-origin: 50% 50%;
}

.hmi-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--phos-line);
  font-size: 11.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #2FB862;
}
.hs-brand { margin-right: auto; color: var(--phos); text-shadow: 0 0 6px rgba(59, 224, 122, .45); }
.hs-state { padding: 1px 7px; border: 1px solid currentColor; border-radius: 3px; }
.hs-state.is-test { animation: blink 1s steps(1, end) infinite; }
.hs-state.is-fault { color: var(--fault); text-shadow: 0 0 6px rgba(255, 90, 68, .55); animation: blink 1.1s steps(1, end) infinite; }
.hs-clock { opacity: .7; }

/* ---------- Abgänge ---------- */
.hmi-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  margin: 14px 0;
  border: 1px solid var(--phos-line);
  background: var(--phos-line);
}

.mod {
  --c: var(--phos-dim);
  position: relative;
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  justify-items: start;
  gap: 6px;
  min-width: 0;
  padding: 12px 12px 12px;
  border: 0;
  background: #060A07;
  color: var(--c);
  font-family: var(--f-mono);
  text-align: left;
  cursor: pointer;
  transition: background-color .2s, color .25s;
}
.mod:hover { background: #0A140E; }
.mod:focus-visible { outline: 2px solid var(--phos); outline-offset: -3px; }

.mod-top { display: flex; justify-content: space-between; width: 100%; font-size: 11px; letter-spacing: .06em; }
.mod-top b { font-weight: 600; }
.mod-top span { opacity: .7; }

/* Schaltersymbol als Strichgrafik */
.mod-icon { display: flex; flex-direction: column; align-items: center; justify-self: center; margin: 2px 0 4px; }
.mod-icon::before, .mod-icon::after { content: ""; width: 2px; height: 10px; background: currentColor; opacity: .55; }
.mod-slot {
  position: relative;
  width: 22px; height: 42px;
  border: 1.5px solid currentColor;
  border-radius: 4px;
}
.mod-lever {
  position: absolute;
  left: 3px; right: 3px; top: auto; bottom: 3px;
  height: 15px;
  border-radius: 2px;
  background: currentColor;
  transition: bottom .2s cubic-bezier(.3, 1.6, .5, 1);
}

.mod-code { font-family: var(--f-display); font-size: 21px; font-weight: 700; line-height: 1; letter-spacing: .02em; }
.mod-name { font-size: 11.5px; line-height: 1.35; opacity: .8; overflow-wrap: break-word; hyphens: manual; }
.mod-state { display: inline-flex; align-items: center; gap: 7px; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; }
.mod-state i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.mod-state em { font-style: normal; }

/* Eingeschaltet */
.mod.is-on { --c: var(--phos); text-shadow: 0 0 6px rgba(59, 224, 122, .4); }
.mod.is-on .mod-lever { bottom: calc(100% - 18px); box-shadow: 0 0 8px rgba(59, 224, 122, .7); }
.mod.is-on .mod-slot { box-shadow: 0 0 8px rgba(59, 224, 122, .25), inset 0 0 8px rgba(59, 224, 122, .15); }
.mod.is-on .mod-state i { box-shadow: 0 0 6px var(--phos); }

/* Ausgelöst (= ausgewählt) */
.mod[aria-pressed="true"] { --c: var(--fault); background: #140807; text-shadow: 0 0 6px rgba(255, 90, 68, .45); }
.mod[aria-pressed="true"] .mod-lever { bottom: 3px; box-shadow: 0 0 8px rgba(255, 90, 68, .7); }
.mod[aria-pressed="true"] .mod-slot { box-shadow: 0 0 10px rgba(255, 90, 68, .3); }
.mod[aria-pressed="true"] .mod-state { animation: blink 1s steps(1, end) infinite; }
.mod[aria-pressed="true"]::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 90, 68, .55);
  pointer-events: none;
}

/* kurzes Flackern beim Schalten */
.mod.is-flick { animation: modFlick .32s steps(1, end); }
@keyframes modFlick {
  0% { opacity: .2; }
  25% { opacity: 1; }
  45% { opacity: .35; }
  65%, 100% { opacity: 1; }
}

/* ---------- Statuszeile unten ---------- */
.hmi-readout {
  position: sticky;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
  min-height: 52px;
  margin: 0 calc(clamp(12px, 1.6vw, 18px) * -1);
  padding: 14px clamp(12px, 1.6vw, 18px);
  border-top: 1px solid var(--phos-line);
  background: #050806;
  font-size: 14px;
  color: #6FE79B;
  text-shadow: 0 0 6px rgba(54, 210, 111, .35);
}
.ro-id { padding: 1px 7px; border: 1px solid rgba(111, 231, 155, .5); border-radius: 3px; font-weight: 600; }
.ro-name { font-weight: 600; }
.ro-list { color: #A9EFC3; opacity: .85; }
.ro-list::before { content: "→ "; opacity: .6; }
.hmi.has-fault .ro-id { color: var(--fault); border-color: rgba(255, 90, 68, .6); text-shadow: 0 0 6px rgba(255, 90, 68, .5); }

/* ---------- Hochfahren beim Reinscrollen ---------- */
.hmi.is-off .hmi-crt { opacity: 0; transform: scaleY(.006); }
.hmi.is-booting .hmi-crt { animation: crtOn .55s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes crtOn {
  0% { opacity: 1; transform: scale(.4, .006); filter: brightness(4); }
  45% { opacity: 1; transform: scale(1, .012); filter: brightness(3); }
  70% { transform: scale(1, 1.04); filter: brightness(1.6); }
  100% { opacity: 1; transform: none; filter: none; }
}
.hmi.is-off .hmi-sweep { display: none; }
.hmi.is-off .hmi-screen::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 4px; height: 4px;
  margin: -2px 0 0 -2px;
  border-radius: 50%;
  background: rgba(59, 224, 122, .5);
  box-shadow: 0 0 8px rgba(59, 224, 122, .6);
}

/* ==========================================================================
   Einsatzberichte (dunkle Sektion mit Datenfluss)
   ========================================================================== */
.section-dark { background: var(--panel); color: #E9E7E2; }
.section-dark .sec-head .sub { color: #A5ABB3; }
.section-dark .eyebrow { color: #7E848C; }
.section-dark .eyebrow .code { border-color: #E9E7E2; color: #E9E7E2; }

.flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, .8fr) minmax(0, 1.15fr);
  align-items: center;
  gap: 0;
  margin-bottom: 48px;
}
.flow-card {
  position: relative;
  z-index: 1;
  border-radius: 12px;
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7);
  overflow: hidden;
}
.fr-head, .fi-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1.5px solid var(--ink);
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.fr-head span:last-child { color: var(--ink-3); }
.fr-rows { margin: 0; padding: 6px 16px; font-size: 14px; }
.fr-rows div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px dashed var(--rule); }
.fr-rows div:last-child { border-bottom: 0; }
.fr-rows dt { color: var(--ink-3); }
.fr-rows dd { margin: 0; display: flex; align-items: center; gap: 7px; font-weight: 500; }
.fr-rows code { font-size: 12.5px; color: var(--red-ink); }
.fr-send {
  display: block;
  margin: 6px 16px 16px;
  padding: 10px;
  border-radius: 6px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--f-display);
  font-weight: 600;
  text-align: center;
  animation: frSend 6s ease-in-out infinite;
}
@keyframes frSend {
  0%, 6% { background: var(--ink); transform: none; }
  8% { background: var(--green); color: var(--ink); transform: scale(.97); }
  14% { background: var(--green); color: var(--ink); transform: none; }
  20%, 100% { background: var(--ink); color: var(--paper); }
}

.flow-wire { position: relative; height: 120px; }
.flow-line {
  position: absolute;
  left: -2px; right: -2px; top: 50%;
  height: 6px;
  margin-top: -3px;
  border-radius: 3px;
  background:
    repeating-linear-gradient(90deg, transparent 0 18px, rgba(54, 210, 111, .5) 18px 26px, transparent 26px 52px),
    #2A2F36;
  background-size: 52px 100%, auto;
  animation: flowLine 1.2s linear infinite;
}
@keyframes flowLine { to { background-position: 52px 0, 0 0; } }
.flow-packet {
  position: absolute;
  top: 50%; left: 0;
  width: 14px; height: 14px;
  margin-top: -7px;
  border-radius: 50%;
  background: #EFFFF4;
  box-shadow: 0 0 8px 3px #36D26F, 0 0 24px 8px rgba(54, 210, 111, .45), -18px 0 14px -4px rgba(54, 210, 111, .55);
  opacity: 0;
  animation: flowPacket 6s cubic-bezier(.5, 0, .5, 1) infinite;
}
@keyframes flowPacket {
  0%, 12% { left: 0; opacity: 0; }
  15% { opacity: 1; }
  52% { left: calc(100% - 14px); opacity: 1; }
  56%, 100% { left: calc(100% - 14px); opacity: 0; }
}
.flow-tag {
  position: absolute;
  left: 50%; top: calc(50% + 16px);
  transform: translateX(-50%);
  font-size: 11px;
  letter-spacing: .04em;
  color: #6FE79B;
  white-space: nowrap;
  opacity: .8;
}

.fi-head { background: var(--paper); }
.fi-badge {
  padding: 1px 7px;
  border-radius: 10px;
  background: var(--green);
  font-weight: 600;
  color: var(--ink);
  animation: fiBadge 6s steps(1, end) infinite;
}
@keyframes fiBadge { 0%, 54% { opacity: 0; } 56%, 100% { opacity: 1; } }
.fi-list { list-style: none; margin: 0; padding: 4px 0; font-size: 14px; }
.fi-list li {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--rule);
}
.fi-list li:last-child { border-bottom: 0; }
.fi-list span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--ink-2); }
.fi-list b { color: var(--ink); }
.fi-list em { font-style: normal; font-family: var(--f-mono); font-size: 11.5px; color: var(--ink-3); }
.fi-new { overflow: hidden; animation: fiNew 6s ease-out infinite; }
@keyframes fiNew {
  0%, 54% { opacity: 0; max-height: 0; padding-top: 0; padding-bottom: 0; background: transparent; }
  58% { opacity: 1; max-height: 60px; padding-top: 10px; padding-bottom: 10px; background: #D6F5E1; }
  80% { background: var(--green-soft); }
  92% { opacity: 1; max-height: 60px; padding-top: 10px; padding-bottom: 10px; background: transparent; }
  100% { opacity: 0; max-height: 60px; padding-top: 10px; padding-bottom: 10px; }
}

.flow-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 32px;
}
.flow-points li { padding-top: 16px; border-top: 1px solid var(--panel-rule); color: #A5ABB3; font-size: 16px; }
.flow-points code { display: block; margin-bottom: 8px; font-size: 12px; font-weight: 600; color: #6FE79B; }
.flow-points b { display: block; margin-bottom: 4px; font-family: var(--f-display); font-size: 19px; font-weight: 600; color: #F1EFEA; }
.flow-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }

/* ==========================================================================
   Preise / Typenschilder
   ========================================================================== */
.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}
.plate {
  --rivet: #ABA79D;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px 28px 28px;
  border: 1px solid #C6C1B5;
  border-radius: 10px;
  background:
    radial-gradient(circle at 14px 14px, var(--rivet) 0 3px, transparent 3.6px),
    radial-gradient(circle at calc(100% - 14px) 14px, var(--rivet) 0 3px, transparent 3.6px),
    radial-gradient(circle at 14px calc(100% - 14px), var(--rivet) 0 3px, transparent 3.6px),
    radial-gradient(circle at calc(100% - 14px) calc(100% - 14px), var(--rivet) 0 3px, transparent 3.6px),
    linear-gradient(180deg, #E9E6E0, #D9D5CD);
  box-shadow: inset 0 1px 0 #fff, 0 1px 0 rgba(0, 0, 0, .04);
}
.plate-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 2px solid currentColor;
}
.plate-maker { display: block; margin-bottom: 4px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .18em; opacity: .65; }
.plate h2, .plate h3 { font-size: 34px; font-weight: 700; letter-spacing: -.01em; }
.plate-type {
  padding: 3px 8px;
  border: 1px solid currentColor;
  border-radius: 3px;
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
}
.plate-desc { min-height: 3.2em; margin-top: 14px; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.plate-specs { margin: 14px 0 24px; font-family: var(--f-mono); font-size: 13.5px; }
.plate-specs div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--rule-strong);
}
.plate-specs dt { color: var(--ink-3); }
.plate-specs dd { margin: 0; text-align: right; font-weight: 500; }
.plate-price { margin-top: auto; }
.pp-main { display: flex; align-items: flex-start; gap: 10px; }
.plate-price .amount { font-family: var(--f-display); font-size: clamp(50px, 4.6vw, 60px); font-weight: 700; line-height: .95; letter-spacing: -.02em; white-space: nowrap; }
.plate-price .per { display: block; margin-top: 8px; font-family: var(--f-mono); font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.plate-note {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 16px 0 22px;
  padding-top: 12px;
  border-top: 1px dashed var(--rule-strong);
  font-size: 12.5px;
  color: var(--ink-3);
}
.billing {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.billing .led { width: 6px; height: 6px; }
.plate-rec .billing { color: #C9CDD2; }
.plate-rec .plate-note { border-top-color: #3A3F47; }
.plate-rec .plate-price .per { color: #C9CDD2; }

.plate-rec {
  --rivet: #4C525A;
  border-color: #000;
  background:
    radial-gradient(circle at 14px 14px, var(--rivet) 0 3px, transparent 3.6px),
    radial-gradient(circle at calc(100% - 14px) 14px, var(--rivet) 0 3px, transparent 3.6px),
    radial-gradient(circle at 14px calc(100% - 14px), var(--rivet) 0 3px, transparent 3.6px),
    radial-gradient(circle at calc(100% - 14px) calc(100% - 14px), var(--rivet) 0 3px, transparent 3.6px),
    linear-gradient(180deg, #20242A, #15181C);
  color: #EDEBE6;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), var(--shadow-lg);
}
.plate-rec .plate-desc,
.plate-rec .plate-specs dt,
.plate-rec .plate-price .per,
.plate-rec .plate-note { color: #9AA0A8; }
.plate-rec .plate-specs div { border-bottom-color: #3A3F47; }
.rec-badge {
  position: absolute;
  top: -13px; left: 28px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--green);
  font-family: var(--f-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink);
}
.rec-badge .led { background: var(--ink); box-shadow: none; width: 6px; height: 6px; }

.plate-support { margin: -8px 0 22px; }
.plate-sup-h {
  margin-bottom: 6px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.plate-support ul { list-style: none; margin: 0; padding: 0; font-size: 14.5px; line-height: 1.4; }
.plate-support li { position: relative; padding: 3px 0 3px 16px; }
.plate-support li::before {
  content: "";
  position: absolute;
  left: 0; top: .72em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green-ink);
}
.plate-rec .plate-sup-h { color: #9AA0A8; }
.plate-rec .plate-support li::before { background: var(--green); box-shadow: 0 0 6px rgba(54, 210, 111, .7); }
.plate-disc {
  flex: none;
  margin-top: 6px;
  white-space: nowrap;
  padding: 2px 7px;
  border-radius: 3px;
  background: var(--ink);
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--green);
}
.plate-rec .plate-disc { background: var(--green); color: var(--ink); }

.plans-notes {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin: 26px 0 0;
  padding: 0;
  font-size: 15px;
  color: var(--ink-2);
}
.plans-notes li { display: inline-flex; align-items: center; gap: 10px; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.faq .sec-head { position: sticky; top: calc(var(--nav-h) + 32px); margin-bottom: 0; }
.faq-list details { border-top: 1px solid var(--rule-strong); }
.faq-list details:last-child { border-bottom: 1px solid var(--rule-strong); }
.faq-list summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 22px 0;
  list-style: none;
  cursor: pointer;
  font-family: var(--f-display);
  font-size: clamp(18px, 1.8vw, 21px);
  font-weight: 600;
  line-height: 1.3;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--ink-2); }
.plus {
  position: relative;
  flex: none;
  width: 28px; height: 28px;
  border: 1px solid var(--rule-strong);
  border-radius: 4px;
}
.plus::before, .plus::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 12px; height: 2px;
  margin: -1px 0 0 -6px;
  background: var(--ink);
  transition: transform .2s;
}
.plus::after { transform: rotate(90deg); }
details[open] .plus { background: var(--ink); border-color: var(--ink); }
details[open] .plus::before, details[open] .plus::after { background: var(--green); }
details[open] .plus::after { transform: rotate(0deg); }
.faq-list details p { max-width: 44em; padding: 0 48px 24px 0; color: var(--ink-2); }
.faq-list a { color: var(--ink); }

/* ==========================================================================
   CTA
   ========================================================================== */
.cta-section { padding: 0 0 clamp(72px, 9vw, 112px); }
.cta {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) auto;
  gap: 32px;
  align-items: center;
  padding: clamp(36px, 5vw, 64px);
  border-radius: 16px;
  background: var(--panel);
  color: #EDEBE6;
  overflow: hidden;
}
.cta-pulse {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  color: rgba(54, 210, 111, .13);
  pointer-events: none;
}
.cta-copy, .cta-actions { position: relative; }
.cta h2 { font-size: clamp(28px, 3.6vw, 44px); }
.cta p { margin-top: 14px; max-width: 34em; color: #A5ABB3; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  position: relative;
  padding: 52px 0 28px;
  background: var(--paper-2);
  border-top: 1px solid var(--rule);
}
.footer::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: -1px;
  height: 3px;
  background:
    linear-gradient(90deg, var(--l1) 0 20%, var(--l2) 20% 40%, var(--l3) 40% 60%, var(--n) 60% 80%, transparent 80%),
    repeating-linear-gradient(115deg, var(--pe-g) 0 10px, var(--pe-y) 10px 20px);
  opacity: .85;
}
.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.foot-brand .brand img { width: 30px; height: 30px; }
.foot-brand .wordmark { font-size: 17px; }
.foot-brand p { margin-top: 14px; font-size: 14.5px; line-height: 1.55; color: var(--ink-3); }
.foot-mail { display: inline-block; margin-top: 12px; font-size: 14.5px; color: var(--ink); }
.foot-col { display: flex; flex-direction: column; gap: 7px; }
.foot-h {
  margin-bottom: 4px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.foot-col a { width: fit-content; font-size: 15px; color: var(--ink-2); text-decoration: none; }
.foot-col a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 40px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  font-size: 13px;
  color: var(--ink-3);
}
.foot-stamp { font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 640px; }
  .demo { max-width: 680px; }
}

@media (max-width: 900px) {
  .sec-head-split, .what-grid, .faq { grid-template-columns: 1fr; }
  .sec-head-split { gap: 18px; }
  .faq .sec-head { position: static; }
  .flow { grid-template-columns: 1fr; max-width: 520px; }
  .flow-wire { height: 96px; }
  .flow-line { left: 50%; right: auto; top: -2px; bottom: -2px; width: 6px; height: auto; margin: 0 0 0 -3px;
    background: repeating-linear-gradient(180deg, transparent 0 18px, rgba(54, 210, 111, .5) 18px 26px, transparent 26px 52px), #2A2F36;
    background-size: 100% 52px, auto; animation-name: flowLineV; }
  .flow-packet { left: 50%; top: 0; margin: 0 0 0 -7px; animation-name: flowPacketV; box-shadow: 0 0 8px 3px #36D26F, 0 0 24px 8px rgba(54, 210, 111, .45); }
  .flow-tag { left: calc(50% + 16px); top: 50%; width: 140px; transform: translateY(-50%); white-space: normal; font-size: 10.5px; line-height: 1.45; }
  .flow-points { grid-template-columns: 1fr; gap: 20px; }
  .steps { grid-template-columns: 1fr; max-width: 560px; }
  .plans { grid-template-columns: 1fr; max-width: 520px; }
  .plate-desc { min-height: 0; }
  .hmi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cta { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .tiles { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .hero-facts { grid-template-columns: 1fr 1fr 1fr; }
  .hero-facts div { padding-right: 12px; margin-right: 12px; }
  .hero-facts dd { white-space: normal; font-size: 15px; }
  .device { padding: 20px 16px 14px; }
  .lcd { padding: 16px; gap: 12px; }
  .lcd-side { font-size: 10.5px; }
  .device-keys span { min-width: 28px; }
  .decode { margin: -40px 0 0 0; }
  .decode-cols { grid-template-columns: 1fr; gap: 16px; }
  .demo-tabs { margin: 16px 0 0; grid-template-columns: 1fr 1fr; }

  /* Protokoll als Karten */
  .protocol thead { display: none; }
  .protocol, .protocol tbody, .protocol tr, .protocol td, .protocol tbody th { display: block; width: auto; }
  .protocol tr { padding: 12px 16px; border-bottom: 1px solid var(--rule); }
  .protocol tr:last-child { border-bottom: 0; }
  .protocol td, .protocol tbody th { padding: 3px 0; border: 0 !important; }
  .protocol td:first-child { display: none; }
  .protocol tbody th { font-size: 16px; margin-bottom: 4px; }
  .protocol td:nth-child(3)::before,
  .protocol td:nth-child(4)::before {
    content: attr(data-label) ": ";
    font-family: var(--f-mono);
    font-size: 11px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ink-3);
  }

  .hmi { padding: 18px 10px 12px; border-radius: 12px; }
  .hmi-grid { grid-template-columns: 1fr 1fr; }
  .mod { grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto auto auto; column-gap: 12px; row-gap: 3px; padding: 10px; }
  .mod-top { grid-column: 1 / -1; }
  .mod-icon { grid-row: 2 / span 3; margin: 0; align-self: center; }
  .mod-icon::before, .mod-icon::after { height: 6px; }
  .mod-slot { width: 18px; height: 34px; }
  .mod-lever { height: 12px; }
  .mod.is-on .mod-lever { bottom: calc(100% - 15px); }
  .mod-code { font-size: 17px; }
  .mod-name { font-size: 10.5px; }
  .mod-state { font-size: 9.5px; }
  .hmi-status { font-size: 10px; gap: 4px 10px; }
  .hs-clock { display: none; }
  .hmi-readout { font-size: 12.5px; }
  .hmi-foot span:last-child { display: none; }
  .faq-list details p { padding-right: 0; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .footer { padding-bottom: 92px; }
  .tiles { grid-template-columns: 1fr; }
}

@keyframes flowLineV { to { background-position: 0 52px, 0 0; } }
@keyframes flowPacketV {
  0%, 12% { top: 0; opacity: 0; }
  15% { opacity: 1; }
  52% { top: calc(100% - 14px); opacity: 1; }
  56%, 100% { top: calc(100% - 14px); opacity: 0; }
}

/* ==========================================================================
   Datenbank-Stand (Startseite)
   ========================================================================== */
.db-section { padding: 0 0 clamp(56px, 8vw, 96px); }
.dbbar {
  position: relative;
  padding: 20px clamp(16px, 2.6vw, 30px) 22px;
  border-radius: 16px;
  background: linear-gradient(180deg, #1F2328 0%, #15181C 100%);
  color: var(--panel-muted);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), inset 0 -2px 0 rgba(0, 0, 0, .35), var(--shadow-lg);
}
.dbbar-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 16px;
  margin: 0 6px 14px;
}
.dbbar-title {
  font-family: var(--f-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #9AA0A8;
}
.dbbar-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.dbbar-grid { display: grid; grid-template-columns: 1fr 1.2fr 1.6fr; gap: 12px; }
.dbstat {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: 18px 20px 16px;
  border-radius: 10px;
  background: #0A0B0D;
  box-shadow: inset 0 2px 12px rgba(0, 0, 0, .85), 0 0 0 1px #2C3036;
}
.dbseg { height: clamp(44px, 5vw, 66px); }
.dbseg svg { max-width: 100%; }
.dbl {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #6FE79B;
}
.dbstat-codes .dbl { color: #FF7A66; }

@media (max-width: 900px) {
  .dbbar-grid { grid-template-columns: 1fr 1fr; }
  .dbstat-codes { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .dbbar-grid { grid-template-columns: 1fr; }
  .dbseg { height: 46px; }
}
