/* Winter- und Weihnachtsschmuck – wird nur geladen, wenn WINTER_AKTIV in inc/config.php auf true steht */

/* Logo mit Weihnachtsmütze über dem normalen Logo */
.navbar a[aria-label]{position:relative;min-width:calc((48px - 14px * var(--nav,0)) * 3.45)}
.wx-hidelogo{opacity:0}
.wx-logo{position:absolute;left:0;top:50%;height:calc((48px - 14px * var(--nav,0)) * 1.4);width:auto;transform:translateY(-50%);pointer-events:none}

/* Fallender Schnee (pausiert zwischendurch) */
.wx-snow{position:fixed;inset:0;z-index:60;overflow:hidden;pointer-events:none;animation:wxcycle 32s ease-in-out infinite}
.wx-snow img{position:absolute;top:-34px;height:auto;animation:wxfall linear infinite}
@keyframes wxfall{from{transform:translate(0,-20px) rotate(0deg)}50%{transform:translate(22px,calc(52vh / var(--z,1))) rotate(140deg)}to{transform:translate(-8px,calc(108vh / var(--z,1))) rotate(260deg)}}
@keyframes wxcycle{0%,55%{opacity:1}66%,90%{opacity:0}100%{opacity:1}}

/* Ruhende Flocken am Seitenrand */
.wx-layer{position:absolute;inset:0;z-index:1;overflow:hidden;pointer-events:none}
.wx-flake{position:absolute;height:auto;opacity:.9;animation:wxspin 60s linear infinite}
@keyframes wxspin{to{transform:rotate(360deg)}}

/* Verschneiter Boden in der Fußzeile */
.wx-ground{display:block;width:calc(100vw / var(--z,1));max-width:none;height:clamp(96px,12.5vw,200px);margin:-16px 0 -36px calc(50% - 50vw / var(--z,1));object-fit:cover;object-position:right bottom;mix-blend-mode:screen;pointer-events:none}

/* Schneekappen und Eiszapfen an Abschnittskanten */
.wx-cap,.wx-rel{position:relative;isolation:isolate}
.wx-cap::before{content:"";position:absolute;left:0;right:0;top:0;height:26px;z-index:2;pointer-events:none;background:radial-gradient(70px 22px at 50% 0,#fff 98%,transparent) 0 0/150px 100% repeat-x,radial-gradient(46px 14px at 50% 0,#fff 98%,transparent) 61px 0/97px 100% repeat-x,linear-gradient(#fff,#fff) 0 0/100% 4px no-repeat}
.wx-ice::before{background:url("/assets/img/winter-eis.svg") 0 0/480px 100% repeat-x;height:60px}

/* Startseite: Christbaum hinter dem Einstiegsbereich */
.wx-herotree{position:absolute;bottom:0;right:max(-90px,calc(50% - 910px));height:100%;width:auto;max-width:none;z-index:-1;pointer-events:none;-webkit-mask-image:radial-gradient(ellipse 54% 62% at 47% 52%,#000 54%,transparent 100%);mask-image:radial-gradient(ellipse 54% 62% at 47% 52%,#000 54%,transparent 100%)}
.wx-note{text-shadow:0 1px 2px rgba(0,0,0,1),0 0 14px rgba(0,0,0,1),0 0 30px rgba(0,0,0,1);color:#ffffff !important}
.wx-shadow{text-shadow:0 1px 2px rgba(0,0,0,1),0 0 14px rgba(0,0,0,1),0 0 30px rgba(0,0,0,1)}
.wx-hide{opacity:0}
@media (max-width:860px){.wx-herotree{display:none}.wx-hide{opacity:1}}

/* Sicherheitstechnik: Bild rechts im Einstiegsbereich */
/* Bild etwas breiter als die Textspalte, endet am Seitenrahmen, sitzt mittig neben dem Text.
   Ausschnitt links verankert: Bedienteil an der Wand bleibt vollständig sichtbar, beschnitten wird rechts. */
@media (min-width:941px){.wx-sichgrid{grid-template-columns:minmax(0,1fr) minmax(0,1.2fr) !important}.wx-ph2{margin:40px 0}}
.wx-ph2{position:relative;overflow:hidden;align-self:center;aspect-ratio:16 / 10;background:#111111;border-radius:6px}
.wx-fill2{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:0% 50%}
@media (max-width:940px){.wx-ph2{aspect-ratio:16 / 10;margin-bottom:56px}}

/* Telefonanlagen: Schlitten neben der Überschrift */
.wx-gone{box-sizing:border-box;height:0;min-height:0 !important;overflow:hidden}
.wx-padr{padding-right:min(50%,660px)}
.wx-sidesled{position:absolute;right:max(24px,calc(50% - 700px));bottom:28px;width:min(47%,620px);height:auto;pointer-events:none;filter:drop-shadow(0 18px 16px rgba(0,0,0,.2))}
@media (max-width:860px){.wx-sidesled{display:none}.wx-padr{padding-right:0}}

/* Schmale Bildschirme und reduzierte Bewegung */
@media (max-width:1100px){.wx-layer{display:none}}
@media (prefers-reduced-motion:reduce){.wx-flake{animation:none}.wx-snow{display:none}}
