/* ============================================================
   fodmap-guide.ch — Daten-Seiten (Produkte, Zutaten, FODMAPs)
   Ergänzt style.css; gleiche Design-Tokens, keine eigenen Fonts.
   ============================================================ */

.data-main { min-height: 60vh; }

/* Brotkrumen */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding-top: 28px; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--text); text-decoration: none; }
.crumbs [aria-current] { color: var(--text-soft); }
.crumb-sep { opacity: .6; }

/* Kopfbereich */
.data-hero { padding: 26px 24px 34px; }
.data-h1 { font-size: clamp(36px, 5vw, 60px); margin-bottom: 14px; }
.data-h1 em { font-style: italic; }
.data-hero .lead { max-width: 720px; }
.data-hero > p { max-width: 760px; }
.notes { font-size: 15px; color: var(--text-soft); background: var(--surface-2); border-radius: 12px; padding: 12px 16px; display: inline-block; }

/* Ampel-Chips */
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 18px; }
.chip-row-big .lvl { font-size: 15px; padding: 10px 16px; }
.lvl {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--border); border-radius: 999px; background: var(--surface);
  padding: 6px 13px; font: 550 13.5px/1.2 var(--sans); color: var(--text); white-space: nowrap;
}
.lvl-none { color: var(--muted); }
.lvl-high { border-color: #f3c2c2; background: #fdf2f2; }
.lvl-mod { border-color: #f0d9b0; background: #fdf7ec; }
.lvl-low { border-color: #bfe6cb; background: #f0fbf3; }
.lvl-unknown { border-color: #d8ccf7; background: #f6f2ff; color: #6d4fd0; border-style: dashed; }

.legend { font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.legend .dot { transform: translateY(1px); }
.src-note { font-size: 13.5px; color: var(--muted); margin-top: 10px; }
.count-note { font: 400 16px/1 var(--sans); color: var(--muted); }

/* Sektionen */
.sec { padding: 26px 0; }
.sec-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 30px 32px; margin: 18px auto;
}
.sec h2 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 14px; }
.lead-sm { color: var(--text-soft); max-width: 720px; margin-bottom: 18px; }

/* Zutaten-Breakdown */
.ing-list { list-style: none; margin: 0; padding: 0; }
.ing-row { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; padding: 11px 4px; border-bottom: 1px solid var(--border); }
.ing-row:last-child { border-bottom: none; }
.ing-name { font-weight: 550; color: var(--text); }
.ing-chips { display: inline-flex; flex-wrap: wrap; gap: 8px; }

/* Link-Listen (verwandte Produkte/Zutaten, Marken) */
.link-list { list-style: none; margin: 0 0 14px; padding: 0; }
.link-list li { display: flex; align-items: center; gap: 14px; justify-content: space-between; padding: 9px 4px; border-bottom: 1px solid var(--border); }
.link-list li:last-child { border-bottom: none; }
.link-list a { font-weight: 500; }
.link-list .dot { flex: none; }
.link-list.cols { column-width: 240px; column-gap: 40px; margin-bottom: 20px; }
.link-list.cols li { break-inside: avoid; justify-content: flex-start; }

/* Tabellen (Nährwerte, Stufen) */
.nutri-table { width: 100%; max-width: 560px; border-collapse: collapse; font-size: 15.5px; }
.nutri-table th { text-align: left; font: 600 13px/1.4 var(--sans); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 10px 14px 10px 0; border-bottom: 2px solid var(--border); }
.nutri-table td { padding: 11px 14px 11px 0; border-bottom: 1px solid var(--border); color: var(--text-soft); }
.nutri-table td:first-child { color: var(--text); font-weight: 550; }

/* Suchbox + Hub-Ergebnisse */
.search-box { max-width: 560px; margin-top: 8px; }
.search-box input { font: 400 17px/1.5 var(--sans); color: var(--text); border: 1px solid var(--border); border-radius: 14px; padding: 15px 18px; background: var(--surface); width: 100%; box-shadow: var(--shadow-2); }
.search-box input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.hub-results { list-style: none; margin: 18px 0 0; padding: 0; max-width: 640px; }
.hub-results li { border-bottom: 1px solid var(--border); }
.hub-results a { display: flex; align-items: center; gap: 12px; justify-content: space-between; padding: 10px 4px; font-weight: 500; }
.hub-results .muted { color: var(--muted); font-size: 14px; font-weight: 400; }

/* Marken-/Buchstaben-Gruppen */
.letter-group { margin-bottom: 34px; }
.letter-h { font-size: 30px; color: var(--muted); margin-bottom: 14px; }
.brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.brand-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 18px; display: grid; gap: 4px; color: var(--text); text-decoration: none !important;
  transition: transform .12s ease, box-shadow .12s ease;
}
.brand-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.brand-card b { font-weight: 650; font-size: 15.5px; }
.brand-card span { font-size: 13.5px; color: var(--muted); }

/* Lexikon-Karten verlinken */
.fodmap-card { color: var(--text); text-decoration: none !important; transition: transform .12s ease, box-shadow .12s ease; }
.fodmap-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }

/* CTA-Karte */
.cta-card {
  display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between;
  background: var(--dark-bg); color: #ededf3; border-radius: var(--radius-lg);
  padding: 30px 34px; margin: 20px 0;
}
.cta-card h3 { font-family: var(--sans); font-weight: 650; font-size: 20px; letter-spacing: 0; margin: 0 0 6px; }
.cta-card p { color: #b6b6c8; font-size: 15px; margin: 0; max-width: 560px; }

/* Hinweis-Box */
.note-box {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 22px; margin: 10px 0 60px; font-size: 14px; color: var(--text-soft); max-width: 900px;
}
.note-box b { color: var(--text); }

/* FAQ auf Datenseiten etwas kompakter */
.sec .faq { margin-top: 10px; max-width: 860px; }

@media (max-width: 640px) {
  .sec-card { padding: 22px 18px; }
  .cta-card { padding: 24px 20px; }
  .data-hero { padding-top: 14px; }
}
