/* ===== Extra-Schwung: Animationen (lokal, ohne Bibliothek) ===== */

/* Seitenstart */
.js body { animation: pagein .6s var(--ease) both; }
@keyframes pagein { from { opacity: 0; } }

/* Wort-für-Wort-Überschriften */
.js [data-split].reveal { opacity: 1; transform: none; }
.js [data-split] .w { display: inline-block; opacity: 0; transform: translateY(.55em) rotate(2deg); filter: blur(6px); transition: opacity .6s var(--ease), transform .7s var(--ease), filter .6s var(--ease); transition-delay: calc(var(--i) * 55ms + var(--d, 0ms)); }
.js [data-split].in .w { opacity: 1; transform: none; filter: none; }

/* Hero: schwebende Farbflächen */
.blobs { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.blobs i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; will-change: transform; }
.blobs i:nth-child(1) { width: 380px; height: 380px; background: #1a9a8c; left: -90px; top: -80px; animation: drift1 16s ease-in-out infinite alternate; }
.blobs i:nth-child(2) { width: 320px; height: 320px; background: #2563eb; right: 6%; top: 30%; opacity: .28; animation: drift2 19s ease-in-out infinite alternate; }
.blobs i:nth-child(3) { width: 280px; height: 280px; background: #3fd0bf; left: 38%; bottom: -120px; opacity: .3; animation: drift3 22s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(160px, 90px) scale(1.2); } }
@keyframes drift2 { to { transform: translate(-140px, -70px) scale(.85); } }
@keyframes drift3 { to { transform: translate(-120px, -60px) scale(1.25); } }

/* Laufband */
.marquee { background: var(--ink); border-block: 1px solid #22363d; overflow: hidden; padding: 16px 0; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 28px; width: max-content; animation: marquee 48s linear infinite; font: 600 15px ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .08em; text-transform: uppercase; color: #9db6bd; white-space: nowrap; }
.marquee-track b { color: var(--teal-bright); font-weight: 400; font-size: 11px; align-self: center; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Kennzahlen */
.stats { background: var(--bg); border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-top: 48px; padding-bottom: 48px; }
.stat { text-align: center; }
.stat strong { display: block; font-size: clamp(38px, 5vw, 60px); line-height: 1; font-weight: 800; letter-spacing: -.03em; background: linear-gradient(120deg, var(--teal-dark), var(--teal-bright)); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 8px; color: var(--muted); font-size: 15px; }

/* Karten: Spotlight + 3D-Neigung */
.card, .pcard, .step { --mx: 50%; --my: 50%; position: relative; }
.card::after, .pcard::after, .step::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(360px circle at var(--mx) var(--my), color-mix(in srgb, var(--teal-bright) 22%, transparent), transparent 60%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.card:hover::after, .pcard:hover::after, .step:hover::after { opacity: 1; }
.is-tilt { transition: transform .12s linear, box-shadow .3s !important; will-change: transform; }

/* Buttons: Glanz-Sweep */
.btn { position: relative; overflow: hidden; }
.btn::after { content: ""; position: absolute; top: 0; left: -80%; width: 50%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent); transform: skewX(-20deg); transition: left .6s var(--ease); pointer-events: none; }
.btn:hover::after { left: 130%; }
.btn-ghost::after { display: none; }

/* Icons in Karten */
.card-icon { transition: background .3s, color .3s; }
.card:hover .card-icon { animation: wiggle .6s var(--ease); background: var(--teal); color: #fff; }
@keyframes wiggle { 30% { transform: rotate(-9deg) scale(1.1); } 60% { transform: rotate(6deg) scale(1.05); } }

/* Architektur: Datenpakete */
.arch-svg .pkt { fill: var(--teal-bright); filter: drop-shadow(0 0 6px var(--teal-bright)); }
.arch-svg .node rect { animation: nodeGlow 4s ease-in-out infinite; }
.arch-svg .node:nth-of-type(2) rect { animation-delay: 1.3s; }
.arch-svg .node:nth-of-type(3) rect { animation-delay: 2.6s; }
@keyframes nodeGlow { 50% { stroke-width: 3.2; filter: drop-shadow(0 0 10px color-mix(in srgb, var(--teal) 55%, transparent)); } }

/* Schritte: Verbindungslinie zeichnet sich beim Scrollen */
.steps { --line: 0; }
.steps::before { content: ""; position: absolute; left: 6%; right: 6%; top: 45px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--teal), var(--teal-bright)); transform: scaleX(var(--line)); transform-origin: 0 50%; z-index: 0; opacity: .55; }
.step { z-index: 1; }
.step-no { transition: transform .4s var(--ease), box-shadow .4s; }
.step:hover .step-no { transform: scale(1.18) rotate(-8deg); box-shadow: 0 0 0 8px color-mix(in srgb, var(--teal) 22%, transparent); }

/* Produktbild: Parallax */
.product-visual { translate: 0 var(--py, 0px); }

/* Eyebrow: Linie wächst */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 0; height: 2px; background: currentColor; transition: width .8s var(--ease) .2s; }
.eyebrow.in::before, .section-head.in .eyebrow::before { width: 32px; }

/* Badge pulsiert */
.badge { animation: badgePulse 3s ease-in-out infinite; }
@keyframes badgePulse { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, #f59e0b 14%, transparent); } }

@media (max-width: 1000px) { .stats-grid { grid-template-columns: 1fr 1fr; } .steps::before { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .js [data-split] .w { opacity: 1 !important; transform: none !important; filter: none !important; }
  .marquee-track { animation: none !important; }
  .arch-svg .pkt { display: none; }
  .js body { animation: none; }
  .eyebrow::before { width: 32px; }
}

/* Erfahrung / Prozessoptimierung */
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.about-grid .section-lead { margin-bottom: 14px; }
.about-points { margin-top: 18px; }
.about-points li { font-weight: 500; color: var(--heading); }
@media (max-width: 1000px) { .about-grid { grid-template-columns: 1fr; gap: 24px; } }

/* Film */
.video-wrap { display: flex; justify-content: center; margin-bottom: 36px; }
.video-wrap video { width: 100%; max-width: 360px; max-height: 80vh; aspect-ratio: 9 / 16; background: #000; border-radius: 22px; box-shadow: 0 24px 60px rgba(11,21,25,.3); object-fit: contain; }
