/* megalodon.de – Entwurf. Reines CSS, keine Pakete, keine externen Schriften. */

@property --angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }

:root {
  --bg: #040910;
  --bg2: #071120;
  --text: #e8f0f8;
  --muted: #8fa2b7;
  --dim: #5f7289;
  --line: rgba(150, 190, 240, .13);
  --line2: rgba(150, 190, 240, .24);
  --accent: #3ae0c6;
  --accent2: #5aa8ff;
  --warm: #ffb469;
  --r: 22px;
  --sans: "Segoe UI Variable Display", "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "Cascadia Mono", "SF Mono", Consolas, "Liberation Mono", monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(58, 224, 198, .3); }

.wrap { width: min(1180px, 100% - 2 * clamp(20px, 5vw, 40px)); margin-inline: auto; }

/* ---------- Fortschritt, Körnung ---------- */
.progress {
  position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 60;
  background: linear-gradient(90deg, var(--accent2), var(--accent));
  transform-origin: 0 50%; transform: scaleX(var(--p, 0));
}
@supports (animation-timeline: scroll()) {
  .progress { animation: grow linear both; animation-timeline: scroll(root); }
  @keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}
.grain {
  position: fixed; inset: 0; z-index: 55; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 14px; left: 50%; translate: -50% 0; z-index: 50;
  width: min(1180px, calc(100% - 28px));
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 10px 9px 18px;
  border: 1px solid transparent; border-radius: 999px;
  transition: background .4s, border-color .4s, box-shadow .4s;
}
.nav.scrolled, .nav.open {
  background: rgba(6, 13, 24, .68);
  -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5);
  border-color: var(--line);
  box-shadow: 0 10px 40px -18px rgba(0, 0, 0, .8);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -.01em; font-size: 1.05rem; }
.brand-mark { width: 22px; height: 22px; fill: var(--accent); filter: drop-shadow(0 0 8px rgba(58, 224, 198, .55)); }
.nav-links { display: flex; gap: 2px; }
.nav-links a {
  padding: 8px 15px; border-radius: 999px; font-size: .93rem; color: var(--muted);
  transition: color .25s, background .25s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: rgba(255, 255, 255, .06); }
.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 50%; position: relative; }
.nav-toggle span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--text); transition: transform .3s var(--ease), top .3s var(--ease); }
.nav-toggle span:first-child { top: 17px; }
.nav-toggle span:last-child { top: 24px; }
.nav.open .nav-toggle span:first-child { top: 20.5px; transform: rotate(45deg); }
.nav.open .nav-toggle span:last-child { top: 20.5px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; align-items: center; padding: 130px 0 90px; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-bg canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.aurora { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; will-change: transform; }
.a1 { width: 46vw; height: 46vw; left: -12vw; top: -14vw; background: radial-gradient(circle, #0f5e8f, transparent 65%); animation: drift1 22s ease-in-out infinite alternate; }
.a2 { width: 40vw; height: 40vw; right: -8vw; top: 8vh; background: radial-gradient(circle, #0c7f77, transparent 65%); opacity: .42; animation: drift2 27s ease-in-out infinite alternate; }
.a3 { width: 34vw; height: 34vw; left: 30vw; bottom: -20vw; background: radial-gradient(circle, #23358f, transparent 65%); opacity: .38; animation: drift1 31s ease-in-out infinite alternate-reverse; }
@keyframes drift1 { to { transform: translate3d(7vw, 5vh, 0) scale(1.15); } }
@keyframes drift2 { to { transform: translate3d(-8vw, 7vh, 0) scale(.9); } }
.dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(160, 200, 255, .2) 1px, transparent 1.2px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
}
.hero-fade { position: absolute; inset: auto 0 0 0; height: 26%; background: linear-gradient(transparent, var(--bg)); }

.hero-grid { display: grid; grid-template-columns: 1.12fr .88fr; gap: clamp(32px, 5vw, 76px); align-items: center; }

.eyebrow { font-family: var(--mono); font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.eyebrow > span:not(.live) { color: var(--dim); margin-right: 14px; }
.eyebrow > span:not(.live)::after { content: ""; display: inline-block; width: 26px; height: 1px; background: var(--line2); margin-left: 14px; vertical-align: middle; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .03); color: #b9cbe0; letter-spacing: .08em; }
.live { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(58, 224, 198, .6); animation: ping 2.4s ease-out infinite; }
@keyframes ping { to { box-shadow: 0 0 0 10px rgba(58, 224, 198, 0); } }

h1 {
  margin-top: 26px;
  font-size: clamp(2.35rem, 5.1vw, 4.15rem); line-height: 1.04; letter-spacing: -.035em; font-weight: 600;
}
h1 .line { display: block; }
h1 .line + .line { color: #a9bdd4; }
/* Grundzustand ist sichtbar; "backwards" gilt nur bis zum Start. Danach liegt kein Filter mehr auf den Wörtern. */
h1 .w { display: inline-block; animation: wordIn .95s var(--ease) backwards; animation-delay: calc(var(--i) * 75ms + 120ms); }
@keyframes wordIn { from { opacity: 0; transform: translateY(.45em); filter: blur(10px); } }
.settled h1 .w { animation: none; }
.flip > span {
  display: inline-block;
  background: linear-gradient(100deg, var(--accent) 10%, var(--accent2) 60%, #b7a6ff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  transition: transform .38s var(--ease), opacity .38s var(--ease), filter .38s var(--ease);
}
.flip > span.out { transform: translateY(-.4em); opacity: 0; filter: blur(8px); }
.flip > span.pre { transform: translateY(.4em); opacity: 0; filter: blur(8px); transition: none; }

.lead { margin-top: 26px; max-width: 34em; color: var(--muted); font-size: clamp(1rem, 1.25vw, 1.14rem); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 999px; font-weight: 600; font-size: .96rem;
  transition: transform .3s var(--ease), box-shadow .3s, background .3s, border-color .3s;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn.primary { color: #03201c; background: linear-gradient(120deg, #6ff0db, var(--accent) 45%, #7fc1ff); overflow: hidden; box-shadow: 0 10px 34px -12px rgba(58, 224, 198, .7); }
.btn.primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .55) 50%, transparent 65%); transform: translateX(-120%); animation: shimmer 4.5s ease-in-out infinite; }
@keyframes shimmer { 0%, 55% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(58, 224, 198, .85); }
.btn.ghost { border: 1px solid var(--line2); color: var(--text); background: rgba(255, 255, 255, .02); }
.btn.ghost:hover { border-color: rgba(58, 224, 198, .6); background: rgba(58, 224, 198, .07); }

.facts { display: grid; grid-template-columns: repeat(2, max-content); gap: 16px 48px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); font-size: .93rem; }
.facts span { display: block; font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin-bottom: 3px; }

/* Terminal */
.hero-visual { perspective: 1200px; }
.terminal {
  position: relative; border-radius: 18px; border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(13, 24, 40, .86), rgba(6, 12, 22, .9));
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .02) inset;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .5s var(--ease);
  font-family: var(--mono); font-size: clamp(.72rem, 1vw, .84rem);
}
.term-bar { display: flex; align-items: center; gap: 7px; padding: 13px 16px; border-bottom: 1px solid var(--line); color: var(--dim); }
.term-bar i { width: 10px; height: 10px; border-radius: 50%; background: #24364c; }
.term-bar i:first-child { background: #3b5069; }
.term-bar span { margin-left: 10px; font-size: .9em; }
.term-body { padding: 18px 18px 22px; display: grid; gap: 11px; }
.tl { display: flex; gap: 10px; align-items: baseline; line-height: 1.45; color: #c4d3e4; transition: opacity .35s, transform .35s var(--ease); }
.tl b { font-weight: 400; color: var(--accent2); flex: none; width: 1em; }
.tl em { font-style: normal; color: var(--dim); flex: none; width: 5.2em; }
.tl .tx { flex: 1; min-width: 0; }
.tl .st { flex: none; color: var(--accent); margin-left: 6px; white-space: nowrap; }
.tl .st:empty::after { content: attr(data-ok); }
.tl.cmd { color: var(--text); padding-bottom: 11px; border-bottom: 1px dashed var(--line); }
.tl.cmd b { color: var(--warm); }
.tl.done { margin-top: 4px; color: var(--accent); }
.tl.done b { color: var(--accent); }
.tl.next { padding-top: 11px; border-top: 1px dashed var(--line); }
.tl.next b { color: var(--warm); }
.js .tl.hide { opacity: 0; transform: translateY(6px); }
.tl .ghosted { visibility: hidden; }
.tl .caret::after { content: "▍"; color: var(--accent); margin-left: 1px; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.caption { margin-top: 14px; text-align: center; font-size: .78rem; color: var(--dim); }

.scroll-hint { position: absolute; left: 50%; bottom: 26px; translate: -50% 0; width: 24px; height: 38px; border: 1px solid var(--line2); border-radius: 14px; }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--accent); animation: wheel 2s var(--ease) infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(-3px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* Rahmen-Lichtlauf */
.beam::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--angle), transparent 0 72%, rgba(58, 224, 198, .9) 88%, #eafffb 93%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: spin 7s linear infinite;
}
.card.beam::after { inset: 0; }
@keyframes spin { to { --angle: 360deg; } }

/* ---------- Laufband ---------- */
.marquee {
  border-block: 1px solid var(--line); padding: 20px 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 66s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee ul { display: flex; flex: none; }
.marquee li { font-family: var(--mono); font-size: .86rem; color: var(--muted); white-space: nowrap; padding-inline: 22px; position: relative; }
.marquee li::after { content: ""; position: absolute; right: -3px; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; rotate: 45deg; background: var(--accent); opacity: .55; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Abschnitte ---------- */
.section { padding-block: clamp(84px, 12vw, 156px); position: relative; }
.section.alt { background: linear-gradient(180deg, transparent, rgba(9, 20, 36, .7) 18%, rgba(9, 20, 36, .7) 82%, transparent); }
.head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 68px); }
h2 { margin-top: 18px; font-size: clamp(2rem, 4.4vw, 3.3rem); line-height: 1.07; letter-spacing: -.03em; font-weight: 600; text-wrap: balance; }
.sub { margin-top: 20px; color: var(--muted); font-size: clamp(1rem, 1.2vw, 1.12rem); max-width: 36em; }
h3 { font-size: 1.2rem; line-height: 1.25; letter-spacing: -.015em; font-weight: 600; }

.js .reveal { opacity: 0; transform: translateY(26px); filter: blur(6px); transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease); transition-delay: var(--rd, 0ms); }
.js .reveal.in { opacity: 1; transform: none; filter: none; }

/* ---------- Karten ---------- */
.card {
  position: relative; isolation: isolate; overflow: hidden;
  padding: 28px; border-radius: var(--r); border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015));
  transition: border-color .4s, translate .4s var(--ease);
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .45s;
  background: radial-gradient(440px circle at var(--mx, 50%) var(--my, 0%), rgba(58, 224, 198, .16), transparent 62%);
}
.card:hover { border-color: var(--line2); translate: 0 -3px; }
.card:hover::before { opacity: 1; }
.card p { margin-top: 10px; color: var(--muted); font-size: .97rem; }
.ico { width: 30px; height: 30px; margin-bottom: 22px; fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.tag { display: inline-block; margin-bottom: 14px; padding: 4px 11px; border-radius: 999px; font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); border: 1px solid rgba(58, 224, 198, .35); background: rgba(58, 224, 198, .07); }

/* Zwei Schwerpunkte */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.focus { display: flex; flex-direction: column; padding: 34px; }
.focus h3 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); }
.focus .tag { align-self: flex-start; }
.focus .invoice { margin-top: auto; }
.focus .orbit { position: absolute; top: 24px; right: 24px; margin: 0; scale: .5; transform-origin: 100% 0; }
.focus.has-orbit h3 { max-width: calc(100% - 84px); }

.feats { display: grid; gap: 11px; margin: 24px 0 30px; }
.feats li { position: relative; padding-left: 26px; color: var(--muted); font-size: .95rem; line-height: 1.5; }
.feats li::before { content: ""; position: absolute; left: 3px; top: .48em; width: 10px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); rotate: -45deg; }
.feats b { color: var(--text); font-weight: 600; }
.head .feats { margin-bottom: 0; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 16px; }
.stats li { padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--r); background: rgba(255, 255, 255, .02); }
.stats strong {
  display: block; margin-bottom: 6px; font-size: clamp(1.8rem, 3.2vw, 2.5rem); line-height: 1.1; letter-spacing: -.03em; font-weight: 600;
  background: linear-gradient(100deg, var(--accent) 10%, var(--accent2) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stats span { color: var(--muted); font-size: .9rem; line-height: 1.45; display: block; }

/* Bausteine */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid3 .card { display: flex; flex-direction: column; }
.grid3 .wide { grid-column: span 2; }
.grid3 .full { grid-column: span 2; display: grid; grid-template-columns: minmax(0, 1.3fr) 1fr; gap: 30px; align-items: center; }
.grid3 .card:nth-child(3n + 2) { --rd: 90ms; }
.grid3 .card:nth-child(3n) { --rd: 180ms; }
.kat { position: absolute; top: 32px; right: 28px; font-family: var(--mono); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 22px; }
.chips li { font-family: var(--mono); font-size: .7rem; line-height: 1.3; padding: 4px 9px; border-radius: 999px; border: 1px solid var(--line); color: #b9cbe0; background: rgba(255, 255, 255, .03); white-space: nowrap; transition: border-color .3s, color .3s; }
.card:hover .chips li { border-color: rgba(58, 224, 198, .28); }

/* Rechnungs-Miniatur */
.invoice { font-family: var(--mono); font-size: .76rem; border: 1px solid var(--line); border-radius: 14px; background: rgba(3, 8, 15, .6); padding: 6px 16px 4px; }
.invoice > div { display: grid; grid-template-columns: 2.6em 1fr 3.6em 5.2em; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.invoice > div > span:nth-child(3), .invoice > div > span:nth-child(4) { text-align: right; }
.inv-head { color: var(--dim); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; }
.inv-row span:first-child { color: var(--accent2); }
.invoice > .inv-sum { grid-template-columns: 1fr auto; border-bottom: 0; color: var(--text); font-weight: 600; align-items: center; }
.inv-check { display: inline-flex; align-items: center; gap: 7px; color: var(--accent); font-weight: 400; }
.inv-check svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 24; }
.js .inv-row, .js .inv-sum { opacity: 0; transform: translateX(-10px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--d) * 220ms + 450ms); }
.js .in .inv-row, .js .in .inv-sum { opacity: 1; transform: none; }
.in .inv-check svg, html:not(.js) .inv-check svg { stroke-dashoffset: 0; transition: stroke-dashoffset .6s var(--ease) 1.5s; }
/* Kartei-Miniatur: zwei Spalten statt vier */
.invoice.akte > div { grid-template-columns: 4.6em 1fr; }
.invoice.akte > .inv-sum { grid-template-columns: 1fr auto; }
.invoice.akte .inv-row span:last-child { color: #c4d3e4; }
.inv-sum > span:last-child { white-space: nowrap; }

/* Agenten-Umlauf */
.orbit { position: relative; width: 150px; height: 150px; margin: 4px auto 26px; }
.ring { position: absolute; inset: 0; border: 1px solid var(--line2); border-radius: 50%; animation: turn 14s linear infinite; }
.ring.r2 { inset: 22px; animation-duration: 9s; animation-direction: reverse; border-style: dashed; }
.ring.r3 { inset: 46px; animation-duration: 6s; }
.ring i { position: absolute; top: -5px; left: 50%; width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%; background: var(--accent2); box-shadow: 0 0 14px 2px rgba(90, 168, 255, .7); }
.ring.r2 i { background: var(--accent); box-shadow: 0 0 14px 2px rgba(58, 224, 198, .7); }
.ring.r3 i { background: var(--warm); box-shadow: 0 0 14px 2px rgba(255, 180, 105, .6); width: 7px; height: 7px; top: -4px; margin-left: -3.5px; }
.core { position: absolute; inset: 62px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffffff, var(--accent) 45%, #0b7f73); box-shadow: 0 0 34px 6px rgba(58, 224, 198, .45); animation: breathe 3.6s ease-in-out infinite; }
@keyframes turn { to { rotate: 360deg; } }
@keyframes breathe { 50% { scale: 1.14; } }

/* Puls */
.pulse { width: 100%; height: 80px; overflow: visible; }
.pulse path { fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.pulse-base { stroke: var(--line2); }
.pulse-run { stroke: var(--accent); stroke-dasharray: 14 200; stroke-dashoffset: 14; filter: drop-shadow(0 0 6px rgba(58, 224, 198, .9)); animation: run 3.8s linear infinite; }
@keyframes run { to { stroke-dashoffset: -100; } }

/* ---------- Abrechnungsstrecke ---------- */
.pipe { position: relative; }
.pipe-track { position: absolute; left: 10%; right: 10%; top: 27px; height: 2px; background: var(--line); border-radius: 2px; }
.pipe-fill { position: absolute; inset: 0 auto 0 0; width: calc(var(--at, 0) * 25%); background: linear-gradient(90deg, var(--accent2), var(--accent)); border-radius: 2px; transition: width .9s var(--ease); }
.pipe-dot { position: absolute; top: 50%; left: calc(var(--at, 0) * 25%); width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #eafffb; box-shadow: 0 0 0 5px rgba(58, 224, 198, .22), 0 0 24px 6px rgba(58, 224, 198, .75); transition: left .9s var(--ease); z-index: 2; }
.pipe-stages { display: grid; grid-template-columns: repeat(5, 1fr); position: relative; }
.stage { width: 100%; display: grid; justify-items: center; gap: 14px; text-align: center; padding: 0 8px; }
.stage i {
  font-style: normal; font-family: var(--mono); font-size: .86rem;
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line2); background: var(--bg2); color: var(--muted);
  transition: border-color .5s, color .5s, box-shadow .5s, background .5s, scale .5s var(--ease);
}
.stage strong { font-weight: 600; font-size: 1.05rem; color: var(--muted); transition: color .5s; }
.stage span { color: var(--muted); font-size: .93rem; }
.stage.done i { border-color: rgba(58, 224, 198, .5); color: var(--accent); }
.stage.on i { border-color: var(--accent); color: #03201c; background: var(--accent); box-shadow: 0 0 40px -4px rgba(58, 224, 198, .8); scale: 1.08; }
.stage.on strong, .stage:hover strong { color: var(--text); }
.js .pipe-stages .stage span { display: none; }
.pipe-detail {
  display: none; margin: 44px auto 0; max-width: 720px; padding: 26px 30px; border-radius: var(--r);
  border: 1px solid var(--line); background: rgba(255, 255, 255, .03);
  grid-template-columns: auto 1fr; gap: 22px; align-items: center; min-height: 112px;
}
.js .pipe-detail { display: grid; }
.pd-no { font-family: var(--mono); font-size: 2.4rem; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--accent); }
.pipe-detail p { font-size: 1.08rem; color: #c9d7e6; transition: opacity .3s, transform .3s var(--ease); }
.pipe-detail.swap p { opacity: 0; transform: translateY(8px); }

/* ---------- Leitsatz ---------- */
.statement { padding-block: clamp(70px, 11vw, 150px); }
.statement p { font-size: clamp(1.9rem, 5.4vw, 4.4rem); line-height: 1.08; letter-spacing: -.035em; font-weight: 600; max-width: 15em; text-wrap: balance; }
.statement .sw { opacity: .16; transition: opacity .5s, color .5s; }
.statement .sw.lit { opacity: 1; }
.statement .sw.hl.lit { color: var(--accent); }

/* ---------- Arbeitsweise ---------- */
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px, 7vw, 100px); align-items: start; }
.sticky { position: sticky; top: 120px; margin-bottom: 0; }
.timeline { position: relative; display: grid; gap: 16px; padding-left: 44px; }
.timeline::before, .timeline::after { content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; }
.timeline::before { background: var(--line); }
.timeline::after { background: linear-gradient(180deg, var(--accent2), var(--accent)); transform-origin: 50% 0; transform: scaleY(var(--fill, 0)); box-shadow: 0 0 16px rgba(58, 224, 198, .6); }
.step { position: relative; padding: 24px 26px; border-radius: var(--r); border: 1px solid var(--line); background: rgba(255, 255, 255, .02); transition: border-color .6s, background .6s, opacity .6s; }
.js .step { opacity: .45; }
.js .step.on { opacity: 1; border-color: var(--line2); background: rgba(255, 255, 255, .04); }
.step::before { content: ""; position: absolute; left: -39px; top: 30px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--dim); transition: border-color .5s, background .5s, box-shadow .5s; z-index: 1; }
.step.on::before { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 5px rgba(58, 224, 198, .18); }
.step .no { font-family: var(--mono); font-size: .74rem; letter-spacing: .12em; color: var(--accent); }
.step h3 { margin-top: 6px; }
.step p { margin-top: 8px; color: var(--muted); font-size: .97rem; }

/* ---------- Über mich ---------- */
.about { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.profile { margin-top: 36px; border-top: 1px solid var(--line); }
.profile div { display: grid; grid-template-columns: 9.5em 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.profile dt { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); padding-top: 4px; }
.principles { display: grid; gap: 16px; }
.principles .card { padding: 24px 26px 24px 78px; }
.pn { position: absolute; left: 24px; top: 24px; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; font-family: var(--mono); font-size: .86rem; color: var(--accent); border: 1px solid rgba(58, 224, 198, .35); background: rgba(58, 224, 198, .07); }
.principles .card:nth-child(2) { --rd: 110ms; }
.principles .card:nth-child(3) { --rd: 220ms; }
.duo .card:nth-child(2) { --rd: 110ms; }

/* ---------- Schluss ---------- */
.outro { position: relative; text-align: center; padding: clamp(80px, 12vw, 150px) 0 clamp(60px, 8vw, 100px); overflow: hidden; }
.outro::before { content: ""; position: absolute; left: 50%; bottom: -55%; width: 120vw; height: 100%; translate: -50% 0; background: radial-gradient(ellipse at center, rgba(22, 120, 140, .5), transparent 62%); z-index: -1; }
.outro-mark { width: 44px; height: 44px; fill: var(--accent); filter: drop-shadow(0 0 18px rgba(58, 224, 198, .6)); animation: bob 5s ease-in-out infinite; }
@keyframes bob { 50% { translate: 0 -8px; } }
.outro-word {
  margin-top: 6px; font-size: clamp(3.2rem, 15.5vw, 13.5rem); line-height: 1; font-weight: 700; letter-spacing: -.06em;
  background: linear-gradient(180deg, rgba(232, 240, 248, .95) 20%, rgba(90, 168, 255, .12) 92%);
  -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none;
}
.outro-line { margin-top: 18px; color: var(--muted); }
.outro-offer { margin-top: 8px; color: #c4d3e4; }
.outro-offer b { color: var(--text); font-weight: 600; }
.card p b { color: var(--text); font-weight: 600; }
.mail { display: inline-block; margin-top: 26px; padding-bottom: 3px; font-family: var(--mono); font-size: .95rem; color: var(--accent); background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; transition: background-size .4s var(--ease); }
.mail:hover { background-size: 0 1px; background-position: 100% 100%; }

.footer { border-top: 1px solid var(--line); padding: 26px 0 34px; font-size: .86rem; color: var(--dim); }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }
.footer nav { display: flex; gap: 24px; }
.footer a:hover { color: var(--text); }

/* ---------- Rechtstexte (Impressum, Datenschutz) ---------- */
.legal { padding: 150px 0 90px; }
.legal .wrap { max-width: 760px; }
.legal h1 { margin-top: 18px; font-size: clamp(2.1rem, 5vw, 3.3rem); }
.legal .stand { margin-top: 14px; color: var(--dim); font-family: var(--mono); font-size: .8rem; }
.legal section { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.legal h2 { margin: 0 0 12px; font-size: 1.15rem; line-height: 1.3; letter-spacing: -.01em; }
.legal p, .legal li { color: #b9c8d9; font-size: .98rem; }
.legal p + p, .legal p + ul, .legal ul + p { margin-top: 12px; }
.legal ul { display: grid; gap: 8px; }
.legal li { position: relative; padding-left: 20px; }
.legal li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 5px; height: 5px; rotate: 45deg; background: var(--accent); opacity: .7; }
.legal strong { color: var(--text); font-weight: 600; }
.legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.nav-links.static { display: flex; width: auto; padding: 0; }
.footer a[aria-current="page"] { color: var(--text); }

/* ---------- Responsiv ---------- */
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 620px; }
  .scroll-hint { display: none; }
  .duo { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .grid3 { grid-template-columns: repeat(2, 1fr); }
  .grid3 .full, .grid3 .wide-md { grid-column: 1 / -1; }
  .grid3 .card:nth-child(n) { --rd: 0ms; }
  .split, .about { grid-template-columns: 1fr; }
  .sticky { position: static; margin-bottom: 44px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav-toggle { display: block; }
  .nav { border-radius: 26px; flex-wrap: wrap; }
  .nav-links { display: none; flex-direction: column; width: 100%; padding: 8px 0 6px; }
  .nav.open .nav-links { display: flex; }
  .nav-links a { padding: 12px 10px; font-size: 1rem; }
  .hero { padding: 112px 0 64px; min-height: 0; }
  .pill { font-size: .64rem; letter-spacing: .04em; padding: 6px 12px; gap: 8px; }
  .facts { grid-template-columns: 1fr 1fr; gap: 16px 20px; }
  .grid3 { grid-template-columns: 1fr; }
  .grid3 .card { grid-column: auto; }
  .grid3 .full { grid-template-columns: 1fr; }
  .focus { padding: 26px; }
  .card { padding: 24px; }
  .kat { top: 28px; right: 24px; }
  .stats { gap: 10px; }
  .stats li { padding: 18px; }

  .pipe-track, .js .pipe-detail { display: none; }
  .pipe-stages { grid-template-columns: 1fr; gap: 10px; }
  .stage { grid-template-columns: 54px 1fr; justify-items: start; text-align: left; align-items: center; gap: 4px 16px; padding: 14px; border-radius: var(--r); border: 1px solid transparent; transition: border-color .5s, background .5s; }
  .stage i { grid-row: span 2; align-self: start; }
  .stage strong { align-self: end; }
  .js .pipe-stages .stage span { display: block; }
  .stage.on { border-color: var(--line2); background: rgba(255, 255, 255, .035); }
  .profile div { grid-template-columns: 1fr; gap: 2px; }
  .footer .wrap { flex-direction: column; }
}
@media (max-width: 420px) {
  .invoice { font-size: .68rem; padding-inline: 12px; }
  .invoice > div { grid-template-columns: 2.2em 1fr 3.6em 4.8em; gap: 6px; }
  .inv-head { font-size: .6rem; letter-spacing: .02em; }
  .tl em { width: 4.6em; }
  .term-body { padding: 14px 13px 18px; }
}

@media (hover: none) {
  .card:hover { translate: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0ms !important; }
  .marquee-track { animation: none; }
  .beam::after, .btn.primary::after, .pulse-run { display: none; }
  .js .reveal, .js .step { opacity: 1; transform: none; filter: none; }
  .statement .sw { opacity: 1; }
}
