.angebote {
  background-color: #fff;
  padding: 50px 40px;
  text-align: center;
  border-top: 3px solid #b30000;
  border-bottom: 3px solid #b30000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.angebote h2 {
  color: #b30000;
  font-size: 26px;
  font-weight: 600;
  margin: 0 0 30px 0;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.angebote-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 30px;
  justify-items: center;
}

.angebot {
  background: #fff;
  padding: 18px;
  border-radius: 10px;
  border-top: 3px solid #b30000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  max-width: 260px;
  text-align: center;
  position: relative;
}

.angebot:hover {
  transform: translateY(-6px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.angebot a {
  text-decoration: none;
  color: inherit;
}

.angebot img {
  width: 100%;
  max-width: 160px;
  aspect-ratio: 1/1;
  object-fit: contain;
  margin-bottom: 12px;
  transition: transform 0.3s ease;
}

.angebot:hover img {
  transform: scale(1.05);
}

.angebot-details h3 {
  color: #555;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.4;
}

.angebot-details .lager {
  font-size: 13px;
  color: #777;
  margin: 0;
}

.angebot-details .preis {
  font-size: 15px;
  color: #333;
  font-weight: 600;
  margin-top: 6px;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 40px;
}

.pagination button {
  background-color: #b30000;
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 15px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.pagination button:hover:not(:disabled) {
  background-color: #d40000;
  transform: translateY(-2px);
}

.pagination button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.pagination .page-number {
  background-color: #eee;
  color: #333;
}

.pagination .page-number:hover:not(.active) {
  background-color: #ddd;
}

.pagination .page-number.active {
  background-color: #b30000;
  color: #fff;
  font-weight: 600;
}

.angebote-controls {
  background-color: #b30000;
  margin: 0 0 20px 0;
  border: none;
  border-radius: 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  padding: 15px 50px;
  font-family: "Inter", sans-serif;
}

.controls-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}

#activeCount {
  color: #fff;
  font-size: 13px;
  font-weight: 400;
  text-transform: none;
}

.controls-right {
  display: flex;
  align-items: center;
  gap: 20px; 
}

.control-group {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 13px;
  font-weight: 400;
}

.control-group label {
  color: #fff;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0.2px;
  font-size: 13px;
}

.control-group select {
  background-color: transparent;
  color: #fff;
  border: none;
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
  appearance: none;
}

.control-group select:hover {
  transform: scale(1.05);
  background-color: rgba(255, 255, 255, 0.1);
}

.control-group select option {
  color: #333;
  background-color: #fff;
}

@media (max-width: 900px) {
  .controls-container {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .controls-right {
    justify-content: center;
    width: 100%;
  }

  .control-group select {
    width: 180px;
    text-align: center;
  }

  #activeCount {
    font-size: 12px;
    text-align: center;
  }
}

.angebot.verkauft {
  opacity: 0.6;
  pointer-events: none;
}

.angebot.verkauft::after {
  content: "VERKAUFT";
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(179, 0, 0, 0.9);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 4px 8px;
  border-radius: 4px;
  letter-spacing: 1px;
  z-index: 10;
}

@media (max-width: 900px) {
  .angebote-controls {
    padding: 12px 20px;
    flex-direction: column;
    gap: 15px;
  }

  .controls-container {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .control-group {
    justify-content: center;
    width: 100%;
  }

  .control-group select {
    width: 180px;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .angebote {
    padding: 40px 20px;
  }

  .angebote h2 {
    font-size: 22px;
    margin-bottom: 20px;
  }

  .angebote-grid {
    gap: 20px;
  }

  .angebot {
    max-width: 220px;
  }

  .angebot-details h3 {
    font-size: 14px;
  }
}
