/* ── Seizoensthema (hero) ────────────────────────────────────────────────────────
   Wordt aangestuurd vanuit het beheerportaal (Instellingen > Seizoensthema).
   Markup: <section class="hero" data-season="winter"> met een .hero-fx vol <i>-deeltjes. */

/* Lichte kleurtint over de hero per seizoen */
.hero[data-season="winter"] { background: radial-gradient(ellipse 85% 65% at 60% 50%, rgba(110,150,200,.10) 0%, transparent 72%); }
.hero[data-season="spring"] { background: radial-gradient(ellipse 85% 65% at 60% 50%, rgba(240,150,180,.09) 0%, transparent 72%); }
.hero[data-season="summer"] { background: radial-gradient(ellipse 85% 65% at 60% 50%, rgba(245,185,60,.12) 0%, transparent 72%); }
.hero[data-season="autumn"] { background: radial-gradient(ellipse 85% 65% at 60% 50%, rgba(200,110,30,.09) 0%, transparent 72%); }

/* Deeltjes */
.hero-fx {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  container-type: size;
}
.hero-fx i {
  position: absolute;
  top: -40px;
  left: var(--x);
  width: var(--s);
  height: var(--s);
  opacity: var(--o);
  background: center / contain no-repeat;
  will-change: transform;
}
.hero[data-season="summer"] .hero-fx i { top: auto; bottom: -40px; }
.hero-fx[data-season="winter"] i.v1 { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg stroke='%239DBBD8' stroke-width='1.6' stroke-linecap='round' fill='none'%3E%3Cpath d='M12 2v20M3.3 7l17.4 10M3.3 17L20.7 7'/%3E%3Cpath d='M9.3 4.4L12 7l2.7-2.6M9.3 19.6L12 17l2.7 2.6M4.6 10.3l3.5.9-.9 3.4M19.4 13.7l-3.5-.9.9-3.4M4.6 13.7l3.5-.9-.9-3.4M19.4 10.3l-3.5.9.9 3.4'/%3E%3C/g%3E%3C/svg%3E"); }
.hero-fx[data-season="winter"] i.v2 { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='6.5' fill='%23CFE0EF' fill-opacity='1'/%3E%3C/svg%3E"); }
.hero-fx[data-season="winter"] i.v3 { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg stroke='%23B7CFE4' stroke-width='1.6' stroke-linecap='round' fill='none'%3E%3Cpath d='M12 2v20M3.3 7l17.4 10M3.3 17L20.7 7'/%3E%3Cpath d='M9.3 4.4L12 7l2.7-2.6M9.3 19.6L12 17l2.7 2.6M4.6 10.3l3.5.9-.9 3.4M19.4 13.7l-3.5-.9.9-3.4M4.6 13.7l3.5-.9-.9-3.4M19.4 10.3l-3.5.9.9 3.4'/%3E%3C/g%3E%3C/svg%3E"); }
.hero-fx[data-season="spring"] i.v1 { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.5C19 8 19 16 12 22.5 5 16 5 8 12 1.5Z' fill='%23F4B3C7'/%3E%3C/svg%3E"); }
.hero-fx[data-season="spring"] i.v2 { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.5C19 8 19 16 12 22.5 5 16 5 8 12 1.5Z' fill='%23FAD9E3'/%3E%3C/svg%3E"); }
.hero-fx[data-season="spring"] i.v3 { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='%23F7C5D3'%3E%3Ccircle cx='12' cy='6' r='4.4'/%3E%3Ccircle cx='18' cy='10.4' r='4.4'/%3E%3Ccircle cx='15.7' cy='17.6' r='4.4'/%3E%3Ccircle cx='8.3' cy='17.6' r='4.4'/%3E%3Ccircle cx='6' cy='10.4' r='4.4'/%3E%3C/g%3E%3Ccircle cx='12' cy='12' r='2.6' fill='%23F4C14E'/%3E%3C/svg%3E"); }
.hero-fx[data-season="summer"] i.v1 { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1L14.6 9.4 23 12l-8.4 2.6L12 23l-2.6-8.4L1 12l8.4-2.6Z' fill='%23F4B13A'/%3E%3C/svg%3E"); }
.hero-fx[data-season="summer"] i.v2 { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='6.5' fill='%23FBD58A' fill-opacity='.7'/%3E%3C/svg%3E"); }
.hero-fx[data-season="summer"] i.v3 { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1L14.6 9.4 23 12l-8.4 2.6L12 23l-2.6-8.4L1 12l8.4-2.6Z' fill='%23F7C86B'/%3E%3C/svg%3E"); }
.hero-fx[data-season="autumn"] i.v1 { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C16.5 6 19.5 9.5 19.5 13.5 19.5 18.2 15.8 21 12 22 8.2 21 4.5 18.2 4.5 13.5 4.5 9.5 7.5 6 12 2Z' fill='%23D9731F'/%3E%3Cpath d='M12 22V9M12 17l3.4-3M12 13.5l-3.2-2.6' stroke='rgba%280,0,0,.22%29' stroke-width='1' stroke-linecap='round' fill='none'/%3E%3C/svg%3E"); }
.hero-fx[data-season="autumn"] i.v2 { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C16.5 6 19.5 9.5 19.5 13.5 19.5 18.2 15.8 21 12 22 8.2 21 4.5 18.2 4.5 13.5 4.5 9.5 7.5 6 12 2Z' fill='%23B5471B'/%3E%3Cpath d='M12 22V9M12 17l3.4-3M12 13.5l-3.2-2.6' stroke='rgba%280,0,0,.22%29' stroke-width='1' stroke-linecap='round' fill='none'/%3E%3C/svg%3E"); }
.hero-fx[data-season="autumn"] i.v3 { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C16.5 6 19.5 9.5 19.5 13.5 19.5 18.2 15.8 21 12 22 8.2 21 4.5 18.2 4.5 13.5 4.5 9.5 7.5 6 12 2Z' fill='%23E3A53B'/%3E%3Cpath d='M12 22V9M12 17l3.4-3M12 13.5l-3.2-2.6' stroke='rgba%280,0,0,.22%29' stroke-width='1' stroke-linecap='round' fill='none'/%3E%3C/svg%3E"); }

/* Beweging: alleen als de bezoeker dat prettig vindt */
@media (prefers-reduced-motion: no-preference) {
  .hero-fx i { animation: fx-fall var(--t) linear var(--d) infinite; }
  .hero-fx[data-season="summer"] i { animation-name: fx-rise; }
  .hero-fx[data-season="spring"] i,
  .hero-fx[data-season="autumn"] i { animation-timing-function: ease-in-out; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-fx { display: none; }
}

@keyframes fx-fall {
  0%   { transform: translate3d(0, 0, 0) rotate(0deg); }
  50%  { transform: translate3d(var(--dx), 55cqh, 0) rotate(var(--r)); }
  100% { transform: translate3d(calc(var(--dx) * -0.6), calc(100cqh + 80px), 0) rotate(calc(var(--r) * 2)); }
}
@keyframes fx-rise {
  0%   { transform: translate3d(0, 0, 0) scale(.8); opacity: 0; }
  15%  { opacity: var(--o); }
  100% { transform: translate3d(var(--dx), calc(-100cqh - 80px), 0) scale(1.15); opacity: 0; }
}
/* Oudere browsers zonder container-eenheden: val over de hoogte van het scherm */
@supports not (height: 1cqh) {
  @keyframes fx-fall {
    0%   { transform: translate3d(0, 0, 0) rotate(0deg); }
    100% { transform: translate3d(var(--dx), 110vh, 0) rotate(calc(var(--r) * 2)); }
  }
  @keyframes fx-rise {
    0%   { transform: translate3d(0, 0, 0); opacity: 0; }
    100% { transform: translate3d(var(--dx), -110vh, 0); opacity: 0; }
  }
}

/* Op telefoons minder deeltjes */
@media (max-width: 640px) {
  .hero-fx i:nth-child(n+13) { display: none; }
}
