@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700;800;900&display=swap');

/* ========================================
   WAGENEFFEKT – Dark Theme Styles
   ======================================== */

/* --- CSS Custom Properties / Theme --- */
:root {
  --color-bg: #1a1a1a;
  --color-bg-alt: #222;
  --color-anthracite: #2d2d2d;
  --color-anthracite-light: #3a3a3a;
  --color-accent: #d42020;
  --color-accent-hover: #e63939;
  --color-text: #e0e0e0;
  --color-text-dim: #999;
  --color-overlay: rgba(0, 0, 0, 0.6);

  --font-primary: 'Outfit', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-display: 'Outfit', 'Segoe UI', system-ui, -apple-system, sans-serif;

  --transition-default: 0.55s cubic-bezier(0.76, 0, 0.24, 1);
  --transition-smooth: 0.9s cubic-bezier(0.76, 0, 0.24, 1);
  --transition-snappy: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-curtain: 0.75s cubic-bezier(0.76, 0, 0.24, 1);
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow: hidden;
  /* Kein Seiten-Scroll – wir scrollen vertikal */
  height: 100vh;
  width: 100vw;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition-default);
}

a:hover {
  color: var(--color-accent-hover);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ========================================
   VERTIKAL-SLIDESHOW CONTAINER
   ======================================== */
.slideshow-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.slides-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.9s cubic-bezier(0.76, 0, 0.24, 1);
  will-change: transform;
}

/* Fortschrittslinie – linker Rand */
.slide-progress {
  position: fixed;
  left: 0;
  top: 0;
  width: 3px;
  height: 0%;
  background: linear-gradient(to bottom, var(--color-accent), #ff6b6b);
  z-index: 200;
  transition: height 0.9s cubic-bezier(0.76, 0, 0.24, 1);
  border-radius: 0 2px 2px 0;
  box-shadow: 0 0 12px rgba(212, 32, 32, 0.5);
}

/* Jede Slide = 100vh */
.slide {
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* ========================================
   SLIDE 1 – COMING SOON / HERO
   ======================================== */
.hero-slide {
  position: relative;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  z-index: 0;
  filter: brightness(0.45) saturate(1.1);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom,
      rgba(26, 26, 26, 0.3) 0%,
      rgba(26, 26, 26, 0.7) 50%,
      var(--color-bg) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
  max-width: 900px;
  width: 100%;
}

/* Branding / Logo Text */
.brand-name {
  font-family: var(--font-display);
  /* Kleineres Maximum: bei 900px Container = max 5.5rem = 88px
     -> "WAGENEFFEKT" bei 88px + 0.08em letter-spacing ~657px -> passt in 836px */
  font-size: clamp(2.5rem, 8vw, 5.5rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 0.5rem;
  overflow: hidden;
}

.brand-name .accent {
  color: var(--color-accent);
}

.brand-sub {
  font-size: clamp(0.9rem, 2.5vw, 1.4rem);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-text-dim);
  margin-bottom: 2.5rem;
  font-weight: 300;
}

/* Coming Soon Badge */
.coming-badge {
  display: inline-block;
  padding: 0.6rem 2.5rem;
  border: 2px solid var(--color-accent);
  color: var(--color-accent);
  font-size: clamp(0.8rem, 1.5vw, 1rem);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 3rem;
  position: relative;
  background: transparent;
  transition: all var(--transition-default);
}

.coming-badge::before,
.coming-badge::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 2px;
  background: var(--color-accent);
  top: 50%;
  transform: translateY(-50%);
}

.coming-badge::before {
  left: -8px;
}

.coming-badge::after {
  right: -8px;
}

/* Divider-Linie */
.divider {
  width: 80px;
  height: 3px;
  background: var(--color-accent);
  margin: 1.5rem auto;
  border-radius: 2px;
}

/* Teaser-Text */
.hero-text {
  font-size: clamp(0.95rem, 1.8vw, 1.2rem);
  color: var(--color-text-dim);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  font-weight: 300;
  letter-spacing: 0.02em;
}

/* ========================================
   SLIDE 2 – INFO / SOCIAL
   ======================================== */
.info-slide {
  background: var(--color-bg);
  flex-direction: column;
  gap: 2.5rem;
}

.info-content {
  text-align: center;
  max-width: 600px;
  padding: 2rem;
}

.info-content h2 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  color: #fff;
}

.info-content h2 .accent {
  color: var(--color-accent);
}

.info-content p {
  color: var(--color-text-dim);
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  line-height: 1.8;
  margin-bottom: 2rem;
}

/* Instagram CTA */
.social-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 2.5rem;
  background: transparent;
  border: 2px solid var(--color-accent);
  color: var(--color-accent);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition-default);
  text-decoration: none;
}

.social-cta i {
  font-size: 1.3rem;
  transition: transform var(--transition-default);
}

.social-cta:hover {
  background: var(--color-accent);
  color: #fff;
}

.social-cta:hover i {
  transform: scale(1.15);
}

/* ========================================
   NAVIGATION DOTS (rechts)
   ======================================== */
.nav-dots {
  position: fixed;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.nav-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--color-text-dim);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition-default);
  padding: 0;
  outline: none;
}

.nav-dot:hover {
  border-color: var(--color-accent);
}

.nav-dot.active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  box-shadow: 0 0 12px rgba(212, 32, 32, 0.4);
}

/* ========================================
   SCROLL-HINWEIS (unten)
   ======================================== */
.scroll-hint {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text-dim);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.6;
  animation: fadeInOut 2.5s ease-in-out infinite;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.scroll-hint.hidden {
  opacity: 0;
  animation: none;
  pointer-events: none;
}

.scroll-hint i {
  font-size: 1.2rem;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes fadeInOut {

  0%,
  100% {
    opacity: 0.4;
  }

  50% {
    opacity: 0.8;
  }
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(6px);
  }
}

/* ========================================
   SLIDE-ANIMATIONEN – Premium Stagger
   ======================================== */

/* Standard: Elemente unsichtbar, leicht skaliert */
.slide .hero-content>*,
.slide .info-content>* {
  opacity: 0;
  transform: translateY(40px) scale(0.97);
  filter: blur(6px);
  transition:
    opacity 0.65s cubic-bezier(0.34, 1.56, 0.64, 1),
    transform 0.65s cubic-bezier(0.34, 1.56, 0.64, 1),
    filter 0.65s ease;
}

/* Sichtbar wenn Slide aktiv ist */
.slide.active .hero-content>*,
.slide.active .info-content>* {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0px);
}

/* Gestaffelte Verzögerung – Hero */
.slide .hero-content>*:nth-child(1) { transition-delay: 0.08s; }
.slide .hero-content>*:nth-child(2) { transition-delay: 0.18s; }
.slide .hero-content>*:nth-child(3) { transition-delay: 0.28s; }
.slide .hero-content>*:nth-child(4) { transition-delay: 0.38s; }
.slide .hero-content>*:nth-child(5) { transition-delay: 0.48s; }

/* Gestaffelte Verzögerung – Info */
.slide .info-content>*:nth-child(1) { transition-delay: 0.08s; }
.slide .info-content>*:nth-child(2) { transition-delay: 0.18s; }
.slide .info-content>*:nth-child(3) { transition-delay: 0.28s; }
.slide .info-content>*:nth-child(4) { transition-delay: 0.38s; }

/* Brand-Name: etwas längere Transition für mehr Impact */
.slide .brand-name,
.slide.active .brand-name {
  transition-duration: 0.8s;
}

/* ========================================
   INTRO-CURTAIN ANIMATION
   ======================================== */

#intro-curtain {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  pointer-events: all;
}

.curtain-panel {
  flex: 1;
  background: #111;
  position: relative;
  transition: transform var(--transition-curtain);
  will-change: transform;
}

.curtain-left {
  transform: translateX(0);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 0;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
}

.curtain-right {
  transform: translateX(0);
  background: linear-gradient(225deg, #0a0a0a 0%, #1a1a1a 100%);
}

/* Mittellinie – fixed damit sie immer exakt mittig ist */
.curtain-line {
  position: fixed;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-accent);
  transform: translateX(-50%);
  z-index: 10000;
  box-shadow: 0 0 20px rgba(212, 32, 32, 0.8), 0 0 60px rgba(212, 32, 32, 0.3);
  transition: opacity var(--transition-curtain);
}

/* Logo – fixed + exakte Zentrierung, unabhängig vom Flex-Layout */
.curtain-logo {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.85);
  z-index: 10001;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 7vw, 3.5rem);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
  opacity: 0;
  transition:
    opacity 0.5s ease,
    transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
  text-align: center;
  width: 90vw;
  white-space: normal;
  line-height: 1.15;
}

.curtain-logo span {
  color: var(--color-accent);
}

.curtain-logo.visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.curtain-logo.fade-out {
  opacity: 0;
  transform: translate(-50%, -50%) scale(1.08);
}

/* Curtain öffnet sich */
#intro-curtain.open .curtain-left {
  transform: translateX(-100%);
}

#intro-curtain.open .curtain-right {
  transform: translateX(100%);
}

#intro-curtain.open .curtain-line {
  opacity: 0;
}

/* Curtain fertig – ausgeblendet */
#intro-curtain.done {
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

/* ========================================
   BENUTZERDEFINIERTES SCROLLBAR
   ======================================== */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--color-anthracite-light);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-accent);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {

  /* Nav-Dots etwas weiter vom Rand auf Mobile */
  .nav-dots {
    right: 0.75rem;
    gap: 0.75rem;
  }

  .nav-dot {
    width: 9px;
    height: 9px;
    /* Optik bleibt 9×9px, Touch-Bereich via Pseudo-Element */
    position: relative;
  }

  /* Unsichtbarer 44×44px Touch-Target ohne Optik-Änderung */
  .nav-dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
  }

  /* Hero: mehr rechts Abstand damit Dots nicht Content überlappen */

  .brand-name {
    letter-spacing: 0.06em;
  }

  .coming-badge::before,
  .coming-badge::after {
    display: none;
  }

  .social-cta {
    padding: 0.8rem 1.8rem;
    font-size: 0.9rem;
  }

  /* Curtain-Logo auf Mobile: kleiner + zentriert */
  .curtain-logo {
    font-size: clamp(1.2rem, 9vw, 2rem);
    letter-spacing: 0.08em;
    width: 85vw;
  }

  /* Fortschrittslinie auf Mobile etwas dünner */
  .slide-progress {
    width: 2px;
  }
}