/* ===== [kp_rezept] meta bar ===== */

.kp-rezept-meta {
  clear: both;
  background: #f7f5f0;
  border-radius: 0.7rem;
  padding: 1.5rem 1.75rem;
  margin: 2em 0;
}

.kp-rezept-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.5rem;
}

.kp-rezept-fact {
  display: flex;
  flex-direction: column;
  gap: 0.15em;
}

.kp-rezept-label {
  font-size: 0.72em;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.65;
}

.kp-rezept-wert {
  font-size: 1.05em;
}

.kp-portionen {
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.kp-portionen-zahl {
  min-width: 1.4em;
  text-align: center;
  font-weight: 700;
}

.kp-portionen-btn {
  width: 1.7em;
  height: 1.7em;
  padding: 0;
  border: 1px solid #bf1c23;
  border-radius: 50%;
  background: none;
  color: #bf1c23;
  font-size: 0.95em;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.kp-portionen-btn:hover {
  background: #bf1c23;
  color: #fff;
}

.kp-rezept-nav {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 0.8em;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.kp-rezept-nav-sep {
  margin: 0 0.6em;
  opacity: 0.4;
}

/* ===== Zutaten list ===== */
/*
 * Trawell sets list markers ON the li (.entry-content ul li
 * { list-style: inside }) and strips ul padding at (0,1,1) specificity,
 * so every rule that fights the theme carries an .entry-content variant
 * to outrank it; the bare variant covers the editor canvas.
 */

.is-style-kp-zutaten,
.entry-content ul.is-style-kp-zutaten {
  list-style: none;
  padding-left: 0;
  margin-left: 0;
}

.is-style-kp-zutaten li,
.entry-content ul.is-style-kp-zutaten > li {
  list-style: none;
  padding: 0.4em 0;
  margin: 0;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.12);
}

.is-style-kp-zutaten li:last-child,
.entry-content ul.is-style-kp-zutaten > li:last-child {
  border-bottom: none;
}

.kp-menge {
  font-weight: 700;
}

/* scaled amounts flip to rust so it's obvious the numbers are computed */
.kp-menge-skaliert {
  color: #bf1c23;
}

/* ===== Schritt paragraphs with big counters ===== */

body,
.editor-styles-wrapper {
  counter-reset: kp-schritt;
}

.is-style-kp-schritt {
  counter-increment: kp-schritt;
  position: relative;
  padding-left: 3.4rem;
  min-height: 2.6rem;
  margin-top: 1.4em;
  margin-bottom: 1.4em;
}

.is-style-kp-schritt::before {
  content: counter(kp-schritt);
  position: absolute;
  left: 0;
  top: -0.1em;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: #bf1c23;
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 2.4rem;
  text-align: center;
}

/* ===== Achtung box ===== */

.is-style-kp-achtung,
.entry-content ul.is-style-kp-achtung,
.entry-content ol.is-style-kp-achtung {
  background: #fbf3d3;
  border: 1px solid #e3cf8b;
  border-radius: 0.7rem;
  padding: 1.4rem 1.6rem;
  margin: 1.5em 0 2em;
}

/* unordered lists trade the plain dot for the house asterisk */
ul.is-style-kp-achtung,
.entry-content ul.is-style-kp-achtung {
  list-style: none;
  margin-left: 0;
}

ul.is-style-kp-achtung li,
.entry-content ul.is-style-kp-achtung > li {
  list-style: none;
  position: relative;
  padding-left: 1.7em;
  margin: 0;
}

ul.is-style-kp-achtung li::before,
.entry-content ul.is-style-kp-achtung > li::before {
  content: "\2731"; /* ✱ — same glyph as the kp-rating rows */
  position: absolute;
  left: 0;
  top: 0.05em;
  color: #a8842e;
  font-weight: 700;
}

/* ordered Achtung lists keep their numbers, just indented into the box */
ol.is-style-kp-achtung,
.entry-content ol.is-style-kp-achtung {
  padding-left: 2.9rem;
}

.is-style-kp-achtung li + li,
.entry-content ul.is-style-kp-achtung > li + li,
.entry-content ol.is-style-kp-achtung > li + li {
  margin-top: 1em;
}

div.is-style-kp-achtung {
  padding: 1rem 1.25rem;
}

/* ===== Print: the one page people still print ===== */

@media print {
  .kp-rezept-nav,
  .kp-portionen-btn {
    display: none;
  }

  .is-style-kp-schritt,
  .is-style-kp-achtung {
    break-inside: avoid;
  }

  .is-style-kp-schritt::before {
    background: none;
    color: #000;
    border: 1px solid #000;
  }
}
