:root{
  --violet: #8b5cf6;
  --violetText: #c4b5fd;
  --floor: calc(48px + env(safe-area-inset-bottom));
  /* das ist NUR fuer Content (Button-Boden) */
  --content-floor: calc(48px + env(safe-area-inset-bottom));
  /* das ist NUR fuer den echten Screen-Boden */
  --screen-floor: env(safe-area-inset-bottom);
}

html, body{
  margin:0;
  padding:0;
  height:100%;
  background:#000;
}

/* Hero */
.hero{
  min-height: 100dvh;
  min-height: 100svh;
  position: relative;
  isolation: isolate;        /* stabiler stacking context */
  overflow: hidden;

  display:flex;
  justify-content:center;
  align-items:flex-end;

  padding-bottom: var(--content-floor);
  animation: fadeIn 1400ms ease-out both;
  background:#000;
}

/* Parallax Background Layer */
.hero-bg{
  position:absolute;
  inset: -40px;
  z-index: 0;

  background-image: url("/images/bnuv.JPEG");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  transform: translate3d(0,0,0) scale(1.06);
  will-change: transform;
}

/* Overlay + weicher Top/Bottom Fade */
.hero::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  z-index:1;

  background:
    linear-gradient(to bottom,
      rgba(0,0,0,0.9) 0%,
      rgba(0,0,0,0.6) 12%,
      rgba(0,0,0,0.3) 22%,
      rgba(0,0,0,0.0) 38%
    ),
linear-gradient(to top,
  rgba(0,0,0,0.98) 0%,
  rgba(0,0,0,0.80) 16%,
  rgba(0,0,0,0.55) 30%,
  rgba(0,0,0,0.28) 48%,
  rgba(0,0,0,0.0) 62%
);
}
/* Bodenreflexion: fest am Boden, unter Content */
.ig-wrap{
  position: relative;
  display: inline-block;
}


.hero > .ground-glow{
  position: fixed;
  left: var(--ig-center-x, 50%);
  bottom: calc(env(safe-area-inset-bottom) + 19px);
  transform: translateX(-50%) scale(1,1);

  width: 220px;
  height: 44px;
  border-radius: 999px;

  background: radial-gradient(closest-side,
    rgba(139,92,246,0.72),
    rgba(139,92,246,0.0)
  );

  filter: blur(9px);
  opacity: 0.55;

  pointer-events:none;
  z-index: 2;
  will-change: transform, opacity;

  animation: groundPulse 5s cubic-bezier(.25,.9,.2,1) infinite;
}
/* Alles Content ueber bg/overlay/glow */
.hero > *:not(.hero-bg):not(.ground-glow):not(.logo-ripple){
  position: fixed;
  z-index: 3;
}

/* Brand oben */
.brand{
  position: absolute;
  top: calc(22px + env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;

  color: #ff3b3b;
  font-family: "Space Grotesk", Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-size: 14px;

  user-select: none;
  animation: brandIn 1400ms ease-out both;
  animation-delay: 120ms;
}

.brand-alt{
  position: absolute;
  top: calc(40px + env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;

  font-family: "Space Grotesk", Arial, sans-serif;
  font-weight: 300;          /* weicher */
  letter-spacing: 0.08em;    /* runder Eindruck */
  font-size: 11px;

  text-transform: lowercase; /* klein geschrieben */

  opacity: 0.85;
}

/* aka etwas dezenter */
.brand-aka{
  color: rgba(255,255,255,0.5);
  margin-right: 6px;
}

/* bitni weiss */
.brand-bitni{
  color: rgba(255,255,255,0.92);
}

.seo-section{
  color: rgba(255,255,255,0.78);
  font-family: "Space Grotesk", Arial, sans-serif;
  text-align: center;

  max-width: 760px;
  margin: 28px auto 0;
  padding: 0 22px 48px;
}

.seo-section h2{
  margin: 0 0 10px;
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.86);
}

.seo-section p{
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
}


/* Unsichtbarer runder Klickbereich im Zentrum */
.center-hit{
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%, -50%);
  z-index:4;

  width:270px;
  height:270px;
  border-radius:50%;

  cursor:pointer;
  background:transparent;
}

.logo-ripple{
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.5);

  width: 270px;
  height: 270px;
  border-radius: 50%;

  border: 2px solid rgba(255, 40, 40, 0.85);

  box-shadow:
    0 0 28px rgba(255, 0, 0, 0.55),
    0 0 60px rgba(255, 0, 0, 0.25);

  pointer-events: none;
  z-index: 6;

  opacity: 0;
  animation: ripple 8.2s linear infinite; /* 4.2s expand + 4.0s pause */
 }

@keyframes ripple{
  0%{
    opacity: 0.85;
    transform: translate(-50%, -50%) scale(0.02);
  }
  51.22%{ /* 4.2 / 8.2 */
    opacity: 0;
    transform: translate(-50%, -50%) scale(1);
  }
  100%{
    opacity: 0;
    transform: translate(-50%, -50%) scale(1);
  }
}


/* Button Wrap */ 
.btn-wrap{ 
position: relative; 
z-index: 4; 
animation: btnIn 1600ms ease-out both; 
animation-delay: 240ms; 
}

.btn-move{
  animation: jumpY 5s linear infinite;
  transform-origin: 50% 100%;
  will-change: transform;
}

.btn-wobble{
  animation: wobble 5s ease-in-out infinite;
  transform-origin: 20% 100%;
  will-change: transform;
}

/* Button */
.btn{
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  padding: 14px 26px;
  border-radius: 14px;
  border: 2px solid var(--violet);

  color: var(--violetText);
  text-decoration: none;
  font-family: "Space Grotesk", Arial, sans-serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
  box-sizing: border-box;

  background: rgba(0,0,0,0.26);
  backdrop-filter: blur(6px);

  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);

  transition:
    transform 0.2s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;

  will-change: transform, box-shadow;
}

.btn i{
  font-size: 20px;
}

.btn--ig:hover{
  background: rgba(139,92,246,0.18);
  box-shadow:
    0 0 22px rgba(139,92,246,0.9),
    inset 0 0 0 1px rgba(255,255,255,0.06);

  transform: translateY(-2px);
}



.btn:active{
  transform: scale(0.98);
}

.btn--tt:hover{
  background: rgba(0,0,0,0.26); /* kein violett */
  box-shadow:
  0 0 14px rgba(37,244,238,0.6),
  0 0 14px rgba(254,44,85,0.5),
    inset 0 0 0 1px rgba(255,255,255,0.06);

  transform: translateY(-2px);
}


/* Button Reihe */
.btn-row{
  display:flex;
  gap: 14px;
  align-items:center;
  justify-content:center;
}
/* Buttons sollen ueber dem unsichtbaren Center-Link liegen */
.btn-row .btn{
min-width: 180px;
}

.btn--tt{
  position: relative;
  border: 2px solid transparent;
  color: rgba(255,255,255,0.92);
  background: rgba(0,0,0,0.26);
  backdrop-filter: blur(6px);
  overflow: hidden;
}
/* Animierter TikTok Border */


.btn--tt{
  position: relative;
  border: 2px solid transparent;
  overflow: hidden;
}

.btn--tt{
  position: relative;
  border: 2px solid transparent;
  overflow: hidden;
}

.btn--tt::before{
  content:"";
  position:absolute;
  inset:-1px;
  border-radius: 14px;

  /* smooth TikTok gradient, aber kachelbar */
  background-image: linear-gradient(
  90deg,
  #2ffcff 0%,
  #ff0050 25%,
  #2ffcff 50%,
  #ff0050 75%,
  #2ffcff 100%
  );
  background-size: 200% 100%;
  background-repeat: repeat-x;

  /* Randdicke */
  padding: 3px;

  /* nur Rand sichtbar */
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;

  box-shadow:
    0 0 14px rgba(47,252,255,0.6),
    0 0 18px rgba(255,0,80,0.5);

  /* fliessen (nahtlos) */
  animation: ttFlow 8s linear infinite;
}

@keyframes ttFlow{
  from { background-position:   0% 50%; }
  to   { background-position: -100% 50%; } /* exakt eine Kachel weiter */
}


@keyframes ttFlow{
  from { background-position:   0px 50%, 160px 50%; }
  to   { background-position: -320px 50%, -160px 50%; }
}


@keyframes ttFlowX{
  from { transform: translate3d(0,0,0); }
  to   { transform: translate3d(-25%,0,0); } /* genau 1 Kachel weiter */
}


@keyframes ttFlow{
  from { background-position:   0px 50%, 160px 50%; }
  to   { background-position: -320px 50%, -160px 50%; }
}


/* EXAKT eine Kachelbreite verschieben */
@keyframes ttFlow{
  from { background-position:   0px 50%; }
  to   { background-position: -480px 50%; }
}


@keyframes ttFlow{
  from { background-position:   0px 50%; }
  to   { background-position: -320px 50%; } /* exakt 1 Kachel */
}

/* EXAKT eine Periode verschieben: 280px */
@keyframes ttFlow{
  from { background-position:   0px 50%; }
  to   { background-position: -280px 50%; }
}


@keyframes ttFlow{
  from { background-position:   0% 50%; }
  to   { background-position: -100% 50%; } /* exakt eine Kachel weiter */
}


@keyframes ttFlow{
  from { background-position: 0 0; }
  to   { background-position: 36px 0; } /* exakt eine Periode */
}

@keyframes ttFlow{
  from { background-position: 0% 50%; }
  to   { background-position: 250% 50%; }
}

@keyframes ttFlow{
  from { background-position: 0% 50%; }
  to   { background-position: 300% 50%; }
}
@keyframes ttBorderSpin{
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* optional: IG behalt deinen look */
.btn--ig{}


/* Cursor Glow */
#cursor-glow{
  position: fixed;
  left: 0;
  top: 0;
  width: 90px;      /* kleiner */
  height: 90px;     /* kleiner */
  border-radius: 50%;
  pointer-events: none;
  z-index: 10;

  transform: translate(-9999px, -9999px);
  opacity: 0;
  transition: opacity 0.2s ease;

  background: radial-gradient(circle,
    rgba(139,92,246,0.02),   /* transparenter */
    rgba(139,92,246,0.0) 70%
  );

  filter: blur(6px);   /* weicher */
  mix-blend-mode: screen;
}

#cursor-glow.on{ opacity: 1; }

/* Mobile: etwas kompakter (optional) */
@media (max-width: 480px){
  .btn{
    padding: 12px 20px;
    font-size: 16px;
    border-radius: 13px;
  }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce){
  .hero{ animation:none; }
  .brand{ animation:none; }
  .btn-wrap{ animation:none; }
  .btn-move{ animation:none; }
  .btn-wobble{ animation:none; }
  .ground-glow{ animation:none; opacity:0.55; }
  #cursor-glow{ display:none; }
}

/* Animations */
@keyframes fadeIn{
  from{ opacity:0; transform: scale(1.01); }
  to{ opacity:1; transform: scale(1); }
}

@keyframes brandIn{
  from{ opacity:0; transform: translateX(-50%) translateY(-10px); }
  to{ opacity:1; transform: translateX(-50%) translateY(0); }
}

@keyframes btnIn{
  from{ opacity:0; transform: translateY(10px); }
  to{ opacity:1; transform: translateY(0); }
}

@keyframes pulseGlow{
  0%   { box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06); }
  85%  { box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06); }
  92%  { box-shadow: 0 0 18px rgba(139,92,246,0.55), inset 0 0 0 1px rgba(255,255,255,0.06); }
  100% { box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06); }
}

/* EIN Jump: hoch -> oben halten -> dann fallen */
@keyframes jumpY{
  /* Idle float (0% - 72%) */
  0%      { transform: translate3d(0,0,0)   scale(1,1); }
  12%     { transform: translate3d(0,-2px,0) scale(1,1); }
  24%     { transform: translate3d(0, 1px,0) scale(1,1); }
  35%     { transform: translate3d(0,-3px,0) scale(1,1); }
  50%     { transform: translate3d(0, 2px,0) scale(1,1); }
  62%     { transform: translate3d(0,-1px,0) scale(1,1); }
  72%     { transform: translate3d(0,0,0)   scale(1,1); }

  /* Sprung */
  74%     { transform: translate3d(0,3px,0) scale(1.01,0.985); }
  80%     { transform: translate3d(0,-36px,0) scale(0.995,1.01); }
  92%     { transform: translate3d(0,-36px,0) scale(1,1); }

  /* Fall */
  95.6%   { transform: translate3d(0,0px,0) scale(1,1); }

  /* Impact: Gummi */
  97.3%   { transform: translate3d(0,6px,0) scale(1.08,0.92); }

  /* Rebound */
  98.5%   { transform: translate3d(0,-5px,0) scale(0.97,1.04); }

  99.2%   { transform: translate3d(0,2px,0) scale(1.02,0.98); }
  100%    { transform: translate3d(0,0px,0) scale(1,1); }
}



/* Wobble beim Jump + oben, dann ruhig bevor Fall sichtbar wird */
@keyframes wobble{
  0%, 73% { transform: translate3d(0,0,0) rotate(0deg); }

  /* beim Hochgehen leicht */
  76% { transform: translate3d(-1px,0,0) rotate(-1.8deg); }
  79% { transform: translate3d( 1px,0,0) rotate( 2.0deg); }

  /* oben staerker, smooth */
  84% { transform: translate3d(-2px,0,0) rotate(-3.6deg); }
  88% { transform: translate3d( 2px,0,0) rotate( 3.8deg); }
  91% { transform: translate3d(-1px,0,0) rotate(-2.8deg); }
  92% { transform: translate3d( 1px,0,0) rotate( 2.2deg); }

  /* ruhig, dann Fall */
  93.5%, 100% { transform: translate3d(0,0,0) rotate(0deg); }
}

/* Bodenreflexion: sichtbar nur am Boden/Landung, weg in der Luft */
@keyframes groundPulse{
  0%, 72% {
    opacity: 0.55;
    transform: translateX(-50%) scale(1,1);
  }
  74% {
    opacity: 0.75;
    transform: translateX(-50%) scale(1.10,0.88);
  }

  /* in der Luft weg */
  80%, 92% {
    opacity: 0.0;
    transform: translateX(-50%) scale(0.72,0.62);
  }

  /* Landung kurz stark */
  97.5% {
    opacity: 0.90;
    transform: translateX(-50%) scale(1.18,0.84);
  }

  /* Settling */
  99% {
    opacity: 0.55;
    transform: translateX(-50%) scale(1.04,0.94);
  }

  100% {
    opacity: 0.55;
    transform: translateX(-50%) scale(1,1);
  }
}
@supports (-webkit-touch-callout: none){
  .hero{ min-height: 100svh; }
}

@media (hover: none) and (pointer: coarse){
  #cursor-glow{ display:none !important; }
}
/* Querformat (iOS/kleine Hoehe): Buttons kompakter, Animation bleibt */
@media (orientation: landscape) and (max-height: 520px){

  /* etwas weniger Bodenabstand, damit es nicht gedrueckt wirkt */
  .hero{
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
  }

  /* Button Reihe enger */
  .btn-row{
    gap: 10px;
  }

  /* Buttons kleiner */
  .btn{
    padding: 10px 16px;
    font-size: 14px;
    border-radius: 12px;
  }

  .btn i{
    font-size: 16px;
  }

  /* die feste Mindestbreite runtersetzen */
  .btn-row .btn{
    min-width: 140px;
  }

  /* optional: Glow unten etwas kleiner, passend zu Buttons */
.hero > .ground-glow{
  width: 180px;
  height: 36px;
  bottom: calc(env(safe-area-inset-bottom) + 0px);
}
