.product-page {
    padding-top: 2%;
    padding-bottom: 2%;
    padding-left: 5%;
    padding-right: 5%;
}


.product-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 2rem; /* Fügt Abstand zwischen Bild und Info hinzu */
    width: 80%;
    margin: 2rem auto; /* Zentriert den Container */
}


.subproduct-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 2rem; /* Fügt Abstand zwischen Bild und Info hinzu */
    width: 100%;
    margin: 2rem auto; /* Zentriert den Container */
}

.subproduct-container model-viewer {
    width: 40%;
    height: 400px; /* Höhe des Model Viewers */
    margin-bottom: 1rem;
}

.product-page h1 {
    padding-left: 7%
}

.product-button-wrapper {
    display: flex;
    justify-content: center;
}


.product-container .button {
    align-self: center;
}

.product-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    flex: 1 1 48%; /* Flexibles Wachstum/Schrumpfen + Basis */
    max-width: 48%; /* Verhindert zu viel Breite */
}

.subproduct-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    flex: 1 1 58%; /* Flexibles Wachstum/Schrumpfen + Basis */
    max-width: 58%; /* Verhindert zu viel Breite */
}

.product-name {
    margin-bottom: 1rem;
}

.product-description {
    margin-bottom: 1rem;
}

.product-image {
    flex: 1 1 48%; /* Flexibles Wachstum/Schrumpfen + Basis */
    max-width: 48%; /* Verhindert zu viel Breite */
    height: auto;
    max-width: 500px;
    margin-bottom: 1rem;
}

.product-container model-viewer {
    width: 50%;
    height: 400px; /* Höhe des Model Viewers */
    margin-bottom: 1rem;
    align-self: left;
}

.product-price {
    margin-bottom: 1rem;
}


/* Zweispaltige Beschreibung */

.product-description-two-columns {
    columns: 2;                 /* Anzahl der Spalten */
    column-gap: 2rem;           /* Abstand zwischen den Spalten */
    margin-bottom: 2rem;     /* Abstand nach unten */
             /* Optional: Abstand nach links und rechts */
}

@media screen and (max-width: 1420px) {
  .product-container, .subproduct-container {
    flex-direction: column;
    align-items: center;
  }

  .subproduct-container .button {
    align-self: center;
}

.subproduct-container model-viewer {
    width: 100%;
    max-height: 400px; /* Höhe des Model Viewers */
    margin-bottom: -5rem;
  }

  .product-image,
  .product-info {
    width: 80%;
    max-width: 80%;
  }

  .product-info {
    align-items: center;
    text-align: center;
  }

}


/* Responsive Design für die Produktseite */
@media screen and (max-width: 768px) {
    .product-image,
    .product-info {
        width: 100%;
        max-width: 100%;
    }

    .product-info {
        align-items: center;
        text-align: center;
    }

    .product-description-two-columns {
        columns: 1;
    }

    .image-text-container {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
}


/* Model Viewer Container */

.modelviewer-heading {
  text-align: left;
  margin-bottom: 2rem;
  margin-top: 4rem;
}

/* Container für Text + Modell nebeneinander */
.modelviewer-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  width: 100%;
  margin: 0 auto 0rem 0;
  flex-wrap: wrap; /* Für Fallback auf Mobile */
  padding-bottom: 5%;
}

/* Linke Spalte: Text */
.modelviewer-text {
  flex: 1 1 38%;
  max-width: 38%;
}

/* Rechte Spalte: 3D Viewer */
.modelviewer-viewer {
  flex: 1 1 58%;
  max-width: 58%;
  margin-top: -12rem; /* Abstand nach oben */
}

@media screen and (max-width: 768px) {
  .modelviewer-viewer {
    margin-bottom: -12rem; /* Abstand nach oben */
  }
}

.videoviewer-viewer, 
.imageviewer-viewer {
  flex: 1 1 58%;
  max-width: 58%;   
}

/* Beschreibung */
.modelviewer-description {
  text-align: left;
  margin-top: 0;
}

/* Mobile Responsive */
@media screen and (max-width: 1080px) {
  .modelviewer-container {
    flex-direction: column;
    align-items: center;
  }

  .modelviewer-heading {
    text-align: center;
  }

  .modelviewer-text,
  .modelviewer-viewer, 
  .videoviewer-viewer, 
  .imageviewer-viewer {
    max-width: 100%;
    width: 100%;
  }

  .modelviewer-description {
    text-align: left;
    padding: 1rem;
  }

  model-viewer {
    width: 100%;
    margin-top: -6rem; /* Abstand nach oben */
  }
}

/* Horizontaler Strich */

hr {
  width: 80%;
  margin-left: auto;
  margin-right: auto;
  margin-top: 4rem;
  margin-bottom: 4rem;
}


/* Standarddarstellung (ab Desktopgröße) */
.two-video-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  align-items: center;
}


.two-videoviewer-viewer {
  max-width: 49%;
}

/* Responsive Design ab Tabletgröße */
@media screen and (max-width: 1280px) {
  .two-videoviewer-viewer {
  max-width: 80%;
}
}

@media screen and (max-width: 768px) {
  .two-video-container {
    max-width: 100%;
  }

  .two-videoviewer-viewer {
    max-width: 100%;
    width: 100%;
  }
  
}

/* Main Rules */
:root{
  --white-c: #fff;
  --black-c: #000;
  --body-background-c: #FD7AC0;
  --wrapper-background-c: #D4F1F4;
  --wrapper-shadow-c: rgba(0, 0, 0, 0.219);
  --buttons-background-c: rgba(255, 255, 255, 0.219);
  --buttons-active-background-c: rgba(135, 207, 235, 0.493);
}

/* Wrapper */
.wrapper{

  position: relative;
  background-color: var(--wrapper-background-c);
  box-shadow: 0 0 80px var(--wrapper-shadow-c);
}
@media screen and (max-width: 768px) {
  .wrapper{
   margin-top: 15%;
  }
}


/* Images Area */
.images-area{
  width: 100%;
  position: relative;
  display: flex;
  overflow: hidden;
}

.firstImage {
  display: flex;
  width: max-content; /* Damit Bilder nebeneinander sind */
  transition: margin-left 0.5s ease;
}

.images-area img{
  width: 600px;
  max-height: 300px;
  transition: 0.3s cubic-bezier(.79,.03,0,.99);
  flex-shrink: 0;
}

/* Buttons Area  */
.buttons-area{
  width: 100%;
  max-height: 300px;
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  overflow: hidden;
}
.buttons-area > div{
  color: var(--white-c);
  background-color: var(--buttons-background-c);
  cursor: pointer;
  transition: 0.3s ease-in-out;
}
/* Buttons | Previous And Next */
.buttons-area > div:first-child{
  border-radius: 0 5px 5px 0;
  margin-left: -100px;
}
.buttons-area > div:last-child{
  border-radius: 5px 0 0 5px;
  margin-right: -100px;
}
/* Show The Buttons */
.wrapper:hover .buttons-area > div:first-child{
  margin-left: 0;
}
.wrapper:hover .buttons-area > div:last-child{
  margin-right: 0;
}
.buttons-area div:hover:not(div.disabled){
  background-color: var(--buttons-active-background-c);
}
.buttons-area div:not(div.disabled):active{
  opacity: 0.7;
}
/* Disabled Button */
.buttons-area > div.disabled{
  cursor: no-drop;
  opacity: 0.3;
}
.buttons-area div i{
  font-size: 70px;
}

/* Pagination Area */
.pagination-area{
  position: absolute;
  top: 90%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
/* Pagination Spans */
.pagination-area span{
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--white-c);
  margin-right: 5px;
  transform: scale(0.5);
  transition: 0.3s ease-in-out;
  opacity: 0.4;
}
/* Current Active Span */
.pagination-area span.active{
  transform: scale(1);
  opacity: 1;
}

/* End Wrapper */

.bullet-icon {
  width: 0.75em;
  height: 0.75em;
  flex-shrink: 0;
  margin-right: 0.4em;
  vertical-align: middle ;
}


/* -------------------- */
/* Image Wrapper one side */
/* -------------------- */

.image-text-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  width: 100%;
  margin: 0 auto 0rem 0;
  flex-wrap: wrap; /* Für Fallback auf Mobile */
}


.image-wrapper-left {
    width: 48%;
    overflow: hidden;
    display: flex;
    justify-content: left;
}

.image-wrapper-left img {
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
}

.text-wrapper-right {
    padding-top: 1rem;
    padding-bottom: 1rem;
    width: 48%;
    display: flex;
    flex-direction: column;
    justify-content: right;
}

.model-wrapper-right {
    width: 48%;
    overflow: hidden;
    display: flex;
    justify-content: right;
    margin-top: -10rem; /* Abstand nach oben verschoben für Model */
    margin-bottom: -8rem;
}

.text-wrapper-left {
    padding-top: 2rem;
    padding-bottom: 1rem;
    width: 48%;
    display: flex;
    flex-direction: column;
    justify-content: left;
}


/* Responsive Design für die Image Wrapper */


@media screen and (max-width: 1000px) {
    .image-text-container {
      
        flex-direction: column;
        align-items: center;
    }

    .image-wrapper-left,
    .text-wrapper-right, .model-wrapper-right, .text-wrapper-left {
        width: 100%;
        max-width: 100%;
        
    }

    .model-wrapper-right {
        margin-top: -3rem; /* Abstand nach oben entfernen */
    }

    .text-wrapper-right p {
    columns: 2;                 /* Anzahl der Spalten */
    column-gap: 2rem;           /* Abstand zwischen den Spalten */
    margin-bottom: 2rem;     /* Abstand nach unten */
             /* Optional: Abstand nach links und rechts */
    }

    .image-wrapper-left img {
        width: 100%;
        height: auto;
        transition: transform 0.5s ease;
    }
    .text-wrapper-right {
        align-items: center;
        text-align: left;
    }

}

@media screen and (max-width: 768px) {
    .text-wrapper-right p {
        columns: 1; /* Eine Spalte auf kleineren Bildschirmen */
        padding: 1rem;
    }
  
}


/* -------------------- */
/* 2 Modelviewers next to each other */
/* -------------------- */
.two-modelviewer-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0rem;
  margin: 0 auto 0rem 0;
  flex-wrap: wrap; /* Für Fallback auf Mobile */
  height: 50%;
}

.two-modelviewer-viewer {
  flex: 1 1 48%;
  max-width: 48%;
}

