/* Homepage variants not covered by shared components. */

/* startseite */
body.home .mf-home-category-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 24px;
  margin-top: 48px;
}

body.home .mf-home-category-card {
  display: flex;
  height: 100%;
  min-width: 0;
  min-height: 360px;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #d7e1e5;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(20, 36, 44, .08);
}

body.home .mf-home-category-collage {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-height: 168px;
  align-items: center;
  gap: 22px 26px;
  padding: 28px 32px;
}

body.home .mf-home-category-card--crm .mf-home-category-collage {
  background: #edf6fb;
}

body.home .mf-home-category-card--shop .mf-home-category-collage {
  background: #e8f3ee;
}

body.home .mf-home-category-card--support .mf-home-category-collage {
  background: #fff1ee;
}

body.home .mf-home-category-card--office .mf-home-category-collage {
  background: #f1f4f5;
}

body.home .mf-home-category-art {
  width: 100%;
  margin: 0;
  overflow: hidden;
  background: #edf6fb;
}

body.home .mf-home-category-art img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

body.home .mf-home-category-logo {
  display: flex;
  min-width: 0;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  margin: 0;
}

body.home .mf-home-category-logo img {
  display: block;
  width: auto;
  max-width: 100%;
  height: 38px;
  object-fit: contain;
  object-position: center;
}

body.home .mf-home-category-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 26px 28px 28px;
}

body.home .mf-home-category-body h3 {
  margin: 0 0 12px;
  font-size: 25px;
  line-height: 1.2;
}

body.home .mf-home-category-body > p:not(.mf-home-category-link) {
  margin: 0;
  color: #5b6b72;
}

body.home .mf-home-category-link {
  margin: auto 0 0;
  padding-top: 22px;
}

body.home .mf-home-category-link a {
  color: #24587b;
  font-weight: 800;
  text-decoration: none;
}

body.home .mf-home-category-link a:hover,
body.home .mf-home-category-link a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

body.home .mf-home-category-actions {
  margin-top: auto;
  padding-top: 22px;
}

body.home .mf-home-category-actions .wp-block-button__link {
  padding: 11px 18px;
}

body.home .mf-home-category-api-mark,
body.home .mf-home-category-more-mark {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  margin: 0;
  color: #24587b;
  font-size: 16px;
  font-weight: 850;
}

body.home .mf-home-category-api-mark {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

body.home .mf-home-category-more-mark {
  font-size: 32px;
  font-weight: 500;
}

@media (max-width: 781px) {
  body.home .mf-home-category-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: auto;
    gap: 18px;
  }

  body.home .mf-home-category-card {
    height: auto;
    min-height: 0;
  }
}

@media (max-width: 689px) {
  body.home .mf-home-category-collage {
    min-height: 142px;
    gap: 18px;
    padding: 24px 22px;
  }

  body.home .mf-home-category-logo img {
    height: 34px;
  }

  body.home .mf-home-category-body {
    align-items: center;
    padding: 24px 22px 26px;
    text-align: center;
  }

  body.home .mf-home-category-body h3 {
    font-size: 23px;
  }
}
