/* REZEPTE / JAN BAUER – Bistro & Kupfer
   Durchgehender Seitenhintergrund, ohne äußeren Rahmen.
   Rein lokales CSS. Keine Webfonts, kein Tracking; eigene Rezeptbilder optional. */
:root {
  color-scheme: light;
  --bg: #faf5eb;
  --paper: #faf5eb;
  --paper-soft: #f2e9df;
  --paper-raised: #fffaf3;
  --ink: #332923;
  --ink-soft: #5e5047;
  --muted: #837469;
  --copper: #a36950;
  --copper-deep: #8e5039;
  --brass: #ae7659;
  --line: #e2d5c6;
  --line-strong: #cdb9a8;
  --panel: #f5ece2;
  --checkbox: #a36950;
  --focus: #9c5941;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--ink); background: var(--bg);
  font: 16px/1.64 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
a { color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
[hidden] { display: none !important; }
::selection { background: var(--line-strong); color: var(--ink); }
.site-layout {
  min-height: 100vh;
  display: flex; flex-direction: column;
  background: transparent;
  width: 100%;
}
.container { width: min(100% - 112px, 1056px); margin-inline: auto; }
.site-header {
  min-height: 105px; display: flex; align-items: center; justify-content: space-between;
  gap: 20px; border-bottom: 1px solid var(--line);
}
.brand {
  text-decoration: none; display: inline-flex; gap: 15px; align-items: baseline;
  font-size: 20px; line-height: 1.15; font-weight: 650; letter-spacing: -.045em;
}
.brand .brand-domain {
  padding-left: 16px; border-left: 1px solid var(--line-strong);
  font-size: 12px; font-weight: 480; letter-spacing: .015em; color: var(--muted);
}
.brand:hover { color: var(--copper-deep); }
.eyebrow {
  text-transform: uppercase; font-size: 11px; letter-spacing: .18em;
  font-weight: 650; color: var(--copper); margin: 0;
}
.eyebrow::before {
  content: ""; width: 24px; display: inline-block; border-top: 1px solid var(--brass);
  margin: 0 12px 4px 0;
}
.home-main { padding-top: 105px; padding-bottom: 120px; flex: 1; }
.home-intro { max-width: 810px; margin-bottom: 103px; }
h1, h2, h3, p { margin-top: 0; }
h1, .recipe-entry-title, h2, .big-number {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}
.home-intro h1 {
  font-size: clamp(64px, 9vw, 110px); line-height: 1.08;
  letter-spacing: -.068em; margin: 17px 0 22px; color: var(--ink);
}
.home-intro h1 em { font-weight: 400; color: var(--copper); }
.intro-copy { font-size: 16px; color: var(--ink-soft); margin: 0; }
.index-section { border-top: 1px solid var(--line-strong); }
.index-heading {
  padding-block: 26px 29px; display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.index-heading h2, .section-header h2 { margin: 0; font-size: 36px; line-height: 1.2; letter-spacing: -.045em; }
.index-heading h2 { font-size: 27px; }
.number-tag {
  display: inline-block; font: 500 12px/1 system-ui, sans-serif; letter-spacing: 0;
  color: var(--muted); vertical-align: super; margin-left: 4px;
}
.sort-caption { color: var(--muted); font-size: 12px; letter-spacing: .03em; }
.search-field { position: relative; margin: 0 0 37px; }
.search-field svg { position: absolute; left: 17px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search-field input {
  width: 100%; height: 54px; border: 1px solid var(--line);
  border-radius: 2px; background: var(--paper-raised); color: var(--ink);
  outline: none; padding: 0 17px 0 51px; font-size: 14px;
}
.search-field input:focus { border-color: var(--copper); box-shadow: 0 0 0 2px var(--line); }
.search-field input::placeholder { color: var(--muted); }
.recipe-list { counter-reset: recipe; }
.recipe-entry {
  display: grid; grid-template-columns: 43px 1fr 26px; column-gap: 20px;
  align-items: start; text-decoration: none; border-top: 1px solid var(--line);
  padding: 29px 0 32px; transition: padding .18s, color .18s;
}
.recipe-entry:last-child { border-bottom: 1px solid var(--line); }
.recipe-entry::before {
  counter-increment: recipe; content: counter(recipe, decimal-leading-zero);
  color: var(--brass); font-size: 12px; font-weight: 580; padding-top: 9px;
}
.recipe-entry:hover { color: var(--copper-deep); padding-left: 6px; }
.recipe-entry-copy { display: grid; gap: 9px; }
.recipe-entry-title { font-size: clamp(25px, 3.2vw, 39px); line-height: 1.2; letter-spacing: -.035em; }
.recipe-entry-description { font-size: 14px; color: var(--muted); line-height: 1.6; }
.recipe-entry-arrow { color: var(--copper); font-size: 23px; margin-top: 2px; }
.results-count { margin-top: 21px; font-size: 12px; color: var(--muted); }
.no-results { padding: 26px 0; color: var(--ink-soft); border-top: 1px solid var(--line); }
.site-footer {
  margin-top: auto; border-top: 1px solid var(--line);
  padding-block: 25px 29px; display: flex; justify-content: space-between;
  gap: 16px; font-size: 12px; color: var(--muted);
}
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: var(--ink); }
/* Rezeptseite */
.recipe-main { flex: 1; padding-top: 47px; padding-bottom: 100px; }
.back-link {
  display: inline-flex; align-items: center; gap: 11px; text-decoration: none;
  color: var(--ink-soft); font-size: 13px; letter-spacing: .015em;
  padding-bottom: 8px; border-bottom: 1px solid transparent;
}
.back-link:hover { border-color: var(--copper); color: var(--copper-deep); }
.recipe-intro { padding: 76px 0 57px; }
.recipe-intro .eyebrow { margin-bottom: 21px; }
.recipe-intro h1 {
  font-size: clamp(54px, 7vw, 89px); line-height: 1.06;
  max-width: 860px; letter-spacing: -.063em; margin: 0 0 25px;
}
.recipe-description { font-size: 18px; line-height: 1.7; color: var(--ink-soft); max-width: 740px; margin-bottom: 45px; }
.recipe-meta {
  border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line);
  display: flex; flex-wrap: wrap; padding-block: 24px; gap: 21px 45px;
}
.meta-item { display: flex; flex-direction: column; gap: 4px; color: var(--muted); font-size: 11px; letter-spacing: .11em; text-transform: uppercase; }
.meta-item strong { color: var(--ink); text-transform: none; letter-spacing: 0; font-size: 16px; font-weight: 550; }
.recipe-grid {
  display: grid; grid-template-columns: minmax(290px, 0.92fr) minmax(0, 1.45fr);
  gap: clamp(46px, 6vw, 88px); align-items: start;
}
.content-section { min-width: 0; }
.section-header { padding-bottom: 22px; border-bottom: 1px solid var(--line); margin-bottom: 19px; }
.ingredients-section { background: var(--panel); padding: 28px 30px 18px; border: 1px solid var(--line); }
.ingredients-section .section-header { padding-bottom: 19px; border-color: var(--line-strong); margin-bottom: 8px; }
.ingredients-header { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ingredients-section h2 { font-size: 35px; }
.servings-control { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); background: var(--paper); border-radius: 50px; flex-shrink: 0; }
.servings-button { width: 31px; height: 34px; border: none; background: transparent; color: var(--ink); font-size: 18px; line-height: 1; }
.servings-button:hover:not(:disabled) { color: var(--copper-deep); }
.servings-button:disabled { opacity: .3; }
.servings-value { min-width: 24px; text-align: center; font-size: 13px; font-weight: 620; font-variant-numeric: tabular-nums; }
.ingredient-list { list-style: none; padding: 0; margin: 0; }
.ingredient-list li { border-bottom: 1px solid var(--line); }
.ingredient { display: flex; align-items: flex-start; gap: 14px; padding: 14px 0; cursor: pointer; }
.ingredient input {
  appearance: none; width: 18px; height: 18px; margin: 3px 0 0;
  border: 1px solid var(--line-strong); background: var(--paper);
  border-radius: 2px; flex-shrink: 0; position: relative;
}
.ingredient input:checked { background: var(--checkbox); border-color: var(--checkbox); }
.ingredient input:checked::after { content: ""; position: absolute; left: 5px; top: 1px; width: 4px; height: 9px; border: solid var(--paper); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.ingredient-copy { font-size: 14px; line-height: 1.52; }
.ingredient input:checked + .ingredient-copy { text-decoration: line-through; color: var(--muted); text-decoration-color: var(--muted); }
.ingredient-quantity { font-weight: 660; font-variant-numeric: tabular-nums; }
.ingredient-panel-footer { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; padding-top: 16px; }
.text-button { background: transparent; border: none; text-decoration: underline; color: var(--ink-soft); font-size: 11px; text-underline-offset: 3px; padding: 0; }
.text-button:hover { color: var(--ink); }
.method-section { padding-top: 23px; }
.method-section h2 { font-size: 43px; }
.method-list { list-style: none; margin: 0; padding: 0; counter-reset: cooking-step; }
.method-list li { display: grid; grid-template-columns: 45px 1fr; gap: 14px; padding: 18px 0 22px; border-bottom: 1px solid var(--line); counter-increment: cooking-step; }
.method-list li::before { content: counter(cooking-step, decimal-leading-zero); font: 400 28px/1.2 Georgia,serif; color: var(--brass); }
.method-list li p { margin: 2px 0 0; color: var(--ink-soft); font-size: 14.5px; line-height: 1.85; }
.method-list li strong { color: var(--ink); font-weight: 650; }
.closing-line { margin: 29px 0 21px; font: italic 23px/1.2 Georgia, serif; color: var(--copper-deep); }
.recipe-tip { border-left: 2px solid var(--brass); padding: 4px 0 5px 19px; margin-top: 31px; font-size: 14px; color: var(--ink-soft); line-height: 1.75; }
.recipe-tip strong { color: var(--ink); }
.ratings-section { margin-top: 99px; padding-top: 22px; border-top: 1px solid var(--line-strong); }
.ratings-section .section-header { border: none; margin: 0; padding-bottom: 14px; }
.ratings-section h2 { font-size: 36px; }
.empty-ratings { color: var(--muted); font-size: 14px; margin: 0; }
.rating-card { padding: 19px 0 23px; border-bottom: 1px solid var(--line); }
.rating-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 14px; }
.rating-head strong { font-weight: 600; }
.rating-stars { color: var(--brass); letter-spacing: .17em; }
.rating-card p { margin: 10px 0 0; color: var(--ink-soft); font-size: 14px; }
.not-found-main { flex: 1; padding-block: 120px; }
.not-found-main h1 { font-size: clamp(48px,6vw,80px); line-height: 1.2; letter-spacing: -.06em; }
.not-found-main p { color: var(--ink-soft); }
.primary-link { text-underline-offset: 4px; color: var(--copper-deep); }
.visually-hidden { position: absolute; height: 1px; width: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; clip-path: inset(50%); }
@media (max-width: 780px) {
  .container { width: min(100% - 44px, 1056px); }
  .site-header { min-height: 77px; }
  .home-main { padding-top: 75px; padding-bottom: 80px; }
  .home-intro { margin-bottom: 67px; }
  .recipe-main { padding-top: 29px; padding-bottom: 70px; }
  .recipe-intro { padding: 55px 0 41px; }
  .recipe-intro h1 { font-size: clamp(46px, 9vw, 66px); }
  .recipe-description { font-size: 16px; margin-bottom: 32px; }
  .recipe-grid { grid-template-columns: minmax(0,1fr); gap: 49px; }
  .ingredients-section { padding: 23px 24px 18px; }
  .method-section { padding-top: 0; }
  .ratings-section { margin-top: 71px; }
}
@media (max-width: 480px) {
  .container { width: min(100% - 34px, 1056px); }
  .brand { font-size: 18px; gap: 9px; }
  .brand .brand-domain { padding-left: 11px; font-size: 10.5px; }
  .home-main { padding-top: 58px; }
  .home-intro h1 { font-size: clamp(54px, 12vw, 75px); }
  .index-heading { flex-wrap: wrap; gap: 6px; }
  .recipe-entry { grid-template-columns: 28px 1fr 22px; gap: 11px; padding-block: 25px; }
  .recipe-entry-title { font-size: 26px; }
  .recipe-entry-description { font-size: 13px; }
  .recipe-intro h1 { font-size: clamp(45px, 11.5vw, 58px); }
  .recipe-meta { gap: 22px 30px; }
  .meta-item strong { font-size: 14px; }
  .section-header h2 { font-size: 32px; }
  .method-list li { grid-template-columns: 34px 1fr; gap: 11px; }
  .method-list li::before { font-size: 23px; }
  .site-footer { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .recipe-entry { transition: none; } }

/* Optionales eigenes Rezeptfoto rechts neben dem Titel (Bistro-Layout bleibt gleich). */
.recipe-hero.has-photo {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  gap: clamp(24px, 4vw, 60px); align-items: start;
}
.recipe-hero.has-photo h1 { font-size: clamp(47px, 5.4vw, 73px); overflow-wrap: break-word; }
.recipe-hero.has-photo .recipe-description { margin-bottom: 0; }
.recipe-photo { margin: 2px 0 0; }
.recipe-photo img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border: 1px solid var(--line); }
.recipe-hero.has-photo + .recipe-meta { margin-top: 42px; }
@media (max-width: 780px) {
  .recipe-hero.has-photo { grid-template-columns: minmax(0, 1fr) minmax(155px, 32%); gap: 18px; }
  .recipe-hero.has-photo h1 { font-size: clamp(36px, 6vw, 58px); }
  .recipe-hero.has-photo + .recipe-meta { margin-top: 29px; }
}
@media (max-width: 560px) {
  .recipe-hero.has-photo { grid-template-columns: 1fr; gap: 25px; }
  .recipe-hero.has-photo h1 { font-size: clamp(45px, 11.5vw, 58px); }
  .recipe-photo { width: min(100%, 380px); }
  .recipe-photo img { aspect-ratio: 4 / 3; }
}


/* V8 – NUR DESKTOP. Die bisherige mobile Ansicht aus V6 bleibt unverändert. */
@media (min-width: 1024px) {
  /* Kein eingeengter 1056px-Seitenkasten: luftiges Layout über die Fensterbreite. */
  .container {
    width: calc(100% - 72px);
    max-width: 1760px;
  }

  .recipe-intro { padding-top: 50px; padding-bottom: 44px; }
  .recipe-hero.has-photo {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
    gap: clamp(38px, 4.5vw, 88px);
    align-items: center;
  }
  .recipe-hero.has-photo h1 {
    font-size: clamp(50px, 4.35vw, 72px);
    line-height: 1.09;
    letter-spacing: -.06em;
    max-width: none;
    overflow-wrap: normal;
    hyphens: auto;
    text-wrap: balance;
  }
  .recipe-hero.has-photo .recipe-description {
    max-width: 700px;
    font-size: 17px;
    line-height: 1.72;
  }
  .recipe-photo { margin: 0; }
  .recipe-photo img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    border: 0;
    border-radius: 0;
  }
  .recipe-hero.has-photo + .recipe-meta { margin-top: 36px; }
}
