/* css/ft-season.css — Saison-Engine (Welle 4806)
 * Kompaktes Saison-Etikett (Gruß / Countdown) + Deko-Leinwand. Eigenständig gefärbt (dunkles Glas mit
 * Akzent aus --ft-season-accent), damit es auf hellem UND dunklem Seitengrund gleich gut lesbar ist und
 * nicht von den Theme-Schaltern der Seite abhängt. */

.ft-season-chip{
  --_a: var(--ft-season-accent, #1FC8D8);
  --_a2: var(--ft-season-accent2, #00A0C6);
  position:fixed; left:16px; bottom:16px; z-index:1035;
  max-width:min(360px, calc(100vw - 32px));
  display:grid; grid-template-columns:1fr auto; align-items:center;
  color:#f4f7fa; background:rgba(16,20,28,.92);
  border:1px solid color-mix(in srgb, var(--_a) 55%, transparent);
  border-radius:18px;
  box-shadow:0 10px 30px rgba(0,0,0,.28), 0 0 0 4px color-mix(in srgb, var(--_a) 14%, transparent);
  -webkit-backdrop-filter:blur(10px); backdrop-filter:blur(10px);
  font-family:inherit; line-height:1.35;
  transform:translateY(12px); opacity:0;
  transition:transform .35s cubic-bezier(.2,.8,.2,1), opacity .35s ease;
}
.ft-season-chip[hidden]{display:none}
.ft-season-chip.is-in{transform:none; opacity:1}

.ft-season-chip__main{
  appearance:none; border:0; background:transparent; color:inherit; font:inherit; text-align:left; cursor:pointer;
  display:flex; align-items:center; gap:10px; min-height:44px; padding:8px 6px 8px 12px; border-radius:18px 0 0 18px;
  min-width:0;
}
.ft-season-chip__emoji{
  flex:none; width:30px; height:30px; display:grid; place-items:center; font-size:17px; border-radius:50%;
  background:linear-gradient(135deg, var(--_a), var(--_a2));
}
.ft-season-chip__line{font-size:.9rem; font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-variant-numeric:tabular-nums}
.ft-season-chip__close{
  appearance:none; border:0; background:transparent; color:#c3ccd6; cursor:pointer; /* W5073: >= 7:1 auf dem Glas */
  width:40px; height:44px; font-size:20px; line-height:1; border-radius:0 18px 18px 0;
}
.ft-season-chip__close:hover{color:#fff}
.ft-season-chip__main:focus-visible,.ft-season-chip__close:focus-visible{outline:3px solid #fff; outline-offset:-3px; box-shadow:inset 0 0 0 5px #10141c}
.ft-season-card__fx input:focus-visible{outline:3px solid #fff; outline-offset:2px}

.ft-season-card{grid-column:1 / -1; padding:4px 14px 14px; border-top:1px solid rgba(255,255,255,.1)}
.ft-season-card[hidden]{display:none}
.ft-season-card__title{margin:10px 0 2px; font-size:1rem; font-weight:700; text-wrap:balance}
.ft-season-card__text{margin:2px 0 0; font-size:.84rem; color:#c3ccd6; text-wrap:pretty}
.ft-season-cd{display:grid; grid-template-columns:repeat(4,1fr); gap:6px; margin:12px 0 8px}
.ft-season-cd__cell{
  display:flex; flex-direction:column; align-items:center; padding:8px 2px 6px; border-radius:12px;
  background:rgba(255,255,255,.07); border:1px solid rgba(255,255,255,.08);
}
.ft-season-cd__cell b{font-size:1.25rem; font-weight:800; font-variant-numeric:tabular-nums; color:#fff}
.ft-season-cd__cell i{font-style:normal; font-size:.66rem; letter-spacing:.07em; text-transform:uppercase; color:#c3ccd6}
.ft-season-card__fx{display:flex; align-items:center; gap:8px; margin:12px 0 0; font-size:.8rem; color:#c3ccd6; cursor:pointer}
.ft-season-card__fx input{accent-color:var(--_a); width:16px; height:16px}

/* Mobil: über der unteren Navigation schweben */
@media (max-width: 991.98px){
  .ft-season-chip{left:12px; bottom:calc(76px + env(safe-area-inset-bottom, 0px)); max-width:calc(100vw - 24px)}
}

/* Deko-Leinwand: reine Zierde, fängt nie Eingaben ab */
.ft-season-fx{position:fixed; inset:0; width:100%; height:100%; pointer-events:none; z-index:1030; transition:opacity 1.2s ease}
.ft-season-fx.is-out{opacity:0}

/* ─────────────────────────────────────────────────────────────────────────────────────────────
 * FESTBAND im Standard-Header (Welle 4810)
 * Jedes aktive Ereignis schmückt den EINEN Haupt-Header (includes/header.php) — per CSS, automatisch.
 * Dafür setzt season_render.php  html[data-ft-theme="<familie>"]  +  --ft-season-accent/-accent2/-emoji.
 * Das ersetzt die alten Header-Kopien als Normalfall: kein zweiter Header, der vom Hauptstand abweicht.
 * Das Band sitzt als ::after unter der Navigationsleiste und fängt keine Eingaben ab.
 * ───────────────────────────────────────────────────────────────────────────────────────────── */
html[data-ft-theme] .navbar-custom:not(.fixed-top){position:relative}
html[data-ft-theme] .navbar-custom::after{
  content:""; position:absolute; left:0; right:0; top:100%; height:4px; pointer-events:none;
  background:linear-gradient(90deg, var(--ft-season-accent), var(--ft-season-accent2), var(--ft-season-accent));
}
/* kleines Ereignis-Emoji am Logo */
html[data-ft-theme] .navbar-custom .navbar-brand::after{
  content:var(--ft-season-emoji, ""); content:var(--ft-season-emoji, "") / ""; margin-left:.35rem; font-size:.85em; line-height:1; vertical-align:middle;
}

/* Weihnachten / Advent / Nikolaus: Lichterkette */
html[data-ft-theme="xmas"] .navbar-custom::after{
  height:11px;
  background:
    radial-gradient(circle at 12px 6px, #ff5a5a 0 3.4px, transparent 4px),
    radial-gradient(circle at 36px 7px, #ffd45a 0 3.4px, transparent 4px),
    radial-gradient(circle at 60px 6px, #58d68a 0 3.4px, transparent 4px),
    radial-gradient(circle at 84px 7px, #5aa9ff 0 3.4px, transparent 4px),
    linear-gradient(#2f6b45, #2f6b45) 0 1px / 100% 1.5px no-repeat;
  background-size:96px 11px, 96px 11px, 96px 11px, 96px 11px, 100% 1.5px;
  filter:drop-shadow(0 0 3px rgba(255,210,120,.55));
  animation:ftSeasonTwinkle 2.4s ease-in-out infinite;
}
@keyframes ftSeasonTwinkle{0%,100%{opacity:1}50%{opacity:.62}}

/* Silvester / Neujahr: wanderndes Gold */
html[data-ft-theme="newyear"] .navbar-custom::after{
  background:linear-gradient(90deg,#8a6a12,#ffe9a3 25%,#c9a227 50%,#fff3c4 75%,#8a6a12);
  background-size:220% 100%; animation:ftSeasonSlide 6s linear infinite;
}
@keyframes ftSeasonSlide{to{background-position:-220% 0}}

/* Halloween: Kürbis-Orange / Nacht-Violett */
html[data-ft-theme="halloween"] .navbar-custom::after{
  height:5px; background:repeating-linear-gradient(135deg,#f97316 0 12px,#3b1466 12px 24px);
}
/* Karneval + Feier-Anlässe: Konfetti-Streifen */
html[data-ft-theme="carnival"] .navbar-custom::after,
html[data-ft-theme="party"] .navbar-custom::after{
  height:5px; background:repeating-linear-gradient(90deg,#ec4899 0 16px,#f6c445 16px 32px,#22c55e 32px 48px,#3b82f6 48px 64px,#a855f7 64px 80px);
}
/* Ostern + Frühling: Pastell-Tupfen */
html[data-ft-theme="easter"] .navbar-custom::after,
html[data-ft-theme="spring"] .navbar-custom::after{
  height:8px;
  background:
    radial-gradient(circle at 10px 4px,#f7a8c8 0 3px,transparent 3.6px),
    radial-gradient(circle at 30px 4px,#ffe08a 0 3px,transparent 3.6px),
    radial-gradient(circle at 50px 4px,#9be3a8 0 3px,transparent 3.6px),
    radial-gradient(circle at 70px 4px,#a8d4ff 0 3px,transparent 3.6px);
  background-size:80px 8px;
}
/* Valentinstag, Muttertag, Tag der Freundschaft: Herzchen-Band */
html[data-ft-theme="love"] .navbar-custom::after{
  height:10px;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='10' viewBox='0 0 28 10'%3E%3Cpath d='M14 9 9.4 4.6a2.6 2.6 0 0 1 3.7-3.7L14 1.8l.9-.9a2.6 2.6 0 0 1 3.7 3.7Z' fill='%23ff5c8a'/%3E%3C/svg%3E") repeat-x left center;
}
/* Herbst: Laubfarben · Winter: Eis */
html[data-ft-theme="autumn"] .navbar-custom::after{background:linear-gradient(90deg,#a8472a,#d9772b,#e9b949,#d9772b,#a8472a)}
html[data-ft-theme="winter"] .navbar-custom::after{background:linear-gradient(90deg,#6fb6e8,#e9f6ff,#6fb6e8)}
/* Nationale / europäische Tage */
html[data-ft-theme="flag-de"] .navbar-custom::after{height:6px;background:linear-gradient(180deg,#111 0 33.3%,#dd0000 33.3% 66.6%,#ffce00 66.6%)}
html[data-ft-theme="flag-eu"] .navbar-custom::after{
  height:8px;
  background:radial-gradient(circle at 12px 4px,#ffcc00 0 2.4px,transparent 3px) 0 0 / 24px 8px repeat-x, #003399;
}
/* Pride Month */
html[data-ft-theme="pride"] .navbar-custom::after{
  height:6px; background:linear-gradient(90deg,#e40303 0 16.6%,#ff8c00 16.6% 33.3%,#ffed00 33.3% 50%,#008026 50% 66.6%,#004dff 66.6% 83.3%,#750787 83.3%);
}
/* Sommer: Sonnen-Verlauf */
html[data-ft-theme="summer"] .navbar-custom::after{background:linear-gradient(90deg,#f6b21a,#ffd86b,#1FC8D8)}

/* ─────────────────────────────────────────────────────────────────────────────────────────────
 * ANIMIERTE HEADER-DEKO (Welle 4813)
 * Wenige, langsam treibende Zeichen im Kopfbereich — Laub im Herbst, Schnee im Winter, Blüten im
 * Frühling, Fledermäuse zu Halloween, Funkeln zu Silvester, Herzen zum Valentinstag. Reine Zierde:
 * fängt keine Eingaben ab, liegt nur über den obersten ~150 px, und verschwindet bei „Bewegung
 * reduzieren" sowie wenn der Besucher die Deko-Effekte für sich ausgeschaltet hat.
 * ───────────────────────────────────────────────────────────────────────────────────────────── */
.ft-season-deco{position:fixed; left:0; right:0; top:0; height:150px; overflow:hidden; pointer-events:none; z-index:1031;
  -webkit-mask-image:linear-gradient(#000 55%, transparent); mask-image:linear-gradient(#000 55%, transparent)}
.ft-season-deco span{position:absolute; left:var(--x); top:0; font-size:var(--s); line-height:1; opacity:0;
  color:#d7ecff; text-shadow:0 0 3px rgba(20,40,70,.35); will-change:transform,opacity;
  animation-duration:var(--d); animation-delay:var(--dl); animation-iteration-count:infinite; animation-timing-function:linear}
html[data-ft-fx-off] .ft-season-deco{display:none}
/* (Welle 5107, Ladezeit) Deko erst nach dem Laden + Leerlauf (ft-season.js setzt html.ft-fx-ready) — sanft eingeblendet,
 * damit die Dauer-Animation nicht mit dem ersten Seitenaufbau konkurriert. */
/* nur wenn Skripte laufen (ohne JS / alte Browser ohne scripting-Abfrage: Deko wie bisher sofort) */
@media (scripting: enabled){
  html:not(.ft-fx-ready) .ft-season-deco{display:none}
  html.ft-fx-ready .ft-season-deco{animation:ftDecoIn .9s ease-out both}
}
@keyframes ftDecoIn{from{opacity:0} to{opacity:1}}

/* fallen (Schnee, Laub, Blüten, Konfetti): von oben durch den Kopfbereich, mit leichtem Pendeln */
.ft-season-deco[data-motion="fall"] span{animation-name:ftDecoFall}
@keyframes ftDecoFall{
  0%{transform:translate3d(0,-24px,0) rotate(0deg); opacity:0}
  12%{opacity:.75}
  50%{transform:translate3d(18px,70px,0) rotate(140deg)}
  85%{opacity:.6}
  100%{transform:translate3d(-10px,160px,0) rotate(300deg); opacity:0}
}
/* fliegen (Fledermäuse): quer über den Kopfbereich mit Auf-und-Ab */
.ft-season-deco[data-motion="fly"] span{left:0; top:var(--y); animation-name:ftDecoFly; animation-timing-function:ease-in-out}
@keyframes ftDecoFly{
  0%{transform:translate3d(-8vw,0,0) scale(.9); opacity:0}
  8%{opacity:.8}
  25%{transform:translate3d(24vw,-14px,0) scale(1)}
  50%{transform:translate3d(52vw,10px,0) scale(.95)}
  75%{transform:translate3d(80vw,-10px,0) scale(1)}
  92%{opacity:.8}
  100%{transform:translate3d(108vw,4px,0) scale(.9); opacity:0}
}
/* funkeln (Silvester): an Ort und Stelle aufleuchten */
.ft-season-deco[data-motion="twinkle"] span{top:var(--y); color:#ffe9a3; animation-name:ftDecoTwinkle; animation-duration:calc(var(--d) / 4); animation-timing-function:ease-in-out}
@keyframes ftDecoTwinkle{0%,100%{transform:scale(.4) rotate(0deg); opacity:0} 50%{transform:scale(1.15) rotate(45deg); opacity:.95}}
/* steigen (Herzen): von unten im Kopfbereich nach oben */
.ft-season-deco[data-motion="rise"] span{top:auto; bottom:0; color:#ff5c8a; animation-name:ftDecoRise; animation-timing-function:ease-out}
@keyframes ftDecoRise{
  0%{transform:translate3d(0,30px,0) scale(.7); opacity:0}
  20%{opacity:.8}
  100%{transform:translate3d(12px,-150px,0) scale(1.05); opacity:0}
}
/* Sommer: warmes Sonnenlicht, das von rechts oben sanft atmet */
.ft-season-deco[data-motion="sun"]{-webkit-mask-image:none; mask-image:none}
.ft-season-deco[data-motion="sun"]::before{content:""; position:absolute; right:-60px; top:-90px; width:260px; height:260px; border-radius:50%;
  background:radial-gradient(circle, rgba(255,214,107,.55) 0, rgba(255,190,60,.22) 38%, transparent 70%);
  animation:ftDecoSun 7s ease-in-out infinite}
@keyframes ftDecoSun{0%,100%{transform:scale(1); opacity:.85} 50%{transform:scale(1.12); opacity:1}}

/* schmale Bildschirme: nur jedes zweite Zeichen */
@media (max-width:700px){ .ft-season-deco span:nth-child(even){display:none} }

/* Stille Tage: zurückhaltend, kein Emoji am Logo, keine Bewegung */
html[data-ft-theme="calm"] .navbar-custom::after{height:2px;background:rgba(139,143,163,.7)}
html[data-ft-theme="calm"] .navbar-custom .navbar-brand::after{content:none}

@media (prefers-reduced-motion: reduce){
  .ft-season-chip{transition:none; transform:none}
  .ft-season-fx{display:none}
  html[data-ft-theme] .navbar-custom::after{animation:none}
  .ft-season-deco{display:none}
}
/* Schalter „Bewegung aus“ der Barrierefreiheits-Leiste: Band-Animationen anhalten */
html.a11y-no-motion .navbar-custom::after, html.a11y-no-motion .ft-season-chip{animation:none !important; transition:none !important}
@media (forced-colors: active){ .ft-season-chip{border:2px solid CanvasText; background:Canvas; color:CanvasText} .ft-season-chip *{color:inherit} }
@media print{ .ft-season-chip,.ft-season-fx,.ft-season-deco{display:none !important} html[data-ft-theme] .navbar-custom::after{display:none} }
