/* V59 – neue eigenständige Adventskalender-Variante „Winterlandschaft“.
 * Auf Desktop und Handy je ein abgestimmtes Hintergrundmotiv und 24 echte DOM-Türchen.
 * Alle älteren Kalenderlayouts bleiben unverändert. */
body.theme-winter {background:#061a25; color:#fff9e7}
body.theme-winter .advent-shell {
  width:100%; min-height:100vh; min-height:100dvh; padding:0;
  background:#061a25;
}
body.theme-winter .advent-shell::before,
body.theme-winter .advent-shell > .hero,
body.theme-winter .advent-shell > .site-footer,
body.theme-winter .advent-shell > .countdown {display:none!important}
body.theme-winter .calendar-wrap-winter {
  width:100%; max-width:none; margin:0; padding:0; min-height:100vh; min-height:100dvh;
  display:flex; align-items:center; justify-content:center;
  background:#071d2b;
}
body.theme-winter .winter-wimmel-stage {
  position:relative; isolation:isolate; display:block; overflow:hidden;
  flex:0 0 auto; width:100vw; max-width:100%;
  height:100vh; height:100dvh;
  max-height:100dvh;
  aspect-ratio:auto;
  background:#0b2941 url('winter-wimmel-desktop-v59.webp') center / 100% 100% no-repeat;
  box-shadow:0 0 70px rgba(0,0,0,.4);
}
body.theme-winter .winter-wimmel-stage::after {
  content:""; position:absolute; inset:0; z-index:1; pointer-events:none;
  background:linear-gradient(180deg,rgba(0,8,22,.20),transparent 25%,transparent 75%,rgba(0,6,16,.20));
}
body.theme-winter .winter-wimmel-title {
  position:absolute; z-index:4; left:1.6%; top:1.6%; padding:8px 14px;
  border:1px solid rgba(255,230,174,.65); border-radius:14px 0 14px 14px;
  color:#fff8df; background:rgba(5,25,36,.67);
  font:700 clamp(12px,1.3vw,19px)/1.2 UbuntuLocal,Ubuntu,system-ui,sans-serif;
  text-shadow:0 2px 6px #000b;
  pointer-events:none; backdrop-filter:blur(8px);
}
body.theme-winter .winter-door {
  --winter-door-size:clamp(29px,3.8vw,58px);
  position:absolute; z-index:5; left:var(--winter-x); top:var(--winter-y);
  width:var(--winter-door-size); height:var(--winter-door-size);
  transform:translate(-50%,-50%); display:grid;place-items:center;
  border:1.8px solid rgba(255,227,166,.95); border-radius:11px 1px 11px 11px;
  background:linear-gradient(145deg,rgba(76,39,20,.89),rgba(22,35,38,.85));
  box-shadow:inset 0 0 0 2px rgba(255,245,210,.16),0 0 0 2px rgba(28,14,7,.2),0 0 15px rgba(255,185,69,.65),0 5px 12px rgba(0,0,0,.5);
  color:#fff5d0; font:800 clamp(15px,1.9vw,28px)/1 UbuntuLocal,Ubuntu,system-ui,sans-serif;
  cursor:pointer; padding:0; touch-action:manipulation;
  transition:filter .25s, box-shadow .25s, transform .25s, background .25s;
}
body.theme-winter .winter-door::before {content:"";position:absolute;inset:4px;border:1px solid rgba(255,213,128,.5);border-radius:8px 0 8px 8px;pointer-events:none}
body.theme-winter .winter-door::after {content:"";position:absolute;width:3px;height:7px;right:4px;top:50%;border-radius:4px;background:#ffe5a7;box-shadow:0 0 7px #ffe5a7;transform:translateY(-50%);pointer-events:none}
body.theme-winter .winter-door:not(.is-locked):hover,
body.theme-winter .winter-door:not(.is-locked):focus-visible {
  transform:translate(-50%,-50%) scale(1.13);
  box-shadow:inset 0 0 0 2px rgba(255,247,205,.36),0 0 0 2px rgba(28,14,7,.3),0 0 26px 8px rgba(255,203,99,.9);
  filter:brightness(1.2); z-index:12;
}
body.theme-winter .winter-door:focus-visible {outline:3px solid #fff;outline-offset:4px}
body.theme-winter .winter-door.is-locked {
  filter:saturate(.77) brightness(.77); border-color:rgba(239,227,204,.68);
  color:#e4e0d1; box-shadow:inset 0 0 0 2px rgba(255,245,210,.08),0 4px 10px #000a;
}
body.theme-winter .winter-door.is-locked.is-winter-tapped {animation:winterLockedTap .48s ease-out 1}
body.theme-winter .winter-door.is-special {border-color:#ffe69a;background:linear-gradient(150deg,#982b50,#4a1839);box-shadow:inset 0 0 0 2px #fff3,0 0 18px 4px #f6c465b3,0 5px 14px #0009}
body.theme-winter .winter-door.is-special::after {content:"✦";right:-5px;top:-6px;background:none;color:#fff4af;width:auto;height:auto;transform:none;font-size:12px;box-shadow:none}
@keyframes winterLockedTap {25%{transform:translate(-50%,-50%) rotate(-7deg) scale(1.08);filter:brightness(1.18)}60%{transform:translate(-50%,-50%) rotate(5deg)}100%{transform:translate(-50%,-50%)}}
body.theme-winter .winter-caption {position:absolute;z-index:3;bottom:1.7%;right:1.2%;padding:5px 10px;color:#ffefce;background:rgba(6,21,30,.66);font:500 clamp(10px,1.1vw,15px)/1.35 RobotoLocal,system-ui,sans-serif;border-radius:10px 0 10px 10px;pointer-events:none}
/* Smartphone: eigenständiges Hochformatbild. Keine horizontalen Scrollflächen,
   keine obere/untere Leiste und alle 24 Türchen bleiben erreichbar. */
@media (max-width:699px) {
  html:has(body.theme-winter), body.theme-winter {width:100%;margin:0;overflow:hidden;height:100%;}
  body.theme-winter .advent-shell {height:100vh;height:100dvh;min-height:0;overflow:hidden;padding:0!important}
  body.theme-winter .calendar-wrap-winter {height:100%;min-height:0;max-height:100%;margin:0!important;overflow:hidden;}
  body.theme-winter .winter-wimmel-stage {
    position:relative; flex:none; width:100vw; max-width:100vw;
    height:100vh;height:100dvh;max-height:none;aspect-ratio:auto;
    margin:0; padding:0; border:0;border-radius:0;box-shadow:none;
    background-image:url('winter-wimmel-mobile-v59.webp');
    background-position:center; background-size:100% 100%;
  }
  body.theme-winter .winter-door {
    --winter-door-size:clamp(29px,8.0vw,42px);
    left:var(--winter-x-mobile);top:var(--winter-y-mobile);
    font-size:clamp(16px,4.2vw,22px);
    border-radius:9px 1px 9px 9px;
  }
  body.theme-winter .winter-door::before {inset:3px;}
  body.theme-winter .winter-wimmel-title {left:3%;top:max(9px,env(safe-area-inset-top,0px));font-size:12px;padding:5px 8px;}
  body.theme-winter .winter-caption {left:3%;right:auto;bottom:max(7px,env(safe-area-inset-bottom,0px));font-size:10px;max-width:68%;}
  body.theme-winter dialog[open]{max-width:calc(100vw - 14px);max-height:calc(100dvh - 16px);overflow-y:auto}
}
@media (prefers-reduced-motion:reduce) {
  body.theme-winter .winter-door {transition:none!important}
  body.theme-winter .winter-door.is-locked.is-winter-tapped {animation:none!important}
}
