.title {
  font-size: 50px;
  text-align: center;
  margin-top: 80px;
  margin-bottom: 40px;
  color: red; /* Titel bleibt rot */
}

.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 red; /* Rot für die untere Linie */
  padding-top: 5px;
  margin-left: auto;
  margin-right: auto;
}

.question button {
  width: 100%;
  background-color: red; /* Hintergrund standardmäßig rot */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 15px;
  border: none;
  outline: none;
  font-size: 27px;
  color: white; /* Schrift standardmäßig weiß */
  font-weight: 700;
  cursor: pointer;
  text-align: left;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.question button.active {
  background-color: red; /* Rot bleibt aktiv */
  color: white; /* Schrift bleibt weiß */
}

.question button:hover {
  background-color: darkred; /* Dunkleres Rot beim Hover */
}

.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; /* Standard Schrift in Weiß */
  padding: 0px 15px;
  text-align: left;
}

.question p.show {
  max-height: 1000px;
  opacity: 1;
  padding: 0px 15px 30px 15px;
  color: white; 
}

.d-arrow {
  transition: transform 0.5s ease-in, color 0.3s ease;
  color: white;
  flex-shrink: 0;
}

.d-arrow.rotate {
  transform: rotate(180deg);
  color: white; 
}

.question:hover {
  background-color: red; 
}

@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 */
  }
}
