/* V29.4 / adaptive hero contract for all original primary photo heroes except CONTACT (V29.2).
   Work only on desktop and landscape/tablet window sizes >760px. Every existing mobile asset/CSS remains locked.
   Keep the actual full photographic source visible; avoid fixed-height cover-cropping on MacBook and ultrawide monitors. */
@media(min-width:761px){
  .rf-unified-hero:not([data-hero-role="kontakt"]) .rf-unified-bg{
    background:linear-gradient(90deg,#27262a 0%,var(--rf34-ambient,#504950) 100%);
  }
  .rf-unified-hero:not([data-hero-role="kontakt"]) .rf-unified-bg picture{
    display:block;height:100%;width:100%;
  }
  .rf-unified-hero:not([data-hero-role="kontakt"]) .rf-unified-bg img{
    display:block;width:100%;height:100%;object-fit:contain!important;object-position:right center!important;
  }
  .rf-unified-hero[data-hero-role="start"]{--rf34-picture-width:1251px;--rf34-ambient:#51514a;}
  .rf-unified-hero[data-hero-role="berufsstart"]{--rf34-picture-width:1251px;--rf34-ambient:#6c645d;}
  .rf-unified-hero[data-hero-role="praxis"]{--rf34-picture-width:1650px;--rf34-ambient:#535044;}
  .rf-unified-hero[data-hero-role="magazin"]{--rf34-picture-width:1251px;--rf34-ambient:#675043;}
  .rf-unified-hero[data-hero-role="literatur"]{--rf34-picture-width:1251px;--rf34-ambient:#706050;}
  .rf-unified-hero[data-hero-role="butler"]{--rf34-picture-width:1650px;--rf34-ambient:#555154;}
}
/* Narrow desktop/MacBook: scale the photographic stage with window width.
   The 3:1 originals use a shallower stage so their important rightmost subjects/screens are not lost. */
@media (min-width:761px) and (max-width:1249px){
  .rf-unified-hero:not([data-hero-role="kontakt"]){
    height:clamp(375px,43vw,530px)!important;
    min-height:clamp(375px,43vw,530px)!important;
    max-height:none!important;
  }
  .rf-unified-hero[data-hero-role="praxis"],
  .rf-unified-hero[data-hero-role="butler"]{
    height:clamp(315px,33.3333vw,418px)!important;
    min-height:clamp(315px,33.3333vw,418px)!important;
  }
  .rf-unified-hero:not([data-hero-role="kontakt"]) .rf-unified-content{
    padding-block:23px!important;
  }
  .rf-unified-hero:not([data-hero-role="kontakt"]) h1{
    font-size:clamp(29px,3.55vw,43px)!important;
    max-width:min(52vw,610px)!important;
  }
  .rf-unified-hero:not([data-hero-role="kontakt"]) .rf-unified-subline{
    max-width:min(48vw,440px)!important;
  }
}
/* Wide desktop: the image is a protected independent part of the hero, softened into the
   existing dark editorial left field. Contains the full subject without a hard vertical seam. */
@media(min-width:1250px){
  .rf-unified-hero:not([data-hero-role="kontakt"]) .rf-unified-bg picture{
    display:block;position:absolute;inset:0 0 0 auto;
    width:min(100%,var(--rf34-picture-width,1500px));height:100%;
  }
  .rf-unified-hero:not([data-hero-role="kontakt"]) .rf-unified-bg img{
    -webkit-mask-image:linear-gradient(90deg, transparent 0%, rgba(0,0,0,.3) 7%, #000 23%);
    mask-image:linear-gradient(90deg, transparent 0%, rgba(0,0,0,.3) 7%, #000 23%);
  }
}
@media(min-width:1250px) and (max-width:1559px){
  .rf-unified-hero[data-hero-role="praxis"],
  .rf-unified-hero[data-hero-role="butler"]{
    height:clamp(420px,33.3333vw,520px)!important;
    min-height:clamp(420px,33.3333vw,520px)!important;
    max-height:none!important;
  }
}
