/* LPG GFD · Winter- und Weihnachts-Design. season-winter.js setzt <html data-season="winter|weihnachten"> je nach Datum (abschaltbar pro Person).
   Winter „Raureif“: kaltes Nachtblau, Eisblau als Signal, Schneefall.
   Weihnachten „Stube“: Tannengrün-Schwarz, Kerzengold als Signal, Lichterkette über der Seite, Adventskalender als Sammelspiel. */

html[data-season="winter"] {
  --bg: #0D1620; --bg2: #0A121A; --panel: #142130; --panel2: #1B2B3D; --panel3: #24384E;
  --line: rgba(200,225,245,.10); --line2: rgba(200,225,245,.20);
  --text: #EEF4F8; --muted: #A9BCCB; --dis: #7D91A2;
  --acc: #9FD3F2; --acc-h: #CDEBFA; --acc2: #9FD3F2; --acc-rgb: 159 211 242; --acc-soft: rgba(159,211,242,.12);
  --on: #0D1620; --on-acc: #0B1A26;
  --ok: #8FD3A8; --warn: #F2C96A; --gold: #F2C96A; --bad: #F08A80;
  --side-bg: #0A121A; --bg-rgb: 13 22 32; --panel-rgb: 20 33 48;
  --stripe: repeating-linear-gradient(-45deg, var(--acc) 0 7px, transparent 7px 14px);
  --sw-glow: 159 211 242; --sw-snow: #F4FAFF;
}
html[data-season="weihnachten"] {
  --bg: #0F1512; --bg2: #0B100D; --panel: #17201B; --panel2: #1F2A23; --panel3: #29372E;
  --line: rgba(232,220,190,.09); --line2: rgba(232,220,190,.18);
  --text: #F4EEE2; --muted: #BDB5A3; --dis: #8C8676;
  --acc: #E9B949; --acc-h: #F6D37A; --acc2: #E9B949; --acc-rgb: 233 185 73; --acc-soft: rgba(233,185,73,.12);
  --on: #0F1512; --on-acc: #241A06;
  --ok: #8FCB8A; --warn: #E9B949; --gold: #E9B949; --bad: #E8776B;
  --side-bg: #0B100D; --bg-rgb: 15 21 18; --panel-rgb: 23 32 27;
  --stripe: repeating-linear-gradient(-45deg, #C8302A 0 7px, #F4EEE2 7px 14px);
  --sw-glow: 233 185 73; --sw-red: #C8302A; --sw-snow: #FFF8EC;
}
html[data-season="winter"] body { background: var(--bg); }
/* Verlauf auf eigener, fester Ebene statt background-attachment: fixed (das malt beim Scrollen jedes Mal die ganze Seite neu) */
html[data-season="winter"] body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 520px at 85% -10%, rgba(159,211,242,.09), transparent 65%),
    radial-gradient(1000px 600px at -10% 110%, rgba(120,160,220,.08), transparent 60%),
    linear-gradient(180deg, transparent 70%, rgba(220,240,255,.035)); }
html[data-season="weihnachten"] body { background: var(--bg); }
/* Verlauf auf eigener, fester Ebene statt background-attachment: fixed (das malt beim Scrollen jedes Mal die ganze Seite neu) */
html[data-season="weihnachten"] body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 600px at -5% 105%, rgba(233,185,73,.10), transparent 60%),
    radial-gradient(700px 500px at 105% 100%, rgba(200,48,42,.07), transparent 65%),
    radial-gradient(800px 400px at 60% -10%, rgba(80,140,100,.07), transparent 70%); }
html[data-season="winter"] section > .sec:first-child h2.eyebrow::after { filter: drop-shadow(0 0 6px rgba(159,211,242,.35)); }

/* ---------- Deko-Ebene (nie über Bedienelementen) ---------- */
.sw-deco { position: fixed; inset: 0; pointer-events: none; z-index: 3; overflow: hidden; }
.sw-snow { position: absolute; inset: 0; width: 100%; height: 100%; }
.sw-glow { position: absolute; inset: 0; }
html[data-season="weihnachten"] .sw-glow { background: radial-gradient(60% 50% at 0% 100%, rgba(255,190,90,.06), transparent 70%); animation: sw-candle 6s ease-in-out infinite; }
@keyframes sw-candle { 0%, 100% { opacity: 1; } 40% { opacity: .7; } 55% { opacity: .95; } 70% { opacity: .8; } }
/* Schneeverwehung am unteren Rand */
.sw-drift { position: absolute; left: -5%; right: -5%; bottom: -30px; height: 90px; }
.sw-drift.d1 { background: radial-gradient(40% 70% at 20% 100%, rgba(240,248,255,.07), transparent 70%), radial-gradient(35% 60% at 70% 100%, rgba(240,248,255,.06), transparent 70%); }
.sw-drift.d2 { height: 50px; background: radial-gradient(30% 80% at 45% 100%, rgba(240,248,255,.05), transparent 70%), radial-gradient(25% 70% at 95% 100%, rgba(240,248,255,.05), transparent 70%); }

/* ---------- Logo: Mütze oder Schneeflocke ---------- */
html[data-season="winter"] .brand, html[data-season="weihnachten"] .brand { position: relative; }
.sw-logo { position: absolute; padding: 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.sw-logo svg { width: 100%; height: 100%; display: block; }
.sw-logo.hat { left: 6px; top: -14px; width: 40px; height: 40px; transform: rotate(-18deg); filter: drop-shadow(0 2px 3px rgba(0,0,0,.5)); }
.sw-logo.flake { left: 46px; top: 40px; width: 24px; height: 24px; filter: drop-shadow(0 0 6px rgba(159,211,242,.7)); animation: sw-spin 24s linear infinite; }
@keyframes sw-spin { to { transform: rotate(360deg); } }
.sw-logo.wob { animation: sw-wob .5s cubic-bezier(.3,1.6,.5,1); }
.sw-logo.hat.wob { animation: sw-wobhat .5s cubic-bezier(.3,1.6,.5,1); }
@keyframes sw-wob { 40% { transform: scale(1.3) rotate(30deg); } }
@keyframes sw-wobhat { 40% { transform: rotate(-30deg) translateY(-4px); } 70% { transform: rotate(-10deg); } }
.sw-logo:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; border-radius: 6px; }

/* ---------- Lichterkette (Weihnachten) ---------- */
.sw-lights { position: fixed; top: 0; height: 48px; z-index: 4; pointer-events: none; }
.sw-wire { position: absolute; left: 0; top: 0; overflow: visible; }
.sw-wire path { stroke: #3B4A3F; }
.sw-bulb { position: absolute; width: 14px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; pointer-events: auto; transform-origin: 50% 0;
  filter: drop-shadow(0 0 4px var(--c)) drop-shadow(0 0 10px var(--c)); animation: sw-twinkle 3s ease-in-out infinite; -webkit-tap-highlight-color: transparent; }
.sw-bulb svg { width: 100%; height: 100%; display: block; overflow: visible; }
.sw-bulb:hover { transform: rotate(8deg) scale(1.15); }
.sw-bulb.pop { animation: sw-bulbpop .45s cubic-bezier(.3,1.8,.5,1), sw-twinkle 3s ease-in-out infinite .45s; }
.sw-bulb:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; border-radius: 4px; }
@keyframes sw-twinkle { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
@keyframes sw-bulbpop { 40% { transform: rotate(-14deg) scale(1.35); } }
.sw-lights.party .sw-bulb { animation: sw-party .5s ease-in-out infinite alternate; }
@keyframes sw-party { from { opacity: .4; transform: scale(.9); } to { opacity: 1; transform: scale(1.2); } }

/* ---------- Kopfkarte in der Seitenleiste ---------- */
.sw-pill { margin: 0 12px; display: flex; flex-direction: column; align-items: stretch; gap: 6px; }
.sw-hunt { display: grid; grid-template-columns: 44px 1fr; align-items: center; gap: 12px; width: 100%; padding: 8px 12px 8px 8px; text-align: left; cursor: pointer;
  color: var(--text); font: inherit; border-radius: var(--r, 6px); border: 1px solid rgba(var(--sw-glow) / .28);
  background: linear-gradient(180deg, rgba(var(--sw-glow) / .12), rgba(var(--sw-glow) / .04)); transition: border-color .2s, background .2s; }
html[data-season="weihnachten"] .sw-hunt { background: linear-gradient(180deg, rgba(200,48,42,.16), rgba(233,185,73,.05)); border-color: rgba(233,185,73,.3); }
.sw-hunt:hover { border-color: rgba(var(--sw-glow) / .6); }
.sw-hunt:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.sw-hunt-ico { position: relative; width: 44px; height: 44px; }
.sw-hunt-ico svg { width: 100%; height: 100%; display: block; overflow: visible; }
.sw-flake { filter: drop-shadow(0 0 6px rgba(159,211,242,.6)); }
.sw-wreath .fl { transform-box: fill-box; transform-origin: 50% 100%; animation: sw-flame 1.6s ease-in-out infinite; filter: drop-shadow(0 0 3px #FFC24A); }
.sw-wreath .fl:nth-of-type(2n) { animation-delay: .5s; }
@keyframes sw-flame { 0%, 100% { transform: scale(1, 1); } 40% { transform: scale(.9, 1.12) skewX(4deg); } 70% { transform: scale(1.05, .95) skewX(-3deg); } }
.sw-hunt-t { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.sw-hunt-t b { font-family: var(--f-d); font-weight: 800; font-size: 19px; letter-spacing: .01em; }
.sw-hunt-t small { color: var(--muted); font-size: 12px; margin-top: 2px; }
.sw-hunt-n { position: absolute; right: -8px; bottom: -6px; padding: 1px 5px; border-radius: 9px; background: var(--bg2); border: 1px solid rgba(var(--sw-glow) / .45);
  font-family: var(--f-d); font-weight: 800; font-size: 13px; line-height: 1.2; color: var(--acc-h); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sw-hunt-n i { font-style: normal; font-size: 11px; color: var(--muted); font-weight: 600; }
.sw-hunt.bump .sw-hunt-ico { animation: sw-bump .6s cubic-bezier(.3,1.8,.5,1); }
@keyframes sw-bump { 35% { transform: scale(1.35) rotate(-10deg); } 70% { transform: scale(.92) rotate(4deg); } }
.sw-off { align-self: flex-end; background: none; border: 0; padding: 0 2px; color: var(--dis); font: inherit; font-size: 11.5px; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.sw-off:hover { color: var(--text); }
.sw-pill.off { flex-direction: row; align-items: baseline; justify-content: space-between; color: var(--muted); font-size: 13px; }
.sw-pill.off .sw-off { align-self: auto; }

/* ---------- Fundstücke und Päckchen ---------- */
.sw-item { position: fixed; z-index: 60; width: 46px; height: 46px; padding: 0; border: 0; background: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent; animation: sw-peek .7s cubic-bezier(.3,1.5,.5,1) both; }
.sw-item::before { content: ""; position: absolute; inset: -14px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(var(--sw-glow) / .38), rgba(var(--sw-glow) / .1) 60%, transparent); animation: sw-halo 2.2s ease-in-out infinite; }
.sw-item svg { position: relative; width: 100%; height: 100%; display: block; overflow: visible; animation: sw-bob 2.6s ease-in-out infinite;
  filter: drop-shadow(0 3px 4px rgba(0,0,0,.5)) drop-shadow(0 0 7px rgba(var(--sw-glow) / .5)); transition: transform .2s; }
.sw-item.parcel { width: 52px; height: 52px; }
.sw-item.parcel svg { animation: sw-wiggle 3.2s ease-in-out infinite; transform-origin: 50% 90%; }
.sw-item:hover svg { transform: scale(1.15) rotate(-6deg); }
.sw-item:focus-visible { outline: 2px solid var(--acc); outline-offset: 6px; border-radius: 50%; }
.sw-item.gone { animation: sw-fade .5s ease-in forwards; pointer-events: none; }
.sw-item.caught { z-index: 85; pointer-events: none; animation: none; }
.sw-item.caught::before { animation: none; opacity: 0; }
.sw-item.pop { animation: sw-peek .5s cubic-bezier(.3,1.8,.5,1) both; }
@keyframes sw-peek { from { opacity: 0; transform: translateY(14px) scale(.5); } }
@keyframes sw-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -4px; } }
@keyframes sw-wiggle { 0%, 70%, 100% { rotate: 0deg; } 76% { rotate: -9deg; } 82% { rotate: 7deg; } 88% { rotate: -4deg; } }
@keyframes sw-halo { 0%, 100% { opacity: .55; transform: scale(.85); } 50% { opacity: 1; transform: scale(1.08); } }
@keyframes sw-fade { to { opacity: 0; filter: blur(6px); transform: translateY(-14px) scale(.8); } }

/* ---------- Erscheinungen ---------- */
.sw-spook { position: absolute; pointer-events: none; will-change: transform, opacity; }
.sw-spook svg { width: 100%; height: auto; display: block; }
.sw-spook.rim svg { filter: drop-shadow(0 0 1.5px rgba(255,240,210,.7)) drop-shadow(0 0 10px rgba(255,200,120,.25)); }
.sw-spook .nose { animation: sw-twinkle 1s ease-in-out infinite; filter: drop-shadow(0 0 4px #FF3A2A); }
.sw-spook.catch { pointer-events: auto; cursor: pointer; }
.sw-spook.fox svg { filter: drop-shadow(0 2px 4px rgba(0,0,0,.4)); }
.sw-spook.star { transform-origin: 100% 50%; }
.sw-spook.star svg { filter: drop-shadow(0 0 8px rgba(255,246,204,.8)); }
.sw-elf { position: fixed; z-index: 59; width: 44px; height: 58px; padding: 0; border: 0; background: none; cursor: pointer; animation: sw-elfin 1.2s cubic-bezier(.3,1.4,.5,1) both; }
.sw-elf svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 2px 4px rgba(0,0,0,.5)); }
.sw-elf.r { animation-name: sw-elfin-r; }
.sw-elf.hide { animation: sw-elfout .45s ease-in forwards; }
.sw-elf.caught svg { animation: sw-wob .3s; }
@keyframes sw-elfin { from { transform: translateX(26px) rotate(-20deg); opacity: 0; } to { transform: rotate(-12deg); opacity: 1; } }
@keyframes sw-elfin-r { from { transform: translateX(-26px) rotate(20deg); opacity: 0; } to { transform: rotate(12deg); opacity: 1; } }
@keyframes sw-elfout { to { transform: translateY(20px) scale(.6); opacity: 0; } }

/* Schneebälle */
.sw-ball { position: fixed; left: -9px; top: -9px; width: 18px; height: 18px; border-radius: 50%; z-index: 66; pointer-events: none;
  background: radial-gradient(circle at 35% 35%, #FFF, #DCEAF5 70%, #B9CFE0); box-shadow: 0 3px 6px rgba(0,0,0,.35); }
.sw-splat { position: fixed; z-index: 65; width: 60px; height: 60px; margin: -30px 0 0 -30px; pointer-events: none; animation: sw-splat .25s cubic-bezier(.3,1.6,.5,1); transition: opacity 1.4s, transform 1.4s; }
.sw-splat svg { width: 100%; height: 100%; filter: drop-shadow(0 2px 3px rgba(0,0,0,.3)); }
.sw-splat.melt { opacity: 0; transform: translateY(14px) scaleY(.6); }
@keyframes sw-splat { from { transform: scale(.3); } }

/* Nordlicht */
.sw-aurora { position: fixed; left: 0; right: 0; top: 0; height: 60vh; z-index: 2; pointer-events: none; opacity: 0; transition: opacity 2s; mix-blend-mode: screen;
  -webkit-mask-image: linear-gradient(#000 30%, transparent); mask-image: linear-gradient(#000 30%, transparent); }
.sw-aurora.in { opacity: 1; }
.sw-aurora i { position: absolute; left: -20%; right: -20%; height: 45%; border-radius: 50%; filter: blur(30px); }
.sw-aurora i:nth-child(1) { top: 5%; background: linear-gradient(90deg, transparent, rgba(95,240,184,.55), rgba(95,240,184,.2), transparent); animation: sw-aur 9s ease-in-out infinite alternate; }
.sw-aurora i:nth-child(2) { top: 18%; background: linear-gradient(90deg, transparent, rgba(154,123,255,.35), rgba(95,240,184,.35), transparent); animation: sw-aur 13s ease-in-out infinite alternate-reverse; }
.sw-aurora i:nth-child(3) { top: 0; height: 30%; background: linear-gradient(90deg, transparent 20%, rgba(120,255,210,.3), transparent 80%); animation: sw-aur 7s ease-in-out infinite alternate; }
@keyframes sw-aur { from { transform: translateX(-8%) skewX(-12deg) scaleY(.8); } to { transform: translateX(8%) skewX(10deg) scaleY(1.2); } }

/* Eisblumen */
.sw-frost { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 69; pointer-events: none; transition: opacity 1.2s; touch-action: none; }

/* Silvester */
.sw-rocket { position: fixed; left: -2px; top: -2px; width: 4px; height: 14px; border-radius: 2px; z-index: 64; pointer-events: none; background: linear-gradient(#FFF6CC, rgba(255,200,120,0)); }
.sw-spark { position: fixed; width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; border-radius: 50%; z-index: 64; pointer-events: none; box-shadow: 0 0 8px currentColor; }

/* Brief an den Weihnachtsmann */
.sw-letter { position: fixed; z-index: 95; width: 60px; height: 60px; pointer-events: none; }
.sw-letter svg { width: 100%; height: 100%; }

/* ---------- Toasts ---------- */
.sw-toasts { position: fixed; left: 50%; bottom: 22px; z-index: 96; display: flex; flex-direction: column; align-items: center; gap: 8px; transform: translateX(-50%); pointer-events: none; width: min(460px, calc(100vw - 32px)); }
.sw-toast { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 16px 11px 12px; border-radius: 10px; color: var(--text);
  background: linear-gradient(180deg, rgb(var(--panel-rgb) / .98), rgb(var(--bg-rgb) / .98)); border: 1px solid rgba(var(--sw-glow) / .35);
  box-shadow: 0 14px 40px rgba(0,0,0,.5), 0 0 30px rgba(var(--sw-glow) / .12); animation: sw-toast-in .45s cubic-bezier(.3,1.4,.5,1) both; }
.sw-toast.plain { border-color: var(--line2); }
.sw-toast.out { animation: sw-toast-out .5s ease-in forwards; }
.sw-toast-art { flex: 0 0 44px; height: 44px; filter: drop-shadow(0 0 8px rgba(var(--sw-glow) / .45)); }
.sw-toast-art svg { width: 100%; height: 100%; display: block; }
.sw-toast b { display: block; font-family: var(--f-d); font-weight: 800; font-size: 18px; line-height: 1.15; }
.sw-toast small { display: block; color: var(--muted); font-size: 13px; line-height: 1.35; margin-top: 2px; }
@keyframes sw-toast-in { from { opacity: 0; transform: translateY(18px) scale(.96); } }
@keyframes sw-toast-out { to { opacity: 0; transform: translateY(10px); } }

/* ---------- Buch: Adventskalender / Winterzauber ---------- */
.sw-book { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 24px; overflow-y: auto;
  background: rgba(5,8,10,.72); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); opacity: 0; transition: opacity .3s; }
.sw-book.in { opacity: 1; }
.sw-book-in { position: relative; width: min(1060px, 100%); padding: 28px 32px 28px; border-radius: 14px; color: var(--text);
  background: radial-gradient(600px 300px at 100% 0, rgba(var(--sw-glow) / .10), transparent 70%), radial-gradient(500px 300px at 0 100%, rgba(120,160,220,.08), transparent 70%), var(--panel);
  border: 1px solid rgba(var(--sw-glow) / .22); box-shadow: 0 30px 90px rgba(0,0,0,.6);
  transform: translateY(16px) scale(.98); transition: transform .35s cubic-bezier(.3,1.3,.5,1); }
.sw-book.xmas .sw-book-in { background: radial-gradient(700px 320px at 100% 0, rgba(233,185,73,.10), transparent 70%), radial-gradient(600px 320px at 0 100%, rgba(200,48,42,.10), transparent 70%), #161E19; border-color: rgba(233,185,73,.25); }
.sw-book.in .sw-book-in { transform: none; }
.sw-book header { display: grid; grid-template-columns: 64px 1fr auto; gap: 8px 22px; align-items: start; padding-right: 36px; }
.sw-head-ico { width: 64px; height: 64px; }
.sw-head-ico svg { width: 100%; height: 100%; overflow: visible; }
.sw-book h2 { margin: 0; font-family: var(--f-d); font-weight: 850; font-size: clamp(32px, 4vw, 46px); line-height: .95; letter-spacing: .005em; }
.sw-book header p { margin: 10px 0 0; max-width: 64ch; color: var(--muted); font-size: 15px; line-height: 1.5; }
.sw-count { text-align: right; line-height: 1; }
.sw-count b { display: block; font-family: var(--f-d); font-weight: 850; font-size: 58px; color: var(--acc-h); text-shadow: 0 0 24px rgba(var(--sw-glow) / .45); font-variant-numeric: tabular-nums; }
.sw-count span { color: var(--muted); font-size: 14px; }
.sw-x { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line2); background: rgba(255,255,255,.03); color: var(--text); font-size: 24px; line-height: 1; cursor: pointer; }
.sw-x:hover { background: rgba(255,255,255,.08); }
.sw-x:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.sw-bar { height: 8px; margin: 22px 0 24px; border-radius: 8px; background: rgba(255,255,255,.06); overflow: hidden; }
.sw-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #5E9BC8, var(--acc), var(--acc-h)); box-shadow: 0 0 14px rgba(var(--sw-glow) / .55); }

/* Türchen */
.sw-cal { display: grid; grid-template-columns: repeat(5, 1fr); grid-auto-flow: dense; gap: 10px; margin: 22px 0 26px; }
.sw-door { position: relative; aspect-ratio: 1 / .78; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 8px;
  border-radius: 10px; border: 1px solid rgba(233,185,73,.22); color: var(--text); font: inherit; cursor: pointer; overflow: hidden;
  background: linear-gradient(160deg, #2A3A2F, #1C2A21); box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 6px 14px rgba(0,0,0,.25); transition: transform .2s, border-color .2s; }
.sw-door:nth-child(3n) { background: linear-gradient(160deg, #3A2422, #2A1716); }
.sw-door:nth-child(4n) { background: linear-gradient(160deg, #2B3340, #1D2430); }
.sw-door:hover { transform: translateY(-2px); border-color: rgba(233,185,73,.5); }
.sw-door:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.sw-door.big { grid-column: span 2; aspect-ratio: auto; background: radial-gradient(circle at 50% 30%, rgba(233,185,73,.25), transparent 70%), linear-gradient(160deg, #3A2A12, #241A0A); border-color: rgba(233,185,73,.5); }
.sw-door-num { font-family: Georgia, "Times New Roman", serif; font-weight: 700; font-size: clamp(26px, 3.4vw, 40px); line-height: 1; color: #F4E3B8; text-shadow: 0 1px 0 rgba(0,0,0,.6); }
.sw-door.big .sw-door-num { font-size: clamp(36px, 4.6vw, 54px); color: var(--acc-h); }
.sw-door::after { content: ""; position: absolute; inset: 5px; border: 1px dashed rgba(244,227,184,.18); border-radius: 7px; pointer-events: none; }
.sw-door.locked { opacity: .55; cursor: default; }
.sw-door.locked:hover { transform: none; border-color: rgba(233,185,73,.22); }
.sw-door.ready { border-color: rgba(233,185,73,.55); box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 0 0 1px rgba(233,185,73,.15), 0 0 22px rgba(233,185,73,.18); }
.sw-door.ready .sw-door-num { color: var(--acc-h); }
.sw-door-hint { font-size: 11.5px; color: var(--acc-h); opacity: .9; }
.sw-door.open { background: radial-gradient(circle at 50% 40%, rgba(255,230,170,.18), transparent 70%), #2A2418; border-color: rgba(233,185,73,.45); cursor: pointer; }
.sw-door.open::after { border-style: solid; border-color: rgba(233,185,73,.15); }
.sw-door.sel { outline: 2px solid var(--acc); outline-offset: 2px; }
.sw-door-art { width: 58%; max-width: 64px; aspect-ratio: 1; filter: drop-shadow(0 0 8px rgba(233,185,73,.35)); animation: sw-peek .5s cubic-bezier(.3,1.6,.5,1) both; }
.sw-door-art svg { width: 100%; height: 100%; display: block; }
.sw-door-name { font-size: 12px; line-height: 1.2; text-align: center; color: var(--muted); }
.sw-door-first { position: absolute; top: 6px; right: 8px; font-size: 10.5px; color: var(--acc-h); opacity: .8; max-width: calc(100% - 16px); overflow-wrap: anywhere; text-align: right; }
.sw-door.shake { animation: sw-shake .4s; }
@keyframes sw-shake { 20% { transform: translateX(-5px) rotate(-2deg); } 40% { transform: translateX(5px) rotate(2deg); } 60% { transform: translateX(-3px); } 80% { transform: translateX(3px); } }
.sw-detail { display: grid; grid-template-columns: 72px 1fr; gap: 16px; align-items: center; margin: 20px 0 0; padding: 14px 16px; border-radius: 10px;
  background: linear-gradient(90deg, rgba(233,185,73,.12), transparent 80%); border: 1px solid rgba(233,185,73,.3); }
.sw-detail-art { width: 72px; height: 72px; filter: drop-shadow(0 0 10px rgba(233,185,73,.45)); }
.sw-detail-art svg { width: 100%; height: 100%; }
.sw-detail small { display: block; color: var(--acc-h); font-size: 13px; }
.sw-detail b { display: block; font-family: var(--f-d); font-weight: 800; font-size: 24px; line-height: 1.1; }
.sw-detail span { display: block; color: var(--muted); font-size: 14.5px; margin-top: 2px; }

/* Geheimnisse, Wunschzettel, Rangliste */
.sw-book-grid { display: grid; grid-template-columns: 1fr 280px; gap: 26px; align-items: start; }
.sw-book h3 { margin: 0 0 10px; font-family: var(--f-d); font-weight: 800; font-size: 22px; }
.sw-slots { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.sw-slot { display: grid; grid-template-columns: 52px 1fr; gap: 12px; align-items: start; padding: 12px; border-radius: 10px; background: rgba(255,255,255,.025); border: 1px dashed var(--line2); }
.sw-slot.got { border-style: solid; border-color: rgba(var(--sw-glow) / .3); background: linear-gradient(180deg, rgba(var(--sw-glow) / .09), rgba(var(--sw-glow) / .02)); }
.sw-slot-art { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,.35), transparent); }
.sw-slot-art svg { width: 86%; height: 86%; display: block; }
.sw-slot.got .sw-slot-art svg { filter: drop-shadow(0 0 7px rgba(var(--sw-glow) / .5)); }
.sw-slot-art svg.sil { filter: brightness(0) invert(1); opacity: .09; }
.sw-slot-t { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.sw-slot-t b { font-family: var(--f-d); font-weight: 800; font-size: 17px; line-height: 1.15; }
.sw-slot:not(.got) .sw-slot-t b { color: var(--dis); }
.sw-slot-t span { font-size: 13px; line-height: 1.4; color: var(--muted); }
.sw-slot:not(.got) .sw-slot-t span { font-style: italic; }
.sw-slot-t small { font-size: 12px; color: var(--acc-h); opacity: .85; }
.sw-wish { margin-top: 14px; padding: 14px; border-radius: 10px; background: #FBF4E4; color: #3A2E22; box-shadow: 0 6px 18px rgba(0,0,0,.3); transform: rotate(-.4deg); }
.sw-wish label { display: block; font-family: Georgia, "Times New Roman", serif; font-style: italic; font-size: 17px; margin-bottom: 6px; color: #7A2A1E; }
.sw-wish textarea { width: 100%; box-sizing: border-box; resize: vertical; min-height: 56px; border: 0; border-bottom: 1px solid #C9B894; background: repeating-linear-gradient(transparent 0 23px, #E4D6B6 23px 24px); color: #2A2018;
  font: 16px/24px Georgia, "Times New Roman", serif; padding: 0 2px; outline: none; }
.sw-wish textarea:focus { border-bottom-color: #C8302A; }
.sw-wish > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.sw-wish small { color: #8A7A62; font-size: 12px; }
.sw-wish button { border: 0; border-radius: 6px; padding: 7px 14px; background: #C8302A; color: #FFF8EC; font: inherit; font-weight: 700; cursor: pointer; }
.sw-wish button:hover { background: #A82620; }
.sw-wish button:focus-visible { outline: 2px solid #7A2A1E; outline-offset: 2px; }
.sw-board { padding: 16px 16px 14px; border-radius: 10px; background: rgba(0,0,0,.2); border: 1px solid var(--line); }
.sw-board ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.sw-board li { display: grid; grid-template-columns: 20px 26px 1fr auto; align-items: center; gap: 9px; padding: 6px 4px; border-radius: 6px; font-size: 14px; }
.sw-board li:nth-child(-n+3) .sw-rank { color: var(--acc-h); }
.sw-board li img, .sw-board li > i { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; display: block; }
.sw-rank { font-family: var(--f-d); font-weight: 800; color: var(--dis); text-align: right; }
.sw-bn { min-width: 0; overflow-wrap: anywhere; }
.sw-bc { font-family: var(--f-d); font-weight: 800; font-size: 17px; font-variant-numeric: tabular-nums; }
.sw-board li.sw-empty { display: block; color: var(--muted); font-size: 13.5px; line-height: 1.45; padding: 4px 2px; }
.sw-tip { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; line-height: 1.45; }

/* ---------- Kleine Bildschirme ---------- */
@media (max-width: 900px) {
  .sw-lights { display: none; }
  .sw-logo.hat { left: 2px; top: -10px; width: 32px; height: 32px; }
  .sw-logo.flake { left: 30px; top: 26px; width: 20px; height: 20px; }
  .sw-pill { margin: 0 0 0 auto; gap: 2px; align-items: flex-end; }
  .sw-hunt { grid-template-columns: 34px; gap: 0; padding: 6px 16px 8px 8px; width: auto; }
  .sw-hunt-ico { width: 34px; height: 34px; }
  .sw-hunt-t { display: none; }
  .sw-off { font-size: 11px; }
  .sw-toasts { bottom: 84px; }
  .sw-book { padding: 0; place-items: stretch; }
  .sw-book-in { border-radius: 0; min-height: 100%; padding: 22px 16px 28px; border: 0; }
  .sw-book header { grid-template-columns: 48px 1fr; padding-right: 40px; }
  .sw-head-ico { width: 48px; height: 48px; }
  .sw-book header p { grid-column: 1 / -1; }
  .sw-count { grid-column: 1 / -1; text-align: left; display: flex; align-items: baseline; gap: 8px; }
  .sw-count b { font-size: 40px; display: inline; }
  .sw-cal { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .sw-door { aspect-ratio: 1 / .95; }
  .sw-door.big { grid-column: span 1; aspect-ratio: 1 / .95; }
  .sw-door-name { display: none; }
  .sw-door-art { width: 70%; }
  .sw-door-first { display: none; }
  .sw-book-grid { grid-template-columns: 1fr; }
  .sw-slots { grid-template-columns: 1fr; }
  .sw-item { width: 42px; height: 42px; }
}
@media (prefers-reduced-motion: reduce) {
  .sw-bulb, .sw-wreath .fl, .sw-logo.flake, .sw-glow, .sw-item, .sw-item::before, .sw-item svg, .sw-door-art, .sw-spook .nose, .sw-aurora i { animation: none !important; }
}
@media print { .sw-deco, .sw-lights, .sw-logo, .sw-pill, .sw-item, .sw-toasts, .sw-book, .sw-frost, .sw-aurora, .sw-elf { display: none !important; } }

/* ---------- Leistung: nur noch Animationen, die der Browser auf die Grafikkarte auslagern kann ---------- */
/* Lämpchen: Funkeln über einen Leucht-Hof mit wechselnder Deckkraft statt animiertem Schatten (der zwang jedes Bild zur Neuberechnung aller Lämpchen) */
.sw-bulb { animation: none; filter: none; isolation: isolate; }
.sw-bulb::before { content: ""; position: absolute; left: 50%; top: 62%; width: 30px; height: 30px; margin: -15px 0 0 -15px; z-index: -1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, var(--c), transparent); opacity: .75; animation: sw-glow-o 3s ease-in-out infinite; animation-delay: inherit; }
@keyframes sw-glow-o { 50% { opacity: .25; } }
.sw-bulb.pop { animation: sw-bulbpop .45s cubic-bezier(.3,1.8,.5,1); }
.sw-lights.party .sw-bulb { animation: none; }
.sw-lights.party .sw-bulb::before { animation: sw-glow-o .5s ease-in-out infinite; }
/* Kerzen im Adventskranz: ruhige Flammen, das Flackern übernimmt ein warmer Schein hinter dem Kranz */
.sw-wreath .fl { animation: none; filter: none; }
.sw-hunt-ico { isolation: isolate; }
.sw-hunt-ico::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 30%; width: 46px; height: 30px; margin: -15px 0 0 -23px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255,200,90,.55), rgba(255,200,90,0)); animation: sw-flicker-o 1.6s ease-in-out infinite; }
html[data-season="winter"] .sw-hunt-ico::before { display: none; }
@keyframes sw-flicker-o { 0%, 100% { opacity: .8; } 40% { opacity: .45; } 70% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .sw-bulb::before, .sw-hunt-ico::before { animation: none; } }
