/* ==========================================================
   Nikolaus-Ankündigung 2026 (01.12.–07.12.2026)
   Wird nur von nikolaus.js eingeblendet. Nach der Aktion kann
   diese Datei samt nikolaus.js und den zwei Zeilen in index.html
   wieder entfernt werden.
   ========================================================== */

.niko-wrap { padding: 20px 0 4px; }

/* Rahmen im Stil der App: rot-weiß-grüne Streifen */
.niko-band {
  position: relative;
  padding: 6px;
  border-radius: var(--radius);
  background: repeating-linear-gradient(135deg,
    #c8102e 0 14px, #ffffff 14px 22px, #1e8a4c 22px 36px, #ffffff 36px 44px);
  box-shadow: var(--shadow);
}
.niko-inner {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 20px 56px 20px 22px;
  background: var(--surface);
  border-radius: calc(var(--radius) - 5px);
}
.niko-bild {
  flex: 0 0 auto;
  width: 92px; height: 92px;
  border-radius: 50%;
  background: #fde4e6;
  display: grid; place-items: center;
}
.niko-bild img { width: 76px; height: 76px; }
.niko-text { flex: 1 1 auto; min-width: 0; }
.niko-kennung {
  display: inline-block;
  padding: 2px 12px;
  border-radius: 999px;
  background: #1e8a4c;
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .02em;
}
.niko-titel { margin: 8px 0 4px; font-size: clamp(1.3rem, 2.4vw, 1.7rem); color: var(--text-strong); line-height: 1.2; }
.niko-satz { margin: 0; color: var(--text); }
.niko-aktionen { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 14px; }
.niko-aktionen .btn { padding: 10px 20px; }
.niko-link { color: var(--text-strong); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.niko-link:hover { color: var(--red); }

.niko-countdown {
  flex: 0 0 auto;
  text-align: center;
  min-width: 104px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--red-soft);
  color: var(--red-dark);
}
.niko-countdown strong { display: block; font-size: 2.2rem; line-height: 1; color: var(--red); }
.niko-countdown span { font-size: .85rem; font-weight: 700; }

.niko-zu {
  position: absolute; top: 10px; right: 12px;
  width: 34px; height: 34px;
  border: 0; border-radius: 50%;
  background: transparent; color: var(--muted);
  font-size: 1.5rem; line-height: 1; cursor: pointer;
}
.niko-zu:hover, .niko-zu:focus-visible { background: var(--bg); color: var(--text-strong); }

/* leichter Schneefall im Band */
.niko-flocke {
  position: absolute; top: -12px;
  color: #b9cbe0; font-size: 12px;
  pointer-events: none;
  animation: niko-schnee linear infinite;
}
@keyframes niko-schnee {
  to { transform: translateY(170px) rotate(160deg); opacity: .2; }
}

/* Rentierschlitten fliegt einmal über den Kopfbereich */
.niko-schlitten {
  position: absolute;
  top: 0; left: 0; /* top wird in nikolaus.js unter das Band gesetzt */
  width: 260px; height: 92px;
  z-index: 60;
  pointer-events: none;
  /* gleichmäßiger Flug von links nach rechts, leicht steigend */
  animation: niko-flug 7s linear forwards;
}
@keyframes niko-flug {
  from { transform: translate(-280px, 24px); }
  to   { transform: translate(calc(100vw + 40px), -24px); }
}
/* sanftes Auf und Ab, wie schwebend */
.niko-schweben {
  animation: niko-schweben 1.6s ease-in-out infinite alternate;
  transform-origin: 60% 50%;
}
@keyframes niko-schweben {
  from { transform: translateY(-6px) rotate(-2deg); }
  to   { transform: translateY(6px) rotate(1deg); }
}
/* Beine schwingen leicht um die Hüfte (Flughaltung bleibt erhalten) */
.niko-schlitten .bein { transform-box: fill-box; }
.niko-schlitten .bein.vorne { transform-origin: 0 0; animation: niko-vorne .6s ease-in-out infinite alternate; }
.niko-schlitten .bein.hinten { transform-origin: 100% 0; animation: niko-hinten .6s ease-in-out infinite alternate; }
@keyframes niko-vorne  { from { transform: rotate(-8deg); } to { transform: rotate(10deg); } }
@keyframes niko-hinten { from { transform: rotate(8deg); }  to { transform: rotate(-10deg); } }

@media (max-width: 760px) {
  .niko-inner { flex-wrap: wrap; padding: 18px 48px 18px 18px; gap: 14px; }
  .niko-bild { width: 64px; height: 64px; }
  .niko-bild img { width: 54px; height: 54px; }
  .niko-countdown { min-width: 0; padding: 6px 12px; }
  .niko-countdown strong { display: inline; font-size: 1.3rem; margin-right: 4px; }
  .niko-schlitten { width: 200px; height: 71px; }
  .niko-schlitten svg { width: 200px; height: 71px; }
}

@media (prefers-reduced-motion: reduce) {
  .niko-flocke, .niko-schlitten { display: none !important; }
}
