/* style.css */

/* basis */
:root{
  --bg:#050505;
  --fg:#ffffff;
  --muted:#a1a1aa;
}

html, body { height: 100%; }
body{
  font-family: 'Geist', sans-serif;
  background: var(--bg);
  color: var(--fg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* hintergrund */
body::before{
  content:"";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;

  background:
    radial-gradient(circle at 50% 0%, rgba(255,255,255,0.10) 0%, rgba(5,5,5,1) 55%),
    radial-gradient(#ffffff10 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.85) 70%, rgba(0,0,0,1) 100%);

  background-size:
    auto,
    32px 32px,
    auto;

  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, #000 70%, transparent 100%);
  mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, #000 70%, transparent 100%);
}

.scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }

.text-gradient{
  background: linear-gradient(to right, #ffffff, var(--muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* felix1 */
@keyframes scroll{
  0%{ transform: translateX(0); }
  100%{ transform: translateX(calc(-100% / 2)); }
}

.marquee-container{
  width: 100%;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-content{
  display: flex;
  gap: 1.25rem;
  width: max-content;
  animation: scroll 40s linear infinite;
  will-change: transform;
}
.marquee-content:hover{ animation-play-state: paused; }

@keyframes rotate-gradient{
  0%{ transform: rotate(0deg); }
  100%{ transform: rotate(360deg); }
}

@keyframes borderBeamRotation{
  0%{ transform: translate(-50%, -50%) rotate(0deg); }
  100%{ transform: translate(-50%, -50%) rotate(360deg); }
}

/* Vintrez Cards */
.spotlight-card{
  --mouse-x: 0px;
  --mouse-y: 0px;
  position: relative;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 32px;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  will-change: transform;
  contain: layout paint style;
}
.spotlight-card:hover{ transform: scale(1.02); }

.spotlight-card::before{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y), rgba(255, 255, 255, 0.15), transparent 40%);
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 0;
  pointer-events: none;
}
.spotlight-card:hover::before{ opacity: 1; }

.spotlight-inner{
  position: relative;
  background: rgba(15, 15, 15, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: inherit;
  z-index: 1;
  height: 100%;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.05);
}

/*TODO: später schöner machen //sticky card*/
.sticky-card{
  transform: translate3d(0, 0, 0);
  will-change: transform, opacity;
  backface-visibility: hidden;

  transition: opacity 0.1s linear;
  position: absolute;
  inset: 0;
  margin: auto;
  contain: paint layout;
}

#sticky-text-container{
  will-change: transform, opacity;
  transform: translate3d(0,0,0);
}

.ios-glass{
  background: rgba(30, 30, 30, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Desktop Glass Effect */
@media (min-width: 769px){
  .ios-glass{
    background: rgba(30, 30, 30, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }
}

/* Mobile Optimiert */
@media (max-width: 768px){
  .sticky-card{
    filter: none !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  }
  .ios-glass{
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

/* Sticky Fix destop */
#why-start-now-sticky{
  height: 280vh; /* fallback if Tailwind changes */
}
@media (max-width: 768px){
  #why-start-now-sticky{
    height: auto;
  }
}

/* Timeline */
.timeline-item{
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform, opacity;
}
.timeline-item.visible{ opacity: 1; transform: translateY(0); }

.progress-line-container{
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  z-index: 0;
  overflow: hidden;
  border-radius: 999px;
}
.progress-line-fill{
  position: absolute;
  background: linear-gradient(to bottom, #22c55e, #f97316, #a855f7);
  transition: height 1.8s ease-out, width 1.8s ease-out;
  width: 0%;
  height: 0%;
  border-radius: 999px;
}

@media (max-width: 768px){
  .progress-line-container{ top: 0; bottom: 0; left: 2rem; width: 2px; height: 100%; }
  .progress-line-fill{ width: 100% !important; top: 0; left: 0; }
}
@media (min-width: 769px){
  .progress-line-container{ top: 2rem; left: 0; right: 0; height: 2px; width: 100%; }
  .progress-line-fill{ height: 100% !important; top: 0; left: 0; }
  .progress-line-fill{ background: linear-gradient(to right, #22c55e, #f97316, #a855f7); }
}

/* FAQ */
.faq-item summary::-webkit-details-marker{ display: none; }
.faq-item summary{ list-style: none; }

/*
   OFFSCREEN RENDER OPTIMIZATION
   */
@supports (content-visibility: auto){
  #results, #progression, #pricing, #faq, footer{
    content-visibility: auto;
    contain-intrinsic-size: 1000px;
  }
}

/* Backdrop-filter fallback */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))){
  .ios-glass{
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}

/* 
   Reslutate SLIDER (UX FIX)
 */
.results-scroll{
  position: relative;                 /* vorher ::nacher */
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 1rem;
  contain: layout paint style;
  will-change: scroll-position;
  touch-action: pan-x pan-y;          /* vertical und horizobtal */
  cursor: grab;
}
.results-scroll:active{ cursor: grabbing; }

.results-scroll > div{
  scroll-snap-align: center;
  scroll-snap-stop: always;
  contain: content;
}

/* Felix2 */
.results-scroll::after{
  content:"→";
  position:absolute;
  right:0.75rem;
  top:50%;
  transform:translateY(-50%);
  font-size:1.15rem;
  color:rgba(255,255,255,0.30);
  pointer-events:none;
}

/* Reduzierer */
@media (prefers-reduced-motion: reduce){
  *{ animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .marquee-content{ transform: none !important; }
}
