/* Landing-spezifische Styles für Startseite
   – Header/Footer/Top-Nav kommen aus main.css */

/* === Root & Body Flags ============================================ */

body.landing-page {
  position: relative;
  min-height: 100vh;
  height: 100vh;
  overflow: hidden;
}

body.intro-active {
  overflow: hidden;
}

/* === Glow-Maske & Cursor-Glow ===================================== */

.cursor-glow-mask {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  -webkit-mask-image: radial-gradient(
    circle at center,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 1) 45%,
    rgba(255, 255, 255, 0) 60%,
    rgba(255, 255, 255, 0) 100%
  );
  -webkit-mask-mode: alpha;
  mask-image: radial-gradient(
    circle at center,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 1) 45%,
    rgba(255, 255, 255, 0) 60%,
    rgba(255, 255, 255, 0) 100%
  );
  mask-mode: alpha;
}

/* Landing: Header schwebt mittig, Nav bleibt aber aus main.css */

body.landing-page .site-header {
  position: fixed;
  top: 3.6rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
}

/* === Layout ======================================================= */

.layout {
  display: flex;
  height: 100vh;
  position: relative;
  z-index: 2;
}

.layout-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100vh;
  background: transparent;
}

/* === Hero-Bereich ================================================= */

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero {
  padding: 0;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.2fr);
  gap: 2.6rem;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 0.6rem;
  text-align: center;
}

.hero-kicker {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.26em;
  color: #b5aebf;
  margin-bottom: 0.4rem;
}

.hero-title {
  font-size: clamp(2.2rem, 3vw, 2.8rem);
  text-transform: uppercase;
  letter-spacing: 0.24em;
  line-height: 1.1;
  margin: 0 0 1.2rem;
  white-space: nowrap;
}

.hero-slashes {
  color: var(--accent-strong);
  padding: 0 0.2em;
}

.hero-text {
  font-size: 0.98rem;
  max-width: 36rem;
  margin: 0 auto;
  color: #f4f0f4;
}

.hero-text-long {
  font-family: "Lora", "Times New Roman", serif;
  line-height: 1.7;
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-align: justify;
  text-justify: inter-word;
}

/* === Countdown-Panel ============================================== */

.hero-countdown {
  margin-top: 1.6rem;
  display: flex;
  justify-content: center;
}

.countdown-panel {
  padding: 0.95rem 1.1rem;
  border-radius: 12px;
  border: 1px solid rgba(200, 190, 182, 0.48);
  background:
    radial-gradient(
      circle at 0 0,
      rgba(224, 50, 50, 0.16),
      transparent 55%
    ),
    radial-gradient(
      circle at 100% 100%,
      rgba(255, 118, 170, 0.16),
      transparent 60%
    ),
    rgba(7, 6, 10, 0.88);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7);
  max-width: 30rem;
  width: 100%;
}

.countdown-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
}

.panel-label {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: #b5aebf;
}

.panel-tag {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent-strong);
}

.countdown-meta {
  margin: 0 0 0.75rem;
  font-size: 0.86rem;
  color: #f4f0f4;
  text-align: left;
}

.countdown-timer {
  display: flex;
  gap: 0.9rem;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  margin-bottom: 0.55rem;
}

.time-segment {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 3.2rem;
}

.time-value {
  font-size: 1.15rem;
  font-weight: 600;
}

.time-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #b5aebf;
}

.countdown-note {
  margin: 0;
  font-size: 0.76rem;
  color: #b5aebf;
  opacity: 0.86;
}

.countdown-note.active {
  color: #f8e6ec;
}

.countdown-panel.countdown-passed {
  border-color: rgba(248, 230, 236, 0.7);
}

/* Spruch-Animation (links raus, rechts rein) */

.countdown-note.phrase-exit {
  animation: phraseExitLeft 0.3s ease forwards;
}

.countdown-note.phrase-enter {
  animation: phraseEnterRight 0.3s ease forwards;
}

@keyframes phraseExitLeft {
  from {
    opacity: 0.9;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(-12px);
  }
}

@keyframes phraseEnterRight {
  from {
    opacity: 0;
    transform: translateX(12px);
  }
  to {
    opacity: 0.9;
    transform: translateX(0);
  }
}

/* === Hero-Visual / Cover ========================================= */

.hero-visual {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
}

.hero-visual-frame {
  position: relative;
  width: 100%;
  max-width: 340px;
  aspect-ratio: 3 / 4;
  border-radius: 18px;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 10% 0,
      rgba(255, 255, 255, 0.16),
      transparent 60%
    ),
    radial-gradient(
      circle at 100% 80%,
      rgba(224, 50, 50, 0.4),
      transparent 70%
    ),
    #08050a;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.85);
  transition: transform 0.15s ease-out;
}

.hero-visual-img {
  position: absolute;
  inset: 8%;
  border-radius: 12px;
  overflow: hidden;
}

.hero-visual-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-visual-tag {
  position: absolute;
  right: 10%;
  bottom: 8%;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  background: rgba(248, 230, 236, 0.97);
  color: #22060b;
}

/* === Intro-Replay-Link ============================================ */

.intro-replay-wrapper {
  margin-top: 1.6rem;
  text-align: center;
}

.intro-replay-link {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #b5aebf;
  opacity: 0.75;
  text-decoration: none;
  transition: opacity 0.25s ease, color 0.25s ease;
}

.intro-replay-link:hover {
  opacity: 1;
  color: #ffffff;
}

/* === Intro-Overlay & Figuren ===================================== */

.intro-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.4rem 1.4rem;
  transition: opacity 0.3s ease;
  opacity: 1;
  pointer-events: auto;
}

.intro-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.intro-overlay.is-opening {
  opacity: 1;
}

/* Hintergrund-Layer im Overlay */

.intro-ambient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 10% 0,
      rgba(255, 255, 255, 0.08),
      transparent 60%
    ),
    radial-gradient(
      circle at 100% 100%,
      rgba(224, 50, 50, 0.24),
      transparent 65%
    );
  opacity: 0.9;
}

.intro-noise {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  mix-blend-mode: soft-light;
  background-image:
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.08) 0px,
      rgba(255, 255, 255, 0.08) 1px,
      transparent 1px,
      transparent 2px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.4) 0px,
      rgba(0, 0, 0, 0.4) 1px,
      transparent 1px,
      transparent 2px
    );
}

/* Blitz-Effekt */

.intro-flash {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
}

.intro-overlay.flash-active .intro-flash::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  left: var(--flash-x, 50%);
  top: var(--flash-y, 50%);
  background:
    radial-gradient(
      circle at center,
      rgba(255, 255, 255, 0.9) 0,
      rgba(255, 255, 255, 0.2) 35%,
      transparent 70%
    );
  filter: blur(8px);
}

/* Figuren im Hintergrund */

.intro-figures {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.intro-figure {
  position: absolute;
  width: 180px;
  height: 320px;
  border-radius: 120px;
  background: radial-gradient(
    circle at 30% 0,
    rgba(255, 255, 255, 0.4),
    rgba(224, 50, 50, 0.1),
    transparent 80%
  );
  opacity: 0.35;
  mix-blend-mode: screen;
  filter: blur(2px);
  animation: floatFigure 18s ease-in-out infinite alternate;
}

.intro-figure-1 {
  left: 8%;
  top: 15%;
  animation-delay: 0s;
}

.intro-figure-2 {
  right: 10%;
  top: 25%;
  animation-delay: 4s;
}

.intro-figure-3 {
  left: 50%;
  bottom: -5%;
  transform: translateX(-50%);
  width: 260px;
  height: 260px;
  animation-delay: 8s;
}

@keyframes floatFigure {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(10px, -16px, 0) scale(1.04);
  }
  100% {
    transform: translate3d(-18px, 12px, 0) scale(1.02);
  }
}

/* Overlay-Inhalt */

.intro-inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(245, 242, 238, 0.6);
  background: rgba(7, 6, 10, 0.96);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.86);
  padding: 1.7rem 1.8rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.intro-content {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.6fr);
  gap: 1.6rem;
}

/* Intro-Header-Text */

.intro-header h1 {
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  margin: 0 0 0.6rem;
}

.intro-header p {
  margin: 0 0 0.6rem;
  font-size: 0.9rem;
  color: #e4dde5;
}

.intro-header strong {
  color: var(--accent-strong);
}

/* Slides */

.intro-slides {
  position: relative;
  min-height: 6.5rem;
}

.intro-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.intro-slide h2 {
  margin: 0 0 0.4rem;
  font-size: 1.02rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.intro-slide p {
  margin: 0;
  font-size: 0.9rem;
  color: #f4f0f4;
}

.intro-slide.intro-slide-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Dots & Buttons */

.intro-footer {
  margin-top: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.intro-dots {
  display: flex;
  gap: 0.35rem;
}

.intro-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 1px solid rgba(245, 242, 238, 0.8);
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.intro-dot.intro-dot-active {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
}

.intro-buttons {
  display: flex;
  gap: 0.5rem;
}

.intro-btn {
  padding: 0.48rem 0.95rem;
  border-radius: 6px;
  border: 1px solid rgba(230, 224, 224, 0.85);
  background: rgba(10, 8, 13, 0.92);
  color: #f9f8f7;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  cursor: pointer;
}

.intro-btn.primary {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  color: #070506;
}

.intro-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

/* Typing-Animation-Fade (Text wird per JS eingetippt) */

@keyframes introLineFade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === Responsive Landing & Intro =================================== */

@media (max-width: 900px) {
  body.landing-page {
    height: auto;
    min-height: 100vh;
    overflow: auto;
  }

  .layout {
    flex-direction: column;
    height: auto;
  }

  .layout-main {
    height: auto;
  }

  body.landing-page .site-header {
    position: static;
    top: auto;
    left: auto;
    transform: none;
    margin-top: 1.2rem;
    text-align: center;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
    padding-top: 1rem;
  }

  .hero-title {
    white-space: normal;
  }

  .hero-visual {
    margin-top: 1.5rem;
    order: -1;
    margin-bottom: 0.5rem;
  }

  .hero-countdown {
    margin-top: 1.5rem;
  }

  .hero-visual-frame {
    max-width: 260px;
  }

  .intro-inner {
    padding: 1.4rem 1.1rem 1.2rem;
    max-height: calc(100vh - 2.4rem);
    overflow-y: auto; /* Overlay kann scrollen */
  }

  .intro-content {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.2rem;
  }
}

/* Mobile-Fix für Intro-Slides: nur eine Slide im Flow sichtbar,
   Text schiebt die Buttons nach unten, nichts läuft ineinander. */
@media (max-width: 640px) {
  /* Fenster: kompakt halten, nicht fullscreen */
  .intro-inner {
    padding: 1.2rem 1rem 1.2rem;
    max-width: 90%;
    margin: 0 auto;
  }

  /* Slides im normalen Flow (kein absolutes Stacken auf Mobile) */
  .intro-slides {
    position: static;
    min-height: 0;
  }

  /* Basis: alle Slides sind im Flow, aber NICHT sichtbar */
  .intro-slide {
    position: static;
    opacity: 1;          /* Animation egal auf Mobile */
    transform: none;
    pointer-events: none;
    display: none;       /* entscheidend: nimmt keinen Platz ein */
  }

  /* Nur die aktive Slide wird angezeigt */
  .intro-slide.intro-slide-active {
    display: block;
    pointer-events: auto;
  }

  /* Buttons sicher unter dem Text */
  .intro-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 0.8rem;
  }

  .intro-buttons {
    justify-content: center;
  }

    .intro-dots {
    justify-content: center;
    width: 100%;
  }
}



