/* FitWell Nauen – Erweiterungen: Für Unternehmen, Über mich, Zertifikatsgalerie */

/* ---------- Gemeinsame Inhaltsbereiche ---------- */
.fw-content {
  width: 100%;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.fw-section-title {
  text-align: center;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 10px;
  margin-bottom: 10px;
  font-size: 30px;
  overflow-wrap: break-word;
  hyphens: auto;
}

.fw-divider {
  margin-left: auto;
  margin-right: auto;
}

.hintergrund-wei.versetzt .heading-links1 {
  overflow-wrap: break-word;
  hyphens: auto;
}

.fw-subline {
  font-weight: 700;
  font-size: 18px;
  margin-top: 0;
}

/* Überschriften in Karten und Textblöcken bleiben linksbündig */
.fw-card .heading-3.font-small,
.fw-about .heading-3.font-small,
.fw-cert-group .heading-3.font-small {
  text-align: left;
  line-height: 1.3;
}

/* ---------- Für Unternehmen: Angebotskarten ---------- */
.fw-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  width: 100%;
}

.fw-card {
  background-color: #fff;
  border: 1px solid #979797;
  border-top: 4px solid #54a278;
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.fw-card .heading-3.font-small {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 24px;
  overflow-wrap: break-word;
  hyphens: auto;
}

.fw-card-meta {
  color: #333a2a;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.4;
  margin-bottom: 12px;
}

.fw-card p {
  margin-bottom: 0;
}

.fw-card .fw-card-meta {
  margin-bottom: 12px;
}

.fw-plan-text {
  margin-bottom: 20px;
}

.fw-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: 10px;
}

.fw-actions .terminbutton-2 {
  margin: 0;
}

.fw-contact-line {
  margin: 0;
}

.fw-contact-line a {
  color: inherit;
  text-decoration: underline;
}

/* ---------- Über mich ---------- */
.fw-photo-mask.feature-image-mask.versetzt {
  height: auto;
  overflow: visible;
  align-self: center;
}

.fw-photo {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
}

.fw-about {
  background-color: #fff;
  border: 1px solid #979797;
  padding: 40px;
}

.fw-about .heading-3.font-small {
  font-size: 26px;
  margin-top: 36px;
  margin-bottom: 14px;
  overflow-wrap: break-word;
  hyphens: auto;
}

.fw-about .heading-3.font-small:first-child {
  margin-top: 0;
}

.fw-about p {
  margin-bottom: 14px;
}

.fw-about ul {
  margin-top: 0;
  margin-bottom: 18px;
  padding-left: 22px;
}

.fw-about li {
  margin-bottom: 6px;
}

.fw-highlight {
  color: #333a2a;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.4;
  border-left: 4px solid #54a278;
  padding-left: 16px;
  margin-top: 24px;
  margin-bottom: 24px;
}

.fw-signature {
  margin-top: 24px;
}

/* ---------- Zertifikatsgalerie ---------- */
.fw-cert-group {
  width: 100%;
  margin-top: 30px;
}

.fw-cert-group .heading-3.font-small {
  font-size: 22px;
  margin-top: 0;
  margin-bottom: 16px;
  overflow-wrap: break-word;
}

.fw-cert-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.fw-cert {
  background-color: #fff;
  border: 1px solid #d5d9d0;
  margin: 0;
  padding: 12px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.fw-cert-link {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 240px;
  background-color: #fff;
  cursor: zoom-in;
}

.fw-cert-link img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: 50% 50%;
}

.fw-cert figcaption {
  color: #333;
  text-align: center;
  font-size: 14px;
  line-height: 1.4;
  margin-top: 10px;
  -webkit-hyphens: auto;
  hyphens: auto;
  overflow-wrap: break-word;
}

/* ---------- Responsive ---------- */
@media screen and (max-width: 991px) {
  .fw-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fw-cert-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .fw-photo-mask.feature-image-mask.versetzt {
    height: auto;
  }
}

@media screen and (max-width: 767px) {
  .fw-card-grid {
    grid-template-columns: 1fr;
  }

  .fw-cert-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .fw-cert-link {
    height: 220px;
  }

  .fw-about {
    padding: 24px 20px;
  }

  .fw-section-title {
    font-size: 24px;
  }

  .fw-actions {
    justify-content: center;
  }

  .fw-contact-line {
    text-align: center;
  }
}

@media screen and (max-width: 479px) {
  .fw-cert-group .heading-3.font-small {
    font-size: 19px;
  }

  .fw-section-title {
    font-size: 20px;
  }

  .fw-about {
    padding: 20px 14px;
  }

  .fw-about .heading-3.font-small {
    font-size: 20px;
  }

  .fw-highlight {
    font-size: 18px;
  }

  .fw-card {
    padding: 20px 16px;
  }

  .fw-card .heading-3.font-small {
    font-size: 20px;
  }

  .fw-cert-link {
    height: 200px;
  }

  .fw-cert {
    padding: 8px;
  }

  .fw-cert figcaption {
    font-size: 13px;
  }
}

@media screen and (max-width: 360px) {
  .fw-cert-grid {
    grid-template-columns: 1fr;
  }

  .fw-cert-link {
    height: 260px;
  }
}

/* ---------- Hauptmenü: Platz für „Für Unternehmen“ auf kleinen Desktops ---------- */
@media screen and (min-width: 992px) and (max-width: 1099px) {
  .men-3 > .navlink.flie-text {
    padding-left: 14px;
    padding-right: 14px;
  }

  .men-3 > .w-dropdown > .navlink.flie-text.dropdown {
    padding-left: 14px;
  }
}

/* ---------- Startseite: Hero wächst mit dem längeren Leitspruch ---------- */
@media screen and (min-width: 992px) {
  .titelvideo-start {
    height: auto;
    min-height: 100vh;
  }

  .titelvideo-start > .image-banner {
    position: absolute;
    inset: 0;
  }

  .titelvideo-start > .div-block-image {
    position: relative;
    min-height: 100vh;
    padding-top: 40px;
    padding-bottom: 40px;
  }
}

@media screen and (min-width: 992px) and (max-width: 1439px) {
  .slogan1.heading-1 {
    font-size: 36px;
  }
}
