/* butterburger.de – lokales CSS, keine externen Abhängigkeiten */
:root {
  --butter: #f5c544;
  --butter-soft: #fbe9b3;
  --cream: #fdf9ef;
  --paper: #ffffff;
  --crust: #332416;
  --toast: #7c5a36;
  --copper: #a34a20;
  --copper-dark: #7f3714;
  --line: #ead9b8;
  --focus: #1f5bd8;
  --font-body: "Seravek", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Avenir Next Condensed", "Arial Narrow", "Segoe UI", system-ui, sans-serif;
  --wrap: 68rem;
  --measure: 44rem;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--crust);
  background: var(--cream);
}

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 1.1rem; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: var(--crust);
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h1 { font-size: clamp(1.9rem, 4.5vw, 2.9rem); font-weight: 800; }
h2 { font-size: clamp(1.45rem, 3vw, 1.9rem); font-weight: 700; margin-top: 1.6em; }
h3 { font-size: 1.2rem; font-weight: 700; margin-top: 1.4em; }
h4 { font-size: 1.05rem; margin-top: 1.2em; }

p, ul, ol, dl { margin: 0 0 1em; max-width: var(--measure); }
li { margin-bottom: 0.35em; }
a { color: var(--copper); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--copper-dark); }
a:focus-visible, button:focus-visible, input:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 2px;
}
code { background: var(--butter-soft); padding: 0.1em 0.35em; border-radius: 4px; font-size: 0.92em; }
.muted { color: var(--toast); font-size: 0.95rem; }
.js-only { display: none; }
.js .js-only { display: block; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--crust); color: #fff; padding: 0.6rem 1rem; z-index: 100;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

.linklike {
  background: none; border: 0; padding: 0; font: inherit;
  color: var(--copper); text-decoration: underline; cursor: pointer;
  text-underline-offset: 2px;
}
.linklike:hover { color: var(--copper-dark); }

/* Header */
.site-header {
  background: var(--paper);
  border-bottom: 4px solid var(--butter);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 4rem; flex-wrap: wrap; padding-block: 0.5rem;
}
.brand { display: inline-flex; align-items: center; gap: 0.55rem; text-decoration: none; }
.brand-word { font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; color: var(--crust); }
.brand-word span { color: var(--copper); }
.nav-toggle {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font: inherit; font-weight: 600; background: var(--butter-soft);
  border: 1px solid var(--line); border-radius: 8px; padding: 0.45rem 0.8rem; cursor: pointer;
}
.nav-toggle-bars { width: 18px; height: 2px; background: var(--crust); position: relative; display: inline-block; }
.nav-toggle-bars::before, .nav-toggle-bars::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--crust);
}
.nav-toggle-bars::before { top: -6px; } .nav-toggle-bars::after { top: 6px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.2rem; flex-wrap: wrap; }
.site-nav a {
  display: block; padding: 0.55rem 0.8rem; text-decoration: none;
  font-weight: 600; color: var(--crust); border-radius: 8px;
}
.site-nav a:hover { background: var(--butter-soft); }
.site-nav a[aria-current="page"] { background: var(--butter); }
@media (max-width: 760px) {
  .js .site-nav { display: none; width: 100%; }
  .js .site-nav.open { display: block; }
  .js .site-nav ul { flex-direction: column; padding-block: 0.5rem; }
}
@media (min-width: 761px) { .nav-toggle { display: none; } }
html:not(.js) .nav-toggle { display: none; }

/* Breadcrumbs */
.breadcrumbs { background: var(--paper); border-bottom: 1px solid var(--line); font-size: 0.88rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.3rem; margin: 0; padding: 0.5rem 0; max-width: none; }
.breadcrumbs li + li::before { content: "›"; margin-right: 0.3rem; color: var(--toast); }
.breadcrumbs a { color: var(--toast); }

/* Hero */
.hero { background: var(--paper); position: relative; }
.hero-grid { display: grid; gap: 1.6rem; padding-block: 2.2rem 2.8rem; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.1fr 1fr; } }
.eyebrow {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.14em; font-size: 0.8rem; color: var(--copper); margin-bottom: 0.6rem;
}
.lede { font-size: 1.15rem; color: #4a3a2b; }
.hero-actions { display: flex; gap: 0.7rem; flex-wrap: wrap; margin-top: 1.2rem; }
.hero-media { margin: 0; }
.hero-media img {
  width: 100%; height: auto; display: block; border-radius: 14px;
  border: 1px solid var(--line); background: var(--butter-soft);
}
.hero-media figcaption { font-size: 0.85rem; color: var(--toast); margin-top: 0.45rem; }
.butter-edge { position: absolute; left: 0; right: 0; bottom: -1px; line-height: 0; }
.butter-edge svg { width: 100%; height: 26px; display: block; }

/* Buttons */
.btn {
  display: inline-block; font-weight: 700; text-decoration: none;
  border-radius: 10px; padding: 0.75rem 1.3rem; border: 2px solid transparent;
  font-family: var(--font-body); font-size: 1rem; cursor: pointer;
}
.btn-primary { background: var(--crust); color: #fff; }
.btn-primary:hover { background: #000; color: #fff; }
.btn-ghost { background: transparent; color: var(--crust); border-color: var(--crust); }
.btn-ghost:hover { background: var(--butter-soft); }
.btn-small { padding: 0.4rem 0.8rem; font-size: 0.9rem; background: var(--butter); color: var(--crust); border: 1px solid var(--line); }
.btn-small:hover { background: var(--butter-soft); }

/* Sections & cards */
.section { padding-block: 2.4rem; }
.section-alt { background: var(--paper); border-block: 1px solid var(--line); }
.card-grid { display: grid; gap: 1rem; margin-top: 1.2rem; }
@media (min-width: 720px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
  padding: 1.1rem 1.2rem; border-top: 5px solid var(--butter);
}
.section-alt .card { background: var(--cream); }
.card h3 { margin-top: 0.1em; }
.card a { text-decoration: none; color: var(--crust); }
.card a:hover { color: var(--copper); text-decoration: underline; }
.card p { margin-bottom: 0; font-size: 0.97rem; }
.post-list { list-style: none; padding: 0; }
.post-list li {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: 0.6rem 0; border-bottom: 1px dashed var(--line);
}
.post-list time { color: var(--toast); font-size: 0.9rem; white-space: nowrap; }
.trust-strip p { max-width: 52rem; }

/* Articles */
.article-header { padding-top: 2rem; }
.article-meta { color: var(--toast); font-size: 0.92rem; margin-bottom: 0.4rem; }
.article-updated {
  color: var(--toast); font-size: 0.92rem; background: var(--butter-soft);
  display: inline-block; padding: 0.25rem 0.6rem; border-radius: 6px;
}
.article > .wrap { padding-bottom: 2.5rem; }
.notice {
  background: var(--butter-soft); border-left: 5px solid var(--butter);
  padding: 0.8rem 1rem; border-radius: 0 8px 8px 0; max-width: var(--measure);
}
.related {
  margin-top: 2.2rem; background: var(--paper); border: 1px solid var(--line);
  border-radius: 12px; padding: 1.1rem 1.3rem;
}
.related h2 { margin-top: 0; font-size: 1.2rem; }
.related ul { margin-bottom: 0; }
.source-list li { margin-bottom: 0.8em; }

/* Recipe card – Stil einer Diner-Bestellkarte */
.recipe-card {
  background: var(--paper); border: 2px dashed var(--toast); border-radius: 14px;
  padding: 1.3rem 1.4rem 1.6rem; margin-block: 1rem 2rem; position: relative;
}
.recipe-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 8px;
  background: var(--butter); border-radius: 12px 12px 0 0;
}
.recipe-card-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.recipe-card-head h2 { margin: 0.4rem 0 0; }
.recipe-facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 0.6rem; margin: 1rem 0 0.6rem; max-width: none;
}
.recipe-facts > div { background: var(--cream); border: 1px solid var(--line); border-radius: 8px; padding: 0.5rem 0.7rem; }
.recipe-facts dt { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--toast); }
.recipe-facts dd { margin: 0; font-weight: 700; }
.servings-control { display: inline-flex; align-items: center; gap: 0.4rem; }
.servings-btn {
  width: 1.7rem; height: 1.7rem; border-radius: 50%; border: 1px solid var(--toast);
  background: var(--butter-soft); font-size: 1.05rem; font-weight: 700; cursor: pointer; line-height: 1;
}
html:not(.js) .servings-btn { display: none; }
.ingredients { list-style: none; padding: 0; }
.ingredients li { padding: 0.15rem 0; }
.ingredients label { display: flex; gap: 0.55rem; align-items: baseline; cursor: pointer; }
.ingredients input[type="checkbox"] { width: 1.05rem; height: 1.05rem; accent-color: var(--copper); flex-shrink: 0; transform: translateY(2px); }
.ingredients input:checked ~ * { color: var(--toast); }
.ingredients label:has(input:checked) { text-decoration: line-through; text-decoration-color: var(--toast); }
.qty { font-weight: 700; white-space: nowrap; }
.steps { counter-reset: step; list-style: none; padding: 0; max-width: var(--measure); }
.steps > li { counter-increment: step; position: relative; padding-left: 3rem; margin-bottom: 1.2rem; }
.steps > li::before {
  content: counter(step); position: absolute; left: 0; top: 0.1rem;
  width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--butter);
  color: var(--crust); font-family: var(--font-display); font-weight: 800;
  display: grid; place-items: center; font-size: 1.05rem;
}
.steps h4 { margin: 0 0 0.25em; }
.steps p { margin-bottom: 0; }

/* Externe Medien Platzhalter */
.external-media-placeholder {
  background: var(--paper); border: 2px dashed var(--line); border-radius: 12px;
  padding: 1.4rem; text-align: center; max-width: var(--measure);
}

/* Footer */
.site-footer { background: var(--crust); color: #f3e9d8; margin-top: 3rem; border-top: 6px solid var(--butter); }
.footer-grid { display: grid; gap: 1.6rem; padding-block: 2.2rem 1.2rem; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }
.footer-h { color: var(--butter); font-size: 1rem; margin: 0 0 0.6rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.4rem; }
.site-footer a, .site-footer .linklike { color: #f3e9d8; }
.site-footer a:hover, .site-footer .linklike:hover { color: var(--butter); }
.footer-about p { font-size: 0.92rem; }
.footer-affiliate { color: #d8c6ab; }
.footer-legal { border-top: 1px solid #4d3a27; padding-block: 0.9rem; font-size: 0.88rem; }
.footer-legal p { margin: 0; max-width: none; }
.footer-legal a { color: #d8c6ab; }

/* Druckansicht */
@media print {
  .site-header, .site-footer, .breadcrumbs, .hero-actions, .related,
  .nav-toggle, .btn, .servings-btn, .article-meta a[rel="author"]::after,
  .cm-banner, .cm-dialog { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .recipe-card { border: 1px solid #000; }
  a { color: #000; text-decoration: none; }
  .ingredients input[type="checkbox"] { -webkit-appearance: checkbox; }
}
