.materials-headline {
  display: flex;
  flex-direction: column;
  background-color: #9a8577FF;
  position: relative;
  left: 50%;
  margin-top: -10rem;
  margin-left: -50vw;
  width: 100vw;
  align-items: center;
  padding-top: 12rem;
  padding-right: 6rem;
  padding-left: 6rem;
  padding-bottom: 4rem;
}

.materials-headline h1 {
  color: white;
  font-size: 3rem;
  font-family: mundial sans-serif;
  text-align: center;
  text-transform: uppercase;
}

.materials-headline p {
  margin-left: 5rem;
  margin-right: 5rem;
  margin-bottom: 0.5rem;
  text-align: center;
  font-size: 1.1rem;
}

.headline-img {
  flex: 1 1 100%;
  max-width: 100%;
  min-width: 320px;
  aspect-ratio: 32/10;
  overflow: hidden;
  border-radius: 20px;
  margin-top: 3rem;
}
#headline-img {
  transform: translateY(-120px);
  object-fit: cover;
  object-position: center;
}

.material-content {
  display: flex;
  flex-direction: column;
  position: relative;
  left: 50%;
  margin-left: -50vw;
  width: 100vw;
  align-items: center;
  padding-top: 2rem;
  padding-right: 6rem;
  padding-left: 6rem;
  padding-bottom: 2rem;

}

.material-detail-card {
  display: flex;
  flex-direction: row;
  background-color: #d9cec7FF;
  border-radius: 20px;
  padding: 2rem;
  gap: 2rem;
  width: 100%;
}

.material-detail {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  border-radius: 20px;
  width: 100%;
  padding: 0.5rem;
  background-color: #f9f8f6;
  color: #140d08FF;
}

.material-dropdown-title {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  width: 100%;
  color: #836a59FF;
}

.material-dropdown-column {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.detail-categories {
  display: flex;
  flex-direction: column;
  min-width: 35%;
}

.divider {
  border: none;
  height: 2px;
  background-color: #836a5980;
  width: 100%;
  margin-top: 0.65rem;
  margin-bottom: 1rem;
}

.material-tabs {
  display: none;
  flex-direction: column;
}

.tab-bar {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: space-between;

}

.tab-bar h3 {
  color: #836a59FF;
  font-size: 1rem;
  max-width: 100%;
}

.tab-item {
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  padding: 0.5rem;
  padding-bottom: 0;
  min-height: 3rem;
  text-align: center;
  margin-bottom: -2px;
}
.tab-selected {
  background-color: #f1edeaFF;
  /*background-color: #d9cec7FF;
  border-style: solid;
  border-color: #836a5980;
  border-top-width: 2px;
  border-left-width: 2px;
  border-right-width: 2px;
  border-bottom-width: 0;
  z-index: 5;*/
}
.detail-row {
  background-color: #f1edeaFF;
  padding: 0.5rem;
  border-radius: 10px;
  /*border-style: solid;
  border-color: #836a5980;
  border-width: 2px;*/
}
.row-first {
  border-top-left-radius: 0;
}
.row-last {
  border-top-right-radius: 0;
}

.detail-row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.5rem;
  .material-detail {
    flex: 1 1 40%;
  }
}

@media screen and (max-width: 767px) {
  .materials-headline {
    margin-top: -8rem;
    padding-top: 10rem;
    padding-right: 1rem;
    padding-left: 1rem;
  }
  .materials-headline p {
    margin-left: 1rem;
    margin-right: 1rem;
  }
  .materials-headline h1 {
    font-size: 2rem;
  }
  .material-headline-text {
    background-image:
      linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
      url("../img/material-1.jpg");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    border-radius: 20px;
    padding: 1rem;
    padding-top: 2rem;
    padding-bottom: 2rem;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .headline-img {
    display: none;
  }

  .material-content {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .detail-categories {
    display: flex;
    flex-direction: row;
  }

  .divider {
    border: none;
    height: 2rem;
    background-color: #836a5980;
    width: 2px;
  }

  .material-detail-card {
    display: flex;
    flex-direction: column;
    background-color: #d9cec7FF;
    border-radius: 20px;
    padding: 1rem;
    gap: 1rem;
    width: 100%;
  }
  .material-dropdown-column {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .detail-categories {
    display: none;
  }
  .material-tabs {
    display: flex;
  }
}
