/* Separates, versioniertes Katalog-Layout: Bilder bleiben illustrative Vorschaubilder. */
#productGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

#productGrid .product-card {
  display: flex;
  min-width: 0;
  overflow: hidden;
  padding: 0;
}

#productGrid .product-image-wrap {
  height: 7.5rem;
  flex: 0 0 7.5rem;
  position: relative;
  overflow: hidden;
}

#productGrid .product-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#productGrid .product-image-wrap span {
  top: .5rem;
  bottom: auto;
  line-height: 1.1;
}

.catalog-control {
  display: grid;
  gap: .35rem;
}

.catalog-control > label {
  color: #536064;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.catalog-control > select {
  margin-top: 0;
}

.catalog-search .search {
  height: 100%;
}

.advisor-match {
  color: #475256;
  font-size: .8rem;
  line-height: 1.45;
}

.advisor-match strong { color: #173d31; }

.catalog-tools-extended {
  grid-template-columns: minmax(15rem, 2fr) repeat(5, minmax(9rem, 1fr));
}

@media (max-width: 1200px) {
  .catalog-tools-extended { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .catalog-tools-extended .catalog-search { grid-column: span 3; }
}

@media (max-width: 650px) {
  .catalog-tools-extended,
  .catalog-tools-extended .catalog-search { grid-template-columns: 1fr; grid-column: auto; }
}

/* Ratgeber folgen derselben kompakten Kartenlogik wie der Testkatalog. */
#ratgeber .guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

#ratgeber .guide-grid article {
  min-width: 0;
}

#ratgeber .guide-grid img {
  display: block;
  width: 100%;
  height: 7.5rem;
  object-fit: cover;
}

@media (max-width: 900px) {
  #ratgeber .guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 650px) {
  #ratgeber .guide-grid { grid-template-columns: 1fr; }
  #ratgeber .guide-grid img { height: 8.5rem; }
}

#productGrid .product-card-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
}

.catalog-footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.5rem;
}

.catalog-footer-actions [hidden] {
  display: none;
}

/* Beide Aktionen einer Katalogkarte erhalten dieselbe Button-Hierarchie. */
#productGrid .catalog-detail-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: .42rem .55rem;
  border: 1px solid #aeb7b4;
  border-radius: .2rem;
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  font-size: .73rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}

#productGrid .catalog-detail-link:hover,
#productGrid .catalog-detail-link:focus-visible {
  border-color: var(--gold);
  background: #fbf3df;
  color: #173d31;
  outline: none;
}

@media (max-width: 900px) {
  #productGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 650px) {
  #productGrid { grid-template-columns: 1fr; }
  #productGrid .product-image-wrap { height: 8.5rem; flex-basis: 8.5rem; }
}
