/* ─── Design Tokens ──────────────────────────────────────────────────────── */
:root {
  --bg-primary:    #04080F;
  --bg-card:       #0C1623;
  --bg-card-hover: #121F32;
  --clr-green:     #4DE06A;
  --clr-blue:      #2B8FFF;
  --clr-grad:      linear-gradient(135deg, #4DE06A 0%, #2B8FFF 100%);
  /* Alias — alle Tailwind gold-Klassen nutzen jetzt Grün */
  --accent-gold:       #4DE06A;
  --accent-gold-light: #70EA8B;
  --text-primary:  #F0F4FF;
  --text-muted:    #6B8299;
  --border-subtle: rgba(255, 255, 255, 0.05);
  --border-accent: rgba(77, 224, 106, 0.18);
  --section-padding: clamp(32px, 4vw, 52px);
  --radius-lg: 1.5rem;
}

/* ─── Base ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─── Section Padding ────────────────────────────────────────────────────── */
.section-padding {
  padding-top: var(--section-padding);
  padding-bottom: var(--section-padding);
}

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

/* ─── Navbar ─────────────────────────────────────────────────────────────── */
#navbar { background: transparent; }

#navbar.scrolled {
  background: rgba(4, 8, 15, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(77, 224, 106, 0.08);
}

/* ─── CTA Button ─────────────────────────────────────────────────────────── */
.cta-btn {
  background: var(--clr-grad);
  color: #ffffff;
  font-weight: 800;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 0 30px rgba(77, 224, 106, 0.28), 0 4px 20px rgba(0, 0, 0, 0.4);
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 55px rgba(77, 224, 106, 0.45), 0 8px 30px rgba(0, 0, 0, 0.5);
  filter: brightness(1.08);
}

.cta-btn:active { transform: translateY(0); }

/* Pulse animation */
@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 0 30px rgba(77, 224, 106, 0.28), 0 4px 20px rgba(0, 0, 0, 0.4); }
  50%       { box-shadow: 0 0 65px rgba(77, 224, 106, 0.55), 0 4px 20px rgba(0, 0, 0, 0.4); }
}

#offer-cta, #final-cta-btn {
  animation: ctaPulse 3s ease-in-out infinite;
  border-radius: 1rem;
}

/* ─── Hero ───────────────────────────────────────────────────────────────── */
#hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(4,8,15,0.65) 0%,
    rgba(4,8,15,0.35) 45%,
    rgba(4,8,15,0.88) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 20px;
  max-width: 860px;
  width: 100%;
}

/* Stagger animation for hero children */
.hero-content > * {
  animation: fadeInUp 0.8s ease both;
}
.hero-content > *:nth-child(1) { animation-delay: 0.1s; }
.hero-content > *:nth-child(2) { animation-delay: 0.25s; }
.hero-content > *:nth-child(3) { animation-delay: 0.4s; }
.hero-content > *:nth-child(4) { animation-delay: 0.55s; }
.hero-content > *:nth-child(5) { animation-delay: 0.7s; }
.hero-content > *:nth-child(6) { animation-delay: 0.85s; }

/* Glow orbs (used on other sections) */
.glow-orb {
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.1;
  animation: floatOrb 8s ease-in-out infinite;
}

.glow-orb-1 { background: var(--clr-green); top: -200px; left: -100px; }
.glow-orb-2 { background: var(--clr-blue);  bottom: -200px; right: -100px; animation-delay: -4s; }

@keyframes floatOrb {
  0%, 100% { transform: translate(0, 0); }
  33%       { transform: translate(30px, -20px); }
  66%       { transform: translate(-20px, 30px); }
}

/* Scarcity badge */
.pulse-badge {
  animation: badgePulse 4s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(77, 224, 106, 0); }
  50%       { box-shadow: 0 0 20px 4px rgba(77, 224, 106, 0.12); }
}

/* Scroll indicator */
.scroll-indicator { animation: fadeInUp 1s ease 1.5s both; }

.scroll-dot { animation: scrollBounce 2s ease-in-out infinite; }

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50%       { transform: translateY(10px); opacity: 0.4; }
}

/* ─── Reveal Animations ──────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible { opacity: 1; transform: translateY(0); }

.reveal-stagger {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-stagger.is-visible { opacity: 1; transform: translateY(0); }

/* ─── Pain Cards ─────────────────────────────────────────────────────────── */
.pain-card { transition: transform 0.2s ease, border-color 0.2s ease; }

.pain-card:hover {
  transform: translateY(-4px);
  border-color: rgba(77, 224, 106, 0.15) !important;
}

/* ─── Enemy Cards ────────────────────────────────────────────────────────── */
.enemy-card { transition: transform 0.2s ease; }
.enemy-card:hover { transform: translateX(4px); }

/* ─── Quote Block ────────────────────────────────────────────────────────── */
.quote-block { position: relative; }

.quote-block::before {
  content: '"';
  position: absolute;
  top: -20px; left: 30px;
  font-size: 120px;
  line-height: 1;
  color: var(--clr-green);
  opacity: 0.12;
  font-family: Georgia, serif;
  pointer-events: none;
}

/* ─── Bundle Stack (Legacy) ──────────────────────────────────────────────── */
.bundle-book { transition: transform 0.3s ease, box-shadow 0.3s ease; }

.bundle-book:hover {
  transform: translateX(8px);
  box-shadow: -4px 0 20px rgba(77, 224, 106, 0.15);
}

/* ─── 3D Book Mockup ─────────────────────────────────────────────────────── */
.bundle-3d-wrap {
  position: relative;
  width: 340px;
  height: 270px;
  margin: 0 auto;
}

.bundle-3d-glow {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 260px;
  height: 28px;
  background: radial-gradient(ellipse, rgba(77,224,106,0.35) 0%, transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}

.bundle-3d-book {
  position: absolute;
  border-radius: 3px 8px 8px 3px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0,0,0,0.65);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bundle-3d-book img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Spine highlight */
.bundle-3d-book::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 9px;
  height: 100%;
  background: linear-gradient(180deg, #4DE06A 0%, #2B8FFF 100%);
  opacity: 0.75;
  z-index: 1;
}

/* Inner shadow on right edge (page depth) */
.bundle-3d-book::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset -3px 0 8px rgba(0,0,0,0.3);
  pointer-events: none;
}

.bundle-3d-left {
  left: 14px;
  top: 38px;
  width: 122px;
  height: 174px;
  transform: rotate(-9deg);
  z-index: 1;
}

.bundle-3d-right {
  right: 14px;
  top: 38px;
  width: 122px;
  height: 174px;
  transform: rotate(9deg);
  z-index: 1;
}

.bundle-3d-center {
  left: 50%;
  top: 8px;
  width: 138px;
  height: 196px;
  transform: translateX(-50%);
  z-index: 2;
  box-shadow: 0 24px 52px rgba(0,0,0,0.75), 0 0 40px rgba(77,224,106,0.12);
}

/* Hover fan-out */
.bundle-3d-wrap:hover .bundle-3d-left  { transform: rotate(-13deg) translateX(-10px); }
.bundle-3d-wrap:hover .bundle-3d-right { transform: rotate(13deg)  translateX(10px); }
.bundle-3d-wrap:hover .bundle-3d-center { transform: translateX(-50%) translateY(-5px); box-shadow: 0 30px 60px rgba(0,0,0,0.8), 0 0 50px rgba(77,224,106,0.18); }

.bundle-3d-label {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(77,224,106,0.1);
  border: 1px solid rgba(77,224,106,0.28);
  border-radius: 999px;
  padding: 5px 22px;
  font-size: 0.68rem;
  font-weight: 800;
  color: #4DE06A;
  letter-spacing: 2px;
  white-space: nowrap;
}

/* ─── Product Cards ──────────────────────────────────────────────────────── */
.product-card { transition: border-color 0.2s ease, transform 0.2s ease; }

.product-card:hover {
  border-color: rgba(77, 224, 106, 0.25) !important;
  transform: translateY(-2px);
}

/* ─── Offer Box ──────────────────────────────────────────────────────────── */
.offer-box { position: relative; }

.offer-box::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: calc(var(--radius-lg) + 1px);
  background: linear-gradient(135deg, rgba(77,224,106,0.35), rgba(43,143,255,0.08), rgba(77,224,106,0.12));
  z-index: -1;
  pointer-events: none;
}

/* ─── Urgency Box ────────────────────────────────────────────────────────── */
.urgency-box { animation: urgencyGlow 4s ease-in-out infinite; }

@keyframes urgencyGlow {
  0%, 100% { border-color: rgba(77, 224, 106, 0.2); }
  50%       { border-color: rgba(77, 224, 106, 0.5); }
}

/* ─── FAQ Accordion ──────────────────────────────────────────────────────── */
.faq-item { transition: border-color 0.2s ease; }
.faq-item.open { border-color: rgba(77, 224, 106, 0.2) !important; }
.faq-btn { background: none; border: none; cursor: pointer; }
.faq-item.open .faq-icon { transform: rotate(180deg); }

/* ─── Mobile Bottom Bar ──────────────────────────────────────────────────── */
.mobile-bar {
  background: rgba(4, 8, 15, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(77, 224, 106, 0.12);
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.mobile-bar.visible { transform: translateY(0); }
.mobile-bar .cta-btn { border-radius: 0.75rem; }

/* ─── Instagram Marquee ──────────────────────────────────────────────────── */
.marquee-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: marqueeScroll 28s linear infinite;
}

.marquee-track:hover { animation-play-state: paused; }

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.marquee-card {
  position: relative;
  flex-shrink: 0;
  width: 160px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform 0.2s ease;
}

.marquee-card:hover { transform: scale(1.04); }

.marquee-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}

.marquee-card-wide {
  width: 140px;
}

.marquee-card-wide img {
  height: 280px;
  object-fit: cover;
  object-position: top;
}

.marquee-badge {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(4,8,15,0.88);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(77,224,106,0.3);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 800;
  color: #4DE06A;
  white-space: nowrap;
}

/* ─── Spots Bump Animation ───────────────────────────────────────────────── */
@keyframes spotsBump {
  0%   { transform: scale(1);    color: inherit; text-shadow: none; }
  25%  { transform: scale(1.5);  color: #4DE06A; text-shadow: 0 0 14px rgba(77,224,106,0.9); }
  60%  { transform: scale(1.25); color: #4DE06A; }
  100% { transform: scale(1);    color: inherit; text-shadow: none; }
}

.spots-bump {
  display: inline-block;
  animation: spotsBump 0.6s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

/* ─── Fade In Up ─────────────────────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  body { padding-bottom: 80px; }
}

/* ─── Scrollbar ──────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: rgba(77, 224, 106, 0.3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(77, 224, 106, 0.5); }

/* ─── Selection ──────────────────────────────────────────────────────────── */
::selection { background: rgba(77, 224, 106, 0.2); color: #fff; }

/* ─── Cookie Consent Banner ──────────────────────────────────────────────── */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99999;
  display: none;                    /* JS steuert Sichtbarkeit */
  align-items: flex-end;
  justify-content: center;
  padding: 0 0 env(safe-area-inset-bottom, 0);
  transform: translateY(110%);
  opacity: 0;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
  pointer-events: none;
}

#cookie-banner.ready {
  pointer-events: auto;
}

.cookie-inner {
  width: 100%;
  max-width: 860px;
  margin: 0 16px 16px;
  background: #0C1623;
  border: 1px solid rgba(77, 224, 106, 0.18);
  border-radius: 20px;
  padding: 20px 24px;
  box-shadow: 0 -4px 40px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(77,224,106,0.05);
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.cookie-text {
  flex: 1;
  min-width: 220px;
}

.cookie-text .cookie-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: #F0F4FF;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cookie-text p {
  font-size: 0.75rem;
  color: #6B8299;
  line-height: 1.5;
  margin: 0;
}

.cookie-text a {
  color: #4DE06A;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

#cookie-accept-all {
  background: linear-gradient(135deg, #4DE06A 0%, #2B8FFF 100%);
  color: #fff;
  font-weight: 800;
  font-size: 0.8rem;
  border: none;
  border-radius: 10px;
  padding: 10px 20px;
  cursor: pointer;
  white-space: nowrap;
  transition: filter 0.2s ease, transform 0.15s ease;
}

#cookie-accept-all:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

#cookie-accept-necessary {
  background: rgba(255, 255, 255, 0.06);
  color: #6B8299;
  font-weight: 600;
  font-size: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 10px 16px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s ease, border-color 0.2s ease;
}

#cookie-accept-necessary:hover {
  color: #F0F4FF;
  border-color: rgba(255, 255, 255, 0.2);
}

@media (max-width: 600px) {
  .cookie-inner {
    flex-direction: column;
    align-items: stretch;
    padding: 18px 18px;
    margin: 0 8px 8px;
    border-radius: 16px;
  }
  .cookie-actions {
    flex-direction: column;
  }
  #cookie-accept-all, #cookie-accept-necessary {
    width: 100%;
    text-align: center;
    padding: 12px;
  }
}

/* Auf Mobilgeräten: über der Mobile-Bar platzieren */
@media (max-width: 768px) {
  #cookie-banner {
    bottom: 72px;
  }
}

/* ─── Live Purchase Toast ────────────────────────────────────────────────── */
#purchase-toast {
  position: fixed;
  bottom: 90px;    /* über der Mobile-Bar */
  left: 16px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #0C1623;
  border: 1px solid rgba(77, 224, 106, 0.25);
  border-radius: 14px;
  padding: 12px 14px 12px 12px;
  max-width: 280px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5), 0 0 20px rgba(77,224,106,0.08);
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

#purchase-toast.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.toast-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4DE06A, #2B8FFF);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 900;
  color: #fff;
  flex-shrink: 0;
}

.toast-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

#toast-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
}

#toast-msg {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
}

.toast-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.3);
  font-size: 1rem;
  cursor: pointer;
  padding: 0 2px;
  line-height: 1;
  flex-shrink: 0;
  margin-left: auto;
  transition: color 0.2s;
}

.toast-close:hover { color: rgba(255,255,255,0.7); }

@media (min-width: 768px) {
  #purchase-toast { bottom: 28px; left: 24px; max-width: 300px; }
}
