/* Winter-Look der Website (winter.js setzt .winter am <html>, nur im Winter-Zeitraum oder mit ?winter=1).
   Ändert keine Farbe der Seite: Violett und die dunklen Flächen bleiben, der Winter liegt nur obendrauf. */
.w-bezug { position: relative; }

/* Fallender Schnee: über dem Inhalt, unter der Kopfleiste, nie klickbar */
.w-schnee { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 40; pointer-events: none; }

/* Girlande mit Lichterkette: hängt in Bögen an der Unterkante der Kopfleiste */
.w-girlande { position: absolute; left: 0; right: 0; top: calc(100% - 12px); height: 54px; pointer-events: none; z-index: 2; overflow-x: clip; }
.w-girlande canvas { position: absolute; left: 0; top: 0; width: 100%; height: 54px; }

/* Lampe: Messingfassung, Glaskörper mit Glanzlicht und heißem Kern, dazu ein weicher Schein (Verlauf statt Filter) */
.w-licht { position: absolute; width: 12px; height: 17px; margin-left: -6px; transform: rotate(var(--w-dreh, 0deg)); transform-origin: 50% -4px;
  border-radius: 50% 50% 50% 50% / 36% 36% 64% 64%;
  background: radial-gradient(circle at 34% 26%, #fff 0 8%, #fff0 24%), radial-gradient(circle at 50% 56%, #fff 0 10%, var(--w-farbe) 46%, var(--w-dunkel) 100%);
  box-shadow: 0 0 7px 1px var(--w-schein-2); }
.w-licht::before { content: ""; position: absolute; left: 3px; top: -5px; width: 6px; height: 6px; border-radius: 1.5px 1.5px 1px 1px;
  background: linear-gradient(90deg, #5c4a1e, #c9a851 45%, #6b5624); }
.w-licht::after { content: ""; position: absolute; left: 50%; top: 56%; width: 104px; height: 78px; margin: -39px 0 0 -52px; border-radius: 50%;
  background: radial-gradient(closest-side, var(--w-schein) 0, var(--w-schein-2) 30%, transparent 100%);
  animation: w-glimmen var(--w-dauer, 3.2s) ease-in-out infinite; animation-delay: var(--w-versatz, 0s); }
.w-rot   { --w-farbe: #ff4a4a; --w-dunkel: #a61c1c; --w-schein: #ff5a5ad9; --w-schein-2: #ff4a4a55; }
.w-gelb  { --w-farbe: #ffc531; --w-dunkel: #b07a08; --w-schein: #ffd04ad9; --w-schein-2: #ffc53155; }
.w-gruen { --w-farbe: #36d67c; --w-dunkel: #12773f; --w-schein: #4be08bd9; --w-schein-2: #36d67c55; }
.w-blau  { --w-farbe: #4aa3ff; --w-dunkel: #1b58a8; --w-schein: #63b0ffd9; --w-schein-2: #4aa3ff55; }
@keyframes w-glimmen { 0%, 100% { opacity: .45; transform: scale(.8); } 40% { opacity: 1; transform: scale(1.1); } 55% { opacity: .8; transform: scale(.97); } 70% { opacity: 1; transform: scale(1.05); } }

/* Schneekappe: liegt oben auf einer Karte */
.w-kappe { position: absolute; left: 0; top: -12px; pointer-events: none; z-index: 1; overflow: visible; }

/* Mütze auf dem Logo */
.w-muetze { position: absolute; pointer-events: none; transform: rotate(-14deg); transform-origin: 50% 80%; z-index: 1; }

@media (prefers-reduced-motion: reduce) {
  .w-licht::after { animation: none; opacity: .85; }
}
