/* ---------------------------------------------------------------
   Rezepte tab (index.html, js/rezepte.js). Like Kontakt it is a slab that stands in for the book
   (see .kontakt-slab in style.css). For everyone it says "Coming soon!"; a signed-in admin sees the
   actual page: slate header, filter chips, recipe cards, a recipe with a print/PDF sheet.
   --------------------------------------------------------------- */

.rezepte-slab { padding-bottom: 1rem; }
@media (min-width: 821px) {
  .rezepte-slab { display: block; width: min(1120px, 100%); }
}

/* ---- Coming soon ---- */
.rz-soon {
  min-height: clamp(220px, 34vh, 340px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.4rem;
  text-align: center;
}
.rz-soon[hidden] { display: none; }
.rz-soon-t {
  margin: 0;
  font-family: "Caveat", cursive; font-weight: 700;
  font-size: clamp(3rem, 9vw, 5.4rem); line-height: 1;
  color: var(--terracotta);
  transform: rotate(-3deg);
}
.rz-team {
  appearance: none; background: none; border: 0; padding: 0.3rem 0.2rem; cursor: pointer;
  font: inherit; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); text-decoration: underline; text-underline-offset: 3px;
}
.rz-team:hover { color: var(--terracotta); }
.rz-login { width: min(320px, 100%); display: grid; gap: 0.7rem; text-align: left; }
.rz-login[hidden] { display: none; }
.rz-fld { display: grid; gap: 0.3rem; }
.rz-fld span { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.rz-fld input {
  font: inherit; font-size: 1rem; padding: 0.7rem 0.9rem; border-radius: 10px;
  border: 1px solid rgba(43, 39, 35, 0.22); background: #fffdf6; color: var(--ink);
}
.rz-fld input:focus { outline: 2px solid var(--terracotta); outline-offset: 1px; }
.rz-msg { margin: 0; font-size: 0.85rem; color: #b3261e; }
.rz-btn {
  appearance: none; border: 0; cursor: pointer; font: inherit; font-weight: 700; font-size: 0.8rem;
  letter-spacing: 0.1em; text-transform: uppercase; padding: 0.85rem 1.4rem; border-radius: 99px;
  background: var(--terracotta); color: #fff;
}
.rz-btn[disabled] { opacity: 0.55; cursor: default; }

/* ---- the actual page (admins only for now) ---- */
.rz-page { --rz-slate: #1c2a36; text-align: left; color: var(--ink); }
.rz-page[hidden] { display: none; }
.rz-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem;
  margin: 0 0 1rem; padding: 0.55rem 0.9rem; border-radius: 12px;
  background: repeating-linear-gradient(135deg, rgba(173, 83, 64, 0.14) 0 10px, rgba(173, 83, 64, 0.06) 10px 20px);
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.04em;
}
.rz-bar button { appearance: none; background: none; border: 0; cursor: pointer; font: inherit; font-weight: 700; color: var(--terracotta); text-decoration: underline; padding: 0; }
.rz-hero {
  position: relative; border-radius: 28px; overflow: hidden; color: #fff; text-align: center;
  min-height: clamp(380px, 46vw, 520px); display: grid; place-items: center;
  background: var(--rz-slate) url(../images/rezepte/slate.webp) center / cover;
}
.rz-hero h1 {
  margin: 0; font-family: "Permanent Marker", cursive; font-weight: 400;
  font-size: clamp(2.5rem, 6.4vw, 5rem); line-height: 1.02; text-shadow: 0 3px 18px rgba(0, 0, 0, 0.45);
}
.rz-hero h1 em { display: block; font-style: normal; font-size: 1.18em; }
.rz-hero p { margin: 0.9rem auto 1.5rem; max-width: 34ch; font-weight: 500; font-size: clamp(0.85rem, 1.6vw, 1rem); text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6); }
.rz-pill {
  appearance: none; border: 0; cursor: pointer; font: inherit; display: inline-flex; align-items: center; gap: 0.55rem;
  background: #fff; color: #12100e; font-weight: 700; font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.95rem 2.1rem; border-radius: 99px; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28); text-decoration: none;
}
.rz-pill.dark { background: #12100e; color: #fff; box-shadow: none; }
.rz-pill.line { background: none; color: #12100e; box-shadow: none; border: 1.5px solid #12100e; }
.rz-ic { width: 1.1em; height: 1.1em; flex: none; }
.rz-chips { display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: center; margin: 2rem 0 1.6rem; }
.rz-chip {
  appearance: none; cursor: pointer; font: inherit; padding: 0.5rem 1.05rem; border-radius: 99px;
  border: 1px solid rgba(43, 39, 35, 0.16); background: rgba(255, 255, 255, 0.55);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink);
}
.rz-chip.on { background: #12100e; color: #fff; border-color: #12100e; }
.rz-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem 1.2rem; }
.rz-card { align-self: start; appearance: none; background: none; border: 0; padding: 0; text-align: left; cursor: pointer; font: inherit; color: inherit; display: block; }
.rz-card[hidden] { display: none; }
.rz-ph { position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 3.3; background: #e7dcc0; }
.rz-ph img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s; }
@media (hover: hover) { .rz-card:hover .rz-ph img { transform: scale(1.05); } }
.rz-tag { position: absolute; left: 0.7rem; top: 0.7rem; background: rgba(18, 16, 14, 0.78); color: #fff; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.3rem 0.65rem; border-radius: 99px; }
.rz-card h3 { font-size: 0.98rem; font-weight: 700; margin: 0.75rem 0.1rem 0.15rem; line-height: 1.3; }
.rz-meta { font-size: 0.74rem; color: var(--muted); margin: 0 0.1rem; font-weight: 500; }
.rz-band {
  margin: 3rem auto 0; border-radius: 24px; background: var(--rz-slate); color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 1.4rem; flex-wrap: wrap; padding: 1.6rem 2rem;
}
.rz-band h3 { margin: 0; font-family: "Permanent Marker", cursive; font-weight: 400; font-size: 1.7rem; line-height: 1.1; }
.rz-band p { margin: 0.3rem 0 0; font-size: 0.85rem; opacity: 0.85; }

/* a recipe */
.rz-back { appearance: none; background: none; border: 0; cursor: pointer; font: inherit; padding: 0; margin-bottom: 1rem; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; color: var(--ink); }
.rz-head { border-radius: 28px; overflow: hidden; display: grid; grid-template-columns: 1.1fr 1fr; background: var(--rz-slate); color: #fff; min-height: 380px; }
.rz-head-img { background-size: cover; background-position: center; min-height: 280px; }
.rz-head-tx {
  position: relative; padding: clamp(1.5rem, 4vw, 3rem); display: flex; flex-direction: column; justify-content: center; gap: 1rem;
  background: var(--rz-slate) url(../images/rezepte/slate.webp) 30% 50% / cover;
}
.rz-head-tx::before { content: ""; position: absolute; inset: 0; background: rgba(20, 30, 40, 0.55); }
.rz-head-tx > * { position: relative; }
.rz-head h1 { margin: 0; font-family: "Permanent Marker", cursive; font-weight: 400; font-size: clamp(2rem, 4.2vw, 3.2rem); line-height: 1.08; }
.rz-facts { display: flex; gap: 0.55rem; flex-wrap: wrap; }
.rz-facts span { border: 1px solid rgba(255, 255, 255, 0.4); border-radius: 99px; padding: 0.35rem 0.85rem; font-size: 0.74rem; font-weight: 600; }
.rz-cols { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(1.4rem, 4vw, 3rem); margin-top: 2.4rem; }
.rz-ingr { background: var(--rz-slate); color: #fff; border-radius: 22px; padding: 1.6rem 1.7rem; align-self: start; }
.rz-ingr h2, .rz-steps h2 { margin: 0 0 1rem; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; }
.rz-ingr ul, .rz-steps ol { list-style: none; margin: 0; padding: 0; }
.rz-ingr li { display: flex; gap: 0.8rem; padding: 0.55rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.14); font-size: 0.9rem; }
.rz-ingr b { flex: 0 0 7.2rem; font-weight: 700; color: #ffd7a0; }
.rz-steps li { display: flex; gap: 1rem; margin-bottom: 1.3rem; }
.rz-no { flex: none; width: 2.3rem; height: 2.3rem; border-radius: 50%; background: #12100e; color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 0.9rem; }
.rz-steps p { margin: 0; padding-top: 0.3rem; font-size: 0.95rem; }
.rz-tip { margin-top: 1.4rem; border-radius: 18px; background: #fff; border: 1px dashed var(--terracotta); padding: 1rem 1.2rem; font-size: 0.9rem; }
.rz-tip b { color: var(--terracotta); }
.rz-acts { margin-top: 2rem; display: flex; gap: 0.8rem; flex-wrap: wrap; }

@media (max-width: 900px) {
  .rz-grid { grid-template-columns: repeat(2, 1fr); }
  .rz-head, .rz-cols { grid-template-columns: 1fr; }
  .rz-head-img { min-height: 240px; }
}
@media (max-width: 600px) {
  .rz-hero { background-image: url(../images/rezepte/slate-p.webp); min-height: 480px; border-radius: 22px; }
  .rz-hero p { display: none; }
  .rz-hero h1 { font-size: 2.5rem; }
  .rz-grid { gap: 1.1rem 0.8rem; }
  .rz-card h3 { font-size: 0.86rem; }
  .rz-pill { padding: 0.85rem 1.5rem; font-size: 0.74rem; }
  .rz-band { padding: 1.3rem; }
  .rz-chips { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 0.3rem; scrollbar-width: none; }
  .rz-chip { white-space: nowrap; }
}

/* ---- print / "Als PDF": only the recipe sheet is printed ---- */
.rz-sheet { display: none; }
@media print {
  body.rz-printing > *:not(.rz-sheet) { display: none !important; }
  body.rz-printing { background: #fff !important; }
  body.rz-printing .rz-sheet { display: block; font-family: "Montserrat", sans-serif; color: #2b2723; padding: 0; }
  .rz-sheet .ps-top { display: flex; justify-content: space-between; align-items: center; padding-bottom: 14px; }
  .rz-sheet .ps-top img { width: 190px; }
  .rz-sheet .ps-top span { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 700; color: #8a7d6f; }
  .rz-sheet .ps-pic { height: 270px; background-size: cover; background-position: center; border-radius: 14px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .rz-sheet small { display: block; margin-top: 18px; font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 700; color: #ad5340; }
  .rz-sheet h1 { font-family: "Permanent Marker", cursive; font-weight: 400; font-size: 36px; line-height: 1.05; margin: 6px 0 10px; }
  .rz-sheet .ps-f span { display: inline-block; border: 1.5px solid #2b2723; border-radius: 99px; padding: 3px 11px; font-size: 11px; font-weight: 700; margin-right: 6px; }
  .rz-sheet .ps-cols { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 28px; margin-top: 20px; }
  .rz-sheet h2 { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 700; color: #ad5340; margin: 0 0 8px; }
  .rz-sheet ul, .rz-sheet ol { list-style: none; margin: 0; padding: 0; }
  .rz-sheet li { font-size: 12px; padding: 5px 0; border-bottom: 1px solid #ddd3bd; display: flex; gap: 10px; }
  .rz-sheet li b { flex: 0 0 78px; }
  .rz-sheet ol li { border: 0; font-size: 12.5px; line-height: 1.5; }
  .rz-sheet ol li i { flex: none; width: 22px; height: 22px; border-radius: 50%; background: #12100e; color: #fff; font-style: normal; font-size: 11px; font-weight: 700; display: grid; place-items: center; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .rz-sheet .ps-tip { margin-top: 16px; border: 1.5px dashed #ad5340; border-radius: 12px; padding: 9px 13px; font-size: 12px; }
  .rz-sheet .ps-tip b { color: #ad5340; }
  .rz-sheet .ps-ft { margin-top: 18px; padding-top: 10px; border-top: 1px solid #ddd3bd; display: flex; justify-content: space-between; font-size: 9.5px; color: #8a7d6f; }
}
