/* Christmas decoration for the home page – loaded only while xmasAktiv() (see _lib/saison.php).
   Plain CSS on purpose (not part of view.sass), so it can be dropped without rebuilding. */

/* falling snow inside the hero slider (canvas created by xmas-snow.js) */
.xmas-snow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
}

/* greeting band below the slider – dark panel like footer/contact, red site accent */
.xmas-band {
  position: relative;
  overflow: hidden;
  background: #3a3d45;
  color: #fff;
  padding: 2.75rem 0;
  border-top: 3px solid #bd2a2e;
}
.xmas-band::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(rgba(255,255,255,.20) 1px, transparent 1.6px),
    radial-gradient(rgba(255,255,255,.10) 1px, transparent 1.6px);
  background-size: 48px 48px, 24px 24px;
  background-position: 0 0, 12px 17px;
}
.xmas-band__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.xmas-band__icon {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #bd2a2e;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 0 0 6px rgba(189,42,46,.28);
}
.xmas-band__title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 .35rem;
  color: #fff;
}
.xmas-band__text {
  margin: 0;
  max-width: 46rem;
  color: rgba(255,255,255,.85);
}
.xmas-band__sign {
  margin: .6rem 0 0;
  font-size: .9rem;
  letter-spacing: .5px;
  color: rgba(255,255,255,.6);
}

/* ── Festive variant (body.xmas-festlich, staging only – see _lib/saison.php) ── */

/* snow over the whole viewport */
.xmas-snow--page {
  position: fixed;
  z-index: 1025;
}

/* fairy lights below the sticky navbar */
.xmas-lights {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -16px;
  height: 22px;
  pointer-events: none;
  z-index: 2;
  background: radial-gradient(ellipse 22px 9px at 50% 0, transparent 88%, #4a4d55 90%, #4a4d55 100%, transparent 104%) 0 0 / 42px 11px repeat-x;
}
[data-bs-theme="dark"] .xmas-lights {
  background-image: radial-gradient(ellipse 22px 9px at 50% 0, transparent 88%, #8a8d95 90%, #8a8d95 100%, transparent 104%);
}
.xmas-bulb {
  position: absolute;
  top: 8px;
  width: 8px;
  height: 12px;
  margin-left: -4px;
  border-radius: 50% 50% 45% 45%;
  animation: xmas-twinkle 2.4s ease-in-out infinite;
}
.xmas-bulb::before { /* socket */
  content: '';
  position: absolute;
  top: -3px;
  left: 2px;
  width: 4px;
  height: 4px;
  border-radius: 1px;
  background: #4a4d55;
}
.xmas-bulb--r { background: #e0393e; --glow: rgba(224,57,62,.75); }
.xmas-bulb--g { background: #2fa866; --glow: rgba(47,168,102,.75); }
.xmas-bulb--y { background: #f2c14e; --glow: rgba(242,193,78,.8); }
.xmas-bulb--w { background: #fff6d5; --glow: rgba(255,246,213,.85); }
@keyframes xmas-twinkle {
  0%, 100% { opacity: 1;   box-shadow: 0 0 8px 2px var(--glow); }
  50%      { opacity: .45; box-shadow: 0 0 2px 0 var(--glow); }
}
@media (prefers-reduced-motion: reduce) {
  .xmas-bulb { animation: none; box-shadow: 0 0 6px 1px var(--glow); }
}

/* little stars instead of the red dots in the slider labels (live + staging since 28.11.2026;
   xmas.css itself is only loaded on the home page inside the Christmas window) */
#heroSlider .hs-label::before {
  content: '\2605';
  width: auto;
  height: auto;
  background: none;
  border-radius: 0;
  color: #bd2a2e;
  font-size: .95rem;
  line-height: 1;
}

@media (max-width: 575px) {
  .xmas-band { padding: 2.25rem 0; }
  .xmas-band__inner { flex-direction: column; text-align: center; gap: 1rem; }
  .xmas-band__title { font-size: 1.3rem; }
}
