/* Bewegte Bilder (LE_Motion) – nur aktiv, wenn das Skript html.le-motion gesetzt hat */

/* 1 Titelbild: langsamer Zoom wie eine Kamerafahrt, Tiefe beim Scrollen */
html.le-motion .le-hero{overflow:hidden}
html.le-motion .le-hero .wp-block-cover__image-background{animation:le-kenburns 26s ease-in-out infinite alternate;will-change:transform}
@keyframes le-kenburns{0%{transform:scale(1.04) translate(0,0)}100%{transform:scale(1.15) translate(-2%,-1.5%)}}

/* 2 Fotos (nur das Bild, nicht der Text): erscheinen beim Scrollen nacheinander,
   heben sich mit Schatten ab, zoomen und kippen mit der Maus */
html.le-motion .le-photo{display:block;width:fit-content;max-width:100%;overflow:hidden;position:relative;box-shadow:0 4px 16px rgba(0,0,0,.08);transition:transform .25s ease,box-shadow .25s ease}
html.le-motion .aligncenter>.le-photo,html.le-motion .aligncenter>a>.le-photo{margin-left:auto;margin-right:auto}
html.le-motion .le-photo>img{display:block;transition:transform .8s cubic-bezier(.2,.7,.2,1)}
html.le-motion .le-photo.is-hover{box-shadow:0 18px 40px rgba(0,0,0,.22)}
html.le-motion .le-photo.is-hover>img{transform:scale(1.08)}
html.le-motion .le-reveal{opacity:0;transform:translateY(40px) scale(.97);transition:opacity .8s ease,transform .8s cubic-bezier(.2,.7,.2,1)}
html.le-motion .le-reveal.is-in{opacity:1;transform:none}
/* nach dem Einblenden reagiert das Kippen schnell */
html.le-motion .le-reveal.is-done{transition:transform .25s ease,box-shadow .25s ease,opacity .8s ease}
/* Handy (kein Mauszeiger): Bilder „atmen“ deutlich, der Schatten atmet mit */
@media (hover:none){
	html.le-motion .le-photo>img{animation:le-breathe 6s ease-in-out infinite alternate}
	html.le-motion .le-photo.is-done{animation:le-breathe-shadow 6s ease-in-out infinite alternate}
}
@keyframes le-breathe{from{transform:scale(1)}to{transform:scale(1.12)}}
@keyframes le-breathe-shadow{from{box-shadow:0 4px 14px rgba(0,0,0,.10)}to{box-shadow:0 14px 32px rgba(0,0,0,.24)}}

@media (prefers-reduced-motion:reduce){
	html.le-motion .le-hero .wp-block-cover__image-background,html.le-motion .le-photo,html.le-motion .le-photo>img{animation:none!important}
	html.le-motion .le-reveal{opacity:1;transform:none}
}
@media print{html.le-motion .le-reveal{opacity:1!important;transform:none!important;box-shadow:none!important}}
