/* =========================================
   WEIHNACHTLICHER BEGRÜSSUNGSBEREICH
   ========================================= */

.holiday-greeting {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 1.5rem auto 2rem;
  padding: 1.6rem 1rem 1.8rem;
  overflow: hidden;

  border: 4px solid #fff2b0;
  border-radius: 28px;

  color: white;
  text-align: center;

  background: linear-gradient(120deg,
      #e73448,
      #9b43c9,
      #2878d4,
      #12a87a,
      #e73448);

  background-size: 300% 300%;
  animation: holiday-rainbow 8s ease infinite;

  box-shadow:
    0 0 14px #fff2b0,
    0 0 32px rgb(255 50 90 / 55%);
}


/* Lichter */

.holiday-greeting__lights {
  display: block;
  margin-bottom: 0.65rem;

  font-size: clamp(1.2rem, 4vw, 1.7rem);
  letter-spacing: 0.15em;

  animation: holiday-twinkle 1s ease-in-out infinite alternate;
}


/* Weihnachtsbaum */

.holiday-greeting__tree {
  display: inline-block;
  margin: 0 0.35rem;

  font-size: 1.7rem;

  animation: holiday-bounce 1.2s ease-in-out infinite;
}


/* Überschrift */

.holiday-greeting__title {
  display: inline-block;
  margin: 0;

  color: #fff8bd;

  font-family: "Brush Script MT", "Segoe Script", cursive;
  font-size: clamp(2.2rem, 7vw, 4rem);
  font-weight: bold;
  line-height: 1.15;

  text-shadow:
    0 0 8px #fff,
    2px 3px 0 rgb(80 20 20 / 35%);
}


/* Begrüßungstext */

.holiday-greeting__message {
  margin: 0.7rem 0 0;

  font-size: clamp(1rem, 3vw, 1.3rem);
  font-weight: 700;

  text-shadow: 0 2px 5px rgb(0 0 0 / 35%);
}


/* =========================================
   ANIMATIONEN WEIHNACHTSBEGRÜSSUNG
   ========================================= */

@keyframes holiday-rainbow {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}


@keyframes holiday-twinkle {
  from {
    opacity: 0.65;
    filter: brightness(0.85);
  }

  to {
    opacity: 1;
    filter: brightness(1.5);
  }
}


@keyframes holiday-bounce {

  0%,
  100% {
    transform: translateY(0) rotate(-5deg);
  }

  50% {
    transform: translateY(-7px) rotate(5deg);
  }
}


/* =========================================
   SCHNEEFALL
   ========================================= */

#snowfall {
  position: fixed;
  inset: 0;

  width: 100%;
  height: 100%;

  pointer-events: none;
  overflow: hidden;

  z-index: 99999;
}


/* Einzelne Schneeflocken */

.snowflake {
  position: absolute;
  top: -30px;
  left: var(--snow-left);

  display: block;

  color: #ffffff;
  font-size: var(--snow-size);
  opacity: var(--snow-opacity);

  line-height: 1;

  text-shadow:
    0 0 4px rgba(255, 255, 255, 0.8),
    0 0 10px rgba(255, 255, 255, 0.5);

  animation:
    snowfall-fall var(--snow-duration) linear var(--snow-delay) infinite;

  will-change: transform;
}


/* Fallbewegung */

@keyframes snowfall-fall {
  0% {
    transform: translate3d(0, -30px, 0) rotate(0deg);
  }

  50% {
    transform: translate3d(var(--snow-drift),
        50vh,
        0) rotate(180deg);
  }

  100% {
    transform: translate3d(0, 110vh, 0) rotate(360deg);
  }
}


/* =========================================
   MOBILE OPTIMIERUNG
   ========================================= */

@media (max-width: 600px) {

  .holiday-greeting {
    margin: 1rem 0.75rem 1.5rem;
    padding: 1.3rem 0.75rem;
  }

}


/* =========================================
   BEWEGUNGSEINSCHRÄNKUNGEN
   ========================================= */

@media (prefers-reduced-motion: reduce) {

  .holiday-greeting,
  .holiday-greeting__lights,
  .holiday-greeting__tree {
    animation: none !important;
  }

  #snowfall {
    display: none;
  }

}