/* Leichte, lokale Bewegung für Adomat Immigration.
   Ohne die Klasse html.js-motion bleibt alles unverändert sichtbar.
   Bei prefers-reduced-motion gibt es keine Animation. */

html.js-motion #et-main-area main .et_pb_section.et_pb_section_0:not([class*="tb_footer"]) > .et_pb_row {
  /* nur der Hero-Inhalt, nicht das Hintergrundbild */
}

@media (prefers-reduced-motion: no-preference) {
  html.js-motion #et-main-area main .et_pb_section.et_pb_section_0:not([class*="tb_footer"]) > .et_pb_row {
    animation: adomat-hero-in 0.5s ease both;
  }

  html.js-motion .adomat-reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  html.js-motion .adomat-reveal.adomat-visible {
    opacity: 1;
    transform: none;
  }

  a.et_pb_button {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
  }

  a.et_pb_button:hover,
  a.et_pb_button:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 30, 0.16);
  }

  #et-main-area .et_pb_blurb.et_clickable:not([class*="tb_footer"]),
  #et-main-area .et_pb_blurb.et_pb_with_border:not([class*="tb_footer"]),
  #et-main-area .et_pb_blog_grid .et_pb_post,
  #et-main-area .et_pb_image:not([class*="tb_footer"]) .et_pb_image_wrap {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  #et-main-area .et_pb_blurb.et_clickable:not([class*="tb_footer"]):hover,
  #et-main-area .et_pb_blurb.et_pb_with_border:not([class*="tb_footer"]):hover,
  #et-main-area .et_pb_blog_grid .et_pb_post:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 30, 0.1);
  }
}

@media (prefers-reduced-motion: reduce) {
  html.js-motion #et-main-area main .et_pb_section.et_pb_section_0:not([class*="tb_footer"]) > .et_pb_row,
  html.js-motion .adomat-reveal {
    animation: none;
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@keyframes adomat-hero-in {
  from {
    opacity: 0.15;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
