/* ===== Test-Version: dezente Animationen ===== */

/* 1) Linien-Haus im Hero */
.hero-solo .hero-grid{max-width:1180px;grid-template-columns:1.25fr .75fr;align-items:center}
.hero-house{width:100%!important;height:auto!important;aspect-ratio:400/330;max-width:400px;justify-self:end;overflow:visible}
.hero-house .ln{fill:none;stroke:var(--gold);stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;
  stroke-dasharray:1;stroke-dashoffset:1;animation:draw 1.4s cubic-bezier(.6,.1,.3,1) forwards;animation-delay:var(--d,0s)}
.hero-house .ln.thin{stroke-width:1.4;stroke:var(--sage)}
.hero-house .wall{fill:var(--sand);opacity:0;animation:fadein 1.2s ease forwards;animation-delay:2.6s}
.hero-house .glow{fill:var(--gold-l);opacity:0;animation:glow 1s ease forwards;animation-delay:var(--d,3.2s)}
.hero-house .cone{opacity:0;transform:translateY(-8px);transform-box:fill-box;animation:pop .9s cubic-bezier(.3,1.5,.5,1) forwards;animation-delay:3.6s}
@keyframes draw{to{stroke-dashoffset:0}}
@keyframes fadein{to{opacity:.55}}
@keyframes glow{to{opacity:.9}}
@keyframes pop{to{opacity:1;transform:none}}
@media (max-width:900px){.hero-solo .hero-grid{grid-template-columns:1fr}.hero-house{order:-1;justify-self:start;max-width:250px;margin:0 0 -22px -6px}}
@media (max-width:640px){.hero-house{max-width:210px}}

/* 2) Sanftes Einblenden beim Scrollen (nur wenn JS aktiv) */
.js-anim .reveal{opacity:0;transform:translateY(28px);transition:opacity .8s ease,transform .8s cubic-bezier(.2,.7,.2,1)}
.js-anim .reveal.is-in{opacity:1;transform:none}

/* 4) Langsamer Zoom auf Objekt- und Referenzfotos */
.obj-img{overflow:hidden}
.ref img,.obj-img img{transition:transform .9s cubic-bezier(.2,.7,.2,1)}
.js-anim .kb.is-in img{animation:kenburns 7s ease-out}
@keyframes kenburns{from{transform:scale(1.12)}to{transform:scale(1)}}

/* 5) Hover-Effekte */
.ref,.obj{transition:transform .35s ease,box-shadow .35s ease}
.ref:hover,.obj:hover{transform:translateY(-6px);box-shadow:var(--shadow)}
.ref:hover img,.obj:hover .obj-img img{transform:scale(1.05)}
.btn{transition:transform .2s ease,background .2s ease,color .2s ease}

/* Wer "Bewegung reduzieren" eingestellt hat, bekommt keine Animationen */
@media (prefers-reduced-motion:reduce){
  .hero-house .ln{animation:none;stroke-dashoffset:0}
  .hero-house .wall{animation:none;opacity:.55}
  .hero-house .glow{animation:none;opacity:.9}
  .hero-house .cone{animation:none;opacity:1;transform:none}
  .js-anim .reveal{opacity:1;transform:none;transition:none}
  .js-anim .kb.is-in img{animation:none}
  .ref,.obj,.ref img,.obj-img img{transition:none}
  .ref:hover,.obj:hover,.ref:hover img,.obj:hover .obj-img img{transform:none}
}

/* Druck/PDF: alles sichtbar, keine Animation */
@media print{
  .js-anim .reveal{opacity:1!important;transform:none!important}
  .hero-house .ln{animation:none!important;stroke-dashoffset:0!important}
  .hero-house .wall{animation:none!important;opacity:.55!important}
  .hero-house .glow{animation:none!important;opacity:.9!important}
  .hero-house .cone{animation:none!important;opacity:1!important;transform:none!important}
  .js-anim .kb.is-in img{animation:none!important}
}
