/* Zusätzlicher CSS-Stil für das Rezept-Grid */
.recipe-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 10px;
}

.recipe-grid article {
    width: calc(50% - 20px);
    margin-bottom: 6px;
}

.recipe-grid article img {
    width: 100%;
    height: auto;
}

.recipe-grid article .description {
    margin-top: 9px;
}

.tags {
    font-size: 0.8em; /* Tags kleiner darstellen */
}

/* Besonderheit der Rezept-Filterleiste */
.sort-container {
    margin-left: auto;
}

.recipe-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
  padding: 0;
  list-style: none;
}

.recipe-list-item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 7rem;
  padding: 1.1rem 1.2rem;
  background: #ffffff;
  border: 1px solid #d9ded6;
  border-left: 4px solid #718355;
  border-radius: 0.55rem;
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.07);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.recipe-list-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 7px 16px rgba(0, 0, 0, 0.12);
}

.recipe-title {
  display: block;
  margin-bottom: 0.85rem;
  color: #2f3a24;
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
}

.recipe-title:hover,
.recipe-title:focus-visible {
  color: #567238;
  text-decoration: underline;
}

.recipe-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.tag {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  color: #405132;
  background: #edf2e8;
  border: 1px solid #d6e0ce;
  border-radius: 999px;
  font-size: 0.78rem;
  line-height: 1.2;
}

/* Anpassungen für Smartphones */
@media (max-width: 600px) {
    .recipe-grid {
        flex-direction: column;
    }

    .recipe-grid article {
        box-sizing: border-box;
        width: 100%;
        margin-bottom: 15px;
    }
}

