/* ============================================================
   BuffetGuide – Suche im Vergleichsportal-Stil (à la Check24)
   Warm, food-forward palette (terracotta + cream) + dense data UI.
   ============================================================ */
:root {
  --bg:       #f4f1ec;
  --surface:  #ffffff;
  --ink:      #2a211c;
  --muted:    #7a6c63;
  --muted-2:  #9a8d83;
  --primary:  #b8341b;
  --primary-d:#922813;
  --accent:   #e8a33d;
  --line:     #e7ddd2;
  --line-2:   #efe8df;
  --good:     #2e9e5b;
  --good-d:   #1f7d45;
  --okay:     #e09a2d;
  --shadow:   0 6px 22px rgba(80, 40, 20, .08);
  --shadow-h: 0 14px 34px rgba(80, 40, 20, .16);
  --radius:   14px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
}
h1, h2, h3, .brand-text strong { font-family: 'Poppins', sans-serif; }
a { color: inherit; }

/* ---------------- header ---------------- */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px clamp(16px, 4vw, 48px);
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { font-size: 26px; }
.brand-text { font-size: 21px; font-weight: 700; line-height: 1; display: flex; flex-direction: column; gap: 3px; }
.brand-text strong { color: var(--primary); font-weight: 800; }
.brand-text small { font-family: 'Inter'; font-weight: 500; font-size: 11px; color: var(--muted); letter-spacing: .3px; }
.header-right { display: flex; align-items: center; gap: 14px; }
.lang-switch { display: flex; gap: 6px; }
.lang-btn {
  border: 1px solid var(--line); background: var(--surface); cursor: pointer;
  border-radius: 8px; padding: 5px 7px; line-height: 0; display: inline-flex;
  transition: transform .12s, box-shadow .12s;
}
.lang-btn:hover { transform: translateY(-1px); }
.lang-btn.active { outline: 2px solid var(--primary); }

/* ---------------- hero ---------------- */
.hero {
  background:
    radial-gradient(1200px 380px at 50% -120px, rgba(232,163,61,.18), transparent 70%),
    linear-gradient(180deg, #fff8f1 0%, #fdf1e6 100%);
  border-bottom: 1px solid var(--line);
  padding: clamp(28px, 5vw, 56px) 20px clamp(26px, 4vw, 40px);
}
.hero-inner { max-width: 880px; margin: 0 auto; text-align: center; }
.hero-pill {
  display: inline-block; background: #fff; color: var(--primary-d);
  padding: 7px 16px; border-radius: 999px; font-size: 13px; font-weight: 600;
  box-shadow: var(--shadow); border: 1px solid var(--line);
}
.hero h1 { font-size: clamp(28px, 5vw, 48px); margin: 18px 0 12px; font-weight: 800; letter-spacing: -.5px; }
.hero-lead { color: var(--muted); font-size: clamp(15px, 2vw, 18px); max-width: 640px; margin: 0 auto 26px; }

/* search */
.search {
  display: flex; gap: 8px; flex-wrap: wrap; justify-content: center;
  background: var(--surface); padding: 9px; border-radius: 16px;
  box-shadow: var(--shadow-h); max-width: 720px; margin: 0 auto;
  border: 1px solid var(--line);
}
.search input {
  flex: 1 1 220px; border: none; outline: none; font-size: 16px;
  padding: 12px 14px; background: transparent; color: var(--ink);
}
.city-field { position: relative; flex: 1 1 240px; display: flex; align-items: center; }
.city-field input { width: 100%; }
.city-field::before { content: "📍"; padding-left: 12px; opacity: .55; }
.city-clear {
  position: absolute; right: 8px; border: none; background: #f0e4d8; color: var(--muted);
  width: 22px; height: 22px; border-radius: 50%; cursor: pointer; font-size: 12px; line-height: 1;
}
.city-suggest {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 30;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow-h); overflow: hidden; max-height: 320px; overflow-y: auto;
  text-align: left;
}
.city-suggest button {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  width: 100%; border: none; background: none; cursor: pointer; padding: 11px 16px;
  font: inherit; color: var(--ink); border-bottom: 1px solid var(--line-2);
}
.city-suggest button:last-child { border-bottom: none; }
.city-suggest button:hover { background: #fdf3e9; }
.city-suggest .cnt { color: var(--muted); font-size: 13px; font-weight: 600; }
.btn {
  border: none; cursor: pointer; font-size: 15px; font-weight: 700;
  padding: 12px 22px; border-radius: 12px; transition: transform .12s, background .12s;
  font-family: 'Inter'; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 4px 14px rgba(184,52,27,.35); }
.btn-primary:hover { background: #9c2c16; }
.btn-ghost { background: #f3e7da; color: var(--ink); }
.btn-ghost:hover { background: #ecdcca; }

/* trust + stats */
.trust-row {
  list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: center;
  padding: 0; margin: 22px 0 0; font-size: 14px; color: var(--muted); font-weight: 500;
}
.trust-row li { display: inline-flex; align-items: center; gap: 6px; }
.stats {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 26px;
}
.stat {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 22px; min-width: 130px; box-shadow: var(--shadow);
}
.stat-num { display: block; font-family: 'Poppins'; font-weight: 800; font-size: 26px; color: var(--primary); line-height: 1.1; }
.stat-lbl { display: block; font-size: 12.5px; color: var(--muted); margin-top: 3px; }

/* ---------------- layout ---------------- */
.layout {
  max-width: 1240px; margin: 26px auto 60px; padding: 0 clamp(14px, 3vw, 28px);
  display: grid; grid-template-columns: 272px 1fr; gap: 26px; align-items: start;
}

/* ---------------- filter sidebar ---------------- */
.filters {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 6px 18px 16px; position: sticky; top: 76px; box-shadow: var(--shadow);
}
.filters-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0 10px; border-bottom: 1px solid var(--line-2);
}
.filters-head h2 { font-size: 17px; margin: 0; }
.filters-reset {
  border: none; background: none; color: var(--primary); cursor: pointer;
  font: inherit; font-size: 13px; font-weight: 600; padding: 0;
}
.filters-reset:hover { text-decoration: underline; }
.filter-group { padding: 14px 0; border-bottom: 1px solid var(--line-2); }
.filter-group:last-child { border-bottom: none; }
.filter-group h3 {
  font-family: 'Inter'; font-size: 12px; text-transform: uppercase; letter-spacing: .6px;
  color: var(--muted-2); margin: 0 0 11px;
}
.filter-radios { display: flex; flex-direction: column; gap: 2px; }
.fopt {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  padding: 7px 8px; border-radius: 8px; font-size: 14px; transition: background .12s;
}
.fopt:hover { background: #fbf3ea; }
.fopt input { accent-color: var(--primary); width: 16px; height: 16px; cursor: pointer; }
.fopt.checked { color: var(--primary-d); font-weight: 600; }

.price-pills { display: flex; gap: 8px; }
.price-pill {
  flex: 1; border: 1px solid var(--line); background: var(--surface); cursor: pointer;
  border-radius: 10px; padding: 9px 4px; font: inherit; font-weight: 700; font-size: 15px;
  color: var(--muted); transition: all .12s; text-align: center;
}
.price-pill:hover { border-color: var(--accent); }
.price-pill.active { background: var(--primary); color: #fff; border-color: var(--primary); }

.cat-list { display: flex; flex-direction: column; gap: 1px; max-height: 320px; overflow-y: auto; margin: 0 -6px; padding: 0 2px; }
.cat-item {
  display: flex; align-items: center; gap: 9px; width: 100%; border: none; background: none;
  cursor: pointer; padding: 8px 8px; border-radius: 8px; font: inherit; font-size: 14px;
  color: var(--ink); text-align: left; transition: background .12s;
}
.cat-item:hover { background: #fbf3ea; }
.cat-item.active { background: #fde6e0; color: var(--primary-d); font-weight: 600; }
.cat-item .cat-ico { font-size: 16px; width: 20px; text-align: center; }
.cat-item .cat-nm { flex: 1; }
.cat-item .cat-cnt { color: var(--muted-2); font-size: 12.5px; font-weight: 600; }
.cat-item.active .cat-cnt { color: var(--primary); }

/* ---------------- results column ---------------- */
.results-col { min-width: 0; }
.results-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 16px; box-shadow: var(--shadow); flex-wrap: wrap;
}
.results-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.results-count { font-size: 16px; font-family: 'Poppins'; }
.results-scope { font-size: 13px; color: var(--muted); }
.sort-mobile { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.sort-mobile select {
  font: inherit; padding: 8px 10px; border-radius: 9px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); cursor: pointer;
}

.active-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 2px 0; }
.active-chips:empty { display: none; }
.active-chip {
  display: inline-flex; align-items: center; gap: 7px; background: #fde6e0; color: var(--primary-d);
  border: 1px solid #f3cdc0; border-radius: 999px; padding: 5px 8px 5px 12px; font-size: 13px; font-weight: 600;
}
.active-chip button { border: none; background: rgba(146,40,19,.12); color: var(--primary-d); cursor: pointer;
  width: 18px; height: 18px; border-radius: 50%; line-height: 1; font-size: 11px; }

.filters-toggle {
  display: none; margin: 14px 0 0; width: 100%; border: 1px solid var(--line);
  background: var(--surface); border-radius: 12px; padding: 12px; font: inherit;
  font-weight: 700; cursor: pointer; box-shadow: var(--shadow);
}

/* result list (rich rows) */
.result-list { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.rcard {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); cursor: pointer; overflow: hidden;
  display: grid; grid-template-columns: 240px 1fr 188px;
  transition: transform .14s, box-shadow .14s, border-color .14s;
}
.rcard:hover { transform: translateY(-2px); box-shadow: var(--shadow-h); border-color: #e6cfc2; }
.rcard-img { position: relative; background: #f0e4d8 center/cover no-repeat; min-height: 168px; }
.rcard-img .ribbon {
  position: absolute; top: 10px; left: 0; background: var(--primary); color: #fff;
  font-size: 11.5px; font-weight: 700; padding: 4px 11px 4px 9px;
  border-radius: 0 6px 6px 0; box-shadow: 0 2px 6px rgba(0,0,0,.2);
}
.rcard-img .ribbon.gold { background: linear-gradient(90deg,#e8a33d,#d4862a); }
.rcard-img .stock-tag {
  position: absolute; left: 8px; bottom: 8px; background: rgba(0,0,0,.5); color: #fff;
  font-size: 10.5px; padding: 2px 7px; border-radius: 5px;
}
.rcard-body { padding: 15px 16px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.rcard-title { font-size: 19px; font-weight: 700; font-family: 'Poppins'; margin: 0; line-height: 1.2; }
.rcard-cats { display: flex; gap: 6px; flex-wrap: wrap; }
.cat-tag { font-size: 12px; background: #fbeede; color: var(--primary-d); padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.cat-tag.buffet { background: var(--primary); color: #fff; }
.rcard-meta { color: var(--muted); font-size: 13.5px; display: flex; flex-direction: column; gap: 4px; margin-top: 1px; }
.rcard-meta .row { display: flex; align-items: center; gap: 7px; }
.rcard-meta .ico { width: 15px; text-align: center; opacity: .8; }
.rcard-desc { color: var(--muted); font-size: 13.5px; line-height: 1.5; margin: 2px 0 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rcard-rail {
  border-left: 1px solid var(--line-2); padding: 15px 16px; display: flex; flex-direction: column;
  align-items: stretch; gap: 10px; justify-content: space-between;
}
.score-box { display: flex; align-items: center; gap: 10px; }
.score-badge {
  background: var(--good); color: #fff; font-family: 'Poppins'; font-weight: 800; font-size: 19px;
  border-radius: 9px; padding: 7px 0; min-width: 52px; text-align: center; line-height: 1;
  box-shadow: 0 3px 8px rgba(46,158,91,.3);
}
.score-badge.mid { background: var(--okay); box-shadow: 0 3px 8px rgba(224,154,45,.3); }
.score-badge.none { background: #c9bdb1; box-shadow: none; font-size: 12px; padding: 11px 6px; }
.score-meta { display: flex; flex-direction: column; line-height: 1.15; }
.score-word { font-weight: 700; font-size: 13.5px; }
.score-cnt { font-size: 12px; color: var(--muted); }
.rail-stars { color: var(--accent); font-size: 14px; letter-spacing: 1px; }
.rail-stars .empty { color: #e3d5c7; }
.rail-info { display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: var(--muted); }
.rail-info .price { color: var(--good-d); font-weight: 700; }
.rail-info .dist { font-weight: 600; color: var(--ink); }
.rail-cta {
  background: var(--primary); color: #fff; border: none; cursor: pointer; font: inherit;
  font-weight: 700; font-size: 14px; padding: 11px; border-radius: 10px; transition: background .12s;
}
.rail-cta:hover { background: #9c2c16; }

.empty-state { text-align: center; color: var(--muted); padding: 60px 20px; background: var(--surface);
  border: 1px dashed var(--line); border-radius: var(--radius); }
.skel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  height: 170px; overflow: hidden; position: relative; }
.skel::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(0,0,0,.04), transparent);
  animation: shimmer 1.2s infinite; }
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

/* ---------------- pagination ---------------- */
.pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; align-items: center; margin: 26px 0 0; }
.pager:empty { display: none; }
.pager button {
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer;
  min-width: 40px; height: 40px; padding: 0 12px; border-radius: 10px; font: inherit; font-weight: 600;
  transition: all .12s;
}
.pager button:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.pager button.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.pager button:disabled { opacity: .4; cursor: default; }
.pager .gap { color: var(--muted-2); padding: 0 2px; }

/* ---------------- footer ---------------- */
.site-footer {
  border-top: 1px solid var(--line); padding: 30px 20px; text-align: center;
  color: var(--muted); font-size: 14px; background: var(--surface);
}
.footer-brand { font-size: 18px; margin-bottom: 6px; }
.footer-brand strong { color: var(--primary); }
.footer-links { display: flex; gap: 22px; justify-content: center; margin-top: 10px; }
.footer-links a { color: var(--primary); text-decoration: none; font-weight: 600; }
.footer-links a:hover { text-decoration: underline; }

/* ---------------- modal ---------------- */
.overlay {
  position: fixed; inset: 0; background: rgba(30, 18, 12, .55);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 24px; z-index: 50; overflow-y: auto;
}
.overlay[hidden] { display: none; }
.modal {
  background: var(--surface); border-radius: 20px; max-width: 760px; width: 100%;
  position: relative; box-shadow: 0 20px 60px rgba(0,0,0,.3); margin: auto;
  animation: pop .18s ease;
}
@keyframes pop { from { transform: scale(.97); opacity: 0; } }
.modal-close {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  border: none; background: rgba(255,255,255,.92); width: 38px; height: 38px;
  border-radius: 50%; cursor: pointer; font-size: 16px; box-shadow: var(--shadow);
}
.modal-gallery { display: flex; gap: 4px; overflow-x: auto; border-radius: 20px 20px 0 0; }
.modal-gallery img { height: 260px; min-width: 70%; object-fit: cover; flex: 1; }
.modal-content { padding: 22px clamp(18px, 4vw, 32px) 32px; }
.modal-titlebar { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.modal-content h2 { margin: 0 0 4px; font-size: 27px; }
.modal-sub { color: var(--muted); margin: 0 0 6px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.modal-verified { display: inline-flex; align-items: center; gap: 5px; background: #e6f4ec; color: var(--good-d);
  font-size: 12.5px; font-weight: 700; padding: 4px 11px; border-radius: 999px; }
.modal-score {
  background: var(--good); color: #fff; font-family: 'Poppins'; font-weight: 800; font-size: 22px;
  border-radius: 11px; padding: 10px 14px; text-align: center; line-height: 1; flex-shrink: 0;
}
.modal-score.mid { background: var(--okay); }
.modal-score.none { background: #c9bdb1; font-size: 13px; }
.modal-score small { display: block; font-family: 'Inter'; font-weight: 600; font-size: 11px; margin-top: 4px; opacity: .9; }
.modal-section { margin-top: 24px; }
.modal-section h3 { font-size: 16px; margin: 0 0 12px; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 10px; }
.info-item { display: flex; align-items: center; gap: 10px; background: #fbf6f0; border: 1px solid var(--line-2);
  border-radius: 11px; padding: 11px 13px; font-size: 14px; }
.info-item .ii-ico { font-size: 17px; }
.info-item a { color: var(--primary); font-weight: 600; text-decoration: none; }
.modal-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.modal-actions a { text-decoration: none; }

/* reviews */
.review { border-top: 1px solid var(--line-2); padding: 13px 0; }
.review:first-child { border-top: none; }
.review-head { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.review-author { font-weight: 700; }
.review-body { color: var(--muted); font-size: 14px; margin: 4px 0 0; }
.report-btn { border: none; background: none; color: var(--muted-2); cursor: pointer;
  font: inherit; font-size: 12px; padding: 4px 0 0; }
.report-btn:hover:not(:disabled) { color: var(--primary); text-decoration: underline; }
.report-btn:disabled { color: var(--good-d); cursor: default; }
.eula-note { color: var(--muted-2); font-size: 11.5px; line-height: 1.4; margin: 10px 0 0; }
.stars { color: var(--accent); letter-spacing: 1px; }
.stars .empty { color: #e3d5c7; }
.rating-num { font-weight: 700; }
.rating-count { color: var(--muted); font-size: 13px; }
.review-form { background: #fdf3e9; border-radius: 14px; padding: 18px; margin-top: 14px; border: 1px solid var(--line-2); }
.star-pick { font-size: 32px; cursor: pointer; user-select: none; color: #e3d5c7; }
.star-pick span { transition: color .1s; }
.star-pick span.on { color: var(--accent); }
.review-form input, .review-form textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px;
  font: inherit; margin-top: 10px; background: #fff;
}
.review-form textarea { min-height: 80px; resize: vertical; }
.form-msg { font-size: 14px; margin-top: 10px; min-height: 18px; }
.form-msg.ok { color: var(--good-d); }
.form-msg.err { color: var(--primary); }

/* ---------------- responsive ---------------- */
@media (max-width: 980px) {
  .layout { grid-template-columns: 1fr; }
  .filters {
    position: fixed; inset: 0; z-index: 60; border-radius: 0; top: 0;
    overflow-y: auto; display: none; box-shadow: none;
  }
  .filters.open { display: block; }
  .filters-toggle { display: block; }
}
@media (max-width: 720px) {
  .rcard { grid-template-columns: 130px 1fr; }
  .rcard-rail {
    grid-column: 1 / -1; border-left: none; border-top: 1px solid var(--line-2);
    flex-direction: row; align-items: center; flex-wrap: wrap; padding: 12px 16px;
  }
  .rcard-rail .rail-cta { margin-left: auto; }
  .rcard-desc { display: none; }
  .rcard-img { min-height: 100%; }
}
@media (max-width: 480px) {
  .brand-text small { display: none; }
  .stat { min-width: 104px; padding: 10px 16px; }
  .score-box { order: -1; }
  .rcard { grid-template-columns: 1fr; }
  .rcard-img { min-height: 150px; aspect-ratio: 16/9; }
}
