/* ═══════════════════════════════════════════════════════
   ALPENA — FX Layer
   Scroll-Reveal · Orbs · Counter · Parallax · Shine
   ═══════════════════════════════════════════════════════ */

/* ─── Scroll Reveal ──────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s cubic-bezier(.22,.68,0,1.2),
              transform 0.75s cubic-bezier(.22,.68,0,1.2);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.10s; }
.reveal-d2 { transition-delay: 0.20s; }
.reveal-d3 { transition-delay: 0.32s; }
.reveal-d4 { transition-delay: 0.44s; }
.reveal-d5 { transition-delay: 0.56s; }

/* ─── Orb: animated brand-color blob ────────────────── */
.fx-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}
@keyframes orb1 {
  0%,100% { transform: translate(0,0) scale(1); }
  33%      { transform: translate(40px,-30px) scale(1.08); }
  66%      { transform: translate(-25px,20px) scale(0.93); }
}
@keyframes orb2 {
  0%,100% { transform: translate(0,0) scale(1); }
  40%     { transform: translate(-35px,25px) scale(1.06); }
  70%     { transform: translate(20px,-15px) scale(0.96); }
}
.fx-orb-1 { animation: orb1 14s ease-in-out infinite; }
.fx-orb-2 { animation: orb2 18s ease-in-out infinite 3s; }
.fx-orb-3 { animation: orb1 22s ease-in-out infinite 7s; }

/* ─── Noise / Grain overlay ──────────────────────────── */
.fx-noise::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px;
  pointer-events: none;
  z-index: 1;
  opacity: 0.6;
  mix-blend-mode: overlay;
}

/* ─── Hero text entrance ─────────────────────────────── */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}
.fx-hero-eyebrow { animation: heroFadeUp 0.6s ease both 0.1s; }
.fx-hero-h1      { animation: heroFadeUp 0.7s ease both 0.25s; }
.fx-hero-sub     { animation: heroFadeUp 0.7s ease both 0.45s; }
.fx-hero-meta    { animation: heroFadeUp 0.7s ease both 0.65s; }

/* ─── Animated underline on .u ───────────────────────── */
.u {
  text-decoration: none !important;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 3px;
  transition: background-size 0.8s cubic-bezier(.22,.68,0,1.2) 0.5s;
}
.u.visible, .fx-hero-h1 .u {
  background-size: 100% 3px;
  transition-delay: 0.9s;
}

/* ─── Counter number pop ─────────────────────────────── */
@keyframes numPop {
  0%   { opacity: 0; transform: scale(0.7) translateY(8px); }
  70%  { transform: scale(1.08) translateY(-2px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
.num-pop { animation: numPop 0.55s cubic-bezier(.22,.68,0,1.2) both; }

/* ─── Button shine sweep ─────────────────────────────── */
.btn { position: relative; overflow: hidden; }
.btn::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
  transform: skewX(-15deg);
  transition: left 0s;
}
.btn:hover::after {
  left: 160%;
  transition: left 0.5s ease;
}

/* ─── Card tilt (3-Karten) ───────────────────────────── */
.hub-quick a {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  transform-style: preserve-3d;
}
.hub-quick a:hover {
  box-shadow: 0 24px 48px rgba(0,0,0,0.5);
}

/* ─── Stat card subtle glow ──────────────────────────── */
@keyframes statGlow {
  0%,100% { box-shadow: 0 0 0 rgba(0,0,0,0); }
  50%     { box-shadow: 0 0 30px rgba(192,160,96,0.08); }
}

/* ─── Section mesh background ────────────────────────── */
.fx-mesh {
  position: relative;
  overflow: hidden;
}
.fx-mesh::before {
  content: '';
  position: absolute;
  inset: -50%;
  background: conic-gradient(
    from 0deg at 30% 40%,
    transparent 0deg,
    rgba(27,143,208,0.04) 60deg,
    transparent 120deg,
    rgba(61,170,106,0.04) 180deg,
    transparent 240deg,
    rgba(192,160,96,0.04) 300deg,
    transparent 360deg
  );
  animation: meshSpin 40s linear infinite;
  pointer-events: none;
  z-index: 0;
}
@keyframes meshSpin {
  to { transform: rotate(360deg); }
}
.fx-mesh > * { position: relative; z-index: 1; }

/* ─── Parallax hero visual ───────────────────────────── */
.fx-parallax { will-change: transform; }

/* ─── Gradient border on accent stat ────────────────── */
.hub-intro-stats .stat {
  position: relative;
  transition: transform 0.3s ease;
}
.hub-intro-stats .stat:hover { transform: translateY(-4px); }

/* ─── Scroll progress bar ────────────────────────────── */
#fx-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, #1B8FD0, #3DAA6A, #C0A060);
  z-index: 9999;
  transition: width 0.05s linear;
  pointer-events: none;
}

/* ─── Nav link underline animation ──────────────────── */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: currentColor;
  transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }


/* ═══════════════════════════════════════════════════════
   UNIFIED NAV — alle 4 Seiten
   ═══════════════════════════════════════════════════════ */

.nav {
  position: sticky !important;
  top: 0 !important;
  z-index: 100 !important;
  background: rgba(8,11,14,0.82) !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
  border-bottom: 1px solid rgba(255,255,255,0.08) !important;
  /* Gradient accent line at bottom */
  box-shadow:
    0 1px 0 rgba(255,255,255,0.04),
    0 4px 24px rgba(0,0,0,0.4) !important;
}
/* Gradient accent line */
.nav::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--accent, #1B8FD0) 30%,
    var(--accent, #1B8FD0) 70%,
    transparent 100%
  );
  opacity: 0.5;
}
/* Index: 3-color gradient */
.nav:not([data-brand]) .nav::after,
body:not([data-brand]) .nav::after {
  background: linear-gradient(90deg,
    #1B8FD0 0%, #3DAA6A 50%, #C0A060 100%
  );
  opacity: 0.5;
}

.nav-inner {
  max-width: var(--maxw) !important;
  margin: 0 auto !important;
  padding: 0 var(--pad-x) !important;
  display: flex !important;
  align-items: stretch !important;
  height: 68px !important;
  position: relative !important;
}

/* Logo */
.nav-logo {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
  gap: 4px !important;
  padding-right: 24px !important;
  border-right: 1px solid rgba(255,255,255,0.08) !important;
  position: relative !important;
  flex-shrink: 0 !important;
}
.nav-logo img { height: 28px !important; width: auto !important; display: block !important; }
.nav-logo .sub {
  font-size: 9px !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  padding: 2px 8px !important;
  background: var(--accent) !important;
  color: #fff !important;
  border-radius: 3px !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  box-shadow: 0 0 10px color-mix(in srgb, var(--accent) 40%, transparent) !important;
}
.nav-logo .sub::after { content: "▾"; font-size: 8px; opacity: 0.7; }

/* Dropdown */
.nav-sparten-drop {
  position: absolute !important;
  top: calc(100% + 8px) !important;
  left: 0 !important;
  background: rgba(10,13,16,0.96) !important;
  backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(255,255,255,0.10) !important;
  border-radius: 6px !important;
  padding: 8px 0 !important;
  min-width: 180px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(-6px) !important;
  transition: opacity 0.2s ease, transform 0.2s ease !important;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5) !important;
}
.nav-logo:hover .nav-sparten-drop,
.nav-sparten-drop:hover {
  opacity: 1 !important;
  pointer-events: all !important;
  transform: none !important;
}
.nav-sparten-drop a {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 10px 16px !important;
  font-size: 13px !important;
  color: rgba(255,255,255,0.75) !important;
  transition: background 0.15s, color 0.15s !important;
}
.nav-sparten-drop a:hover,
.nav-sparten-drop a.active { background: rgba(255,255,255,0.05) !important; color: #fff !important; }
.sd-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }

/* Nav links (center) */
.nav-links {
  position: absolute !important;
  left: 0; right: 0; top: 0; bottom: 0 !important;
  display: flex !important;
  justify-content: center !important;
  align-items: stretch !important;
  list-style: none !important;
  padding: 0 !important; margin: 0 !important;
  pointer-events: none !important;
}
.nav-links > li { pointer-events: all !important; display: flex !important; }
.nav-links a {
  display: flex !important;
  align-items: center !important;
  padding: 0 18px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: rgba(255,255,255,0.55) !important;
  transition: color 0.2s !important;
  position: relative !important;
  letter-spacing: 0.01em !important;
}
.nav-links a:hover { color: rgba(255,255,255,0.9) !important; }
.nav-links a.current { color: #fff !important; }
.nav-links a.current::after {
  content: "" !important;
  position: absolute !important;
  bottom: 0; left: 18px; right: 18px !important;
  height: 2px !important;
  background: var(--accent, #1B8FD0) !important;
  border-radius: 2px !important;
  box-shadow: 0 0 8px var(--accent, #1B8FD0) !important;
}

/* Right: phone + CTA */
.nav-right {
  display: flex !important;
  align-items: stretch !important;
  margin-left: auto !important;
  flex-shrink: 0 !important;
}
.nav-phone {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 0 20px !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  border-left: 1px solid rgba(255,255,255,0.08) !important;
  color: rgba(255,255,255,0.75) !important;
  white-space: nowrap !important;
  transition: color 0.2s !important;
}
.nav-phone:hover { color: #fff !important; }
.nav-phone .dot {
  width: 7px; height: 7px !important;
  background: var(--accent, #3DAA6A) !important;
  border-radius: 50% !important;
  flex-shrink: 0 !important;
  box-shadow: 0 0 6px var(--accent, #3DAA6A), 0 0 0 3px rgba(255,255,255,0.08) !important;
  animation: dotPulse 2.5s ease-in-out infinite !important;
}
@keyframes dotPulse {
  0%,100% { box-shadow: 0 0 6px var(--accent,#3DAA6A), 0 0 0 3px rgba(255,255,255,0.08); }
  50%      { box-shadow: 0 0 14px var(--accent,#3DAA6A), 0 0 0 5px rgba(255,255,255,0.12); }
}
.nav-cta {
  display: flex !important;
  align-items: center !important;
  padding: 0 22px !important;
  background: var(--accent, #1B8FD0) !important;
  color: #fff !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em !important;
  transition: filter 0.2s, transform 0.2s !important;
  white-space: nowrap !important;
  box-shadow: 0 0 16px color-mix(in srgb, var(--accent,#1B8FD0) 35%, transparent) !important;
}
.nav-cta:hover { filter: brightness(1.15) !important; }
