/* Weihnachts-Thema. Nur unter html.xmas. Das normale Design bleibt unverändert. */
.xmas-badge,
.xmas-hero-deco,
.xmas-snow,
.xmas-sprig,
.xmas-star,
.xmas-tree,
.xmas-lights { display: none; }

html.xmas {
  --xmas-red: #b3121f;
  --xmas-red-hi: #c8102e;
  --xmas-red-deep: #8f0f1a;
}

html.xmas .xmas-snow {
  display: block;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 55;
}
html.xmas.rm .xmas-snow { display: none; }

/* Dünnes Festband am Header, ohne Layout-Verschiebung */
html.xmas .hdr::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 5px;
  pointer-events: none;
  background: repeating-linear-gradient(
    90deg,
    #0c1714 0 22px,
    #b3121f 22px 48px,
    #f3ecdf 48px 60px,
    #8f0f1a 60px 86px,
    #13231e 86px 108px,
    #c8102e 108px 120px
  );
}
html.xmas .hdr {
  border-bottom-color: rgba(179, 18, 31, .28);
}

/* Lichterkette unter dem Header */
html.xmas .xmas-lights {
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 36px;
  pointer-events: none;
  z-index: 51;
  overflow: visible;
}
html.xmas .xmas-lights__wire {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  width: 100%;
  height: 22px;
  overflow: visible;
}
html.xmas .xmas-lights__row {
  position: absolute;
  left: 1.5%;
  right: 1.5%;
  top: 2px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
html.xmas .xmas-bulb {
  width: 12px;
  height: 12px;
  flex: none;
  position: relative;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--c, #b3121f);
  border: 1.7px solid #1c1914;
  box-sizing: border-box;
}
html.xmas .xmas-bulb::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -5px;
  width: 4px;
  height: 5px;
  transform: translateX(-50%);
  background: #1c1914;
  border-radius: 1px 1px 0 0;
}
html.xmas .xmas-bulb--1 { margin-top: 7px; }
html.xmas .xmas-bulb--2 { margin-top: 13px; }
html.xmas .xmas-bulb {
  animation: xmas-twinkle 1.7s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}
@keyframes xmas-twinkle {
  0%, 100% { opacity: 1; filter: drop-shadow(0 1px 0 #1c1914) brightness(1); }
  50% { opacity: .55; filter: drop-shadow(0 1px 0 #1c1914) brightness(1.25); }
}
html.xmas.rm .xmas-bulb,
html.rm .xmas-bulb { animation: none; }

html.xmas .xmas-bauble {
  position: absolute;
  top: 14px;
  width: 16px;
  height: 36px;
  background:
    linear-gradient(#1c1914, #1c1914) 50% 0 / 1.6px 10px no-repeat,
    radial-gradient(circle at 50% 72%, #b3121f 0 58%, transparent 59%);
  filter: drop-shadow(0 1px 0 #1c1914);
}
html.xmas .xmas-bauble::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 8px;
  width: 7px;
  height: 5px;
  transform: translateX(-50%);
  background: #8f0f1a;
  border: 1.4px solid #1c1914;
  border-radius: 1px;
  box-sizing: border-box;
}
html.xmas .xmas-bauble--l { left: 5%; }
html.xmas .xmas-bauble--r {
  right: 5%;
  left: auto;
  background:
    linear-gradient(#1c1914, #1c1914) 50% 0 / 1.6px 10px no-repeat,
    radial-gradient(circle at 50% 72%, #c8102e 0 58%, transparent 59%);
}

/* Gleiches Band, dezent am Footer */
html.xmas .foot {
  position: relative;
  border-top-color: rgba(179, 18, 31, .28);
}
html.xmas .foot::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 5px;
  pointer-events: none;
  background: repeating-linear-gradient(
    90deg,
    #0c1714 0 22px,
    #b3121f 22px 48px,
    #f3ecdf 48px 60px,
    #8f0f1a 60px 86px,
    #13231e 86px 108px,
    #c8102e 108px 120px
  );
}

/* Hero: warmer roter Schein, Reis-Beige bleibt Fläche */
html.xmas .hero {
  background:
    radial-gradient(56vw 48vh at 78% 38%, rgba(179, 18, 31, .1), transparent 70%),
    radial-gradient(50vw 50vh at 8% 100%, rgba(228, 214, 190, .85), transparent 70%),
    var(--rice);
  padding-block-start: 36px;
}

html.xmas .xmas-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 6px 12px 6px 10px;
  border: 1.5px solid #b3121f;
  border-radius: 999px;
  background: var(--rice-2);
  color: #8f0f1a;
  font: 700 11.5px/1 "Montserrat", sans-serif;
  letter-spacing: .16em;
  text-transform: uppercase;
}
html.xmas .xmas-badge svg {
  width: 13px;
  height: 13px;
  flex: none;
  display: block;
  color: #b3121f;
}

html.xmas .eyebrow,
html.xmas .h1 em,
html.xmas .h2 em,
html.xmas .hdr__nav a[aria-current="page"],
html.xmas .link,
html.xmas .card__art,
html.xmas .kcard__h,
html.xmas .lg__h { color: #8f0f1a; }
html.xmas .hdr__nav a::after { background: #b3121f; }
html.xmas .link { border-bottom-color: rgba(179, 18, 31, .5); }
html.xmas .link:hover { color: #c8102e; border-color: #c8102e; }

html.xmas .btn {
  background: #b3121f;
  border-color: #b3121f;
  color: #fbf7ef;
  box-shadow: 0 8px 22px -10px rgba(143, 15, 26, .55);
}
html.xmas .btn:hover {
  background: #8f0f1a;
  border-color: #8f0f1a;
  color: #fbf7ef;
}
html.xmas .btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: #b3121f;
  box-shadow: none;
}
html.xmas .btn--ghost:hover {
  background: transparent;
  color: #8f0f1a;
  border-color: #8f0f1a;
}

html.xmas .xmas-hero-deco {
  display: block;
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}
html.xmas .xmas-sprig,
html.xmas .xmas-star,
html.xmas .xmas-tree { position: absolute; display: block; }
html.xmas .xmas-sprig--l {
  left: clamp(8px, 2vw, 28px);
  top: 16px;
  width: 52px;
  height: 68px;
}
html.xmas .xmas-star--r {
  right: clamp(16px, 3vw, 48px);
  top: 16px;
  width: 22px;
  height: 22px;
}
html.xmas .hero__photo { position: relative; overflow: visible; }
html.xmas .xmas-tree--hero {
  right: -8px;
  bottom: -8px;
  width: 132px;
  z-index: 4;
  pointer-events: none;
}
html.xmas .xmas-tree--foot {
  position: static;
  width: 96px;
  margin: 0 auto 4px;
}

html.xmas .hero__frame {
  box-shadow:
    0 0 0 1px rgba(179, 18, 31, .2),
    0 28px 56px -28px rgba(28, 25, 20, .28);
}

html.xmas .sec--rice {
  background-image:
    radial-gradient(circle at 12px 28px, #b3121f 1.1px, transparent 1.25px),
    radial-gradient(circle at 28px 18px, #1c1914 0.9px, transparent 1.05px);
  background-repeat: no-repeat;
  background-size: 48px 48px, 48px 48px;
  background-position: 2% 18px, 97% 18px;
  background-color: var(--rice-2);
}

html.xmas #tbm-bar { box-shadow: 0 -3px 0 #b3121f; }

/* Ab einspaltigem Hero liegt der linke Baum auf dem Badge-Text. */
@media (max-width: 900px) {
  html.xmas .hero { padding-block-start: 28px; }
  html.xmas .xmas-sprig--l { display: none; }
  html.xmas .xmas-star--r { width: 16px; height: 16px; top: 12px; }
  html.xmas .xmas-tree--hero {
    right: auto;
    left: 8px;
    top: auto;
    bottom: -4px;
    width: 68px;
  }
  html.xmas .xmas-lights { height: 30px; }
  html.xmas .xmas-bulb { width: 10px; height: 10px; }
  html.xmas .xmas-bauble { width: 13px; height: 30px; }
  html.xmas .xmas-bauble--l { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html.xmas .xmas-snow { display: none; }
  html.xmas .xmas-bulb { animation: none; }
}
