/*
  Zweck: Enthält ausschließlich Styles, die nur auf der Startseite (`index.html`) benötigt werden.
  Verantwortung: Gestaltet Hero-Bereich, Produktübersicht und sonstige Home-spezifische Elemente.
  Einbindung: In `index.html` im `<head>` nach den globalen Styles eingebunden.
  Zusammenarbeit:
    - Nutzt Layout- und Komponenten-Styles aus `../base.css`, `../layout.css` und `../components.css`.
    - Wird nicht von anderen Seiten eingebunden, um Styles klar zu trennen.
*/

.hero {
  padding: 1.5rem 0 1rem;
}

.product-overview {
  padding: 0.25rem 0 1.75rem;
}

.product-overview .container {
  max-width: 1500px;
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
  margin-top: 1rem;
}

.home-product-card {
  display: grid;
  grid-template-columns: minmax(480px, 1.2fr) minmax(440px, 1fr);
  gap: 1.5rem;
  align-items: stretch;
  padding: 1.6rem;
  height: 460px;
  border: 1px solid #dcdcdc;
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.home-product-card__content {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 0.9rem;
  min-width: 0;
}

.home-product-card__title {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1.2;
  color: #141414;
}

.home-product-card__description-list {
  margin: 0;
  padding-left: 1.25rem;
  display: grid;
  gap: 0.55rem;
  color: #4a4a4a;
  line-height: 1.6;
  max-width: 48ch;
  overflow: hidden;
}

.home-product-card__description-item {
  margin: 0;
}

.home-product-card__buy {
  margin-top: 0.45rem;
  width: fit-content;
  min-height: 2.7rem;
  padding: 0.72rem 1.3rem;
  border: 1px solid #3665f3;
  border-radius: 0.65rem;
  background: #3665f3;
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
}

.home-product-card__buy:hover,
.home-product-card__buy:focus-visible {
  background: #2b54cc;
  border-color: #2b54cc;
  outline: none;
}

.home-product-card__media {
  width: 100%;
  align-self: stretch;
  height: 100%;
  max-width: 760px;
  justify-self: end;
  border-radius: 0.85rem;
  border: 1px solid #dcdcdc;
  overflow: hidden;
  background: #ffffff;
}

.home-product-card__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #ffffff;
}

@media (max-width: 860px) {
  .home-product-card {
    grid-template-columns: 1fr;
    height: auto;
    padding: 1.2rem;
  }

  .home-product-card__content {
    order: 2;
  }

  .home-product-card__media {
    order: 1;
    min-height: 280px;
    max-width: none;
  }
}
