.prijslijst {
  margin-top: 48px;
}

.pricing {
  background: var(--light-background);
  color: var(--secondary-color);
  border-radius: 24px;
  padding: 5%;
  margin: 5% auto;
  display: flex;
  flex-direction: column;
  min-height: 300px; /* Adjust as needed */
}

.flex {
  display: flex;
  justify-content: space-around;
}

.flex2 {
  height: 100%;
}

.flex_content {
  padding: 5% 10%;
  flex: 1;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  word-wrap: break-word; /* Force text to wrap */
  overflow-wrap: anywhere; /* Break words at any character */
}

.flex_content-third {
  padding: 5% 4% !important;
  flex: 1;
  flex-grow: 1;
  display: flex; /* Enable Flexbox */
  flex-direction: column; /* Stack content vertically */
}

.flex_content-third h6 {
  display: flex; /* Use Flexbox for vertical alignment */
  margin: 0;
}

.flex_content h3 {
  font-weight: 600;
}

.flex_content h5 {
  font-weight: 600;
  margin: 0;
}

.flex_content span {
  margin-top: auto;
  font-weight: 200;
  margin: 1rem 0;
}

.flex_content .span-center {
  margin: 3rem 0;
}

.flex_content ul {
  max-height: 0; /* Start with the height collapsed */
  overflow: hidden; /* Hide overflowing content */
  opacity: 0; /* Hidden visually */
  margin: 0;
  visibility: hidden; /* Hidden from view */
  transition: max-height 0.5s ease, opacity 0.5s ease, visibility 0.5s ease; /* Smooth height expansion */
}

.flex_content ul.show {
  max-height: 500px; /* Large enough to fit the full menu */
  opacity: 1; /* Fully visible */
  visibility: visible; /* Make it visible */
}

.list-card {
  background: var(--light-background);
  color: var(--text-color);
  border-radius: 24px;
  margin: 0;
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s ease;
  overflow: hidden;
}

.list-card.show {
  grid-template-rows: 1fr;
}

.list-card-inner {
  overflow: hidden;
}

#dynamic-list-content,
#dynamic-list-additional-content {
  padding: 0 4rem;
  opacity: 0;
  transition: opacity 0.3s ease, padding 0.3s ease;
}

.list-card.show #dynamic-list-content,
.list-card.show #dynamic-list-additional-content {
  padding: 1.5rem 4rem;
}

#dynamic-list-content.show,
#dynamic-list-additional-content.show {
  opacity: 1;
}

.flex_content ul li {
  font-weight: 200;
}

.flex_content button {
  outline: none;
  border: none;
  background: var(--secondary-color);
  color: #ffffff;
  width: 100%;
  height: 50px;
  border-radius: 5px;
  font-family: "Nunito", sans-serif;
  cursor: pointer;
  margin-top: auto;
}

.flex_content button:hover {
  background: var(--light-background);
  color: var(--text-color);
}

@media screen and (max-width: 991px) {
  .flex {
    flex-direction: column;
  }

  .flex2 {
    border-right: none;
  }

  .pricing.flex.flex2 {
    flex-direction: column;
  }

  .flex_content-third {
    padding: 5% 4% !important;
    flex: 1;
    flex-grow: 1;
    border-bottom: 1px solid rgba(178, 170, 171, 0.185);
  }

  .flex_content-third:last-child {
    border-bottom: none;
  }
  .flex_content h3 {
    min-height: 0px;
  }
  .flex_content h4 {
    font-weight: 600;
    line-height: 1.5;
  }
  .flex_content h5 {
    min-height: 0px;
  }

  #dynamic-list-content,
  #dynamic-list-additional-content {
    padding: 0 1.5rem;
  }

  .list-card.show #dynamic-list-content,
  .list-card.show #dynamic-list-additional-content {
    padding: 1rem 1.5rem;
  }
}

.pricing-1 {
  background: var(--secondary-color);
  color: #ffffff;
}

.pricing-1 .flex_content button {
  background: var(--hero-color);
}

.pricing-1 .flex_content button:hover {
  background: var(--light-background);
  color: var(--text-color);
}

.pricing-2 {
  background: var(--hero-color);
  color: #ffffff;
}

.pricing-3 {
  background: var(--dark-lime);
  color: #ffffff;
}

.pricing-3 .flex_content button {
  background: var(--primary-color);
  color: var(--text-color);
}

.pricing-3 .flex_content button:hover {
  background: var(--light-background);
  color: var(--text-color);
}
