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

/* GRID */
.cls-home-hero-wrapper .hero-grid,
.cls-gschftsbrch-hero-wrapper .hero-grid{
  position: relative;
  z-index: 1;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(var(--left-min), 1fr) auto;
  align-items: stretch;
}

/* LEFT AREA */
/* Hero left gradient: animierte Crossover-Punkte */
.cls-home-hero-wrapper .hero-left,
.cls-gschftsbrch-hero-wrapper .hero-left{
  position: relative;
  height: 100%;

  /* animierbare Stops */
  --g1: 0%;
  --g2: 55%;
  --g3: 100%;

  background: linear-gradient(
    90deg,
    var(--str-stdblue) var(--g1),
    color-mix(in srgb, var(--str-stdblue), var(--str-darkblue) 50%) var(--g2),
    var(--str-darkblue) var(--g3)
  );

  animation: heroGradientShift 6s ease-in-out infinite alternate;
}

/* Crossover-Punkte “atmen” lassen */
@keyframes heroGradientShift{
  @keyframes heroGradientShift{
  0%   { --g2: 52%; --g3: 100%; }
  50%  { --g2: 60%; --g3: 100%; }
  100% { --g2: 55%; --g3: 100%; }
}
}

@media (prefers-reduced-motion: reduce){
  .cls-home-hero-wrapper .hero-left,
  .cls-gschftsbrch-hero-wrapper .hero-left{
    animation: none;
  }
}

/* RIGHT AREA (media box) */
.cls-home-hero-wrapper .hero-media,
.cls-gschftsbrch-hero-wrapper .hero-media{
  position: relative;
  height: 100%;
  width: auto;
  aspect-ratio: var(--media-ratio);
  margin-right: var(--media-right-gap);
  overflow: visible;
  max-width: calc(100vw - var(--left-min) - var(--media-right-gap));
  justify-self: end;
}

/* Clip ONLY the video/background */
.cls-home-hero-wrapper .hero-media-clip,
.cls-gschftsbrch-hero-wrapper .hero-media-clip{
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 1;
}

/* 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: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0));
}

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

/* Frame strips */
.cls-home-hero-wrapper .frame-strip,
.cls-gschftsbrch-hero-wrapper .frame-strip{
  position: absolute;
  top: 0;
  height: 100%;
  width: auto;
  pointer-events: none;
  z-index: 6;
  display: block;
}

/* LEFT strip */
.cls-home-hero-wrapper .frame-strip-left,
.cls-gschftsbrch-hero-wrapper .frame-strip-left{
  left: 0;
  transform: translateX(-47%);
  max-width: clamp(260px, 28vw, 700px);
  rotate: 4.5deg;
}

/* RIGHT strip */
.cls-home-hero-wrapper .frame-strip-right--edge,
.cls-gschftsbrch-hero-wrapper .frame-strip-right--edge{
  right: 0;
  transform: none;
  max-width: clamp(180px, 22vw, 500px);
}

/* CONTENT */
.cls-home-hero-wrapper .cls-hero-content,
.cls-gschftsbrch-hero-wrapper .cls-hero-content{
  position: relative;
  height: 100%;
  z-index: 4;
}

.cls-home-hero-wrapper .hero-inner,
.cls-gschftsbrch-hero-wrapper .hero-inner{
  font-family: montserrat;
  text-transform: uppercase;
  position: absolute;
  top: var(--content-top);
  left: var(--content-left);
  font-weight: 500;
  max-width: min(600px, 42vw);
}

.cls-home-hero-wrapper .hero-logo,
.cls-gschftsbrch-hero-wrapper .hero-logo{
  max-width: 420px;
  margin-bottom: 30px;
  margin-left: -30px;
}

/* caption exists only when you output it */
.cls-home-hero-wrapper .hero-caption,
.cls-gschftsbrch-hero-wrapper .hero-caption{
  font-size: clamp(1.15rem, 1.55rem - 0.4vw, 1.67rem);
  margin-bottom: 2rem;
  color: #fff;
  letter-spacing: -0.5px;
}

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

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

  position:absolute;
  left:0;
  bottom:-2px;
  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{
  position: absolute;
  left: 0;
  bottom: -2px;
  pointer-events: none;
  background:var(--str-lightgrey5);
  rotate: -15deg;
  width:200vw;
  height:300px;
}

.cls-home-hero-wrapper .hero-separator .separator-element-l,
.cls-gschftsbrch-hero-wrapper .hero-separator .separator-element-l{
  position: absolute;
  left: -10%;
  bottom: -250px;
  pointer-events: none;
  background:var(--str-lightgrey5);
  rotate: 7deg;
  width:200vw;
  height:280px;
}

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

/* ============================================
   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{
  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{

  bottom: -280px;

  height:320px;
}
}

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

  bottom: -400px;

  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: -480px;

  height:480px;
}
}

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

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

    /* 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, 23vw, 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(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){
  .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;
    max-width: 100%;
  }

  .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 */
  }
}






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