.products {
  padding: 40px;
}

.products-headline {
  width: 100%;
  padding-top: 40px;
  padding-bottom: 10px;
  white-space: nowrap;
}
.products-headline h2 {
  font-size: 30px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: #333; /* Dark text color */
}
.products-headline h3 {
  margin-top: 20px;
  margin-bottom: 20px;
  color: #333; /* Dark text color */
}

.products-headline a {
  text-decoration: none;
  color: #333; /* Dark text color */
  font-weight: bold;
  transition: color 0.3s ease-in-out;
}

.products-headline a:hover {
  color: #ff6600; /* Highlight color on hover */
}


.products-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.products-item {
  /* background-color: #f8f8f8; */
  padding: 15px;
  display: block;
  text-decoration: none; /* Entfernt den Unterstrich von Links */
  color: inherit; /* Erbt die Textfarbe von den umgebenden Elementen */
  flex-direction: column;
  align-items: left;
  justify-content: flex-start;
  transition: transform 0.3s ease;
}
.products-item:hover {
  transform: scale(1.05);
}

.products-item img {
  width: 100%;
  display: block;
  margin-bottom: 10px;
  object-fit: cover;
}

.products-item p {
  color: #666; /* Medium text color */
  line-height: 1.2;
  text-align: left;
  margin-top: 0px;
}
.products-item-description {
  font-size: 18px;
  margin-bottom: 5px;
}
.products-item-price {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 0px;
}

.products-item a {
  padding: 0px;
}

/* Für Bildschirme kleiner als 800px: 2 Spalten */
@media (max-width: 800px) {
  .products-list {
      grid-template-columns: repeat(2, 1fr); /* 2 gleich große Spalten */
  }
}

/* Für Bildschirme kleiner als 500px: 1 Spalte */
@media (max-width: 500px) {
  .products-list {
      grid-template-columns: 1fr; /* 1 Spalte */
  }
}

