/* Weihnachtsdeko: wird von includes/head.php nur in der Saison geladen (siehe includes/xmas.php).
   Alles reines CSS, die Bilder sind SVG als data:-URI (CSP: img-src data:). Nicht für den Druck. */
@media screen {

/* ──── Lichterkette unter dem Menü ──── */
body.xmas .site-nav {
  position: relative;
  padding-bottom: 24px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='24'%3E%3Cpath d='M0 3Q24 13 48 3Q72 13 96 3' fill='none' stroke='%236b6b60' stroke-width='1.2'/%3E%3Cg fill='%236b6b60'%3E%3Crect x='10.7' y='6' width='2.6' height='3.4'/%3E%3Crect x='34.7' y='6' width='2.6' height='3.4'/%3E%3Crect x='58.7' y='6' width='2.6' height='3.4'/%3E%3Crect x='82.7' y='6' width='2.6' height='3.4'/%3E%3C/g%3E%3Cg opacity='.45'%3E%3Cellipse cx='12' cy='13.5' rx='3.2' ry='4.5' fill='%23D3202A'/%3E%3Cellipse cx='36' cy='13.5' rx='3.2' ry='4.5' fill='%235A8A1A'/%3E%3Cellipse cx='60' cy='13.5' rx='3.2' ry='4.5' fill='%23F0A030'/%3E%3Cellipse cx='84' cy='13.5' rx='3.2' ry='4.5' fill='%235BB8E8'/%3E%3C/g%3E%3C/svg%3E");
  background-position: left bottom;
  background-repeat: repeat-x;
}
/* Zwei Leuchtgruppen im Wechsel; nur opacity, damit nichts neu gezeichnet werden muss */
body.xmas .site-nav::before,
body.xmas .site-nav::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 24px;
  background-position: left bottom;
  background-repeat: repeat-x;
  pointer-events: none;
  animation: xmas-blink 3.2s ease-in-out infinite;
}
body.xmas .site-nav::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='24'%3E%3Cdefs%3E%3CradialGradient id='a'%3E%3Cstop stop-color='%23D3202A' stop-opacity='.55'/%3E%3Cstop offset='1' stop-color='%23D3202A' stop-opacity='0'/%3E%3C/radialGradient%3E%3CradialGradient id='b'%3E%3Cstop stop-color='%23F0A030' stop-opacity='.55'/%3E%3Cstop offset='1' stop-color='%23F0A030' stop-opacity='0'/%3E%3C/radialGradient%3E%3C/defs%3E%3Ccircle cx='12' cy='13.5' r='9.5' fill='url(%23a)'/%3E%3Cellipse cx='12' cy='13.5' rx='3.2' ry='4.5' fill='%23D3202A'/%3E%3Ccircle cx='60' cy='13.5' r='9.5' fill='url(%23b)'/%3E%3Cellipse cx='60' cy='13.5' rx='3.2' ry='4.5' fill='%23F0A030'/%3E%3C/svg%3E");
}
body.xmas .site-nav::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='24'%3E%3Cdefs%3E%3CradialGradient id='a'%3E%3Cstop stop-color='%237BC42A' stop-opacity='.55'/%3E%3Cstop offset='1' stop-color='%237BC42A' stop-opacity='0'/%3E%3C/radialGradient%3E%3CradialGradient id='b'%3E%3Cstop stop-color='%235BB8E8' stop-opacity='.55'/%3E%3Cstop offset='1' stop-color='%235BB8E8' stop-opacity='0'/%3E%3C/radialGradient%3E%3C/defs%3E%3Ccircle cx='36' cy='13.5' r='9.5' fill='url(%23a)'/%3E%3Cellipse cx='36' cy='13.5' rx='3.2' ry='4.5' fill='%237BC42A'/%3E%3Ccircle cx='84' cy='13.5' r='9.5' fill='url(%23b)'/%3E%3Cellipse cx='84' cy='13.5' rx='3.2' ry='4.5' fill='%235BB8E8'/%3E%3C/svg%3E");
  animation-delay: -1.6s;
}
@keyframes xmas-blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: .1; }
}

/* ──── Logo: die Bäume im M als Weihnachtsbäume ──── */
/* Koordinaten im Maßstab des Logos (2000 breit); oben 8 % Überstand für den Stern */
body.xmas .nav-logo { position: relative; }
body.xmas .nav-logo::after {
  content: '';
  position: absolute; left: 0; right: 0; top: -8%; bottom: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -135 2000 1823' preserveAspectRatio='none'%3E%3Cpolygon points='1210,-75 1236,-1 1315,1 1253,49 1275,124 1210,80 1145,124 1167,49 1105,1 1184,-1' fill='%23F0A030'/%3E%3Cg fill='%23D3202A'%3E%3Ccircle cx='1205' cy='330' r='46'/%3E%3Ccircle cx='1150' cy='880' r='46'/%3E%3Ccircle cx='1480' cy='350' r='46'/%3E%3Ccircle cx='1560' cy='610' r='46'/%3E%3C/g%3E%3Cg fill='%23F6C33A'%3E%3Ccircle cx='1120' cy='640' r='46'/%3E%3Ccircle cx='1420' cy='880' r='46'/%3E%3C/g%3E%3Cg fill='%23fff'%3E%3Ccircle cx='1270' cy='620' r='46'/%3E%3Ccircle cx='1410' cy='620' r='46'/%3E%3Ccircle cx='1580' cy='880' r='46'/%3E%3C/g%3E%3C/svg%3E") center / 100% 100% no-repeat;
  pointer-events: none;
}

/* ──── Schneefall auf dem Hero-Foto (nur dort, der Text bleibt ruhig) ──── */
body.xmas .hero-right::before {
  content: '';
  position: absolute; left: 0; right: 0; top: -600px; bottom: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='600' fill='%23fff'%3E%3Cg opacity='.9'%3E%3Ccircle cx='40' cy='60' r='3'/%3E%3Ccircle cx='210' cy='30' r='2.5'/%3E%3Ccircle cx='380' cy='95' r='3.5'/%3E%3Ccircle cx='530' cy='50' r='2.5'/%3E%3Ccircle cx='120' cy='210' r='3.5'/%3E%3Ccircle cx='300' cy='250' r='3'/%3E%3Ccircle cx='470' cy='190' r='3'/%3E%3Ccircle cx='70' cy='390' r='2.5'/%3E%3Ccircle cx='240' cy='430' r='3.5'/%3E%3Ccircle cx='420' cy='370' r='2.5'/%3E%3Ccircle cx='560' cy='440' r='3.5'/%3E%3Ccircle cx='150' cy='550' r='3'/%3E%3Ccircle cx='350' cy='560' r='2.5'/%3E%3C/g%3E%3Cg opacity='.55'%3E%3Ccircle cx='100' cy='120' r='1.6'/%3E%3Ccircle cx='280' cy='140' r='2'/%3E%3Ccircle cx='450' cy='20' r='1.6'/%3E%3Ccircle cx='580' cy='150' r='2'/%3E%3Ccircle cx='30' cy='280' r='2'/%3E%3Ccircle cx='200' cy='330' r='1.6'/%3E%3Ccircle cx='370' cy='300' r='2'/%3E%3Ccircle cx='530' cy='310' r='1.6'/%3E%3Ccircle cx='110' cy='470' r='2'/%3E%3Ccircle cx='320' cy='490' r='1.6'/%3E%3Ccircle cx='490' cy='520' r='2'/%3E%3Ccircle cx='250' cy='590' r='1.6'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 600px 600px repeat;
  pointer-events: none;
  animation: xmas-snow 30s linear infinite;
}
@keyframes xmas-snow {
  to { transform: translateY(600px); }
}

/* ──── Gruß im Hero ──── */
body.xmas .xmas-greeting {
  margin-top: 20px;
  font-family: var(--f-display);
  font-style: italic; font-weight: 800;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.1;
  color: #B3261E;
}
body.xmas.dark-theme .xmas-greeting { color: #FF8A7A; }

/* ──── Hauptknöpfe in Weihnachtsrot ──── */
body.xmas .btn-primary { background: #B3261E; color: #fff; }
body.xmas .btn-primary:hover { background: #8F1D17; }
body.xmas.dark-theme .hero-btns .btn-primary { color: #fff; }

/* ──── Schnee auf dem Footer ──── */
body.xmas .site-footer {
  position: relative;
  padding-top: 72px;
}
body.xmas .site-footer::before {
  content: '';
  position: absolute; left: 0; right: 0; top: 0;
  height: 30px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='30'%3E%3Cpath d='M0 0H240V12C222 12 212 26 190 22C170 18 160 8 140 12C120 16 110 26 85 22C60 18 30 12 0 12Z' fill='%23f7f8f5'/%3E%3C/svg%3E") left top repeat-x;
  pointer-events: none;
}

/* ════ Festliche Stufe (24. bis 26.12.) ════ */

/* Band ganz oben auf jeder Seite; scrollt weg, damit Menü und Trail-Status frei bleiben */
body.xmas-fest .xmas-band {
  padding: 7px 16px;
  background: #8F1D17;
  color: #F6C33A;
  font-family: var(--f-body);
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.06em;
  text-align: center;
}

/* Lichter schneller, Baumschmuck leuchtet */
body.xmas-fest .site-nav::before,
body.xmas-fest .site-nav::after { animation-duration: 2s; }
body.xmas-fest .site-nav::after { animation-delay: -1s; }
body.xmas-fest .nav-logo::after { filter: drop-shadow(0 0 3px rgba(246,195,58,.9)); }

/* Hero: Tannengrün mit goldenen Sternen, Schnee auch über der Textseite */
body.xmas-fest .hero {
  position: relative;
  overflow: hidden;
  background: #12352A url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300' fill='%23F6C33A'%3E%3Cg opacity='.35'%3E%3Cpath d='M40 30l2 6 6 2-6 2-2 6-2-6-6-2 6-2z'/%3E%3Cpath d='M190 70l1.5 4.5 4.5 1.5-4.5 1.5-1.5 4.5-1.5-4.5-4.5-1.5 4.5-1.5z'/%3E%3Cpath d='M110 150l2 6 6 2-6 2-2 6-2-6-6-2 6-2z'/%3E%3Cpath d='M260 190l1.5 4.5 4.5 1.5-4.5 1.5-1.5 4.5-1.5-4.5-4.5-1.5 4.5-1.5z'/%3E%3Cpath d='M60 250l1.5 4.5 4.5 1.5-4.5 1.5-1.5 4.5-1.5-4.5-4.5-1.5 4.5-1.5z'/%3E%3Cpath d='M200 260l2 6 6 2-6 2-2 6-2-6-6-2 6-2z'/%3E%3C/g%3E%3C/svg%3E");
}
body.xmas-fest .hero::before {
  content: '';
  position: absolute; left: 0; right: 0; top: -600px; bottom: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='600' fill='%23fff' opacity='.6'%3E%3Ccircle cx='70' cy='40' r='2.5'/%3E%3Ccircle cx='250' cy='110' r='2'/%3E%3Ccircle cx='430' cy='60' r='3'/%3E%3Ccircle cx='150' cy='230' r='3'/%3E%3Ccircle cx='340' cy='280' r='2'/%3E%3Ccircle cx='520' cy='210' r='2.5'/%3E%3Ccircle cx='40' cy='400' r='2'/%3E%3Ccircle cx='220' cy='450' r='2.5'/%3E%3Ccircle cx='400' cy='410' r='3'/%3E%3Ccircle cx='560' cy='500' r='2'/%3E%3Ccircle cx='120' cy='560' r='2.5'/%3E%3Ccircle cx='310' cy='570' r='2'/%3E%3C/svg%3E") 0 0 / 600px 600px repeat;
  pointer-events: none;
  animation: xmas-snow 38s linear infinite;
}
body.xmas-fest .hero-left { position: relative; z-index: 1; }
body.xmas-fest .hero-left h1 { color: #FBF6E6; text-shadow: 0 3px 0 rgba(0,0,0,0.3); }
body.xmas-fest .hero-left .badge { background: #F6C33A; color: #1C1C16; }
body.xmas-fest .hero-btns .btn-secondary {
  background: transparent;
  border: 1.5px solid #FBF6E6;
  color: #FBF6E6;
}
body.xmas-fest .hero-btns .btn-secondary:hover { background: #FBF6E6; color: #12352A; }
body.xmas-fest .xmas-greeting,
body.xmas-fest.dark-theme .xmas-greeting {
  color: #F6C33A;
  font-size: clamp(26px, 3vw, 38px);
}
/* Die Serifenschrift des dunklen Designs läuft breiter und sonst in die Foto-Schräge */
body.xmas-fest.dark-theme .xmas-greeting { font-size: clamp(22px, 2.3vw, 30px); }

/* Wer weniger Bewegung eingestellt hat: Lichter und Schnee stehen still */
@media (prefers-reduced-motion: reduce) {
  body.xmas .site-nav::before,
  body.xmas .site-nav::after,
  body.xmas .hero-right::before,
  body.xmas-fest .hero::before { animation: none; }
}

}
