*{
    box-sizing: border-box;
}
#Projekte{
    padding-top: 95px;
    background-color: white;
    display:flex;
    flex-direction: column;
    align-items: center;
}
#Projekte section{
    display: flex;
    flex-direction: row;
    color:black;
    justify-content:center;
    align-items: center;
    padding:0;
    margin:0;
}
#Projekte section:nth-child(even){
    background-color: rgb(242, 242, 242);
}
.preview {
    max-height: 350px;
    max-width:350px;
    display: grid;
    place-items: center;
}
.preview img {
    transition: 1s ease-in-out;
    display: block;
    width:100%;
    height: auto;
    filter: drop-shadow(0px 0px 8px white);
}
.projektCaption{
    width:450px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px 0px 20px 20px;
}
.projektCaption h2, .subsite-link{
    color:black;
    text-decoration: none;
    margin: 0;
}
.tagbox{
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}
.leistungs-tag{
    border-radius: 14px;
    height: 28px;
    border: rgb(186, 186, 186) solid 0.5px;
    background-color: rgb(216, 216, 216);
    display: flex;
    justify-content: center;
    align-items: center;
    color: rgba(0, 0, 0, 0.8);
    width: max-content;
    padding: 0 7px 0 7px;
    font-size:0.9em;
    font-weight: 400;
}
@media (max-width:720px){
    .preview{
        max-width:40%;
    }
}
@media (max-width:720px){
    #Projekte section{
        display: flex;
        flex-direction:column;
    }
    .preview{
        display: flex;
        align-items: center;
        justify-content: center;
        max-width: 400px;
        overflow-y: hidden;
    }
    .preview img {
        width: 100%;
        height: auto;
        display:block;
        object-fit: fill;
    }
    .projektCaption{
        z-index: 2;
        width: 100%;
        padding-bottom:25px;
       /* box-shadow: 0px 20px 40px 30px rgba(0, 0, 0, 0.6);*/
        padding: 10px 10px 30px 10px;
    }
}
/*
    <<< STYLING FUER DIE UNTERSEITEN >>>
    */
.projektUnterseite{
    padding: 120px 0px 0px 0px;
    background-color: gray;
    align-items: start;
}
.projektBeschreibung{
    max-width: 1080px;
    min-height:35vh;
}
.projektBeschreibung p{
    color: black;
    max-width: 70ch;
}
.projektCaption p{
    color:black;
    margin: 0;
}
#slides-container {
    width: 100%;
    display: flex;
    justify-content: left;
    overflow: auto;
    gap: 20px;
    scroll-padding: 20px;
    transition: transform 0.5s ease;
    scroll-snap-type: x mandatory;
    padding: 20px 20px 35px 20px;
  }
  .slide {
    display: inline-block;
    max-width: 400px;
    height: auto;
    scroll-snap-align: start;
    flex: 0 0 100%; /* Fix width calculation */
    vertical-align: top;
    filter: drop-shadow(1px 1px 10px black);
    border: rgba(255, 255, 255, 0.5) solid 0.5px; 
  }
  
  .slide img {
    width: 100%;
    height: 100%;
  }
  
  .navigation-buttons {
    position: relative;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    background-color: rgba(0, 0, 0, 0.65);
    border-radius: 19px;
    border: rgba(255, 255, 255, 0.5) solid 0.5px;    

  }
  
  .navigation-buttons button {
    border: rgba(255, 255, 255, 0.1) solid 0.5px;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.25);
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 19px;
  }
  
  .navigation-buttons button:hover {
    background-color: rgba(255, 255, 255, 0.8);
    color: #000;
    transition: 0.5s;
  }
  
  @media (min-width: 1920px) {
    #slides-container {
      justify-content: center; /* Center slides when window is wide enough */
    }
  }
  
  @media (max-width: 800px) {
    .slide {
      max-width: 60%;
    }
    #slides-container{
        gap:5%;
        padding: 3% 3% 5% 3%;
    }
  }