/* Weihnachts-Deko für C&I – wird nach dem normalen Stil geladen (nur in /weihnachten/) */
:root {
  --xmas-red: #c8102e;
  --xmas-green: #14602f;
  --xmas-gold: #ffd54a;
}

/* ---------- Banner mit Zuckerstangen-Rand ---------- */
.xmas-bar {
  position: relative; z-index: 40; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px;
  padding: 8px 16px 12px; color: #fff; font-size: .92rem; font-weight: 700; text-align: center;
  background: linear-gradient(90deg, #8e0f24, var(--xmas-red) 50%, #8e0f24);
}
.xmas-bar::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px;
  background: repeating-linear-gradient(135deg, #fff 0 7px, var(--xmas-red) 7px 14px);
}
.xmas-bar a { color: #fff; text-underline-offset: 3px; }
.xmas-bar a:hover { color: var(--xmas-gold); }

/* ---------- Mütze auf dem Logo ---------- */
html.xmas .site-header .brand { position: relative; }
.xmas-hat { position: absolute; left: -4px; top: -32px; width: 56px; pointer-events: none; transform: rotate(-9deg); transform-origin: 50% 100%; animation: xmas-hat 4s ease-in-out infinite; }
.xmas-hat svg { width: 100%; height: auto; display: block; }
@keyframes xmas-hat { 50% { transform: rotate(-5deg); } }
.overlay .brand .xmas-hat { display: none; }

/* ---------- Lichterkette ---------- */
.xmas-lights { position: absolute; left: 0; right: 0; top: 100%; height: 40px; overflow: hidden; pointer-events: none; z-index: 5; }
.xmas-lights svg { display: block; }
html.xmas .b { animation: xmas-twinkle 1.9s ease-in-out infinite; animation-delay: var(--d, 0s); filter: drop-shadow(0 0 5px var(--c)); }
@keyframes xmas-twinkle { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* ---------- Kopfbereiche: Sternenhimmel, Kugeln, Schnee ---------- */
.xmas-host { position: relative; }
.xmas-host > .wrap { position: relative; z-index: 1; }
.xmas-host .mascot { z-index: 2; }
.xmas-sky { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.xmas-sky .s1, .xmas-sky .s2 { position: absolute; inset: 0; animation: xmas-stars 3.6s ease-in-out infinite alternate; }
.xmas-sky .s1 {
  background-image:
    radial-gradient(1.6px 1.6px at 8% 22%, #fff 60%, transparent 62%), radial-gradient(1.2px 1.2px at 17% 61%, #fff 60%, transparent 62%),
    radial-gradient(1.8px 1.8px at 29% 14%, #fff 60%, transparent 62%), radial-gradient(1.2px 1.2px at 41% 72%, #fff 60%, transparent 62%),
    radial-gradient(1.6px 1.6px at 55% 30%, #fff 60%, transparent 62%), radial-gradient(1.4px 1.4px at 68% 80%, #fff 60%, transparent 62%),
    radial-gradient(1.8px 1.8px at 77% 18%, #fff 60%, transparent 62%), radial-gradient(1.2px 1.2px at 91% 52%, #fff 60%, transparent 62%);
}
.xmas-sky .s2 {
  animation-delay: -1.8s;
  background-image:
    radial-gradient(1.4px 1.4px at 4% 48%, #ffe9a6 60%, transparent 62%), radial-gradient(1.8px 1.8px at 23% 38%, #ffe9a6 60%, transparent 62%),
    radial-gradient(1.4px 1.4px at 36% 8%, #ffe9a6 60%, transparent 62%), radial-gradient(1.6px 1.6px at 49% 56%, #ffe9a6 60%, transparent 62%),
    radial-gradient(1.4px 1.4px at 62% 12%, #ffe9a6 60%, transparent 62%), radial-gradient(1.8px 1.8px at 84% 34%, #ffe9a6 60%, transparent 62%),
    radial-gradient(1.4px 1.4px at 96% 76%, #ffe9a6 60%, transparent 62%);
}
@keyframes xmas-stars { from { opacity: .25; } to { opacity: .95; } }
.xmas-hills { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(28px, 4.5vw, 56px); display: block; }
.xmas-orn { position: absolute; top: 0; transform-origin: 17px 0; animation: xmas-swing 3.4s ease-in-out infinite alternate; animation-delay: var(--d, 0s); }
.xmas-orn svg { display: block; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .35)); }
@keyframes xmas-swing { from { transform: rotate(-7deg); } to { transform: rotate(7deg); } }
@media (max-width: 720px) { .xmas-orn { transform: scale(.8); transform-origin: 17px 0; } }

/* ---------- Adventskranz neben «Willkommen» ---------- */
.xmas-hero-kranz { position: absolute; z-index: 1; right: clamp(24px, 11vw, 240px); top: 40%; width: clamp(200px, 28vw, 420px); transform: translateY(-50%); }
@media (max-width: 760px) { .xmas-hero-kranz { position: relative; right: auto; top: auto; transform: none; width: min(70%, 300px); margin: 8px auto 0; } }
.xmas-wreath-svg { width: 100%; height: auto; display: block; overflow: visible; }
.candle { cursor: pointer; }
.candle .flame, .candle .halo { opacity: 0; transition: opacity .35s; transform-box: fill-box; transform-origin: 50% 100%; }
.candle.lit .flame { opacity: 1; animation: xmas-flicker 1s ease-in-out infinite alternate; }
.candle.lit .halo { opacity: .16; animation: xmas-flicker 1.6s ease-in-out infinite alternate; }
.candle:focus-visible { outline: none; }
.candle:focus-visible rect:first-child { stroke: var(--xmas-gold); stroke-width: 2; }

/* ---------- Tannenwald über dem Fuss ---------- */
html.xmas .site-footer { position: relative; margin-top: 54px; }
.xmas-trees { position: absolute; left: 0; right: 0; bottom: 100%; height: 60px; pointer-events: none; overflow: hidden; }
.xmas-trees svg { width: 100%; height: 100%; display: block; }
.site-footer .xmas-trees ~ * { position: relative; }

/* ---------- Schnee, Schalter, Schlitten ---------- */
.xmas-snow { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 900; }
.xmas-toggle {
  position: fixed; left: 14px; bottom: 14px; z-index: 910; display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font: inherit; font-size: .9rem; font-weight: 700; padding: 9px 14px; border-radius: 999px; color: #fff;
  background: rgba(11, 26, 31, .88); border: 1px solid rgba(255, 255, 255, .25); backdrop-filter: blur(6px);
}
.xmas-toggle svg { width: 18px; height: 18px; }
.xmas-toggle[aria-pressed="false"] { opacity: .75; }
.xmas-toggle[aria-pressed="false"] svg { opacity: .5; }
.xmas-toggle:hover { background: var(--xmas-red); }
.xmas-sleigh3d { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 880; pointer-events: none; }
.xmas-trail { position: fixed; inset: 0; z-index: 879; pointer-events: none; overflow: hidden; }
.xmas-trail i { position: absolute; background: var(--c); clip-path: polygon(50% 0, 61% 35%, 98% 38%, 68% 59%, 79% 91%, 50% 72%, 21% 91%, 32% 59%, 2% 38%, 39% 35%); filter: drop-shadow(0 0 3px var(--c)); animation: xmas-spark 1.3s ease-out forwards; }
@keyframes xmas-spark { from { transform: translate(0, 0) scale(1) rotate(0); opacity: 1; } to { transform: translate(var(--dx), var(--dy)) scale(.1) rotate(180deg); opacity: 0; } }
@media (max-width: 720px) { .xmas-toggle span { display: none; } }

@media (prefers-reduced-motion: reduce) {
  .xmas-hat, .b, .xmas-sky .s1, .xmas-sky .s2, .xmas-orn, .candle.lit .flame, .candle.lit .halo, .xmas-advent-card::before { animation: none !important; }
}

/* Teamfoto: keine runden Ecken */
html.xmas .team-photo, html.xmas .team-photo img { border-radius: 0 !important; }

/* Hero-Video (Eisbär) ist 2176 × 952: Fläche passt sich an, kein Beschnitt */
html.xmas .hero-stage.team-stage .team-media, html.xmas .hero-stage.team-stage.open .team-media { aspect-ratio: 2176 / 952; }
html.xmas .team-stage .team-video, html.xmas .team-stage .team-poster { height: 100%; aspect-ratio: auto; object-fit: cover; }

/* Hero-Video: keine runden Ecken (dahinter schimmerte der dunkle Kopfbereich durch) */
html.xmas .hero-stage.team-stage, html.xmas .team-stage .team-media, html.xmas .team-stage .team-video, html.xmas .team-stage .team-poster { border-radius: 0; }
html.xmas .hero { padding-bottom: 0; }

/* Mehr Luft zwischen den Buttons und dem Schnee */
html.xmas .hero-intro { padding-bottom: clamp(64px, 8vw, 104px); }

/* Schalter «Ohne Weihnachtsdeko» im Banner und Knopf zum Wiedereinblenden */
.xmas-bar button { font: inherit; color: #fff; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.xmas-bar button:hover { color: var(--xmas-gold); }
.xmas-back { position: fixed; left: 14px; bottom: 14px; z-index: 910; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font: inherit; font-size: .9rem; font-weight: 700; padding: 9px 14px; border-radius: 999px; color: #fff; background: #8e0f24; border: 1px solid rgba(255, 255, 255, .25); }
.xmas-back:hover { background: var(--xmas-red); }
