/* AlpenPuls Portal 3.3.9 - Nebel-Fix / klareres Regenbild */
:root{
  --ap-weather-brightness-override: var(--ap-weather-brightness, 1);
  --ap-weather-saturate-override: var(--ap-weather-saturate, 1);
  --ap-weather-contrast-override: var(--ap-weather-contrast, 1);
  --ap-weather-cloud-opacity-override: var(--ap-weather-cloud-opacity, 0);
  --ap-weather-fog-opacity-override: var(--ap-weather-fog-opacity, 0);
  --ap-weather-tint-override: var(--ap-weather-tint, rgba(0,0,0,0));
}

.scene-bg-frame .scene-bg{
  filter:
    brightness(var(--ap-weather-brightness-override))
    saturate(var(--ap-weather-saturate-override))
    contrast(var(--ap-weather-contrast-override)) !important;
}

.scene-weather-clouds{
  opacity: var(--ap-weather-cloud-opacity-override) !important;
}

.scene-weather-mist{
  opacity: var(--ap-weather-fog-opacity-override) !important;
}

body[data-weather-kind="rain"] .scene-weather-mist,
body[data-weather-kind="storm"] .scene-weather-mist,
body[data-weather-kind="snow"] .scene-weather-mist,
body[data-weather-kind="clear"] .scene-weather-mist,
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-ap-weather="rain"] .scene-weather-mist,
body[data-ap-weather="storm"] .scene-weather-mist,
body[data-ap-weather="snow"] .scene-weather-mist,
body[data-ap-weather="clear"] .scene-weather-mist,
body[data-ap-weather="partly-cloudy"] .scene-weather-mist,
body[data-ap-weather="cloudy"] .scene-weather-mist,
body[data-ap-weather="overcast"] .scene-weather-mist{
  opacity:0 !important;
  backdrop-filter:none !important;
}

body[data-weather-kind="fog"] .scene-weather-mist,
body[data-ap-weather="fog"] .scene-weather-mist{
  backdrop-filter: blur(6px);
}
