/*allgemein*/
.heroSection{
    width: 100%;
    background-image: url(Bilder/teamHero.png);
    background-position: center;
    background-size: cover;
    position: relative;
    background-repeat: no-repeat;
}

#angebotHeroBtn{
    position: absolute;
    bottom: 5%;
    left: 5%;
}

#callBtnHero{
    position: absolute;
    bottom: 5%;
    right: 5%;
    border-radius: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#angeboteHeading{
  margin-left: 5%;
  width: 90%;
}

.headingCenter{
  width: 100%;
  text-align: center;
}

.cardContainer {
  display: flex;
  gap: 32px;
  justify-content: center;
  margin: 80px 0;
  flex-wrap: wrap;
}

.angebotCard {
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  overflow: hidden;
  width: 320px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin-bottom: 24px;
}

.cardImg {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}

.cardCaption {
  background: var(--darkblue);
  padding: 16px;
  text-align: center;
}

.cardToggle {
  background: var(--ligthGrey);
  color: black;
  border: none;
  padding: 10px 0;
  cursor: pointer;
  font-size: 1rem;
  transition: 0.2s;
}

.cardToggle:hover {
  background: var(--midGrey);
}

.cardText {
  max-height: 0;
  overflow: hidden;
  background: #f5f5f5;
  transition: max-height 0.3s ease;
  padding: 0 16px;
}

.angebotCard.open .cardText {
    max-height: 400px; 
    padding: 16px;
}

#warumHeading{
    margin-left: 5%;
    width: 90%;
    margin-bottom: 80px;
}

#headingWarum{
    margin-bottom: 10px;
}

.warumCardContainer {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  max-width: 1600px;
  margin: 40px auto;
  gap: 2vw;
  justify-content: center;
}

.warumCard {
  background: transparent;
  perspective: 1000px;
  cursor: pointer;
  outline: none;
  transition: transform 0.2s;
}

.warumCardInner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.9s cubic-bezier(.4,2,.6,1); /* Dauer erhöht */
  transform-style: preserve-3d;
}

.warumCardFront, .warumCardBack {
  position: absolute;
  width: 100%;
  height: 100%;
  box-sizing: border-box; /* Hinzufügen */
  backface-visibility: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px; /* Gleicher Wert auf beiden Seiten! */
  text-align: center;
  overflow-wrap: break-word; /* Für lange Wörter */
}

.warumCardFront {
  z-index: 2;
}

.warumCardBack {
  background: var(--darkblue);
  color: #fff;
  transform: rotateY(180deg);
  padding: 24px;
  text-align: center;
}

.warumIcon {
  margin-bottom: 18px;
}

.warumCard h3 {
  color: var(--darkblue);
  font-size: 1.3rem;
  margin: 0;
}

.warumCardBack p {
  font-size: 1rem;
  margin: 0;
}

.warumCard.flipped .warumCardInner,
.warumCard:hover .warumCardInner {
  transform: rotateY(180deg);
}

/* Auf dem PC: Flip bei Hover, auf Handy nur bei .flipped */
@media (hover: hover) and (pointer: fine) {
  .warumCard:active .warumCardInner,
  .warumCard:focus .warumCardInner {
    /* Kein Flip auf Klick, nur Hover */
    transform: none;
  }
}

#ablauf {
  margin-top: 120px;
}

.ablaufCard {
  display: flex;
  align-items: flex-start;
  background: #06153a;
  color: #fff;
  margin: 64px 0 48px 0;
  min-height: 180px;
  position: relative;
  padding: 48px 0 36px 0;
  width: 90%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  border-radius: 0;
  flex-direction: column;
}

.ablaufNum {
  position: absolute;
  top: 0;
  left: 25%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  background: #182a5c;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}

.ablaufContent {
  margin-top: 35px; /* Platz für die Zahl oben */
  width: 90%;
  margin-left: 5%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ablaufContent h3 {
  color: #fff;
  text-align: center;
  margin-bottom: 10px;
}

.ablaufContent p {
  margin: 0 0 20px 0;
  color: #fff;
  text-align: center;
}

#ablaufBtn {
  background-color: red;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 8px;
  padding: 14px 32px;
  margin-top: 18px;
  border: none;
  cursor: pointer;
  align-self: center;
}

#gallerieHead{
  margin-left: 5%;
  margin-bottom: 40px;
  margin-top: 250px;
}

.slider {
    position: relative;
    width: 95%;
    margin-left: 5%;
    overflow: hidden;
    margin-bottom: 5vh;
}

.slider-track {
    display: flex;
    transition: transform 0.4s ease-in-out;
}

.slide {
    min-width: 45%;
    box-sizing: border-box;
    margin-right: 3vw;
}

.slide img {
    width: 100%;
    border-radius: 16px;
    display: block;
    height: 400px;
    object-fit: cover;
}

.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0);
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
}

.arrow.left {
    left: 10px;
}

.arrow.right {
    right: 10px;
}

#ratingGallery{
  margin-left: 5%;
  width: 150px;
}

#kontaktLeft{
    float: left;
    margin-top: 20vh;
    width: 40%;
    margin-left: 5%;
    margin-right: 5%;
    height: 580px;
  #kontaktImg{
    width: 100%;
    height: 100%;
    border-radius: 16px;
    object-fit: cover;
    float: left;
  }
}

#kontaktRight{
    float: left;
    margin-top: 20vh;
    width: 45%;
    margin-right: 5%;
    height: 560px;
    #textContactRight{
        margin-top:10px;
        margin-bottom: 10px;
    }
}

#kontaktDiv{
    background-color: #1C3253;
    border-radius: 8px;
    margin-top: 30px;
}

.kontaktForm{
  padding-top: 20px;
  padding-bottom: 1px;
}
    input, select, textarea {
    border-radius: 8px;
    color: white;
    border: none;
    box-sizing: border-box;
    width: 90%;
    display: block;
    padding-bottom: 10px;
    padding: 10px;
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 26px;
    margin: 0;
    background-color: #001333;
    margin-left: 5%;
    margin-top: 20px;
  }

  textarea {
    height: 140px;
  }
  
  .submitButton {
    margin-left: 5%;
    background-color: #155FE7;
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 600;
    font-size: 16px;
    line-height: 150%;
    color: #FFFFFF;
    border: 0;
    border-radius: 16px;
    width: 200px;
    height: 56px;
    margin-top: 30px;
    margin-bottom: 30px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .submitButton:hover {
    transform: scale(1.1); /* Vergrößert den Button beim Hovern */
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2); /* Fügt einen leichten Schatten hinzu */
}

.submitButton:active{
    transform: scale(1.15); /* Vergrößert den Button noch ein wenig mehr beim Klicken */
    box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.3); /* Reduziert den Schatten leicht */
}

#footer{
  margin-top: 900px;
  background-color: var(--darkblue);
}

/*PC*/

@media only screen and (min-width: 1001px){
    .heroSection{
        height: 700px;
    }
    #heroText{
        position: relative;
        top: 20px;
        left: 27%;
    }
    #callBtnHero{
        width: 63px;
        height: 63px;
    }
    #phoneSvg{
        width: 30px;
    }

    #ratingHero {
        position: absolute;
        bottom: 5%;
        left: 70%;
        transform: translateX(-50%);
        max-height: 63px;
        transition: transform 0.3s ease;
        display: inline-block; /* hinzugefügt */
    }
    #ratingHero.hover-grow:hover,
    #ratingHero:hover {
        transform: translateX(-50%) scale(1.1); /* Skalierung beim Hover */
    }

    .videoSection{
        margin-top: 5%;
    }
    .video{
        width: 90%;
        margin-left: 5%;
    }

    #willkommenImg{
        width: 90%;
        margin-left: 30px;
    }

    #willkommenImgDiv{
        position: relative;
        width: 100%;
    }

     #erfahrungText{
        width: 350px;
        height: 70px;
        background-color: var(--ligthGrey);
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 100;
        position: absolute;
        bottom: -25px;
    }

    #willkommenSection{
        margin-top: 70px;
    }

    #angebote{
    margin-top: 140px;
    }

    #warum{
        margin-top: 190px;
    }

    #warumHeading{
        margin-bottom: 150px;
    }

    .warumCardContainer {
    justify-content: center;
    gap: 2vw;
  }
  .warumCard {
    flex: 1 1 0;
    width: 22vw;
    max-width: 380px;      /* Maximal 380px */
    aspect-ratio: 1 / 1;   /* Quadratisch */
    height: auto;
    margin: 0;
    transition: transform 0.2s;
  }
  .warumCard:hover {
    transform: scale(1.07);
    z-index: 2;
  }

  #ablauf{
    margin-top: 270px;
  }

  .ablaufNum{
    width: 100px;
    height: 100px;
    left: 10%;
  }

  .ablaufCard {
    margin: 110px 0 48px 0;
    min-height: 180px;
    position: relative;
    padding: 48px 0 36px 0;
    width: 90%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    border-radius: 0;
    flex-direction: column;
  }

  #ratingGallery{
    width: 250px;
  }

  #kontakt{
    margin-top: 140px;;
  }
}

/*mobile */

@media only screen and (max-width: 1000px){
    .heroSection{
        height: 65vw;
        overflow-x: hidden;
    }
    #heroText{
        position: relative;
        top: 24px;
        left: 5px;
    }
    #callBtnHero{
        width: 47px;
        height: 47px;
    }
    #phoneSvg{
        width: 20px;
    }
    #ratingHero{
        position: absolute;
        left: 5%;
        bottom: -65px;
        width: 130px;
    }
    .videoSection{
        margin-top: 120px;
    }
    .video{
        width: 100%;
    }
    #willkommenImgDiv{
        width: 90%;
        margin-left: 5%;
        margin-top: 120px;
        position: relative;
    }

    #willkommenImg{
       width: 90%;
       margin-left: 5%;
    }

    #erfahrungText{
        width: 250px;
        height: 50px;
        background-color: var(--ligthGrey);
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 100;
        position: absolute;
        bottom: -25px;
    }

    #willkommenTextDiv{
        margin-left: 5%;
        margin-top: 25%;
        width: 90%;
    }

    .headingCenter{
        text-align: left;
    }
    .cardImg{
        height: 250px;
    }

    .warumCardContainer {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }
  .warumCard {
    width: 90%;
    max-width: 350px;
    height: 220px;
    margin: 0 auto; /* <-- Hinzufügen */
  }
  .warumCard h3 {
    font-size: 1.1rem;
  }

    #angebote{
    margin-top: 140px;
    }

    .cardContainer {
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }
  .angebotCard {
    width: 75%;
    max-width: 400px;
  }

    #warum{
        margin-top: 120px;
    }

    #ablaufHead{
      margin-left: 5%;
      width: 90%;
    }

    #ablauf{
      margin-top: 140px;
    }

    #gallerieHead{
      margin-left: 5%;
      margin-bottom: 20px;
      margin-top: 140px;
    }

     .slider {
        width: 92.5%;
        margin-left: 7.5%;
    }
    
    .slide {
        min-width: 85%;
    }
    
    .slide img {
        height: 270px;
    }

        #kontaktRight{
        float: left;
        margin-top: 20vh;
        width: 90%;
        margin-right: 5%;
        margin-left: 5%;
        height: 560px;
    }
    

      textarea {
        height: 190px;
      }
      
      .submitButton {
        margin-left: 5%;
        background-color: #155FE7;
        font-family: 'Montserrat';
        font-style: normal;
        font-weight: 600;
        font-size: 14px;
        line-height: 150%;
        color: #FFFFFF;
        border: 0;
        border-radius: 16px;
        width: 160px;
        height: 50px;
        margin-top: 30px;
        margin-bottom: 30px;
      }

      #contactInfo{
        width: 90%;
        float: left;
        display: flex;
        justify-content: center;
        margin-left: 5%;
        margin-bottom: 10px;
        margin-top: 15vh;
    }
}