/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
  /* Colors */
  --color-primary: #000000;
  --color-secondary: #1a1a1a;
  --color-accent: #a6796f;
  --color-white: #ffffff;
  --color-text: #e0e0e0;

  /* Font Weights (Montserrat) */
  --font-weight-extralight: 200;
  --font-weight-light: 300;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-black: 900;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;
}

/* ============================================
   BASE STYLES
   ============================================ */
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Montserrat', sans-serif;
  color: var(--color-white);
  background: var(--color-primary);
  overflow-x: hidden;
}

/* ============================================
   TIKTOK-STYLE SNAP SCROLLING (ALL DEVICES)
   ============================================ */

/* Body ist EINZIGER Scroll-Container */
body {
  scroll-snap-type: y mandatory;
  -webkit-scroll-snap-type: y mandatory;
  overflow-y: scroll;
  overscroll-behavior: none;
  scroll-padding-top: 0;

  /* Dynamic viewport height (fallback first) */
  height: 100vh;
  height: 100dvh; /* iOS dynamic viewport */
}

/* Snap-Punkte für Hero + Info Sections */
.hero,
.info {
  scroll-snap-align: start;
  -webkit-scroll-snap-align: start;
  scroll-snap-stop: always;
  -webkit-scroll-snap-stop: always;

  /* Exact viewport height (fallback first, then modern) */
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;

  /* Verhindere Section-Overflow */
  overflow: hidden;

  /* Performance */
  will-change: scroll-position;
  transform: translateZ(0);
}

/* Membership Section - Auto height für Footer */
.membership {
  scroll-snap-align: start;
  -webkit-scroll-snap-align: start;
  scroll-snap-stop: always;
  -webkit-scroll-snap-stop: always;

  /* Auto height für Footer sichtbarkeit */
  height: auto;
  min-height: 100vh;
  min-height: 100dvh;

  /* Erlaubt Scrollen zum Footer */
  overflow: visible;

  /* Performance */
  will-change: scroll-position;
  transform: translateZ(0);
}

/* Membership-Footer-Wrapper ist direktes snap-child von body */
.membership-footer-wrapper {
  scroll-snap-align: start;
  -webkit-scroll-snap-align: start;
  min-height: 100vh;
  min-height: 100dvh;
}

/* ============================================
   MOBILE-SPECIFIC TOUCH OPTIMIZATIONS
   ============================================ */
@media (max-width: 767px) {
  html {
    scroll-behavior: auto;
  }

  body {
    /* Mobile-specific touch scrolling */
    -webkit-overflow-scrolling: touch;
  }

  .hero,
  .info,
  .membership {
    /* Touch-Optimierung nur für Mobile */
    touch-action: pan-y;
    -webkit-tap-highlight-color: transparent;
  }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-lg);
  background: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #000000 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(166, 121, 111, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(166, 121, 111, 0.1) 0%, transparent 50%);
  animation: pulseGlow 8s ease-in-out infinite;
  pointer-events: none;
  z-index: -1; /* Behind particles */
}

.hero::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(166, 121, 111, 0.2) 0%, transparent 70%);
  filter: blur(60px);
  animation: glowPulse 4s ease-in-out infinite;
  pointer-events: none;
  z-index: -1; /* Behind particles */
}

@keyframes pulseGlow {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

@keyframes glowPulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.3;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 0.5;
  }
}

/* Floating Particles */
.particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none; /* Allow clicking through particles */
}

.particle {
  position: absolute;
  background: radial-gradient(circle, rgba(166, 121, 111, 0.9) 0%, rgba(166, 121, 111, 0.4) 40%, transparent 70%);
  border-radius: 50%;
  filter: blur(2px);
  opacity: 1;
  animation: float 20s infinite ease-in-out;
  box-shadow: 0 0 10px rgba(166, 121, 111, 0.5);
  will-change: transform;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

/* Small particles - fast */
.particle:nth-child(1) { width: 3px; height: 3px; left: 10%; animation-delay: 0s; animation-duration: 12s; }
.particle:nth-child(2) { width: 4px; height: 4px; left: 25%; animation-delay: 0.3s; animation-duration: 14s; }
.particle:nth-child(3) { width: 3px; height: 3px; left: 45%; animation-delay: 0.6s; animation-duration: 13s; }
.particle:nth-child(4) { width: 5px; height: 5px; left: 60%; animation-delay: 0s; animation-duration: 15s; }
.particle:nth-child(5) { width: 4px; height: 4px; left: 75%; animation-delay: 0.4s; animation-duration: 12s; }
.particle:nth-child(6) { width: 3px; height: 3px; left: 85%; animation-delay: 0.2s; animation-duration: 14s; }

/* Medium particles */
.particle:nth-child(7) { width: 6px; height: 6px; left: 15%; animation-delay: 0.1s; animation-duration: 16s; }
.particle:nth-child(8) { width: 5px; height: 5px; left: 30%; animation-delay: 0.5s; animation-duration: 18s; }
.particle:nth-child(9) { width: 4px; height: 4px; left: 50%; animation-delay: 0.2s; animation-duration: 15s; }
.particle:nth-child(10) { width: 6px; height: 6px; left: 65%; animation-delay: 0s; animation-duration: 17s; }
.particle:nth-child(11) { width: 5px; height: 5px; left: 80%; animation-delay: 0.3s; animation-duration: 16s; }

/* Larger particles - slower */
.particle:nth-child(12) { width: 8px; height: 8px; left: 20%; animation-delay: 0.4s; animation-duration: 20s; }
.particle:nth-child(13) { width: 7px; height: 7px; left: 35%; animation-delay: 0.1s; animation-duration: 22s; }
.particle:nth-child(14) { width: 8px; height: 8px; left: 55%; animation-delay: 0.5s; animation-duration: 21s; }
.particle:nth-child(15) { width: 7px; height: 7px; left: 70%; animation-delay: 0.2s; animation-duration: 19s; }
.particle:nth-child(16) { width: 8px; height: 8px; left: 90%; animation-delay: 0s; animation-duration: 23s; }

/* Extra variations */
.particle:nth-child(17) { width: 4px; height: 4px; left: 5%; animation-delay: 0.3s; animation-duration: 14s; }
.particle:nth-child(18) { width: 5px; height: 5px; left: 40%; animation-delay: 0.6s; animation-duration: 17s; }
.particle:nth-child(19) { width: 6px; height: 6px; left: 58%; animation-delay: 0.1s; animation-duration: 16s; }
.particle:nth-child(20) { width: 4px; height: 4px; left: 72%; animation-delay: 0.4s; animation-duration: 15s; }
.particle:nth-child(21) { width: 7px; height: 7px; left: 88%; animation-delay: 0s; animation-duration: 20s; }
.particle:nth-child(22) { width: 5px; height: 5px; left: 12%; animation-delay: 0.5s; animation-duration: 18s; }
.particle:nth-child(23) { width: 6px; height: 6px; left: 95%; animation-delay: 0.2s; animation-duration: 19s; }

@keyframes float {
  0% {
    transform: translateY(-20vh) translateX(0) scale(1);
    opacity: 1;
  }
  50% {
    transform: translateY(50vh) translateX(50px) scale(1);
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(120vh) translateX(-30px) scale(0);
    opacity: 0;
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 500px;
  width: 100%;
}

.hero-title {
  margin-bottom: var(--spacing-lg);
}

.hero-title-line {
  display: block;
  font-size: clamp(2rem, 8vw, 3rem);
  font-weight: var(--font-weight-black);
  letter-spacing: 0.15em;
  color: var(--color-white);
  line-height: 1.1;
  /* opacity and transform handled by .animate-fade-in class */
  text-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
}

.hero-title-line:last-child {
  color: var(--color-white);
  text-shadow: 0 0 40px rgba(166, 121, 111, 0.6),
               0 0 80px rgba(166, 121, 111, 0.4),
               0 0 120px rgba(166, 121, 111, 0.2);
}

@keyframes shimmer {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.hero-subtitle {
  font-size: 1.125rem;
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text);
  margin-bottom: var(--spacing-xl);
  /* opacity and transform handled by .animate-fade-in class */
}

/* Coming Soon - Prominent & Animated */
.hero-coming-soon {
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--color-accent) 0%, #d4a574 50%, var(--color-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% auto;
  animation: shimmer 3s ease-in-out infinite;
  margin-bottom: var(--spacing-xl);
}

/* Scroll Indicator */
.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-xs);
  opacity: 0.7;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.scroll-indicator:hover {
  opacity: 1;
}

.scroll-text {
  font-size: 0.875rem;
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text);
}

.scroll-arrow {
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* Scroll indicator visible on all devices */

/* Mobile - Below Title */
@media (max-width: 767px) {
  .hero-address {
    display: none;
  }

  .address-line {
    display: block;
  }

  .address-separator {
    display: none;
  }
}

/* ============================================
   FADE-IN ANIMATIONS
   ============================================ */
.animate-fade-in {
  opacity: 0;
  animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 {
  animation-delay: 0.3s;
}

.delay-2 {
  animation-delay: 0.6s;
}

.delay-3 {
  animation-delay: 0.9s;
}

.delay-4 {
  animation-delay: 1.2s;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(50px) scale(0.95);
  }
  50% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ============================================
   INFO SECTION - BASE STYLES
   ============================================ */
.info {
  position: relative;
  padding: var(--spacing-2xl) var(--spacing-lg);
  overflow: hidden;
}

.info-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

/* ============================================
   INFO SECTION - DARK ELEGANCE VARIANT
   ============================================ */
.info-dark-elegance {
  background: linear-gradient(135deg, #000000 0%, #0a0a0f 50%, #000000 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-dark-elegance::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 30% 20%, rgba(166, 121, 111, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(166, 121, 111, 0.06) 0%, transparent 50%);
  animation: subtleGlow 10s ease-in-out infinite;
  pointer-events: none;
}

@keyframes subtleGlow {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.info-dark-elegance .info-content {
  position: relative;
  z-index: 2;
}

.info-dark-elegance .accent-line-top,
.info-dark-elegance .accent-line-bottom {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  margin: 0 auto;
}

.info-dark-elegance .accent-line-top {
  margin-bottom: var(--spacing-xl);
}

.info-dark-elegance .accent-line-bottom {
  margin-top: var(--spacing-xl);
}

.info-dark-elegance .info-title {
  font-size: clamp(1.1rem, 3vw, 1.3rem);
  font-weight: var(--font-weight-extralight);
  letter-spacing: 0.2em;
  line-height: 1.4;
  margin-bottom: var(--spacing-xl);
  color: var(--color-white);
  text-transform: none;
}

.info-dark-elegance .info-text {
  font-size: clamp(0.875rem, 2.5vw, 1rem);
  font-weight: var(--font-weight-light);
  line-height: 1.8;
  letter-spacing: 0.05em;
  color: var(--color-text);
  max-width: 500px;
  margin: 0 auto;
}

/* ============================================
   MEMBERSHIP SECTION
   ============================================ */
.membership {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-2xl) var(--spacing-lg);
}

.membership-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 600px;
  width: 100%;
}

.membership-title {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--spacing-2xl);
  line-height: 1.2;
}

/* ============================================
   FOOTER (Combined with Membership)
   ============================================ */
.membership-footer-combined {
  margin-top: var(--spacing-2xl);
  padding-top: var(--spacing-xl);
  border-top: 1px solid rgba(166, 121, 111, 0.2);
}

.footer-company-name {
  font-size: 1rem;
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.05em;
  color: var(--color-white);
  margin-bottom: var(--spacing-md);
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.footer-link {
  font-size: 0.875rem;
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.05em;
  color: var(--color-text);
  transition: color 0.3s ease;
  text-decoration: none;
}

.footer-link:hover {
  color: var(--color-accent);
}

.footer-copyright {
  font-size: 1rem;
  font-weight: var(--font-weight-light);
  letter-spacing: 0.05em;
  color: var(--color-text);
  opacity: 0.7;
}

.mirage-link {
  color: var(--color-accent);
  transition: opacity 0.3s ease;
  text-decoration: none;
}

.mirage-link:hover {
  opacity: 0.8;
}

/* ============================================
   MEMBERSHIP + FOOTER WRAPPER
   ============================================ */
.membership-footer-wrapper {
  position: relative;
  background: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #000000 100%);
  overflow: hidden;
}

.membership-footer-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 30% 40%, rgba(166, 121, 111, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(166, 121, 111, 0.1) 0%, transparent 50%);
  animation: pulseGlow 8s ease-in-out infinite;
  pointer-events: none;
  z-index: -1; /* Behind particles */
}

.membership-footer-wrapper .particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 200vh;
  overflow: hidden;
  z-index: 0;
}
