/* =========================================================
   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,
.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(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;
}


/* 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{
  display: none;

  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;
  z-index: 4;
  width: 100%;              /* nicht 50% */
  margin-top: var(--header-height);
  text-align: left;
  background-color: transparent;
  padding-top: 2rem;
}

.cls-home-hero-wrapper .hero-inner{
  font-family: var(--headline-font);
  width: 50%;               /* HIER begrenzen */
  max-width: 900px;         /* optional */
}
.cls-home-hero-wrapper .hero-logo{
  display: none;
  max-width: 800px;
  margin-bottom: 0px;
  margin-left: -8px;
}

/* caption exists only when you output it */
.cls-home-hero-wrapper .hero-caption{
  font-size: 2.2em;
  margin-bottom: 02rem;
  color: var(--str-purewhite);
  letter-spacing: -0.5px;
  font-weight: 800;
  text-transform: uppercase;

}

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

.cls-home-hero-wrapper .hero-buttons,
.cls-gschftsbrch-hero-wrapper .hero-buttons{
  display: flex;
  gap: .5rem;
  margin-top: 70px;
  
}


.hero-after-buttons {
  margin: 20px 0;
font-size: .8em;
  color:white;
}

/* 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-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(560px, 36vw, 900px);
  --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{
   background: transparent;
  color: #fff;
  border: solid var(--str-purewhite) 3px;
  border-radius: 0;
  line-height: 1.8em;
  font-weight: 600;
   padding: .8rem 1.6rem;
    font-size: 1rem;
    transition: transform .28s ease;
}

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

.btn-st-gradient{
  background: var(--str-gradient);
  color: #fff;
  border: solid #fff 0px;
  border-radius: 0;
  line-height: 1.8em;
  font-weight: 600;
   padding: .8rem 1.6rem;
    font-size: 15px;
    transition: transform .28s ease;
}

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

.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{

  bottom: -500px;

  height:400px;
}
}

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

  bottom: -680px;

  height:480px;
}
}

@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-gradient,
  .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(900px, 34vw, 1300px);
    --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);
  }



}




@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){

.hero-separator {
  display:none;
}

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

  /* 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;
    width: 90%;
  }

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

@media (max-width: 991px){
  .cls-gschftsbrch-hero-wrapper{
    --hero-h: clamp(520px, 70vh, 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 */
  }




  .cls-home-hero-wrapper .cls-hero-content{


  margin-top: 0;
 
}


.cls-home-hero-wrapper .hero-sub-caption{
  font-size: 1em;

}

}






/* ============================================
   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;
  }
}