/* Saison-Modi: Leiste unter dem Header, Schneekanten und Effekt-Ebene.
   Farben kommen aus dem Design-System (jd-v2.css), damit hell/dunkel passen. */

/* --- Adventskalender-/Saison-Banner unter dem Header --- */
.season-bar {
  position: relative;
  z-index: 49;
  padding: 12px 0 10px;
  background:
    radial-gradient(120% 200% at 8% 0%, rgba(94, 231, 223, .16), rgba(94, 231, 223, 0) 62%),
    linear-gradient(100deg, rgba(47, 123, 246, .22), rgba(255, 209, 102, .1) 62%, rgba(94, 231, 223, .16));
  border-bottom: 1px solid var(--border);
}
.season-bar-inner {
  display: flex;
  align-items: center;
  gap: 10px;
}
.season-bar-link {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 9px 12px 9px 10px;
  border: 1px solid rgba(94, 231, 223, .26);
  border-radius: 16px;
  background: linear-gradient(120deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015)), var(--surface);
  color: var(--text);
  box-shadow: 0 10px 26px rgba(0, 25, 60, .28), inset 0 1px 0 rgba(255, 255, 255, .06);
  text-decoration: none;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.season-bar-link:hover {
  border-color: var(--accent);
  box-shadow: 0 12px 30px rgba(0, 25, 60, .34), inset 0 1px 0 rgba(255, 255, 255, .08);
  text-decoration: none;
  transform: translateY(-1px);
}
.season-bar-ico {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: var(--grad-soft);
  font-size: 21px;
  line-height: 1;
}
.season-bar-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.season-bar-label {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}
.season-bar-note { color: var(--muted); font-size: 13px; font-weight: 400; }
.season-bar-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  padding: 8px 15px;
  border-radius: 999px;
  background: var(--grad);
  color: var(--on-grad);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(94, 231, 223, .22);
}
.season-bar-arrow { flex: none; }
.season-door {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  height: 26px;
  flex: none;
  padding: 0 9px;
  border-radius: 8px;
  background: linear-gradient(135deg, #ffd166, #ff9f43);
  color: #3a1d00;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .01em;
  white-space: nowrap;
}
.season-bar-close {
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.season-bar-close:hover { color: var(--text); border-color: var(--accent); }
:root[data-theme="light"] .season-bar-link {
  border-color: var(--border);
  background: var(--surface);
  box-shadow: 0 10px 26px rgba(10, 60, 110, .1);
}
:root[data-theme="light"] .season-bar { background: var(--grad-soft); }

/* --- Effekt-Ebene (Canvas, keine Klicks) --- */
.season-layer {
  position: fixed;
  inset: 0;
  z-index: 46;
  pointer-events: none;
  overflow: hidden;
}
.season-layer canvas { display: block; width: 100%; height: 100%; }

/* --- Schnee liegt auf allen Karten und Bloecken (Kappe mit Tropfen) --- */
/* Sicherheitsnetz: Bloecke, die kein .card sind, brauchen einen Bezugsrahmen. */
html[data-season-snow="1"] :is(.ptile, .app-card, .contact-card, .contact-header, .support-card, .fq-card, .member-card, .team-header, .wiki-card, .wiki-header, .about-header, .values-card, .value-item, .cta-section, .tile, .panel, .info-card, .service-card, .stat-card, .blog-card, .about-card, .hero-card, .cta) {
  position: relative;
}
html[data-season-snow="1"] :is(.card, .ptile, .app-card, .contact-card, .contact-header, .support-card, .fq-card, .member-card, .team-header, .wiki-card, .wiki-header, .about-header, .values-card, .value-item, .cta-section, .tile, .panel, .info-card, .service-card, .stat-card, .blog-card, .about-card, .hero-card, .product-card, .svc-card, .cta)::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 12px;
  pointer-events: none;
  z-index: 2;
  border-radius: calc(var(--radius) - 2px) calc(var(--radius) - 2px) 0 0;
  background-image:
    radial-gradient(ellipse 5px 10px at 10px 0, #fff 96%, rgba(255, 255, 255, 0) 100%),
    radial-gradient(ellipse 3px 6px at 22px 0, #fff 96%, rgba(255, 255, 255, 0) 100%),
    radial-gradient(ellipse 4px 8px at 33px 0, #fff 96%, rgba(255, 255, 255, 0) 100%),
    linear-gradient(#fff, #fff);
  /* Lange, schmale Tropfen in unterschiedlichen Mustern - kein Zackenrand. */
  background-size: 43px 12px, 67px 12px, 31px 12px, 100% 3px;
  background-repeat: repeat-x, repeat-x, repeat-x, no-repeat;
  background-position: 0 0, 0 0, 0 0, 0 0;
  opacity: .95;
}
html[data-season-snow="1"] .product-card .product-media .badges { z-index: 3; }
:root[data-theme="light"][data-season-snow="1"] :is(.card, .ptile, .app-card, .contact-card, .contact-header, .support-card, .fq-card, .member-card, .team-header, .wiki-card, .wiki-header, .about-header, .values-card, .value-item, .cta-section, .tile, .panel, .info-card, .service-card, .stat-card, .blog-card, .about-card, .hero-card, .product-card, .svc-card, .cta)::after {
  background-image:
    radial-gradient(ellipse 5px 10px at 10px 0, #fbfdff 96%, rgba(251, 253, 255, 0) 100%),
    radial-gradient(ellipse 3px 6px at 22px 0, #fbfdff 96%, rgba(251, 253, 255, 0) 100%),
    radial-gradient(ellipse 4px 8px at 33px 0, #fbfdff 96%, rgba(251, 253, 255, 0) 100%),
    linear-gradient(#fbfdff, #fbfdff);
  filter: drop-shadow(0 1px 1px rgba(70, 120, 170, .3));
}

/* --- Schnee liegt auf Kopf- und Fußbereich --- */
html[data-season-snow="1"] .site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -11px;
  height: 14px;
  pointer-events: none;
  z-index: 1;
  background-image:
    radial-gradient(ellipse 7px 13px at 10px 0, rgba(255, 255, 255, .95) 96%, rgba(255, 255, 255, 0) 100%),
    radial-gradient(ellipse 5px 8px at 23px 0, rgba(255, 255, 255, .9) 96%, rgba(255, 255, 255, 0) 100%),
    radial-gradient(ellipse 6px 11px at 35px 0, rgba(255, 255, 255, .92) 96%, rgba(255, 255, 255, 0) 100%),
    linear-gradient(rgba(255, 255, 255, .95), rgba(255, 255, 255, .95));
  /* Unterschiedliche Musterlaengen halten die Schneekante unregelmaessig. */
  background-size: 47px 14px, 71px 14px, 37px 14px, 100% 3px;
  background-repeat: repeat-x, repeat-x, repeat-x, no-repeat;
  background-position: 0 0, 0 0, 0 0, 0 0;
  opacity: .95;
}
html[data-season-snow="1"] .site-footer { position: relative; }
html[data-season-snow="1"] .site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -12px;
  height: 14px;
  pointer-events: none;
  background-image:
    radial-gradient(ellipse 5px 9px at 12px 0, rgba(255, 255, 255, .9) 96%, rgba(255, 255, 255, 0) 100%),
    radial-gradient(ellipse 3px 6px at 30px 0, rgba(255, 255, 255, .85) 96%, rgba(255, 255, 255, 0) 100%),
    radial-gradient(ellipse 4px 7px at 44px 0, rgba(255, 255, 255, .88) 96%, rgba(255, 255, 255, 0) 100%);
  background-size: 43px 14px, 67px 14px, 31px 14px;
  background-repeat: repeat-x, repeat-x, repeat-x;
  opacity: .85;
}
:root[data-theme="light"][data-season-snow="1"] .site-header::after,
:root[data-theme="light"][data-season-snow="1"] .site-footer::before {
  filter: drop-shadow(0 1px 2px rgba(60, 110, 160, .25));
}

/* --- Versteckte Motive (Ostern, Halloween ...) --- */
.season-hidden {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  z-index: 45;
  pointer-events: none;
}
.season-hidden__mark {
  position: absolute;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  font-size: 19px;
  line-height: 1;
  opacity: .6;
  cursor: pointer;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
  transition: opacity .2s, filter .2s;
}
.season-hidden__mark:hover,
.season-hidden__mark:focus-visible {
  opacity: 1;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .4));
}
.season-hidden__mark:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.season-hidden__mark.is-found {
  opacity: 1;
  cursor: default;
  filter: drop-shadow(0 0 7px rgba(255, 209, 102, .85));
}
.season-hidden__mark.is-found::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid rgba(255, 209, 102, .85);
  animation: season-found-pop .4s ease-out;
}
@keyframes season-found-pop {
  from { transform: scale(.35); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.season-found {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 60;
  max-width: calc(100% - 32px);
  padding: 9px 15px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .3);
}
@media (pointer: coarse) {
  .season-hidden__mark { width: 36px; height: 36px; font-size: 22px; }
}

@media (max-width: 720px) {
  .season-bar { padding: 10px 0 8px; }
  .season-bar-inner { gap: 8px; }
  .season-bar-link { gap: 10px; padding: 8px 10px; border-radius: 14px; }
  .season-bar-ico { width: 34px; height: 34px; font-size: 18px; border-radius: 10px; }
  .season-bar-label { font-size: 14px; }
  .season-bar-note { display: none; }
  .season-bar-cta { padding: 7px 12px; font-size: 13px; }
}
@media (max-width: 520px) {
  /* Auf schmalen Handys bleibt nur der Pfeil im Kreis - die ganze Karte ist klickbar. */
  .season-bar-cta {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
  }
  .season-bar-cta-label { display: none; }
  .season-bar-label {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}
@media (prefers-reduced-motion: reduce) {
  .season-layer { display: none; }
  .season-bar-link { transition: none; }
  .season-hidden__mark.is-found::after { animation: none; }
}
