/* ═══ Wattens.TV Weihnachtszeit (25. November bis 6. Jänner) ═══
   Wird nur in der Weihnachtszeit geladen (functions.php: watv_weihnachten_assets). */

@font-face {
  font-family: 'Mountains of Christmas';
  src: url('fonts/mountains-of-christmas-bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Farbwelt: tiefes Weinrot, Tannengrün, Gold */
body.season-weihnachten {
  --season-bg: #5a1016;
  --season-accent: #e6bf5c;
  --season-bg1: #22060a;
  --season-bg2: #5a1016;
  --season-bg3: #8a2228;
  --season-glow: rgba(255, 208, 120, .30);
  --xmas-gold: #e6bf5c;
  --xmas-creme: #f4ecd8;
  --xmas-tanne: #0f2c1e;
  --xmas-tanne2: #18432d;
}

/* Header-Badge */
body.season-weihnachten .header-meta strong {
  background: rgba(230, 191, 92, .12);
  border-color: rgba(230, 191, 92, .38);
}
.xmas-countdown {
  display: block;
  margin-top: 2px;
  color: var(--xmas-creme);
  font-weight: 600;
  letter-spacing: .2px;
}

/* Weihnachtsmütze auf dem Logo */
body.season-weihnachten #site-header .site-logo a { position: relative; display: inline-block; }
.xmas-muetze {
  position: absolute;
  left: 46px;
  top: 4px;
  width: 34px;
  height: auto;
  transform: rotate(16deg);
  pointer-events: none;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .35));
}

/* Lichterkette unter dem Header */
#xmas-lights {
  position: absolute;
  left: 0; right: 0;
  top: 100%;
  height: 28px;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='14' viewBox='0 0 64 14'%3E%3Cpath d='M0 1.5 Q32 16.5 64 1.5' fill='none' stroke='%23163222' stroke-width='1.6'/%3E%3C/svg%3E") repeat-x 0 0 / 64px 14px;
}
.xmas-bulb {
  position: absolute;
  top: 8px;
  width: 8px;
  height: 12px;
  margin-left: -4px;
  border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
  background: var(--c);
  box-shadow: 0 0 6px 2px var(--c);
  animation: xmas-twinkle 2.6s ease-in-out infinite alternate;
}
.xmas-bulb::before {
  content: "";
  position: absolute;
  left: 1.5px; top: -3px;
  width: 5px; height: 4px;
  border-radius: 1px;
  background: #1d2a20;
}
.xmas-bulb.b0 { --c: #ff4b4b; }
.xmas-bulb.b1 { --c: #ffd257; }
.xmas-bulb.b2 { --c: #4fe08a; }
.xmas-bulb.b3 { --c: #5cb8ff; }
.xmas-bulb.b4 { --c: #fff1c9; }
@keyframes xmas-twinkle {
  0%   { opacity: .45; box-shadow: 0 0 2px 0 var(--c); }
  100% { opacity: 1;   box-shadow: 0 0 9px 3px var(--c); }
}

/* Hero: verschneite Berge + Sternenhimmel */
body.season-weihnachten #hero-archiv::after {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath fill='rgba(255,255,255,0.82)' d='M70 46 L95 56 L85 53 L76 58 L61 57 L51 61 L41 59 Z M210 26 L244 46 L230 43 L218 48 L200 42 L188 46 L176 44 Z M370 50 L404 64 L390 61 L378 66 L360 58 L348 62 L336 60 Z M540 32 L582 51 L565 48 L550 53 L529 52 L515 56 L502 54 Z M720 54 L762 69 L745 66 L730 71 L710 62 L698 66 L686 64 Z M900 58 L942 70 L925 67 L910 72 L890 69 L878 73 L866 71 Z'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath fill='rgba(0,0,0,0.30)' d='M0 120 L0 78 L70 46 L130 70 L210 26 L290 74 L370 50 L450 84 L540 32 L640 78 L720 54 L820 90 L900 58 L1000 86 L1090 64 L1200 40 L1200 120 Z'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath fill='rgba(255,255,255,0.30)' d='M80 30 L109 39 L97 36 L87 41 L71 39 L61 43 L51 41 Z M260 12 L296 29 L282 26 L269 31 L249 26 L237 30 L224 28 Z M470 24 L502 38 L489 35 L478 40 L458 34 L444 38 L430 36 Z M680 18 L716 33 L702 30 L689 35 L667 32 L652 36 L637 34 Z M880 36 L920 47 L904 44 L890 49 L869 43 L857 47 L844 45 Z M1100 30 L1136 39 L1122 36 L1109 41 L1088 41 L1074 45 L1060 43 Z'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath fill='rgba(255,255,255,0.09)' d='M0 120 L0 60 L80 30 L160 56 L260 12 L360 58 L470 24 L560 62 L680 18 L780 60 L880 36 L990 66 L1100 30 L1200 54 L1200 120 Z'/%3E%3C/svg%3E");
  background-repeat: repeat-x, repeat-x, repeat-x, repeat-x;
  background-position: bottom, bottom, bottom, bottom;
  background-size: 1200px 74px, 1200px 74px, 1200px 112px, 1200px 112px;
}
.xmas-stars {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 62%;
  pointer-events: none;
  z-index: 1;
}
.xmas-star {
  position: absolute;
  color: #ffe7a8;
  line-height: 1;
  text-shadow: 0 0 6px rgba(255, 225, 150, .8);
  animation: xmas-star 3.4s ease-in-out infinite alternate;
}
@keyframes xmas-star {
  0%   { opacity: .15; transform: scale(.75); }
  100% { opacity: .85; transform: scale(1); }
}

/* Adventskalender-Block auf der Startseite */
#xmas-advent {
  position: relative;
  background:
    radial-gradient(ellipse 60% 80% at 85% 0%, rgba(230, 191, 92, .16) 0%, transparent 60%),
    linear-gradient(160deg, var(--xmas-tanne) 0%, var(--xmas-tanne2) 100%);
  color: var(--xmas-creme);
  padding: 34px 0 38px;
  overflow: hidden;
}
#xmas-advent::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .5;
  background-image:
    radial-gradient(circle at 12% 30%, rgba(255,255,255,.5) 0 1.2px, transparent 2px),
    radial-gradient(circle at 37% 70%, rgba(255,255,255,.4) 0 1px, transparent 1.8px),
    radial-gradient(circle at 63% 22%, rgba(255,255,255,.45) 0 1.3px, transparent 2px),
    radial-gradient(circle at 88% 64%, rgba(255,255,255,.4) 0 1px, transparent 1.8px);
  background-size: 140px 110px;
}
.xmas-advent-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.xmas-advent-text { flex: 1 1 360px; max-width: 520px; }
.xmas-advent-label {
  font-family: 'DM Sans', sans-serif;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--xmas-gold);
}
.xmas-advent-title {
  font-family: 'Mountains of Christmas', 'Playfair Display', serif;
  font-weight: 700;
  font-size: 2.5rem;
  line-height: 1.05;
  color: var(--xmas-creme);
  margin: 6px 0 10px;
}
.xmas-advent-desc {
  font-family: 'DM Sans', sans-serif;
  font-size: .95rem;
  line-height: 1.55;
  color: rgba(244, 236, 216, .82);
  margin: 0;
}

/* Adventkranz: brennende Kerzen je Adventsonntag */
.xmas-kranz {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  margin-top: 18px;
  height: 46px;
  padding: 0 10px 6px;
  background: radial-gradient(ellipse 50% 9px at 50% 100%, #2f6b3f 0 92%, transparent 100%);
  width: max-content;
}
.xmas-kerze {
  position: relative;
  width: 11px;
  height: 26px;
  border-radius: 2px;
  background: linear-gradient(90deg, #8e1b20, #c0392b 55%, #8e1b20);
}
.xmas-kerze::before {
  content: "";
  position: absolute;
  left: 5px; top: -5px;
  width: 1px; height: 5px;
  background: #2a2a2a;
}
.xmas-kerze.brennt::after {
  content: "";
  position: absolute;
  left: 50%; top: -17px;
  width: 8px; height: 13px;
  margin-left: -4px;
  border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%;
  background: radial-gradient(ellipse at 50% 70%, #fff7d6 0 25%, #ffd257 45%, #ff8a1f 80%, transparent 100%);
  box-shadow: 0 0 12px 4px rgba(255, 196, 80, .45);
  transform-origin: 50% 100%;
  animation: xmas-flamme 1.6s ease-in-out infinite alternate;
}
@keyframes xmas-flamme {
  0%   { transform: scale(1, 1) rotate(-2deg); }
  50%  { transform: scale(.92, 1.08) rotate(2deg); }
  100% { transform: scale(1.04, .95) rotate(-1deg); }
}
.xmas-kranz-text {
  font-family: 'DM Sans', sans-serif;
  font-size: .8rem;
  color: var(--xmas-gold);
  margin: 8px 0 0;
}
.xmas-kranz-text:empty { display: none; }

/* Türchen je Jahrgang */
.xmas-doors {
  display: grid;
  grid-template-columns: repeat(5, 104px);
  gap: 12px;
  perspective: 700px;
}
.xmas-door {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 128px;
  border-radius: 6px;
  background: linear-gradient(160deg, #a3242a 0%, #7a161b 100%);
  border: 2px solid var(--xmas-gold);
  box-shadow: inset 0 0 0 4px #7a161b, inset 0 0 0 5px rgba(230, 191, 92, .55), 0 8px 18px rgba(0, 0, 0, .28);
  color: var(--xmas-creme);
  text-decoration: none;
  transform-origin: 0 50%;
  transition: transform .35s ease, box-shadow .35s ease;
}
.xmas-door::after {
  content: "";
  position: absolute;
  right: 10px; top: 50%;
  width: 6px; height: 6px;
  margin-top: -3px;
  border-radius: 50%;
  background: var(--xmas-gold);
}
.xmas-door:hover,
.xmas-door:focus-visible {
  color: #fff;
  transform: rotateY(-22deg);
  box-shadow: inset 0 0 0 4px #7a161b, inset 0 0 0 5px rgba(230, 191, 92, .8), 10px 10px 22px rgba(0, 0, 0, .38);
}
.xmas-door-jahr {
  font-family: 'Mountains of Christmas', 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.85rem;
  line-height: 1;
}
.xmas-door-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: .68rem;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: rgba(244, 236, 216, .75);
  margin-top: 8px;
}

/* Schnee auf dem Footer */
body.season-weihnachten #site-footer { position: relative; }
body.season-weihnachten #site-footer::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: -1px;
  height: 16px;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 16' preserveAspectRatio='none'%3E%3Cpath fill='%23f7f9fc' d='M0 0 H240 V5 C228 5 226 12 214 12 C202 12 200 6 188 6 C176 6 172 14 158 14 C146 14 144 7 132 7 C120 7 118 11 106 11 C94 11 90 5 78 5 C66 5 64 13 50 13 C38 13 36 7 24 7 C12 7 10 10 0 10 Z'/%3E%3C/svg%3E") repeat-x 0 0 / 240px 16px;
}

/* Handy */
@media (max-width: 980px) {
  .xmas-advent-inner { flex-direction: column; align-items: flex-start; gap: 24px; }
  .xmas-advent-text { flex: none; max-width: none; }
  .xmas-doors { grid-template-columns: repeat(5, minmax(0, 1fr)); width: 100%; gap: 8px; }
  .xmas-door { height: 104px; }
}
@media (max-width: 600px) {
  .xmas-advent-title { font-size: 2rem; }
  .xmas-door { height: 84px; }
  .xmas-door-jahr { font-size: 1.25rem; }
  .xmas-door-sub { font-size: .55rem; margin-top: 5px; letter-spacing: 0; }
  .xmas-door::after { display: none; }
  .xmas-muetze { width: 28px; left: 40px; top: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  .xmas-bulb, .xmas-star, .xmas-kerze.brennt::after { animation: none; }
  .xmas-bulb { opacity: 1; }
  .xmas-door { transition: none; }
}
