/*
 * Saisonale Zusätze. Wird nur geladen, wenn im Verwaltungsbereich ein
 * Saison-Design oder eine Aktion eingeschaltet ist. Das Standard-Design
 * bleibt unverändert; alles hier ist eine zusätzliche Schicht.
 */

/* ---------- Aktions-Banner (in jedem Design) ---------- */

.promo-banner {
  --promo-bg: var(--color-slate);
  --promo-text: var(--color-on-dark);
  --promo-muted: var(--color-on-dark-muted);
  --promo-button-bg: var(--color-accent);
  --promo-button-text: var(--color-on-accent);
  --promo-button-hover: var(--color-accent-hover);
  background: var(--promo-bg);
  color: var(--promo-text);
  font-size: var(--text-sm);
}

.promo-banner__inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-5);
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-3);
}

.promo-banner__text {
  flex: 1 1 32rem;
  margin: 0;
  line-height: var(--leading-snug);
}

.promo-banner__title {
  color: var(--promo-text);
}

.promo-banner__terms {
  display: block;
  margin-top: var(--space-1);
  color: var(--promo-muted);
  font-size: var(--text-xs);
}

.promo-banner__link {
  flex: none;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
  background: var(--promo-button-bg);
  color: var(--promo-button-text);
  font-weight: var(--weight-semibold);
  text-decoration: none;
  transition: background-color var(--duration) var(--ease);
}

.promo-banner__link:hover {
  background: var(--promo-button-hover);
}

.promo-banner__link:focus-visible {
  outline: 2px solid var(--promo-text);
  outline-offset: 2px;
}

/* ---------- Weihnachtsdesign ---------- */

[data-theme="weihnachten"] {
  --xmas-red: #9e1b2a;
  --xmas-red-dark: #7d1421;
  --xmas-gold: #f2c14e;
  --xmas-gold-hover: #e8b235;
  --xmas-green: #1f6b45;
  --snow-small: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cg fill='%23ffffff' fill-opacity='.55'%3E%3Ccircle cx='14' cy='22' r='1.6'/%3E%3Ccircle cx='70' cy='8' r='1.2'/%3E%3Ccircle cx='120' cy='40' r='1.8'/%3E%3Ccircle cx='190' cy='18' r='1.3'/%3E%3Ccircle cx='38' cy='90' r='1.4'/%3E%3Ccircle cx='96' cy='120' r='1.1'/%3E%3Ccircle cx='160' cy='96' r='1.7'/%3E%3Ccircle cx='208' cy='140' r='1.2'/%3E%3Ccircle cx='24' cy='170' r='1.5'/%3E%3Ccircle cx='80' cy='196' r='1.3'/%3E%3Ccircle cx='140' cy='176' r='1.6'/%3E%3Ccircle cx='182' cy='206' r='1.1'/%3E%3C/g%3E%3C/svg%3E");
  --snow-large: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='360'%3E%3Cg fill='%23ffffff' fill-opacity='.6'%3E%3Ccircle cx='40' cy='60' r='2.6'/%3E%3Ccircle cx='210' cy='30' r='2.2'/%3E%3Ccircle cx='300' cy='150' r='2.8'/%3E%3Ccircle cx='120' cy='200' r='2.4'/%3E%3Ccircle cx='60' cy='310' r='2.1'/%3E%3Ccircle cx='250' cy='290' r='2.7'/%3E%3C/g%3E%3C/svg%3E");
}

[data-theme="weihnachten"] .promo-banner {
  --promo-bg: var(--xmas-red);
  --promo-text: #ffffff;
  --promo-muted: #f6dde0;
  --promo-button-bg: var(--xmas-gold);
  --promo-button-text: var(--color-navy);
  --promo-button-hover: var(--xmas-gold-hover);
}

/* Festliche Linie unter der Kopfzeile */
[data-theme="weihnachten"] .site-header::after {
  content: "";
  position: absolute;
  inset: auto 0 -3px;
  height: 3px;
  background: repeating-linear-gradient(90deg, var(--xmas-red) 0 28px, var(--xmas-gold) 28px 36px, var(--xmas-green) 36px 64px, var(--xmas-gold) 64px 72px);
  pointer-events: none;
}

/* Leichter Schneefall im dunklen Bereich oben und in der Fußzeile */
[data-theme="weihnachten"] .hero {
  background-image:
    var(--snow-large),
    var(--snow-small),
    linear-gradient(var(--color-navy) calc(100% - var(--hero-overlap)), var(--color-surface) 0);
  background-repeat: repeat, repeat, no-repeat;
  background-position: 0 0, 0 0, 0 0;
  animation: xmas-snow 60s linear infinite;
}

[data-theme="weihnachten"] .site-footer {
  background-image: var(--snow-small), linear-gradient(var(--color-navy), var(--color-navy));
  background-repeat: repeat, no-repeat;
  background-position: 0 0, 0 0;
  animation: xmas-snow-footer 80s linear infinite;
}

@keyframes xmas-snow {
  to {
    background-position: 60px 360px, -40px 220px, 0 0;
  }
}

@keyframes xmas-snow-footer {
  to {
    background-position: -30px 220px, 0 0;
  }
}

/* Goldener Akzent im Logo */
[data-theme="weihnachten"] .site-footer .logo__accent,
[data-theme="weihnachten"] .hero h1::after {
  color: var(--xmas-gold);
}

[data-theme="weihnachten"] .hero h1::after {
  content: "✦" / "";
  margin-left: 0.3em;
  font-size: 0.6em;
  vertical-align: 0.35em;
}

@media (prefers-reduced-motion: reduce) {
  [data-theme="weihnachten"] .hero,
  [data-theme="weihnachten"] .site-footer {
    animation: none;
  }
}
