/* =========================================================
   hero-styles.css
   Path: bootscore-child/assets/css/hero-styles.css
   Scope: alle Hero-bezogenen Styles (Home + weitere Wrapper)
   ========================================================= */




/* ============================================
   HERO BASE (shared for Home + Geschäftsbereiche)
   Base class for both wrappers:
   .cls-home-hero-wrapper
   .cls-gschftsbrch-hero-wrapper
   ============================================ */

.cls-home-hero-wrapper
{
  /* Override global justify only for hero */
  text-align: left;
  text-justify: auto;
  hyphens: manual;

  /* Defaults (can be overridden per hero below) */
  --hero-h: clamp(600px, 36vw, 900px);
  --left-min: clamp(500px, 33vw, 620px);
  --media-ratio: 16 / 9;
  --media-right-gap: 0px;

  --content-left: clamp(24px, 6vw, 100px);
  --content-top:  clamp(24px, 5vw, 60px);

  position: relative;
  width: 100%;
  height: var(--hero-h);
  overflow: hidden;
  margin-top: 0px;
}




.cls-gschftsbrch-hero-wrapper{
  /* Override global justify only for hero */
  text-align: left;
  text-justify: auto;
  hyphens: manual;

  /* Defaults (can be overridden per hero below) */
  --hero-h: clamp(400px, 30vw, 600px);
  --left-min: clamp(500px, 33vw, 620px);
  --media-ratio: 16 / 9;
  --media-right-gap: 0px;

  --content-left: clamp(24px, 6vw, 100px);
  --content-top:  clamp(24px, 5vw, 60px);

  position: relative;
  width: 100%;
  height: var(--hero-h);
  overflow: hidden;
  margin-top: 0px;
}

/* VIDEO/BG container */
.cls-home-hero-wrapper .hero-video-bg,
.cls-gschftsbrch-hero-wrapper .hero-video-bg{
  position: absolute;
  inset: 0;
}

/* VIDEO */
.cls-home-hero-wrapper .hero-video,
.cls-gschftsbrch-hero-wrapper .hero-video{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1) contrast(1);
}

/* Optional overlay */
.cls-home-hero-wrapper .hero-video-bg::after,
.cls-gschftsbrch-hero-wrapper .hero-video-bg::after{

  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  z-index:2;

  background: radial-gradient(
  ellipse 80% 120% at 50% 35%,
  rgba(255,255,255,1) 0%,
  rgba(255,255,255,0.9) 15%,
  rgba(255,255,255,0.6) 30%,
  rgba(255,255,255,0.3) 50%,
  rgba(255,255,255,0.15) 65%,
  rgba(255,255,255,0.05) 75%,
  rgba(255,255,255,0) 85%
);
}

/* Background-image mode */
.cls-home-hero-wrapper .hero-video-bg.hero-image-bg,
.cls-gschftsbrch-hero-wrapper .hero-video-bg.hero-image-bg{
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}



/* CONTENT */
.cls-home-hero-wrapper .cls-hero-content{
  position: relative;
  width: 100%;
  z-index: 4;
  background-color: rgba(255, 255, 255, .0);

  display: flex;
  justify-content: center; 
  align-items: center;     
  text-align: center;     
  margin-top: 100px;

}
.cls-gschftsbrch-hero-wrapper .cls-hero-content{
  position: relative;
  width: 100%;
  z-index: 4;
  background-color: rgba(255, 255, 255, .0);

  display: flex;
  justify-content: start; 
  align-items: left;     
  text-align: left;     
  margin-top: 100px;

}
.cls-gschftsbrch-hero-wrapper .cls-hero-content h1{
 font-size: 70px;
 color: var(--str-stdblue);

}

.cls-home-hero-wrapper .hero-inner,
.cls-gschftsbrch-hero-wrapper .hero-inner{
  font-family: var(--headline-font);
  
  position: static;
  top: var(--content-top);
  left: var(--content-left);
  
  

}

.cls-home-hero-wrapper .hero-logo,
.cls-gschftsbrch-hero-wrapper .hero-logo{
  max-width: 800px;
  margin-bottom: 0px;
  margin-left: -8px;
}

/* caption exists only when you output it */
.cls-home-hero-wrapper .hero-caption,
.cls-gschftsbrch-hero-wrapper .hero-caption{
  font-size: 2em;
  margin-bottom: 0rem;
  color: var(--str-stdblue);
  letter-spacing: -0.5px;
  font-weight: 600;
  text-transform: uppercase;

}


.cls-home-hero-wrapper .hero-sub-caption{
  font-size: 1.8em;
  margin-bottom: 2rem;
  color: var(--str-stdblue);
  letter-spacing: -0.5px;
  font-weight: 500;
    text-transform: uppercase;
}

.cls-home-hero-wrapper .hero-buttons,
.cls-gschftsbrch-hero-wrapper .hero-buttons{
  display: flex;
  gap: .5rem;
  display: none;
}

/* SEPARATOR */
.cls-home-hero-wrapper .hero-separator,
.cls-gschftsbrch-hero-wrapper .hero-separator{
  filter: drop-shadow(10px -10px 5px rgba(4,21,45,.0));
  animation: pulseShadow 5s infinite ease-in-out;

  position:absolute;
  left:0;
  bottom:-20px;
  width:100%;
  z-index:10;
  pointer-events:none;
}

/*@keyframes pulseShadow{
  0%{   filter: drop-shadow(10px -3px  5px rgba(4,21,45,.22)); }
  50%{  filter: drop-shadow(10px -10px 5px rgba(4,21,45,.35)); }
  100%{ filter: drop-shadow(10px -7px  5px rgba(4,21,45,.22)); }
}*/

.cls-home-hero-wrapper .hero-separator .separator-element-r,
.cls-gschftsbrch-hero-wrapper .hero-separator .separator-element-r{


}

.cls-home-hero-wrapper .hero-separator .separator-element-l,
.cls-gschftsbrch-hero-wrapper .hero-separator .separator-element-l{

  
}

/* ============================================
   HOME HERO – overrides (only Home)
   ============================================ */
.cls-home-hero-wrapper{
  /* Home-specific overrides can live here (currently none needed) */
}





.cls-home-hero-wrapper .hero-video-ui{
  position: absolute;
  right: 20px;
  bottom: 70px;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.cls-home-hero-wrapper .hero-video-title{
  background: rgba(255,255,255,.5);
  color: #000;
  font-size: 0.9rem;
  line-height: 1;
  padding: 10px 14px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.cls-home-hero-wrapper .hero-video-controls{
  display: flex;
  gap: 8px;
}

.cls-home-hero-wrapper .hero-video-switch{
  position: static;
  transform: none;
  z-index: 6;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 0px;
  background: rgba(255,255,255,.5);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 30px;
  line-height: 1;
  padding: 0;
  transition: background .2s ease, transform .2s ease;
}

.cls-home-hero-wrapper .hero-video-switch:hover{
  background: rgba(255,255,255,.5);
}

.cls-home-hero-wrapper .hero-video-switch:focus-visible{
  outline: 2px solid #fff;
  outline-offset: 3px;
}

@media (max-width: 767px){

  .cls-gschftsbrch-hero-wrapper .cls-hero-content h1{
 font-size: 35px!important;
 color: var(--str-stdblue);

}
  .cls-home-hero-wrapper .hero-video-ui{
    right: 12px;
    bottom: 20px;
    gap: 8px;
  }

  .cls-home-hero-wrapper .hero-video-title{
    font-size: 0.8rem;
    padding: 8px 12px;
    max-width: calc(100vw - 100px);
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .cls-home-hero-wrapper .hero-video-switch{
    width: 40px;
    height: 40px;
    font-size: 26px;
  }
}












/* ============================================
   GESCHÄFTSBEREICHE HERO – overrides (only GB)
   ============================================ */
.cls-gschftsbrch-hero-wrapper{
  /* Start with same sizing as home; change later without affecting home */
  --hero-h: clamp(400px, 25vw, 500px);
  --left-min: clamp(500px, 33vw, 620px);
  --media-ratio: 16 / 9;

  /* Example: often GB hero can be a bit lower */
  /* --hero-h: clamp(420px, 28vw, 720px); */
}

/* ============================================
   Hero Buttons (only these custom hero buttons)
   ============================================ */

.btn-st-ghost{
  color: #fff;
  border: solid #fff 1px;
  border-radius: 0;
  line-height: 1.9em;
  font-weight: 600;
}

.btn-st-ghost:hover{
  background-color: var(--str-signalblue);
  color: #fff;
  border: solid var(--str-signalblue) 1px;
}

.btn-st-signal-blue{
  background-color: var(--str-signalblue);
  color: #fff;
  border: solid #144985 1px;
  border-radius: 0;
}

.btn-st-signal-blue:hover{
  background-color: var(--str-signalblue);
  color: #fff;
  border: solid #fff 1px;
}



/* ============================================
   Responsive adjustments for Home Hero
   (keep simple + valid, no nested @media)
   ============================================ */



/* ============================================
   ULTRA WIDE / LARGE SCREENS
   ============================================ */



   @media (min-width: 2280px){
  .cls-home-hero-wrapper .hero-separator .separator-element-l,
.cls-gschftsbrch-hero-wrapper .hero-separator .separator-element-l{



  
}
}

   @media (min-width: 2565px){
  .cls-home-hero-wrapper .hero-separator .separator-element-l,
.cls-gschftsbrch-hero-wrapper .hero-separator .separator-element-l{

  
}
}

   @media (min-width: 3600px){
  .cls-home-hero-wrapper .hero-separator .separator-element-l,
.cls-gschftsbrch-hero-wrapper .hero-separator .separator-element-l{

 
}
}

@media (min-width: 2400px){
  .cls-home-hero-wrapper{
    /* höhere Bühne */
    --hero-h: clamp(900px, 34vw, 900px);

    /* Content-Spalte darf massiv wachsen */
    --left-min: clamp(780px, 32vw, 900px);

    /* Luftiger Abstand */
    --content-left: clamp(80px, 5vw, 220px);
    --content-top:  clamp(80px, 4vw, 200px);

    /* Video bekommt wieder mehr Raum */
    --media-right-gap: clamp(20px, 3vw, 70px);
  }

  /* Textblock breiter */
  .cls-home-hero-wrapper .hero-inner{
    max-width: min(1200px, 42vw);
  }

  /* LOGO deutlich größer */
  .cls-home-hero-wrapper .hero-logo{

    max-width: clamp(520px, 30vw, 1200px);
    margin-bottom: clamp(30px, 2vw, 70px);
  }



/* CLAIM größer */
/*  .cls-home-hero-wrapper .hero-caption{
    font-size: clamp(1.4rem, 0.7rem + 0.9vw, 2.5rem);
    line-height: 1.2;
    margin-bottom: clamp(1.8rem, 2vw, 3rem);
  }*/

  /* Buttons größer */
  .cls-home-hero-wrapper .btn-st-ghost,
  .cls-home-hero-wrapper .btn-st-signal-blue{
    padding: .9rem 1.7rem;
    font-size: 1.15rem;
  }

  .cls-home-hero-wrapper .hero-buttons{
    gap: 1rem;
  }


  .cls-gschftsbrch-hero-wrapper{
    --hero-h: clamp(600px, 25vw, 700px);
    --left-min: clamp(780px, 32vw, 1200px);
    --content-left: clamp(80px, 5vw, 220px);
    --content-top:  clamp(80px, 4vw, 200px);
    --media-right-gap: clamp(20px, 3vw, 70px);
  }



}

.cls-gschftsbrch-hero-wrapper {
     position: relative;
  isolation: isolate;
}



.cls-gschftsbrch-hero-wrapper .hero-media {
    position: absolute;
  overflow: visible; /* zum Testen */
  z-index: 2;
  mix-blend-mode: multiply;
}
  /* Heizung */
.page-id-217 .cls-gschftsbrch-hero-wrapper .hero-media {
  
  top: 30px;
  right: 25%;
  height: 100%;
  
transform-origin: center center;
  animation: heroKenBurns 12s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes heroKenBurns {
  from {
    transform: scale(.9);
  }

  to {
    transform: scale(2);
  }
}



/* Service */
.page-id-400 .cls-gschftsbrch-hero-wrapper .hero-media {
  
  top: 50px;
  right: 30%;
  height: 100%;
  
transform-origin: center center;
  animation: heroKenBurns 12s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes heroKenBurns {
  from {
    transform: scale(.9);
  }

  to {
    transform: scale(2);
  }
}

/* Elektro */
.page-id-678 .cls-gschftsbrch-hero-wrapper .hero-media {
  
  top: 0px;
  right: 25%;
  height: 110%;
  
transform-origin: left center;
  animation: heroKenBurns 12s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes heroKenBurns {
  from {
    transform: scale(.9);
  }

  to {
    transform: scale(2);
  }
}
 /* Lüftung */
.page-id-291 .cls-gschftsbrch-hero-wrapper .hero-media {
  
  top: -120px;
  right: 15%;
  height: 150%;
  
  transform-origin: center center;
  animation: heroKenBurnsRotate 40s linear infinite;
  will-change: transform;
}

@keyframes heroKenBurnsRotate {
  0% {
    transform: scale(1) rotate(0deg);
  }

  50% {
    transform: scale(1.2) rotate(180deg);
  }

  100% {
    transform: scale(1) rotate(365deg);
  }
}
 /* Sanitär */
.page-id-288 .cls-gschftsbrch-hero-wrapper .hero-media {
  
  top: -200px;
  right: 30%;
  height: 150%;
  
transform-origin: center center;
  animation: heroKenBurns 15s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes heroKenBurns {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.18);
  }
}


@media (max-width: 1024px) {
  .page-id-217 .cls-gschftsbrch-hero-wrapper .hero-media,
  .page-id-288 .cls-gschftsbrch-hero-wrapper .hero-media,
  .page-id-291 .cls-gschftsbrch-hero-wrapper .hero-media,
  .page-id-678 .cls-gschftsbrch-hero-wrapper .hero-media {
    top: auto;
    right: auto;
    left: 25%;
    bottom: -50px;
    height: 50%;
  }
}


.cls-gschftsbrch-hero-wrapper .hero-post-image {
   display: block;
  width: auto;
  height: 100%;
  object-fit: contain;
  object-position: right center;
  opacity: 1;
}



@media (max-width: 1400px){
  .cls-home-hero-wrapper{
    --media-ratio: 14 / 9;
  }
}

@media (max-width: 1300px){
  .cls-home-hero-wrapper{
    --media-ratio: 12 / 9;
  }

  /* if you want to hide the outer right strip in this range */
  .cls-home-hero-wrapper .frame-strip-right--edge{
    display: none;
  }
}

@media (max-width: 991px){



  .cls-home-hero-wrapper{
    --hero-h: clamp(520px, 70vh, 760px);
    --media-right-gap: 0px;
  }

  .cls-home-hero-wrapper .cls-hero-content{
   
  margin-top: 170px;

}
  /* stack */
  .cls-home-hero-wrapper .hero-grid{
    grid-template-columns: 1fr;
  }

  .cls-home-hero-wrapper .hero-media{
    aspect-ratio: 16 / 9;
    margin-right: 0;
    max-width: 100%;
  }

  .cls-home-hero-wrapper .hero-inner{
    position: relative;
    top: auto;
    left: auto;
    padding: 24px;
    max-width: 100%;
  }

  .cls-home-hero-wrapper .hero-logo{
    max-width: 300px;
  }

.cls-home-hero-wrapper .hero-caption {
  font-size: 1.6em;
}

  .cls-home-hero-wrapper .hero-separator, .cls-gschftsbrch-hero-wrapper .hero-separator {
  
  bottom:0px;
  width:150%;
  overflow: hidden;
  
}

}

@media (max-width: 991px){
  .cls-gschftsbrch-hero-wrapper{
    --hero-h: clamp(420px, 50vh, 760px);
    --media-right-gap: 0px;
  }

  .cls-gschftsbrch-hero-wrapper .hero-grid{
    grid-template-columns: 1fr;
  }

  .cls-gschftsbrch-hero-wrapper .hero-media{
    aspect-ratio: 16 / 9;
    margin-right: 0;
    max-width: 100%;
  }

  .cls-gschftsbrch-hero-wrapper .hero-inner{
    position: relative;
    top: auto;
    left: auto;
    padding: 24px;
    max-width: 100%;
  }

  .cls-gschftsbrch-hero-wrapper .hero-logo{
    max-width: 200px;
    margin-bottom: 0; /* GB hat meist keinen Claim, daher weniger Luft */
  }
}

 





/* ============================================
   Hero Badge (shared utility)
   ============================================ */

.hero-badge{
  position: absolute;

  --hero-badge-width: clamp(150px, 18vw, 400px);
  width: var(--hero-badge-width);

  left: 50%;
  bottom: 40px;

  /* Offset calculation (your current logic) */
  --badge-offset: calc(-1 * (1300px/2 - var(--hero-badge-width)/2));
  transform: translateX(calc(-50% + var(--badge-offset)));

  z-index: 11;
  pointer-events: none;
}

/* ============================================
   Container overlap utility (hero-related)
   ============================================ */

.container-over-hero{
  --overlap: 220px;
  position: relative;
  z-index: 5;

  transform: translateY(calc(var(--overlap) * -1));
  margin-bottom: calc(var(--overlap) * -1);
}

@media (max-width: 991.98px){
  .container-over-hero{ --overlap: 240px; }
}




/* ============================================
   MOBILE HERO (<1200px) – eigenes Markup
   ============================================ */
@media (max-width: 1199.98px){

  .cls-home-hero-mobile,
  .cls-gschftsbrch-hero-mobile{
    text-align: left;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;

    background: linear-gradient(90deg, var(--str-stdblue), var(--str-darkblue));
    padding: 28px 0 0;
    margin-bottom: 3vh;
  }

.cls-home-hero-mobile .hero-content,
.cls-gschftsbrch-hero-mobile .hero-content{
  font-family: 'montserrat', sans-serif;
  font-weight: 600;
  max-width:540px;
 padding: 0 35px;
}

  .cls-home-hero-mobile .hero-logo,
  .cls-gschftsbrch-hero-mobile .hero-logo{
    width: min(450px, 80vw);
    height: auto;
    margin: 0 0 18px -30px;
  }

  .cls-home-hero-mobile .hero-caption{
    color: #fff;
      font-size:clamp(1rem, 2.6vw, 1.25rem);
  line-height:1.25;
    margin: 20px 0 30px;
    letter-spacing: -0.2px;

  }

  .cls-home-hero-mobile .hero-buttons{
    display: flex;
    gap: .4rem;
    margin-bottom: 22px;
  }

  /* Media block (16:9) */
  .cls-home-hero-mobile .hero-media-wrap,
  .cls-gschftsbrch-hero-mobile .hero-media-wrap{
    position: relative;
    width: 100vw;                 /* volle Viewportbreite */
    left: 50%;
    transform: translateX(-50%);  /* zentriert full-bleed */
    aspect-ratio: 16 / 9;
    overflow: hidden;
    margin-top: 18px;             /* Abstand unter Buttons */
  }

  .cls-home-hero-mobile .hero-video-bg,
  .cls-gschftsbrch-hero-mobile .hero-video-bg{
    position: absolute;
    inset: 0;
  }

  .cls-home-hero-mobile .hero-video, .cls-gschftsbrch-hero-mobile .hero-video{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .cls-gschftsbrch-hero-mobile .hero-video-bg.hero-image-bg{
    background-size: cover;
    background-position: bottom;
    background-repeat: no-repeat;
  }

  /* FRAME-TOP: ebenfalls full-bleed (immer 100vw) */
  .cls-home-hero-mobile .hero-frame-top,
  .cls-gschftsbrch-hero-mobile .hero-frame-top{
    position: absolute;
    top: -32%;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;                 /* <- volle Viewportbreite */
    height: auto;
    pointer-events: none;
    z-index: 5;
   
  }


 .cls-home-hero-mobile .hero-media-wrap,
  .cls-gschftsbrch-hero-mobile .hero-media-wrap{
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: visible;

    /* Overlap nach oben */
    margin-top: 20%;

    z-index: 2;
  }
}