body,
html {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

p,
h1,
h2,
h3,
h4,
h5,
a,
li,
input {
  font-family: "Arimo";
  text-decoration: none;
}

div {
  display: flex;
  flex-direction: column;
}

.Screen {
  width: 100vw;
  height: auto;
  min-height: 100vh;
  position: relative;
}

.L_Screen {
  width: 95vw;
  padding-left: 2.5vw;
  padding-right: 2.5vw;
  justify-content: flex-end;
}

.L_Screen h2 {
  font-size: clamp(1em, 2vw, 3em);
  font-weight: 300;
}

.L_Project_Holder {
  width: 100%;
  height: auto;
  flex-direction: row;
  margin-bottom: 5vh;
  flex-wrap: wrap;
}

.Project_Item {
  width: 24%;
  height: 30vh;
  margin-right: 5px;
  margin-bottom: 5px;
  position: relative;
  background-size: cover;
  background-position: center;
}

/* Alle anderen (1. und 4., 5. und 8., ...) bleiben bei 60% */

.PI_Darkener {
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  position: absolute;
  z-index: 2;
  background-color: black;
  opacity: 0.3;
  transition: 0.3s ease;
}

.PI_Title {
  position: absolute;
  bottom: 0%;
  left: 5%;
  z-index: 3;
  font-size: clamp(1em, 1.25vw, 2em);
  font-weight: 600;
  color: white;
}

.Project_Category {
  width: 100%;
  padding-left: 2.5%;
  padding-right: 2.5%;
  padding-top: 3.33vh;
  padding-bottom: 2.5vh;
  box-sizing: border-box;
  flex-direction: column;
}

.Category_Head {
  font-family: "Manrope";
  font-size: clamp(1em, 2vw, 3em);
  font-weight: 400;
  color: black;
}

.Project_Item:hover .PI_Darkener {
  opacity: 0;
}

@media (max-width: 900px) {
  .Category_Head {
    font-size: clamp(1em, 3vh, 4em);
  }

  .L_Project_Holder {
    flex-direction: column;
  }

  .Project_Item {
    width: 100%;
    height: 30vh;
  }

  /* Jedes 2. Element und jedes 3. Element: 40% Breite */
  .Project_Item:nth-child(4n + 2),
  .Project_Item:nth-child(4n + 3) {
    width: 100%;
  }

  .PI_Title{
    font-size: clamp(1em, 2.5vh, 4em);
  }
}


@media (min-width: 1800px) {
  .Screen {
    max-width: 1600px; /* Setze hier deine gewünschte maximale Breite */
    margin: 0 auto; /* Zentriert das Container-Element */
  }

}
