/* kevinnovation.de – dunkles Design, ohne externe Schriften/Skripte (DSGVO) */
:root {
  --bg: #0b0c10; /* = Aurora-Shader (main.js) und theme-color – synchron halten */
  --bg-2: #101119; /* angehobenes Band (Werdegang) */
  --surface: #17181f;
  --surface-2: #21222b;
  --surface-3: #2b2c37;
  --text: #f5f5f7;
  --text-2: #d6d7de;
  --muted: #b0b2bc;
  --dim: #5b5d69;
  --line: rgb(255 255 255 / .1);
  --line-2: rgb(255 255 255 / .18);
  --hi: rgb(255 255 255 / .09); /* Lichtkante oben */
  --shadow: inset 0 1px 0 var(--hi), 0 30px 60px -32px rgb(0 0 0 / .7);
  --focus: #6cb6ff;
  --btn: #0071e3; /* Weiß darauf 4.7:1 (AA) */
  --wrap: 1120px;
  --gap: clamp(120px, 14vw, 176px);
  --blue: #2997ff;
  --violet: #bf5af2;
  --pink: #ff375f;
  --teal: #64d2ff;
  --orange: #ff9f0a;
  --green: #30d158;
  --radius: 30px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Inter", "Segoe UI Variable Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  letter-spacing: -.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
::selection { background: rgb(41 151 255 / .4); }
a { color: var(--blue); text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 700; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.btn:focus-visible, .tile:focus-visible, .feature:focus-visible { outline-offset: 4px; }
kbd {
  font: 500 11px/1 var(--mono); color: var(--muted);
  padding: 3px 6px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--surface-2);
}
.mono { font-family: var(--mono); font-weight: 500; letter-spacing: -.04em; }

/* Filmkorn über allem */
.grain {
  position: fixed; inset: -50%; z-index: 100; pointer-events: none; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

/* ================= NAVIGATION ================= */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  background: rgb(11 12 16 / .6);
  backdrop-filter: saturate(180%) blur(22px);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav.scrolled { border-bottom-color: var(--line); background: rgb(11 12 16 / .72); }
.nav-inner { max-width: var(--wrap); margin: 0 auto; height: 56px; padding: 0 22px; display: flex; align-items: center; gap: 32px; }
.logo { display: inline-flex; align-items: center; gap: 9px; color: var(--text); font-weight: 600; font-size: 16px; letter-spacing: -.02em; }
.logo-dot { width: 10px; height: 10px; border-radius: 50%; background: conic-gradient(from 0deg, var(--blue), var(--violet), var(--pink), var(--blue)); box-shadow: 0 0 12px rgb(191 90 242 / .6); animation: spin 6s linear infinite; }
.nav nav { display: flex; gap: 2px; margin: 0 auto; padding: 4px; border-radius: 980px; background: rgb(255 255 255 / .035); border: 1px solid var(--line); box-shadow: inset 0 1px 0 rgb(255 255 255 / .05); }
.nav nav a { color: rgb(245 245 247 / .7); font-size: 13px; font-weight: 500; padding: 6px 15px; border-radius: 980px; transition: color .2s, background .25s; }
.nav nav a:hover { color: #fff; background: rgb(255 255 255 / .05); }
.nav nav a.active { color: #fff; background: rgb(255 255 255 / .1); box-shadow: inset 0 1px 0 var(--hi); }
.kbd-btn {
  display: inline-flex; align-items: center; gap: 3px; padding: 5px 6px 5px 11px; cursor: pointer;
  border-radius: 980px; border: 1px solid var(--line); background: rgb(255 255 255 / .035); color: var(--muted);
  transition: border-color .2s, background .2s, color .2s;
}
.kbd-btn::before { /* Lupe */
  content: ""; width: 13px; height: 13px; margin-right: 5px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='7' cy='7' r='5'/%3E%3Cpath d='m11 11 3.5 3.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='7' cy='7' r='5'/%3E%3Cpath d='m11 11 3.5 3.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.kbd-btn kbd { background: rgb(255 255 255 / .06); border-color: var(--line); }
.kbd-btn:hover { color: var(--text); border-color: var(--line-2); background: rgb(255 255 255 / .07); }
.kbd-btn:hover kbd { color: var(--text); }
.menu-btn { display: none; }

/* ================= HERO ================= */
.hero {
  position: relative; min-height: 100svh; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 120px 22px 100px;
}
.aurora { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; opacity: 0; transition: opacity 2s var(--ease); }
.aurora.on { opacity: 1; }
.aurora-fallback {
  position: absolute; inset: 0; z-index: -3; filter: blur(60px);
  background:
    radial-gradient(42% 36% at 30% 42%, rgb(41 151 255 / .55), transparent 70%),
    radial-gradient(38% 34% at 70% 46%, rgb(191 90 242 / .5), transparent 70%),
    radial-gradient(32% 26% at 50% 72%, rgb(255 55 95 / .3), transparent 70%);
}
.aurora.on + .aurora-fallback { display: none; }
.hero::after { /* sanfter Übergang nach unten */
  content: ""; position: absolute; inset: auto 0 0; height: 30%; z-index: -1;
  background: linear-gradient(transparent, var(--bg));
}
.hero::before { /* feines Punktraster, zur Mitte hin ausgeblendet */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgb(255 255 255 / .11) 1px, transparent 1.6px);
  background-size: 30px 30px; background-position: center;
  -webkit-mask: radial-gradient(75% 65% at 50% 45%, transparent 30%, #000 75%, transparent 100%);
  mask: radial-gradient(75% 65% at 50% 45%, transparent 30%, #000 75%, transparent 100%);
  opacity: .7;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 500; color: rgb(245 245 247 / .86); padding: 8px 16px; border-radius: 980px;
  background: linear-gradient(180deg, rgb(255 255 255 / .1), rgb(255 255 255 / .04)); border: 1px solid var(--line-2);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .1), 0 8px 30px -10px rgb(0 0 0 / .5);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  margin-bottom: 28px;
}
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgb(48 209 88 / .6); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgb(48 209 88 / .55); } 70% { box-shadow: 0 0 0 10px rgb(48 209 88 / 0); } 100% { box-shadow: 0 0 0 0 rgb(48 209 88 / 0); } }

.hero-title {
  font-size: clamp(64px, 14.5vw, 188px); line-height: .92; letter-spacing: -.055em; font-weight: 800;
  display: flex; flex-direction: column; align-items: center;
  filter: drop-shadow(0 0 48px rgb(140 150 255 / .22));
}
.hero-title .mask { display: block; overflow: hidden; padding: 0 .04em .06em; }
.hero-title .mask > span {
  display: block;
  background: linear-gradient(180deg, #fff 38%, rgb(226 228 255 / .66));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-title i { font-style: normal; background: linear-gradient(135deg, var(--blue), var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub {
  font-size: clamp(20px, 2.8vw, 30px); line-height: 1.25; font-weight: 600; letter-spacing: -.022em;
  color: rgb(245 245 247 / .86); margin-top: 28px;
}
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px; margin-top: 44px; }

/* Einstiegsanimation */
.js .hero-title .mask > span { transform: translateY(105%); transition: transform 1.3s var(--ease-out) var(--d, 0s); }
.js .fade-in { opacity: 0; transform: translateY(16px); filter: blur(8px); transition: opacity 1.2s var(--ease-out) var(--d, 0s), transform 1.2s var(--ease-out) var(--d, 0s), filter 1.2s var(--ease-out) var(--d, 0s); }
.ready .hero-title .mask > span { transform: none; }
.ready .fade-in { opacity: 1; transform: none; filter: none; }

.scroll-hint {
  position: absolute; bottom: 32px; left: 50%; translate: -50% 0;
  width: 26px; height: 42px; border-radius: 14px; border: 1.5px solid rgb(255 255 255 / .35);
}
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: #fff; animation: wheel 2s var(--ease) infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ================= BUTTONS ================= */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  font: inherit; font-size: 17px; font-weight: 500; letter-spacing: -.01em;
  padding: 14px 26px; border-radius: 980px; cursor: pointer; border: 0;
  transition: transform .4s var(--ease-out), background .25s, box-shadow .4s, border-color .25s;
  will-change: transform;
}
.btn:active { scale: .97; }
.btn-primary {
  color: #fff; background: var(--btn);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .28), inset 0 -1px 0 rgb(0 0 0 / .2), 0 0 0 1px rgb(41 151 255 / .5), 0 12px 40px -10px rgb(41 151 255 / .75);
}
.btn-primary::before { /* Glanz von oben */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, rgb(255 255 255 / .16), transparent 55%);
}
.btn-primary:hover { box-shadow: inset 0 1px 0 rgb(255 255 255 / .34), inset 0 -1px 0 rgb(0 0 0 / .2), 0 0 0 1px rgb(100 180 255 / .7), 0 16px 56px -8px rgb(41 151 255 / .95); }
.btn-primary span { position: relative; z-index: 1; }
.btn-ghost {
  color: var(--text); background: linear-gradient(180deg, rgb(255 255 255 / .1), rgb(255 255 255 / .05)); border: 1px solid var(--line-2);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .08); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.btn-ghost:hover { background: rgb(255 255 255 / .13); border-color: rgb(255 255 255 / .28); }
.btn-lg { font-size: clamp(17px, 2.2vw, 22px); padding: 18px 34px; }

/* ================= STATEMENT ================= */
.statement { position: relative; max-width: var(--wrap); margin: 0 auto; padding: var(--gap) 22px 120px; }
.statement::before { /* Lichtfeld */
  content: ""; position: absolute; z-index: -1; pointer-events: none; inset: 0 -20vw -10%;
  background:
    radial-gradient(40% 45% at 18% 55%, rgb(41 151 255 / .1), transparent 70%),
    radial-gradient(35% 40% at 80% 70%, rgb(191 90 242 / .08), transparent 70%);
}
.scrub {
  font-size: clamp(32px, 5.4vw, 68px); line-height: 1.1; letter-spacing: -.036em; font-weight: 700;
  max-width: 21em;
}
.scrub .w { color: var(--dim); transition: color .35s; }
.scrub .w.lit { color: var(--text); }
.scrub .w.hl.lit { background: linear-gradient(90deg, var(--blue), var(--violet), var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ================= ZAHLEN ================= */
.stats { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat {
  --c: 41 151 255;
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--radius); padding: 38px 34px 34px; border: 1px solid var(--line);
  background:
    radial-gradient(110% 90% at 0% 0%, rgb(var(--c) / .16), transparent 62%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 10px;
}
.stat:nth-child(2) { --c: 191 90 242; }
.stat:nth-child(3) { --c: 100 210 255; }
.stat::before { /* leuchtende Oberkante */
  content: ""; position: absolute; top: 0; left: 28px; right: 28px; height: 1px;
  background: linear-gradient(90deg, transparent, rgb(var(--c) / .9), transparent);
}
.num {
  font-size: clamp(48px, 7vw, 84px); font-weight: 800; letter-spacing: -.05em; line-height: 1;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(140deg, #fff 30%, rgb(var(--c, 100 210 255)));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: .04em;
}
.lbl { color: var(--muted); font-size: 16px; }

/* ================= ABSCHNITTE ================= */
main { counter-reset: sec; overflow-x: clip; } /* dekorative Lichtfelder nicht seitlich überstehen lassen (sticky bleibt intakt) */
.section { position: relative; max-width: var(--wrap); margin: 0 auto; padding: var(--gap) 22px 0; }
.section-head { margin-bottom: 56px; }
.eyebrow {
  --accent: var(--blue);
  display: flex; align-items: center; gap: 12px;
  color: var(--accent); font-size: clamp(17px, 2vw, 21px); font-weight: 600; letter-spacing: -.01em; margin-bottom: 14px;
  counter-increment: sec;
}
.eyebrow::before { /* Kapitelnummer */
  content: counter(sec, decimal-leading-zero);
  content: counter(sec, decimal-leading-zero) / "";
  font: 500 12px/1 var(--mono); letter-spacing: 0; color: var(--text-2);
  padding: 5px 8px; border-radius: 7px;
  background: rgb(255 255 255 / .05); border: 1px solid var(--line); box-shadow: inset 0 1px 0 rgb(255 255 255 / .05);
}
#pipeline .eyebrow { --accent: var(--green); }
#projects .eyebrow { --accent: #c77dff; }
.headline {
  font-size: clamp(40px, 6.6vw, 80px); line-height: 1.02; letter-spacing: -.045em; font-weight: 800;
  background: linear-gradient(180deg, #fff 40%, #c4c6d2);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: .06em;
}
/* Lichtfelder hinter den Abschnitten */
.section::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none; inset: 0 -18vw auto; height: 1000px;
  background: radial-gradient(45% 40% at 22% 30%, rgb(41 151 255 / .1), transparent 70%), radial-gradient(40% 35% at 85% 55%, rgb(191 90 242 / .08), transparent 70%);
}
#projects::before { background: radial-gradient(45% 40% at 80% 30%, rgb(48 209 88 / .07), transparent 70%), radial-gradient(40% 35% at 15% 60%, rgb(191 90 242 / .08), transparent 70%); }

/* ================= KACHELN ================= */
.tile, .feature, .stage {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--radius); border: 1px solid var(--line);
  background-color: var(--surface);
}
.tile {
  padding: 36px 34px; display: flex; flex-direction: column; gap: 12px; min-height: 280px; color: var(--text);
  background: var(--tint, none), var(--art, none), linear-gradient(180deg, rgb(255 255 255 / .035), transparent 45%), var(--surface);
  box-shadow: var(--shadow);
  transition: transform .6s var(--ease-out), border-color .3s, box-shadow .6s var(--ease-out);
}
.tile:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: inset 0 1px 0 var(--hi), 0 40px 70px -34px rgb(0 0 0 / .85); }
.tile-kicker { font-size: 14px; font-weight: 600; color: var(--muted); }
.tile .tile-kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); letter-spacing: -.005em; }
.tile .tile-kicker::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--k, var(--muted)); box-shadow: 0 0 10px var(--k, transparent); }
.tile h3 { font-size: clamp(26px, 3vw, 34px); line-height: 1.08; letter-spacing: -.03em; }
.tile p { color: var(--muted); font-size: 17px; line-height: 1.5; max-width: 34em; }
.more { margin-top: auto; padding-top: 14px; color: var(--blue); font-size: 16px; }
a.tile:hover .more, a.feature:hover .more { text-decoration: underline; }

.t-blue   { --k: var(--blue);   --tint: radial-gradient(80% 60% at 100% 0%, rgb(41 151 255 / .32), transparent 70%); }
.t-orange { --k: var(--orange); --tint: radial-gradient(90% 80% at 100% 100%, rgb(255 159 10 / .28), transparent 65%); }
.t-teal   { --k: var(--teal);   --tint: radial-gradient(90% 80% at 0% 100%, rgb(100 210 255 / .24), transparent 65%); }
.t-violet { --k: var(--violet); --tint: radial-gradient(55% 140% at 100% 50%, rgb(191 90 242 / .3), transparent 70%), radial-gradient(40% 90% at 75% 100%, rgb(255 55 95 / .12), transparent 70%); }
.t-green  { --k: var(--green);  --tint: radial-gradient(90% 80% at 100% 0%, rgb(48 209 88 / .24), transparent 65%); }
.t-gray   { --k: #e5e5ea;       --tint: radial-gradient(90% 80% at 100% 0%, rgb(255 255 255 / .1), transparent 65%); }

/* Lichtkegel, der der Maus folgt (Rand + Fläche) */
.spot::before, .spot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s; }
.spot::before {
  z-index: 2; padding: 1px;
  background: radial-gradient(360px circle at var(--x, 50%) var(--y, 50%), rgb(255 255 255 / .55), transparent 45%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.spot::after { z-index: -1; background: radial-gradient(520px circle at var(--x, 50%) var(--y, 50%), rgb(255 255 255 / .06), transparent 45%); }
.spot:hover::before, .spot:hover::after { opacity: 1; }

/* Bento-Raster */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tile-xl { grid-column: span 2; min-height: 420px; }
.tile-wide { grid-column: span 3; min-height: 260px; flex-direction: row; align-items: center; gap: 40px; }
.tile-text { display: flex; flex-direction: column; gap: 12px; }
/* Blueprint-Raster, nach links unten ausgeblendet */
.tile-xl.t-blue {
  --art: radial-gradient(70% 90% at 82% 18%, transparent, var(--surface) 72%),
    linear-gradient(rgb(255 255 255 / .06) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgb(255 255 255 / .06) 1px, transparent 1px) 0 0 / 32px 32px;
}

/* Mini-Pipeline */
.mini-pipe { position: relative; margin-top: auto; display: grid; grid-template-columns: repeat(4, 1fr); padding-top: 34px; }
.mp-track { position: absolute; left: 12.5%; right: 12.5%; top: 45px; height: 2px; background: var(--line-2); border-radius: 2px; overflow: hidden; }
.mp-run { position: absolute; inset: 0; width: 100%; transform-origin: left; background: linear-gradient(90deg, var(--blue), var(--green)); animation: mprun 6s var(--ease) infinite; }
@keyframes mprun { 0% { transform: scaleX(0); } 60%, 85% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
.mp-stage { display: flex; flex-direction: column; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); }
.mp-stage i { position: relative; width: 24px; height: 24px; border-radius: 50%; background: var(--surface-2); border: 2px solid var(--line-2); animation: mpdot 6s var(--ease) infinite; }
.mp-stage i::after { content: ""; position: absolute; left: 7px; top: 4px; width: 5px; height: 9px; border: solid #000; border-width: 0 2px 2px 0; transform: rotate(45deg); opacity: 0; animation: mpcheck 6s var(--ease) infinite; }
.mp-stage:nth-child(2) i, .mp-stage:nth-child(2) i::after { animation-delay: 0s; }
.mp-stage:nth-child(3) i, .mp-stage:nth-child(3) i::after { animation-delay: 1.2s; }
.mp-stage:nth-child(4) i, .mp-stage:nth-child(4) i::after { animation-delay: 2.4s; }
.mp-stage:nth-child(5) i, .mp-stage:nth-child(5) i::after { animation-delay: 3.6s; }
@keyframes mpdot { 0%, 8% { background: var(--surface-2); border-color: var(--line-2); box-shadow: none; } 14%, 80% { background: var(--green); border-color: var(--green); box-shadow: 0 0 18px rgb(48 209 88 / .6); } 100% { background: var(--surface-2); border-color: var(--line-2); box-shadow: none; } }
@keyframes mpcheck { 0%, 10% { opacity: 0; } 16%, 80% { opacity: 1; } 100% { opacity: 0; } }

/* Terminal */
.tile-term {
  padding: 0; min-height: 420px; gap: 0; background-color: #101117;
  --tint: radial-gradient(90% 50% at 50% 0%, rgb(48 209 88 / .07), transparent 70%);
  --art: linear-gradient(180deg, rgb(255 255 255 / .03), transparent 30%);
}
.term-bar { display: flex; align-items: center; gap: 7px; padding: 14px 16px; border-bottom: 1px solid var(--line); background: rgb(255 255 255 / .025); }
.term-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; box-shadow: inset 0 0 0 .5px rgb(0 0 0 / .3); }
.term-bar i:nth-child(2) { background: #febc2e; } .term-bar i:nth-child(3) { background: #28c840; }
.term-bar span { margin-left: auto; margin-right: auto; padding-right: 40px; font-size: 12px; color: var(--muted); }
.term { margin: 0; padding: 20px 22px; font: 14px/1.85 var(--mono); color: #d8d9df; white-space: pre-wrap; word-break: break-word; flex: 1; }
.term-status {
  display: flex; align-items: center; gap: 14px; padding: 11px 16px; border-top: 1px solid var(--line);
  font: 11.5px/1 var(--mono); color: #8d8f9b; background: rgb(255 255 255 / .02); white-space: nowrap; overflow: hidden;
}
.term-status b { font-weight: 500; color: #0b0c10; background: var(--green); padding: 3px 7px; border-radius: 5px; }
.term-status span:last-child { margin-left: auto; }
.term .p { color: var(--green); } .term .d { color: var(--muted); } .term .ok { color: var(--green); } .term .b { color: var(--teal); }
.term .cursor { display: inline-block; width: 8px; height: 1.1em; vertical-align: -2px; background: #d1d1d6; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.big-glyph { position: relative; margin-top: auto; align-self: flex-end; font-size: 88px; line-height: 1; filter: drop-shadow(0 10px 30px rgb(255 159 10 / .35)); transform: rotate(-8deg); transition: transform .8s var(--ease-out); }
.big-glyph::before { /* Lichthof mit Ringen */
  content: ""; position: absolute; z-index: -1; left: 50%; top: 50%; width: 210px; height: 210px; translate: -50% -50%; border-radius: 50%;
  background:
    radial-gradient(closest-side, rgb(255 159 10 / .28), rgb(255 159 10 / .08) 55%, transparent),
    radial-gradient(closest-side, transparent 63%, rgb(255 190 90 / .16) 63.5% 64.5%, transparent 65% 84%, rgb(255 190 90 / .09) 84.5% 85.5%, transparent 86%);
}
.tile:hover .big-glyph { transform: rotate(4deg) scale(1.08); }

.t-teal { /* feines Punktraster hinter dem Diagramm */
  --art: radial-gradient(70% 70% at 60% 75%, transparent, var(--surface) 75%),
    radial-gradient(rgb(255 255 255 / .1) 1px, transparent 1.5px) 0 0 / 18px 18px;
}
.arch { margin-top: auto; width: 100%; height: auto; overflow: visible; }
.arch path { fill: none; stroke: var(--teal); stroke-width: 1.5; stroke-dasharray: 4 6; opacity: .7; animation: flow 1.6s linear infinite; }
.arch .pk { stroke: #fff; stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 3 400; opacity: 1; filter: drop-shadow(0 0 4px var(--teal)); animation: packet 3.2s linear infinite; }
.arch .pk + .pk { animation-delay: -1.6s; }
.arch circle { fill: var(--surface-2); stroke: var(--teal); stroke-width: 1.5; }
.arch circle.core { fill: var(--teal); filter: drop-shadow(0 0 10px var(--teal)); }
.arch circle.halo { fill: none; stroke: var(--teal); stroke-width: 1; opacity: .35; }
@keyframes flow { to { stroke-dashoffset: -20; } }
@keyframes packet { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -403; } }
.static-shot .arch .pk { stroke-dashoffset: -120; }

.orb-wrap { position: relative; flex: none; order: 2; margin-left: auto; margin-right: 40px; display: grid; place-items: center; }
.orb-wrap::before, .orb-wrap::after { content: ""; position: absolute; left: 50%; top: 50%; translate: -50% -50%; border-radius: 50%; border: 1px solid rgb(255 255 255 / .09); width: 240px; height: 240px; }
.orb-wrap::after { width: 330px; height: 330px; border-color: rgb(255 255 255 / .05); }
.orb {
  flex: none; width: 170px; height: 170px; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--blue), var(--violet), var(--pink), var(--orange), var(--blue));
  filter: blur(2px) saturate(1.2);
  box-shadow: 0 0 80px rgb(191 90 242 / .45), inset 0 0 40px rgb(0 0 0 / .5);
  animation: spin 10s linear infinite;
  mask: radial-gradient(circle at 35% 30%, #000 40%, rgb(0 0 0 / .75) 70%);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Laufband */
.marquee {
  display: flex; overflow: hidden; margin-top: 28px; gap: 10px;
  -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; flex: none; animation: marquee 32s linear infinite; }
.marquee:hover ul { animation-play-state: paused; }
.marquee li {
  font-size: 15px; font-weight: 500; padding: 10px 20px; border-radius: 980px; white-space: nowrap; color: var(--text-2);
  background: linear-gradient(180deg, rgb(255 255 255 / .07), rgb(255 255 255 / .03)); border: 1px solid var(--line); box-shadow: inset 0 1px 0 rgb(255 255 255 / .06);
}
@keyframes marquee { to { transform: translateX(calc(-100% - 10px)); } }

/* ================= PIPELINE (Werdegang) ================= */
.pipeline {
  --node: 26px; --rail-y: -50px; --stage-gap: 20px;
  position: relative; margin-top: var(--gap);
  background: linear-gradient(180deg, transparent, var(--bg-2) 260px, var(--bg-2) calc(100% - 260px), transparent);
}
.pipe-sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding-top: 56px; /* Platz für die fixe Navigation */ }
.pipe-sticky::before { /* Punktraster */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgb(255 255 255 / .1) 1px, transparent 1.6px); background-size: 28px 28px;
  -webkit-mask: radial-gradient(80% 60% at 50% 62%, #000 10%, transparent 75%);
  mask: radial-gradient(80% 60% at 50% 62%, #000 10%, transparent 75%);
}
.pipe-sticky::after { /* Lichtfeld unter der Schiene */
  content: ""; position: absolute; z-index: -1; pointer-events: none; left: -10%; right: -10%; top: 35%; height: 70%;
  background: radial-gradient(50% 50% at 30% 50%, rgb(48 209 88 / .07), transparent 70%), radial-gradient(45% 50% at 75% 50%, rgb(100 210 255 / .07), transparent 70%);
}
.pipe-head, .pipe-progress { width: min(1120px, 100%); margin-inline: auto; padding-inline: 22px; }
.pipe-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.pipe-status { display: flex; align-items: center; gap: 16px; font-size: 14px; color: var(--muted); padding-bottom: 12px; }
.pill-run { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 980px; color: var(--orange); background: rgb(255 159 10 / .1); border: 1px solid rgb(255 159 10 / .25); box-shadow: 0 0 24px -6px rgb(255 159 10 / .35); }
.spinner { width: 12px; height: 12px; border-radius: 50%; border: 2px solid rgb(255 159 10 / .3); border-top-color: var(--orange); animation: spin .9s linear infinite; }
.pipe-count b { color: var(--text); font-variant-numeric: tabular-nums; }
.pipe-progress { margin-top: 28px; margin-bottom: 40px; display: none; /* Fortschritt zeigt jetzt die Knoten-Schiene */ }
.pipe-progress span { display: block; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--green), var(--teal), var(--blue)); transform-origin: left; transform: scaleX(var(--p, 0)); box-shadow: 0 0 16px rgb(100 210 255 / .5); }
.pipe-progress { position: relative; }
.pipe-progress::before { content: ""; position: absolute; inset: 0 22px; height: 3px; border-radius: 3px; background: var(--line); }

.pipe-track {
  list-style: none; margin: 0; display: flex; gap: var(--stage-gap); width: max-content;
  padding: 64px max(22px, calc((100vw - 1120px) / 2 + 22px)) 8px;
  will-change: transform;
}
.stage {
  width: min(380px, 78vw); min-height: 290px; flex: none; padding: 30px 30px 24px; display: flex; flex-direction: column; gap: 8px;
  overflow: visible;
  background: radial-gradient(90% 60% at 0% 0%, rgb(255 255 255 / .05), transparent 60%), linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: var(--shadow);
  transition: border-color .5s, opacity .5s, transform .6s var(--ease-out), box-shadow .6s;
  opacity: .5;
}
.stage.passed { opacity: 1; transform: none; border-color: rgb(48 209 88 / .28); }
.stage.current.passed { border-color: rgb(255 159 10 / .45); box-shadow: inset 0 1px 0 var(--hi), 0 30px 70px -30px rgb(255 159 10 / .35); }
/* Schiene: jedes Segment läuft vom eigenen Knoten zum nächsten */
.stage::before {
  content: ""; position: absolute; z-index: 0; top: calc(var(--rail-y) + var(--node) / 2 - 1px); left: calc(30px + var(--node) / 2);
  width: calc(100% + var(--stage-gap)); height: 2px; border-radius: 2px; background: var(--line-2);
  transition: background .5s, box-shadow .5s;
}
.stage.passed::before { background: linear-gradient(90deg, var(--green), var(--teal)); box-shadow: 0 0 12px rgb(48 209 88 / .45); }
.stage.current::before {
  width: 55%; box-shadow: none;
  background: repeating-linear-gradient(90deg, rgb(255 159 10 / .8) 0 6px, transparent 6px 12px);
  -webkit-mask: linear-gradient(90deg, #000 30%, transparent); mask: linear-gradient(90deg, #000 30%, transparent);
}
.stage-top { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.stage .check { position: absolute; z-index: 1; top: var(--rail-y); left: 30px; width: var(--node); height: var(--node); background: var(--bg-2); }
.check { position: relative; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line-2); transition: background .4s, border-color .4s, box-shadow .4s; }
.check::after { content: ""; position: absolute; left: 8px; top: 4px; width: 6px; height: 11px; border: solid #000; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) scale(0); transition: transform .4s var(--ease-out) .1s; }
.stage.passed .check { background: var(--green); border-color: var(--green); box-shadow: 0 0 20px rgb(48 209 88 / .5); }
.stage.passed .check::after { transform: rotate(45deg) scale(1); }
.stage.current .check { border-color: rgb(255 159 10 / .35); border-top-color: var(--orange); background: none; box-shadow: none; animation: spin 1s linear infinite; }
.stage.current .check::after { display: none; }
.when {
  font-size: clamp(26px, 2.4vw, 32px); font-weight: 700; line-height: 1.05; letter-spacing: -.035em; font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fff 30%, #9fa2b2); -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: .05em;
}
.stage.current .when { background-image: linear-gradient(135deg, #ffd08a, var(--orange)); }
.stage h3 { font-size: 24px; line-height: 1.15; letter-spacing: -.025em; }
.stage .log { border-top: 1px solid var(--line); margin-top: auto; padding-top: 16px; }
.stage.current .check { background: var(--bg-2); }
.stage .org { font-weight: 500; }
.org { color: var(--blue); font-size: 15px; }
.stage p:not(.org) { color: var(--muted); font-size: 16px; }
.log { margin-top: auto; padding-top: 18px; font: 12.5px var(--mono); color: var(--green); opacity: .8; }
.stage.current .log { color: var(--orange); }
.blink { animation: blink 1.2s steps(1) infinite; }

/* ================= PROJEKTE ================= */
/* Detox Launcher: echter App-Screenshot in einem Pixel-artigen Rahmen, Nachthimmel mit Abendrot wie im App-Hintergrund */
.feature {
  --dusk: #e3a576; --dusk-2: #f0b98c;
  display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); align-items: center; gap: 16px;
  min-height: 620px; padding: 0 0 0 60px; color: var(--text);
  background-color: #10121a;
  background-image:
    radial-gradient(70% 46% at 68% 104%, rgb(111 93 112 / .38), transparent 72%),
    radial-gradient(75% 85% at 80% 0%, rgb(30 38 74 / .8), transparent 72%);
}
.feature-text { display: flex; flex-direction: column; gap: 16px; padding: 64px 0; }
.feature h3 { font-size: clamp(48px, 7vw, 88px); line-height: .95; letter-spacing: -.05em; font-weight: 800; }
.feature p { color: var(--muted); font-size: 19px; max-width: 440px; }
.feature .more { margin-top: 6px; padding: 0; font-size: 17px; }
.dx-app { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; }
.dx-icon { width: 56px; height: 56px; border-radius: 22%; box-shadow: 0 0 0 1px rgb(255 255 255 / .14), 0 12px 30px -10px rgb(227 165 118 / .45); }
.dx-facts { font-size: 14px; color: var(--muted); letter-spacing: .01em; }
.dx-facts i { font-style: normal; color: var(--dim); margin: 0 5px; }

/* Bühne (Maße für 600 px Breite, darunter skaliert über Prozent) */
.dx-stage { position: relative; align-self: stretch; min-height: 620px; }
.dx-stage::before {
  content: ""; position: absolute; left: 42%; bottom: -200px; width: 980px; height: 420px; translate: -50% 0; pointer-events: none;
  background: radial-gradient(closest-side, rgb(240 185 140 / .42), rgb(201 144 115 / .2) 45%, rgb(111 93 112 / .1) 70%, transparent);
}
.dx-stars { position: absolute; left: 0; top: 0; width: 100%; height: 70%; opacity: .5;
  -webkit-mask: linear-gradient(#000 30%, transparent); mask: linear-gradient(#000 30%, transparent); }
.dx-layer { position: absolute; transition: translate 1.3s var(--ease-out), opacity 1s var(--ease-out); }
.dx-front  { left: 17.3%; top: 40px; z-index: 1; transition-delay: .1s; }
.dx-card-r { right: 32px; top: 186px; z-index: 2; transition-delay: .45s; }
.dx-card-l { left: -10px; top: 392px; z-index: 3; transition-delay: .6s; }

/* Gerät: Pixel-artig, Alurahmen, gleichmäßig schmale Ränder, Kamera-Loch, Tasten rechts */
.dx-dev {
  --w: 300px;
  position: relative; width: var(--w); font-size: calc(var(--w) / 100);
  padding: 1.05em; border-radius: 15.5em;
  background: linear-gradient(145deg, #62656e 0%, #2a2c32 12%, #151619 36%, #0f1013 62%, #2b2d33 88%, #6a6d76 100%);
  box-shadow:
    inset 0 0 0 .22em rgb(255 255 255 / .07),
    0 0 0 1px rgb(0 0 0 / .65),
    0 2.5em 5em -1.5em rgb(0 0 0 / .7),
    0 7em 14em -3em rgb(0 0 0 / .65),
    0 0 20em -4em rgb(120 130 200 / .22);
}
.dx-dev::before, .dx-dev::after {
  content: ""; position: absolute; z-index: -1; right: -.7em; width: 1.4em; border-radius: .6em;
  background: linear-gradient(90deg, #17181b, #4a4d55 55%, #23252a);
}
.dx-dev::before { top: 21%; height: 7.5%; }
.dx-dev::after { top: 32%; height: 14%; }
.dx-screen {
  position: relative; box-sizing: content-box; aspect-ratio: 420 / 935;
  border: 2.5em solid #040405; border-radius: 14.45em; overflow: hidden; background: #0b0f1e;
}
.dx-screen img { display: block; width: 100%; height: 100%; }
.dx-screen::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(116deg, rgb(255 255 255 / .1) 0%, rgb(255 255 255 / .03) 26%, transparent 44%);
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / .6), inset 0 0 1.4em rgb(0 0 0 / .45);
}
.dx-lens {
  position: absolute; left: 49.76%; top: 1.44%; width: 3.6%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%;
  background:
    radial-gradient(circle at 36% 34%, rgb(160 180 240 / .55) 0 7%, transparent 19%),
    radial-gradient(circle at 62% 66%, rgb(90 110 180 / .3) 0 9%, transparent 22%),
    radial-gradient(circle, #08090c 0 54%, #1b1d24 63%, #030304 75%);
}
.dx-status {
  position: absolute; left: 0; right: 0; top: 0; height: 2.9%; padding: 0 8.5% 0 9.5%;
  display: flex; align-items: center; justify-content: space-between;
  color: rgb(255 255 255 / .92); font-size: 3.3em; font-weight: 600; line-height: 1; letter-spacing: .01em;
}
.dx-sys { display: flex; align-items: center; gap: .32em; }
.dx-sys svg { width: 1em; height: 1em; fill: currentColor; }
.dx-sys .dx-bat { width: 1.7em; height: .92em; color: #fff; }

/* Schwebende Glaskarten (Inhalte aus den echten Screenshots; Wochenbalken sind Beispielwerte) */
.dx-card {
  width: 196px; padding: 15px 16px 14px; border-radius: 22px; color: var(--text);
  background: rgb(24 27 40 / .6);
  -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5);
  border: 1px solid rgb(255 255 255 / .14);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .08), 0 26px 50px -18px rgb(0 0 0 / .8);
}
.dx-card-top { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .01em; }
.dx-card-top span:first-child { display: inline-flex; align-items: center; gap: 7px; }
.dx-card-top span:first-child::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--dusk); box-shadow: 0 0 10px var(--dusk); }

.dx-st-big { margin-top: 8px; display: flex; align-items: baseline; gap: 7px; font-size: 46px; font-weight: 300; line-height: 1; letter-spacing: -.045em; }
.dx-st-big small { font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.dx-bars { margin-top: 14px; height: 52px; display: grid; grid-template-columns: repeat(7, 1fr); gap: 7px; align-items: end; }
.dx-bars i { height: calc(var(--h, 0) * 100%); border-radius: 3px; background: rgb(255 255 255 / .2); transform-origin: 50% 100%; transition: transform .9s var(--ease-out); }
.dx-bars i.now { background: linear-gradient(var(--dusk-2), var(--dusk)); box-shadow: 0 0 16px rgb(227 165 118 / .5); }
.dx-bars i.off { height: 3px; background: rgb(255 255 255 / .1); }
.dx-days { margin-top: 7px; display: grid; grid-template-columns: repeat(7, 1fr); gap: 7px; text-align: center; font-size: 10.5px; font-weight: 600; color: rgb(255 255 255 / .38); }
.dx-days .now { color: var(--dusk-2); }

.dx-sr-q { margin-top: 12px; display: flex; align-items: center; gap: 8px; padding-bottom: 9px; border-bottom: 1px solid rgb(255 255 255 / .14); font-size: 19px; line-height: 1; }
.dx-sr-q svg { width: 18px; height: 18px; fill: rgb(255 255 255 / .85); flex: none; }
.dx-sr-q b { width: 1.5px; height: 20px; margin-left: -6px; background: var(--dusk-2); }
.dx-live .dx-sr-q b { animation: blink 1.1s steps(1) infinite; }
.dx-sr-hit { width: fit-content; margin: 11px 0 0 26px; padding: 3px 9px; border-radius: 7px; background: rgb(255 255 255 / .13); font-size: 19px; font-weight: 300; line-height: 1.3; }
.dx-sr-web { margin: 10px 0 0 26px; display: flex; align-items: flex-start; gap: 6px; font-size: 12px; line-height: 1.35; color: var(--muted); }
.dx-sr-web svg { width: 13px; height: 13px; margin-top: 1px; fill: currentColor; flex: none; }

/* Bewegung: sanftes Schweben (nur sichtbar), Einflug beim Einblenden, Parallaxe per JS */
@keyframes dx-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(var(--amp, -8px)); } }
.dx-float { animation: dx-float 8s ease-in-out infinite paused; }
.dx-live .dx-float { animation-play-state: running; }
.dx-card-r .dx-float { animation-duration: 9s; animation-delay: -5s; --amp: -10px; }
.dx-card-l .dx-float { animation-duration: 7s; animation-delay: -2s; --amp: -12px; }
.js .feature:not(.in) .dx-layer { opacity: 0; translate: 0 90px; }
.js .feature:not(.in) .dx-card-l, .js .feature:not(.in) .dx-card-r { translate: 0 36px; }
.js .feature:not(.in) .dx-bars i { transform: scaleY(0); }
.dx-bars i:nth-child(1) { transition-delay: .9s; } .dx-bars i:nth-child(2) { transition-delay: .97s; }
.dx-bars i:nth-child(3) { transition-delay: 1.04s; } .dx-bars i:nth-child(4) { transition-delay: 1.11s; }
.dx-bars i:nth-child(5) { transition-delay: 1.18s; }

@media (max-width: 1100px) and (min-width: 901px) {
  .feature { grid-template-columns: minmax(0, 350px) minmax(0, 1fr); padding-left: 48px; }
  .dx-front { left: 20%; } .dx-front .dx-dev { --w: 280px; }
  .dx-card-r { right: 30px; }
  .dx-card-l { left: 10px; top: 410px; } .dx-card-l .dx-card { width: 184px; }
}
@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; gap: 0; padding: 0; min-height: 0; }
  .feature-text { padding: 44px 32px 0; }
  .dx-stage { width: 100%; max-width: 600px; justify-self: center; min-height: 600px; }
}
@media (max-width: 640px) {
  .feature-text { padding: 32px 24px 0; }
  .dx-stage { min-height: 440px; }
  .dx-front { left: calc(50% - 90px); top: 30px; } .dx-front .dx-dev { --w: 200px; }
  .dx-card-r { right: 10px; top: 124px; }
  .dx-card-l { left: 10px; top: 296px; }
  .dx-card { width: 130px; padding: 10px 11px 10px; border-radius: 16px; }
  .dx-card-top { font-size: 10px; } .dx-card-top span + span { display: none; } .dx-card-top span:first-child { gap: 5px; } .dx-card-top span:first-child::before { width: 5px; height: 5px; }
  .dx-st-big { margin-top: 5px; font-size: 30px; gap: 5px; } .dx-st-big small { font-size: 10px; }
  .dx-bars { margin-top: 9px; height: 32px; gap: 4px; } .dx-days { gap: 4px; font-size: 8px; margin-top: 4px; }
  .dx-sr-q { margin-top: 8px; gap: 6px; padding-bottom: 6px; font-size: 14px; } .dx-sr-q svg { width: 13px; height: 13px; } .dx-sr-q b { height: 15px; margin-left: -4px; }
  .dx-sr-hit { margin: 8px 0 0 19px; padding: 2px 7px; font-size: 14px; border-radius: 6px; }
  .dx-sr-web { display: none; }
}
@media (max-width: 380px) {
  .dx-card-l { left: 8px; } .dx-card-l .dx-card { width: 116px; }
}
@media (prefers-reduced-motion: reduce) {
  .dx-float, .dx-live .dx-sr-q b { animation: none; }
  .dx-layer, .dx-bars i { transition: none; }
}

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }

/* ================= KONTAKT ================= */
.contact { position: relative; isolation: isolate; max-width: 1120px; margin: 0 auto; padding: 220px 22px 200px; text-align: center; }
.contact::before { /* Lichtfeld */
  content: ""; position: absolute; z-index: -1; pointer-events: none; left: 50%; top: 60px; bottom: 0; width: min(1300px, 160vw); translate: -50% 0;
  background:
    radial-gradient(32% 34% at 36% 42%, rgb(41 151 255 / .2), transparent 70%),
    radial-gradient(30% 32% at 64% 46%, rgb(191 90 242 / .18), transparent 70%),
    radial-gradient(26% 24% at 50% 66%, rgb(255 55 95 / .1), transparent 70%);
}
.contact::after { /* Raster-Boden mit Fluchtpunkt */
  content: ""; position: absolute; z-index: -1; pointer-events: none; left: 50%; bottom: 0; width: 240%; height: 460px; translate: -50% 0;
  background-image: linear-gradient(rgb(255 255 255 / .11) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / .11) 1px, transparent 1px);
  background-size: 72px 72px; background-position: center bottom;
  transform: perspective(420px) rotateX(64deg); transform-origin: 50% 100%;
  -webkit-mask: radial-gradient(40% 80% at 50% 78%, #000 10%, transparent 78%);
  mask: radial-gradient(40% 80% at 50% 78%, #000 10%, transparent 78%);
}
.mega { font-size: clamp(54px, 11vw, 150px); line-height: .95; letter-spacing: -.055em; font-weight: 800; }
/* optionales Porträt (assets/portrait.jpg) – nur sichtbar, wenn die Datei lädt */
.portrait {
  position: relative; width: 116px; height: 116px; margin: 0 auto 40px; border-radius: 50%; padding: 3px;
  background: conic-gradient(from 200deg, var(--blue), var(--violet), var(--pink), var(--orange), var(--blue));
  box-shadow: 0 24px 70px -12px rgb(191 90 242 / .5), 0 0 0 8px rgb(255 255 255 / .03);
}
.portrait[hidden] { display: none !important; }
.portrait img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid var(--bg); background: var(--surface-2); }
.portrait::after { /* „verfügbar“-Punkt */
  content: ""; position: absolute; right: 7px; bottom: 7px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--green); border: 3px solid var(--bg); box-shadow: 0 0 14px rgb(48 209 88 / .7);
}
.grad-text {
  background: linear-gradient(90deg, var(--blue), var(--violet), var(--pink), var(--orange), var(--blue));
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 8s linear infinite;
}
@keyframes shine { to { background-position: 300% 0; } }
.contact-sub { color: var(--muted); font-size: clamp(18px, 2.2vw, 22px); margin: 28px auto 0; max-width: 560px; text-wrap: balance; }
.contact .hero-cta { margin-top: 48px; }

/* Projekte: kleine Illustrationen in den Duo-Kacheln */
.rack { position: relative; margin-top: auto; padding-top: 22px; align-self: flex-end; display: grid; gap: 7px; width: 200px; }
.rack::after { content: ""; position: absolute; z-index: -1; left: 10%; right: 10%; bottom: -18px; height: 40px; border-radius: 50%; background: radial-gradient(closest-side, rgb(48 209 88 / .22), transparent); }
.rack i {
  position: relative; height: 28px; border-radius: 8px; border: 1px solid var(--line-2);
  background: linear-gradient(180deg, #2b2d37, #1b1c23); box-shadow: inset 0 1px 0 rgb(255 255 255 / .08), 0 8px 18px -10px rgb(0 0 0 / .8);
}
.rack i::before { /* Status-LEDs */
  content: ""; position: absolute; left: 11px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 8px var(--green), 11px 0 0 -1px rgb(255 255 255 / .25);
  animation: led 2.8s steps(1) infinite;
}
.rack i:nth-child(2)::before { animation-delay: -.9s; }
.rack i:nth-child(3)::before { animation-delay: -1.7s; background: var(--teal); box-shadow: 0 0 8px var(--teal), 11px 0 0 -1px rgb(255 255 255 / .25); }
.rack i::after { /* Lüftungsschlitze */
  content: ""; position: absolute; right: 10px; top: 8px; bottom: 8px; width: 74px; border-radius: 2px;
  background: repeating-linear-gradient(90deg, rgb(255 255 255 / .16) 0 2px, transparent 2px 6px);
}
@keyframes led { 0%, 100% { opacity: 1; } 47% { opacity: .35; } 53% { opacity: 1; } }
.git-graph { position: absolute; right: 30px; bottom: 30px; width: 190px; height: auto; overflow: visible; pointer-events: none; }
.git-graph path { fill: none; stroke-width: 2; stroke-linecap: round; }
.git-graph .main { stroke: rgb(255 255 255 / .28); }
.git-graph .br { stroke: url(#gg); }
.git-graph circle { fill: var(--surface); stroke: rgb(255 255 255 / .55); stroke-width: 2; }
.git-graph circle.c { stroke: var(--violet); }
.git-graph circle.head { fill: #fff; stroke: none; filter: drop-shadow(0 0 6px rgb(255 255 255 / .7)); }
a.tile:hover .git-graph .head { fill: var(--blue); }
@media (max-width: 900px) {
  .git-graph { position: static; order: 1; align-self: flex-end; width: 170px; margin-top: 20px; }
  .duo .t-gray .more { order: 2; }
}

/* ================= FOOTER ================= */
.footer {
  position: relative;
  max-width: 1120px; margin: 0 auto; padding: 26px 22px 48px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  color: var(--muted); font-size: 13px;
}
.footer::before { content: ""; position: absolute; top: 0; left: 22px; right: 22px; height: 1px; background: linear-gradient(90deg, transparent, var(--line-2) 20%, var(--line-2) 80%, transparent); }
.footer > span:first-child::before { content: ""; display: inline-block; vertical-align: 1px; margin-right: 10px; width: 8px; height: 8px; border-radius: 50%; background: conic-gradient(var(--blue), var(--violet), var(--pink), var(--blue)); box-shadow: 0 0 10px rgb(191 90 242 / .5); }
.footer a { color: var(--muted); transition: color .2s; }
.footer a:hover { color: var(--text); }
.footer-hint { display: inline-flex; align-items: center; gap: 4px; }

/* ================= BEFEHLSPALETTE ================= */
.cmdk { padding: 0; border: 0; background: none; max-width: 640px; width: calc(100% - 32px); margin: 14vh auto auto; color: var(--text); overflow: visible; }
.cmdk::backdrop { background: rgb(0 0 0 / .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.cmdk[open] .cmdk-box { animation: pop .35s var(--ease-out); }
@keyframes pop { from { opacity: 0; transform: scale(.96) translateY(-8px); } }
.cmdk-box {
  border-radius: 22px; overflow: hidden; border: 1px solid var(--line-2);
  background: linear-gradient(180deg, rgb(34 35 44 / .94), rgb(22 23 30 / .94)); backdrop-filter: blur(30px) saturate(180%); -webkit-backdrop-filter: blur(30px) saturate(180%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .1), 0 0 0 1px rgb(0 0 0 / .4), 0 40px 100px rgb(0 0 0 / .7), 0 0 120px -40px rgb(41 151 255 / .35);
}
.cmdk-input { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.cmdk-input > span { color: var(--blue); font-size: 22px; }
.cmdk-input input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--text); font: inherit; font-size: 18px; }
.cmdk-input input::placeholder { color: var(--muted); }
.cmdk-list { list-style: none; margin: 0; padding: 8px; max-height: 50vh; overflow-y: auto; }
.cmdk-list li { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 12px; cursor: pointer; color: #d1d1d6; }
.cmdk-list li .ic { width: 30px; height: 30px; flex: none; border-radius: 8px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); font-size: 15px; }
.cmdk-list li .hint { margin-left: auto; font: 12px var(--mono); color: var(--muted); }
.cmdk-list li.sel { background: linear-gradient(90deg, rgb(41 151 255 / .24), rgb(41 151 255 / .1)); color: #fff; box-shadow: inset 0 0 0 1px rgb(41 151 255 / .3); }
.cmdk-list li.sel .ic { border-color: rgb(41 151 255 / .5); }
.cmdk-list .empty { color: var(--muted); cursor: default; }
.cmdk-foot { display: flex; gap: 18px; padding: 10px 18px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.cmdk-foot span { display: inline-flex; align-items: center; gap: 4px; }

.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 120; translate: -50% 20px; opacity: 0; pointer-events: none;
  padding: 12px 20px; border-radius: 980px; font-size: 15px;
  background: rgb(44 44 46 / .9); border: 1px solid var(--line-2); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  transition: opacity .3s, translate .4s var(--ease-out);
}
.toast.show { opacity: 1; translate: -50% 0; }

/* ================= IMPRESSUM ================= */
.legal { position: relative; max-width: 720px; margin: 0 auto; padding: 140px 22px 80px; }
.legal::before { content: ""; position: absolute; z-index: -1; pointer-events: none; inset: 70px -30vw auto; height: 600px; background: radial-gradient(40% 50% at 30% 20%, rgb(41 151 255 / .12), transparent 70%), radial-gradient(35% 45% at 75% 30%, rgb(191 90 242 / .09), transparent 70%); }
.legal h1 { font-size: clamp(40px, 7vw, 64px); letter-spacing: -.045em; font-weight: 800; margin-bottom: 24px; background: linear-gradient(180deg, #fff 40%, #c4c6d2); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .06em; }
.legal h2 { font-size: 21px; margin: 36px 0 8px; }
.legal p { color: var(--muted); margin-bottom: 12px; }
.legal .addr { color: var(--text); }

/* ================= EINBLENDEN ================= */
.js .reveal { opacity: 0; transform: translateY(40px) scale(.985); transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out); }
.js .reveal.in { opacity: 1; transform: none; }

/* ================= RESPONSIV ================= */
@media (max-width: 900px) {
  .nav nav { display: none; }
  .nav-inner { justify-content: space-between; gap: 12px; }
  .nav-inner .logo { margin-right: auto; }
  /* kompaktes Menü */
  .js .menu-btn {
    display: inline-grid; place-items: center; width: 40px; height: 40px; margin-right: -8px; padding: 0;
    border: 0; border-radius: 12px; background: none; color: var(--text); cursor: pointer;
  }
  .menu-btn span { grid-area: 1 / 1; width: 18px; height: 1.6px; border-radius: 2px; background: currentColor; transition: transform .4s var(--ease-out); }
  .menu-btn span:first-child { transform: translateY(-3.5px); }
  .menu-btn span:last-child { transform: translateY(3.5px); }
  .nav.open .menu-btn span:first-child { transform: rotate(45deg); }
  .nav.open .menu-btn span:last-child { transform: rotate(-45deg); }
  .nav.open { background: var(--bg); border-bottom-color: var(--line); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .js .nav nav {
    display: flex; flex-direction: column; gap: 0; position: absolute; top: 56px; left: 0; right: 0; margin: 0;
    padding: 8px 22px 30px; border-radius: 0; border: 0; border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, var(--bg), #0e0f15); box-shadow: 0 40px 80px -20px rgb(0 0 0 / .9);
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity .3s, transform .45s var(--ease-out), visibility 0s .45s;
  }
  .js .nav.open nav { opacity: 1; visibility: visible; transform: none; transition: opacity .3s, transform .45s var(--ease-out); }
  .js .nav nav a {
    font-size: 26px; font-weight: 600; letter-spacing: -.025em; color: var(--text-2); padding: 14px 4px;
    border-radius: 0; border-bottom: 1px solid var(--line); background: none; box-shadow: none;
  }
  .js .nav nav a:last-child { border-bottom: 0; }
  .js .nav nav a.active { color: #fff; }
  .js .nav nav a.active::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 12px; vertical-align: middle; border-radius: 50%; background: var(--blue); box-shadow: 0 0 10px var(--blue); }
  .bento { grid-template-columns: 1fr 1fr; }
  .tile-xl, .tile-wide { grid-column: span 2; }
  .tile-term { grid-column: span 2; min-height: 340px; }
}
@media (max-width: 640px) {
  :root { --radius: 26px; }
  body { font-size: 16px; }
  .stats, .duo { grid-template-columns: 1fr; gap: 12px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 26px 22px 24px; gap: 8px; }
  .stat:last-child { grid-column: span 2; }
  .lbl { font-size: 15px; line-height: 1.35; }
  .bento { grid-template-columns: 1fr; gap: 12px; }
  .tile-xl, .tile-wide, .tile-term { grid-column: auto; }
  .tile { min-height: 0; padding: 28px 24px; }
  .tile-xl { min-height: 380px; }
  .tile-wide { flex-direction: column; align-items: flex-start; gap: 28px; }
  .orb-wrap { order: 0; margin: 18px 0 8px 18px; }
  .orb-wrap::before { width: 170px; height: 170px; }
  .orb-wrap::after { width: 240px; height: 240px; }
  .orb { width: 110px; height: 110px; }
  .term { font-size: 12.5px; padding: 18px; }
  .section { padding-top: 112px; }
  .section-head { margin-bottom: 36px; }
  .statement { padding: 112px 22px 80px; }
  .contact { padding: 150px 22px 140px; }
  .portrait { width: 100px; height: 100px; margin-bottom: 32px; }
  .footer-hint { display: none; }
  .mp-stage { font-size: 11px; }
}
/* Pipeline ohne Anpinnen (schmale Bildschirme): Karten untereinander */
.pipeline.static .pipe-sticky { position: static; height: auto; overflow: visible; display: block; padding-top: 0; }
.pipeline.static .pipe-track { flex-direction: column; width: auto; padding: 0 22px; transform: none !important; max-width: 1120px; margin: 0 auto; }
.pipeline.static .stage { width: auto; }
.pipeline.static .pipe-progress { display: none; }
.pipeline.static { padding-block: 40px; }
.pipeline.static .pipe-sticky::before { -webkit-mask: linear-gradient(transparent, #000 20%, #000 80%, transparent); mask: linear-gradient(transparent, #000 20%, #000 80%, transparent); opacity: .6; }
/* breit + reduzierte Bewegung: Raster mit Schiene je Reihe */
@media (min-width: 761px) {
  .pipeline.static .pipe-track { display: grid; grid-template-columns: repeat(2, 1fr); gap: 84px var(--stage-gap); padding-top: 52px; }
  .pipeline.static .stage:nth-child(2n)::before { display: none; }
}
@media (min-width: 1024px) {
  .pipeline.static .pipe-track { grid-template-columns: repeat(3, 1fr); }
  .pipeline.static .stage:nth-child(2n)::before { display: block; }
  .pipeline.static .stage:nth-child(3n)::before { display: none; }
}
/* niedrige Fenster (z. B. Laptop mit 150 % Skalierung): angepinnte Ansicht verdichten */
@media (max-height: 760px) {
  .pipeline { --rail-y: -44px; }
  .pipe-head { margin-bottom: 18px; }
  .pipe-head .headline { font-size: clamp(36px, 5vw, 60px); }
  .pipe-head .eyebrow { margin-bottom: 8px; }
  .pipe-track { padding-top: 56px; }
  .stage { min-height: 0; }
}
/* schmal: vertikale Zeitleiste links */
@media (max-width: 760px) {
  .pipeline.static .pipe-track { padding: 0 22px 0 60px; gap: 16px; }
  .pipeline.static .stage { min-height: 0; padding: 24px 22px 20px; }
  .pipeline.static .stage .check { top: 24px; left: -42px; }
  .pipeline.static .stage::before { top: 50px; left: -30px; width: 2px; height: calc(100% - 10px); }
  .pipeline.static .stage.passed::before { background: linear-gradient(180deg, var(--green), var(--teal)); }
  .pipeline.static .stage.current::before { width: 2px; height: 70px; background: repeating-linear-gradient(180deg, rgb(255 159 10 / .8) 0 6px, transparent 6px 12px); -webkit-mask: linear-gradient(#000 30%, transparent); mask: linear-gradient(#000 30%, transparent); }
  .when { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .grain { display: none; }
  .js .reveal, .js .fade-in, .js .hero-title .mask > span { opacity: 1; transform: none; filter: none; }
  .stage { opacity: 1; transform: none; }
}
.nav-cta-link { margin-left: auto; font-size: 13px; color: rgb(245 245 247 / .8); }
.nav-cta-link:hover { color: #fff; }

/* Vorschau-Modus ?static (Screenshots) */
.static-shot *, .static-shot *::before, .static-shot *::after { transition: none !important; animation: none !important; }
.static-shot .hero { min-height: 900px; }
.static-shot .js .reveal, .static-shot .fade-in, .static-shot .hero-title .mask > span { opacity: 1 !important; transform: none !important; filter: none !important; }
/* Feinschliff */
.bento .tile-term { grid-row: span 2; }
.pipeline.static .pipe-head { margin-bottom: 40px; }
@media (max-width: 900px) { .bento .tile-term { grid-row: auto; } }
@media (max-width: 640px) {
  .hero-tag { font-size: 12px; white-space: nowrap; padding: 7px 14px; }
  .hero-title { font-size: clamp(64px, 22vw, 120px); }
  .kbd-btn { display: none; }
  .hero-cta .btn { min-width: 220px; justify-content: center; }
}
@media (max-width: 380px) { .hero-tag .opt { display: none; } }
.hero-tag .opt { margin-left: -10px; }

/* Vier Kennzahlen */
.stat:nth-child(4) { --c: 48 209 88; }
.stats .num { font-size: clamp(44px, 5.2vw, 72px); }
@media (max-width: 900px) { .stats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) {
  .stat:last-child { grid-column: auto; }
  .stats .num { font-size: clamp(36px, 10.5vw, 48px); }
}
.nw { white-space: nowrap; }
