/* Herobild (gemeinsam fuer alle Seiten): Bild rechts, Text links,
   sanfter Zoom beim Laden, leichter Parallax beim Scrollen (hero.js).
   Tablet und Handy: Bild ruhig unter dem Text. */
.has-art{position:relative;overflow:hidden;text-align:left;
  min-height:clamp(520px,46vw,680px);display:flex;align-items:center}
.has-art .hero-art{position:absolute;inset:0;z-index:0;pointer-events:none}
.hero-art .ha-layer{position:absolute;bottom:0;right:-2%;height:114%;aspect-ratio:3/2;will-change:transform;
  -webkit-mask-image:linear-gradient(90deg,transparent 0%,rgba(0,0,0,.5) 14%,rgba(0,0,0,.5) 34%,#000 58%);mask-image:linear-gradient(90deg,transparent 0%,rgba(0,0,0,.5) 14%,rgba(0,0,0,.5) 34%,#000 58%)}
.hero-art img{position:absolute;inset:0;width:100%;height:100%;display:block;object-fit:cover;object-position:right bottom;
  transform-origin:75% 70%;animation:ha-zoom 2.8s cubic-bezier(.2,.6,.2,1) both}
@keyframes ha-zoom{from{transform:scale(1.07);opacity:0}25%{opacity:1}to{transform:scale(1);opacity:1}}
.has-art::after{content:"";position:absolute;inset:0;z-index:0;pointer-events:none;
  background:linear-gradient(90deg,rgba(255,250,251,.6) 0%,rgba(255,250,251,.5) 42%,rgba(255,250,251,0) 60%)}
.has-art>.hero-inner,.has-art>.faq-hero-in{position:relative;z-index:1;max-width:1180px;width:100%;margin:0 auto}
.has-art>.hero-inner>*,.has-art>.faq-hero-in>*{max-width:600px}
@media (min-width:1001px){
  .has-art>.hero-inner>h1,.has-art>.faq-hero-in>h1{max-width:820px;font-size:clamp(2.25rem,4vw,3.4rem)}
}
.has-art .hero-sub,.has-art>.faq-hero-in>p{margin-left:0;margin-right:0;color:var(--text-mid)}
.has-art .hero-ctas{justify-content:flex-start}
.has-art .hero-trust{justify-content:flex-start;gap:1.25rem 1.75rem}

@media (max-width:1000px){
  .has-art{flex-direction:column;align-items:stretch;min-height:0;text-align:center;padding-bottom:0}
  .has-art>.hero-inner,.has-art>.faq-hero-in{order:1}
  .has-art .hero-art{order:2;position:relative;inset:auto;height:clamp(210px,52vw,400px);margin:2rem -2.5rem 0}
  .has-art::after{display:none}
  .has-art>.hero-inner>*,.has-art>.faq-hero-in>*{max-width:none}
  .has-art .hero-sub,.has-art>.faq-hero-in>p{margin-left:auto;margin-right:auto}
  .has-art .hero-ctas,.has-art .hero-trust{justify-content:center}
  .has-art .ha-layer{inset:0;height:auto;aspect-ratio:auto;transform:none!important;-webkit-mask-image:none;mask-image:none}
  .hero-art img{object-position:85% 60%;animation:none}
  .has-art + .tldr-wrap .tldr{margin-top:1.25rem}
}
@media (max-width:680px){
  .has-art .hero-art{margin:1.5rem -1.25rem 0}
}
@media (prefers-reduced-motion:reduce){
  .hero-art img{animation:none}
  .has-art .ha-layer{transform:none!important}
}

/* Inhaltsbilder: freigestellte Illustrationen (transparenter Hintergrund), stehen direkt auf der Seite.
   Kein Kasten, kein Rahmen, kein Verlauf. Ueberschreibt die alten .pic-Regeln in den Seiten. */
.pic{max-width:960px;margin:2rem auto 0}
.pic img{width:100%;height:auto;display:block;border:0;border-radius:0;background:none}
.pic-story{max-width:900px;margin:3rem auto 0}

/* Abschnittskopf neben dem Bild (ab 1200px): Ueberschrift und Einleitung links, Bild rechts.
   Darunter (Tablet, Handy): Bild unter dem Text. */
.intro-text .fa-lead,.intro-text .sec-sub{text-wrap:pretty}
.intro-split .pic{max-width:900px}
.intro-split + .werte-grid,.intro-split + .feat-grid,.intro-split + .anim-card{margin-top:1rem}
.intro-split + .hero-ctas{margin-top:1.75rem}
@media (min-width:1200px){
  .intro-split{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:2.5rem;align-items:center}
  .intro-split .pic{margin:0;max-width:none}
  .intro-text .sec-h{font-size:clamp(1.75rem,2.4vw,2.15rem)}
  .intro-text .fa-lead,.intro-text .sec-sub{margin-bottom:0;max-width:none}
  .intro-split + .werte-grid,.intro-split + .feat-grid,.intro-split + .anim-card{margin-top:2.5rem}
}

/* Lebendiger beim Scrollen (hero.js setzt html.px): nur Desktop, nicht bei "Bewegung reduzieren".
   1. Inhaltsbilder bewegen sich leicht (Parallax)
   2. Abschnitte, Karten und Bilder blenden sanft ein */
@media (min-width:1001px) and (prefers-reduced-motion:no-preference){
  .px .pic img{transform:translate3d(0,var(--py,0px),0);will-change:transform}
  .px .rv{opacity:0;transform:translate3d(0,28px,0);transition:opacity .9s cubic-bezier(.2,.6,.2,1),transform .9s cubic-bezier(.2,.6,.2,1);transition-delay:var(--rd,0s)}
  .px .rv.in{opacity:1;transform:none}
}
