/* Weihnachtslook (nur aktiv, wenn weihnachten.js die Klasse "xmas" setzt: im Dezember). Danach einfach aus. */
html.xmas { --xmas-rot: #c8102e; --xmas-gold: #f2c14e; --xmas-gruen: #2f8f4e; }

/* Lichterkette ganz oben */
.xmas-lichter { position: fixed; top: 0; left: 0; right: 0; height: 22px; z-index: 70; pointer-events: none; }
.xmas-lichter::before, .xmas-lichter::after { content: ""; position: absolute; inset: 0; background-repeat: repeat-x; background-size: 96px 22px; }
.xmas-lichter::before {
  background-image:
    radial-gradient(circle at 12px 11px, var(--xmas-rot) 0 4px, rgba(200, 16, 46, .35) 5px, transparent 9px),
    radial-gradient(circle at 60px 11px, var(--xmas-gold) 0 4px, rgba(242, 193, 78, .4) 5px, transparent 9px);
  animation: xmas-blink 2.6s ease-in-out infinite;
}
.xmas-lichter::after {
  background-image:
    radial-gradient(circle at 36px 11px, var(--xmas-gruen) 0 4px, rgba(47, 143, 78, .4) 5px, transparent 9px),
    radial-gradient(circle at 84px 11px, #7cc4ff 0 4px, rgba(124, 196, 255, .4) 5px, transparent 9px);
  animation: xmas-blink 2.6s ease-in-out infinite reverse;
}
@keyframes xmas-blink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* Schnee */
.xmas-schnee { position: fixed; inset: 0; z-index: 69; pointer-events: none; }

/* Feine Goldlinie unter der Kopfleiste (nur am PC) */
html.xmas .kopf { border-bottom: 1px solid transparent; border-image: linear-gradient(90deg, transparent, rgba(242, 193, 78, .85) 20%, rgba(242, 193, 78, .85) 80%, transparent) 1; }

/* Prof. Sky mit Weihnachtsmütze */
.p-muetze { display: none; }
html.xmas .p-muetze { display: inline; }

/* Weihnachtsmütze auf dem Logo */
html.xmas .marke { position: relative; }
html.xmas .marke::after {
  content: ""; position: absolute; left: -.55rem; top: -.55rem; width: 1.9rem; height: 1.9rem; pointer-events: none; transform: rotate(-18deg);
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'><path d='M8 46c4-22 16-36 36-36 2 8 0 14-4 20 6-2 10-6 12-12 2 10-2 24-10 28z' fill='%23c8102e'/><path d='M4 44c10 6 40 8 56-6l2 8c-18 14-48 14-60 4z' fill='%23ffffff'/><circle cx='52' cy='12' r='7' fill='%23ffffff'/></svg>") center / contain no-repeat;
}


@media (max-width: 40rem) {
  .xmas-lichter { height: 18px; }
  .xmas-lichter::before, .xmas-lichter::after { background-size: 80px 18px; }
  html.xmas .kopf { border-bottom: 0; border-image: none; }
  html.xmas .marke::after { width: 1.6rem; height: 1.6rem; left: -.4rem; top: -.45rem; }
}
@media (prefers-reduced-motion: reduce) { .xmas-lichter::before, .xmas-lichter::after { animation: none; } }
@media print { .xmas-lichter, .xmas-schnee { display: none; } html.xmas .kopf { border-image: none; } }
