/* ============================================================
   EasyFertighaus — zusätzliche Animationen (additiv)
   Ergänzt style.css/site.js, ohne Karussell oder Menü anzufassen.
   ============================================================ */

/* ---- Sticky-Nav mit Scroll-Schatten ---- */
header.anim-nav { position: sticky; top: 0; z-index: 100; transition: box-shadow .3s ease, background .3s ease; }
header.anim-nav.scrolled { background: rgba(248,246,240,0.92); backdrop-filter: blur(10px); box-shadow: 0 6px 24px rgba(18,58,90,0.10); }

/* ---- Nav-Link Unterstrich ---- */
header .main-nav a:not([style*="background"]) { position: relative; }
header .main-nav a:not([style*="background"])::after {
  content: ""; position: absolute; left: 0; bottom: -4px;
  width: 0; height: 2px; background: #E35205; transition: width .25s ease;
}
header .main-nav a:not([style*="background"]):hover::after { width: 100%; }

/* ---- Karten & Kacheln: Hover-Lift ---- */
.anim-tile { transition: transform .3s ease, box-shadow .3s ease; }
.anim-tile:hover { transform: translateY(-6px); box-shadow: 0 18px 44px rgba(18,58,90,0.13); }

/* ---- CTA-Buttons: "Pop" beim Hover ---- */
.anim-cta { transition: transform .2s cubic-bezier(.34,1.56,.64,1), box-shadow .2s ease, filter .2s ease; will-change: transform; }
.anim-cta:hover { transform: scale(1.06); box-shadow: 0 12px 28px rgba(255,102,0,0.42); filter: brightness(1.03); }
.anim-cta:active { transform: scale(1.0); }

/* ---- Scroll-Reveal ---- */
.anim-on .anim-reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.anim-on .anim-reveal.is-visible { opacity: 1; transform: none; }

/* ---- Lade-Animation (Nav + Hero) ---- */
@keyframes animFadeDown { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
@keyframes animFadeUp   { from { opacity: 0; transform: translateY(26px);  } to { opacity: 1; transform: none; } }
@keyframes animFadeRight{ from { opacity: 0; transform: translateX(42px);  } to { opacity: 1; transform: none; } }
.anim-on header.anim-nav        { animation: animFadeDown .6s ease both; }
.anim-on #top > div:first-child { animation: animFadeUp   .8s ease .15s both; }
.anim-on #top > div:last-child  { animation: animFadeRight .9s ease .25s both; }

@media (prefers-reduced-motion: reduce) {
  .anim-on .anim-reveal { opacity: 1; transform: none; transition: none; }
  .anim-on header.anim-nav,
  .anim-on #top > div:first-child,
  .anim-on #top > div:last-child { animation: none; }
  .anim-tile:hover { transform: none; }
  .anim-cta:hover { transform: none; }
}
