/* --------------------------------------- */
/* Videocontainer für alle Contentblöcke */
/* --------------------------------------- */

.videocontainer {
  position: relative;
  overflow: visible;
  isolation: isolate; /* sorgt dafür, dass das z-index:-1 im Container bleibt */
  padding-bottom: 5rem; /* Platz für evtl. Content unten schaffen */
  padding-left: 5rem;
  padding-right: 5rem;
  padding-top: 5rem;
}

.videocontainer video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1; /* hinter den restlichen Inhalt */
}

.videocontainer::after{
  content:"";
  position:absolute; inset:0;
  background: var(--video-gradient, none);  
  margin-top: -5px; /* verhindert weißen spalt oben */ 
  margin-bottom: -5px; /* verhindert weißen spalt unten */
  pointer-events:none;
}

.videocontainer > :not(video){ position: relative; z-index:1; } /* Inhalt über Overlay */

@media screen and (max-width: 480px) {
  .videocontainer {
    padding-left: 2rem;
    padding-right: 2rem;
    padding-top:2rem;
  }
}

/* ---------------------------------------- */
/* Videocontainer für einzelne Videos, z.B. Startseite */
/* ---------------------------------------- */

.videocontainer--imagevideo {
  padding-bottom: 5rem; /* Platz für evtl. Content unten schaffen */
  padding-left: 15rem;
  padding-right: 15rem;
  margin-top: 5px; /* verhindert abgeschnittene Kontur oben */ 
  align-items: center;
  text-align: center;
  justify-content: center;
}

@media screen and (max-width: 1080px) {
  .videocontainer--imagevideo {
    padding-left: 2rem;
    padding-right: 2rem;
    padding-top: 2rem;
  }
}

.videocontainer--imagevideo video {
  width: 100%;        /* immer volle Breite */
  height: auto;       /* proportional zur Breite */
  display: block;     /* keine weißen Ränder durch Inline-Verhalten */
  border-radius: 0;   /* optional */
  border: white 5px solid; /* optional */
}

/* Videocontainer hover Effekt Kontur */
.videocontainer--imagevideo:hover video {
  border: var(--color-company-primary) 5px solid; /* optional */
  transition: border 0.3s ease;
}


/* ---------------------------------------- */
/* Videocontainer für Logo */
/* ---------------------------------------- */

.videocontainer--logo {
  width: 100%;
  height: 300px;     /* fixe Streifenhöhe */
  overflow: hidden;  /* schneidet oben/unten ab */
  padding: 0;        /* ggf. entfernen, sonst >300px Gesamthöhe */
}

.videocontainer--logo video {
  width: 100%;
  height: 100%;
  display: block;           /* verhindert Inline-Gap */
  object-fit: cover;        /* füllt Container, bleibt proportional */
  object-position: center;  /* mittlerer Teil wird gezeigt */
}

@media screen and (max-width: 768px) {
  .videocontainer--logo {
    height: 200px; /* kleinere Höhe auf Tablets */
  }
    
}

@media screen and (max-width: 480px) {
  .videocontainer--logo {
    height: 150px; /* kleinere Höhe auf kleinen Bildschirmen */
  }
    
}

/* Imagecontainer für einzelne Bilder, z.B. Startseite */
.imagecontainer {
  background-image: url('/assets/images/Painting.jpg'); /* Fallback-Bild */
  padding-bottom: 5rem; /* Platz für evtl. Content unten schaffen */
  padding-left: 5rem;
  padding-right: 5rem;
  padding-top: 5rem;
}

/* ----------------------------------------
Video Container 3 Spaltig, Button rechts
 ---------------------------------------- */

/* ---------------------------------------- */
/* Video-Content Block Horizontales Layout linksbündig (Offroad or Mechanum) */
/* ---------------------------------------- */

.video-content-container-horizontal {
    display: flex;
    flex-direction: row;
    align-items: flex-end; /* Elemente unten ausrichten */
    justify-content: center;
    z-index: 2;
    text-align: left;
    padding: 10%;
    gap: 7%;
    padding-top: 35%;
}

.video-content-container-horizontal .button {
    align-self: flex-end; /* Button explizit unten ausrichten */
    transform: translateY(-50%); /* Verschiebt den Button eine halbe Buttonhöhe nach oben */
    white-space: nowrap; /* Verhindert Zeilenumbruch */
    width: auto;
}

.video-content-container-horizontal p {
    max-width: 40%;
}


/* Responsive Design */


@media screen and (max-width: 1024px) {
    .video-content-container-horizontal {
        max-width: 100%;
        flex-direction: column;
        padding: 7%;
        align-items: center;
        text-align: center;
        gap: 1.5rem;
        padding-top: 50%;
    }

    .video-content-container-horizontal .button {
        align-self: center;
        flex-direction: column;
        align-items: center;        

    }

    .video-content-container-horizontal p {
        max-width: 80%;
    }
}




/* Video-Content Block Horizontales Layout linksbündig (Offroad or Mechanum) */
/* ---------------------------------------- */

.text-horizontal-bottom {
    display: flex;
    flex-direction: row;
    align-items: flex-end; /* Elemente unten ausrichten */
    z-index: 2;
    justify-content: center; /* zentriert den gesamten Block */
    text-align: left;
    gap: 5%;
    padding-top: 30%;
}

.text-horizontal-bottom p {
    margin-bottom: 2rem; /* HL bündig zu p */
    max-width: 50%;
}

.HL-horizontal-bottom {
    margin-bottom: 1rem;
    width: 100%;
    height: auto;
}

/* Cardcontainer */ 

.cardcontainer {
  position: relative;
  overflow: visible;
  padding-left: 10rem;
  padding-right: 10rem;
  padding-bottom: 5rem;
}

@media screen and (max-width: 768px) {
  .cardcontainer {
    padding-left: 5rem;
    padding-right: 5rem;
  }
    
}

@media screen and (max-width: 480px) {
  .cardcontainer {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}



.cardcontainer .home-card__container---grid {
  padding-top: 2rem;

}

@media screen and (max-width: 768px) {
    .text-horizontal-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .text-horizontal-bottom p {
        max-width: 100%;
        margin-bottom: 1rem;
    }
    
}

/* Text Vertical Layout */ 

.text-vertical-left {
    display: flex;
    flex-direction: column;
    height: 100%; /* wichtig für vertikale Zentrierung */
    gap: 1.5rem;
    max-width: 60%;
    z-index: 2000;
    text-align: left;
    padding-left: 10rem;
    padding-top: 5rem;
    padding-bottom: 5rem;
}

@media screen and (max-width: 1240px) {
    .text-vertical-left {
        max-width: 80%;
        padding-left: 5rem;
    }
}

@media screen and (max-width: 768px) {
    .text-vertical-left {
        max-width: 100%;
        align-items: center;
        text-align: center;
        padding-left: 0rem;
    }
}


.container-width50 {
    max-width: 50%;
    padding-bottom: 10%;
}


@media screen and (max-width: 768px) {

    .container-width50 {
        max-width: 100%;
        padding-bottom: 5%;
    }
}



/* ---------------------------------------- */
/* Video Content block mit Horizontal angeordneten Icons und Texten darunter, you can use eduard for … */
/* ---------------------------------------- */
.centeredText-horizontal-icons {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%; /* wichtig */
    text-align: center;
}

.centeredText-horizontal-icons h1, .centeredText-horizontal-icons h2 {
    margin-bottom: 10rem;
}

@media screen and (max-width: 768px) {
    .centeredText-horizontal-icons h1, .centeredText-horizontal-icons h2 {
        margin-bottom: 0rem;
    }
    
}


/* Dieser Block wird nach unten gedrückt */
.bottom-content-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin-top: auto; /* Drückt den Container nach unten */

}

.bottom-content-group .button {
    align-self: center;

}

/* Icon Grid bleibt wie gehabt */
.icon-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 5%;
}

.icon-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5%;
}

.icon-grid h3 {
    margin-bottom: 0rem;
    margin-top: 1rem;
    font-size: 1.5rem;
    color: #fff;
}

.icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: baseline;
}

.icon-item i {
    font-size: 3rem;
    margin-bottom: 15px;
}

.icon-item svg {
    height: 3rem; /* Einheitliche Höhe für alle Icons */
    margin-bottom: 15px;
    fill: #fff;
}

.icon-item img {
    width: 80%;
    margin-bottom: 15px;
}

.icon-item p {
    max-width: 300px;
    text-align: center;
}

/* Responsive Design für die Icons und den Button */

@media screen and (max-width: 768px) {
    .bottom-content-group {
        margin-top: 0;
        margin-bottom: 0; /* oder z. B. 40px */
    }

    .icon-grid, .icon-grid-4 {
        grid-template-columns: 1fr; /* Icons untereinander */
        gap: 1%; /* Abstand zwischen den Icons */
        padding-top: 4%;
        padding-bottom: 4%;
    }

    .icon-item i {
        font-size: 2rem; /* Icons kleiner */
        margin-bottom: 10px;
    }

    .icon-item p {
        max-width: 70%; /* Text passt sich an */
    }
}



/* ---------------------------------------- */
/* Our Services – Responsive Grid-Version */
/* ---------------------------------------- */

.our-services-wrapper {
    background-color: #000;
    color: #fff;
    padding: 5%;
    box-sizing: border-box;
}

.our-services-wrapper h2 {
    margin-bottom: 3rem;
    text-align: center;
}

/* Grid-System */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    width: 100%;
    box-sizing: border-box;
}

/* Service Item Standard */
.service-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 3rem;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
    border-left: 2px solid #811811;
    border-top: 2px solid #811811;
    box-sizing: border-box;
    width: 100%;
}

/* Entferne äußere Linien */
.service-item:nth-child(4n + 1) {
    border-left: none; /* Erste Spalte Desktop */
}
.service-item:nth-child(-n + 4) {
    border-top: none; /* Erste Zeile Desktop */
}

/* Hovereffekt */
.service-item:hover {
    transform: translateY(-10px);
}

/* Text */
.service-item h3,
.service-item p {
    width: 100%;
    margin: 0 auto;
    max-width: 85%;
    text-align: left;
}

/* Bild */
.image-wrapper-full-width {
    width: 100%;
    overflow: hidden;
}
.image-wrapper-full-width img {
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
}
.service-item:hover .image-wrapper-full-width img {
    transform: scale(1.10);
}

/* Button Wrapper */
.services-button-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    width: 100%;
}
.service-item .services-button-wrapper {
    justify-content: center;
}
.services-button-wrapper .button {
    margin: 0 auto;
    max-width: 100%;
    align-self: center;
}

/* ---------------------------------------- */
/* Tablet: 2x2 Layout */
/* ---------------------------------------- */
@media screen and (max-width: 1500px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-item {
        border-left: 2px solid #811811;
        border-top: 2px solid #811811;
    }

    .service-item:nth-child(odd) {
        border-left: none; /* Erste Spalte Tablet */
    }

    .service-item:nth-child(-n + 2) {
        border-top: none; /* Erste Zeile Tablet */
    }
}

/* ---------------------------------------- */
/* Mobile: 1x4 Layout */
/* ---------------------------------------- */
@media screen and (max-width: 767px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-item {
        border-left: none;
        border-top: 2px solid #811811;
    }

    .service-item:first-child {
        border-top: none;
    }
}

@media screen and (max-width: 480px) {

    .service-item h3 {
        font-size: 1.5rem; /* Kleinere Schriftgröße für Überschriften */
    }

    .services-item {
        padding: 0;
    }
}

/* ---------------------------------------- */
/* Kundenlogos Clients – Slider-Version */
/* ---------------------------------------- */

.client-carousel-section {
    background-color: #fff;
    padding: 4rem 5%;
    text-align: center;
  }
  
  .client-carousel-heading {
    font-weight: bold;
    margin-bottom: 2rem;
    color: #000;
  }
  

  .carousel-track-wrapper {
    overflow: hidden;
    width: 100%;
  }
  
  .carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
  }


  .logo-slide {
    flex: 0 0 25%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    box-sizing: border-box;
    height: 120px; /* Einheitlicher Container */
  }
  
  /* Basis: Logo sitzt immer mittig */
  .logo-slide img {
    max-width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    display: block;
  }

  .logo-slide a {
    display: inline-block;
    width: 100%;
    height: 100%;
}


  
  /* Querformat: breiter als hoch → normale Höhe */
  .logo-slide img.wide {
    height: 100%;
    width: auto;
  }
  
  /* Hochformat oder rund → größer dargestellt */
  .logo-slide img.tall {
    height: 120%;
    width: auto;
  }
  
  
  /* Dots */
  .carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 1rem;
  }
  
  .carousel-dots .dot {
    width: 10px;
    height: 10px;
    background-color: #000;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  
  .carousel-dots .dot.active {
    background-color: #811811;
  }
  
  /* responsive */
@media screen and (max-width: 768px) {
    .client-carousel-section {
        padding: 1rem 5%;
        padding-top: 10%;
        padding-bottom: 10%;
    }
  
    .logo-slide {
        flex: 0 0 50%;
    }

}

