/* AlpenPuls Portal 3.4.3 - Wettersteuerung synchron / Legacy-Overlay-Fix */

/* Alte CSS-Regen-/Schneestreifen aus frueheren Versionen komplett deaktivieren.
   Ab 3.4.3 kommen Niederschlagspartikel ausschliesslich aus dem Canvas. */
.scene-weather-precip::before,
.scene-weather-precip::after{
  content:none !important;
  display:none !important;
  opacity:0 !important;
  animation:none !important;
  background:none !important;
  background-image:none !important;
}

/* Wenn Live-Wetter AUS ist, darf kein Restzustand sichtbar bleiben. */
body[data-weather-effects="off"] .scene-weather,
body[data-weather-kind="neutral"] .scene-weather,
body[data-ap-weather="neutral"] .scene-weather{
  opacity:0 !important;
}

/* REGEN / GEWITTER / SCHNEE: nur Partikel, keinerlei Nebel-/Wolken-/Tint-Streifen. */
body[data-weather-kind="rain"] .scene-weather-tint,
body[data-weather-kind="rain"] .scene-weather-light,
body[data-weather-kind="rain"] .scene-weather-clouds,
body[data-weather-kind="rain"] .scene-weather-mist,
body[data-weather-kind="storm"] .scene-weather-tint,
body[data-weather-kind="storm"] .scene-weather-light,
body[data-weather-kind="storm"] .scene-weather-clouds,
body[data-weather-kind="storm"] .scene-weather-mist,
body[data-weather-kind="snow"] .scene-weather-tint,
body[data-weather-kind="snow"] .scene-weather-light,
body[data-weather-kind="snow"] .scene-weather-clouds,
body[data-weather-kind="snow"] .scene-weather-mist,
body[data-ap-weather="rain"] .scene-weather-tint,
body[data-ap-weather="rain"] .scene-weather-light,
body[data-ap-weather="rain"] .scene-weather-clouds,
body[data-ap-weather="rain"] .scene-weather-mist,
body[data-ap-weather="storm"] .scene-weather-tint,
body[data-ap-weather="storm"] .scene-weather-light,
body[data-ap-weather="storm"] .scene-weather-clouds,
body[data-ap-weather="storm"] .scene-weather-mist,
body[data-ap-weather="snow"] .scene-weather-tint,
body[data-ap-weather="snow"] .scene-weather-light,
body[data-ap-weather="snow"] .scene-weather-clouds,
body[data-ap-weather="snow"] .scene-weather-mist{
  opacity:0 !important;
  background:none !important;
  filter:none !important;
  backdrop-filter:none !important;
  animation:none !important;
}

body[data-weather-effects="on"][data-weather-kind="rain"] .scene-weather-precip,
body[data-weather-effects="on"][data-weather-kind="storm"] .scene-weather-precip,
body[data-weather-effects="on"][data-weather-kind="snow"] .scene-weather-precip{
  opacity:1 !important;
}

/* BEWOELKT: nur ruhige, fixe Zusatzwolken. Keine Bewegung, kein Nebel. */
body[data-weather-effects="on"][data-weather-kind="partly-cloudy"] .scene-weather-clouds,
body[data-weather-effects="on"][data-weather-kind="cloudy"] .scene-weather-clouds,
body[data-weather-effects="on"][data-weather-kind="overcast"] .scene-weather-clouds{
  display:block !important;
  animation:none !important;
  transform:none !important;
  filter:none !important;
  backdrop-filter:none !important;
  will-change:auto !important;
  background-position:center center !important;
}

body[data-weather-effects="on"][data-weather-kind="partly-cloudy"] .scene-weather-clouds{
  opacity:.10 !important;
}
body[data-weather-effects="on"][data-weather-kind="cloudy"] .scene-weather-clouds{
  opacity:.16 !important;
}
body[data-weather-effects="on"][data-weather-kind="overcast"] .scene-weather-clouds{
  opacity:.23 !important;
}

body[data-weather-kind="partly-cloudy"] .scene-weather-mist,
body[data-weather-kind="cloudy"] .scene-weather-mist,
body[data-weather-kind="overcast"] .scene-weather-mist,
body[data-weather-kind="partly-cloudy"] .scene-weather-tint,
body[data-weather-kind="cloudy"] .scene-weather-tint,
body[data-weather-kind="overcast"] .scene-weather-tint{
  opacity:0 !important;
  backdrop-filter:none !important;
}

.scene-weather-clouds::before,
.scene-weather-clouds::after{
  animation:none !important;
  transform:none !important;
}
