@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@400;500;700&display=swap');

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --purple-deep: #2D1B69;
  --purple-mid: #5B2D8E;
  --mauve: #C4A0C4;
  --pink-light: #E8C4D8;
  --yellow: #FFE500;
}

html {
  font-family: 'Exo 2', sans-serif;
  color: #fff;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  min-height: var(--stable-vh, 100vh);
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
  background: #3D2070;
}

/* Blob background canvas — CSS blur softens the irregular shapes */
#bg-canvas {
  position: fixed;
  top: -60px;
  left: -60px;
  width: calc(100vw + 120px);
  height: calc(100vh + 120px);
  height: calc(var(--stable-vh, 100vh) + 120px);
  z-index: 0;
  filter: blur(60px);
}

/* Noise overlay via canvas */
#noise-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: var(--stable-vh, 100vh);
  pointer-events: none;
  z-index: 1;
  opacity: 0.06;
}

/* ── Logo wrapper (fixed, animated via JS) ── */
.logo-wrapper {
  position: fixed;
  z-index: 10;
  top: 50vh;
  top: calc(var(--stable-vh, 100vh) / 2);
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  will-change: transform;
}

.logo-wrapper.is-corner .logo {
  animation: none;
  filter: drop-shadow(0 0 12px rgba(255, 240, 51, 0.15));
}

/* ── Hero section ── */
.hero-section {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 75vh;
  height: calc(var(--stable-vh, 100vh) * 0.75);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 1.5rem;
  text-align: center;
  gap: 5rem;
}

/* Invisible spacer matching the logo's visual size so description sits below */
.hero-logo-spacer {
  width: min(80vw, 480px);
  aspect-ratio: 760.34 / 145.39;
}

/* ── Scroll hint arrow ── */
.scroll-hint {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  translate: -50% 0;
  z-index: 10;
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.5);
  animation: bounce 2s ease-in-out infinite;
  transition: opacity 0.4s ease;
}

.scroll-hint.hidden {
  opacity: 0;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* ── Show section ── */
.show-section {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 50vh;
  min-height: calc(var(--stable-vh, 100vh) * 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem;
  margin-bottom: 2rem;
  opacity: 0;
  will-change: opacity, transform;
}

.show-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 3rem 3.5rem;
  text-align: center;
  max-width: 440px;
  width: 100%;
}

.show-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 0.75rem;
}

.show-title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.show-details {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
}

/* ── Main content ── */
.content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem;
  max-width: 720px;
  width: 100%;
  text-align: center;
  gap: 4rem;
}

/* On the main page, content no longer needs to center vertically */
.main-content {
  flex: none;
  justify-content: flex-start;
}

@media (max-width: 600px) {
  .content {
    justify-content: flex-start;
    padding: 3rem 1.25rem 2rem;
    gap: 3rem;
  }

  .logo {
    width: min(85vw, 400px);
    margin-top: 2rem;
  }

  .description {
    font-size: 0.95rem;
  }

  .social-link {
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
  }

  .instagram-embed {
    margin-top: 1.25rem;
  }

  .footer {
    padding: 1.25rem;
  }

  .show-card {
    padding: 2rem 1.5rem;
  }

  .hero-logo-spacer {
    width: min(85vw, 400px);
  }
}

/* Logo */
.logo {
  width: min(80vw, 480px);
  height: auto;
  filter: drop-shadow(0 0 24px rgba(255, 240, 51, 0.25));
  animation: logoGlow 6s ease-in-out infinite;
  overflow: visible;
}

@keyframes logoGlow {
  0%, 100% { filter: drop-shadow(0 0 20px rgba(255, 240, 51, 0.2)); }
  50% { filter: drop-shadow(0 0 36px rgba(255, 240, 51, 0.4)); }
}

/* Individual letter animations */
.letter {
  fill: url(#logo-gradient);
  stroke: url(#logo-gradient);
  stroke-width: 0;
  paint-order: stroke fill;
  stroke-linejoin: round;
  transform-origin: center center;
  animation:
    letterDrift 7s ease-in-out infinite,
    letterWeight 9s ease-in-out infinite;
  /* Stagger each letter via --i custom property */
  animation-delay:
    calc(var(--i) * -1.4s),
    calc(var(--i) * -1.8s);
}

@keyframes letterDrift {
  0%, 100% { transform: translateY(0) translateX(0); }
  30% { transform: translateY(-3px) translateX(1px); }
  70% { transform: translateY(2px) translateX(-1px); }
}

@keyframes letterWeight {
  0%, 100% { stroke-width: 0; }
  50% { stroke-width: 3px; }
}

/* Description */
.description {
  font-size: clamp(1.1rem, 2.8vw, 1.4rem);
  font-weight: 500;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  max-width: 540px;
}

/* Social section */
.social-section {
  width: 100%;
  max-width: 540px;
}

.social-links {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
  background: rgba(255, 255, 255, 0.05);
}

.social-link:hover {
  border-color: var(--yellow);
  color: var(--yellow);
  background: rgba(255, 229, 0, 0.08);
  transform: translateY(-2px);
}

.social-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Instagram embed (Elfsight widget) */
.instagram-embed {
  margin-top: 2rem;
  border-radius: 16px;
  overflow: hidden;
  background: transparent;
}

/* Override Elfsight's default dark background */
.instagram-embed iframe,
.instagram-embed [class*="elfsight"] {
  background: transparent !important;
}

/* Hide Elfsight free-tier branding */
.instagram-embed a[href*="elfsight"],
.instagram-embed [class*="eapps-link"] {
  display: none !important;
}

/* Footer */
.footer {
  position: relative;
  z-index: 2;
  padding: 2rem 1.5rem;
  width: 100%;
  text-align: center;
}

.footer a {
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.3s ease;
}

.footer-sep {
  color: rgba(255, 255, 255, 0.25);
  margin: 0 0.25rem;
}

.footer a:hover {
  color: rgba(255, 255, 255, 0.8);
}

/* Subpages (Impressum, Kontakt) */
.subpage-content,
.impressum-content {
  justify-content: flex-start;
  padding-top: 4rem;
  text-align: left;
  gap: 1.5rem;
}

.subpage-content h1,
.impressum-content h1 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  letter-spacing: -0.02em;
}

.subpage-content p,
.impressum-content p {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
}

.email-link {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.3);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.3s ease;
}

.email-link:hover {
  text-decoration-color: var(--yellow);
}

.back-link {
  display: inline-block;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.back-link:hover {
  color: #fff;
}

.back-link::before {
  content: '\2190\00a0';
}
