/*
 * sharie.ch – Fix for reload scroll + "blink" of Elementor interactions
 * WPCode: CSS snippet, location "Site Wide Header" (must be in <head>)
 *
 * 1) Reload scroll: Chrome's scroll anchoring moves the page a bit further
 *    down on every reload (≈ 50 px each). Turning it off keeps the page where it is.
 *
 * 2) Blink: elements with an Elementor interaction (fade / slide in) are visible
 *    until the script reaches them, then jump to invisible and fade in.
 *    This hides them from the start. The interaction makes them visible again.
 *    The selector also skips the one frame where Elementor hands over to the
 *    final style, so nothing flickers at the end of the fade.
 *
 *    NEW interaction? Add its element ID (Elementor: element → ID shown in the
 *    navigator / data-id) to the list below. Not for the logo sliders (marquee-track:
 *    31414664, 71f41d4d, 221d1692): they must stay visible.
 */

html { overflow-anchor: none; }

@media (prefers-reduced-motion: no-preference) {
  body:not(.elementor-editor-active) :is(
    /* Start (1418) */
    [data-interaction-id="3e42f3fd"],  /* hero image (load, fade) */
    [data-interaction-id="7f2a3eac"],  /* scroll-in slide up */
    [data-interaction-id="7548efa9"],  /* scroll-in slide up */
    [data-interaction-id="3b86315a"],  /* scroll-in fade */
    [data-interaction-id="42396b6b"],  /* scroll-in slide up */
    [data-interaction-id="ed24410"],   /* scroll-in fade */
    /* Sprecherin (1983) */
    [data-interaction-id="165e5fc7"],  /* load, fade */
    [data-interaction-id="270ca6f"],   /* scroll-in slide up */
    [data-interaction-id="79b031e5"],  /* scroll-in slide from right */
    [data-interaction-id="2f19d7e5"],  /* scroll-in fade */
    [data-interaction-id="237c86b5"],  /* FAQ, scroll-in slide up */
    /* Video (2080) */
    [data-interaction-id="48bd8226"],  /* scroll-in slide up */
    [data-interaction-id="3d2809c3"],  /* scroll-in slide up */
    [data-interaction-id="3aeb1f59"],  /* scroll-in fade */
    /* Digital Storytelling (1426) */
    [data-interaction-id="19fba81b"],  /* load, fade */
    [data-interaction-id="7844e65a"],  /* scroll-in slide up */
    [data-interaction-id="10a0127b"],  /* scroll-in slide up */
    [data-interaction-id="49179806"],  /* scroll-in slide up */
    /* Über mich (1428) */
    [data-interaction-id="64a3c608"],  /* scroll-in slide up */
    [data-interaction-id="29cf4ae2"],  /* scroll-in slide up */
    /* Kontakt (2129) */
    [data-interaction-id="595b05aa"],  /* load, fade */
    [data-interaction-id="5e317d91"]   /* scroll-in slide up */
  ):is(
    :not([style]),
    [style*="transition"]:not([style*="opacity"]):not([style*="transform"])
  ) {
    opacity: 0;
  }
}
