/*
 * AldeTalks – Hero Freisteller V2
 *
 * Robuster als V1:
 * Erkennt das größte Nicht-Logo-Bild im oberen Startseitenbereich
 * und macht dessen Bildspalte transparent.
 */

html.at-hero-freisteller-v2-ready body.at-hero-freisteller-v2-active .at-hero-freisteller-v2-stage,
html.at-hero-freisteller-v2-ready body.at-hero-freisteller-v2-active .at-hero-freisteller-v2-frame,
html.at-hero-freisteller-v2-ready body.at-hero-freisteller-v2-active .at-hero-freisteller-v2-near{
  background:transparent!important;
  background-color:transparent!important;
  box-shadow:none!important;
  border-color:transparent!important;
}

/* Pseudo-Flächen in der Bildspalte abschalten */
html.at-hero-freisteller-v2-ready body.at-hero-freisteller-v2-active .at-hero-freisteller-v2-stage::before,
html.at-hero-freisteller-v2-ready body.at-hero-freisteller-v2-active .at-hero-freisteller-v2-stage::after,
html.at-hero-freisteller-v2-ready body.at-hero-freisteller-v2-active .at-hero-freisteller-v2-frame::before,
html.at-hero-freisteller-v2-ready body.at-hero-freisteller-v2-active .at-hero-freisteller-v2-frame::after{
  background:transparent!important;
  background-color:transparent!important;
  box-shadow:none!important;
  border-color:transparent!important;
}

/* Häufige Media-/Figure-/Image-Wrapper innerhalb der erkannten Hero-Bühne */
html.at-hero-freisteller-v2-ready body.at-hero-freisteller-v2-active .at-hero-freisteller-v2-stage figure,
html.at-hero-freisteller-v2-ready body.at-hero-freisteller-v2-active .at-hero-freisteller-v2-stage picture,
html.at-hero-freisteller-v2-ready body.at-hero-freisteller-v2-active .at-hero-freisteller-v2-stage [class*="image"],
html.at-hero-freisteller-v2-ready body.at-hero-freisteller-v2-active .at-hero-freisteller-v2-stage [class*="media"],
html.at-hero-freisteller-v2-ready body.at-hero-freisteller-v2-active .at-hero-freisteller-v2-stage [class*="visual"],
html.at-hero-freisteller-v2-ready body.at-hero-freisteller-v2-active .at-hero-freisteller-v2-stage [class*="portrait"],
html.at-hero-freisteller-v2-ready body.at-hero-freisteller-v2-active .at-hero-freisteller-v2-stage [class*="asset"]{
  background:transparent!important;
  background-color:transparent!important;
  box-shadow:none!important;
  border-color:transparent!important;
}

/* Das erkannte Hero-Porträt */
html.at-hero-freisteller-v2-ready body.at-hero-freisteller-v2-active img.at-hero-freisteller-v2-image{
  background:transparent!important;
  background-color:transparent!important;
  box-shadow:none!important;
  border:0!important;
  object-fit:contain!important;
  object-position:center bottom!important;
  mix-blend-mode:multiply!important;
  filter:drop-shadow(0 22px 34px rgba(8,37,76,.10))!important;
}

/*
 * Falls ein echter weißer Pixelhintergrund im Bild steckt:
 * multiply lässt Weiß optisch in den Papiergrund übergehen.
 * Bei echter Transparenz stört es nicht.
 */
html.at-hero-freisteller-v2-ready body.at-hero-freisteller-v2-active .at-hero-freisteller-v2-transparent{
  background:transparent!important;
  background-color:transparent!important;
}

/* Nur Startseite betroffen, keine Strukturkarten/PDF-Bereiche */
body:not(.at-hero-freisteller-v2-active) img.at-hero-freisteller-v2-image{
  mix-blend-mode:normal!important;
}

@media (max-width:760px){
  html.at-hero-freisteller-v2-ready body.at-hero-freisteller-v2-active img.at-hero-freisteller-v2-image{
    max-height:52vh!important;
  }
}
