/* Rezepte-Bereich – öffentliche Unterseiten (rezepte.php, rezept.php).
   Farben, Schriften, Navigation, Footer und Cookie-Banner sind 1:1 von der
   Startseite (index.php) übernommen, damit alles wie aus einem Guss wirkt. */

:root {
    --board:        #232b24;   /* chalkboard green-black */
    --board-line:   #3a453b;
    --chalk:        #ecebe3;
    --chalk-dim:    #b9c2b6;

    --paper:        #f2ede1;   /* crate-paper warm neutral */
    --paper-raised: #fbf8f1;
    --ink:          #2a241c;
    --ink-soft:     #5c5445;

    --green:        #3f6b3a;   /* Gemüsemann */
    --green-deep:   #29452a;
    --green-tint:   #dfe9d6;

    --amber:        #a86a2a;   /* Der Teemann */
    --amber-deep:   #7c4a1c;
    --amber-tint:   #f0e0c4;

    --line:         #d9cfba;
    --shadow:       rgba(42, 36, 28, 0.14);
  }

  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  }

  body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: "Karla", ui-sans-serif, system-ui, sans-serif;
    font-size: 17px;
    line-height: 1.55;
  }

  h1, h2, h3 { font-family: "Karla", ui-sans-serif, system-ui, sans-serif; font-weight: 800; letter-spacing: -0.02em; text-wrap: balance; margin: 0; }
  .tag { font-family: "Caveat", cursive; }

  a { color: inherit; }
  img, svg { max-width: 100%; display: block; }

  .wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

  /* ---------- top nav ---------- */
  /* Material: translucent by default; the hairline only appears once the
     page has scrolled under it (a "scroll-edge" cue, not a fixed divider). */
  .nav {
    position: sticky; top: 0; z-index: 20;
    background: rgba(242,237,225,0.78);
    -webkit-backdrop-filter: blur(14px) saturate(1.4);
    backdrop-filter: blur(14px) saturate(1.4);
    border-bottom: 1px solid transparent;
    transition: border-color 200ms ease, box-shadow 200ms ease;
  }
  .nav.is-scrolled {
    border-bottom-color: var(--line);
    box-shadow: 0 8px 20px -16px rgba(42,36,28,0.35);
  }
  .nav-inner {
    max-width: 1080px; margin: 0 auto; padding: 12px 24px;
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px;
  }
  .brand {
    display: flex; align-items: center; gap: 10px;
    font-family: "Karla", sans-serif; font-weight: 600; font-size: 1.05rem;
    letter-spacing: 0.01em; white-space: nowrap;
  }
  .brand-marks { display: flex; align-items: center; flex: none; }
  .nav-badge { display: block; height: 60px; width: auto; }
  .brand span { color: var(--green-deep); }
  .brand em { font-style: normal; color: var(--ink-soft); font-weight: 400; }
  .nav-links { display: flex; align-items: center; gap: 6px; font-size: 0.92rem; font-weight: 600; }
  .nav-links a {
    text-decoration: none; color: var(--ink-soft);
    display: inline-flex; align-items: center;
    min-height: 44px; padding: 0 10px;
    border-bottom: 2px solid transparent;
    transition: color 150ms ease, border-color 150ms ease;
  }
  .nav-links a:hover, .nav-links a:focus-visible { color: var(--ink); border-color: var(--line); }
  .nav-links a:focus-visible { outline: 2px solid var(--green); outline-offset: -2px; border-radius: 2px; }

  .nav-call {
    display: inline-flex; align-items: center; gap: 7px;
    min-height: 44px !important; padding: 0 18px !important;
    border-radius: 999px;
    background: var(--green-deep); color: var(--paper-raised) !important;
    border-bottom: none !important; font-size: 0.88rem !important;
    transition: background-color 150ms ease, transform 100ms ease-out;
  }
  .nav-call svg { width: 15px; height: 15px; flex: none; }
  .nav-call:hover, .nav-call:focus-visible { background: var(--amber-deep); color: var(--paper-raised) !important; }
  .nav-call:active { transform: scale(0.96); }

  /* Small screens: the brand mark + full nav labels no longer fit on one
     row, so trim to the essentials — icon marks stay, "& Der Teemann" and
     the "Anrufen" label are dropped (the phone button keeps its aria-label
     and 44px target, so it stays fully usable as an icon-only button). */
  @media (max-width: 640px) {
    .nav-inner { padding: 10px 14px; gap: 6px; }
    .brand { gap: 6px; font-size: 0.88rem; }
    .brand-marks { display: none; }
    .brand em { display: none; }
    .nav-links { gap: 0; font-size: 0.8rem; }
    .nav-links a:not(.nav-call) { padding: 0 5px; }
    .nav-call { padding: 0 12px !important; gap: 0; margin-left: 2px; }
    .nav-call span { display: none; }
  }
  @media (max-width: 360px) {
    .brand { font-size: 0.78rem; }
    .nav-links a:not(.nav-call) { padding: 0 3px; }
  }

  .eyebrow {
    font-family: "Caveat", cursive; font-size: 1.5rem; color: var(--chalk-dim);
    display: block; margin-bottom: 6px; transform: rotate(-1.5deg);
  }
  /* ---------- footer / kontakt ---------- */
  footer {
    background: var(--board); color: var(--chalk);
    padding: 60px 24px 40px;
  }
  .foot-inner {
    max-width: 1080px; margin: 0 auto;
    display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px;
  }
  @media (max-width: 720px) { .foot-inner { grid-template-columns: 1fr; gap: 30px; } }
  .foot-marks { display: flex; align-items: center; margin-bottom: 14px; }
  .foot-badge { display: block; height: 108px; width: auto; }

  footer h3 { font-size: 1.3rem; margin-bottom: 10px; }
  footer p, footer a { color: var(--chalk-dim); font-size: 0.95rem; }
  footer a { text-decoration: underline; text-underline-offset: 3px; }
  footer .col h4 {
    font-family: "Karla", sans-serif; text-transform: uppercase; letter-spacing: 0.08em;
    font-size: 0.78rem; color: var(--chalk-dim); margin: 0 0 10px; font-weight: 700;
  }
  footer .col div { color: var(--chalk); margin-bottom: 6px; font-size: 0.95rem; }
  .social-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
  .tgtg-badge {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 9px 16px;
    border-radius: 999px; border: 1px solid var(--board-line);
    background: rgba(255,255,255,0.04);
    color: var(--chalk) !important; text-decoration: none !important;
    font-size: 0.88rem; font-weight: 600;
  }
  .tgtg-badge:hover { border-color: var(--green); background: rgba(63,107,58,0.18); }
  .tgtg-badge.instagram:hover { border-color: var(--amber-deep); background: rgba(168,106,42,0.18); }
  .tgtg-badge .stars { color: #f4c988; font-weight: 700; }
  .tgtg-badge .dot { color: var(--chalk-dim); }

  .foot-bottom {
    max-width: 1080px; margin: 40px auto 0; padding-top: 20px;
    border-top: 1px solid var(--board-line);
    font-size: 0.85rem; color: var(--chalk-dim);
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  }
  .foot-legal { display: flex; flex-wrap: wrap; gap: 4px 16px; }
  .foot-legal a { color: var(--chalk-dim); text-decoration: underline; text-underline-offset: 3px; }
  .foot-legal a:hover, .foot-legal a:focus-visible { color: var(--chalk); }

  /* ---------- cookie consent banner ---------- */
  .cookie-banner {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
    background: var(--board); color: var(--chalk);
    border-top: 1px solid var(--board-line);
    box-shadow: 0 -8px 24px rgba(0,0,0,0.25);
    padding: 20px 24px;
  }
  .cookie-banner[hidden] { display: none; }
  .cookie-banner-inner {
    max-width: 1080px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    gap: 24px; flex-wrap: wrap;
  }
  .cookie-banner-text { flex: 1 1 380px; font-size: 0.92rem; line-height: 1.55; color: var(--chalk-dim); }
  .cookie-banner-text strong { color: var(--chalk); }
  .cookie-banner-text a { color: var(--chalk); text-decoration: underline; text-underline-offset: 3px; }
  .cookie-banner-actions { display: flex; gap: 10px; flex-wrap: wrap; flex: none; }
  .cookie-btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 44px; padding: 0 20px; border-radius: 999px;
    font-size: 0.9rem; font-weight: 600; cursor: pointer;
    border: 1px solid var(--board-line); transition: background-color 150ms ease, transform 100ms ease-out;
  }
  .cookie-btn:active { transform: scale(0.96); }
  .cookie-btn-accept { background: var(--green); color: var(--paper-raised); border-color: var(--green); }
  .cookie-btn-accept:hover, .cookie-btn-accept:focus-visible { background: var(--green-deep); }
  .cookie-btn-reject { background: transparent; color: var(--chalk); }
  .cookie-btn-reject:hover, .cookie-btn-reject:focus-visible { background: rgba(255,255,255,0.08); }
  @media (max-width: 640px) {
    .cookie-banner { padding: 16px; }
    .cookie-banner-inner { gap: 14px; }
    .cookie-banner-actions { width: 100%; }
    .cookie-btn { flex: 1 1 auto; }
  }

/* ============ REZEPTE ============ */
a.brand { text-decoration: none; color: var(--ink); }
.nav-links a.is-active { color: var(--ink); border-color: var(--amber); }

.rz-wrap { max-width: 1080px; margin: 0 auto; padding: 36px 24px 64px; }
.rz-schmal { max-width: 860px; }

.rz-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 20px; border-radius: 999px;
  background: var(--green-deep); color: var(--paper-raised); text-decoration: none;
  font-weight: 700; font-size: 0.92rem; white-space: nowrap;
  transition: background-color 150ms ease, transform 100ms ease-out;
}
.rz-btn:hover, .rz-btn:focus-visible { background: var(--amber-deep); }
.rz-btn:active { transform: scale(0.96); }

/* ---------- Kopf der Übersicht (Kreidetafel wie Startseite) ---------- */
.rz-kopf {
  background: var(--board); color: var(--chalk);
  padding: 56px 24px 48px; position: relative;
  border-bottom: 10px solid var(--paper-raised);
}
.rz-kopf::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 10px;
  background: repeating-linear-gradient(90deg, var(--green) 0 26px, var(--amber) 26px 52px);
  opacity: 0.9;
}
.rz-kopf-inner { max-width: 1080px; margin: 0 auto; }
.rz-kopf h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 700; line-height: 1.05; letter-spacing: -0.015em; }
.rz-kopf p { margin: 14px 0 0; max-width: 52ch; color: var(--chalk-dim); font-size: 1.05rem; }

/* ---------- Filter ---------- */
.rz-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.rz-filter a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--paper-raised);
  text-decoration: none; font-weight: 600; font-size: 0.9rem; color: var(--ink-soft);
}
.rz-filter a:hover { color: var(--ink); border-color: var(--ink-soft); }
.rz-filter a.is-active { background: var(--ink); color: var(--paper-raised); border-color: var(--ink); }
.rz-filter a.gruen.is-active { background: var(--green-deep); border-color: var(--green-deep); }
.rz-filter a.amber.is-active { background: var(--amber-deep); border-color: var(--amber-deep); }

/* ---------- Karten ---------- */
.rz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.rz-karte {
  display: flex; flex-direction: column; text-decoration: none; color: var(--ink);
  background: var(--paper-raised); border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; box-shadow: 0 10px 24px -18px var(--shadow);
  transition: transform 160ms ease-out, box-shadow 160ms ease-out;
}
.rz-karte:hover, .rz-karte:focus-visible { transform: translateY(-3px); box-shadow: 0 16px 30px -18px var(--shadow); }
.rz-karte:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.rz-karte-foto { position: relative; aspect-ratio: 4 / 3; background: var(--line); }
.rz-karte-foto img { width: 100%; height: 100%; object-fit: cover; }
.rz-chip {
  position: absolute; top: 12px; left: 12px;
  padding: 4px 12px; border-radius: 999px; font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.03em; text-transform: uppercase;
  background: var(--green-deep); color: var(--paper-raised);
}
.rz-karte.tee .rz-chip, .rz-rezept.tee .rz-chip { background: var(--amber-deep); }
.rz-chip.inline { position: static; display: inline-block; }
.rz-karte-text { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.rz-art { font-family: "Caveat", cursive; font-size: 1.25rem; color: var(--amber-deep); line-height: 1; }
.rz-karte.gemuese .rz-art { color: var(--green); }
.rz-karte h2 { font-size: 1.3rem; font-weight: 600; line-height: 1.2; }
.rz-karte p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }
.rz-karte-meta { margin-top: auto; padding-top: 10px; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 0.85rem; font-weight: 600; color: var(--ink-soft); }

.rz-leer {
  background: var(--paper-raised); border: 1px dashed var(--line); border-radius: 14px;
  padding: 34px 28px; text-align: center; color: var(--ink-soft);
}
.rz-leer p { margin: 0 0 10px; }
.rz-leer strong { color: var(--ink); font-family: "Karla", sans-serif; font-size: 1.2rem; }

/* ---------- Hinweis „Zutaten bei uns“ ---------- */
.rz-stand-hinweis {
  margin-top: 40px; padding: 22px 24px; border-radius: 14px;
  background: var(--board); color: var(--chalk);
  display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap;
}
.rz-stand-hinweis div { display: flex; flex-direction: column; gap: 4px; }
.rz-stand-hinweis strong { font-family: "Karla", sans-serif; font-size: 1.15rem; font-weight: 600; }
.rz-stand-hinweis span { color: var(--chalk-dim); font-size: 0.95rem; }
.rz-stand-hinweis .rz-btn { background: var(--green); }
.rz-stand-hinweis .rz-btn:hover { background: var(--amber); }

/* ---------- Einzelnes Rezept ---------- */
.rz-zurueck { margin: 0 0 18px; font-size: 0.92rem; font-weight: 600; }
.rz-zurueck a { color: var(--ink-soft); text-decoration: none; }
.rz-zurueck a:hover { color: var(--ink); text-decoration: underline; }
.rz-rezept-kopf { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.rz-rezept-kopf h1 {
  flex-basis: 100%; font-size: clamp(2rem, 4.6vw, 3rem); font-weight: 700;
  line-height: 1.08; letter-spacing: -0.015em; margin-top: 4px;
}
.rz-rezept.gemuese .rz-rezept-kopf .rz-art { color: var(--green); }
.rz-einleitung { flex-basis: 100%; margin: 10px 0 0; font-size: 1.1rem; color: var(--ink-soft); max-width: 62ch; }

.rz-foto { margin: 26px 0 0; border-radius: 16px; overflow: hidden; background: var(--line); box-shadow: 0 18px 36px -24px var(--shadow); }
.rz-foto img { width: 100%; max-height: 520px; object-fit: cover; }

.rz-fakten {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px;
  margin: 22px 0 0; padding: 16px 18px; border-radius: 14px;
  background: var(--paper-raised); border: 1px solid var(--line);
}
.rz-fakten div { margin: 0; }
.rz-fakten dt { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); }
.rz-fakten dd { margin: 2px 0 0; font-family: "Karla", sans-serif; font-weight: 600; font-size: 1.1rem; }

.rz-aktionen { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 18px 0 0; }
.rz-aktion {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--paper-raised);
  color: var(--ink); text-decoration: none; font: inherit; font-weight: 600; font-size: 0.88rem;
  cursor: pointer; transition: border-color 150ms ease, background-color 150ms ease;
}
.rz-aktion:hover, .rz-aktion:focus-visible { border-color: var(--ink-soft); background: #fff; }
.rz-aktion.whatsapp { background: #1f7a4a; border-color: #1f7a4a; color: #fff; }
.rz-aktion.whatsapp:hover { background: #17603a; }
.rz-hinweis { font-size: 0.85rem; color: var(--green-deep); font-weight: 600; word-break: break-all; }

.rz-inhalt { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 34px; margin-top: 34px; align-items: start; }
@media (max-width: 760px) { .rz-inhalt { grid-template-columns: 1fr; gap: 26px; } }
.rz-inhalt h2 { font-size: 1.5rem; font-weight: 600; margin-bottom: 6px; }

.rz-zutaten {
  background: var(--paper-raised); border: 1px solid var(--line); border-radius: 14px; padding: 22px 22px 18px;
}
.rz-rezept.gemuese .rz-zutaten { border-top: 4px solid var(--green); }
.rz-rezept.tee .rz-zutaten { border-top: 4px solid var(--amber); }
.rz-fuer { margin: 0 0 8px; color: var(--ink-soft); font-size: 0.92rem; }
.rz-zutaten ul { list-style: none; margin: 0; padding: 0; }
.rz-zutaten li { border-bottom: 1px solid var(--line); }
.rz-zutaten li:last-child { border-bottom: none; }
.rz-zutaten label { display: flex; align-items: flex-start; gap: 10px; padding: 9px 0; cursor: pointer; }
.rz-zutaten input[type="checkbox"] { width: 18px; height: 18px; margin-top: 4px; flex: none; accent-color: var(--green-deep); }
.rz-zutaten input:checked + span { text-decoration: line-through; color: var(--ink-soft); }
.rz-einkauf { margin: 12px 0 0; font-size: 0.82rem; color: var(--ink-soft); }

.rz-schritte ol { list-style: none; counter-reset: schritt; margin: 12px 0 0; padding: 0; }
.rz-schritte li {
  counter-increment: schritt; position: relative;
  padding: 2px 0 20px 52px; min-height: 40px;
}
.rz-schritte li::before {
  content: counter(schritt); position: absolute; left: 0; top: 0;
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: "Karla", sans-serif; font-weight: 700; font-size: 1rem;
  background: var(--green-tint); color: var(--green-deep);
}
.rz-rezept.tee .rz-schritte li::before { background: var(--amber-tint); color: var(--amber-deep); }

.rz-tipp {
  margin-top: 6px; padding: 16px 18px; border-radius: 12px;
  background: var(--amber-tint); border-left: 4px solid var(--amber);
}
.rz-rezept.gemuese .rz-tipp { background: var(--green-tint); border-left-color: var(--green); }
.rz-tipp-titel { font-family: "Caveat", cursive; font-size: 1.4rem; line-height: 1; color: var(--ink); }
.rz-tipp p { margin: 6px 0 0; }

.rz-druck-fuss { display: none; }

@media (max-width: 640px) {
  .rz-wrap { padding: 26px 16px 52px; }
  .rz-kopf { padding: 40px 16px 36px; }
  .rz-stand-hinweis { padding: 20px 18px; }
  .rz-stand-hinweis .rz-btn { width: 100%; }
}

/* ---------- Druckansicht ---------- */
@media print {
  @page { margin: 16mm 14mm; }
  body { background: #fff; color: #000; font-size: 11.5pt; }
  .nav, .cookie-banner, footer, .rz-aktionen, .rz-zurueck, .rz-stand-hinweis, .rz-einkauf { display: none !important; }
  .rz-wrap { padding: 0; max-width: none; }
  .rz-foto { box-shadow: none; border-radius: 6px; max-width: 60%; }
  .rz-foto img { max-height: 70mm; }
  .rz-fakten, .rz-zutaten { background: #fff; }
  .rz-inhalt { grid-template-columns: 1fr 1.6fr; gap: 10mm; margin-top: 8mm; }
  .rz-zutaten input[type="checkbox"] { -webkit-appearance: none; appearance: none; width: 11px; height: 11px; border: 1px solid #555; margin-top: 5px; }
  .rz-zutaten input:checked + span { text-decoration: none; color: #000; }
  .rz-schritte li { break-inside: avoid; }
  .rz-schritte li::before { border: 1px solid #555; background: #fff !important; color: #000 !important; }
  .rz-tipp { background: #fff !important; border: 1px solid #999; border-left-width: 4px; }
  .rz-druck-fuss { display: block; margin-top: 8mm; font-size: 8.5pt; color: #444; border-top: 1px solid #ccc; padding-top: 3mm; }
  /* kompakter, damit ein normales Rezept auf eine A4-Seite passt */
  body { font-size: 10.5pt; line-height: 1.45; }
  .rz-rezept-kopf h1 { font-size: 20pt; }
  .rz-einleitung { font-size: 10.5pt; margin-top: 2mm; }
  .rz-foto { margin-top: 4mm; max-width: 50%; }
  .rz-foto img { max-height: 52mm; }
  .rz-fakten { margin-top: 4mm; padding: 2.5mm 4mm; }
  .rz-fakten dd { font-size: 11pt; }
  .rz-inhalt { margin-top: 6mm; }
  .rz-inhalt h2 { font-size: 13pt; }
  .rz-zutaten { padding: 4mm; }
  .rz-zutaten label { padding: 1.2mm 0; }
  .rz-schritte ol { margin-top: 2mm; }
  .rz-schritte li { padding: 0 0 3mm 9mm; min-height: 0; }
  .rz-schritte li::before { width: 6mm; height: 6mm; font-size: 9pt; }
  .rz-tipp { padding: 3mm 4mm; }
}

/* Paket A (22.11.2026): "Noch mehr Rezepte" unter jedem Rezept */
.rz-weitere { margin-top: 56px; }
.rz-weitere > h2 { font-size: 1.6rem; margin-bottom: 18px; }
.rz-weitere .rz-karte h3 { font-size: 1.15rem; font-weight: 600; line-height: 1.25; }
.rz-weitere-alle { margin-top: 18px; font-weight: 600; }
.rz-weitere-alle a { color: var(--green-deep); }
@media print { .rz-weitere { display: none !important; } }
