/* IvHa Motion: Lenis Smooth Scrolling, Scroll-Reveal, Scroll-to-top */

/* Lenis */
html.lenis,
html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-scrolling iframe { pointer-events: none; }

/* Scroll-Reveal: nur Seiteninhalt, nicht Header/Footer, nicht der erste Abschnitt (Hero) */
.ivh-motion [data-elementor-type="wp-page"] > .e-con:not(:first-child) :is(
  .elementor-widget-heading,
  .elementor-widget-text-editor,
  .elementor-widget-icon-list,
  .elementor-widget-button,
  .elementor-widget-icon-box,
  .elementor-widget-form,
  .elementor-accordion-item
) {
  transition:
    opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}
.ivh-motion [data-elementor-type="wp-page"] > .e-con:not(:first-child) :is(
  .elementor-widget-heading,
  .elementor-widget-text-editor,
  .elementor-widget-icon-list,
  .elementor-widget-button,
  .elementor-widget-icon-box,
  .elementor-widget-form,
  .elementor-accordion-item
):not(.ivh-in) {
  opacity: 0;
  transform: translate3d(0, 26px, 0) scale(0.98);
}

/* Bilder: Fade + Zoom-in */
.ivh-motion [data-elementor-type="wp-page"] > .e-con:not(:first-child) .elementor-widget-image {
  transition:
    opacity 1s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.ivh-motion [data-elementor-type="wp-page"] > .e-con:not(:first-child) .elementor-widget-image:not(.ivh-in) {
  opacity: 0;
  transform: scale(0.92);
}

/* Karten-Hover: leichtes Anheben (Widgets erst nach dem Einblenden, Container sofort) */
.e-con.ivh-card,
html:not(.ivh-motion) .elementor-widget.ivh-card,
.elementor-widget.ivh-card.ivh-done {
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1) !important;
}
@media (hover: hover) {
  .e-con.ivh-card:hover,
  html:not(.ivh-motion) .elementor-widget.ivh-card:hover,
  .elementor-widget.ivh-card.ivh-done:hover {
    transform: translate3d(0, -4px, 0);
    box-shadow: 0 18px 40px -14px rgba(27, 27, 27, 0.16);
  }
}

/* Scroll-to-top */
.ivh-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 999;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background-color: var(--e-global-color-primary, #009640);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, 16px, 0);
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s, background-color 0.25s ease;
}
.ivh-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.ivh-top:hover { background-color: var(--e-global-color-accent, #00B64D); }
.ivh-top:focus-visible { outline: 2px solid #1B1B1B; outline-offset: 3px; }
.ivh-top__icon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.25s ease;
}
.ivh-top:hover .ivh-top__icon { transform: translate3d(0, -2px, 0); }
.ivh-top__ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  pointer-events: none;
}
.ivh-top__ring circle {
  fill: none;
  stroke: rgba(255, 255, 255, 0.6);
  stroke-width: 2;
  stroke-linecap: round;
}
@media (max-width: 767px) {
  .ivh-top { right: 16px; bottom: 16px; width: 46px; height: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  .ivh-top, .ivh-top__icon { transition: none; }
}

/* ivh-acc-svg */ .elementor-accordion .elementor-accordion-icon svg{width:18px !important;height:18px !important;color:#009640}.elementor-accordion .elementor-accordion-icon svg path{stroke-width:2}.elementor-accordion .elementor-tab-title.elementor-active .elementor-accordion-icon svg{color:#fff !important}
/* ivh-top-fix */ body .ivh-top{border-radius:50% !important;padding:0 !important;border:0 !important;box-shadow:0 10px 24px -10px rgba(0,150,64,.55)}