/* ==========================================================
   Artedy.de – Rezept-Stylesheet
   Grundlagen: Box-Modell, Flexbox, Selektoren nach Klasse/Element
   ========================================================== */

* {
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  color: #2b2b2b;
  background-color: #faf8f5;
  line-height: 1.5;
  margin: 0;
  padding: 1rem;
}

.recipe {
  max-width: 720px;
  margin: 0 auto;
  background-color: #ffffff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* ---------- Header ---------- */

.recipe header img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  display: block;
  margin-bottom: 1rem;
}

.recipe h1 {
  font-size: 1.8rem;
  margin: 0 0 0.25rem 0;
  color: rgb(153, 51, 102);
  text-align: center;
}

.recipe .subtitle {
  font-size: 1rem;
  font-style: italic;
  color: #6b6b6b;
  margin: 0 0 1rem 0;
  text-align: center;
}

/* ---------- Meta-Zeile (Zeit, Portionen) ---------- */

.recipe .meta p {
  font-size: 0.9rem;
  color: #6b6b6b;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  padding: 0.5rem 0;
  margin: 0 0 1.5rem 0;
}

/* ---------- Überschriften der Abschnitte ---------- */

.recipe h2 {
  font-size: 1.3rem;
  color: rgb(153, 51, 102);
  border-bottom: 1px solid #e8c9b0;
  padding-bottom: 0.3rem;
  margin-top: 1rem;
}

.recipe h3 {
  font-size: 1rem;
  font-weight: normal;
  color: #2b2b2b;
  margin-top: 0.6rem;
  margin-bottom: 0.3rem;
  text-decoration: underline;
}

/* ---------- Zutatenliste ---------- */

.ingredients ul {
  list-style: none;
  padding-left: 0;
  margin: 0.5rem 0 1rem 0;
}

.ingredients li {
  display: flex;
  padding: 0.15rem 0;
  border-bottom: 1px dashed #e5e5e5;
}

.ingredients .amount {
  font-weight: 600;
  color: rgb(153, 51, 102);
  margin-right: 0.5rem;
  white-space: pre-wrap;
}

/* ---------- Zubereitungsschritte ---------- */

.instructions ol {
  padding-left: 1.2rem;
}

.instructions li {
  margin-bottom: 0.8rem;
}

/* ---------- Hinweise ---------- */

.notes {
  background-color: #fdf4ec;
  border-left: 4px solid #e8955b;
  padding: 0.8rem 1rem;
  border-radius: 6px;
  font-size: 0.95rem;
}

/* ---------- Schlagworte ---------- */

.tags ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0.5rem 0;
}

.tags li {
  background-color: #eee;
  color: #444;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  font-size: 0.85rem;
}

/* ---------- Bilder-Galerie (Flexbox) ---------- */

.gallery .gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.gallery img {
  width: calc(50% - 0.4rem);
  height: 180px;
  object-fit: cover;
  border-radius: 6px;
}

/* ---------- Link-Zeile ---------- */

.link-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
}

.link-box {
  background-color: #f5f5f5;
  font-size: 0.7rem;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  border: 1px solid #e5e5e5;
  white-space: nowrap;
  text-decoration: none;
  color: rgb(153, 51, 102);
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.link-box:hover {
  background-color: #f2e6ed;
}

/* ---------- Status-Footer ---------- */

.status-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.status-box {
  background-color: #f5f5f5;
  color: #999;
  font-size: 0.7rem;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  border: 1px solid #e5e5e5;
  white-space: nowrap;
}

.status-box.is-published {
  color: #3a7d44;
  border-color: #cfe8d2;
  background-color: #f2f9f3;
}

.status-box.is-draft {
  color: #b8860b;
  border-color: #f0e0b0;
  background-color: #fdf8ec;
}

a.status-box {
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

a.status-box:hover {
  background-color: #eee;
}

/* ---------- Responsive: Handy-Ansicht ---------- */

/* ---------- Responsive: Handy-Ansicht ---------- */

@media (max-width: 480px) {
  .recipe {
    padding: 1rem;
  }

  .gallery img {
    width: 100%;
    height: auto;
  }
}

/* ==========================================================
   Übersichtsseiten (Rezeptübersicht, Kategorie-Übersichten)
   ========================================================== */

.overview {
  max-width: 900px;
  margin: 0 auto;
  background-color: #ffffff;
  padding: 1.5rem 2rem 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.overview .breadcrumb {
  font-size: 0.85rem;
  color: #6b6b6b;
  margin-bottom: 0.5rem;
}

.overview .breadcrumb a {
  color: rgb(153, 51, 102);
  text-decoration: none;
}

.overview .breadcrumb a:hover {
  text-decoration: underline;
}

.overview h1 {
  font-size: 1.9rem;
  margin: 0 0 0.4rem 0;
  color: rgb(153, 51, 102);
}

.overview .subtitle {
  font-size: 0.9rem;
  color: #6b6b6b;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  padding: 0.6rem 0;
  margin: 0 0 1.5rem 0;
}

.overview h2 {
  font-size: 1.15rem;
  color: rgb(153, 51, 102);
  border-bottom: 1px solid #e8c9b0;
  padding-bottom: 0.3rem;
  margin-top: 1.8rem;
  margin-bottom: 0.7rem;
}

/* Hervorgehobener "Neu"-Kasten, im Stil der Hinweise-Box */
.highlight-box {
  background-color: #fdf4ec;
  border-left: 4px solid #e8955b;
  padding: 0.8rem 1rem;
  border-radius: 6px;
  margin-top: 1rem;
}

.highlight-box h2 {
  margin-top: 0;
  border-bottom: none;
  padding-bottom: 0;
}

.highlight-box ul {
  margin: 0.3rem 0 0 0;
  padding-left: 1.2rem;
}

.highlight-box li {
  margin-bottom: 0.3rem;
}

.highlight-box a {
  color: rgb(153, 51, 102);
}

/* Kategorie-Pillen im Raster */
.pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.pill {
  background-color: #f5f5f5;
  color: rgb(153, 51, 102);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid #e5e5e5;
  font-size: 0.9rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease;
}

.pill:hover {
  background-color: #f2e6ed;
}

/* Länderküchen mit Flaggen-Icon */
.country-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.country-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #f5f5f5;
  color: rgb(153, 51, 102);
  padding: 0.35rem 0.9rem 0.35rem 0.5rem;
  border-radius: 999px;
  border: 1px solid #e5e5e5;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.country-pill:hover {
  background-color: #f2e6ed;
}

.country-pill img {
  width: 28px;
  height: 19px;
  object-fit: cover;
  border-radius: 2px;
}

/* Fußzeile im Stil der Rezeptseiten */
.site-footer {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
  font-size: 0.75rem;
  color: #999;
  text-align: center;
}

.site-footer a {
  color: #999;
}

@media (max-width: 480px) {
  .overview {
    padding: 1rem;
  }
}

/* ==========================================================
   Kategorie-Übersichtsseiten (Thumbnail-Raster)
   Bewusst minimalistisch: möglichst wenig soll vom Bild ablenken
   ========================================================== */

.category-overview {
  max-width: 1000px;
  margin: 0 auto;
  padding: 1.5rem 1rem 2rem;
}

.category-overview .breadcrumb {
  font-size: 0.85rem;
  color: #6b6b6b;
  margin-bottom: 0.5rem;
}

.category-overview .breadcrumb a {
  color: rgb(153, 51, 102);
  text-decoration: none;
}

.category-overview .breadcrumb a:hover {
  text-decoration: underline;
}

.category-overview h1 {
  font-size: 1.6rem;
  margin: 0 0 0.3rem 0;
  color: rgb(153, 51, 102);
}

.category-overview .subtitle {
  font-size: 0.8rem;
  color: #999;
  margin: 0 0 1.5rem 0;
}

.thumb-grid {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.thumb-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0;
  text-align: left;
}

.thumb-item > a > img {
  width: 120px;
  height: 90px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 4px;
  display: block;
  transition: opacity 0.15s ease;
}

.thumb-item a:hover img {
  opacity: 0.85;
}

.thumb-item figcaption {
  margin-top: 0;
  font-size: 0.85rem;
  line-height: 1.35;
  color: #333;
}

.thumb-flag {
  display: inline;
  width: 13px;
  height: auto;
  vertical-align: middle;
  margin-right: 0.35rem;
}

.thumb-pdf {
  color: #bbb;
  text-decoration: none;
  font-size: 0.85rem;
}

.thumb-pdf:hover {
  color: rgb(153, 51, 102);
}

@media (max-width: 480px) {
  .category-overview {
    padding: 1rem 0.5rem;
  }

  .thumb-item img {
    width: 90px;
    height: 68px;
  }
}
