/*
 * Design A „Schwarm" — page styles. The swarm itself is a fixed WebGL canvas
 * (#stage, drawn by /a/page.js); everything here is the readable layer on top.
 * Shared pieces (switcher, consent, release list, legal) come from
 * /v/common.css and are themed through the --v-* properties below.
 */
:root {
  --bg: #04060c;
  --bg-2: #070b16;
  --ink: #eef1f6;
  --ink-2: #b7c0cf;
  --mute: #8a94a7;
  --line: rgba(160, 190, 230, 0.14);
  --amber: #ffa53a;
  --fox: #ff6a1a;
  --cyan: #3fe0ff;
  --panel: rgba(5, 8, 16, 0.72);
  --display: 'Unbounded', 'Arial Black', sans-serif;
  --body: 'Manrope', 'Segoe UI', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --topbar: 56px;
  color-scheme: dark;

  --v-bg: var(--bg);
  --v-fg: var(--ink);
  --v-muted: var(--mute);
  --v-line: var(--line);
  --v-accent: var(--fox);
  --v-on-accent: #0a0603;
  --v-surface: rgba(4, 6, 12, 0.82);
  --v-font: var(--body);
  --v-mono: var(--mono);
  --v-radius: 999px;
}
*,
*::before,
*::after { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; }
::selection { background: var(--fox); color: #000; }
.gutter { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.wrap { max-width: 1240px; margin: 0 auto; }
[hidden] { display: none !important; }

.skip {
  position: fixed; z-index: 100; left: 12px; top: 12px;
  padding: 10px 14px; border-radius: 8px;
  background: var(--fox); color: #0a0603; font: 700 14px/1 var(--body); text-decoration: none;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

/* ---------- swarm stage ---------- */
#stage { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
#stage canvas { display: block; width: 100%; height: 100%; }
.vignette {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(0, 0, 0, 0.55) 100%),
    linear-gradient(180deg, rgba(4, 6, 12, 0) 70%, rgba(4, 6, 12, 0.6) 100%);
}
.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0.06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* static fallback (reduced motion / no WebGL) */
.fallback {
  display: none; position: absolute; z-index: 0; pointer-events: none;
  right: max(4vw, 16px); top: 50vh; transform: translateY(-50%); width: min(40vw, 500px); aspect-ratio: 1;
}
.fallback img {
  width: 100%; height: 100%;
  filter: drop-shadow(0 0 28px rgba(255, 106, 26, 0.55)) drop-shadow(0 0 80px rgba(255, 165, 58, 0.25));
}
.fallback::after {
  content: ''; position: absolute; inset: -20%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 106, 26, 0.22), rgba(63, 224, 255, 0.06) 60%, transparent);
}
html.no-gl .fallback { display: block; }
html.no-gl #stage,
html.no-gl .hud,
html.no-gl .hint { display: none; }

/* ---------- switcher (shared) ---------- */
.vswitch { top: max(12px, env(safe-area-inset-top, 0px)); right: max(16px, env(safe-area-inset-right, 0px)); padding: 6px 10px; }
.vswitch a { color: var(--ink-2); }
.vswitch a[aria-current='true'] { color: #0a0603; }
.vswitch a:hover { color: var(--cyan); border-color: rgba(63, 224, 255, 0.35); }
.vswitch a[aria-current='true']:hover { color: #0a0603; }

/* ---------- brand bar ---------- */
.brand { position: absolute; z-index: 5; top: max(14px, env(safe-area-inset-top, 0px)); left: 0; right: 0; }
.brand .wrap { display: flex; align-items: center; gap: 10px; }
.brand-mark { font: 700 15px/1 var(--display); letter-spacing: 0.02em; text-decoration: none; display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.brand-mark i { width: 9px; height: 9px; border-radius: 50%; background: var(--fox); box-shadow: 0 0 12px var(--fox), 0 0 2px #fff inset; }

/* ---------- HUD ---------- */
.hud {
  position: fixed; z-index: 4; text-align: right;
  right: max(16px, env(safe-area-inset-right, 0px)); bottom: max(16px, env(safe-area-inset-bottom, 0px));
  font: 400 11px/1.4 var(--mono); color: var(--mute); letter-spacing: 0.06em; text-transform: uppercase; pointer-events: none;
}
.hud span { color: var(--amber); }
.hud .bar { display: block; width: 140px; height: 2px; margin: 6px 0 0 auto; background: var(--line); position: relative; overflow: hidden; }
.hud .bar i { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, var(--fox), var(--cyan)); }

/* ---------- layout ---------- */
main { position: relative; z-index: 2; }
section { position: relative; }
#top { position: absolute; top: 0; }
.eyebrow {
  font: 600 12px/1.4 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--cyan);
  margin: 0 0 18px; display: flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ''; flex: none; width: 22px; height: 1px; background: currentColor; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.01em; margin: 0; }
h2 { font-size: clamp(1.8rem, 4.4vw, 3.6rem); line-height: 1.04; hyphens: manual; overflow-wrap: break-word; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--ink-2); max-width: 34em; }
code, kbd, .mono { font-family: var(--mono); }
.hl-a { color: var(--amber); }
.hl-c { color: var(--cyan); }

/* hero */
.hero { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding-top: 96px; padding-bottom: 72px; }
.hero .wrap { width: 100%; }
.hero-copy { max-width: 720px; display: flex; flex-direction: column; align-items: flex-start; }
.hero-copy > * { max-width: 100%; }
.headline {
  font-family: var(--display); font-weight: 900; font-size: clamp(2.1rem, 4.6vw, 4.5rem); line-height: 0.98;
  letter-spacing: -0.025em; margin: 0 0 28px; position: relative; cursor: default;
}
.headline .row { display: block; white-space: nowrap; }
.headline em { font-style: normal; color: transparent; -webkit-text-stroke: 1.5px var(--amber); text-shadow: 0 0 30px rgba(255, 165, 58, 0.25); }
.headline .glitch { position: relative; display: inline-block; }
.headline .glitch::before,
.headline .glitch::after { content: attr(data-t); position: absolute; inset: 0; pointer-events: none; opacity: 0; }
.headline:hover .glitch::before { opacity: 0.85; color: var(--cyan); -webkit-text-stroke: 0; animation: gl1 0.42s steps(2) 2; transform: translate(-3px, 0); }
.headline:hover .glitch::after { opacity: 0.85; color: var(--fox); -webkit-text-stroke: 0; animation: gl2 0.42s steps(2) 2; transform: translate(3px, 0); }
@keyframes gl1 { 0% { clip-path: inset(0 0 70% 0); } 25% { clip-path: inset(40% 0 30% 0); } 50% { clip-path: inset(75% 0 5% 0); } 75% { clip-path: inset(15% 0 60% 0); } 100% { clip-path: inset(0 0 100% 0); opacity: 0; } }
@keyframes gl2 { 0% { clip-path: inset(60% 0 10% 0); } 25% { clip-path: inset(10% 0 70% 0); } 50% { clip-path: inset(30% 0 40% 0); } 75% { clip-path: inset(80% 0 0 0); } 100% { clip-path: inset(100% 0 0 0); opacity: 0; } }
.chans { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 34px; padding: 0; list-style: none; }
.chans li { font: 500 13px/1 var(--mono); padding: 8px 11px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink-2); background: rgba(4, 6, 12, 0.55); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 20px; border-radius: 10px;
  font: 700 15px/1 var(--body); text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s, border-color 0.2s;
}
.btn-hot { background: var(--fox); color: #0a0603; box-shadow: 0 0 0 1px rgba(255, 165, 58, 0.4), 0 8px 40px -8px rgba(255, 106, 26, 0.7); }
.btn-hot:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px var(--amber), 0 14px 50px -6px rgba(255, 106, 26, 0.9); }
.btn-hot:disabled { opacity: 0.7; cursor: progress; transform: none; }
.btn-ghost { border-color: var(--line); color: var(--ink); background: rgba(4, 6, 12, 0.5); }
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.btn:focus-visible,
.copy:focus-visible,
input:focus-visible,
a:focus-visible,
summary:focus-visible,
button:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

.whatsnew:not([hidden]) {
  display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin-top: 26px; padding: 9px 14px;
  border: 1px solid rgba(255, 165, 58, 0.35); border-radius: 10px; background: rgba(4, 6, 12, 0.62);
  font: 500 13px/1.45 var(--body); color: var(--ink-2); text-decoration: none; max-width: 34em;
  transition: border-color 0.2s, color 0.2s;
}
.whatsnew b { font: 600 11px/1.6 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: #0a0603; background: var(--amber); padding: 0 6px; border-radius: 4px; }
.whatsnew__tag { font: 600 12px/1.45 var(--mono); color: var(--amber); }
.whatsnew__text { flex: 1 1 16em; min-width: 0; }
.whatsnew:hover { border-color: var(--amber); color: var(--ink); }

.hint { margin: 30px 0 0; font: 400 12px/1.5 var(--mono); color: var(--mute); letter-spacing: 0.04em; }
.hint b { color: var(--ink-2); font-weight: 400; }
.hint--touch { display: none; }
@media (hover: none) {
  .hint--mouse { display: none; }
  .hint--touch { display: block; }
}

/* sticky scenes */
.scene { height: 190vh; }
.scene-pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; }
.scene-pin .wrap { width: 100%; }
.card {
  max-width: 520px; padding: 30px 30px 26px; border-left: 2px solid var(--fox);
  background: linear-gradient(90deg, rgba(4, 6, 12, 0.86), rgba(4, 6, 12, 0.55) 70%, rgba(4, 6, 12, 0));
}
.card.right {
  margin-left: auto; border-left: 0; border-right: 2px solid var(--cyan); text-align: right;
  background: linear-gradient(270deg, rgba(4, 6, 12, 0.9), rgba(4, 6, 12, 0.62) 70%, rgba(4, 6, 12, 0.1));
}
.card.right .eyebrow { justify-content: flex-end; }
.card h2 { margin-bottom: 18px; }
.card p { color: var(--ink-2); }
.card .facts { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 18px 0 0; padding: 0; list-style: none; font: 500 13px/1.5 var(--mono); color: var(--ink); }
.card.right .facts { justify-content: flex-end; }
.card .facts li::before { content: '› '; color: var(--amber); }
.btw {
  display: inline-block; margin-top: 6px; padding: 10px 14px; border: 1px solid rgba(63, 224, 255, 0.35); border-radius: 8px;
  background: rgba(63, 224, 255, 0.06); font: 500 14px/1.4 var(--mono); color: var(--ink); text-align: left;
}
.btw b { color: var(--cyan); font-weight: 600; }

/* capabilities */
.caps { padding-top: 18vh; padding-bottom: 14vh; }
.caps-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 44px; }
.caps-head p { max-width: 30em; color: var(--ink-2); margin: 0; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.cap { background: rgba(5, 8, 15, 0.88); padding: 22px 20px 20px; min-height: 150px; position: relative; transition: background 0.25s; }
.cap:hover { background: rgba(14, 18, 30, 0.94); }
.cap::before { content: ''; position: absolute; left: 20px; top: 0; width: 28px; height: 2px; background: var(--fox); transition: width 0.3s, background 0.3s; }
.cap:hover::before { width: 64px; background: var(--cyan); }
.cap h3 { font: 600 15px/1.25 var(--display); letter-spacing: 0; margin: 6px 0 10px; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
.cap p { font-size: 14.5px; line-height: 1.5; color: var(--ink-2); margin: 0; }
.cap.big { grid-column: span 2; }
.cap.big h3 { font-size: 19px; }

/* proof */
.proof { padding-top: 6vh; padding-bottom: 10vh; }
.proof-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(4, 6, 12, 0.5); }
.stat { padding: 30px 24px 28px 0; min-width: 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat .k { font: 500 12px/1.3 var(--mono); color: var(--mute); letter-spacing: 0.1em; text-transform: uppercase; }
.stat .v { font: 700 clamp(1.8rem, 3.4vw, 2.8rem)/1.1 var(--display); margin: 10px 0 6px; color: var(--ink); overflow-wrap: anywhere; }
.stat .v span:not([data-v-live]) { font: 400 15px/1.6 var(--mono); color: var(--mute); }
.stat .v.amber { color: var(--amber); }
.stat .v.cyan { color: var(--cyan); }
.stat .n { font-size: 13px; color: var(--mute); }

/* quickstart */
.quick { min-height: 100vh; padding-top: 14vh; padding-bottom: 10vh; display: flex; align-items: center; }
.quick .wrap { width: 100%; }
.quick-col { max-width: 640px; }
.quick-h { margin-bottom: 22px; }
.cmd { display: flex; align-items: stretch; margin: 0 0 10px; border: 1px solid var(--line); border-radius: 10px; background: rgba(3, 5, 10, 0.92); overflow: hidden; }
.cmd code { flex: 1; min-width: 0; padding: 15px 16px; font-size: 14px; line-height: 1.5; color: var(--ink); overflow-x: auto; white-space: nowrap; scrollbar-width: thin; }
.cmd code::before { content: '$ '; color: var(--amber); }
.copy {
  flex: none; border: 0; border-left: 1px solid var(--line); background: transparent; color: var(--ink-2);
  font: 600 12px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; padding: 0 16px; cursor: pointer; min-width: 104px;
  transition: color 0.2s, background 0.2s;
}
.copy:hover { color: var(--cyan); background: rgba(63, 224, 255, 0.06); }
.copy[data-copied] { color: var(--amber); }
.cmd.main { border-color: rgba(255, 106, 26, 0.45); box-shadow: 0 0 40px -12px rgba(255, 106, 26, 0.55); }
.cmd.main code { font-size: 15px; }
.or { display: flex; align-items: center; gap: 12px; margin: 24px 0 14px; font: 500 12px/1 var(--mono); color: var(--mute); letter-spacing: 0.1em; text-transform: uppercase; }
.or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 8px; align-items: center; counter-increment: s; }
.steps li::before { content: counter(s); font: 600 12px/1 var(--mono); color: var(--cyan); }
.win { margin: 16px 0 0; font: 500 14px/1.5 var(--mono); color: var(--mute); }
.win a { color: var(--cyan); text-underline-offset: 3px; }
.win a:hover { color: var(--amber); }
/* Einrichtungs-Link: bricht als Ganzes in die nächste Zeile, nie mitten im Namen. */
.win a.setup { display: inline-block; }
.alive { margin-top: 22px; font: 700 clamp(1.2rem, 2.2vw, 1.6rem)/1.2 var(--display); color: var(--amber); }
.alive span { color: var(--ink-2); font: 400 15px/1.5 var(--body); display: block; margin-top: 6px; }

/* changelog */
.changelog { padding-top: 8vh; padding-bottom: 4vh; }
.changelog-box {
  display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 40px; align-items: start;
  padding: 36px 40px; border: 1px solid var(--line); border-radius: 18px; background: rgba(4, 6, 12, 0.84);
}
.changelog-head h2 { font-size: clamp(1.5rem, 3vw, 2.4rem); margin-bottom: 14px; }
.changelog-head p:last-child { color: var(--ink-2); margin: 0; }
.changelog-list { min-height: 120px; }
.vrel__head { position: relative; padding: 14px 30px 14px 0; }
.vrel__head:hover .vrel__name { color: var(--cyan); }
.vrel__tag { color: var(--amber); }
.vrel__name { font: 600 15px/1.35 var(--display); letter-spacing: 0; transition: color 0.2s; }
.vrel__head::after { content: '+'; position: absolute; right: 4px; top: 17px; font: 600 14px/1 var(--mono); color: var(--mute); }
.vrel[open] .vrel__head::after { content: '−'; color: var(--cyan); }
.vrel__notes { color: var(--ink-2); font-size: 15px; }
.vrel__all { color: var(--cyan); }
.vrel__all:hover { color: var(--amber); }

/* newsletter */
.news { padding-top: 6vh; padding-bottom: 12vh; }
.news-box {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: center; padding: 40px;
  border: 1px solid var(--line); border-radius: 18px;
  background: linear-gradient(120deg, rgba(255, 106, 26, 0.1), rgba(4, 6, 12, 0.88) 40%, rgba(63, 224, 255, 0.08));
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.news-box h2 { font-size: clamp(1.5rem, 3vw, 2.4rem); }
.news-box p { color: var(--ink-2); margin: 12px 0 0; }
.news-box .eyebrow { color: var(--cyan); margin: 0 0 16px; }
.nl { display: grid; gap: 10px; min-width: 0; }
.nl__label { font: 600 12px/1.3 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); }
.nl__row { display: flex; flex-wrap: wrap; gap: 10px; }
.nl input[type='email'] {
  flex: 1 1 220px; min-width: 0; padding: 15px 16px; border-radius: 10px; border: 1px solid var(--line);
  background: rgba(3, 5, 10, 0.92); color: var(--ink); font: 500 16px/1.2 var(--body);
}
.nl input[type='email']::placeholder { color: var(--mute); }
.nl .btn { flex: 0 1 auto; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.news-box .nl__status { min-height: 1.4em; margin: 0; font: 500 13px/1.45 var(--mono); color: var(--mute); }
.nl__status[data-state='pending'] { color: var(--amber); }
.nl__status[data-state='error'] { color: #ff9b8f; }
.news-box .nl__consent { margin: 0; font-size: 13px; line-height: 1.5; color: var(--mute); }

/* footer */
.foot {
  position: relative; z-index: 2; border-top: 1px solid var(--line);
  padding-top: 34px; padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px)); background: rgba(4, 6, 12, 0.94);
}
.foot .wrap { display: grid; gap: 18px; }
.foot__built { margin: 0; display: flex; align-items: center; gap: 10px; font: 700 14px/1.2 var(--display); letter-spacing: 0.02em; }
.foot__built i { width: 7px; height: 7px; border-radius: 50%; background: var(--fox); box-shadow: 0 0 10px var(--fox); }
.vlegal a:hover,
.vlegal button:hover { color: var(--amber); }

/* consent banner sits bottom-left; keep it clear of the HUD (bottom-right) */
.vconsent { border-radius: 14px; }
.vconsent__title { font-family: var(--display); font-size: 15px; }

/* ---------- responsive ---------- */
/* „So sieht Alvin aus“ und Terminal-Player. Größen hier, damit nichts springt, bevor
   /v/vorschau.css (Innenleben) nachgeladen ist. */
.vz { padding-top: 14vh; padding-bottom: 8vh; --vz-akzent: var(--cyan); --vz-term-mono: var(--mono); }
.vz-stage { border: 1px solid var(--line); border-radius: 16px; background: rgba(4, 6, 12, 0.86); overflow: hidden; box-shadow: 0 30px 80px -30px rgba(63, 224, 255, 0.25); }
.vz-tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.vz-tabs [role=tab] { border: 1px solid transparent; border-radius: 999px; background: none; color: var(--ink-2); font: 600 13px/1 var(--body); padding: 9px 14px; }
.vz-tabs [role=tab][aria-selected=true] { border-color: rgba(63, 224, 255, 0.4); background: rgba(63, 224, 255, 0.08); color: var(--cyan); }
/* Kreislauf-Balken am aktiven Reiter (Inhalt aus /v/vorschau.css): wie der HUD-Balken, Spur --line,
   Füllung Fuchs → Cyan, bündig mit dem Text */
.vz-tabs [role=tab][aria-selected=true]::before,
.vz-tabs [role=tab][aria-selected=true]::after { left: 14px; right: 14px; bottom: 3px; border-radius: 0; }
.vz-tabs [role=tab][aria-selected=true]::before { background: var(--line); opacity: 1; }
.vz-tabs [role=tab][aria-selected=true]::after { background: linear-gradient(90deg, var(--fox), var(--cyan)); }
.vz-badge { margin-left: auto; font: 600 11px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--amber); border: 1px solid rgba(255, 165, 58, 0.5); border-radius: 999px; padding: 6px 10px; }
.vz-panel { padding: 14px; }
.vz-screen { border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
video[data-vz-video] { display: block; width: 100%; height: auto; aspect-ratio: 1280 / 800; }
/* Alle Felder einer Reitergruppe gleich hoch, sonst springt der Inhalt darunter beim automatischen Wechsel:
   das iPhone steht in einer Box mit der Fläche von .vz-screen (Rand 1px + 1280×800, mobil wie das
   Hochformat-Video) und wird so breit, wie die Höhe der Box erlaubt (Rand + Polster 2 × 11px). */
.vz-telefeld { box-sizing: content-box; border: 1px solid transparent; aspect-ratio: 1280 / 800; container-type: inline-size; display: flex; align-items: center; justify-content: center; --vz-feldh: calc(100cqw * 800 / 1280); }
.vz-phone { width: min(300px, 70vw); margin: 4px auto 0; padding: 10px; border: 1px solid var(--line); border-radius: 44px; background: #05080f; box-shadow: 0 24px 60px -30px rgba(63, 224, 255, 0.35); }
.vz-telefeld .vz-phone { margin: 0; width: min(300px, 70vw, 100cqw, calc((var(--vz-feldh) - 22px) * 540 / 1168 + 22px)); }
.vz-phone video[data-vz-video] { aspect-ratio: 540 / 1168; border-radius: 34px; }
.vz-cap { margin: 10px 2px 0; font-size: 13px; color: var(--mute); }
.vz-panel .vz-cap { --vz-cap-zeilen: 1; line-height: 1.45; min-height: calc(var(--vz-cap-zeilen) * 1.45em); }
@media (max-width: 1099px) { .vz-panel .vz-cap { --vz-cap-zeilen: 2; } }
.vz-note { margin: 12px 2px 0; font-size: 12.5px; color: var(--mute); }
/* „Sicher ab Werk“: der Tresor (neu) als glühendes Mittelstück, daneben die Schutzmaßnahmen, die schon drin sind,
   als ruhige Liste mit Cyan-Haken. Unter 1000px untereinander, der Tresor zuerst. */
.sw { padding-top: 8vh; }
.sw-bau { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 28px; align-items: start; }
.sw-marke { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font: 600 12px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); }
.sw-tresor { position: relative; padding: 30px 30px 26px; border: 1px solid rgba(255, 165, 58, 0.34); border-radius: 18px; background: radial-gradient(120% 80% at 0% 0%, rgba(255, 165, 58, 0.10), transparent 60%), rgba(5, 8, 15, 0.9); box-shadow: 0 30px 90px -40px rgba(255, 165, 58, 0.45); scroll-margin-top: calc(var(--topbar) + 24px); }
.sw-tresor h3 { font: 700 clamp(22px, 2.3vw, 30px)/1.14 var(--display); letter-spacing: -0.01em; margin: 0 0 14px; text-wrap: balance; }
.sw-intro { margin: 0; max-width: 46em; font-size: 15.5px; line-height: 1.6; color: var(--ink-2); }
.tr-neu { font: 600 11px/1 var(--mono); letter-spacing: 0.12em; color: #0a0603; background: var(--amber); border-radius: 999px; padding: 4px 9px; }
.tr-punkte { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.tr-punkte li { background: rgba(5, 8, 15, 0.92); padding: 18px 16px 16px; position: relative; }
.tr-punkte li::before { content: ''; position: absolute; left: 16px; top: 0; width: 28px; height: 2px; background: var(--amber); }
.tr-punkte h4 { font: 600 14.5px/1.25 var(--display); letter-spacing: 0; margin: 4px 0 8px; hyphens: auto; -webkit-hyphens: auto; }
.tr-punkte p { font-size: 13.5px; line-height: 1.5; color: var(--ink-2); margin: 0; }
.sw-schutz { padding: 30px 4px 0; }
.sw-schutz ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.sw-schutz li { position: relative; padding: 18px 0 18px 34px; border-bottom: 1px solid var(--line); }
.sw-schutz li::before { content: ''; position: absolute; left: 2px; top: 21px; width: 12px; height: 6px; border-left: 2px solid var(--cyan); border-bottom: 2px solid var(--cyan); transform: rotate(-45deg); }
.sw-schutz h3 { font: 600 15px/1.3 var(--display); letter-spacing: 0; margin: 0 0 6px; }
.sw-schutz p { font-size: 14.5px; line-height: 1.5; color: var(--ink-2); margin: 0; }
@media (max-width: 999px) { .sw-bau { grid-template-columns: minmax(0, 1fr); gap: 10px; } .sw-schutz { padding-top: 18px; } }
@media (max-width: 899px) { .tr-punkte { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 599px) { .sw-tresor { padding: 22px 18px 20px; } }
/* Die alte Kachel „Sicher ab Werk“ im Raster ist nur noch ein Sprung in den Abschnitt */
.cap-sprung { display: block; color: inherit; text-decoration: none; }
.cap-sprung p { text-decoration: underline; text-decoration-color: rgba(63, 224, 255, 0.45); text-underline-offset: 3px; }
.cap-sprung:hover p, .cap-sprung:focus-visible p { color: var(--cyan); }
.cap-sprung:focus-visible { outline: 2px solid var(--cyan); outline-offset: -2px; }
.vz-term { margin: 14px 0 0; border: 1px solid var(--line); border-radius: 10px; background: rgba(3, 5, 10, 0.94); overflow: hidden; container-type: inline-size; --vz-term-bg: transparent; }
.vz-term-kopf { display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 12px; border-bottom: 1px solid var(--line); font: 600 12px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.vz-dots { display: inline-flex; gap: 5px; }
.vz-dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(160, 190, 230, 0.25); }
.vz-nochmal { margin-left: auto; border: 1px solid var(--line); border-radius: 999px; background: none; color: var(--cyan); font: 600 11px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; padding: 6px 10px; cursor: pointer; }
.vz-schirm { --vz-spalten: 80; --vz-zeilen: 30; }
@container (max-width: 520px) { .vz-schirm { --vz-spalten: 46; --vz-zeilen: 36; } }
.vz-schirm { --vz-fs: min(12.5px, calc((100cqw - 26px) / (var(--vz-spalten) * 0.62))); margin: 0; padding: 12px 13px; font-size: var(--vz-fs); line-height: 1.32; height: calc(var(--vz-zeilen) * 1.32 * var(--vz-fs) + 24px); overflow: hidden; }
.vz-term .vz-cap { margin: 0; padding: 8px 12px 10px; border-top: 1px solid var(--line); font-size: 12.5px; }
@media (max-width: 599px) {
  .vz-panel video[data-vz-video]:not([data-vz-hoch]):not([data-vz-quer]) { aspect-ratio: 540 / 1168; width: min(100%, calc(76svh * 540 / 1168)); margin: 0 auto; }
  .vz-screen { border: 0; }
  .vz-panel { padding: 10px; }
  .vz-telefeld { border: 0; aspect-ratio: 540 / 1168; width: min(100%, calc(76svh * 540 / 1168)); margin: 0 auto; --vz-feldh: calc(100cqw * 1168 / 540); }
  .vz-panel .vz-cap { --vz-cap-zeilen: 3; }
}


@media (max-width: 980px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .news-box,
  .changelog-box { grid-template-columns: minmax(0, 1fr); padding: 28px; gap: 24px; }
}

/*
 * Stacked layout: narrow or portrait screens. The swarm takes the top of the
 * screen, the copy sits below / at the bottom. page.js uses the same query.
 */
@media (max-width: 900px), (max-aspect-ratio: 1/1) {
  .hero { align-items: flex-start; min-height: 0; padding-top: clamp(190px, 37svh, 360px); padding-bottom: 64px; }
  .hero-copy { max-width: 640px; }
  .hero .cta { order: 4; }
  .hero .chans { order: 5; margin: 22px 0 0; }
  .hero .whatsnew { order: 6; }
  .hero .hint { order: 7; }
  .hero .lead { margin-bottom: 22px; }
  .headline { margin-bottom: 18px; }
  .scene { height: 170vh; }
  .scene-pin { align-items: flex-end; padding-bottom: 5vh; padding-bottom: 5svh; }
  .card,
  .card.right {
    max-width: 640px; margin: 0; text-align: left; border-right: 0; border-left: 2px solid var(--fox); padding: 22px 18px 18px;
    background: linear-gradient(180deg, rgba(4, 6, 12, 0.6), rgba(4, 6, 12, 0.92) 30%);
  }
  .card.right { border-left-color: var(--cyan); }
  .card.right .eyebrow,
  .card.right .facts { justify-content: flex-start; }
  .quick { padding-top: 40vh; padding-top: 40svh; }
  .fallback { right: 50%; top: calc(var(--topbar) + (clamp(190px, 37svh, 360px) - var(--topbar)) / 2); transform: translate(50%, -50%); width: min(60vw, 30svh, 320px); }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .hud { display: none; }
  .grid { grid-template-columns: minmax(0, 1fr); }
  .cap.big { grid-column: auto; }
  .cap { min-height: 0; }
  .proof-row { grid-template-columns: minmax(0, 1fr); }
  .stat,
  .stat + .stat { padding: 22px 0; border-left: 0; }
  .stat + .stat { border-top: 1px solid var(--line); }
  .proof-row { background: rgba(4, 6, 12, 0.7); padding: 0 16px; }
  .cmd code { font-size: 13px; padding: 13px 12px; }
  .cmd.main code { font-size: 13px; }
  .copy { min-width: 84px; padding: 0 10px; font-size: 11px; }
  .chans li { font-size: 12px; padding: 7px 9px; }
}
@media (max-width: 420px) {
  .headline { font-size: clamp(1.9rem, 9.2vw, 2.2rem); }
  .brand-mark { font-size: 14px; }
  .news-box,
  .changelog-box { padding: 22px 18px; }
  .nl .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after { animation: none !important; transition: none !important; }
  .scene { height: auto; }
  .scene-pin { position: relative; height: auto; min-height: 70vh; padding: 10vh 0; }
}

/* ---------- Tresor: neuer Reiter in der Vorschau, „Im Film ansehen“ im Abschnitt ---------- */
.vz-neu { margin-left: 6px; padding: 3px 6px; border-radius: 999px; background: var(--amber); color: #0a0603; font: 700 10px/1 var(--mono); letter-spacing: 0.08em; vertical-align: 1px; }
.tr-film { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 22px; }
.tr-film .vz-note { margin: 0; }
.tr-play { width: 0; height: 0; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent var(--amber); }

/*
 * ---------- mitwandernde Navigation (Verhalten: [data-vnav] in /v/common.js) ----------
 * Oben links, auf der Achse des Inhalts: Marke, fünf Anker, Installieren. Über dem Hero frei auf dem Schwarm;
 * danach (html.vnav-unten) sammelt sich eine Glaskapsel dahinter. Der aktive Abschnitt glüht als Glutlinie,
 * die zwischen den Ankern wandert (nur transform). Schmal: Menü-Knopf, Vollbild-Glas mit großen Ankern.
 */
html { scroll-padding-top: 84px; }
.brand { position: fixed; z-index: 88; top: max(12px, env(safe-area-inset-top, 0px)); pointer-events: none; }
.abar { position: relative; display: flex; align-items: center; gap: 26px; pointer-events: auto; }
.abar::before {
  content: ''; position: absolute; z-index: -1; inset: -7px -9px -7px -18px; border-radius: 999px; pointer-events: none;
  border: 1px solid var(--line); background: rgba(5, 8, 16, 0.62);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 18px 50px -24px #000, inset 0 1px 0 rgba(255, 255, 255, 0.05);
  opacity: 0; transform: scale(0.94, 0.8); transition: opacity 0.45s, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
html.vnav-unten .abar::before { opacity: 1; transform: none; }
.vnav { display: flex; align-items: center; }
.vnav-knopf { display: none; }
.vnav-panel { display: flex; align-items: center; gap: 14px; }
.vnav-liste { position: relative; }
.vnav-liste ul { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; }
.vnav-liste a { display: block; padding: 11px 12px; border-radius: 999px; font: 600 13.5px/1 var(--body); color: var(--ink-2); text-decoration: none; transition: color 0.25s; }
.vnav-liste a:hover, .vnav-liste a[aria-current] { color: var(--ink); }
.vnav-ind {
  position: absolute; left: 0; bottom: 3px; width: 100px; height: 2px; border-radius: 2px; pointer-events: none;
  background: linear-gradient(90deg, var(--fox), var(--amber) 45%, var(--cyan));
  box-shadow: 0 0 10px rgba(255, 106, 26, 0.85), 0 0 22px rgba(63, 224, 255, 0.35);
  transform-origin: 0 50%; transform: translateX(calc(var(--x, 0px) + 12px)) scaleX(calc((var(--w, 24) - 24) / 100));
  opacity: 0; transition: transform 0.6s cubic-bezier(0.25, 0.9, 0.25, 1), opacity 0.3s;
}
.vnav-ind[data-an] { opacity: 1; }
.vnav-cta {
  padding: 10px 16px; border-radius: 999px; background: var(--fox); color: #0a0603; font: 700 13.5px/1 var(--body); text-decoration: none; white-space: nowrap;
  box-shadow: 0 0 0 1px rgba(255, 165, 58, 0.4), 0 6px 24px -8px rgba(255, 106, 26, 0.7); transition: box-shadow 0.25s;
}
.vnav-cta:hover, .vnav-cta[aria-current] { box-shadow: 0 0 0 1px var(--amber), 0 0 0 4px rgba(255, 106, 26, 0.25), 0 8px 30px -6px rgba(255, 106, 26, 0.9); }

@media (max-width: 1023px) {
  .abar { gap: 12px; }
  html.js .vnav-knopf {
    display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px 0 14px; cursor: pointer;
    border: 1px solid var(--line); border-radius: 999px; background: rgba(5, 8, 16, 0.55); color: var(--ink); font: 700 13px/1 var(--body);
  }
  .vnav-striche { position: relative; width: 16px; height: 10px; }
  .vnav-striche::before, .vnav-striche::after { content: ''; position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: currentColor; transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1); }
  .vnav-striche::before { top: 0; }
  .vnav-striche::after { bottom: 0; background: var(--fox); }
  [aria-expanded='true'] .vnav-striche::before { transform: translateY(4px) rotate(45deg); }
  [aria-expanded='true'] .vnav-striche::after { transform: translateY(-4px) rotate(-45deg); }
  html.js .vnav-panel {
    position: fixed; inset: 0; z-index: -1; flex-direction: column; align-items: stretch; gap: 0; overflow-y: auto; overscroll-behavior: contain;
    padding: calc(92px + env(safe-area-inset-top, 0px)) max(24px, env(safe-area-inset-right, 0px)) calc(28px + env(safe-area-inset-bottom, 0px)) max(24px, env(safe-area-inset-left, 0px));
    background: radial-gradient(120% 70% at 100% 0%, rgba(255, 106, 26, 0.12), transparent 60%), rgba(3, 5, 10, 0.9);
    -webkit-backdrop-filter: blur(20px) saturate(130%); backdrop-filter: blur(20px) saturate(130%);
    visibility: hidden; opacity: 0; transition: opacity 0.35s, visibility 0s 0.35s;
  }
  html.js .vnav.is-offen .vnav-panel { visibility: visible; opacity: 1; transition: opacity 0.35s; }
  html.js .vnav-liste ul { flex-direction: column; gap: 0; }
  html.js .vnav-liste li, html.js .vnav-cta { opacity: 0; transform: translateY(18px); transition: opacity 0.4s, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); transition-delay: calc(var(--i, 0) * 45ms + 60ms); }
  html.js .vnav.is-offen .vnav-liste li, html.js .vnav.is-offen .vnav-cta { opacity: 1; transform: none; }
  html.js .vnav-liste li { border-bottom: 1px solid var(--line); }
  html.js .vnav-liste a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 2px; border-radius: 0; font: 600 clamp(24px, 7vw, 38px)/1.1 var(--display); color: var(--ink); }
  html.js .vnav-liste a[aria-current] { color: var(--cyan); }
  html.js .vnav-liste a[aria-current]::after { content: ''; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--fox); box-shadow: 0 0 14px var(--fox), 0 0 2px #fff inset; }
  html.js .vnav-ind { display: none; }
  html.js .vnav-cta { margin-top: 30px; padding: 19px 20px; border-radius: 12px; font-size: 16px; text-align: center; }
  html:not(.js) .brand { position: absolute; }
  html:not(.js) .abar, html:not(.js) .vnav-panel, html:not(.js) .vnav-liste ul { flex-wrap: wrap; }
}
@media (max-width: 1023px) {
  html.js.vnav-unten .vnav-knopf { border-color: transparent; background: none; }
}
@media (max-width: 520px) {
  html.js .vnav-knopf { width: 44px; padding: 0; justify-content: center; }
  .vnav-wort { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .abar::before { inset: -7px -4px -7px -14px; }
}
@media (max-width: 359px) {
  /* sehr schmal: die Marke nur als glühender Punkt (der Name bleibt für Screenreader), damit der Knopf Platz hat */
  html.js .brand-mark { font-size: 0; gap: 0; min-height: 44px; }
}
/* Terminal (neu) im Raster der Fähigkeiten: breite Kachel neben „Lange Arbeit“, Neu-Marke an der Überschrift */
.cap h3 .tr-neu { margin-left: 6px; font-size: 10px; padding: 3px 7px; vertical-align: 2px; }
