/* ═══════════════════════════════════════════════
   JOYVIA STUDIOS — Shared Stylesheet
   ═══════════════════════════════════════════════ */

/* ── FONTS (locally hosted, DSGVO-konform) ───── */
@font-face {
  font-family: 'DM Sans';
  src: url('../fonts/dm-sans-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('../fonts/dm-sans-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('../fonts/dm-sans-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('../fonts/dm-sans-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('../fonts/dm-sans-800.woff2') format('woff2');
  font-weight: 800; font-style: normal; font-display: swap;
}

/* ── TOKENS ──────────────────────────────────── */
:root {
  --purple:      #af2cff;
  --cyan:        #2ab8ff;
  --green:       #00ff87;
  --aurora-teal: #00d4aa;
  --grad:        linear-gradient(135deg, #af2cff 0%, #7b61ff 50%, #2ab8ff 100%);
  --grad-aurora: linear-gradient(135deg, #00ff87 0%, #00d4aa 35%, #2ab8ff 65%, #af2cff 100%);

  --bg:      #06060f;
  --bg-2:    #0d0d1c;
  --bg-3:    #161628;
  --text:    #ffffff;
  --fg:      #ffffff;
  --muted:   rgba(255,255,255,.55);
  --dim:     rgba(255,255,255,.25);
  --border:  rgba(255,255,255,.07);
  --card:    rgba(255,255,255,.03);

  --ff:      'DM Sans', sans-serif;
  --nav-h:   72px;
  --r:       14px;
  --max-w:   1360px;
}

/* ── RESET ───────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; font-size: 16px; }
img   { display: block; max-width: 100%; }
a     { color: inherit; text-decoration: none; }
ul    { list-style: none; }
button { border: none; background: none; font-family: inherit; cursor: none; }
@media (hover: none) { button { cursor: pointer; } }

body {
  font-family: var(--ff);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}
@media (hover: none) { body { cursor: auto; } }

::selection { background: rgba(175,44,255,.25); }
::-webkit-scrollbar        { width: 3px; }
::-webkit-scrollbar-track  { background: var(--bg); }
::-webkit-scrollbar-thumb  { background: var(--grad); border-radius: 2px; }

/* ── CURSOR ──────────────────────────────────── */
#cursor {
  position: fixed; top: 0; left: 0;
  width: 8px; height: 8px;
  background: var(--purple);
  border-radius: 50%;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%,-50%);
}
#cursor-ring {
  position: fixed; top: 0; left: 0;
  width: 34px; height: 34px;
  border: 1.5px solid rgba(175,44,255,.45);
  border-radius: 50%;
  pointer-events: none; z-index: 9998;
  transform: translate(-50%,-50%);
  transition: width .25s, height .25s, border-color .25s;
}
#cursor-ring.big { width: 52px; height: 52px; border-color: var(--cyan); }
@media (hover: none) { #cursor, #cursor-ring { display: none; } }

/* ── NAV ─────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h); z-index: 1000;
  transition: background .4s, box-shadow .4s, backdrop-filter .4s;
}
.nav.scrolled {
  background: rgba(14,14,20,.9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 var(--border);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  height: 100%;
  padding: 0 clamp(16px,2.5vw,32px);
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-logo { flex-shrink: 0; display: flex; align-items: center; }
.nav-logo img { height: 42px; width: auto; transition: opacity .2s; }
.nav-logo:hover img { opacity: .75; }

.nav-links {
  display: flex; align-items: center;
  gap: clamp(20px,2.5vw,40px);
  margin-left: auto;
}
.nav-links a {
  font-size: .82rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted);
  position: relative;
  transition: color .2s;
  white-space: nowrap;
}
.nav-links a::after {
  content: ''; position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1.5px;
  background: var(--grad);
  transition: width .3s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--text); }
.nav-links a.active::after { width: 100%; }
.nav-links a.cta-link {
  padding: 7px 18px;
  border: 1.5px solid rgba(175,44,255,.4);
  border-radius: 40px;
  background: rgba(175,44,255,.08);
  transition: background .3s, border-color .3s;
}
.nav-links a.cta-link:hover { background: rgba(175,44,255,.2); border-color: var(--purple); }
.nav-links a.cta-link::after { display: none; }

.nav-controls { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.lang-btn {
  height: 32px; padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  color: var(--muted);
  font-family: var(--ff);
  font-size: .72rem; font-weight: 600;
  letter-spacing: .1em;
  display: flex; align-items: center; gap: 5px;
  transition: border-color .2s, color .2s;
}
.lang-btn:hover { border-color: rgba(175,44,255,.4); color: var(--text); }
.lang-btn .on  { color: var(--text); }
.lang-btn .sep { opacity: .25; }

.ham-btn {
  display: none;
  flex-direction: column; gap: 5px;
  padding: 6px; border-radius: 6px;
}
.ham-btn span {
  display: block; width: 22px; height: 1.5px;
  background: var(--text);
  transform-origin: center;
  transition: transform .3s, opacity .3s;
}
.ham-btn.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.ham-btn.open span:nth-child(2) { opacity: 0; }
.ham-btn.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu */
.mob-menu {
  display: none;
  position: fixed; inset: 0; top: var(--nav-h);
  background: rgba(10,10,15,.97);
  backdrop-filter: blur(20px);
  z-index: 999;
  flex-direction: column;
  align-items: center; justify-content: center;
  gap: 32px;
  opacity: 0; pointer-events: none;
  transition: opacity .3s;
}
.mob-menu.open { opacity: 1; pointer-events: all; }
.mob-menu a {
  font-size: clamp(1.8rem,7vw,2.4rem);
  font-weight: 700;
  color: var(--muted);
  transition: color .2s;
}
.mob-menu a:hover { color: var(--text); }

/* ── PAGE WRAPPER ────────────────────────────── */
.page { padding-top: var(--nav-h); }

/* ── SECTION ─────────────────────────────────── */
.ps {  /* page-section */
  padding: clamp(72px,10vw,120px) clamp(20px,4vw,48px);
  max-width: var(--max-w);
  margin: 0 auto;
  scroll-margin-top: var(--nav-h);
}
.ps-full {  /* full-bleed wrapper */
  scroll-margin-top: var(--nav-h);
}
.ps-full .ps { padding-top: clamp(72px,10vw,120px); padding-bottom: clamp(72px,10vw,120px); }

/* Consistent section header pattern */
.sh { margin-bottom: clamp(40px,5vw,64px); }
.sh.center { text-align: center; }
.sh.center .eyebrow { justify-content: center; }
.sh.center .desc { margin: 0 auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .72rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: ''; width: 24px; height: 1.5px;
  background: var(--grad);
}
.eyebrow::after {
  content: '✦';
  font-size: .5rem;
  color: rgba(0,255,135,.38);
  text-shadow: 0 0 6px rgba(0,255,135,.25);
  margin-left: 4px;
}
.ttl {  /* section title */
  font-size: clamp(2rem, 4.5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.025em;
  margin-bottom: 16px;
}
.desc {
  font-size: clamp(.9rem, 1.8vw, 1.05rem);
  color: var(--muted);
  max-width: 520px;
  line-height: 1.75;
}

/* Gradient text */
.gt {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── BUTTONS ─────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px;
  border-radius: 50px;
  font-family: var(--ff);
  font-size: .88rem; font-weight: 600;
  letter-spacing: .04em;
  transition: transform .2s, box-shadow .3s, opacity .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-grad {
  background: var(--grad); color: #fff;
  box-shadow: 0 0 24px rgba(175,44,255,.3);
}
.btn-grad:hover { box-shadow: 0 0 44px rgba(175,44,255,.5); opacity: .92; }
.btn-ghost {
  border: 1.5px solid var(--border);
  color: var(--text);
}
.btn-ghost:hover { border-color: rgba(255,255,255,.3); background: var(--card); }

/* ── DIVIDER ─────────────────────────────────── */
.stripe {
  background: rgba(13,13,28,0.44);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ── CARDS ───────────────────────────────────── */
.card-grid {
  display: grid;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
}
.card {
  background: rgba(13,13,28,0.46);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: clamp(24px,3vw,40px) clamp(20px,2.5vw,32px);
  position: relative;
  overflow: hidden;
  transition: background .3s;
}
.card::after {
  content: ''; position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad);
  transform: scaleX(0); transform-origin: left;
  transition: transform .4s;
}
.card:hover { background: rgba(22,22,40,0.62); }
.card:hover::after { transform: scaleX(1); }

.card-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(175,44,255,.1);
  border: 1px solid rgba(175,44,255,.2);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  color: var(--purple);
  transition: background .3s;
}
.card-icon svg { width: 20px; height: 20px; }
.card:hover .card-icon { background: rgba(175,44,255,.18); }
.card-title { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.card-text  { font-size: .85rem; color: var(--muted); line-height: 1.7; }

/* ── MARQUEE ─────────────────────────────────── */
.marquee-wrap {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 15px 0;
  overflow: hidden;
  position: relative; /* needed for ::after shimmer */
}
.marquee-wrap::before,
.marquee-wrap::after {
  content: ''; position: absolute;
  top: 0; bottom: 0; width: 80px; z-index: 2;
  pointer-events: none;
}
.marquee-wrap::before { left: 0;  background: linear-gradient(to right,  var(--bg-2), transparent); }
.marquee-wrap::after  { right: 0; background: linear-gradient(to left, var(--bg-2), transparent); }
.marquee-track { display: flex; white-space: nowrap; animation: marquee 30s linear infinite; }
.marquee-track:hover { animation-play-state: paused; }
.marquee-set {
  display: inline-flex; flex-shrink: 0;
  align-items: center;
}
.m-item {
  display: inline-flex; align-items: center; gap: 18px;
  padding: 0 18px;
  font-size: .72rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--dim);
}
.m-dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--grad); flex-shrink: 0;
}

/* ── STATS ───────────────────────────────────── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
}
.stat {
  padding: clamp(36px,5vw,56px) clamp(20px,3vw,40px);
  background: rgba(6,6,15,0.46);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  text-align: center;
}
.stat-n {
  font-size: clamp(2.8rem,5.5vw,4.5rem);
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1; margin-bottom: 8px;
}
.stat-l { font-size: .82rem; color: var(--muted); }

/* ── CLIENTS ─────────────────────────────────── */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
}
.client {
  padding: clamp(28px,3vw,44px) clamp(20px,2vw,32px);
  background: rgba(13,13,28,0.46);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  min-height: 88px;
  transition: background .3s;
}
.client:hover { background: rgba(22,22,40,0.62); }
.client img {
  max-width: 140px; max-height: 48px;
  width: auto; height: auto;
  object-fit: contain;
  filter: grayscale(1) brightness(.55);
  transition: filter .3s;
}
.client:hover img { filter: grayscale(0) brightness(1); }
.client-n {
  font-size: .95rem; font-weight: 700;
  color: var(--dim);
  text-align: center;
  transition: color .3s;
}
.client:hover .client-n { color: var(--muted); }

/* ── CTA BANNER ──────────────────────────────── */
.cta-banner {
  background: rgba(13,13,28,0.48);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: clamp(48px,7vw,80px) clamp(32px,5vw,72px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 80%; aspect-ratio: 2/1;
  background: radial-gradient(ellipse, rgba(175,44,255,.1) 0%, transparent 70%);
  pointer-events: none;
}
.cta-banner .ttl { margin-bottom: 12px; }
.cta-banner .desc { margin: 0 auto 36px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── FOOTER ──────────────────────────────────── */
.ft {
  background: #050508;
  border-top: 1px solid rgba(255,255,255,.07);
  padding: clamp(48px,7vw,72px) clamp(20px,4vw,48px) clamp(24px,4vw,40px);
}
.ft-inner { max-width: var(--max-w); margin: 0 auto; }
.ft-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: clamp(24px,4vw,48px);
  padding-bottom: clamp(32px,5vw,48px);
  border-bottom: 1px solid rgba(255,255,255,.07);
  margin-bottom: clamp(24px,4vw,36px);
}
.ft-brand p {
  font-size: .84rem; color: #5a6478;
  line-height: 1.8;
  margin: 18px 0 24px;
  max-width: 260px;
}
.ft-social { display: flex; gap: 8px; flex-wrap: wrap; }
.soc-btn {
  width: 36px; height: 36px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.07);
  display: flex; align-items: center; justify-content: center;
  color: #5a6478;
  transition: border-color .2s, color .2s, background .2s;
  cursor: none;
}
.soc-btn:hover { border-color: rgba(175,44,255,.4); color: #fff; background: rgba(175,44,255,.08); }
.soc-btn svg { width: 14px; height: 14px; }
.ft-col h4 {
  font-size: .68rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255,255,255,.25);
  margin-bottom: 18px;
}
.ft-col ul { display: flex; flex-direction: column; gap: 10px; }
.ft-col a { font-size: .84rem; color: #5a6478; transition: color .2s; }
.ft-col a:hover { color: #fff; }
.ft-bot {
  display: flex; align-items: center;
  justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.ft-copy { font-size: .78rem; color: rgba(255,255,255,.2); }
.ft-legal { display: flex; gap: 20px; }
.ft-legal a { font-size: .78rem; color: rgba(255,255,255,.2); transition: color .2s; }
.ft-legal a:hover { color: rgba(255,255,255,.45); }

/* ── REVEAL ANIMATIONS ───────────────────────── */
.rv   { opacity: 0; transform: translateY(32px); transition: opacity .7s ease, transform .7s ease; }
.rv-l { opacity: 0; transform: translateX(-32px); transition: opacity .75s ease, transform .75s ease; }
.rv-r { opacity: 0; transform: translateX(32px);  transition: opacity .75s ease, transform .75s ease; }
.rv-s { opacity: 0; transform: scale(.95);         transition: opacity .75s ease, transform .75s ease; }
.rv.on, .rv-l.on, .rv-r.on, .rv-s.on { opacity: 1; transform: none; }
.d1 { transition-delay: .1s; }
.d2 { transition-delay: .2s; }
.d3 { transition-delay: .3s; }
.d4 { transition-delay: .4s; }

/* ── KEYFRAMES ───────────────────────────────── */
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
@keyframes floatA {
  0%,100% { transform: translate(0,0) scale(1); }
  40%     { transform: translate(16px,-16px) scale(1.06); }
  70%     { transform: translate(-10px,12px) scale(.96); }
}
@keyframes floatB {
  0%,100% { transform: translate(0,0); }
  50%     { transform: translate(-14px,10px); }
}
@keyframes blink { 0%,100% { opacity:1; } 50% { opacity:0; } }
@keyframes scrollPulse {
  0%    { transform: scaleY(0); transform-origin: top; }
  50%   { transform: scaleY(1); transform-origin: top; }
  50.1% { transform: scaleY(1); transform-origin: bottom; }
  100%  { transform: scaleY(0); transform-origin: bottom; }
}

/* ── RESPONSIVE ──────────────────────────────── */
@media (max-width: 1024px) {
  .stats-row   { grid-template-columns: repeat(2,1fr); }
  .clients-grid{ grid-template-columns: repeat(3,1fr); }
  .ft-top      { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links   { display: none; }
  .ham-btn     { display: flex; }
  .mob-menu    { display: flex; }
  .nav-controls{ margin-left: auto; }
  .lang-btn    { display: none; }
  .clients-grid{ grid-template-columns: repeat(2,1fr); }
  .ft-top      { grid-template-columns: 1fr; }
  .ft-bot      { flex-direction: column; align-items: flex-start; }
}
.mob-lang-btn {
  height: 40px; padding: 0 20px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  background: rgba(255,255,255,.04);
  color: var(--muted);
  font-family: var(--ff);
  font-size: .82rem; font-weight: 600;
  letter-spacing: .1em;
  display: flex; align-items: center; gap: 6px;
  transition: border-color .2s, color .2s;
  cursor: none;
}
.mob-lang-btn:hover { border-color: rgba(175,44,255,.4); color: var(--text); }
.mob-lang-btn .on   { color: var(--text); }
.mob-lang-btn .sep  { opacity: .25; }
@media (max-width: 640px) {
  .stats-row { grid-template-columns: repeat(2,1fr); }
  .cta-actions { flex-direction: column; align-items: center; }
  .cta-actions .btn { width: 100%; max-width: 280px; justify-content: center; }
}
@media (max-width: 480px) {
  :root { --nav-h: 64px; }
  .clients-grid{ grid-template-columns: 1fr 1fr; }
}

/* ═══════════════════════════════════════════════
   AURORA ADVENTURE — Extended Theme
   ═══════════════════════════════════════════════ */

/* ── AURORA CANVAS ───────────────────────────── */
.aurora-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 4; /* above overlay(3), below grid(5) */
  pointer-events: none;
}

/* ── STAR FIELD ──────────────────────────────── */
.hero-stars {
  position: absolute; inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.star-dot {
  position: absolute;
  border-radius: 50%;
  background: white;
  animation: starTwinkle var(--dur, 3s) ease-in-out infinite var(--del, 0s);
}
@keyframes starTwinkle {
  0%, 100% { opacity: var(--op, 0.6); transform: scale(1); }
  50%       { opacity: calc(var(--op, 0.6) * 0.15); transform: scale(0.5); }
}

/* ── MOUNTAIN SILHOUETTE (inside hero) ───────── */
.mountain-silhouette {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 4; /* above overlay(3), below grid(5) and buttons(6) */
  pointer-events: none;
  line-height: 0;
}
.mountain-silhouette svg {
  display: block;
  width: 100%;
  height: clamp(120px, 20vh, 200px);
}

/* ── HORIZON AURORA GLOW ─────────────────────── */
.horizon-glow {
  position: relative;
  height: 1px;
  overflow: visible;
  pointer-events: none;
}
.horizon-glow::before {
  content: '';
  position: absolute;
  left: 5%; right: 5%;
  top: -40px; height: 80px;
  background: radial-gradient(ellipse, rgba(0,255,135,.10) 0%, rgba(0,200,255,.07) 40%, transparent 70%);
  filter: blur(12px);
  animation: horizonPulse 6s ease-in-out infinite;
}
@keyframes horizonPulse {
  0%, 100% { opacity: .6; }
  50%       { opacity: 1; }
}

/* ── FIREFLIES ───────────────────────────────── */
.firefly-wrap {
  position: fixed;
  pointer-events: none;
  z-index: 2;          /* above bg, below cards (z-index 3) */
  will-change: transform;
}
.firefly {
  position: relative;
  border-radius: 50%;
  pointer-events: none;
}
@keyframes fireflyDrift {
  0%   { transform: translate(0, 0);                               opacity: 0; }
  12%  { opacity: 1; }
  50%  { transform: translate(var(--tx, 30px), var(--ty, -40px));  opacity: 0.55; }
  88%  { opacity: 1; }
  100% { transform: translate(0, 0);                               opacity: 0; }
}
@keyframes fireflyPulse {
  0%, 100% { box-shadow: 0 0 4px 1px var(--fc, rgba(0,255,135,.7)); }
  50%       { box-shadow: 0 0 10px 3px var(--fc, rgba(0,255,135,.9)); }
}

/* ── EXPLORER COMPASS ────────────────────────── */
#explorer-path {
  position: fixed;
  left: clamp(12px, 2vw, 28px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  pointer-events: none;
  opacity: 0;
  transition: opacity .9s ease;
}
#explorer-path.visible { opacity: 1; }

.compass-widget {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  filter: drop-shadow(0 0 10px rgba(0,255,135,.12));
}
.compass-svg {
  width: 42px; height: 42px;
}
.compass-needle {
  transform-origin: 35px 35px;
  animation: needleWobble 5.5s ease-in-out infinite;
}
@keyframes needleWobble {
  0%,  100% { transform: rotate(-1.4deg); }
  22%        { transform: rotate( 1.6deg); }
  48%        { transform: rotate(-0.6deg); }
  74%        { transform: rotate( 1.1deg); }
}
.compass-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}
.coord-lat, .coord-lon {
  font-size: .43rem;
  font-weight: 600;
  letter-spacing: .08em;
  color: rgba(0,255,135,.42);
  font-family: var(--ff);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  line-height: 1.5;
}
.compass-place {
  font-size: .37rem;
  font-weight: 700;
  letter-spacing: .2em;
  color: rgba(0,255,135,.22);
  font-family: var(--ff);
  text-transform: uppercase;
  margin-top: 3px;
}

.ep-track {
  width: 1px;
  height: 80px;
  background: linear-gradient(to bottom,
    rgba(0,255,135,.18),
    rgba(0,200,255,.12),
    rgba(175,44,255,.07));
  position: relative;
  flex-shrink: 0;
}
.ep-dot {
  position: absolute;
  left: 50%;
  top: var(--p, 0%);
  transform: translate(-50%, -50%);
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px 2px rgba(0,255,135,.55);
  transition: top .35s ease;
}
@media (max-width: 900px) { #explorer-path { display: none; } }

/* ── MOUSE PARTICLE TRAIL ────────────────────── */
.cursor-particle {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9997;
  transform: translate(-50%, -50%);
  animation: particleFade var(--pd, .8s) ease forwards;
}
@keyframes particleFade {
  0%   { opacity: .9; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0;  transform: translate(-50%, -50%) scale(0.1); }
}

/* ── AURORA FLASH ────────────────────────────── */
.aurora-flash {
  position: fixed; inset: 0;
  z-index: 9990;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(ellipse at 50% 20%,
    rgba(0,255,135,.18) 0%,
    rgba(0,200,255,.14) 25%,
    rgba(175,44,255,.10) 50%,
    transparent 72%);
  animation: auroraFlashKf 2.4s ease forwards;
}
@keyframes auroraFlashKf {
  0%   { opacity: 0; }
  18%  { opacity: 1; }
  100% { opacity: 0; }
}

/* ── EASTER EGG ──────────────────────────────── */
#easter-egg {
  font-size: .6rem;
  color: rgba(255,255,255,.05);
  cursor: none;
  transition: color .5s, text-shadow .5s;
  user-select: none;
  font-family: var(--ff);
  letter-spacing: .1em;
  display: inline-block;
  margin-left: 8px;
}
#easter-egg:hover {
  color: rgba(0,255,135,.45);
  text-shadow: 0 0 14px rgba(0,255,135,.4);
}

/* ── CONSTELLATION CANVAS ────────────────────── */
#constellation-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 7; /* above grid(5) and body(6) */
  pointer-events: auto;
  opacity: 0;
  transition: opacity .6s ease;
}

/* ── CARD ENHANCEMENTS ───────────────────────── */
.card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(0,255,135,.05) 0%, transparent 65%);
  opacity: 0;
  transition: opacity .5s;
  pointer-events: none;
}
.card:hover::before { opacity: 1; }

.card-coord {
  position: absolute;
  top: 14px; right: 14px;
  font-size: .46rem;
  font-weight: 600;
  letter-spacing: .12em;
  color: rgba(255,255,255,.06);
  font-family: var(--ff);
  text-transform: uppercase;
  transition: color .4s, text-shadow .4s;
  pointer-events: none;
}
.card:hover .card-coord {
  color: rgba(0,255,135,.3);
  text-shadow: 0 0 8px rgba(0,255,135,.2);
}

/* ── SECTION AURORA AMBIENCE ─────────────────── */
#services    { position: relative; overflow: hidden; }
#about-strip { position: relative; overflow: hidden; }

/* Content above fireflies (z-index 2) */
.card-grid, .card,
.reel-player, .reel-section,
.cta-banner,
.stripe,
.clients-grid, .stats-row,
.about-vis,
.ft {
  position: relative;
  z-index: 3;
}

.section-aura {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
  animation: sectionAuraFloat 12s ease-in-out infinite;
}
.section-aura-a {
  width: 400px; height: 280px;
  top: -60px; left: -80px;
  background: radial-gradient(ellipse, rgba(0,255,135,.07), transparent);
}
.section-aura-b {
  width: 350px; height: 250px;
  top: 60px; right: -60px;
  background: radial-gradient(ellipse, rgba(42,184,255,.06), transparent);
  animation-delay: -5s;
}
.section-aura-c {
  width: 300px; height: 200px;
  bottom: -40px; left: 30%;
  background: radial-gradient(ellipse, rgba(175,44,255,.05), transparent);
  animation-delay: -9s;
}
@keyframes sectionAuraFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(20px, -15px) scale(1.05); }
  66%       { transform: translate(-15px, 10px) scale(0.97); }
}

/* ── MARQUEE AURORA SHIMMER ──────────────────── */
.marquee-wrap::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg,
    rgba(0,255,135,.03) 0%,
    transparent 50%,
    rgba(42,184,255,.03) 100%);
  pointer-events: none;
  z-index: 3;
  animation: marqueeShimmer 8s ease-in-out infinite;
}
@keyframes marqueeShimmer {
  0%, 100% { opacity: .4; }
  50%       { opacity: 1; }
}

/* ── CTA BANNER AURORA ───────────────────────── */
.cta-banner::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(0,255,135,.04) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 50%, rgba(42,184,255,.04) 0%, transparent 55%);
  pointer-events: none;
  border-radius: 20px;
  animation: ctaAuraShift 10s ease-in-out infinite;
}
@keyframes ctaAuraShift {
  0%, 100% { opacity: .6; }
  50%       { opacity: 1; }
}

/* ── LOGO HOVER GLITCH ───────────────────────── */
.hero-logo {
  transition: filter .3s;
}
.hero-logo:hover {
  animation: logoGlitch .35s ease;
}
@keyframes logoGlitch {
  0%, 100% { filter: drop-shadow(0 0 40px rgba(175,44,255,.22)) drop-shadow(0 0 0 rgba(0,255,135,0)); transform: none; }
  20%       { filter: drop-shadow(-2px 0 rgba(0,255,135,.5)) drop-shadow(2px 0 rgba(175,44,255,.5)); transform: translateX(-1px); }
  60%       { filter: drop-shadow(2px 0 rgba(0,200,255,.5)) drop-shadow(-2px 0 rgba(175,44,255,.5)); transform: translateX(1px); }
  80%       { filter: drop-shadow(0 0 60px rgba(0,255,135,.3)); transform: none; }
}

/* ── DISCOVERY RIPPLE ────────────────────────── */
@keyframes discoveryRipple {
  0%   { transform: scale(1); opacity: .5; box-shadow: 0 0 0 0 rgba(0,255,135,.4); }
  100% { transform: scale(1); opacity: 0;  box-shadow: 0 0 0 30px rgba(0,255,135,0); }
}
.card.discovered {
  animation: discoveryRipple .8s ease forwards;
}

/* ── SOUND TOGGLE ────────────────────────────── */
#sound-toggle {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(0,255,135,.2);
  background: rgba(6,6,15,.8);
  backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: center;
  z-index: 100;
  cursor: none;
  color: rgba(0,255,135,.45);
  font-size: .75rem;
  transition: border-color .3s, color .3s, background .3s;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .6s ease .5s, transform .6s ease .5s, border-color .3s, color .3s;
}
#sound-toggle.visible {
  opacity: 1;
  transform: translateY(0);
}
#sound-toggle:hover {
  border-color: rgba(0,255,135,.5);
  color: var(--green);
  background: rgba(0,255,135,.06);
}
#sound-toggle.playing {
  border-color: rgba(0,255,135,.5);
  color: var(--green);
  box-shadow: 0 0 16px rgba(0,255,135,.15);
}
@media (hover: none) { #sound-toggle { cursor: pointer; } }
@media (max-width: 768px) { #sound-toggle { bottom: 18px; right: 18px; width: 36px; height: 36px; } }

/* ── DISCOVERY HINT (hover surprise) ────────── */
.discovery-zone {
  position: absolute;
  width: 60px; height: 60px;
  border-radius: 50%;
  pointer-events: auto;
  cursor: none;
  z-index: 6;
}
.discovery-zone:hover .disc-burst {
  opacity: 1;
  transform: scale(1);
}
.disc-burst {
  position: absolute; inset: 0;
  border: 1px solid rgba(0,255,135,.3);
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity .4s, transform .4s;
}

/* ── ABOUT ORB AURORA ────────────────────────── */
.orb-a { background: rgba(0, 200, 80, .15);  }
.orb-b { background: rgba(42, 184, 255, .18); }
.orb-c { background: rgba(175, 44, 255, .12); }

/* ── NEBULA BACKGROUND ───────────────────────── */
.nebula-bg {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 900px 500px at 15% 65%, rgba(0,255,135,.022) 0%, transparent 70%),
    radial-gradient(ellipse 700px 700px at 85% 28%, rgba(175,44,255,.028) 0%, transparent 70%),
    radial-gradient(ellipse 1000px 600px at 50% 88%, rgba(42,184,255,.018) 0%, transparent 70%);
  animation: nebulaDrift 30s ease-in-out infinite;
}
@keyframes nebulaDrift {
  0%, 100% { opacity: .7; transform: scale(1); }
  50%       { opacity: 1;  transform: scale(1.04); }
}

/* ── SHOOTING STARS ──────────────────────────── */
.shooting-star {
  position: fixed;
  height: 1.5px;
  z-index: 1;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.88), rgba(255,255,255,.1));
  border-radius: 2px;
  pointer-events: none;
  transform-origin: left center;
  animation: shootStar var(--ss-dur, 1.1s) ease-out forwards;
}
@keyframes shootStar {
  0%   { opacity: 0; transform: rotate(var(--ss-angle,-26deg)) translateX(0) scaleX(1); }
  8%   { opacity: .92; }
  100% { opacity: 0; transform: rotate(var(--ss-angle,-26deg)) translateX(-900px) scaleX(.35); }
}

/* ── PAGE CONSTELLATION CANVAS ──────────────── */
#page-constellation-bg {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ── AURORA FORECAST BADGE ───────────────────── */
.aurora-badge {
  position: fixed;
  bottom: 32px; right: 32px;
  z-index: 50;
  display: flex; align-items: center; gap: 8px;
  padding: 7px 14px;
  border-radius: 40px;
  border: 1px solid rgba(0,255,135,.22);
  background: rgba(6,6,15,0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: .55rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  color: rgba(0,255,135,.60);
  opacity: 0; transform: translateY(8px);
  transition: opacity .9s ease, transform .9s ease, border-color .3s, color .3s;
  pointer-events: auto;
  cursor: pointer;
}
.aurora-badge.visible { opacity: 1; transform: translateY(0); }
.aurora-badge:hover { border-color: rgba(0,255,135,.5); color: var(--green); }
.aurora-badge.meteor { border-color: rgba(255,200,100,.6); color: rgba(255,220,120,.9); }
.aurora-badge-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px rgba(0,255,135,.8);
  flex-shrink: 0;
  animation: badgePulse 2.4s ease-in-out infinite;
}
@keyframes badgePulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 5px rgba(0,255,135,.7); }
  50%       { opacity: .45; box-shadow: 0 0 12px rgba(0,255,135,.95); }
}
@media (max-width: 768px) { .aurora-badge { bottom: 18px; right: 18px; } }

/* ── OTHER PAGES FROSTED GLASS ───────────────── */
/* leistungen.html */
.svc-item {
  background: rgba(13,13,28,0.46) !important;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.svc-item:hover { background: rgba(22,22,40,0.62) !important; }

/* about.html */
.value-item {
  background: rgba(13,13,28,0.46) !important;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.value-item:hover { background: rgba(22,22,40,0.62) !important; }
.approach-item {
  background: rgba(13,13,28,0.46) !important;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.approach-item:hover { background: rgba(22,22,40,0.62) !important; }
.ab-card-bg {
  background: rgba(22,22,40,0.42) !important;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* kontakt.html */
.contact-info {
  background: rgba(13,13,28,0.48) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.contact-form-wrap {
  background: rgba(6,6,15,0.46) !important;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.form-field input,
.form-field select,
.form-field textarea {
  background: rgba(13,13,28,0.55) !important;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* about.html — Wer wir sind panel + CTA */
.about-story-panel {
  background: rgba(13,13,28,0.46) !important;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.cta-band {
  background: rgba(13,13,28,0.46);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: clamp(48px,7vw,80px) clamp(32px,5vw,72px);
  text-align: center;
  position: relative;
}

/* Star name tooltip */
.star-tooltip {
  position: fixed;
  background: rgba(6,6,15,0.88);
  border: 1px solid rgba(0,255,135,.28);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: .52rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: rgba(0,255,135,.8);
  pointer-events: none;
  z-index: 9995;
  opacity: 0; transition: opacity .25s;
  white-space: nowrap;
}
.star-tooltip.visible { opacity: 1; }

/* Easter egg discovery toast */
.egg-toast {
  position: fixed;
  top: calc(var(--nav-h) + 16px); left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: rgba(6,6,15,0.92);
  border: 1px solid rgba(0,255,135,.3);
  border-radius: 40px;
  padding: 8px 20px;
  font-size: .6rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: rgba(0,255,135,.85);
  pointer-events: none;
  z-index: 9995;
  opacity: 0; transition: opacity .4s, transform .4s;
}
.egg-toast.visible { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── FOOTER COORD DETAIL ─────────────────────── */
.ft-coord {
  font-size: .62rem;
  color: rgba(255,255,255,.1);
  letter-spacing: .08em;
  margin-top: 8px;
  font-family: var(--ff);
  transition: color .4s;
}
.ft-coord:hover { color: rgba(0,255,135,.3); }
