/* =========================================================
   HEADER BASIS
========================================================= */
.business-header,
.business-video-header {
    position: relative;
    overflow: visible;
}
/* =========================================
   BILD-SLIDER
========================================= */
.business-header #carousel-slider,
.business-header #carousel-slider .carousel-inner,
.business-header #carousel-slider .carousel-item {
    position: relative;
    height: clamp(320px, 42vw, 650px);
}

.business-header #carousel-slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}



/* =========================================================
   VIDEO HEADER
========================================================= */

.business-video-header__video{
   position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* =========================================================
   OVERLAY
========================================================= */

.business-video-header__overlay{
    position: absolute;
    inset: 0;

    background: rgba(0,0,0,0.35);

    z-index: 1;
}


/* =========================================================
   CAPTION BILD-Header simuliert Bootstrap-Container
========================================================= */

.business-header .caption {
    position: absolute;
    inset: 0;
    z-index: 5;

    display: flex;
    align-items: flex-end;
    padding-bottom: clamp(90px, 9vw, 170px);

    pointer-events: none;
}

.business-header .caption .container {
    position: relative;
}

.business-header .carousel-caption {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    transform: none;

    width: auto;
    max-width: 900px;

    padding: 0 0 0 clamp(28px, 3vw, 48px);
    margin: 0;

    text-align: left;
    pointer-events: auto;
}

.business-header .carousel-caption::before {
    content: "";
    position: absolute;

    left: 0;
    top: 0;

    width: 6px;
    height: 100%;

    background: var(--rot);
}
/* =========================================
   CAPTION VIDEO-HEADER
========================================= */

.business-video-header__caption {
    position: absolute;
    inset: 0;

    z-index: 5;

   
}
.business-video-header__caption .container{
    position: absolute;

    left: 50%;
    transform: translateX(-50%);

    bottom: clamp(100px, 12vw, 180px);

    width: calc(100% - var(--bs-gutter-x, 1.5rem));
    max-width: 1320px;
}

.business-video-header__text {
    position: relative;

    max-width: 900px;

    padding-left: clamp(28px, 3vw, 48px);
}

.business-video-header__text::before {
    content: "";
    position: absolute;

    left: 0;
    top: 0;

    width: 6px;
    height: 100%;

    background: var(--rot);
}

/* =========================================
   TYPOGRAFIE GEMEINSAM
========================================= */

.business-header .carousel-caption h3,
.business-video-header__text h3 {
    color: #fff;

    font-size: clamp(1.2rem, 5vw, 2.5rem);
    line-height: 1.05;

    margin: 0 0 0.75rem 0;
}

.business-header .carousel-caption .subheading,
.business-video-header__text .subheading {
    color: #fff;

    font-size: clamp(1rem, 1.6vw, 1.8rem);
    line-height: 1.3;
}


/* =========================================
   BUTTON AN HEADERKANTE
========================================= */

.business-header .header-button-layer,
.business-video-header .header-button-layer {
    position: absolute;

    left: 0;
    right: 0;
   bottom: clamp(21px, -2vw, -40px);

    z-index: 20;
   
}

/* Container-Ausrichtung wie Logo */
.header-button-layer > .container {
    position: relative;
    padding-left: clamp(1.25rem, 6vw, 2rem);
    padding-right: clamp(1.25rem, 6vw, 2rem);
}

/* TYPO3-Abstände im Button entfernen */
.header-button-layer .frame,
.header-button-layer .button_kontakt {
    margin: 0;
    padding: 5px 10px;
}

/* Button selbst */
.header-button-layer .button_kontakt .btn {
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
   max-width: 100%;
    white-space: normal;
    text-align: center;
}
.business-header,
.business-video-header {
    position: relative;
    overflow: visible;
}

/* =========================================
   ABSTAND NACH UNTEN
========================================= */

.business-header,
.business-video-header {
    margin-bottom: clamp(3rem, 7vw, 7rem);
}

/* Mobile / kleinere Viewports */
@media (max-width: 1399.98px) {

    .business-header .carousel-caption {
        padding-left: clamp(1.5rem, 7vw, 3rem);
        padding-right: 2rem;
    }

    .business-header .carousel-caption::before {
        left: clamp(0.25rem, 3vw, 2rem);
    }

    .business-video-header__text {
        padding-left: clamp(1.5rem, 7vw, 3rem);
    }

    .business-video-header__text::before {
        left: clamp(0.25rem, 3vw, 2rem);
    }
}
@media (max-width: 991.98px) {
    .business-header, .business-video-header {
    margin-top: 98px;
}
}
@media (max-width: 567.98px) {
.business-header .carousel-caption {
  padding-right: 1rem;
    }

  
}