/* FangDeck Home Cards – v0.1.1
 * Startseitenkarten für Produkte und Ratgeber.
 */

.fd-home-card {
  position: relative;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  will-change: transform;
}

.fd-home-card--clickable { cursor: pointer; }

.fd-home-card--clickable:hover,
.fd-home-card--clickable:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(9, 38, 47, .10);
}

.fd-home-card--clickable:focus-visible {
  outline: 2px solid #087f78;
  outline-offset: 3px;
}

.fd-home-product-card img,
.fd-home-post-card img {
  transition: transform .28s ease;
}

.fd-home-card--clickable:hover img,
.fd-home-card--clickable:focus-visible img {
  transform: scale(1.018);
}

/* Ratgeberkarten: Bild oben 16:9, darunter Meta, Titel, Textauszug. */
.fd-home-post-card {
  display: flex !important;
  flex-direction: column !important;
  height: auto !important;
  min-height: 0 !important;
  overflow: hidden !important;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(15, 55, 64, .10);
}

.fd-home-post-card__media {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 16 / 9 !important;
  overflow: hidden !important;
  flex: 0 0 auto !important;
  margin: 0 !important;
  padding: 0 !important;
}

.fd-home-post-card__media img,
.fd-home-post-card > img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  object-fit: cover !important;
  object-position: center !important;
  margin: 0 !important;
}

.fd-home-post-card__body {
  position: relative !important;
  display: block !important;
  flex: 0 0 auto !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 18px 20px 20px !important;
  margin: 0 !important;
  background: #fff !important;
  color: #082f3a;
  box-sizing: border-box;
}

.fd-home-post-card__meta {
  margin: 0 0 8px !important;
  font-size: 11px !important;
  line-height: 1.35 !important;
  font-weight: 800 !important;
  letter-spacing: .055em !important;
  text-transform: uppercase;
  color: #0a7d76 !important;
}

.fd-home-post-card__title {
  margin: 0 !important;
  color: #082f3a !important;
  font-size: clamp(18px, 1.35vw, 22px) !important;
  line-height: 1.2 !important;
  font-weight: 800 !important;
}

.fd-home-post-card__excerpt {
  margin: 9px 0 0 !important;
  color: #5c6f74 !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
}

.fd-home-post-card a,
.fd-home-product-card a { color: inherit; }

@media (prefers-reduced-motion: reduce) {
  .fd-home-card,
  .fd-home-product-card img,
  .fd-home-post-card img { transition: none; }

  .fd-home-card--clickable:hover,
  .fd-home-card--clickable:focus-visible,
  .fd-home-card--clickable:hover img,
  .fd-home-card--clickable:focus-visible img { transform: none; }
}

@media (max-width: 700px) {
  .fd-home-post-card__body { padding: 16px 17px 18px !important; }
  .fd-home-post-card__excerpt { font-size: 14px !important; }
}
