/* Seitenanzeige */

.page {
  display: none !important;
}

.page.active {
  display: block !important;
}

.ep-section {
  background: transparent !important;
}

.ep-section.active {
  display: grid !important;
}


/* Bandfoto und Hintergrundabdunklung */

.background-image {
  background-image: url("../pictures/band.jpg") !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  transform: none !important;
  filter: brightness(1.04) saturate(1.02) contrast(1.02) !important;
  transition: filter 5s ease !important;
}

.background-overlay {
  background: radial-gradient(
    circle at 50% 32%,
    rgba(10, 14, 24, 0.02) 0%,
    rgba(10, 14, 24, 0.08) 48%,
    rgba(10, 14, 24, 0.34) 100%
  ) !important;
}


/* Fixed visual layers are now siblings of the scrolling page content. */

#rain {
  position: fixed !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  overflow: hidden !important;
  pointer-events: none !important;
  z-index: 1 !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

#rain .rain-js-drop {
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  display: block !important;
  width: 1px !important;
  height: 36px !important;
  min-width: 1px !important;
  min-height: 20px !important;
  background: linear-gradient(
    to bottom,
    rgba(225, 235, 255, 0) 0%,
    rgba(225, 235, 255, 0.50) 35%,
    rgba(245, 249, 255, 0.80) 100%
  ) !important;
  border: 0 !important;
  border-radius: 999px !important;
  box-shadow: 0 0 2px rgba(225, 235, 255, 0.08) !important;
  pointer-events: none !important;
  will-change: transform, opacity !important;
}


/* Sanftes Sonnenlicht nach dem letzten Tropfen */

.after-rain-glow {
  position: fixed !important;
  inset: -15% !important;
  z-index: 0 !important;
  pointer-events: none !important;
  opacity: 0 !important;
  background:
    radial-gradient(
      ellipse at 88% 12%,
      rgba(255, 242, 205, 0.26) 0%,
      rgba(255, 235, 185, 0.12) 22%,
      transparent 55%
    ),
    linear-gradient(
      125deg,
      transparent 45%,
      rgba(255, 240, 200, 0.06) 65%,
      transparent 85%
    ) !important;
  filter: blur(28px) !important;
  transform: translate3d(5%, -2%, 0) scale(1.04) !important;
  transition:
    opacity 5s ease,
    transform 7s ease !important;
}

body.after-rain .after-rain-glow {
  opacity: 1 !important;
  transform: translate3d(0, 0, 0) scale(1) !important;
}

body.after-rain .background-image {
  filter: brightness(1.07) saturate(1.04) contrast(1.02) !important;
}


/* Mobile Darstellung */

@media (max-width: 700px) {
  #rain .rain-js-drop {
    height: 28px !important;
  }

  /* Keep mobile visual layers document-sized to prevent a viewport-height gap. */
  .background-image,
  .background-overlay,
  #rain,
  .after-rain-glow,
  .sunlight-glow {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    bottom: auto !important;
    left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: var(--document-height, 100vh) !important;
    box-sizing: border-box !important;
  }

  .after-rain-glow,
  .sunlight-glow {
    inset: 0 !important;
    transform: none !important;
  }

  .background-image {
    background-size: cover !important;
    background-position: center top !important;
    background-repeat: no-repeat !important;
  }

  #rain { overflow: hidden !important; }
}


/* Der Regenablauf bleibt unabhängig von der Systemeinstellung aktiv. */