.title {
  font-size: 50px;
  text-align: center;
  margin-top: 80px;
  margin-bottom: 40px;
  text-decoration: underline 4px;
  color: #fff;
}

.FAQ {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
  padding: 20px;
}

/* Container for questions */
.questions-container {
  max-width: 800px;
  margin: 0 auto;
}

/* Individual question styles */
.question {
  border-bottom: 1px solid #333;
  padding-top: 5px;
  margin-left: auto;
  margin-right: auto;
}

.question button {
  width: 100%;
  background-color: #333;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 15px;
  border: none;
  outline: none;
  font-size: 27px;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
}

.question-text {
  flex-grow: 1;
  padding-right: 15px; /* Abstand zwischen Text und Icon */
}

.question p {
  font-size: 20px;
  max-height: 0;
  opacity: 0;
  line-height: 1.5;
  overflow: hidden;
  transition: all 0.6s ease;
  color: white;
  padding: 0px 15px;
  text-align: left;

}

.d-arrow {
  transition: transform 0.5s ease-in;
  color: #f9ac54;
  flex-shrink: 0; /* Verhindert das Schrumpfen des Icons */
}

/* add this class when click */
.question p.show {
  max-height: 1000px;
  opacity: 1;
  padding: 0px 15px 30px 15px;
}

.question button .d-arrow.rotate {
  transform: rotate(180deg);
}

.question:hover,
.question.hover {
  background-color: var(--primary-color-extra-light);
  border-color: var(--secondary-color);
}

@media (max-width: 600px) {
  .title {
    font-size: 40px;
  }
  .question p {
    font-size: 15px;
  }
  .question span {
    font-size: 20px;
  }
  .question {
    padding-top: 5px;
    margin-left: 0px;
    margin-right: 0px;
  }
  .question button {
    padding: 15px; /* Anpassung des Innenabstands für mobile Geräte */
  }
  .question-text {
    padding-right: 10px; /* Anpassung des Abstands für mobile Geräte */
  }
}
