/*--- Hero-Area & Menu ------------------------------*/
body {
  background-color: #f1f4ff;
}


.hero-area{
    background-color: var(--color-code-accent);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 20rem;
    position: relative;
    margin-top: -4.5rem;
    z-index: -1;
  } 

.hero-text {
    color: #f1f4ff;
    text-align: left;
    font-family: "IBMPlexSans";
    font-weight: 600;
    font-size: 1.75rem;
    line-height: 135%;
  } 

.hero-content {
  display:flex;
  justify-content:flex-start;
  width: 100%;
  align-content: center;
  padding-left: 1rem;
  padding-top: 1rem;
  padding-right: 1rem;
  height: 100%;
  }
  
  
.img-and-text {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 0 1rem 0 1rem;
    gap: 1rem;
  }
  
  .portait {
    z-index: 2;
  }
  
  .portait-img {
    width: 100px;
    height: auto;
    border-radius: 0.5rem;
  }
  
  li {
    list-style: none;
    font-family: "IBMPlexSans";
    font-size:  2rem;
    margin: 0rem;
  }
  
.menu ul a.home{
    color: var(--color-code-accent);
    background-color: #ffffff;
    border-radius: 0.25rem 0.25rem 0 0;
    text-underline-offset: 0.5rem;
  }

/* --- About --- */

.about-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.about-section {
 width: 100%;
 display: flex;
 justify-content: center;
 align-items: center;
 padding-top: 2rem;
}
  

.text-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
}

.text-block h2 {
  padding: 0 1rem 0 1rem;
  color: var(--color-code-accent);
}


.contact-text{
line-height: 215%;
}

.about-text {
padding-top: 1rem;
}

#mail {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

  /*--- Responsive-Optimierung Hero Area------------------------------*/

@media (min-width: 768px) {
    .hero-area{
        height: 20rem;
      } 

    .hero-content {
        width: 600px;
      }

    .portait-img {
        width: 140px;
      }

    .img-and-text {
      gap: 1.5rem;
    }
    
    .hero-text {
        font-size: 2rem;
    }

}    
  
 
/* Tablets (landscape) and small laptops */
@media (min-width: 992px) {
    .hero-area{
        height: 25rem;
        margin-bottom: 4rem;
      } 

    .hero-content {
        width: 700px;
    }

      .portait-img {
        width: 140px;
      }

      .menu ul a.home{
        font-size: 1.5rem;
      }
    
      .menu ul a.about{
        font-size: 1.5rem;
      }

      .img-and-text {
        gap: 2rem;
      }
  }
  
  /* Large desktops */
  @media (min-width: 1200px) {
    .hero-area{
        height: 28rem;
        margin-bottom: 1rem;
      } 

    .hero-text {
        font-size: 2.25rem;
      }

    .menu ul a.home{
        font-size: 1.5rem;
      }
    
    .menu ul a.about{
        font-size: 1.5rem;
      }

  }


  
  /*--- Main ------------------------------*/
  .main {
   width: 100%;
  }
  
  .section-headline {
    font-size: 1.2rem;
    color: #4D4D4D;
    text-align: center;
    padding: 2rem 0 2rem 0;
  }
  

  .cases-wrapper {
    display: flex;
    gap: 2rem;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0rem 1rem 0rem
  }

  .case-wide {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: auto;
    padding: 3rem 0rem 3rem 0rem;
    margin: 0 1rem 0 1rem;
    border-radius: 12px;
    background: rgb(184 184 184 / 15%);
    border: 1px solid #0000001e;
  }
  
  .case-grid {
    display: grid;
    row-gap: 1.5rem;
  }

  .case-left {
    display: grid;
    grid-column-start: 1;
    grid-column-end: 4;
    padding: 3rem 0px;
    margin: 0 1rem 0 1rem;
    border-radius: 12px;
    background: rgb(184 184 184 / 15%);
    border: 1px solid #0000001e;
}
  
  .case-right {
    display: grid;
    grid-column-start: 1;
    grid-column-end: 4;
    padding: 3rem 0px;
    margin: 0 1rem 0 1rem;
    border-radius: 12px;
    background: rgb(184 184 184 / 15%);
    border: 1px solid #0000001e;
  }
  
  .case-content{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 1rem;
  }
  
  .case-img {
    max-width: 300px;
    height: auto;
  }
  
  .case-category {
    padding: 1rem 0 0.25rem 0rem;
    color:#4D4D4D;
  }

  .case-title {
    font-size: 1.25rem;
    padding-top: 0rem;
  }
  
  .btn-group {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 1rem;
    gap: 0.5rem;
  }
  

  .btn-primary {
    align-items: center;
    font-size: 1.2rem;
    cursor: pointer;
    text-align: center;
  }

  .btn-primary a{
    font-family: "IBMPlexSans";
    cursor: pointer;
  }

  .about-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .text-section {
   width: 100%;
   display: flex;
   justify-content: center;
   align-items: center;
  }
  
  .text-block {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
  }

  .text-block h2 {
    padding: 0 1rem 0 1rem;
 
  }

/*--- Responsive-Optimierung ------------------------------*/
@media (max-width: 300px) {
 
    
  .portait-img {
    display: none;
  }
  

}
@media (min-width: 414px) {
  .case-img {
    max-width: 320px;
  }

}

@media (min-width: 768px) {

    .cases-wrapper {
        padding: 0rem 2rem 0rem;
    }
    
    .case-wide {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        height: auto;
        border-radius: 12px;
      }

    .case-img {
        max-width: 600px;
        width: 100%;
      }

    .case-title {
        font-size: 1.25rem;
        padding-top: 0.25rem;
      }
      
    .btn-group {
        flex-direction: row;
        width: 100%;
    }

    .btn-primary{
        min-width: 6rem;
        max-width: 12rem;
    }
    

    .btn-secondary{
        max-width: 20rem;
        width: 100%;
    }

    .text-section {
        width: 100%;
    }
    
    .text-block {
        max-width: 600px;
    }
    
    .text-block h2 {
        padding: 0 1rem 0 1rem;
    
    }
}    
  
 
/* Tablets (landscape) and small laptops */
@media (min-width: 992px) {
    
    .case-grid {
        row-gap: 2rem;
        grid-template-columns: 50% 50%;
      }

    .case-row {
        display: flex;
        flex-direction: row;
     }

    .case-left {
      grid-column-start: 1;
      grid-column-end: 2;
    }

    .case-right {
      grid-column-start: 2;
      grid-column-end: 3;
    }

    .case-title {
      font-size: 1.25rem;
      padding-top: 0.5rem;
    }

    .img-wrapper {
      display: flex;
      align-items: center;
      justify-content: center;
      height: 520px;
    }

      .text-block {
        max-width: 700px;
    }
  }
  
  /* Large desktops */
  @media (min-width: 1200px) {
    .section-headline {
        padding: 4rem 0 4rem 0;
    }
    
    .case-category {
        padding: 1rem 0 0rem 0rem;
        color:#4D4D4D;
      }

  }
