/* ================================================================= */
/*                           Allgemeine Stile                        */
/* ================================================================= */
@import url('../css/variables.css');

/* ======================= Grundstruktur ======================= */
.benefits-section {
  width: 100%;
  background-color: #f3f4ed;
  padding: 6rem 2rem;
}

/* =============== Container für Benefits-Inhalte =============== */
.benefits-container {
  max-width: 99rem;
  height: 50rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

/* ============= Textbereich der Benefits-Sektion ============== */
.benefits-tagline {
  font-size: 1.1rem;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 0.25rem;
}

.benefits-text {
  flex: 1 1 50%;
  max-width: 600px;
  padding-right: 2rem;
}

.benefits-heading {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 2rem;
  line-height: 1.2;
  color: #212121;
}

.benefits-description {
  font-size: 1.2rem;
  margin-bottom: 3rem;
  color: #333;
}

/* =============== Auflistung der Features =============== */
.benefits-features {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

/* ================== Einzelnes Feature ================== */
.benefit-item {
  flex: 1 1 45%;
}

.benefit-item h4 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #212121;
}

.benefit-item p {
  font-size: 1rem;
  color: #555;
}

/* ========== Bildbereich der Benefits-Sektion ========== */
.benefits-image-wrapper {
  flex: 1 1 40%;
  text-align: center;
}

.benefits-image {
  width: 100%;
  max-width: 700px;
  height: 600px;
  border-radius: var(--border-radius);
  object-fit: cover;
}

/* ========= Button-Bereich der Benefits-Sektion ======== */
.benefits-button-wrapper {
  margin-top: 2rem;
}

.benefits-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: #000;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.3s ease;
}

.benefits-button i {
  transition: transform 0.3s ease;
}

.benefits-button:hover i {
  transform: translateX(5px);
}

/* ================================================================= */
/*                        Responsive Anpassungen                     */
/* ================================================================= */
@media (max-width: 768px) {

  /* ============ Anpassungen für die mobile Ansicht ============ */
  .benefits-section {
    padding: 4rem 1rem;
  }

  .benefits-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: auto;
    text-align: left;
    gap: 2rem;
  }

  .benefits-text {
    max-width: 100%;
    padding: 0;
    text-align: left;
  }

  .benefits-heading {
    font-size: 1.7rem;
    margin-bottom: 1.5rem;
  }

  .benefits-description {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .benefits-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .benefit-item {
    flex: none;
    text-align: left;
  }

  .benefit-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
  }

  .benefit-item p {
    font-size: 1rem;
    line-height: 1.5;
  }

  .benefits-button-wrapper {
    margin-top: 1.5rem;
    width: 100%;
  }

  .benefits-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: #000;
    background: none;
    border: none;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 0;
  }

  .benefits-image-wrapper {
    width: 100%;
    text-align: left;
    margin-top: 1.5rem;
    order: 2;
  }

  .benefits-image {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    object-fit: cover;
  }
}
