.fstabs {
  max-width: 100%;
  margin: 3em 0 2em 0;
  padding: 0 1em;
}

/* Tab-Buttons */
.fstabs-buttons {
  display: flex;
  gap: 1em;
  margin-bottom: 1.5em;
  flex-wrap: wrap;
  align-items: flex-end;
  z-index: 3;
  position: relative;
}

.fstabs-btn {
  flex: 0 0 210px;
  width: 210px;
  max-width: 210px;
  min-width: 120px;
  box-sizing: border-box;
  padding: 1em 1.3em;
  font-size: 1.08em;
  background: #fff;
  color: var(--dark, #002646);
  border: 2px solid #e6e6e6;
  border-radius: 1.1em;
  cursor: pointer;
  font-family: inherit;
  font-weight: 500;
  outline: none;
  box-shadow: 0 2px 12px rgba(0,30,50,0.05);
  position: relative;
  transition:
    width 0.35s cubic-bezier(.42,0,.58,1),
    max-width 0.35s cubic-bezier(.42,0,.58,1),
    flex-basis 0.35s cubic-bezier(.42,0,.58,1),
    background 0.18s,
    color 0.18s,
    border-color 0.18s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0;
  z-index: 1;
}

.fstabs-btn span {
  display: inline-block;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: width 0.35s cubic-bezier(.42,0,.58,1);
}

.fstabs-btn:hover,
.fstabs-btn:focus,
.fstabs-btn.active {
  flex: 0 0 380px;
  width: 380px;
  max-width: 380px;
  background: var(--active, #AAE682);
  color: var(--dark, #002646);
  border-color: #AAE682;
  font-weight: 700;
  z-index: 4;
}

/* Tab-Content-Box */
.fstabs-content-wrap {
  background: #fff;
  border-radius: 1.2em;
  box-shadow: 0 2px 24px rgba(0,30,50,0.09);
  padding: 2.5em 2.2em 2.2em 2.2em;
  min-height: 220px;
  position: relative;
  z-index: 1;
  margin-top: 0;
}
.fstabs-content {
  display: none !important;
  animation: fadeIn .45s;
}
.fstabs-content.active {
  display: flex !important;
}
@keyframes fadeIn {
  from { opacity: 0;}
  to   { opacity: 1;}
}

/* --- FLEX-Layout mit 4x runden Ecken fürs Bild --- */
.tab-content {
  display: flex;
  align-items: stretch;
  background: #fff;
  border-radius: 1.2em;
  overflow: hidden;
  min-height: 240px;
  box-shadow: 0 2px 24px rgba(0,30,50,0.09);
  margin-bottom: 2em;
}

.tab-image-fullbg {
  flex: 0 0 25%;
  min-width: 160px;
  max-width: 340px;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  border-radius: 1.2em;
  overflow: hidden;
  margin: 0;
}

.tab-text {
  flex: 1 1 0%;
  padding: 2.3em 2.2em;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #fff;
  min-width: 0;
  text-align: left;
}

.tab-text h3 {
  margin-top: 0;
  margin-bottom: 0.8em;
  font-size: 1.4em;
}
.tab-text p {
  margin-bottom: 0;
  line-height: 1.7;
  color: #222;
}

/* CTA-Button */
.cta-button {
  margin-top: 2em;
  padding: 0.85em 2.4em;
  background: #AAE682;
  color: #002646;
  font-weight: 600;
  border-radius: 0.6em;
  border: none;
  font-size: 1.1em;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 2px 8px rgba(0,30,50,0.09);
  transition: background 0.18s, color 0.18s;
}
.cta-button:hover {
  background: #94d84d;
  color: #002646;
}

/* ------ MOBILE OPTIMIERUNG ------ */
@media (max-width: 900px) {
  .fstabs-buttons {
    flex-direction: column;
    gap: 0.7em;
    align-items: stretch;
  }

  .fstabs-btn {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    flex: 1 1 auto;
    font-size: 1.08em;
    padding: 1.2em 1em;
    border-radius: 1em;
    margin-bottom: 0;
    white-space: normal;
    text-overflow: unset;
  }
  .fstabs-btn span {
    white-space: normal;
    text-overflow: unset;
    overflow: visible;
  }

  .fstabs-btn:hover,
  .fstabs-btn:focus,
  .fstabs-btn.active {
    width: 100%;
    max-width: 100%;
    flex: 1 1 auto;
  }

  .fstabs-content-wrap {
    padding: 1.3em 0.5em;
  }

  .tab-content {
    flex-direction: column;
    min-height: unset;
    border-radius: 1.2em;
    margin-bottom: 1.2em;
    box-shadow: 0 1px 8px rgba(0,30,50,0.05);
  }

  .tab-image-fullbg {
    display: none !important;
  }
  .tab-text {
    width: 100%;
    padding: 1.2em 1em;
    border-radius: 1.2em;
  }
}

@media (max-width: 540px) {
  .fstabs-content-wrap {
    padding: 0.6em 0.1em;
  }
  .tab-text {
    padding: 1em 0.3em;
  }
}
.tab-text .arrow-link::before,
.tab-text .arrow-link::after {
  display: none !important;
  content: none !important;
}
