:root {
  --overlay: rgba(255, 176, 103, 0.6);
}

#projekte {
  min-height: 150vh;
  background: linear-gradient(
    #000,
    #111,
    #222,
    #333,
    #a67b54,
    #ffad61,
    #ffb067
  );
}

#projekte-content {
  padding: 0 15px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  text-align: left;
}

.indexes {
  font-size: 1rem;
  display: flex;
  flex-direction: column;

  & li {
    padding: 1.2rem;
    border: 1px solid transparent;
    cursor: pointer;
    background-color: #ffb067;
  }
  & li:hover {
    border-color: rgba(255, 176, 103, 0.6) !important;
    background-color: #facea4;
  }
}

@keyframes content {
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
.div-tabs {
  position: relative;
  max-width: 1200px;
  width: 100%;
  background: black;
}
.tab-content {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  opacity: 0;
  transform: translateY(-5rem);
  padding: 30px;

  & h3 {
    font-weight: 900;
    font-size: 1rem;
    border-bottom: 1.5px solid white;
    padding: 0rem 0 0.5rem;
    color: white;
  }

  & p {
    font-weight: 100;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.7);
  }

  & .button {
    width: fit-content;
    background-color: transparent;
    color: white;
    border: 1px solid white;
    padding: 0.75rem 1rem;
    cursor: pointer;
    display: inline-block;
    margin-bottom: 5px;
  }
  & .button:hover {
    background-color: #362515;
    color: #fff;
    border: 1px solid #ff7e67;
  }
}

.tab-image {
  position: absolute;
  opacity: 0;
  transform: translateX(2rem);
  top: 0;
  background: black;

  &::after {
    content: "";
    position: absolute;
    inset: 0;
    background-color: var(--overlay);
    mix-blend-mode: multiply;
  }

  & img {
    filter: grayscale(100%);
  }
}

@keyframes image {
  100% {
    opacity: 1;
    width: 100%;
    transform: translateX(0);
  }
}
.active .tab {
  opacity: 1;
  z-index: 5;
}
.active .tab-content {
  animation: content 0.9s ease-out 0.4s forwards;
  background: black;
  z-index: 6;
  position: absolute;
  top: 35%;
  opacity: 0.1;
}
.active .tab-image {
  animation: image 1s ease-out forwards;
}

@media (min-width: 500px) {
  .active .tab-content {
    top: 58%;
  }
}

@media (min-width: 768px) {
  .active .tab-content {
    top: 80%;
  }
}

@media (min-width: 992px) {
  .active .tab-content {
    top: 100%;
  }
  .tab-image {
    background: #fdcc9f;;
  }  
}

@media (min-width: 1200px) {
  #projekte {
    min-height: 100vh;
  }

  #projekte-content {
    padding: 0 30px;
  }

  .div-tabs {
    overflow: hidden;
  }  

  .active .tab-content {
    display: flex;
    justify-content: flex-start;
    width: 50%;
    height: 100%;
    top: 0;
  }

  .tab-image {
    width: 50%;
  }

  .tab-content .button {
    margin-bottom: 0;
  }
}
