/* Seasonal decoration for every page outside the homepage. */
body.winter-page .page-header {
  background:
    radial-gradient(ellipse at 18% 75%, rgba(91, 16, 25, .38), transparent 48%),
    radial-gradient(ellipse at 78% 30%, rgba(16, 67, 47, .48), transparent 52%),
    linear-gradient(145deg, #090e0c, #13120d 58%, #130b0d);
}
body.winter-page .page-header::before,
body.winter-page .winter-legal-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('assets/winterbibliothek-geschichte.png') right center / auto 130% no-repeat;
  opacity: .14;
  mask-image: linear-gradient(to right, transparent 30%, #000 100%);
  pointer-events: none;
}
body.winter-page .page-header::after,
body.winter-page .winter-legal-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 55%, rgba(255,233,181,.65) 0 2px, transparent 7px),
    radial-gradient(circle at 66% 24%, rgba(255,233,181,.55) 0 2px, transparent 8px),
    radial-gradient(circle at 91% 61%, rgba(255,233,181,.55) 0 2px, transparent 8px);
  pointer-events: none;
}
.winter-page .christmas-ornaments,
.winter-page .winter-sky {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}
.winter-page .hanging-bauble {
  position: absolute;
  top: -12px;
  width: 1px;
  height: var(--drop);
  background: linear-gradient(to bottom, rgba(240,211,152,.12), rgba(240,211,152,.8));
  transform-origin: top center;
  animation: winter-bauble-sway 8s ease-in-out infinite alternate;
}
.winter-page .hanging-bauble img {
  position: absolute;
  top: calc(100% - 4px);
  left: 50%;
  display: block;
  width: var(--size);
  max-width: none;
  height: auto;
  transform: translateX(-50%);
  filter: drop-shadow(0 8px 12px rgba(0,0,0,.42));
}
.winter-page .bauble-one   { left: 5%;  --drop: 74px; --size: 61px; animation-delay: -1.2s; }
.winter-page .bauble-two   { left: 22%; --drop: 98px; --size: 51px; animation-delay: -4.1s; }
.winter-page .bauble-three { left: 39%; --drop: 68px; --size: 46px; animation-delay: -2.6s; }
.winter-page .bauble-four  { left: 61%; --drop: 82px; --size: 48px; animation-delay: -5.3s; }
.winter-page .bauble-five  { left: 78%; --drop: 99px; --size: 54px; animation-delay: -3.7s; }
.winter-page .bauble-six   { left: 95%; --drop: 72px; --size: 61px; animation-delay: -.8s; }
@keyframes winter-bauble-sway { from { transform: rotate(-2.5deg); } to { transform: rotate(2.5deg); } }
.winter-page .winter-star {
  position: absolute;
  left: -12%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #fff6d7;
  box-shadow: 0 0 8px 3px rgba(255,227,159,.7), 0 0 22px 7px rgba(238,187,92,.2);
  opacity: 0;
  animation: winter-star-dash 11s linear infinite;
}
.winter-page .winter-star::before {
  content: "";
  position: absolute;
  right: 2px;
  top: 1px;
  width: 110px;
  height: 2px;
  transform: rotate(18deg);
  transform-origin: right center;
  background: linear-gradient(to right, transparent, rgba(255,221,153,.8));
}
.winter-page .star-one { top: 15%; animation-delay: -2s; }
.winter-page .star-two { top: 32%; animation-delay: -7s; animation-duration: 13s; }
.winter-page .star-three { top: 53%; animation-delay: -10s; animation-duration: 15s; }
.winter-page .star-four { top: 70%; animation-delay: -4s; animation-duration: 17s; }
@keyframes winter-star-dash {
  0%, 8% { transform: translate3d(0,0,0); opacity: 0; }
  10% { opacity: 1; }
  23% { opacity: .95; }
  29%, 100% { transform: translate3d(120vw,28vh,0); opacity: 0; }
}
body.winter-legal .winter-legal-banner {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 340px;
  overflow: hidden;
  mask-image: linear-gradient(to bottom, #000 0%, #000 70%, transparent 100%);
  background:
    radial-gradient(ellipse at 18% 65%, rgba(91,16,25,.28), transparent 48%),
    radial-gradient(ellipse at 78% 20%, rgba(16,67,47,.34), transparent 52%),
    linear-gradient(145deg, #090e0c, #13120d 58%, #130b0d);
  pointer-events: none;
}
body.winter-legal .winter-legal-banner .hanging-bauble {
  height: calc(var(--drop) * .65);
}
body.winter-legal .winter-legal-banner .hanging-bauble img {
  width: calc(var(--size) * .75);
}
body.winter-legal .legal-content { position: relative; z-index: 3; }
@media (max-width: 740px) {
  .winter-page .bauble-one   { left: 7%;  --drop: 77px; --size: 40px; }
  .winter-page .bauble-two   { left: 24%; --drop: 99px; --size: 35px; }
  .winter-page .bauble-three { left: 41%; --drop: 72px; --size: 33px; }
  .winter-page .bauble-four  { left: 59%; --drop: 86px; --size: 34px; }
  .winter-page .bauble-five  { left: 76%; --drop: 101px; --size: 36px; }
  .winter-page .bauble-six   { left: 93%; --drop: 76px; --size: 40px; }
  .winter-page .winter-star::before { width: 65px; }
  body.winter-legal .winter-legal-banner { height: 280px; }
  body.winter-legal .legal-content h1 { font-size: clamp(28px, 7vw, 36px); }
}
@media (prefers-reduced-motion: reduce) {
  .winter-page .hanging-bauble { animation: none; }
  .winter-page .winter-star { display: none; }
}
