/* ============================================================
   Zetcore IT — "Systemkern"
   ------------------------------------------------------------
   Richtung: technische Dokumentation mit einem dunklen, leuchtenden
   Auftakt statt eines flaechigen Blaupausenrasters (das las sich als
   kalt/Server-Dashboard). Signale:
   - Warmneutrales Papier statt blaustichigem Grau
   - Petrol als Leitfarbe: gedaempft auf Hell, hell/leuchtend auf Dunkel
   - Hero bewusst dunkel (Ink-2, nicht das schwaerzeste Ink) mit
     leuchtendem Schema-Visual — der Rest der Seite bleibt hell,
     damit es in der Summe nicht wieder "zu dunkel" wirkt.
   - Monospace als Funktionsschrift fuer Labels, Kennungen, Metadaten
   Bewusst NICHT: Neon auf Vollschwarz, Terminal-Optik, Hacker-Klischee.
   ============================================================ */

:root {
  /* Flaechen — warmneutral statt blaustichig */
  --paper: #f2f0ec;
  --paper-2: #e7e4dc;
  --panel: #f8f7f3;
  --ink: #14171a;
  /* Helleres Dunkel eigens fuer den Hero — liest sich klar als "dunkel",
     ohne so schwer wie reines --ink zu wirken (Feedback: "nicht ganz zu dunkel"). */
  --ink-2: #1e252b;

  /* Text */
  --text: #14171a;
  --text-soft: #55564c;
  /* Gemessen: 5.1:1 auf Paper, 5.5:1 auf Panel. */
  --text-faint: #5d5c50;
  --on-ink: #f2f0ec;
  --on-ink-soft: #a7ada4;

  /* Akzent + Signal — Petrol statt Standard-SaaS-Blau */
  --teal: #0e6f6b;
  --teal-soft: #dbeae7;
  /* Helle Leuchtfassung fuer Petrol auf Dunkel: --teal kommt dort nur auf
     3.4:1, diese Fassung auf 9.7:1 (Ink) / 8.3:1 (Ink-2). */
  --teal-on-ink: #2dd4bf;
  --signal: #c76a3f;
  --ok: #157f52;

  /* Konstruktion */
  --line: #d9d5c9;
  --line-2: #e3e0d6;
  --line-ink: #2a3238;
  --grid: rgba(20, 23, 26, 0.05);

  /* Schrift */
  --display: "Archivo", system-ui, sans-serif;
  --sans: "IBM Plex Sans", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  /* Raster */
  --gutter: clamp(1.15rem, 3.4vw, 3rem);
  --max: 1360px;
  --sy: clamp(4.5rem, 9vw, 8rem);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: clamp(0.97rem, 1vw, 1.02rem);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* Punktraster statt Linienkreuz: gleiche technische Herkunft (Konstruktions-
     papier), aber ruhiger — ein Kreuzraster liest sich schnell als Excel-
     Tabelle statt als bewusste Gestaltung. */
  background-image: radial-gradient(var(--grid) 1.3px, transparent 1.3px);
  background-size: 28px 28px;
}

img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}
:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.shell {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: -9999px;
  background: var(--teal);
  color: #fff;
  padding: 0.8rem 1.4rem;
  z-index: 200;
  font-weight: 600;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: var(--teal);
  z-index: 120;
  pointer-events: none;
}

/* Fadenkreuz statt Blase — Praezision statt Verspieltheit */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 22px;
  height: 22px;
  pointer-events: none;
  z-index: 130;
  transform: translate3d(-100px, -100px, 0);
  transition: width 200ms var(--ease), height 200ms var(--ease),
    opacity 200ms var(--ease);
  will-change: transform;
  opacity: 0.85;
}
.cursor::before,
.cursor::after {
  content: "";
  position: absolute;
  background: var(--teal);
}
.cursor::before {
  left: 50%;
  top: 0;
  width: 1px;
  height: 100%;
  transform: translateX(-50%);
}
.cursor::after {
  top: 50%;
  left: 0;
  height: 1px;
  width: 100%;
  transform: translateY(-50%);
}
.cursor[data-hot="true"] {
  width: 40px;
  height: 40px;
}
@media (hover: none), (pointer: coarse) {
  .cursor {
    display: none;
  }
}

/* Cursor-Tooltip: begleitet die Maus nur ueber Elementen mit
   [data-cursor="…"] — eigenes Element statt Erweiterung des Fadenkreuzes,
   damit beide unabhaengig ein-/ausblenden koennen. */
.cursorLabel {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 131;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--on-ink);
  padding: 0.4rem 0.7rem;
  border-radius: 3px;
  opacity: 0;
  transform: translate3d(-200px, -200px, 0) scale(0.92);
  transition: opacity 200ms var(--ease), transform 200ms var(--ease);
  white-space: nowrap;
}
.cursorLabel[data-show="true"] {
  opacity: 1;
}
@media (hover: none), (pointer: coarse) {
  .cursorLabel {
    display: none;
  }
}

/* ---------- Typografie ---------- */

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.028em;
  line-height: 1;
  margin: 0;
  text-wrap: balance;
}

.h-xl {
  font-size: clamp(2.5rem, 7.2vw, 6.4rem);
  line-height: 0.98;
}
.h-lg {
  font-size: clamp(1.9rem, 4.4vw, 3.6rem);
}
.h-md {
  font-size: clamp(1.35rem, 2.5vw, 2.1rem);
}

/* Label mit Kennung — das Arbeitspferd der technischen Anmutung */
.tag {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 1.1rem;
}
.tag::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--teal);
}

.lede {
  font-size: clamp(1rem, 1.25vw, 1.14rem);
  line-height: 1.6;
  color: var(--text-soft);
  max-width: 58ch;
}

.section {
  padding-block: var(--sy);
  position: relative;
}
/* Feine Trennlinie zwischen den Abschnitten — Blattgrenze */
.section + .section {
  border-top: 1px solid var(--line-2);
}

/* ---------- Buttons ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 50px;
  padding: 0 1.5rem;
  border-radius: 3px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.94rem;
  overflow: hidden;
  isolation: isolate;
  will-change: transform;
}
.btn span,
.btn svg {
  position: relative;
  z-index: 1;
}
.btn svg {
  transition: transform 380ms var(--ease);
}
.btn:hover svg {
  transform: translateX(4px);
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  transform: translateY(101%);
  transition: transform 420ms var(--ease);
}
.btn:hover::after {
  transform: translateY(0);
}

.btn--fill {
  background: var(--teal);
  color: #fff;
}
.btn--fill::after {
  background: var(--ink);
}
.btn--line {
  border: 1px solid var(--ink);
  color: var(--ink);
}
.btn--line::after {
  background: var(--ink);
}
.btn--line:hover {
  color: var(--paper);
}
.btn--onink {
  border: 1px solid rgba(238, 241, 245, 0.3);
  color: var(--on-ink);
}
.btn--onink::after {
  background: var(--paper);
}
.btn--onink:hover {
  color: var(--ink);
}

/* ---------- Header ---------- */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding-block: 0.85rem;
  transition: background 340ms var(--ease), border-color 340ms var(--ease),
    color 340ms var(--ease);
  border-bottom: 1px solid transparent;
  /* Kopfzeile startet transparent ueber dem dunklen Hero (--ink-2) und muss
     dort helle Schrift zeigen; nach dem Scrollen liegt sie auf Papier und
     braucht dunkle Schrift. --hdr-fg/-soft treiben Marke, Nav, Uhr, Burger. */
  --hdr-fg: var(--on-ink);
  --hdr-fg-soft: var(--on-ink-soft);
  color: var(--hdr-fg);
}
.header[data-solid="true"] {
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
  --hdr-fg: var(--ink);
  --hdr-fg-soft: var(--text-soft);
}
.header__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  font-family: var(--display);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: -0.015em;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  color: inherit;
}
@keyframes blip {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

/* Marke: ein "Z" aus genau dem Vokabular, das die Seite sonst fuer ihr
   System-Diagramm nutzt — zwei gestapelte Balken (wie die Hero-Layer) plus
   eine Wire-Diagonale mit Knoten (wie das Prinzip-Schema). Die Balken folgen
   currentColor und passen sich so automatisch Header/Drawer/Footer an; nur
   der Akzent (Wire + Kern) braucht in dunklen Kontexten die hellere
   Teal-Variante. */
.brandmark {
  width: 24px;
  height: 24px;
  flex: none;
  --accent: var(--teal);
}
.brandmark__bar {
  fill: currentColor;
}
.brandmark__wire {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3.4;
  stroke-linecap: round;
}
.brandmark__core {
  fill: var(--accent);
  filter: drop-shadow(0 0 3px var(--accent));
}
.footer .brandmark,
.drawer .brandmark,
.header:not([data-solid="true"]) .brandmark {
  --accent: var(--teal-on-ink);
}
@media (prefers-reduced-motion: no-preference) {
  .brandmark__core {
    animation: brandPulse 1200ms var(--ease) 300ms 1 backwards;
  }
}
@keyframes brandPulse {
  0% { r: 0; opacity: 0; }
  65% { r: 4; opacity: 1; }
  100% { r: 2.8; opacity: 1; }
}

.brand__word {
  display: inline-flex;
  align-items: baseline;
  gap: 0.42rem;
}
.brand__tag {
  font-family: var(--mono);
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 0.14rem 0.32rem;
  border: 1px solid currentColor;
  border-radius: 3px;
  opacity: 0.7;
}

.nav {
  display: none;
  gap: 1.9rem;
}
.nav a {
  font-size: 0.88rem;
  font-weight: 500;
  position: relative;
  padding-block: 0.3rem;
  overflow: hidden;
  color: var(--hdr-fg-soft);
  transition: color 220ms var(--ease);
}
.nav a:hover {
  color: var(--hdr-fg);
}
.nav a span {
  display: block;
  transition: transform 380ms var(--ease);
}
.nav a span::after {
  content: attr(data-t);
  position: absolute;
  left: 0;
  top: 100%;
  color: var(--teal);
}
.nav a:hover span {
  transform: translateY(-100%);
}
/* Scrollspy: markiert den Abschnitt, in dem man sich gerade befindet —
   dauerhaft, im Unterschied zum kurzen Hover-Wisch oben. */
.nav a.on {
  color: var(--teal);
}

.header .btn {
  display: none;
  min-height: 42px;
  font-size: 0.86rem;
}

/* Echte, live laufende Uhrzeit im Header — reine Systemzeit, kein Fake-Wert. */
.clock {
  display: none;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.03em;
  color: var(--hdr-fg-soft);
  white-space: nowrap;
}
.clock i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
  flex: none;
}
@media (prefers-reduced-motion: no-preference) {
  .clock i {
    animation: blip 2.6s var(--ease) infinite;
  }
}
.clock b {
  font-weight: 500;
  color: var(--hdr-fg);
  font-variant-numeric: tabular-nums;
}

.burger {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--hdr-fg);
  border-radius: 3px;
  color: var(--hdr-fg);
}

@media (min-width: 960px) {
  .nav,
  .header .btn,
  .clock {
    display: flex;
  }
  .burger {
    display: none;
  }
}
/* Auf mittleren Breiten (960–1180px) waere Nav + Uhr + Button zu eng — Uhr
   weicht dort der Navigation. */
@media (min-width: 960px) and (max-width: 1180px) {
  .clock {
    display: none;
  }
}

.drawer {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: var(--ink);
  color: var(--on-ink);
  padding: var(--gutter);
  display: flex;
  flex-direction: column;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 520ms var(--ease);
  visibility: hidden;
}
.drawer[data-open="true"] {
  clip-path: inset(0 0 0 0);
  visibility: visible;
}
.drawer__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.6rem;
}
.drawer .burger {
  border-color: rgba(238, 241, 245, 0.35);
}
.drawer nav {
  display: flex;
  flex-direction: column;
}
.drawer nav a {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.6rem, 7vw, 2.6rem);
  letter-spacing: -0.025em;
  padding-block: 0.5rem;
  border-bottom: 1px solid var(--line-ink);
  opacity: 0;
  transform: translateY(16px);
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
}
.drawer nav a::before {
  content: attr(data-n);
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--on-ink-soft);
  letter-spacing: 0.1em;
}
.drawer[data-open="true"] nav a {
  animation: drawerIn 460ms var(--ease) forwards;
}
.drawer[data-open="true"] nav a:nth-child(1) { animation-delay: 110ms; }
.drawer[data-open="true"] nav a:nth-child(2) { animation-delay: 165ms; }
.drawer[data-open="true"] nav a:nth-child(3) { animation-delay: 220ms; }
.drawer[data-open="true"] nav a:nth-child(4) { animation-delay: 275ms; }
.drawer[data-open="true"] nav a:nth-child(5) { animation-delay: 330ms; }
@keyframes drawerIn {
  to { opacity: 1; transform: none; }
}
.drawer .btn {
  margin-top: 2.2rem;
  align-self: flex-start;
}

/* ---------- Hero ---------- */

/* Hero bewusst dunkel (--ink-2, die hellere der beiden Dunkelflaechen) —
   der Rest der Seite bleibt hell, damit es in der Summe nicht wieder
   "zu dunkel" wirkt. */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 7rem;
  padding-bottom: 2rem;
  overflow: hidden;
  background: var(--ink-2);
  color: var(--on-ink);
}

/* Leuchtendes Systemschema: eine unscharfe Kopie (Glow) hinter einer
   scharfen Kopie — kein Bild, kein Fremdasset, nur SVG + Blur-Filter. */
.heroGlow {
  position: absolute;
  top: 50%;
  right: clamp(-8%, -2vw, 4%);
  transform: translateY(-50%);
  width: min(64vw, 620px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.9;
}
.heroGlow svg {
  width: 100%;
  height: auto;
  overflow: visible;
}
.heroGlow__blur rect {
  fill: none;
  stroke: var(--teal-on-ink);
  stroke-width: 2.5;
  filter: blur(14px);
  opacity: 0.55;
}
.heroGlow__line line {
  stroke: var(--on-ink-soft);
  stroke-width: 1;
  opacity: 0.4;
}
.heroGlow__crisp rect {
  fill: color-mix(in srgb, var(--ink) 55%, transparent);
  stroke: var(--teal-on-ink);
  stroke-width: 1.25;
  opacity: 0.9;
}
.heroGlow__dot circle {
  fill: var(--teal-on-ink);
  filter: drop-shadow(0 0 6px var(--teal-on-ink));
}
@media (prefers-reduced-motion: no-preference) {
  .heroGlow__dot circle {
    animation: heroPulse 2.6s var(--ease) infinite;
  }
  .heroGlow__dot circle:nth-child(2) { animation-delay: 0.4s; }
  .heroGlow__dot circle:nth-child(3) { animation-delay: 0.8s; }
  .heroGlow__dot circle:nth-child(4) { animation-delay: 1.2s; }
}
@keyframes heroPulse {
  0%, 100% { opacity: 1; r: 4; }
  50% { opacity: 0.35; r: 3; }
}
.heroGlow__t {
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.09em;
  fill: var(--on-ink-soft);
}
@media (max-width: 720px) {
  /* Auf kleinen Schirmen in den Textfluss stellen statt zu ueberlagern
     (steht vor der Headline im DOM, rein dekorativ/aria-hidden, daher
     ohne Auswirkung auf die Lesereihenfolge) — dieselbe Lektion wie beim
     Netzwerk-Motiv der vorherigen Fassung. */
  .heroGlow {
    position: relative;
    inset: auto;
    transform: none;
    width: min(78vw, 340px);
    margin: 2.2rem auto 0;
    opacity: 1;
  }
}

.hero__in {
  position: relative;
  z-index: 2;
}

.hero h1 {
  margin-block: 1.1rem 0;
  max-width: 17ch;
  color: var(--on-ink);
}
.line {
  display: block;
  overflow: hidden;
}
.line > span {
  display: block;
  transform: translateY(105%);
}
.is-ready .line > span {
  animation: lineUp 900ms var(--ease) forwards;
}
.is-ready .line:nth-child(1) > span { animation-delay: 100ms; }
.is-ready .line:nth-child(2) > span { animation-delay: 190ms; }
@keyframes lineUp {
  to { transform: none; }
}
.hero h1 em {
  font-style: normal;
  color: var(--teal-on-ink);
}
.hero .tag {
  color: var(--on-ink-soft);
}
.hero .lede {
  color: var(--on-ink-soft);
}

.hero__foot {
  position: relative;
  z-index: 2;
  margin-top: clamp(1.8rem, 3.6vw, 2.8rem);
  display: grid;
  gap: 1.8rem;
  align-items: end;
}
@media (min-width: 860px) {
  .hero__foot {
    grid-template-columns: 1fr auto;
  }
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

/* Technische Kennwerte unter dem Hero — auf Dunkel */
.specs {
  position: relative;
  z-index: 2;
  margin-top: clamp(2.4rem, 5vw, 3.6rem);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  border-top: 1px solid var(--line-ink);
}
.spec {
  padding: 1rem 1.1rem 0.9rem;
  border-right: 1px solid var(--line-ink);
}
.spec:last-child {
  border-right: none;
}
/* .specs lebt nur im dunklen Hero — Farben entsprechend auf --on-ink*. */
.spec dt {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--on-ink-soft);
  margin-bottom: 0.4rem;
}
.spec dd {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--on-ink);
}

.fade-up {
  opacity: 0;
  transform: translateY(20px);
}
.is-ready .fade-up {
  animation: fadeUp 800ms var(--ease) forwards;
  animation-delay: 500ms;
}
@keyframes fadeUp {
  to { opacity: 1; transform: none; }
}

/* ---------- Kapazitaetsleiste (ersetzt das Buzzword-Laufband) ---------- */

.capbar {
  border-block: 1px solid var(--line);
  background: var(--panel);
  overflow: hidden;
  display: flex;
}
.capbar__track {
  display: flex;
  flex: none;
  animation: slide 56s linear infinite;
  will-change: transform;
}
.capbar:hover .capbar__track {
  animation-play-state: paused;
}
@keyframes slide {
  to { transform: translateX(-100%); }
}
.capbar span {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
  white-space: nowrap;
  padding: 0.75rem 1.6rem;
  border-right: 1px solid var(--line-2);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.capbar span::before {
  content: "";
  width: 4px;
  height: 4px;
  background: var(--teal);
  flex: none;
}

/* ---------- Manifest ---------- */

.manifest p {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.4rem, 3.6vw, 2.9rem);
  line-height: 1.16;
  letter-spacing: -0.025em;
  margin: 0;
  max-width: 24ch;
}
.manifest w {
  display: inline-block;
  color: color-mix(in srgb, var(--text) 18%, transparent);
  transition: color 240ms linear;
}
.manifest w.on {
  color: var(--text);
}
.manifest w.hi.on {
  color: var(--teal);
}

/* ---------- Schema: vier Straenge, eine Leitung ---------- */

.schema {
  position: relative;
  height: 300svh;
}
.schema__stick {
  position: sticky;
  top: 0;
  height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.schema__in {
  /* War 1100px auf var(--max)=1360px Shell — auf breiten Screens blieb
     das Schema klein und wirkte verloren in der vollen Viewport-Hoehe. */
  width: min(1320px, 100%);
  padding-inline: var(--gutter);
}
.schema__head {
  margin-bottom: clamp(1.5rem, 4vw, 2.8rem);
}
.schema__head h2 {
  max-width: 20ch;
}
.schema__head em {
  font-style: normal;
  color: var(--teal);
}
.schema__head .tag {
  margin-bottom: 0.9rem;
}

/* Die Verbindungen werden in JS aus den echten Elementpositionen gezeichnet
   — dadurch stimmt das Schema bei jeder Breite, ohne zweite Fassung. */
.schema__grid {
  position: relative;
  display: grid;
  gap: 0.9rem;
}
@media (min-width: 900px) {
  .schema__grid {
    /* Groesser als zuvor (24rem/17rem) — auf breiten Screens wirkte das
       Schema sonst wie ein kleiner Block im leeren Sticky-Viewport. */
    grid-template-columns: minmax(0, 29rem) 1fr minmax(0, 21rem);
    grid-template-rows: repeat(4, auto);
    gap: 1.1rem 0;
    align-items: center;
  }
  .schema__grid .wire:nth-of-type(1) { grid-column: 1; grid-row: 1; }
  .schema__grid .wire:nth-of-type(2) { grid-column: 1; grid-row: 2; }
  .schema__grid .wire:nth-of-type(3) { grid-column: 1; grid-row: 3; }
  .schema__grid .wire:nth-of-type(4) { grid-column: 1; grid-row: 4; }
  .schema__grid .hub { grid-column: 3; grid-row: 1 / -1; }
}

.schema__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}
.schema__svg path {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}
/* Leuchtpunkt an der wachsenden Spitze jeder Linie — reitet mit, statt dass
   die Linie nur stumpf gezeichnet wird (Feedback: "innovativer"). Der Glow
   wird pro Punkt inline mit derselben Farbe wie "fill" gesetzt (JS) — auf
   ein SVG-<circle> faerbt "currentColor" ueber die CSS-"color"-Kaskade,
   nicht ueber das "fill"-Attribut, waere hier also die falsche Farbe. */

.wire {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 4px solid var(--wire, var(--teal));
  border-radius: 4px;
  padding: 1.35rem 1.6rem;
  position: relative;
  z-index: 2;
}
.wire:nth-of-type(1) { --wire: var(--teal); }
.wire:nth-of-type(2) { --wire: var(--ink); }
.wire:nth-of-type(3) { --wire: var(--signal); }
.wire:nth-of-type(4) { --wire: #7b8b9a; }
.wire b {
  font-family: var(--display);
  font-size: clamp(1.15rem, 1.7vw, 1.4rem);
  letter-spacing: -0.015em;
  display: block;
}
.wire i {
  font-style: normal;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.hub {
  background: var(--ink);
  color: var(--on-ink);
  border-radius: 4px;
  padding: 2.2rem 1.7rem;
  text-align: center;
  position: relative;
  z-index: 2;
  box-shadow: 0 0 0 0 transparent;
}
/* Einmaliger "Systemstart"-Glow, sobald der Hub fertig zusammengesetzt ist —
   greift dieselbe Leucht-Sprache wie das Hero-Visual auf (teal-on-ink). */
.hub.is-online {
  animation: hubOnline 900ms var(--ease) 1;
}
@keyframes hubOnline {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--teal-on-ink) 55%, transparent); }
  60% { box-shadow: 0 0 30px 6px color-mix(in srgb, var(--teal-on-ink) 45%, transparent); }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.hub b {
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.3vw, 1.9rem);
  letter-spacing: -0.02em;
  display: block;
  line-height: 1.15;
}
.hub i {
  font-style: normal;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-ink-soft);
  display: block;
  margin-top: 0.5rem;
}

/* ---------- Aussagen ---------- */

.claims {
  margin-top: 3rem;
  border-top: 1px solid var(--ink);
}
.claim {
  position: relative;
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 1rem;
  align-items: baseline;
  padding: 1.25rem 1rem 1.25rem 0;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}
.claim::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--ink);
  transform: scaleY(0);
  transform-origin: 50% 100%;
  transition: transform 380ms var(--ease);
}
.claim:hover::before {
  transform: scaleY(1);
  transform-origin: 50% 0%;
}
.claim__k {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-faint);
  padding-left: 1rem;
  transition: color 260ms var(--ease);
}
.claim p {
  margin: 0;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  max-width: 62ch;
  transition: color 260ms var(--ease);
}
/* Beide Textebenen schalten mit — genau das ging vorher unter, weil ein
   Inline-Style die Farbe festgenagelt hatte. */
.claim:hover p {
  color: var(--on-ink);
}
.claim:hover .claim__k {
  color: var(--teal-on-ink);
}

/* ---------- Leistungen ---------- */

.svc {
  border-top: 1px solid var(--ink);
}
.svc__row {
  position: relative;
  display: grid;
  gap: 0.35rem 1.8rem;
  padding-block: clamp(1.3rem, 2.6vw, 2rem);
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  isolation: isolate;
}
@media (min-width: 880px) {
  .svc__row {
    grid-template-columns: 4rem minmax(0, 18rem) 1fr auto;
    align-items: center;
  }
}
.svc__row::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--ink);
  transform: scaleY(0);
  transform-origin: 50% 100%;
  transition: transform 400ms var(--ease);
}
.svc__row:hover::before {
  transform: scaleY(1);
  transform-origin: 50% 0%;
}
.svc__row:hover {
  color: var(--paper);
}
.svc__row:hover .svc__no,
.svc__row:hover p,
.svc__row:hover .svc__meta {
  color: var(--on-ink-soft);
}
.svc__no {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-faint);
  transition: color 260ms var(--ease);
}
.svc__row h3 {
  font-size: clamp(1.2rem, 2.2vw, 1.75rem);
}
.svc__row p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.94rem;
  max-width: 46ch;
  transition: color 260ms var(--ease);
}
.svc__meta {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-top: 0.35rem;
  transition: color 260ms var(--ease);
}
.svc__go {
  width: 42px;
  height: 42px;
  border-radius: 3px;
  border: 1px solid currentColor;
  display: grid;
  place-items: center;
  flex: none;
  transition: background 260ms var(--ease), color 260ms var(--ease),
    transform 400ms var(--ease);
}
.svc__row:hover .svc__go {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}

/* ---------- Selector ---------- */

.pick {
  display: grid;
  gap: 1.2rem;
  margin-top: 2.4rem;
}
@media (min-width: 940px) {
  .pick {
    grid-template-columns: minmax(0, 23rem) 1fr;
    gap: 2.4rem;
  }
}
.pick__list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}
.pick__btn {
  position: relative;
  text-align: left;
  padding: 0.95rem 1rem;
  border-bottom: 1px solid var(--line);
  font-size: 1rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 54px;
  transition: color 240ms var(--ease), background 240ms var(--ease),
    padding-left 340ms var(--ease);
}
.pick__btn:hover {
  background: var(--panel);
  padding-left: 1.4rem;
}
.pick__btn em {
  font-style: normal;
  font-family: var(--mono);
  font-size: 0.64rem;
  color: var(--text-faint);
  flex: none;
}
.pick__btn[aria-selected="true"] {
  color: var(--teal);
  background: var(--teal-soft);
  padding-left: 1.4rem;
}
.pick__btn[aria-selected="true"] em {
  color: var(--teal);
}

.pick__panel {
  background: var(--ink);
  color: var(--on-ink);
  border-radius: 4px;
  padding: clamp(1.5rem, 3.4vw, 2.4rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 330px;
}
.pick__panel h3 {
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
}
.pick__panel p {
  margin: 0;
  color: var(--on-ink-soft);
  max-width: 52ch;
}
.pick__panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  counter-reset: st;
}
.pick__panel li {
  padding-left: 2.2rem;
  position: relative;
  color: var(--on-ink-soft);
  font-size: 0.94rem;
  counter-increment: st;
}
.pick__panel li::before {
  content: counter(st, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.05em;
  font-family: var(--mono);
  font-size: 0.66rem;
  color: var(--teal-on-ink);
}
.pick__panel .btn {
  align-self: flex-start;
  margin-top: auto;
}
.swap > * {
  animation: swapIn 460ms var(--ease) backwards;
}
.swap > *:nth-child(1) { animation-delay: 0ms; }
.swap > *:nth-child(2) { animation-delay: 50ms; }
.swap > *:nth-child(3) { animation-delay: 100ms; }
.swap > *:nth-child(4) { animation-delay: 150ms; }
@keyframes swapIn {
  from { opacity: 0; transform: translateY(10px); }
}

/* ---------- Kennzahlen ---------- */

.stats {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  margin-top: 2.4rem;
  border-top: 1px solid var(--line);
}
.stat {
  padding: 1.4rem 1.2rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat b {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
  display: block;
  color: var(--teal);
}
.stat span {
  display: block;
  margin-top: 0.45rem;
  color: var(--text-soft);
  font-size: 0.9rem;
  max-width: 24ch;
}

/* ---------- Cases ---------- */

.cases {
  display: grid;
  gap: 1rem;
  margin-top: 2.4rem;
}
@media (min-width: 840px) {
  .cases {
    grid-template-columns: repeat(3, 1fr);
  }
}
.case {
  border: 1px solid var(--line-ink);
  border-radius: 4px;
  padding: 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  transition: border-color 340ms var(--ease), transform 220ms var(--ease);
  transform: perspective(800px);
  will-change: transform;
}
.case:hover {
  border-color: var(--paper);
}
/* Ohne echte Maus (Touch, Tastatur) faellt der 3D-Tilt aus JS weg — dann
   uebernimmt ein einfaches Anheben als Hover-Feedback. */
@media (hover: none), (pointer: coarse) {
  .case:hover {
    transform: translateY(-4px);
  }
}
.case__ph {
  aspect-ratio: 16 / 10;
  border-radius: 3px;
  border: 1px dashed var(--line-ink);
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--on-ink-soft);
}
.case em {
  font-style: normal;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--teal-on-ink);
}
.case h3 {
  font-size: 1.1rem;
}
.case p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.9rem;
}
.case ul {
  list-style: none;
  margin: auto 0 0;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line-ink);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  /* .case sitzt in .dark — --text-soft ist fuer helle Flaechen kalibriert
     und faellt dort auf 2.54:1. --on-ink-soft ist die passende Variante. */
  color: var(--on-ink-soft);
}

/* ---------- Prozess ---------- */

.steps {
  margin-top: 2.4rem;
  border-top: 1px solid var(--line);
}
.step {
  display: grid;
  gap: 0.3rem 2rem;
  padding-block: 1.4rem;
  border-bottom: 1px solid var(--line);
  position: relative;
}
@media (min-width: 800px) {
  .step {
    grid-template-columns: 5rem 16rem 1fr;
    align-items: baseline;
  }
}
.step::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  height: 1px;
  width: 0;
  background: var(--teal);
  transition: width 800ms var(--ease);
}
.step.on::after {
  width: 100%;
}
.step__n {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text-faint);
}
.step.on .step__n {
  color: var(--teal);
}
.step h3 {
  font-size: 1.2rem;
}
.step p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.92rem;
}

/* ---------- Dunkle Sektion ---------- */

.dark {
  background: var(--ink);
  color: var(--on-ink);
  border-top: none !important;
}
.dark .tag {
  color: var(--on-ink-soft);
}
.dark .lede,
.dark p {
  color: var(--on-ink-soft);
}

/* ---------- Team ---------- */

.team {
  display: grid;
  gap: 2rem;
  margin-top: 2.4rem;
}
@media (min-width: 840px) {
  .team {
    grid-template-columns: minmax(0, 20rem) 1fr;
    gap: 3rem;
  }
}
.team__ph {
  aspect-ratio: 4 / 5;
  border-radius: 4px;
  background: var(--panel);
  border: 1px dashed var(--line);
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.team__role {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0.35rem 0 1.2rem;
}
.team p {
  color: var(--text-soft);
  margin: 0 0 0.9rem;
  max-width: 58ch;
}

/* ---------- CTA ---------- */

.cta h2 {
  max-width: 17ch;
}
.cta__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

/* ---------- Footer ---------- */

.footer {
  background: var(--ink);
  color: var(--on-ink);
  padding-block: 3.4rem 1.6rem;
}
.footer__grid {
  display: grid;
  gap: 2.2rem;
  padding-bottom: 2.4rem;
  border-bottom: 1px solid var(--line-ink);
}
@media (min-width: 720px) {
  .footer__grid {
    grid-template-columns: 1.4fr repeat(3, 1fr);
  }
}
.footer__brand .brand {
  color: var(--on-ink);
  margin-bottom: 0.8rem;
}
.footer__brand p {
  color: var(--on-ink-soft);
  font-size: 0.9rem;
  max-width: 32ch;
  margin: 0;
}
.footer h4 {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-ink-soft);
  margin: 0 0 1rem;
  font-weight: 500;
}
.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer ul a {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.9rem;
  color: var(--on-ink);
  transition: color 220ms var(--ease), transform 340ms var(--ease);
}
.footer ul a:hover {
  color: var(--teal-on-ink);
  transform: translateX(4px);
}
.footer__end {
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--on-ink-soft);
}

/* ---------- Reveal ---------- */

.rv {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 800ms var(--ease), transform 800ms var(--ease);
}
.rv.on {
  opacity: 1;
  transform: none;
}
.rv[data-d="1"] { transition-delay: 80ms; }
.rv[data-d="2"] { transition-delay: 160ms; }
.rv[data-d="3"] { transition-delay: 240ms; }

/* ---------- Touch-Ziele ---------- */

@media (pointer: coarse), (max-width: 899px) {
  .brand { min-height: 44px; }
  .svc__go { width: 44px; height: 44px; }
}

/* ---------- Reduced Motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .line > span,
  .fade-up {
    transform: none !important;
    opacity: 1 !important;
  }
  .rv {
    opacity: 1;
    transform: none;
  }
  .capbar__track {
    animation: none;
  }
  .step::after {
    width: 100%;
  }
  .manifest w {
    color: var(--text);
  }
  .cursor {
    display: none;
  }
}
