/* ==========================================================================
   EVONATE AG — evonate.ch
   Corporate Design: EVONEERS palette (Midnight Blue abgedunkelt / Carrot /
   Silver / Clouds). Headlines in Sifonn Pro, same cut as evoneers.ch.
   Body stays Inter Tight. Logo remains SVG paths.
   ========================================================================== */

/* ---------- Fonts ---------- */

@font-face {
  font-family: "Inter Tight"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../assets/fonts/InterTight-Variable.woff2") format("woff2");
}
@font-face {
  font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  src: url("../assets/fonts/Archivo-Variable.woff2") format("woff2");
}
/* Eine Schnitt, auf die Gewichte gemappt, damit der Browser nicht künstlich fettet. */
@font-face {
  font-family: "Sifonn Pro"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../assets/fonts/Sifonn-Pro.woff2") format("woff2");
}
@font-face {
  font-family: "Sifonn Pro"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../assets/fonts/Sifonn-Pro.woff2") format("woff2");
}
@font-face {
  font-family: "Sifonn Pro"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../assets/fonts/Sifonn-Pro.woff2") format("woff2");
}
@font-face {
  font-family: "Sifonn Pro"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../assets/fonts/Sifonn-Pro.woff2") format("woff2");
}

/* ---------- Tokens ---------- */
:root {
  /* EVONEERS CI/CD palette */
  --midnight: #17212b;
  --asphalt: #34495e;
  --clouds: #ecf0f1;
  --silver: #bdc3c7;
  --carrot: #e67e22;
  --orange: #f39c12;
  --pumpkin: #d35400;
  --dawn: #414141;
  --dawnest: #292929;

  /* semantic — palette from the 2a design */
  --ink: #17212b;
  --ink-2: #1f2c39;
  --bg: var(--ink);
  --surface: var(--ink-2);
  --text: #eef1f3;
  --clouds: #eef1f3;
  --text-muted: #c9d0d6;
  --text-faint: #8e9aa6;
  --line: #2f3f50;
  --line-strong: #3a4c5e;
  --accent: var(--carrot);
  --accent-hover: #f0913f;

  --font-sans: "Inter Tight", "Helvetica Neue", Helvetica, Arial, "Segoe UI", sans-serif;
  --font-display: "Sifonn Pro", "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, "Liberation Mono", monospace;

  --container: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --section-y: clamp(72px, 10vw, 144px);
  --radius: 3px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: 0.005em;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-synthesis: none;
}
h1, h2, h3, p, ul, ol, dl, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
address { font-style: normal; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

::selection { background: var(--carrot); color: var(--ink); }

.mono {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}
.accent { color: var(--accent); }

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute; left: 12px; top: -48px;
  padding: 8px 12px; background: var(--carrot); color: var(--midnight);
  z-index: 100; font-family: var(--font-mono); font-size: .8rem;
}
.skip-link:focus { top: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--ink) 92%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 24px;
}
.header-end { display: flex; align-items: center; gap: 22px; }
.wordmark { display: inline-flex; align-items: center; color: var(--silver); transition: color .2s; }
.wordmark:hover { color: var(--clouds); }
.wordmark svg, .wordmark img { height: 22px; width: auto; }

.site-nav ul { display: flex; gap: 28px; align-items: center; }
.site-nav a {
  font-family: var(--font-mono); font-size: 0.82rem; letter-spacing: .02em;
  color: var(--text-muted); position: relative; padding: 6px 0;
  transition: color .2s;
}
.site-nav a::before { content: "./"; color: var(--text-muted); opacity: .7; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--clouds); }
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 1px; background: var(--carrot);
  transition: right .35s var(--ease);
}
.site-nav a:hover::after, .site-nav a:focus-visible::after { right: 0; }
.site-nav .nav-cta {
  margin-left: 6px;
  padding: 9px 14px;
  border: 1px solid var(--carrot);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--carrot) 18%, transparent);
  color: var(--clouds);
  font-weight: 600;
  transition: background .2s, border-color .2s, color .2s;
}
.site-nav .nav-cta::before { content: none; }
.site-nav .nav-cta::after { display: none; }
.site-nav .nav-cta:hover,
.site-nav .nav-cta:focus-visible {
  background: color-mix(in srgb, var(--carrot) 32%, transparent);
  border-color: var(--carrot);
  color: var(--clouds);
}

.nav-toggle {
  display: none; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: .78rem; letter-spacing: .04em; color: var(--text-muted);
}
.nav-toggle-bars { position: relative; width: 22px; height: 12px; }
.nav-toggle-bars::before, .nav-toggle-bars::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: var(--clouds);
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.nav-toggle-bars::before { top: 0; }
.nav-toggle-bars::after { top: 10px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { top: 5px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { top: 5px; transform: rotate(-45deg); }

.fokus-toggle {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 0.82rem; letter-spacing: .02em;
  color: var(--text-muted);
}
.fokus-toggle:hover, .fokus-toggle:focus-visible { color: var(--clouds); }
.fokus-switch {
  width: 34px; height: 18px; border-radius: 99px;
  border: 1px solid var(--line-strong); position: relative;
}
.fokus-switch::after {
  content: ""; position: absolute; top: 2px; left: 2px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--text-faint);
  transition: transform .2s var(--ease), background .2s;
}
html.is-fokus .fokus-toggle { color: var(--clouds); }
html.is-fokus .fokus-switch { background: var(--carrot); border-color: var(--carrot); }
html.is-fokus .fokus-switch::after { transform: translateX(16px); background: var(--midnight); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: var(--radius);
  font-family: var(--font-mono); font-size: 0.85rem; letter-spacing: .02em; line-height: 1;
  border: 1px solid var(--carrot);
  transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--carrot); color: var(--midnight); font-weight: 600; }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-ghost { background: transparent; color: var(--carrot); }
.btn-ghost:hover { background: var(--carrot); color: var(--midnight); }

/* ---------- Hero ---------- */
.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;
}
.hero {
  padding-top: clamp(56px, 7vw, 96px);
  padding-bottom: clamp(56px, 7vw, 88px);
  position: relative;
  border-bottom: 1px solid var(--line);
}
.hero-row {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(20px, 3vw, 48px);
  align-items: start;
}
.hero-intro { order: 1; margin-top: 0; }
.hero-stage { order: 2; }

/* Variante 2a: Archivo-Klammern, schmal gezogen, Satz dazwischen */
.hero-stage {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  width: 100%;
  height: auto;
  margin-top: -18px;
}
.hero-brace {
  min-width: 64px;
  font-family: "Archivo", system-ui, sans-serif;
  font-weight: 200;
  font-stretch: 62%;
  font-size: 300px;
  line-height: 1;
  color: var(--carrot);
  user-select: none;
  pointer-events: none;
}
.hero-brace-right { text-align: right; margin-right: -0.053em; }

.statements {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-width: 0;
  padding: 0 24px;
}
.statements::before {
  content: "";
  position: absolute;
  inset: -22rem;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    circle 18rem at calc(var(--lx, 50%) + 22rem) calc(var(--ly, 50%) + 22rem),
    rgba(230, 126, 34, 0.18) 0%,
    rgba(230, 126, 34, 0.07) 40%,
    transparent 72%
  );
  transition: opacity .7s ease;
}
.statements.is-lit::before { opacity: 1; }
.statements.is-lit,
.statements.is-lit * { cursor: none; }
.statements.is-lit .glow-cursor { opacity: 1; animation: glow-pulse 1.7s ease-in-out infinite; }
.statements.is-lit .statement.is-active {
  position: relative;
  z-index: 81;
  color: transparent;
  background-image: radial-gradient(
    circle 12rem at var(--tx, 50%) var(--ty, 45%),
    #fff8ee 0%,
    var(--carrot) 18%,
    var(--clouds) 58%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding-bottom: 0.18em;
  margin-bottom: -0.18em;
}
.statements-top, .statements-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.statements-top { margin-top: 44px; }
.statements-bottom { margin-top: -36px; }
.statements-label,
.statements-counter,
.statements-path { font-size: 0.82rem; }
.statements-label::before { content: "// "; color: var(--text-faint); }
.statements-counter {
  display: flex; align-items: center; gap: 8px;
  color: var(--text-muted);
}
.statement-step {
  position: relative;
  z-index: 2;
  color: inherit;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
  cursor: pointer;
}
.statement-step:hover,
.statement-step:focus-visible,
.statement-pause:hover,
.statement-pause:focus-visible { color: var(--carrot); }
.statement-pause {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
  cursor: pointer;
}
.statements.is-lit .statements-counter,
.statements.is-lit .statement-step,
.statements.is-lit .statement-pause { cursor: pointer; }

.statements-stage {
  position: relative;
  display: grid;
  align-content: center;
  align-items: center;
  min-height: 168px;
  margin-top: -32px;
  margin-bottom: 32px;
}
.statement {
  grid-area: 1 / 1;
  font-family: "Archivo", system-ui, sans-serif;
  font-stretch: 78%;
  font-size: 48px;
  line-height: 1.35;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--clouds);
  text-wrap: balance;
  hyphens: none;
  opacity: 0; transform: translateY(14px); pointer-events: none;
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}
.statement.is-active { opacity: 1; transform: none; pointer-events: auto; }
.statement.is-leaving { opacity: 0; transform: translateY(-10px); }

.statements-path { color: var(--text-muted); }
.statements-dots { display: flex; align-items: center; }
.dot {
  position: relative;
  width: 28px; height: 32px; padding: 0; flex: none;
  background: transparent;
}
.dot::before {
  content: "";
  position: absolute; left: 50%; top: 50%;
  width: 12px; height: 2px; border-radius: 2px;
  background: #34475a;
  transform: translate(-50%, -50%);
  transition: background .3s, width .3s var(--ease);
}
.statements.is-lit .dot { cursor: pointer; }
.dot:hover::before, .dot:focus-visible::before { background: var(--silver); }
.dot.is-active::before { background: var(--carrot); width: 16px; }
.dot:focus-visible { outline: 2px solid var(--carrot); outline-offset: 2px; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 28px; }

/* SVG shared */
.svg-label {
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .12em;
  fill: currentColor; opacity: .65;
}
.svg-node-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; fill: currentColor; }
.svg-node-sub { font-family: var(--font-mono); font-size: 8.5px; letter-spacing: .04em; fill: currentColor; opacity: .6; }
.svg-tiny { font-family: var(--font-mono); font-size: 7.5px; letter-spacing: .1em; fill: currentColor; opacity: .6; }
.svg-mono { font-family: var(--font-mono); font-size: 9px; letter-spacing: .02em; fill: currentColor; opacity: .85; }
.svg-big { font-family: var(--font-display); font-size: 26px; font-weight: 700; letter-spacing: -.02em; fill: currentColor; }

.node { fill: transparent; stroke: currentColor; stroke-opacity: .5; stroke-width: 1; }
.node-strong { stroke: var(--carrot); stroke-opacity: 1; }
.node-dashed { stroke-dasharray: 3 3; stroke-opacity: .35; }
.flow path, .flow-line { fill: none; stroke: currentColor; stroke-opacity: .4; stroke-width: 1; }
.flow-line.dashed { stroke-dasharray: 3 3; }
.packet { fill: var(--carrot); }
.pulse { fill: var(--carrot); animation: pulse 2.4s ease-in-out infinite; transform-origin: center; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); border-top: 1px solid var(--line); }
.section-head { margin-bottom: clamp(40px, 6vw, 80px); max-width: 60rem; }
.section-index { margin-bottom: 20px; font-size: 0.95rem; }
.section-index::before { content: "// "; color: var(--text-faint); }
.section-title {
  text-wrap: balance;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.2vw, 3.6rem);
  line-height: 1.02; letter-spacing: -0.04em; font-weight: 700; color: var(--text);
}
.section-lead {
  margin-top: 24px; max-width: 52ch;
  font-size: clamp(1.05rem, 1.3vw, 1.25rem); color: var(--text-muted);
}

/* ---------- Leistungen (Code-Explorer) ---------- */
.leistungen { background: var(--bg); border-top: 0; padding-top: var(--section-y); }
.split-head {
  display: grid; grid-template-columns: minmax(0, 1fr);
  gap: 24px 48px; align-items: end;
  margin-bottom: clamp(32px, 5vw, 56px);
}
.split-head-3 { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: end; }
.split-head-3 .section-lead { margin-top: 0; }

.cda-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.6vw, 4.6rem);
  line-height: 0.98; letter-spacing: -0.045em; font-weight: 700; color: var(--clouds);
  max-width: 24ch; text-wrap: balance;
}
.cda-rest { color: var(--text-faint); font-weight: 600; }
.hero-intro .cda-title { font-size: clamp(2.5rem, 3.4vw, 3.2rem); max-width: none; text-wrap: wrap; }
.hero-intro .cda-rest { font-size: inherit; }
.hero-intro .section-lead { margin-top: 16px; font-size: clamp(1.26rem, 1.8vw, 1.64rem); }
.hero-cta .btn { padding: 18px 30px; font-size: 1.06rem; }

.code-explorer {
  display: none; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
.code-panel { padding: clamp(20px, 3vw, 40px) clamp(16px, 2.5vw, 32px); border-right: 1px solid var(--line); }
.code {
  font-family: var(--font-mono); font-size: clamp(.9rem, 1.15vw, 1.05rem); line-height: 1.6;
  color: var(--clouds);
}
.code-line { padding: 6px 8px; }
.code-row {
  display: grid; grid-template-columns: minmax(96px, auto) minmax(0, 1fr);
  gap: 0 16px; width: 100%; text-align: left;
  padding: 8px 8px 8px 28px; border-radius: 3px;
  font: inherit; color: inherit; line-height: inherit;
  cursor: pointer;
  transition: background .25s;
}
.code-row:hover { background: rgba(230, 126, 34, 0.1); }
.code-row.is-active { background: rgba(230, 126, 34, 0.16); box-shadow: inset 3px 0 0 var(--carrot); }
.code-row:focus-visible { outline: 2px solid var(--carrot); outline-offset: -2px; }
.code-job { display: none; cursor: text; }
html.is-unlocked .code-job { display: grid; }
.code-job:hover { background: transparent; }
.job-value { display: flex; align-items: center; min-width: 0; }
.job-input {
  width: 1ch;
  max-width: 12ch;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  caret-color: var(--carrot);
  field-sizing: content;
}
.job-input:focus { outline: none; }
.tok-kw { color: var(--silver); opacity: .85; }
.tok-name { color: var(--clouds); font-weight: 600; }
.tok-op { color: var(--silver); }
.tok-brace { color: var(--carrot); }
.tok-key { color: var(--carrot); }
.tok-str { color: var(--clouds); }
.code-hint { margin-top: 20px; padding-left: 8px; color: var(--text-faint); }
.code-hint::before { content: "// "; }

.detail-panel {
  position: relative; display: grid; align-content: start;
  padding: clamp(20px, 3vw, 36px) clamp(20px, 2.5vw, 32px);
  background: var(--bg);
}
.detail {
  grid-area: 1 / 1;
  visibility: hidden;
  animation: fade-in .4s var(--ease);
}
.detail.is-active { visibility: visible; }
.detail[hidden] { display: block; visibility: hidden; }
@keyframes fade-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.detail-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.detail-key { color: var(--carrot) !important; padding-top: 4px; }
.detail-visual { width: 72px; height: auto; opacity: .95; }
.detail-text { margin-top: 12px; color: var(--clouds); font-size: 1.02rem; line-height: 1.55; }
.detail-eyebrow { margin-top: 24px; color: var(--text-faint); }
.detail-eyebrow::before { content: "// "; }
.detail-example { margin-top: 6px; color: var(--silver); font-size: .8rem; line-height: 1.6; }
.detail-cta {
  grid-row: 2;
  margin-top: 0; padding-top: 32px; align-self: flex-start;
  color: var(--carrot); border-bottom: 1px solid transparent; transition: border-color .2s, color .2s;
}
.detail-cta:hover { border-color: var(--carrot); color: var(--orange); }

/* ---------- Zusammenarbeit (phases) ---------- */
.zusammenarbeit { background: var(--bg); }
.phase-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.phase {
  display: flex; flex-direction: column;
  padding: 24px 24px 28px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.phase-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.phase-label::before { content: "// "; color: var(--text-faint); }
.phase-num { color: var(--text-faint); }
.phase-title { font-family: var(--font-display); font-size: clamp(1.3rem, 1.9vw, 1.6rem); font-weight: 700; letter-spacing: -.03em; color: var(--clouds); }
.phase-text { margin-top: 10px; color: var(--text-muted); font-size: .98rem; }
.share { position: relative; margin-top: auto; padding-top: 28px; }
.share::before { content: ""; display: block; height: 6px; border-radius: 3px; background: var(--silver); }
.share .share-evonate {
  position: absolute; left: 0; bottom: 0; height: 6px; border-radius: 3px;
  width: var(--share, 50%); background: var(--carrot);
  transition: width 1s var(--ease);
}
.share-legend { margin-top: 16px; display: flex; align-items: center; gap: 8px; color: var(--text-muted); }
.legend-swatch { display: inline-block; width: 14px; height: 6px; border-radius: 3px; }
.legend-evonate { background: var(--carrot); }
.legend-team { background: var(--silver); margin-left: 12px; }

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 28px; }
.tag-list li {
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .04em;
  padding: 6px 10px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--text-muted);
}

/* ---------- Praxis ---------- */
.praxis { background: var(--bg); }

.case {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 5fr) minmax(0, 5fr);
  gap: clamp(24px, 4vw, 64px);
  padding-block: clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--line);
}
.case:last-of-type { border-bottom: 1px solid var(--line); }
.case-meta { display: flex; flex-direction: column; gap: 10px; }
.case-num { color: var(--carrot) !important; }
.case-num::before { content: "// "; opacity: .6; }
.case-domain { color: var(--clouds) !important; font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; }
.case-meta .tag-list { margin-top: 8px; padding-top: 0; }

.case-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.3vw, 2rem); line-height: 1.15; letter-spacing: -.03em; font-weight: 700;
  margin-bottom: 20px; color: var(--clouds);
}
.case-body p { color: var(--text-muted); }
.case-body p + p { margin-top: 14px; }

.case-artifact {
  color: var(--clouds);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(16px, 2vw, 28px);
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    var(--surface);
  background-image:
    repeating-linear-gradient(0deg, transparent 0 27px, rgba(236,240,241,.05) 27px 28px),
    repeating-linear-gradient(90deg, transparent 0 27px, rgba(236,240,241,.05) 27px 28px);
  background-color: var(--surface);
  align-self: start;
}
.artifact { width: 100%; height: auto; }

/* heatmap */
.heatmap .c { fill: rgba(236, 240, 241, 0.06); stroke: rgba(236,240,241,.10); }
.heatmap .c.l1 { fill: rgba(230, 126, 34, 0.18); }
.heatmap .c.l2 { fill: rgba(230, 126, 34, 0.38); }
.heatmap .c.l3 { fill: rgba(230, 126, 34, 0.65); }
.heatmap .c.l4 { fill: rgba(230, 126, 34, 1); }
.legend .c { stroke: none; }
.legend .c.l0 { fill: rgba(236, 240, 241, 0.10); }
.c-outline { fill: none; stroke: var(--clouds); stroke-width: 1.5; stroke-dasharray: 3 2; }

/* topology */
.divider { stroke: currentColor; stroke-opacity: .25; stroke-dasharray: 2 4; }
.twin .ok { fill: var(--clouds); opacity: 1; }
.twin .warn { fill: var(--carrot); opacity: 1; }
.track { fill: rgba(236,240,241,.12); }
.progress { fill: var(--carrot); }

/* cable */
.layer { stroke: currentColor; stroke-opacity: .5; stroke-width: 1; }
.l-jacket { fill: rgba(236,240,241,.04); }
.l-armour { fill: rgba(236,240,241,.08); }
.l-screen { fill: rgba(236,240,241,.05); }
.l-insulation { fill: rgba(236,240,241,.12); }
.l-conductor { fill: var(--carrot); stroke: none; }
.strands circle { fill: none; stroke: rgba(27,35,48,.6); stroke-width: .8; }
.leaders path { fill: none; stroke: currentColor; stroke-opacity: .4; stroke-width: 1; }

/* ---------- Method ---------- */
.method { background: var(--surface); padding-bottom: 20px; }
.method-list { border-top: 1px solid var(--line-strong); }
.method-item {
  display: grid; grid-template-columns: 80px minmax(0, 1fr);
  gap: 24px; padding: 32px 0; border-bottom: 1px solid var(--line);
}
.method-num { padding-top: 6px; color: var(--carrot) !important; font-weight: 600; }
.method-item h3 { font-family: var(--font-display); font-size: clamp(1.35rem, 2vw, 1.8rem); letter-spacing: -.03em; line-height: 1.1; font-weight: 700; color: var(--clouds); }
.method-item p { margin-top: 10px; max-width: 62ch; color: var(--text-muted); }

/* ---------- Contact ---------- */
.schichten-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  line-height: 1.05; letter-spacing: -0.04em; font-weight: 700; color: var(--clouds);
  text-wrap: balance;
}
.schichten-title span,
.section-title span { color: var(--text-faint); font-weight: 600; }
.schichten-lead {
  margin-top: 18px; margin-bottom: clamp(40px, 5vw, 64px); max-width: none;
  color: var(--text-muted); font-size: clamp(1.02rem, 1.2vw, 1.15rem);
}
.schicht-list { list-style: none; margin: 0 0 clamp(36px, 5vw, 64px); padding: 0; display: grid; gap: clamp(40px, 6vw, 72px); }
.schicht-list li {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 28px clamp(32px, 5vw, 72px);
  align-items: center;
}
.schicht-list li:nth-child(even) .schlitz { order: -1; }
.schicht-key { font-family: var(--font-mono); color: var(--carrot); font-size: .92rem; }
.schicht-name {
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.2vw, 1.9rem);
  letter-spacing: -0.03em; line-height: 1.1; font-weight: 700; color: var(--clouds);
}
.schicht-text { margin-top: 12px; color: var(--text-muted); font-size: 1.02rem; line-height: 1.5; }
.schlitz {
  position: relative;
  height: 132px;
  border-radius: 999px;
  clip-path: inset(0 round 999px);
}
.schlitz-bild {
  position: fixed; inset: 0;
  background:
    radial-gradient(60% 50% at 70% 30%, rgba(230, 126, 34, 0.28), transparent 70%),
    radial-gradient(50% 60% at 18% 78%, rgba(80, 160, 220, 0.18), transparent 70%),
    #0d141b;
}
.schlitz-bild svg { width: 100%; height: 100%; display: block; }

.contact { background: var(--bg); position: relative; }
.contact.is-lit,
.contact.is-lit * { cursor: none; }
.glow-cursor {
  position: fixed; z-index: 80;
  width: 18px; height: 18px;
  margin: -9px 0 0 -9px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at 50% 50%, #fff6ea 0 12%, var(--carrot) 32%, rgba(230, 126, 34, 0.28) 58%, transparent 82%);
  box-shadow:
    0 0 14px 4px rgba(230, 126, 34, 0.45),
    0 0 40px 16px rgba(230, 126, 34, 0.22),
    0 0 80px 32px rgba(230, 126, 34, 0.08);
}
.contact.is-lit .glow-cursor { opacity: 1; animation: glow-pulse 1.7s ease-in-out infinite; }
@keyframes glow-pulse {
  50% {
    transform: scale(1.12);
    box-shadow:
      0 0 18px 6px rgba(230, 126, 34, 0.5),
      0 0 52px 22px rgba(230, 126, 34, 0.24),
      0 0 96px 40px rgba(230, 126, 34, 0.1);
  }
}
.contact.is-lit .contact-title {
  color: transparent;
  background-image: radial-gradient(
    circle 9rem at var(--tx, 50%) var(--ty, 40%),
    #fff8ee 0%,
    var(--carrot) 34%,
    #c9d0d6 62%,
    #3a4654 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
}
.contact-grid {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
.contact-title {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 6.4vw, 5.6rem);
  line-height: 0.92; letter-spacing: -0.04em; font-weight: 700; color: var(--clouds);
}
.contact-copy {
  max-width: 34ch;
  font-size: clamp(1.05rem, 1.35vw, 1.25rem);
  line-height: 1.45;
  color: var(--clouds);
}
.contact-pitch { max-width: 46ch; }
.contact-when-title {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--text-muted);
}
.contact-when {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.contact-when li {
  position: relative;
  padding-left: 1.15em;
  color: var(--clouds);
  font-size: 1.02rem;
  line-height: 1.4;
}
.contact-when li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--carrot);
}
.contact-offer {
  margin-top: 22px;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--carrot);
}
.contact-offer::before { content: "→ "; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; align-items: center; }
.contact-offer + .contact-actions,
.contact-pitch + .contact-actions { margin-top: 16px; }
.btn-line {
  background: transparent; color: var(--clouds);
  border-color: rgba(236, 240, 241, 0.45);
}
.btn-line:hover { background: transparent; color: var(--carrot); border-color: var(--carrot); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg); color: var(--text-muted);
  border-top: 0;
  padding: 4px 0 72px;
  font-size: .9rem;
}
.footer-wave {
  display: block;
  width: 100%;
  height: 52px;
  margin-bottom: 36px;
}
.footer-wave-parallax > use {
  transform-box: view-box;
  animation: wave-drift 18s linear infinite;
}
.footer-wave-parallax > use:nth-child(1) { animation-duration: 8s; }
.footer-wave-parallax > use:nth-child(2) { animation-duration: 12s; }
.footer-wave-parallax > use:nth-child(3) { animation-duration: 16s; }
.footer-wave-parallax > use:nth-child(4) { animation-duration: 22s; }
@keyframes wave-drift {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}
.footer-inner {
  display: grid; grid-template-columns: auto 1fr auto auto;
  gap: 24px 40px; align-items: center;
}
.footer-brand { display: flex; align-items: center; gap: 16px; color: var(--silver); }
.footer-brand svg, .footer-brand img { height: 18px; width: auto; }
.footer-tag { color: var(--text-faint); }
.footer-nav { display: flex; gap: 24px; font-family: var(--font-mono); font-size: .8rem; }
.footer-nav a { border-bottom: 1px solid transparent; transition: border-color .2s, color .2s; }
.footer-nav a:hover { color: var(--clouds); border-color: var(--carrot); }
.footer-copy { color: var(--text-faint); }
.swiss-cross { display: inline-block; width: 12px; height: 12px; margin-left: 8px; vertical-align: -1px; }
.footer-copy a { color: inherit; border-bottom: 1px solid var(--line-strong); }
.footer-copy a:hover { color: var(--clouds); border-color: var(--carrot); }

/* ---------- Legal pages ---------- */
.legal { padding-block: clamp(56px, 8vw, 112px); }
.legal .container { max-width: 760px; }
.legal h1 { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.04em; line-height: 1.02; margin-bottom: 12px; font-weight: 700; }
.legal-stand { margin-bottom: 32px; color: var(--text-faint); font-size: 0.82rem; }
.legal h2 { font-family: var(--font-display); font-size: 1.3rem; margin-top: 40px; margin-bottom: 12px; font-weight: 600; letter-spacing: -.02em; }
.legal p, .legal li { color: var(--text-muted); }
.legal p + p { margin-top: 12px; }
.legal ul { list-style: disc; padding-left: 20px; }
.legal a { border-bottom: 1px solid var(--line-strong); }
.legal a:hover { color: var(--carrot); border-color: var(--carrot); }
.legal .back, .about .back {
  display: inline-block;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--line-strong);
}
.legal .back:hover, .about .back:hover { color: var(--carrot); border-color: var(--carrot); }

/* ---------- Wer wir sind ---------- */
.about { padding-top: clamp(56px, 8vw, 104px); }
.about-kicker { margin-bottom: 18px; color: var(--text-faint); }
.about-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  line-height: 0.95; letter-spacing: -0.04em; font-weight: 700; color: var(--clouds);
  max-width: 12ch;
}
.about-lead {
  margin-top: 28px; max-width: 42ch;
  font-size: clamp(1.15rem, 1.6vw, 1.4rem); line-height: 1.45; color: var(--clouds);
}
.door-code {
  margin-top: 36px;
  max-width: 42rem;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--clouds);
  overflow-x: auto;
}
.door-list { margin-top: 28px; max-width: 46ch; padding-left: 1.15em; list-style: disc; color: var(--text-muted); }
.door-list li + li { margin-top: 8px; }
.door-mail { margin-top: 32px; }
.about-cta {
  margin-top: 128px;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: clamp(20px, 3vw, 48px);
}
.about-mail { margin: 0; min-width: 0; }
.about-mail a {
  display: block;
  white-space: nowrap;
  font-family: "Archivo", system-ui, sans-serif;
  font-weight: 700;
  font-stretch: 100%;
  font-size: clamp(1.7rem, 3.5vw, 3.4rem);
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--clouds);
}
.about-mail-brace { color: var(--carrot); }
.about-mail a:hover,
.about-mail a:hover .about-mail-brace { color: var(--carrot); }
.about-people { margin-top: clamp(64px, 8vw, 104px); }
.about-people-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; margin-bottom: 28px;
}
.about-people-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -0.04em; line-height: 1; font-weight: 700; color: var(--clouds);
}
.about-ideen { width: min(260px, 38vw); height: auto; display: block; flex: none; }
.about-portraits {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px;
}
.portrait-flip {
  aspect-ratio: 4 / 5; perspective: 1400px; border-radius: 6px; cursor: pointer;
}
.portrait-flip:focus-visible { outline: 2px solid var(--carrot); outline-offset: 3px; }
.portrait-inner {
  position: relative; width: 100%; height: 100%;
  transform-style: preserve-3d;
  transition: transform .65s var(--ease);
}
.portrait:hover .portrait-inner,
.portrait-flip:focus-visible .portrait-inner,
.portrait.is-flipped .portrait-inner { transform: rotateY(180deg); }
.portrait-face {
  position: absolute; inset: 0; border-radius: 6px; overflow: hidden;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.portrait-front img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; display: block;
}
.portrait-back {
  transform: rotateY(180deg);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 22px 20px 24px;
  display: flex; flex-direction: column;
}
.portrait-kicker {
  color: var(--text-faint); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
}
.portrait-back-name {
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 1.8vw, 1.9rem);
  letter-spacing: -0.03em; line-height: 1.05; font-weight: 700; color: var(--clouds);
}
.portrait-statement {
  margin-top: 16px; color: var(--text-muted);
  font-size: clamp(1.2rem, 1.45vw, 1.45rem); line-height: 1.4;
}
.portrait-link {
  margin-top: auto; padding-top: 18px;
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.02em;
  color: var(--carrot);
}
.portrait-link:hover { color: var(--clouds); }
.site-nav a[aria-current="page"] { color: var(--clouds); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .hero-title .word { opacity: 1; transform: none; transition: none; animation: none; }
  .packet, .pulse { animation: none; }
  .packet { display: none; }
  .portrait-inner { transition: none; }
  .glow-cursor { animation: none; }
  .footer-wave-parallax > use { animation: none; }
  .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; width: 100%; }
  .marquee { mask-image: none; -webkit-mask-image: none; }
  .marquee-set { flex-wrap: wrap; justify-content: center; padding-right: 0; }
  .marquee-set[aria-hidden="true"] { display: none; }
  .statement-pause, .marquee-pause { display: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-row { grid-template-columns: 1fr; }
  .hero-stage { height: auto; min-height: 320px; }
  .hero-brace { font-size: 240px; min-width: 48px; }
  .statement { font-size: clamp(2.2rem, 5vw, 3.4rem); }
  .statements { padding-inline: 12px; }
  .code-explorer { grid-template-columns: 1fr; }
  .code-panel { border-right: 0; border-bottom: 1px solid var(--line); }
  .split-head-3 { grid-template-columns: 1fr; }
  .phase-grid { grid-template-columns: 1fr; }
  .about-portraits { grid-template-columns: 1fr; }
  .case { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .case-meta { grid-column: 1 / -1; flex-direction: row; align-items: center; flex-wrap: wrap; gap: 16px; }
  .case-meta .tag-list { margin-top: 0; }
}

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  html.page-home.is-fokus .nav-toggle,
  html.page-home.is-fokus .site-nav { display: none; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 68px;
    background: var(--bg); border-bottom: 1px solid var(--line);
    display: none;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 16px; }
  .site-nav li { border-top: 1px solid var(--line); }
  .site-nav a { display: block; padding: 16px 0; font-size: .95rem; }
  .site-nav a::after { display: none; }
  .site-nav .nav-cta {
    display: inline-block; width: auto; margin: 14px 0 4px;
    padding: 12px 16px;
    border: 1px solid var(--carrot);
    background: color-mix(in srgb, var(--carrot) 18%, transparent);
    color: var(--clouds);
  }
  .site-nav .nav-cta:hover,
  .site-nav .nav-cta:focus-visible {
    background: color-mix(in srgb, var(--carrot) 32%, transparent);
    border-color: var(--carrot);
    color: var(--clouds);
  }

  .about-cta { flex-wrap: wrap; align-items: flex-start; }
  .about-mail { flex: 1 1 100%; }
  .about-mail a { font-size: clamp(1.35rem, 7.2vw, 2.4rem); }
  .hero-brace { font-size: 168px; min-width: 22px; }
  .hero-stage { min-height: 0; height: auto; margin-top: 12px; overflow: clip; align-items: center; }
  .statements { min-height: 0; padding-inline: 6px; gap: 10px; }
  .statements-top,
  .statements-path { display: none; }
  .statements-bottom { justify-content: center; margin-top: 0; }
  .statements::before {
    inset: -4rem;
    background: radial-gradient(
      circle 10rem at calc(var(--lx, 50%) + 4rem) calc(var(--ly, 50%) + 4rem),
      rgba(230, 126, 34, 0.18) 0%,
      rgba(230, 126, 34, 0.07) 40%,
      transparent 72%
    );
  }
  .statements-stage { min-height: 0; margin: 0; }
  .statement { max-width: none; font-size: clamp(1.35rem, 5.6vw, 1.7rem); }
  .split-head { grid-template-columns: 1fr; }
  .code-row { grid-template-columns: 1fr; gap: 2px; padding-left: 20px; }
  .schicht-list li { grid-template-columns: 1fr; }
  .schicht-list li:nth-child(even) .schlitz { order: 0; }
  .schlitz { height: 88px; }

  .case { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .method-item { grid-template-columns: 48px 1fr; gap: 16px; }
  .footer-inner { grid-template-columns: 1fr; gap: 16px; }
}

/* ---------- Fokus: one screen ---------- */
html.page-home.is-fokus,
html.page-home.is-fokus body {
  scrollbar-width: none;
}
html.page-home.is-fokus::-webkit-scrollbar,
html.page-home.is-fokus body::-webkit-scrollbar { display: none; width: 0; height: 0; }
html.page-home.is-fokus body {
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
/* ---------- Darauf bauen wir ---------- */
.stack {
  margin-top: clamp(28px, 4vw, 48px);
  padding-bottom: 4px;
  overflow: hidden;
}
.stack-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 14px;
}
.stack-title {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-faint);
  margin-bottom: 0;
}
.marquee-pause {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
  cursor: pointer;
}
.marquee-pause:hover,
.marquee-pause:focus-visible { color: var(--carrot); border-color: var(--carrot); }
.marquee.is-paused .marquee-track { animation-play-state: paused; }
.marquee {
  display: flex;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  flex: none;
  --marquee-shift: -50%;
  animation: marquee 42s linear infinite;
}
.marquee-set {
  display: flex;
  align-items: center;
  gap: 48px;
  padding-right: 48px;
  flex: none;
}
.marquee-set img { height: 22px; width: auto; display: block; opacity: 0.55; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(var(--marquee-shift)); }
}

html.page-home.is-fokus .hero,
html.page-home.is-fokus #zusammenarbeit,
html.page-home.is-fokus #praxis,
html.page-home.is-fokus #arbeitsweise,
html.page-home.is-fokus .code-hint,
html.page-home.is-fokus .section-index,
html.page-home.is-fokus .hero-cta,
html.page-home.is-fokus .nav-extra,
html.page-home.is-fokus .nav-cta,
html.page-home.is-fokus .footer-brand,
html.page-home.is-fokus .stack,
html.page-home.is-fokus .schichten-title,
html.page-home.is-fokus .schichten-lead,
html.page-home.is-fokus .schicht-list,
html.page-home.is-fokus .contact-copy,
html.page-home.is-fokus .contact-pitch { display: none; }

html.page-home.is-fokus main {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding-top: clamp(72px, 11vh, 132px);
  gap: clamp(56px, 8vh, 96px);
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
  overflow: auto;
  scrollbar-width: none;
}
html.page-home.is-fokus main::-webkit-scrollbar { display: none; width: 0; height: 0; }
html.page-home.is-fokus .leistungen,
html.page-home.is-fokus .contact { width: 100%; }
html.page-home.is-fokus .contact { order: 1; }
html.page-home.is-fokus .leistungen { order: 2; }
html.page-home.is-fokus main > .section { border: 0; padding: 0; }
html.page-home.is-fokus .contact { padding-top: 0; padding-bottom: 0; }
html.page-home.is-fokus main .container { width: auto; margin: 0; }
html.page-home.is-fokus .code-explorer {
  display: grid;
  width: min(100%, 860px);
  margin: 0 auto;
}
html.page-home.is-fokus .code-explorer.reveal { opacity: 1; transform: none; }
html.page-home.is-fokus .contact-grid {
  grid-template-columns: auto auto;
  justify-content: center;
  gap: clamp(20px, 2.5vw, 36px);
}
html.page-home.is-fokus .contact-title { font-size: clamp(2.2rem, 3.8vw, 3.4rem); }
html.page-home.is-fokus .contact-actions {
  margin-top: 0;
  flex-direction: column;
  align-items: stretch;
}
html.page-home.is-fokus .contact-actions .btn { justify-content: center; }
html.page-home.is-fokus .site-footer { padding-block: 14px; flex: none; border-top: 1px solid var(--line); }
html.page-home.is-fokus .footer-wave { display: none; }

@media (max-width: 820px) {
  html.page-home.is-fokus body { height: auto; overflow: auto; display: block; scrollbar-width: none; }
  html.page-home.is-fokus main {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: min(100% - 2 * var(--gutter), var(--container));
    padding-block: 28px 40px;
    gap: 40px;
  }
}
