/* --- Rezept-Karten (Shortcode [rezept_karten]) --- */
.rezept-karten-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.rezept-karte a { display: block; text-decoration: none; color: inherit; }
.rezept-karte-thumb img { width: 100%; height: auto; display: block; border-radius: .5rem; }
.rezept-karte-title { margin: .5rem 0 0; font-size: 1rem; line-height: 1.25; }
.rezept-karte a:hover .rezept-karte-title { text-decoration: underline; }

/* --- Einzelansicht / Archiv (aus deinem CPT-Template) --- */
.rezept { max-width: 820px; margin: 2rem auto; padding: 0 1rem; }
.rezept-title { margin: 0 0 .75rem; line-height: 1.2; }
.rezept-thumb img { width: 100%; height: auto; display: block; border-radius: .75rem; }
.rezept-meta { color: #666; font-size: .95rem; display: flex; flex-wrap: wrap; gap: .5rem .75rem; margin-bottom: 1rem; }
.rezept-einkauf ul { margin: .5rem 0 1rem; padding-left: 1.2rem; }
.rezept-schritte ol { margin: .5rem 0 0; padding-left: 1.2rem; }
.rezept-schritt { margin-bottom: 1rem; }
.rezept-schritt-bild img { width: 100%; height: auto; display: block; border-radius: .5rem; }

/* Einkaufszettel: Checkboxen + Checked-Style */
.rezept-einkauf-liste { list-style: none; padding-left: 0; margin: 0; }
.rezept-einkauf-liste li { display: flex; align-items: flex-start; gap: .5rem; margin: .25rem 0; }
.rezept-einkauf-liste .ing-check { margin-top: .2rem; }
.rezept-einkauf-liste .ing-label { cursor: pointer; }
.rezept-einkauf-liste li.is-checked .ing-label { text-decoration: line-through; opacity: .6; }


/* --- Zubereitung: große graue Schrittzahlen links --- */
.rezept-schritte ol {
  counter-reset: step;          /* Zähler starten */
  list-style: none;             /* normale Zahlen ausschalten */
  padding-left: 0;
  margin: 0;
}
.rezept-schritte li.rezept-schritt {
  position: relative;
  counter-increment: step;      /* <-- HIER inkrementieren */
  margin: 0 0 1.25rem 2.75rem;  /* Platz für die Zahl links */
}
.rezept-schritte li.rezept-schritt::before {
  content: counter(step);       /* 1, 2, 3, ... */
  position: absolute;
  left: -2.75rem;
  top: 0.05rem;
  font-size: 2rem;
  line-height: 1;
  font-weight: 700;
  color: #b7b7b7;
  opacity: .9;
}

/* Optional: bei schmalen Screens etwas kompakter */
@media (max-width: 560px) {
  .rezept-schritte li.rezept-schritt {
    margin-left: 2.1rem;
  }
  .rezept-schritte li.rezept-schritt::before {
    left: -2.1rem;
    font-size: 1.6rem;
  }
}

/* Zubereitung: Layout Text | Bild */
.rezept-schritte li.rezept-schritt {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}
@media (min-width: 900px) {
  .rezept-schritte li.rezept-schritt {
    grid-template-columns: 1.2fr 1fr;      /* Text links, Bild rechts */
    align-items: start;
  }
}

/* Bild als „Karte“ */
.rezept-schritt-bild {
  border-radius: .75rem;
  overflow: hidden;
  background: #f7f7f8;
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
}
.rezept-schritt-bild img {
  display: block;
  width: 100%;
  height: auto;              /* willst du Cropping? -> ersetze durch: height: 260px; object-fit: cover; */
  transition: transform .25s ease;
}
.rezept-schritt-bild:hover img { transform: scale(1.015); }

/* Zahlenstil aus vorherigem Schritt bleibt – hier nur kleine Anpassung fürs Grid */
.rezept-schritte li.rezept-schritt { margin: 0 0 1.25rem 2.75rem; }
.rezept-schritte li.rezept-schritt::before { left: -2.75rem; }

/* --- Zeit-/Mengen-Row unter dem Titelbild --- */
.rezept-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  padding: .75rem 0 1.25rem;
  border-bottom: 1px solid rgba(0,0,0,.06);
  margin-bottom: 1.25rem;
}
@media (max-width: 800px) {
  .rezept-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .rezept-stats { grid-template-columns: 1fr 1fr; row-gap: .75rem; }
}
.rezept-stats .stat {
  display: grid;
  grid-template-columns: 28px 1fr;
  column-gap: .5rem;
  align-items: center;
}
.rezept-stats .stat-icon {
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #b7b7b7;
}
.rezept-stats .stat-label {
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: .74rem;
  color: #666;
  grid-column: 2 / -1;
}
.rezept-stats .stat-value {
  grid-column: 2 / -1;
  font-weight: 600;
  color: #b21c1c; /* Akzent – gern an dein Theme anpassen */
}

/* Meta-Zeile unter dem Titel (Autor/Schwierigkeit/Bewertung) */
.rezept-header-meta {
  display: flex; flex-wrap: wrap; gap: .75rem 1.5rem;
  color: #666; margin: .25rem 0 1rem;
}
.rezept-header-meta .meta-item { display: inline-flex; align-items: center; gap: .35rem; }

/* Sterne-Bewertung */
.rezept-rating { display: inline-flex; align-items: center; gap: .4rem; }
.rezept-rating .rating-label { text-transform: uppercase; letter-spacing: .04em; font-size: .74rem; color: #666; margin-right: .25rem; }

/* Stars: „Hintergrund“ grau + „Füllung“ gelb mit variablem width */
.rezept-rating .stars { position: relative; display: inline-block; font-size: 1.1rem; line-height: 1; }
.rezept-rating .stars-bg,
.rezept-rating .stars-fill { font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; letter-spacing: .15em; }
.rezept-rating .stars-bg  { color: #d6d6d6; }
.rezept-rating .stars-fill{
  color: #ffb400; position: absolute; left: 0; top: 0; width: 0; overflow: hidden; white-space: nowrap; pointer-events: none;
}

/* Klick-Ebene: 5 transparente Buttons über den Sternen */
.rezept-rating .stars-input{
  position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: flex;
}
.rezept-rating .stars-input .rate{
  flex: 1 1 20%; background: transparent; border: 0; padding: 0; margin: 0; cursor: pointer; color: transparent;
}
.rezept-rating.is-locked .stars-input .rate{ cursor: default; pointer-events: none; }

.rezept-rating .rating-number { font-weight: 600; color: #b21c1c; }
.rezept-rating .rating-count  { color: #888; font-size: .9rem; }
.rezept-rating .rating-you    { color: #666; font-size: .85rem; margin-left: .35rem; }





/* ==========================
   Rezept – Design Finish
   ========================== */

:root{
  --rez-accent: #b21c1c;      /* Akzentfarbe */
  --rez-ink: #2b2b2b;         /* Text */
  --rez-muted: #666;          /* Sekundärtext */
  --rez-line: rgba(0,0,0,.08);/* feine Linien */
  --rez-surface: #fff;        /* Kartenhintergrund */
}

/* Basis */
.rezept {
  color: var(--rez-ink);
  line-height: 1.6;
}
.rezept h1.rezept-title { margin: .25rem 0 .5rem; }
.rezept h2 { font-size: 1.55rem; margin: 1.6rem 0 .75rem; }

/* Header-Meta direkt unterm Titel */
.rezept-header-meta{
  display:flex; flex-wrap:wrap; gap:.6rem 1.25rem;
  margin: 0 0 .8rem;
  color: var(--rez-muted);
  font-size:.95rem;
}
.rezept-header-meta .meta-item{display:inline-flex; align-items:center; gap:.35rem;}
.rezept-header-meta .meta-item strong{font-weight:600;}

/* Titelbild als Karte */
.rezept-thumb{
  border-radius: .9rem;
  overflow:hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
  margin: .5rem 0 1rem;
}
.rezept-thumb img{ display:block; width:100%; height:auto; }

/* Zeit-/Mengen-Row (unter dem Bild) */
.rezept-stats{
  display:grid; grid-template-columns: repeat(4, 1fr);
  gap:1rem; padding: .6rem 0 1rem; border-bottom:1px solid var(--rez-line);
  margin-bottom: 1.2rem;
}
@media (max-width:900px){ .rezept-stats{ grid-template-columns: repeat(2,1fr);} }
.rezept-stats .stat{ display:grid; grid-template-columns: 28px 1fr; column-gap:.5rem; align-items:center; }
.rezept-stats .stat-icon{ width:28px;height:28px; display:inline-flex; align-items:center; justify-content:center; color:#b7b7b7; }
.rezept-stats .stat-label{
  text-transform:uppercase; letter-spacing:.04em; font-size:.75rem; color:var(--rez-muted);
  grid-column:2/-1;
}
.rezept-stats .stat-value{ grid-column:2/-1; font-weight:600; color:var(--rez-accent); }

/* Einleitung mit angenehmer Breite */
.rezept-einleitung{
  max-width: 72ch;
  margin: 0 0 1.2rem;
}

/* Einkaufszettel */
.rezept-einkauf h2{ margin-top: 1.2rem; }
.rezept-portionen{ margin:.25rem 0 .75rem; }
.rezept-portionen select{
  min-width: 220px; padding:.45rem .6rem; border:1px solid var(--rez-line);
  border-radius:.5rem; background:var(--rez-surface);
}
.rezept-einkauf-liste{ list-style:none; padding:0; margin:.5rem 0 0; }
.rezept-einkauf-liste li{
  display:flex; align-items:flex-start; gap:.5rem; margin:.35rem 0;
  padding:.2rem .25rem; border-radius:.35rem;
  transition: background-color .15s ease;
}
.rezept-einkauf-liste li:hover{ background:rgba(0,0,0,.03); }
.rezept-einkauf-liste .ing-check{
  margin-top:.25rem; width:1.1rem; height:1.1rem; accent-color: var(--rez-accent);
}
.rezept-einkauf-liste .ing-label{ cursor:pointer; }
.rezept-einkauf-liste li.is-checked .ing-label{ text-decoration: line-through; opacity:.6; }

/* Zubereitung – Nummern + Layout Text|Bild */
.rezept-schritte ol{
  counter-reset: step; list-style:none; padding-left:0; margin:0;
}
.rezept-schritte li.rezept-schritt{
  counter-increment: step;
  position:relative;
  margin: 0 0 1.1rem 2.6rem;
  display:grid; grid-template-columns:1fr; gap:.75rem;
}
.rezept-schritte li.rezept-schritt::before{
  content: counter(step);
  position:absolute; left:-2.6rem; top:.05rem;
  font-size:2rem; line-height:1; font-weight:700; color:#b7b7b7;
}
@media (min-width:900px){
  .rezept-schritte li.rezept-schritt{ grid-template-columns: 1.25fr 1fr; align-items:start; }
}
.rezept-schritt-bild{
  border-radius:.8rem; overflow:hidden; background:#f7f7f8;
  box-shadow: 0 8px 26px rgba(0,0,0,.05);
}
.rezept-schritt-bild img{ display:block; width:100%; height:auto; transition: transform .25s ease; }
.rezept-schritt-bild:hover img{ transform: scale(1.015); }
.rezept-schritt-caption{ padding:.5rem .75rem; font-size:.92rem; color:#666; border-top:1px solid var(--rez-line); }

/* Bewertung – Feinschliff */
.rezept-rating{ display:inline-flex; align-items:center; gap:.4rem; }
.rezept-rating .rating-label{ text-transform:uppercase; letter-spacing:.04em; font-size:.75rem; color:var(--rez-muted); margin-right:.15rem; }
.rezept-rating .stars{ position:relative; display:inline-block; font-size:1.15rem; line-height:1; }
.rezept-rating .stars-bg{ color:#d6d6d6; letter-spacing:.15em; }
.rezept-rating .stars-fill{ color:#ffb400; position:absolute; left:0; top:0; width:0; overflow:hidden; white-space:nowrap; pointer-events:none; letter-spacing:.15em; }
.rezept-rating .stars-input{ position:absolute; inset:0; display:flex; }
.rezept-rating .stars-input .rate{ flex:1 1 20%; background:transparent; border:0; padding:0; margin:0; cursor:pointer; color:transparent; }
.rezept-rating.is-locked .stars-input .rate{ cursor:default; pointer-events:none; }
.rezept-rating .rating-number{ font-weight:600; color:var(--rez-accent); }
.rezept-rating .rating-count{ color:#888; font-size:.9rem; }

/* Abschnitts-Trenner subtil */
.rezept-einkauf, .rezept-schritte{
  padding-top: .75rem;
  border-top: 2px solid var(--rez-line);
  margin-top: 1.2rem;
}

/* Fokus-Styles für Tastaturbedienung */
.rezept a:focus, .rezept button:focus, .rezept select:focus{
  outline: 2px solid color-mix(in srgb, var(--rez-accent) 60%, transparent);
  outline-offset: 2px;
  border-radius: .25rem;
}

/* Kleines Print-Styleset: Interaktives ausblenden */
@media print{
  .rezept-portionen, .rezept-rating .stars-input, .rezept-einkauf-liste .ing-check { display:none !important; }
  .rezept-einkauf-liste li.is-checked .ing-label{ text-decoration:none; opacity:1; }
}






