/* =========================================================
   Lioxora – Portfolio
   Mitternachtsblau & Silber · edel · ohne Abhängigkeiten
   ========================================================= */
:root {
  --bg: #070b14;
  --bg-2: #0a1020;
  --card: #0e1524;
  --card-2: #131c2e;
  --line: rgba(159,180,217,.13);
  --line-2: rgba(159,180,217,.24);
  --text: #e8edf5;
  --muted: #8c99af;
  --dim: #56627a;
  --silver: #9fb4d9;
  --ice: #cfe0ff;
  --metal: linear-gradient(180deg, #ffffff 0%, #dde7f7 42%, #8ea3c9 100%);
  --metal-x: linear-gradient(100deg, #8ea3c9 0%, #ffffff 30%, #cfe0ff 50%, #ffffff 70%, #8ea3c9 100%);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.22,.8,.2,1);
  --wrap: 1180px;
  --gut: 20px;
  --nav-h: 60px;
}
@media (min-width: 768px) { :root { --gut: 40px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font);
  font-size: 17px; line-height: 1.55; letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.035em; line-height: 1.05; }
h2 { font-size: clamp(1.85rem, 1.2rem + 3.4vw, 4.3rem); overflow-wrap: break-word; }
h3 { font-size: 1.3rem; letter-spacing: -0.02em; line-height: 1.2; }
p { margin: 0; }
::selection { background: var(--ice); color: var(--bg); }
:focus-visible { outline: 2px solid var(--ice); outline-offset: 4px; border-radius: 8px; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 999; background: #fff; color: #000; padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.wrap--narrow { max-width: 820px; }
.metal { background: var(--metal-x); background-size: 250% 100%; background-position: 35% 0; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-box-decoration-break: clone; }
@keyframes sheen { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0% 0; } }
.eyebrow { font-size: .8rem; font-weight: 600; color: var(--silver); letter-spacing: .16em; text-transform: uppercase; margin-bottom: 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px; border: 0; cursor: pointer;
  background: linear-gradient(180deg, #f6f9fe, #c8d5ea); color: #0a1020; font: inherit; font-size: 1rem; font-weight: 600; text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 0 0 1px rgba(255,255,255,.08);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s;
}
.btn:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 #fff, 0 12px 40px rgba(150,185,245,.35); }
.btn:active { transform: translateY(0); }
.btn--sm { padding: 9px 18px; font-size: .88rem; }
.btn--ghost { background: rgba(159,180,217,.08); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn--ghost:hover { background: rgba(159,180,217,.14); box-shadow: inset 0 0 0 1px rgba(207,224,255,.4); }
.btn--block { width: 100%; }
.link-arrow { color: var(--ice); text-decoration: none; font-weight: 500; font-size: 1.05rem; display: inline-flex; gap: 6px; align-items: center; }
.link-arrow span { transition: transform .3s var(--ease); font-size: 1.3em; line-height: 1; }
.link-arrow:hover span, a:hover > .link-arrow span { transform: translateX(4px); }

/* ---------- Navigation ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h); background: rgba(7,11,20,.55); backdrop-filter: saturate(1.5) blur(16px); -webkit-backdrop-filter: saturate(1.5) blur(16px); border-bottom: 1px solid transparent; transition: border-color .4s, background .4s; }
.nav.is-scrolled { border-bottom-color: var(--line); background: rgba(7,11,20,.72); }
.nav__inner { max-width: var(--wrap); height: 100%; margin: 0 auto; padding: 0 var(--gut); display: flex; align-items: center; gap: 20px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: -0.02em; margin-right: auto; white-space: nowrap; }
.nav .btn { white-space: nowrap; }
.logo svg { width: 30px; height: 30px; }
.nav ul { display: none; list-style: none; margin: 0; padding: 0; gap: 32px; }
.nav ul a { text-decoration: none; font-size: .88rem; color: #aab5c8; transition: color .2s; }
.nav ul a:hover { color: #fff; }
@media (min-width: 820px) { .nav ul { display: flex; } }

/* ---------- Hero ---------- */
.hero { position: relative; height: 165vh; }
.hero__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; place-items: center; text-align: center; padding: var(--nav-h) var(--gut) 40px; }
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.aurora { position: absolute; border-radius: 50%; will-change: transform; }
.aurora--a { width: 60vmax; height: 40vmax; left: -15vmax; top: -10vmax; background: radial-gradient(closest-side, rgba(70,110,190,.55), transparent); animation: drift1 20s ease-in-out infinite alternate; }
.aurora--b { width: 50vmax; height: 36vmax; right: -18vmax; top: 10%; background: radial-gradient(closest-side, rgba(160,190,240,.28), transparent); animation: drift2 24s ease-in-out infinite alternate; }
.aurora--c { width: 70vmax; height: 30vmax; left: 15%; bottom: -12vmax; background: radial-gradient(closest-side, rgba(40,70,140,.6), transparent); animation: drift1 28s ease-in-out infinite alternate-reverse; }
@keyframes drift1 { to { transform: translate(8vmax, 4vmax) scale(1.1); } }
@keyframes drift2 { to { transform: translate(-6vmax, 6vmax) scale(.9); } }
.stars { position: absolute; inset: -10%; background-repeat: repeat; will-change: transform; }
.stars--a { background-image: radial-gradient(1px 1px at 20px 30px, #cfe0ff, transparent), radial-gradient(1px 1px at 140px 90px, #fff, transparent), radial-gradient(1.2px 1.2px at 80px 160px, #9fb4d9, transparent), radial-gradient(1px 1px at 200px 220px, #fff, transparent); background-size: 240px 240px; opacity: .55; }
.stars--b { background-image: radial-gradient(1.4px 1.4px at 60px 80px, #fff, transparent), radial-gradient(1px 1px at 300px 40px, #cfe0ff, transparent), radial-gradient(1.6px 1.6px at 180px 300px, #9fb4d9, transparent); background-size: 380px 380px; opacity: .45; animation: twinkle 6s ease-in-out infinite alternate; }
@keyframes twinkle { to { opacity: .15; } }
.floor { position: absolute; left: -50%; right: -50%; bottom: -8%; height: 55%; perspective: 500px; -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 85%); mask-image: linear-gradient(to top, #000 10%, transparent 85%); }
.floor span { position: absolute; inset: 0; transform: rotateX(62deg); transform-origin: 50% 100%; overflow: hidden; }
.floor span::before { content: ""; position: absolute; inset: -70px 0 0 0; background-image: linear-gradient(rgba(159,180,217,.22) 1px, transparent 1px), linear-gradient(90deg, rgba(159,180,217,.22) 1px, transparent 1px); background-size: 70px 70px; animation: floor 5s linear infinite; will-change: transform; }
@keyframes floor { to { transform: translate3d(0,70px,0); } }
.hero__content { position: relative; max-width: 1050px; will-change: transform, opacity, filter; }
.hero__title { font-size: clamp(3.2rem, 1.4rem + 8vw, 9rem); font-weight: 800; letter-spacing: -0.055em; line-height: .96; margin-bottom: 28px; will-change: transform, opacity; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .07em; }
.hero__title .line > span { display: inline-block; }
.hero__sub { font-size: clamp(1.1rem, 1rem + .6vw, 1.4rem); color: var(--muted); max-width: 640px; margin: 0 auto; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: center; align-items: center; margin-top: 40px; }
.js .hero__in { opacity: 0; transform: translateY(40px); animation: rise 1.2s var(--ease) forwards; animation-delay: calc(var(--d) * .13s + .15s); }
.js .hero__title .hero__in { transform: translateY(105%); }
@keyframes rise { to { opacity: 1; transform: none; } }
.scroll-cue { position: absolute; bottom: 28px; left: 50%; width: 26px; height: 42px; margin-left: -13px; border-radius: 14px; box-shadow: inset 0 0 0 1.5px rgba(207,224,255,.35); }
.scroll-cue span { position: absolute; left: 50%; top: 9px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
.hero__flash { position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%, rgba(207,224,255,.55), transparent 60%); opacity: 0; pointer-events: none; }

/* ---------- Branchen-Laufband ---------- */
.ticker { position: relative; padding: 14vh 0 12vh; overflow: hidden; }
.ticker__title { text-align: center; margin-bottom: 56px; font-size: clamp(2rem, 1.3rem + 3vw, 3.8rem); }
.marquee { display: grid; gap: 14px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__row { display: flex; width: max-content; animation: marq 55s linear infinite; }
.marquee__row--rev { animation-direction: reverse; animation-duration: 62s; }
.marquee:hover .marquee__row { animation-play-state: paused; }
.marquee__track { display: flex; gap: 14px; padding-right: 14px; }
@keyframes marq { to { transform: translateX(-50%); } }
.tag { display: inline-flex; align-items: center; gap: 12px; padding: 16px 26px 16px 18px; border-radius: 999px; background: linear-gradient(180deg, rgba(159,180,217,.09), rgba(159,180,217,.03)); box-shadow: inset 0 0 0 1px var(--line); font-size: 1.1rem; font-weight: 600; white-space: nowrap; color: #d6deeb; }
.tag svg { width: 24px; height: 24px; fill: none; stroke: var(--ice); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ticker__note { text-align: center; color: var(--muted); margin-top: 44px; font-size: 1.05rem; }

/* ---------- Branchen-Showcase ---------- */
.show { position: relative; height: 760vh; --amb: #ffdf00; }
.show__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; align-items: center; padding-top: var(--nav-h); }
.show__ambient { position: absolute; left: 62%; top: 55%; width: 70vmax; height: 50vmax; transform: translate(-50%, -50%); background: radial-gradient(closest-side, var(--amb), transparent); opacity: .16; transition: background 1s var(--ease); pointer-events: none; }
.show__grid { position: relative; width: 100%; display: grid; gap: 28px; align-items: center; }
@media (min-width: 1000px) { .show__grid { grid-template-columns: .72fr 1.28fr; gap: 48px; } }
.show__count { font-variant-numeric: tabular-nums; color: var(--dim); font-weight: 600; letter-spacing: .08em; margin-bottom: 18px; }
.show__count span { color: var(--ice); }
.show__caps { position: relative; min-height: 13.5em; }
.cap { position: absolute; inset: 0 0 auto 0; opacity: 0; transform: translateY(20px); transition: opacity .5s var(--ease), transform .5s var(--ease); pointer-events: none; }
.cap.is-active { opacity: 1; transform: none; filter: none; }
.cap h2 { font-size: clamp(2.3rem, 1.4rem + 3vw, 4rem); margin-bottom: 16px; background: var(--metal); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cap p:last-child { color: var(--muted); font-size: 1.1rem; max-width: 380px; }
.show__dots { display: flex; gap: 8px; margin-top: 8px; }
.show__dots span { width: 22px; height: 3px; border-radius: 3px; background: rgba(159,180,217,.2); transition: background .4s, width .4s var(--ease); }
.show__dots span.is-active { width: 44px; background: var(--ice); }
.show__note { color: var(--dim); font-size: .8rem; margin-top: 22px; }

.stage { position: relative; width: min(100%, calc((100vh - var(--nav-h) - 110px) * 1.5)); width: min(100%, calc((100svh - var(--nav-h) - 110px) * 1.5)); perspective: 2200px; perspective-origin: 50% 0%; justify-self: center; margin-bottom: 4%; }
.mac { position: relative; width: 100%; transform-style: preserve-3d; will-change: transform; }
.mac__lid { position: relative; transform-origin: 50% 100%; transform-style: preserve-3d; will-change: transform; }
.mac__bezel { position: relative; background: #05070c; border-radius: 2.2% / 3.4%; padding: 2.1% 2.1% 2.6%; box-shadow: inset 0 0 0 1.5px #232b3b, 0 0 0 1px #000, 0 40px 120px -30px rgba(120,160,230,.35); backface-visibility: hidden; }
.mac__cam { position: absolute; top: .8%; left: 50%; width: .7%; aspect-ratio: 1; margin-left: -.35%; border-radius: 50%; background: #1d2a3a; }
.mac__screen { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: .6%; background: #0b0f18; }
[data-screens] img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .45s ease; }
[data-screens] img.is-active { opacity: 1; }
.mac__glare { position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255,255,255,.09) 0%, rgba(255,255,255,0) 38%); pointer-events: none; }
.mac__base { position: relative; width: 116%; margin-left: -8%; height: 0; padding-bottom: 2.4%; background: linear-gradient(#e3e8f0, #a2abba 55%, #6b7383); border-radius: 0 0 14% 14% / 0 0 100% 100%; box-shadow: 0 30px 60px rgba(0,0,0,.6); }
.mac__base span { position: absolute; left: 50%; top: 0; width: 14%; height: 40%; margin-left: -7%; background: #8d95a4; border-radius: 0 0 10px 10px; }
.phone { position: absolute; right: -3%; bottom: -8%; width: 21%; aspect-ratio: 9 / 19.5; border-radius: 16% / 7.4%; background: #10141d; padding: 3%; box-shadow: inset 0 0 0 1.5px #333c4d, 0 0 0 1px #000, 0 30px 80px rgba(0,0,0,.7); will-change: transform, opacity; z-index: 2; }
.phone__island { position: absolute; top: 4%; left: 50%; width: 30%; height: 3.2%; margin-left: -15%; border-radius: 999px; background: #000; z-index: 2; }
.phone__screen { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 13% / 6%; background: #0b0f18; }
@media (max-width: 999px) {
  .show { height: 700vh; }
  .show__sticky { align-items: flex-start; padding-top: calc(var(--nav-h) + 16px); }
  .show__grid { gap: 10px; }
  .show__count { margin-bottom: 8px; }
  .show__caps { min-height: 9.6em; }
  .cap h2 { font-size: 2.1rem; margin-bottom: 8px; }
  .cap p:last-child { font-size: .98rem; }
  .show__note { display: none; }
  .stage { width: 108%; margin-top: 34px; justify-self: start; }
  .phone { width: 36%; right: 2%; bottom: -40%; }
}

/* ---------- Statement ---------- */
.statement { padding: 20vh var(--gut); max-width: 1100px; margin: 0 auto; }
.statement__text { font-size: clamp(1.8rem, 1rem + 3.2vw, 3.6rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1.16; }
.js .statement__text .w { color: #1f2a3f; transition: color .35s linear; }
.js .statement__text .w.on { color: var(--text); }

/* ---------- Sections ---------- */
.section { padding: 14vh 0; }
.section--tight { padding: 8vh 0 14vh; }
.head { margin-bottom: 56px; max-width: 820px; }
.head--center { text-align: center; margin-left: auto; margin-right: auto; }
.js .reveal { opacity: 0; transform: translateY(50px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Kartenstapel ---------- */
.stack-sec { padding: 10vh 0 6vh; }
.stack { position: relative; }
.scard { position: sticky; top: calc(var(--nav-h) + 28px); min-height: min(560px, 72vh); margin-bottom: 7vh; border-radius: 34px; padding: clamp(28px, 4vw, 56px); display: grid; gap: 28px; align-items: center; background: linear-gradient(160deg, #121b2e 0%, #0b1120 70%); box-shadow: inset 0 0 0 1px var(--line), 0 -20px 60px rgba(0,0,0,.45); overflow: hidden; transform-origin: 50% 0; will-change: transform, filter; }
.scard::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: #03060d; opacity: var(--shade, 0); pointer-events: none; }
.scard::before { content: ""; position: absolute; width: 60%; height: 80%; right: -10%; top: -20%; background: radial-gradient(closest-side, rgba(120,160,230,.18), transparent); pointer-events: none; }
@media (min-width: 900px) { .scard { grid-template-columns: 1fr 1fr; gap: 56px; } }
.scard:last-child { margin-bottom: 0; }
.scard__n { display: block; font-size: .9rem; font-weight: 700; color: var(--silver); letter-spacing: .1em; margin-bottom: 20px; }
.scard h3 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.4rem); letter-spacing: -0.04em; line-height: 1.02; margin-bottom: 18px; background: var(--metal); -webkit-background-clip: text; background-clip: text; color: transparent; }
.scard p { color: var(--muted); font-size: 1.12rem; max-width: 460px; }
.scard__vis { position: relative; height: clamp(200px, 32vh, 340px); border-radius: 24px; background: rgba(5,8,15,.55); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }

/* Visual 1: Farbpaletten, die sich neu mischen */
.vis-design { display: flex; gap: 10px; padding: 26px; align-items: flex-end; }
.vis-design span { flex: 1; border-radius: 16px; animation: palette 8s var(--ease) infinite; }
.vis-design span:nth-child(1) { height: 90%; background: #ffdf00; animation-delay: 0s; }
.vis-design span:nth-child(2) { height: 70%; background: #1c7ed6; animation-delay: .15s; }
.vis-design span:nth-child(3) { height: 80%; background: #b76e79; animation-delay: .3s; }
.vis-design span:nth-child(4) { height: 60%; background: #2a9d8f; animation-delay: .45s; }
.vis-design span:nth-child(5) { height: 75%; background: #7c5cff; animation-delay: .6s; }
@keyframes palette { 0%, 100% { filter: hue-rotate(0deg); transform: scaleY(1); } 25% { transform: scaleY(.55); } 50% { filter: hue-rotate(160deg); transform: scaleY(1.05); } 75% { transform: scaleY(.8); } }
.vis-design span { transform-origin: bottom; }

/* Visual 2: Website baut sich auf */
.vis-build span { position: absolute; border-radius: 10px; background: linear-gradient(90deg, rgba(207,224,255,.9), rgba(159,180,217,.6)); animation: build 6s var(--ease) infinite; opacity: 0; }
.vis-build .b1 { left: 8%; right: 8%; top: 10%; height: 9%; animation-delay: 0s; background: rgba(159,180,217,.35); }
.vis-build .b2 { left: 8%; width: 46%; top: 27%; height: 16%; animation-delay: .25s; }
.vis-build .b3 { left: 8%; width: 32%; top: 49%; height: 7%; animation-delay: .5s; background: rgba(159,180,217,.4); }
.vis-build .b4 { right: 8%; width: 34%; top: 27%; height: 45%; animation-delay: .75s; background: linear-gradient(145deg, #7c5cff, #22d3ee); }
.vis-build .b5 { left: 8%; width: 22%; top: 62%; height: 10%; border-radius: 999px; animation-delay: 1s; }
@keyframes build { 0% { opacity: 0; transform: translateY(-30px) scale(.96); } 15%, 80% { opacity: 1; transform: none; } 95%, 100% { opacity: 0; } }

/* Visual 3: Handy mit Anruf-Button */
.vis-phone { display: grid; place-items: center; }
.vis-phone > div { position: relative; width: 120px; height: 230px; border-radius: 26px; box-shadow: inset 0 0 0 2px #3a4660; padding: 22px 14px; display: grid; gap: 10px; align-content: start; animation: float 5s ease-in-out infinite; }
.vis-phone span { height: 12px; border-radius: 5px; background: rgba(159,180,217,.25); }
.vis-phone span:first-child { height: 50px; background: linear-gradient(135deg, #2a9d8f, #1c7ed6); }
.vis-phone i { position: absolute; left: 14px; right: 14px; bottom: 16px; height: 34px; border-radius: 999px; background: linear-gradient(180deg, #f6f9fe, #c8d5ea); box-shadow: 0 0 0 0 rgba(207,224,255,.6); animation: ping 2.2s var(--ease) infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(207,224,255,.55); } 70%, 100% { box-shadow: 0 0 0 18px rgba(207,224,255,0); } }
@keyframes float { 50% { translate: 0 -8px; rotate: -2deg; } }

/* Visual 4: Suche */
.vis-search { padding: 28px; display: grid; align-content: start; gap: 14px; }
.sbar { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 999px; background: rgba(159,180,217,.1); box-shadow: inset 0 0 0 1px var(--line-2); font-size: 1rem; color: var(--text); }
.sbar svg { width: 20px; height: 20px; fill: none; stroke: var(--ice); stroke-width: 2; stroke-linecap: round; flex: none; }
.type { display: inline-block; overflow: hidden; white-space: nowrap; border-right: 2px solid var(--ice); width: 0; animation: typing 5s steps(20) infinite, caret .8s step-end infinite; }
@keyframes typing { 0% { width: 0; } 40%, 90% { width: 20ch; } 100% { width: 0; } }
@keyframes caret { 50% { border-color: transparent; } }
.sres { border-radius: 16px; padding: 16px 18px; background: rgba(159,180,217,.07); display: grid; gap: 8px; box-shadow: inset 0 0 0 1px rgba(207,224,255,.25); animation: pop 5s var(--ease) infinite; }
.sres b { height: 14px; width: 55%; border-radius: 5px; background: var(--ice); }
.sres span { height: 9px; border-radius: 4px; background: rgba(159,180,217,.3); }
.sres span:last-child { width: 70%; }
.sres.dim { opacity: .45; box-shadow: none; animation-delay: .2s; }
.sres.dim b { background: rgba(159,180,217,.5); width: 40%; }
@keyframes pop { 0%, 35% { opacity: 0; transform: translateY(10px); } 45%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* Visual 5: Betreuung */
.vis-care { display: grid; place-items: center; }
.vis-care span { position: absolute; left: 50%; top: 50%; width: 90px; height: 90px; margin: -45px 0 0 -45px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(207,224,255,.4); animation: ripple 3.6s var(--ease) infinite; }
.vis-care span:nth-child(2) { animation-delay: 1.2s; } .vis-care span:nth-child(3) { animation-delay: 2.4s; }
@keyframes ripple { 0% { transform: scale(.8); opacity: 1; } 100% { transform: scale(3.2); opacity: 0; } }
.vis-care svg { position: relative; width: 84px; height: 84px; fill: none; stroke: url(#silver); stroke: var(--ice); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Zahlen ---------- */
.nums { padding: 10vh 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: linear-gradient(180deg, transparent, rgba(159,180,217,.03), transparent); }
.nums__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 36px 20px; text-align: center; }
@media (min-width: 900px) { .nums__grid { grid-template-columns: repeat(4, 1fr); } }
.num strong { display: block; font-size: clamp(2.8rem, 2rem + 3vw, 4.6rem); font-weight: 800; letter-spacing: -0.05em; line-height: 1; background: var(--metal); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.num span { color: var(--muted); font-size: .98rem; }

/* ---------- Ablauf (horizontal) ---------- */
.flow { position: relative; height: 320vh; }
.flow__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: 48px; padding-top: var(--nav-h); }
.flow__track { display: flex; gap: 20px; padding: 0 var(--gut); will-change: transform; }
@media (min-width: 1180px) { .flow__track { padding-left: calc((100vw - var(--wrap)) / 2 + var(--gut)); } }
.step { flex: none; width: min(78vw, 440px); min-height: 300px; background: linear-gradient(160deg, #121b2e, #0b1120); border-radius: 30px; padding: 34px; display: flex; flex-direction: column; gap: 14px; box-shadow: inset 0 0 0 1px var(--line); }
.step__n { font-size: 4.4rem; font-weight: 800; letter-spacing: -0.06em; line-height: 1; margin-bottom: auto; background: var(--metal); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step h3 { font-size: 1.6rem; }
.step p { color: var(--muted); }
.flow__bar { height: 2px; border-radius: 2px; background: rgba(159,180,217,.15); overflow: hidden; }
.flow__bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--silver), #fff); transform-origin: left; transform: scaleX(var(--p, 0)); }

/* ---------- Live-Demo ---------- */
.demo { display: grid; gap: 32px; align-items: center; text-decoration: none; border-radius: 34px; padding: clamp(28px, 4vw, 56px); background: linear-gradient(160deg, #121b2e, #0b1120); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; transition: box-shadow .4s var(--ease); }
.demo:hover { box-shadow: inset 0 0 0 1px var(--line-2), 0 30px 80px -30px rgba(120,160,230,.35); }
@media (min-width: 900px) { .demo { grid-template-columns: .8fr 1.2fr; } }
.demo h2 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.4rem); margin-bottom: 16px; }
.demo__text p:not(.eyebrow) { color: var(--muted); margin-bottom: 22px; font-size: 1.08rem; }
.demo__img { border-radius: 18px; overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,.5), 0 0 0 1px var(--line); transform: perspective(2400px) rotateY(-7deg) rotateX(2deg) scale(.96); transition: transform .8s var(--ease); }
.demo:hover .demo__img { transform: perspective(1400px) rotateY(0) rotateX(0) scale(1.02); }

/* ---------- Pakete ---------- */
.plans { display: grid; gap: 18px; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, 1fr); align-items: stretch; } }
.plan { position: relative; background: linear-gradient(160deg, #111a2c, #0b1120); border-radius: 30px; padding: 36px 30px; display: flex; flex-direction: column; gap: 14px; box-shadow: inset 0 0 0 1px var(--line); }
.plan h3 { font-size: 1.4rem; }
.plan__price { font-size: 1.05rem; color: var(--muted); }
.plan__price span { color: var(--text); font-size: 2.4rem; font-weight: 700; letter-spacing: -0.04em; }
.plan__desc { color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 8px 0 18px; display: grid; gap: 11px; }
.plan li { position: relative; padding-left: 28px; }
.plan li::before { content: ""; position: absolute; left: 0; top: .3em; width: 17px; height: 17px; border-radius: 50%; background: rgba(159,180,217,.16); box-shadow: inset 0 0 0 1px rgba(207,224,255,.35); }
.plan li::after { content: ""; position: absolute; left: 5.5px; top: calc(.3em + 5px); width: 6px; height: 3.5px; border-left: 1.8px solid var(--ice); border-bottom: 1.8px solid var(--ice); transform: rotate(-45deg); }
.plan .btn { margin-top: auto; }
.plan--featured { background: linear-gradient(160deg, #16223a, #0c1426) padding-box, conic-gradient(from var(--ang, 0deg), rgba(207,224,255,.9), rgba(90,120,180,.25), rgba(207,224,255,.9), rgba(90,120,180,.25), rgba(207,224,255,.9)) border-box; border: 1px solid transparent; box-shadow: 0 30px 90px -30px rgba(120,160,230,.45); animation: spin 8s linear infinite; }
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes spin { to { --ang: 360deg; } }
.plan__badge { position: absolute; top: 22px; right: 22px; font-size: .75rem; font-weight: 700; letter-spacing: .06em; padding: 5px 12px; border-radius: 999px; background: linear-gradient(180deg, #f6f9fe, #c8d5ea); color: #0a1020; }
.plans__note { text-align: center; color: var(--muted); margin-top: 28px; }

/* ---------- FAQ ---------- */
#faq-title { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.2rem); margin-bottom: 30px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 26px 0; font-size: 1.2rem; font-weight: 600; letter-spacing: -0.02em; display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 11px; height: 11px; border-right: 1.8px solid var(--silver); border-bottom: 1.8px solid var(--silver); transform: rotate(45deg) translateY(-4px); transition: transform .35s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.faq details p { color: var(--muted); padding: 0 0 26px; max-width: 680px; font-size: 1.05rem; }

/* ---------- Kontakt ---------- */
.contact { position: relative; padding: 16vh 0 18vh; overflow: hidden; }
.contact__glow { position: absolute; left: 50%; top: 45%; width: 90vmax; height: 55vmax; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(70,110,190,.35), transparent); pointer-events: none; }
.contact__grid { position: relative; display: grid; gap: 56px; }
@media (min-width: 960px) { .contact__grid { grid-template-columns: 1.1fr .9fr; align-items: center; } }
.contact__lead { color: var(--muted); font-size: 1.2rem; margin: 22px 0 32px; max-width: 520px; }
.contact__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.contact__list li { display: grid; gap: 2px; }
.contact__list span { color: var(--dim); font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; }
.contact__list a { font-size: 1.25rem; font-weight: 600; text-decoration: none; }
.contact__list a:hover { color: var(--ice); }
.form { background: rgba(14,21,36,.7); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-radius: 30px; padding: 30px; box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 14px; }
.hp { position: absolute; left: -9999px; }
.field { position: relative; }
.field input, .field textarea { width: 100%; font: inherit; color: var(--text); background: rgba(5,8,15,.6); border: 1px solid var(--line); border-radius: 14px; padding: 24px 16px 10px; resize: vertical; transition: border-color .25s, background .25s, box-shadow .25s; }
.field textarea { min-height: 120px; }
.field label { position: absolute; left: 17px; top: 17px; color: var(--muted); pointer-events: none; transition: transform .25s var(--ease), color .25s; transform-origin: left top; }
.field input:focus, .field textarea:focus { outline: none; border-color: rgba(207,224,255,.55); background: rgba(5,8,15,.8); box-shadow: 0 0 0 4px rgba(159,180,217,.12); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-10px) scale(.75); color: var(--ice); }
.field.bad input { border-color: #ff6b6b; }
.form__err { color: #ff9a9a; font-size: .92rem; }
.form__err:empty { display: none; }
.form__ok { text-align: center; color: var(--ice); font-weight: 600; }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--dim); font-size: .85rem; }
.foot__inner { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; }
.foot nav { display: flex; gap: 22px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--text); }

/* ---------- Ohne JS / reduzierte Bewegung ---------- */
html:not(.js) .hero, html:not(.js) .show, html:not(.js) .flow, .reduced .hero, .reduced .show, .reduced .flow { height: auto; }
html:not(.js) .hero__sticky, .reduced .hero__sticky { position: relative; min-height: 100vh; }
html:not(.js) .show__sticky, html:not(.js) .flow__sticky, .reduced .show__sticky, .reduced .flow__sticky { position: relative; height: auto; padding: 12vh 0; }
.reduced .flow__track, html:not(.js) .flow__track { overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; }
.reduced .step { scroll-snap-align: start; }
.reduced .statement__text .w { color: var(--text); }
.reduced .scard { position: relative; top: auto; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .hero__in { opacity: 1; transform: none; filter: none; }
  .type { width: auto; }
}

/* ---------- 3D-Verwandlungsbühne ---------- */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.scene3d { position: relative; height: 620vh; background: radial-gradient(ellipse 80% 60% at 65% 45%, #12203a 0%, var(--bg) 70%); }
.scene3d__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.scene3d__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.scene3d__text { position: relative; height: 100%; display: flex; align-items: center; pointer-events: none; }
.m3d { max-width: 460px; }
.m3d__intro { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); margin-bottom: 26px; }
.m3d__caps { position: relative; min-height: 15rem; }
.m3d-cap { position: absolute; inset: 0 0 auto 0; opacity: 0; transform: translateY(20px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.m3d-cap.is-active { opacity: 1; transform: none; filter: none; }
.m3d-cap h3 { font-size: clamp(2.4rem, 1.4rem + 2.8vw, 4rem); letter-spacing: -0.045em; line-height: 1.02; }
.m3d__lead { color: var(--muted); font-size: 1.05rem; margin-top: 26px; max-width: 380px; }
.scene3d__badge { position: absolute; right: var(--gut); bottom: 24px; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
@media (max-width: 799px) {
  .scene3d { height: 560vh; }
  .scene3d__text { align-items: flex-end; padding-bottom: 9vh; }
  .m3d__intro { display: none; }
  .m3d__caps { min-height: 10.5rem; }
  .m3d-cap h3 { font-size: 2.1rem; }
  .m3d__lead { display: none; }
  .scene3d__badge { display: none; }
}
.no-webgl .scene3d, .reduced .scene3d { height: auto; }
.no-webgl .scene3d__sticky, .reduced .scene3d__sticky { position: relative; height: auto; min-height: 100vh; }
.no-webgl .m3d-cap, .reduced .m3d-cap { position: relative; opacity: 1; transform: none; filter: none; margin-bottom: 30px; }
.no-webgl .m3d__caps, .reduced .m3d__caps { min-height: 0; }
.no-webgl .scene3d__canvas { display: none; }

/* ---------- Impressum & Datenschutz (Einblendung über :target) ---------- */
.legal { position: fixed; inset: 0; z-index: 300; display: none; background: rgba(4,7,14,.72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); overflow-y: auto; padding: 72px var(--gut) 40px; }
.legal:target { display: block; animation: legalIn .45s var(--ease); }
@keyframes legalIn { from { opacity: 0; } to { opacity: 1; } }
.legal__box { position: relative; max-width: 760px; margin: 0 auto; background: linear-gradient(160deg, #111a2c, #0b1120); border-radius: 28px; padding: clamp(28px, 5vw, 56px); box-shadow: inset 0 0 0 1px var(--line), 0 40px 120px rgba(0,0,0,.6); }
.legal h2 { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); margin-bottom: 24px; }
.legal h3 { font-size: 1.1rem; margin: 28px 0 8px; color: var(--ice); }
.legal p { color: #b6c1d3; margin-bottom: 12px; line-height: 1.65; }
.legal a { color: var(--ice); }
.legal__close { position: absolute; top: 18px; right: 20px; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-size: 1.6rem; line-height: 1; text-decoration: none; color: var(--text) !important; background: rgba(159,180,217,.1); box-shadow: inset 0 0 0 1px var(--line); }
.legal__close:hover { background: rgba(159,180,217,.2); }
.legal__date { color: var(--dim) !important; font-size: .9rem; margin-top: 24px; }
.form__legal { font-size: .82rem; color: var(--dim); }
.form__legal a { color: var(--silver); }
.legal h2 { padding-right: 48px; -webkit-hyphens: auto; hyphens: auto; overflow-wrap: break-word; }
@media (max-width: 600px) { .legal h2 { font-size: 1.75rem; } .legal { padding-top: 64px; } }

/* ---------- Feinschliff & Performance ---------- */
/* Endlos-Animationen anhalten, wenn der Abschnitt nicht sichtbar ist */
.is-off *, .is-off *::before, .is-off *::after, .is-off::before, .is-off::after { animation-play-state: paused !important; }
/* Seitlicher Ablauf: Abstand nach der letzten Karte */
.flow__track::after { content: ""; flex: none; width: 1px; margin-left: calc(var(--gut) - 21px); }
/* Kleine Handys */
@media (max-width: 380px) {
  :root { --gut: 16px; }
  .nav .btn--sm { padding: 8px 13px; font-size: .8rem; }
  .logo { gap: 8px; font-size: .95rem; }
  .logo svg { width: 26px; height: 26px; }
}
/* Kartenstapel auf dem Handy kompakter, damit jede Karte ganz lesbar ist */
@media (max-width: 899px) {
  .scard { min-height: 0; padding: 26px 22px; gap: 20px; border-radius: 26px; margin-bottom: 5vh; }
  .scard h3 { font-size: 2rem; margin-bottom: 12px; }
  .scard p { font-size: 1rem; }
  .scard__n { margin-bottom: 12px; }
  .scard__vis { height: 150px; }
  .vis-phone > div { width: 76px; height: 124px; border-radius: 18px; padding: 14px 9px; gap: 7px; }
  .vis-phone span { height: 8px; border-radius: 4px; }
  .vis-phone span:first-child { height: 30px; }
  .vis-phone i { left: 9px; right: 9px; bottom: 11px; height: 20px; }
  .vis-search { padding: 16px; gap: 10px; }
  .sbar { padding: 10px 14px; font-size: .9rem; }
  .sres { padding: 10px 12px; gap: 6px; }
  .sres.dim { display: none; }
}
@media (max-height: 620px) { .scard { position: relative; top: auto; } }

/* ---------- Flüssiges Scrollen auf Handy & Tablet ---------- */
.show__sticky, .scene3d__sticky, .flow__sticky, .hero__sticky { contain: layout paint; }
.mac, .mac__lid, .phone { backface-visibility: hidden; }
.cap.is-active, .m3d-cap.is-active { transform: translateY(0); }
@media (pointer: coarse), (max-width: 899px) {
  /* Glas-Unschärfe ist über bewegten Inhalten sehr teuer → solide Leiste */
  .nav, .nav.is-scrolled { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(7,11,20,.94); }
  .form { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(14,21,36,.96); }
  .mac__bezel { box-shadow: inset 0 0 0 1.5px #232b3b, 0 0 0 1px #000; }
  .phone { box-shadow: inset 0 0 0 1.5px #333c4d, 0 0 0 1px #000; }
  .mac__glare { display: none; }
  .show__ambient { transition: none; }
  .stars--b { animation: none; }
}
.form button[disabled] { opacity: .7; cursor: progress; }
.form__err:not(:empty) { background: rgba(255,107,107,.1); border-radius: 12px; padding: 12px 14px; }
.form__ok:not([hidden]) { background: rgba(159,180,217,.1); border-radius: 14px; padding: 18px; font-size: 1.1rem; }
