.page-header {
  text-align: center;
  padding: 3rem 0 2rem;
}

.recipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2.5rem;
  padding: 2rem 0;
}

.recipe-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  transition: transform 0.3s;
}

.recipe-card:hover {
  transform: translateY(-5px);
}

.recipe-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.recipe-content {
  padding: 1.5rem;
}

.recipe-content h3 {
  margin-bottom: 0.5rem;
}

.recipe-meta {
  color: var(--gray);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  display: block;
}

/* TABS */
.tabs {
  display: flex;
  gap: 1px;
  margin: 2rem 0;
  background: #eee;
  width: fit-content;
  border-radius: 8px;
  overflow: hidden;
}

.tab-btn {
  padding: 12px 24px;
  background: #eee;
  border: none;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.3s;
}

.tab-btn.active {
  background: var(--primary);
  color: white;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.5s;
}

/* Responsive */
@media (max-width: 768px) {
  .recipe-grid {
    grid-template-columns: 1fr;
  }

  .tabs {
    flex-wrap: wrap;
  }

  .tab-btn {
    flex: 1;
    text-align: center;
  }
}

/* ========== REZEPTE HEADER CONTROLS ========== */
.recipes-header-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.5rem 0;
}

.filter-section {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.filter-section label {
  font-weight: 600;
  color: var(--primary);
}

.community-link {
  padding: 6px 12px;
  font-size: 0.9rem;
  white-space: nowrap;
}

/* Responsive: Auf Mobil untereinander */
@media (max-width: 768px) {
  .recipes-header-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .community-link {
    align-self: flex-end;
    width: auto;
  }
}