/* ================= Walnaro Plus – Startseite ================= */
/* Intro */
.wp-intro { position: fixed; inset: 0; z-index: 10001; display: grid; place-items: center; background: #07060d; transition: clip-path .9s cubic-bezier(.7, 0, .2, 1), opacity .9s; clip-path: circle(150% at 50% 50%); }
.wp-intro.out { clip-path: circle(0% at 50% 50%); opacity: .4; pointer-events: none; }
.wp-intro .in { display: grid; justify-items: center; gap: 18px; }
.wp-intro img { width: 92px; height: 92px; filter: drop-shadow(0 0 30px rgba(139, 92, 246, .8)); animation: wp-pop .8s cubic-bezier(.2, 1.4, .3, 1) both; }
.wp-intro b { font: 900 clamp(28px, 6vw, 54px)/1 system-ui, "Segoe UI", sans-serif; letter-spacing: .3em; background: linear-gradient(90deg, #22d3ee, #8b5cf6, #ec4899); -webkit-background-clip: text; background-clip: text; color: transparent; animation: wp-rise .9s .15s cubic-bezier(.2, .8, .2, 1) both; }
.wp-intro .bar { width: 180px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.wp-intro .bar i { display: block; height: 100%; width: 100%; transform-origin: 0 50%; background: linear-gradient(90deg, #22d3ee, #8b5cf6, #ec4899); animation: wp-load 1s .1s cubic-bezier(.6, 0, .2, 1) both; }
@keyframes wp-pop { from { transform: scale(.3) rotate(-20deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes wp-rise { from { transform: translateY(20px); opacity: 0; letter-spacing: .8em; } to { transform: none; opacity: 1; } }
@keyframes wp-load { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Hero: schwebende Bloecke */
.hero { position: relative; }
.wp-cubes { position: absolute; inset: 0; pointer-events: none; perspective: 900px; z-index: 0; overflow: visible; }
.hero > *:not(.wp-cubes) { position: relative; z-index: 1; }
.wp-cube { position: absolute; width: var(--s); height: var(--s); transform-style: preserve-3d; animation: wp-spin var(--d) linear infinite, wp-bob calc(var(--d) / 3) ease-in-out infinite alternate; opacity: .9; }
.wp-cube i { position: absolute; inset: 0; border-radius: 4px; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .12), inset 0 0 18px rgba(0, 0, 0, .35); }
.wp-cube i:nth-child(1) { transform: translateZ(calc(var(--s) / 2)); background: var(--c1); }
.wp-cube i:nth-child(2) { transform: rotateY(180deg) translateZ(calc(var(--s) / 2)); background: var(--c1); }
.wp-cube i:nth-child(3) { transform: rotateY(90deg) translateZ(calc(var(--s) / 2)); background: var(--c2); }
.wp-cube i:nth-child(4) { transform: rotateY(-90deg) translateZ(calc(var(--s) / 2)); background: var(--c2); }
.wp-cube i:nth-child(5) { transform: rotateX(90deg) translateZ(calc(var(--s) / 2)); background: var(--c3); }
.wp-cube i:nth-child(6) { transform: rotateX(-90deg) translateZ(calc(var(--s) / 2)); background: var(--c2); }
@keyframes wp-spin { from { transform: rotateX(-20deg) rotateY(0deg); } to { transform: rotateX(-20deg) rotateY(360deg); } }
@keyframes wp-bob { from { translate: 0 -10px; } to { translate: 0 14px; } }
.wp-par { transition: transform .25s ease-out; will-change: transform; }

/* Wechselnder Untertitel */
.wp-rot { display: inline-block; min-width: 7ch; text-align: left; font-weight: 800; background: linear-gradient(90deg, #67e8f9, #c4b5fd, #f9a8d4); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wp-rot::after { content: "▍"; color: #c4b5fd; -webkit-text-fill-color: #c4b5fd; animation: wp-caret 1s steps(1) infinite; margin-left: 2px; }
@keyframes wp-caret { 50% { opacity: 0; } }
.wp-sub { margin-top: 6px; font-size: clamp(15px, 2.2vw, 20px); color: #a39cbf; }

/* Live-Laufband */
.wp-ticker { position: relative; overflow: hidden; margin: 26px auto 0; max-width: 1100px; border-radius: 16px; background: rgba(20, 16, 38, .55); border: 1px solid rgba(255, 255, 255, .08); -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.wp-track { display: flex; gap: 34px; width: max-content; padding: 12px 0; animation: wp-marq var(--dur, 40s) linear infinite; }
.wp-ticker:hover .wp-track { animation-play-state: paused; }
.wp-item { display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; color: #e9e5ff; font-size: 14px; }
.wp-item img { width: 22px; height: 22px; border-radius: 5px; image-rendering: pixelated; box-shadow: 0 0 0 1px rgba(255, 255, 255, .15); }
.wp-item .tag { font-size: 11px; font-weight: 800; letter-spacing: .08em; padding: 2px 7px; border-radius: 99px; background: rgba(139, 92, 246, .25); color: #c4b5fd; }
.wp-item .tag.on { background: rgba(74, 222, 128, .18); color: #86efac; }
@keyframes wp-marq { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* In 3 Schritten */
.wp-steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; max-width: 1100px; margin: 0 auto; }
.wp-steps::before { content: ""; position: absolute; left: 8%; right: 8%; top: 38px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .08); }
.wp-steps .line { position: absolute; left: 8%; top: 38px; height: 3px; border-radius: 3px; width: calc(84% * var(--p, 0)); background: linear-gradient(90deg, #22d3ee, #8b5cf6, #ec4899); box-shadow: 0 0 14px rgba(139, 92, 246, .8); transition: width .2s linear; }
.wp-step { position: relative; text-align: center; padding: 0 10px; }
.wp-step .n { position: relative; z-index: 1; width: 76px; height: 76px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 22px; font-size: 32px; background: rgba(24, 19, 46, .95); border: 1px solid rgba(255, 255, 255, .12); transition: transform .5s cubic-bezier(.2, 1.4, .3, 1), box-shadow .5s, border-color .5s; }
.wp-step.on .n { transform: translateY(-4px) scale(1.06); border-color: rgba(196, 181, 253, .7); box-shadow: 0 0 0 6px rgba(139, 92, 246, .15), 0 12px 40px rgba(139, 92, 246, .5); }
.wp-step b { display: block; font-size: 18px; margin-bottom: 6px; color: #f4f1fd; }
.wp-step p { margin: 0; color: #a39cbf; font-size: 14.5px; line-height: 1.5; }
@media (max-width: 760px) { .wp-steps { grid-template-columns: 1fr; } .wp-steps::before, .wp-steps .line { display: none; } }

/* Wellen zwischen Abschnitten */
.wp-wave { display: block; width: 100%; height: 60px; margin: -10px 0; opacity: .5; pointer-events: none; }
.wp-wave path { animation: wp-wave 9s ease-in-out infinite alternate; }
.wp-wave path:nth-child(2) { animation-duration: 13s; opacity: .6; }
@keyframes wp-wave { from { transform: translateX(-4%); } to { transform: translateX(4%); } }

/* Navigation: aktiver Abschnitt */
.nav .links a { position: relative; }
.nav .links a::after { content: ""; position: absolute; left: 10%; right: 10%; bottom: -4px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, #22d3ee, #ec4899); transform: scaleX(0); transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.nav .links a:hover::after, .nav .links a.wp-act::after { transform: scaleX(1); }
.nav .links a.wp-act { color: #fff; }

/* Nach oben */
.wp-top { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; color: #fff; font-size: 20px; background: rgba(20, 16, 38, .85); box-shadow: 0 10px 30px rgba(0, 0, 0, .5); opacity: 0; transform: translateY(20px) scale(.8); transition: opacity .35s, transform .35s cubic-bezier(.2, 1.4, .3, 1); }
.wp-top.show { opacity: 1; transform: none; }
.wp-top svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.wp-top circle { fill: none; stroke-width: 3; }
.wp-top:hover { transform: translateY(-3px) scale(1.06); }

/* Live-Zahl blinkt bei Aenderung */
.wp-bump { animation: wp-bump .7s cubic-bezier(.2, 1.4, .3, 1); }
@keyframes wp-bump { 40% { transform: scale(1.25); color: #86efac; text-shadow: 0 0 18px rgba(74, 222, 128, .8); } }

@media (prefers-reduced-motion: reduce) {
  .wp-intro, .wp-cubes, .wp-wave { display: none !important; }
  .wp-track { animation: none; }
  .wp-cube, .wp-rot::after { animation: none; }
}

/* Schriftzug fluessig: eigene Ebene, kein zusaetzlicher Schimmer darueber */
.hero h1, .hero h1.fx2-h1 { animation: none !important; background: none !important; -webkit-text-fill-color: initial !important; transform: none !important; }
.word { will-change: transform; transform: translateZ(0); filter: drop-shadow(0 14px 34px rgba(139, 92, 246, .3)) !important; }
.word span { will-change: transform, opacity; backface-visibility: hidden; }
.wp-par { will-change: transform; }
