/* ==========================================================
   Sandberg Container – Weihnachts-Ausgabe
   Wird zusätzlich zu style.css geladen.
   ========================================================== */

:root {
  --xmas-red: #e0313b;
  --xmas-gold: #ffc53d;
  --xmas-green: #2fbf71;
  --xmas-blue: #4fb3ff;
  --xmas-white: #fff6d9;
  --xmas-wire: #7d8ca0;
}

/* ---------- Lichterkette unter dem Kopfbereich ---------- */
.site-header { position: sticky; }
.xmas-lights {
  position: absolute; left: 0; right: 0; top: 100%;
  height: 44px; margin: 0; padding: 0 0 0 10px; list-style: none;
  white-space: nowrap; overflow: hidden; pointer-events: none; z-index: 3;
  font-size: 0;
}
.xmas-lights li {
  --c: var(--xmas-gold);
  position: relative; display: inline-block;
  width: 11px; height: 18px; margin: 0 21px; top: 10px;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: var(--c);
  box-shadow: 0 3px 16px 3px var(--c);
  animation: xmas-flash 1.8s ease-in-out infinite alternate;
  animation-delay: var(--d, 0s);
}
.xmas-lights li:nth-child(5n+1) { --c: var(--xmas-red); }
.xmas-lights li:nth-child(5n+2) { --c: var(--xmas-gold); }
.xmas-lights li:nth-child(5n+3) { --c: var(--xmas-green); }
.xmas-lights li:nth-child(5n+4) { --c: var(--xmas-blue); }
.xmas-lights li:nth-child(5n+5) { --c: var(--xmas-white); }

/* Fassung */
.xmas-lights li::before {
  content: ""; position: absolute; top: -5px; left: 1.5px;
  width: 8px; height: 6px; border-radius: 2px; background: #3a4656;
}
/* Kabel zum nächsten Licht */
.xmas-lights li::after {
  content: ""; position: absolute; top: -15px; left: 7px;
  width: 52px; height: 14px;
  border-bottom: 2px solid var(--xmas-wire); border-radius: 50%;
}

@keyframes xmas-flash {
  0%   { opacity: 1;   box-shadow: 0 3px 18px 4px var(--c); }
  100% { opacity: .35; box-shadow: 0 3px 6px 0 var(--c); }
}

/* ---------- Schnee im Startbereich ---------- */
.xmas-snow {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 1;
}
.hero > .wrap { z-index: 2; }
.page-hero { position: relative; overflow: hidden; }
.page-hero > .wrap { position: relative; z-index: 2; }

/* ---------- Weihnachtsmütze auf dem Logo ---------- */
.brand { position: relative; display: inline-block; }
.xmas-hat {
  position: absolute; left: -13px; top: -17px; width: 34px; height: auto;
  transform: rotate(-24deg); pointer-events: none;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,.25));
}

/* ---------- Kleine farbliche Akzente ---------- */
.hero .eyebrow { color: #ffd479; }
.hero .eyebrow::before { content: "★ "; color: var(--xmas-gold); }

/* ---------- Handy ---------- */
@media (max-width: 860px) {
  .xmas-lights { height: 38px; }
  .xmas-lights li { margin: 0 16px; width: 9px; height: 15px; }
  .xmas-lights li::after { width: 41px; left: 6px; }
  .xmas-hat { width: 28px; left: -11px; top: -14px; }
  .main-nav { z-index: 4; }
}

/* ---------- Weniger Bewegung gewünscht ---------- */
@media (prefers-reduced-motion: reduce) {
  .xmas-lights li { animation: none; }
  .xmas-snow { display: none; }
}
