/* ─ dinneranddrinks – Design v2 ─────────────────────────────────────── */
:root {
  --bg:       #fafaf8;
  --surface:  #ffffff;
  --ink:      #111110;
  --muted:    #737370;
  --border:   #e8e5e0;
  --accent:   #c4602a;
  --accent-2: #f5f0ea;
  --radius:   10px;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
  --serif: 'Playfair Display', Georgia, serif;
  --header-h: 56px;
  --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--sans); background: var(--bg); color: var(--ink); line-height: 1.55; font-size: 16px; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ── Header ────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 200;
  height: var(--header-h);
  background: rgba(250,250,248,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; height: 100%; gap: 32px; }
.site-logo {
  font-family: var(--serif); font-size: 1.35rem; font-weight: 700;
  color: var(--accent); letter-spacing: -.02em; flex-shrink: 0;
}
.site-nav { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.site-nav a {
  font-size: .875rem; font-weight: 500; color: var(--muted);
  padding: 6px 12px; border-radius: 6px; transition: all .15s;
}
.site-nav a:hover { color: var(--ink); background: var(--accent-2); }

/* ── Recipe Counter ────────────────────────────────────────────────── */
.recipe-counter {
  display: inline-flex; align-items: baseline; gap: 8px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px; padding: 6px 20px; margin-bottom: 24px;
}
.counter-number {
  font-family: var(--serif); font-size: 2rem; font-weight: 700; color: var(--accent);
  line-height: 1;
}
.counter-label {
  font-size: .85rem; font-weight: 500; color: rgba(255,255,255,.55);
  text-transform: uppercase; letter-spacing: .08em;
}

/* ── Chat Hero ─────────────────────────────────────────────────────── */
.chat-hero {
  background: var(--ink);
  padding: 64px 24px 52px;
  text-align: center;
}
.chat-hero-inner { max-width: 680px; margin: 0 auto; }
.chat-hero h1 {
  font-family: var(--serif); font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700; color: #fff; line-height: 1.15; margin-bottom: 12px;
}
.chat-hero p { font-size: 1rem; color: rgba(255,255,255,.55); margin-bottom: 28px; }

.chat-bar {
  display: flex; gap: 0; background: #fff;
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 16px 40px rgba(0,0,0,.35);
}
.chat-bar input {
  flex: 1; border: none; outline: none; padding: 16px 20px;
  font-family: var(--sans); font-size: 1rem; color: var(--ink);
  background: transparent;
}
.chat-bar input::placeholder { color: #bbb; }
.chat-bar button {
  background: var(--accent); color: #fff; border: none;
  padding: 0 22px; font-size: 1.2rem; cursor: pointer;
  transition: background .15s; flex-shrink: 0;
}
.chat-bar button:hover { background: #a84f22; }

/* Chat-Antwort-Panel */
.chat-result {
  background: var(--ink); border-top: 1px solid rgba(255,255,255,.08);
  padding: 0 24px 32px;
}
.chat-result-inner { max-width: 680px; margin: 0 auto; }
.chat-bubble {
  background: rgba(255,255,255,.06); border-radius: 10px;
  padding: 16px 20px; color: rgba(255,255,255,.85);
  font-size: .95rem; line-height: 1.65; margin-bottom: 20px;
  border: 1px solid rgba(255,255,255,.08);
}
.chat-bubble.user { background: var(--accent); color: #fff; border-color: transparent; }
.chat-recipe-row {
  display: flex; gap: 12px; overflow-x: auto; padding-bottom: 4px;
}
.chat-recipe-card {
  flex: 0 0 180px; border-radius: 8px; overflow: hidden;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  transition: transform .2s;
}
.chat-recipe-card:hover { transform: translateY(-2px); }
.chat-recipe-card img { width: 100%; height: 110px; object-fit: cover; }
.chat-recipe-card .card-label {
  padding: 10px 12px; font-size: .82rem; color: rgba(255,255,255,.8);
  font-weight: 500; line-height: 1.3;
}
.chat-typing { display: flex; gap: 5px; align-items: center; padding: 12px 0; }
.chat-typing span {
  width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.4);
  animation: blink 1.2s infinite; flex-shrink: 0;
}
.chat-typing span:nth-child(2) { animation-delay: .2s; }
.chat-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%,80%,100% { opacity:.2 } 40% { opacity:1 } }

/* ── Tag Bar ─────────────────────────────────────────────────────────── */
.tag-bar {
  background: var(--surface); border-bottom: 1px solid var(--border);
  padding: 0; overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.tag-bar .container {
  display: flex; gap: 0; white-space: nowrap;
  padding: 0;
}
.tag-pill {
  display: inline-block; padding: 10px 16px;
  font-size: .82rem; font-weight: 600; letter-spacing: .03em;
  color: var(--muted); text-transform: uppercase;
  border-bottom: 2px solid transparent;
  transition: all .15s; white-space: nowrap;
}
.tag-pill:hover { color: var(--ink); border-bottom-color: var(--ink); }
.tag-pill.active { color: var(--accent); border-bottom-color: var(--accent); }

/* ── Sections ────────────────────────────────────────────────────────── */
.section-title {
  font-family: var(--serif); font-size: 1.5rem; font-weight: 600;
  margin: 40px 0 24px; color: var(--ink);
}
.empty-state { text-align: center; color: var(--muted); padding: 60px 0; font-size: 1rem; }

/* ── Recipe Grid ─────────────────────────────────────────────────────── */
.recipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 20px; margin-bottom: 48px;
}

.recipe-card { background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); transition: box-shadow .25s, transform .2s; }
.recipe-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,.1); transform: translateY(-2px); }
.card-link { display: flex; flex-direction: column; height: 100%; }
.card-image { aspect-ratio: 4/3; overflow: hidden; background: var(--accent-2); position: relative; }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.recipe-card:hover .card-image img { transform: scale(1.04); }
.card-image-placeholder { display: flex; align-items: center; justify-content: center; height: 100%; font-size: 2.5rem; color: var(--muted); }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-title { font-family: var(--serif); font-size: 1.05rem; font-weight: 600; color: var(--ink); line-height: 1.3; }
.card-desc { font-size: .84rem; color: var(--muted); line-height: 1.5; flex: 1; }
.card-meta { display: flex; align-items: center; gap: 10px; font-size: .8rem; color: var(--muted); margin-top: auto; padding-top: 10px; border-top: 1px solid var(--border); }
.card-tag { background: var(--accent-2); color: var(--accent); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 2px 8px; border-radius: 99px; }

.more-link { text-align: center; margin-bottom: 60px; }

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--accent); color: #fff; border: none; border-radius: 8px;
  padding: 11px 24px; font-size: .9rem; font-weight: 600; cursor: pointer;
  transition: background .15s, transform .1s; text-decoration: none;
}
.btn-primary:hover { background: #a84f22; transform: translateY(-1px); }

.btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: transparent; color: var(--accent); border: 1.5px solid var(--accent);
  border-radius: 8px; padding: 9px 22px; font-size: .9rem; font-weight: 600;
  cursor: pointer; transition: all .15s; text-decoration: none;
}
.btn-outline:hover { background: var(--accent); color: #fff; }

/* ── List Page ─────────────────────────────────────────────────────────── */
.list-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin: 40px 0 24px; flex-wrap: wrap; }
.list-header h1 { font-family: var(--serif); font-size: 1.9rem; font-weight: 700; }
.search-form { display: flex; gap: 8px; }
.search-input {
  padding: 9px 14px; border: 1.5px solid var(--border); border-radius: 8px;
  font-size: .9rem; outline: none; background: var(--surface); width: 240px; transition: border-color .2s;
}
.search-input:focus { border-color: var(--accent); }
.result-count { font-size: .85rem; color: var(--muted); margin-bottom: 20px; }

/* ── Pagination ─────────────────────────────────────────────────────── */
.pagination { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 32px 0 60px; }
.page-link { color: var(--accent); font-weight: 600; font-size: .9rem; padding: 7px 14px; border: 1.5px solid var(--border); border-radius: 7px; transition: all .15s; }
.page-link:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.page-info { color: var(--muted); font-size: .85rem; }

/* ── Recipe Detail ──────────────────────────────────────────────────── */
.recipe-hero { min-height: 440px; background-size: cover; background-position: center; display: flex; align-items: flex-end; }
.recipe-hero-overlay { width: 100%; background: linear-gradient(to bottom, rgba(0,0,0,.05), rgba(0,0,0,.7)); padding: 36px 0 28px; }
.recipe-hero-overlay .container { display: flex; flex-direction: column; gap: 10px; }
.hero-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.recipe-hero-title { font-family: var(--serif); font-size: clamp(1.7rem, 4vw, 2.8rem); font-weight: 700; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.4); line-height: 1.2; max-width: 760px; }
.recipe-main { padding-top: 36px; padding-bottom: 80px; }
.recipe-intro { font-size: 1.05rem; color: var(--muted); line-height: 1.7; margin-bottom: 28px; max-width: 680px; }

.recipe-meta-bar { display: flex; gap: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 40px; flex-wrap: wrap; }
.meta-item { display: flex; align-items: center; gap: 10px; padding: 14px 22px; flex: 1; min-width: 100px; border-right: 1px solid var(--border); }
.meta-item:last-child { border-right: none; }
.meta-icon { font-size: 1.2rem; }
.meta-item small { display: block; font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.meta-item strong { font-size: .9rem; font-weight: 600; }

.recipe-body { display: grid; grid-template-columns: 320px 1fr; gap: 32px; align-items: start; }
@media (max-width: 720px) { .recipe-body { grid-template-columns: 1fr; } }

.recipe-section { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.section-header h2 { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; }

.copy-btn { background: var(--accent-2); border: none; border-radius: 6px; padding: 5px 10px; font-size: .78rem; font-weight: 600; cursor: pointer; color: var(--accent); transition: all .15s; white-space: nowrap; }
.copy-btn:hover { background: var(--accent); color: #fff; }
.copy-btn.copied { background: #166534; color: #fff; }

.ingredient-group { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin: 14px 0 6px; }
.ingredient-list { list-style: none; }
.ingredient-item { display: flex; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: .93rem; align-items: baseline; }
.ingredient-item:last-child { border-bottom: none; }
.ingredient-qty { min-width: 72px; font-weight: 600; color: var(--accent); flex-shrink: 0; }

.step-list { list-style: none; counter-reset: steps; display: flex; flex-direction: column; gap: 20px; }
.step-item { position: relative; padding-left: 52px; counter-increment: steps; }
.step-item::before { content: counter(steps); position: absolute; left: 0; top: 0; width: 34px; height: 34px; background: var(--accent); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .85rem; }
.step-title { font-weight: 600; font-size: .95rem; margin-bottom: 5px; }
.step-instruction { line-height: 1.65; color: var(--ink); }
.step-duration { display: inline-block; margin-top: 7px; font-size: .78rem; color: var(--muted); background: var(--accent-2); padding: 2px 9px; border-radius: 99px; }

.recipe-notes { background: #fffbf4; border: 1px solid #f0e4c4; border-radius: var(--radius); padding: 22px 24px; margin-top: 28px; }
.recipe-notes h2 { font-family: var(--serif); font-size: 1.1rem; margin-bottom: 10px; }

.recipe-gallery { margin-top: 40px; }
.recipe-gallery h2 { font-family: var(--serif); font-size: 1.2rem; margin-bottom: 14px; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.gallery-item { border-radius: 7px; overflow: hidden; aspect-ratio: 1; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }

.recipe-footer-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 28px; }
.recipe-footer-tags .tag-pill { border: 1px solid var(--border); border-bottom-color: var(--border); padding: 5px 12px; font-size: .78rem; border-radius: 99px; }

.breadcrumb { font-size: .82rem; color: var(--muted); margin-bottom: 10px; }
.breadcrumb a { color: var(--accent); }
.recipe-header { padding-top: 36px; }
.recipe-header h1 { font-family: var(--serif); font-size: clamp(1.7rem, 4vw, 2.6rem); font-weight: 700; margin-top: 6px; }

/* ── Footer ─────────────────────────────────────────────────────────── */
.site-footer { background: var(--ink); color: rgba(255,255,255,.4); text-align: center; padding: 28px 20px; font-size: .83rem; }

/* ── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .chat-hero { padding: 44px 16px 36px; }
  .list-header { flex-direction: column; }
  .search-form { width: 100%; }
  .search-input { flex: 1; width: auto; }
  .recipe-meta-bar { flex-direction: column; }
  .meta-item { border-right: none; border-bottom: 1px solid var(--border); }
  .meta-item:last-child { border-bottom: none; }
  .tag-bar .container { padding: 0; }
}
