/* Inhaltsstoffe – Produktseite (INCI-Zeile, Karten) und Lexikon. Modul includes/module-inhaltsstoffe.php.
 * Farben folgen dem Theme (Flatsome: --fs-color-primary Moosgrün, --fs-color-secondary Kupfer); je Herkunft
 * ein heller Ton für den Kiesel unter dem Rohstoff und ein dunkler für Schrift und Symbol. */

.bsi {
  --bsi-gruen: var(--fs-color-primary, #4b5a42);
  --bsi-kupfer: var(--fs-color-secondary, #b56b43);
  --bsi-text: var(--fs-color-base, #2c2c2c);
  --bsi-leise: #6e685d;
  --bsi-papier: #f7f3ec;
  --bsi-linie: #e6dfd2;
  --t-pflanze: #e0e8d4; --f-pflanze: #4a6a3b;
  --t-tier: #f4e6c4;    --f-tier: #8c6213;
  --t-mineral: #e8e3db; --f-mineral: #635c52;
  --t-umgewandelt: #f2e2d3; --f-umgewandelt: #9c552b;
  --t-labor: #e0e7ed;   --f-labor: #3d5d75;
  --t-x: #ece7de;       --f-x: #5d584f;
  --tint: var(--t-x); --farbe: var(--f-x);
  color: var(--bsi-text);
}
.bsi-art--pflanze { --tint: var(--t-pflanze); --farbe: var(--f-pflanze); }
.bsi-art--tier { --tint: var(--t-tier); --farbe: var(--f-tier); }
.bsi-art--mineral { --tint: var(--t-mineral); --farbe: var(--f-mineral); }
.bsi-art--umgewandelt { --tint: var(--t-umgewandelt); --farbe: var(--f-umgewandelt); }
.bsi-art--labor { --tint: var(--t-labor); --farbe: var(--f-labor); }
.bsi *, .bsi *::before, .bsi *::after { box-sizing: border-box; }
.bsi .bsi-ic { width: 1em; height: 1em; flex: none; vertical-align: -0.14em; margin-right: .3em; color: var(--farbe); }
.bsi-leise { color: var(--bsi-leise); font-size: 14px; }
.bsi .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── 1. INCI-Zeile ─────────────────────────────────────────────────────── */
.bsi-zeile-block { max-width: 980px; }
.bsi-zeile-kopf { font-size: 13px; color: var(--bsi-leise); margin: 0 0 8px; }
.bsi-inci { font-size: 15.5px; line-height: 2.05; margin: 0 0 10px; }
.bsi-komma { color: var(--bsi-leise); }
.bsi-wort { color: var(--farbe); text-decoration: none; border-radius: 7px; padding: 2px 3px; margin: 0 -3px;
  background-image: linear-gradient(currentColor, currentColor); background-size: calc(100% - 6px) 1px; background-repeat: no-repeat;
  background-position: 3px calc(100% - 3px); transition: background-color .15s, background-size .15s; white-space: normal; }
a.bsi-wort:hover, a.bsi-wort:focus-visible, a.bsi-wort.bsi-offen { background-color: var(--tint); background-size: 0 1px; color: var(--farbe); outline: none; }
.bsi-wort--still { color: var(--bsi-leise); background: none; }
.bsi-stern { font-size: 13px; color: var(--bsi-leise); margin: 0 0 12px; }
.bsi-legende { display: flex; flex-wrap: wrap; gap: 6px 8px; list-style: none; margin: 4px 0 14px; padding: 0; }
.bsi-legende li { display: inline-flex; align-items: center; font-size: 12.5px; padding: 4px 11px 4px 9px; border-radius: 999px;
  background: var(--tint); color: var(--farbe); margin: 0; cursor: help; }
.bsi-zum-lexikon { display: inline-flex; gap: .35em; font-size: 14px; font-weight: 600; color: var(--bsi-kupfer); text-decoration: none; }
.bsi-zum-lexikon:hover { text-decoration: underline; }

/* Tooltip (einmal je Seite am body) */
.bsi-tip { position: absolute; z-index: 99990; width: min(340px, calc(100vw - 24px)); background: #fff; border-radius: 18px;
  box-shadow: 0 22px 48px rgba(44, 38, 28, .18), 0 2px 8px rgba(44, 38, 28, .08); padding: 14px 16px 14px 14px;
  display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 4px 14px; opacity: 0; transform: translateY(6px);
  transition: opacity .16s ease, transform .16s ease; pointer-events: none; font-size: 14px; line-height: 1.45; }
.bsi-tip.bsi-zeigen { opacity: 1; transform: none; pointer-events: auto; }
.bsi-tip.bsi-unten { transform: translateY(-6px); }
.bsi-tip.bsi-zeigen.bsi-unten { transform: none; }
.bsi-tip::after { content: ""; position: absolute; left: var(--pfeil, 50%); width: 14px; height: 14px; background: #fff;
  transform: translateX(-50%) rotate(45deg); bottom: -6px; border-radius: 3px; box-shadow: 4px 4px 8px rgba(44, 38, 28, .06); }
.bsi-tip.bsi-unten::after { bottom: auto; top: -6px; box-shadow: -3px -3px 6px rgba(44, 38, 28, .05); }
.bsi-tip__bild { grid-row: 1 / span 3; position: relative; width: 84px; height: 84px; display: grid; place-items: center; }
.bsi-tip__bild::before { content: ""; position: absolute; inset: 4px; background: var(--tint); border-radius: 62% 38% 55% 45% / 52% 60% 40% 48%; }
.bsi-tip__bild img { position: relative; width: 76px; height: 76px; object-fit: contain; filter: drop-shadow(0 6px 6px rgba(60, 50, 30, .16)); }
.bsi-tip__art { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--farbe); display: flex; align-items: center; }
.bsi-tip__name { font-weight: 700; font-size: 17px; line-height: 1.2; color: var(--bsi-text); }
.bsi-tip__inci { font-size: 12px; font-style: italic; color: var(--bsi-leise); }
.bsi-tip__kurz { grid-column: 1 / -1; margin: 8px 0 0; }
.bsi-tip__rolle { grid-column: 1 / -1; margin: 6px 0 0; font-size: 13.5px; color: #4b463e; }
.bsi-tip__rolle b { color: var(--farbe); font-weight: 600; }
.bsi-tip__link { grid-column: 1 / -1; margin-top: 8px; font-weight: 600; font-size: 13.5px; color: var(--bsi-kupfer); text-decoration: none; }
.bsi-tip__link:hover { text-decoration: underline; }

/* ── 2. Karten ─────────────────────────────────────────────────────────── */
.bsi-karten-block { margin: 56px 0 24px; padding-top: 40px; border-top: 1px solid var(--bsi-linie); clear: both; }
.bsi-karten-kopf { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 24px; margin-bottom: 6px; }
.bsi-titel { margin: 0; font-size: clamp(24px, 3.2vw, 34px); line-height: 1.1; letter-spacing: .02em; text-transform: uppercase; }
.bsi-sort { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--bsi-papier); border: 1px solid var(--bsi-linie); }
.bsi-sort button { appearance: none; border: 0; margin: 0; background: transparent; color: var(--bsi-leise); font: inherit; font-size: 13.5px;
  font-weight: 600; letter-spacing: 0; text-transform: none; padding: 8px 15px; border-radius: 999px; cursor: pointer; line-height: 1.2; min-height: 0;
  transition: background .2s, color .2s, box-shadow .2s; }
.bsi-sort button:hover { color: var(--bsi-text); }
.bsi-sort button[aria-pressed="true"] { background: #fff; color: var(--bsi-gruen); box-shadow: 0 2px 8px rgba(44, 38, 28, .1); }
.bsi-sort-satz { font-size: 14px; color: var(--bsi-leise); margin: 6px 0 22px; }

.bsi-karten { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 22px 18px; margin: 0 0 22px; }
.bsi-karte { min-width: 0; }
.bsi-karte__link { display: flex; flex-direction: column; height: 100%; text-decoration: none !important; color: inherit; background: #fff;
  border: 1px solid var(--bsi-linie); border-radius: 24px; overflow: hidden;
  transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s, border-color .3s; }
.bsi-karte__link:hover, .bsi-karte__link:focus-visible { transform: translateY(-4px); border-color: transparent; outline: none;
  box-shadow: 0 20px 40px rgba(44, 38, 28, .12), 0 0 0 2px var(--tint); }
.bsi-karte__buehne { position: relative; aspect-ratio: 1 / 1; display: grid; place-items: center; }
.bsi-kiesel { position: absolute; inset: 11%; background: var(--tint); border-radius: 62% 38% 55% 45% / 52% 60% 40% 48%;
  transform: rotate(var(--dreh, 0deg)) scale(var(--menge, 1)); transition: transform .5s cubic-bezier(.2, .8, .2, 1), border-radius .6s; }
.bsi-karte:nth-child(3n+2) .bsi-kiesel { --dreh: 24deg; border-radius: 45% 55% 40% 60% / 58% 42% 58% 42%; }
.bsi-karte:nth-child(3n) .bsi-kiesel { --dreh: -18deg; border-radius: 55% 45% 62% 38% / 44% 56% 44% 56%; }
.bsi-karte__link:hover .bsi-kiesel { --dreh: 8deg; border-radius: 50% 50% 46% 54% / 50% 54% 46% 50%; }
.bsi-karte__buehne img { position: relative; width: 76%; height: 76%; object-fit: contain; filter: drop-shadow(0 14px 14px rgba(60, 50, 30, .18));
  transition: transform .45s cubic-bezier(.2, .8, .2, 1); }
.bsi-karte__link:hover .bsi-karte__buehne img { transform: translateY(-6px) rotate(-3deg) scale(1.04); }
.bsi-karte__nr { position: absolute; top: 14px; left: 16px; font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--farbe);
  font-variant-numeric: tabular-nums; opacity: .8; }
.bsi-karten-block:not([data-sortierung="menge"]) .bsi-karte__nr { display: none; }
.bsi-karte__text { display: flex; flex-direction: column; gap: 6px; padding: 2px 20px 20px; flex: 1; }
.bsi-karte__art { display: flex; align-items: center; font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--farbe); }
.bsi-karte__name { font-size: 19px; font-weight: 700; line-height: 1.2; color: var(--bsi-text); }
.bsi-karte__inci { font-size: 12px; font-style: italic; color: var(--bsi-leise); line-height: 1.35; overflow-wrap: anywhere; }
.bsi-karte__rolle { font-size: 13.5px; line-height: 1.5; color: #4b463e; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bsi-chips { display: flex; flex-wrap: wrap; gap: 5px; margin: 2px 0 0; }
.bsi-chip { font-size: 11.5px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--tint); color: var(--farbe); }
.bsi-karte__mehr { margin-top: auto; padding-top: 8px; font-size: 13.5px; font-weight: 600; color: var(--bsi-kupfer); }

/* „Das Besondere zuerst“: die Herzstücke breit, mit Bild links */
@media (min-width: 720px) {
  .bsi-karten-block[data-sortierung="besonders"] .bsi-karte--herz { grid-column: span 2; }
  .bsi-karten-block[data-sortierung="besonders"] .bsi-karte--herz .bsi-karte__link { flex-direction: row; align-items: center; }
  .bsi-karten-block[data-sortierung="besonders"] .bsi-karte--herz .bsi-karte__buehne { flex: 0 0 48%; }
  .bsi-karten-block[data-sortierung="besonders"] .bsi-karte--herz .bsi-karte__text { padding: 22px 24px 22px 4px; }
  .bsi-karten-block[data-sortierung="besonders"] .bsi-karte--herz .bsi-karte__name { font-size: 24px; }
  .bsi-karten-block[data-sortierung="besonders"] .bsi-karte--herz .bsi-karte__rolle { -webkit-line-clamp: 6; font-size: 14.5px; }
}
.bsi-gruppe-titel { grid-column: 1 / -1; margin: 10px 0 -6px; padding-bottom: 8px; border-bottom: 1px solid var(--bsi-linie);
  font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--bsi-leise); }
.bsi-gruppe-titel:first-child { margin-top: 0; }
.bsi-karte.bsi-weg { display: none; }

/* Handy: die Karten der Produktseite als Leiste zum Wischen */
@media (max-width: 719px) {
  .bsi-karten-block .bsi-karten { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin: 0 -16px 18px;
    padding: 4px 16px 14px; scroll-padding-inline: 16px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
  .bsi-karten-block .bsi-karte { flex: 0 0 74%; scroll-snap-align: start; }
  .bsi-karten-block .bsi-gruppe-titel { display: none; }
  .bsi-sort { width: 100%; }
  .bsi-sort button { flex: 1; padding: 9px 6px; font-size: 12.5px; }
}

/* ── 3. Lexikon: Übersicht ─────────────────────────────────────────────── */
.bsi-lexikon { padding: 24px 0 56px; }
.bsi-lexikon-kopf { max-width: 760px; margin-bottom: 26px; }
.bsi-kicker { display: flex; align-items: center; margin: 0 0 8px; font-size: 12.5px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--bsi-kupfer); }
.bsi-stoff .bsi-held .bsi-kicker { color: var(--farbe); }
.bsi-h1 { margin: 0 0 12px; font-size: clamp(34px, 5.4vw, 60px); line-height: 1.02; text-transform: uppercase; letter-spacing: .01em; }
.bsi-lead { font-size: clamp(16.5px, 1.6vw, 19px); line-height: 1.6; color: #4b463e; margin: 0 0 14px; }
.bsi-filter { display: flex; flex-direction: column; gap: 10px; margin: 0 0 28px; }
.bsi-suche input { width: 100%; max-width: 520px; height: 50px; margin: 0; border-radius: 999px; border: 1px solid var(--bsi-linie);
  background: #fff; padding: 0 22px; font-size: 16px; box-shadow: none; }
.bsi-suche input:focus { border-color: var(--bsi-gruen); box-shadow: 0 0 0 3px color-mix(in srgb, var(--bsi-gruen) 18%, transparent); outline: none; }
.bsi-filter-reihe { display: flex; flex-wrap: wrap; gap: 6px; }
.bsi-filter-reihe button { appearance: none; display: inline-flex; align-items: center; margin: 0; border: 1px solid var(--bsi-linie); background: #fff;
  color: var(--bsi-text); font: inherit; font-size: 13.5px; font-weight: 600; text-transform: none; letter-spacing: 0; line-height: 1.2;
  padding: 8px 14px; border-radius: 999px; cursor: pointer; min-height: 0; transition: background .15s, border-color .15s, color .15s; }
.bsi-filter-reihe button:hover { border-color: var(--farbe, var(--bsi-gruen)); }
.bsi-filter-reihe button[aria-pressed="true"] { background: var(--bsi-gruen); border-color: var(--bsi-gruen); color: #fff; }
.bsi-filter-reihe button[aria-pressed="true"] .bsi-ic { color: #fff; }
.bsi-filter-reihe--leise button { font-weight: 500; font-size: 13px; padding: 6px 12px; background: transparent; }
.bsi-karten--lexikon { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
@media (max-width: 560px) {
  .bsi-karten--lexikon, .bsi-karten--klein { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .bsi-karten--lexikon .bsi-karte__text, .bsi-karten--klein .bsi-karte__text { padding: 0 12px 14px; }
  .bsi-karten--lexikon .bsi-karte__name, .bsi-karten--klein .bsi-karte__name { font-size: 16px; }
  .bsi-karten--lexikon .bsi-karte__inci, .bsi-karten--klein .bsi-karte__inci, .bsi-karten--lexikon .bsi-chips { display: none; }
  .bsi-karten--lexikon .bsi-karte__rolle { font-size: 12.5px; }
}
.bsi-nichts { padding: 30px; text-align: center; color: var(--bsi-leise); border: 1px dashed var(--bsi-linie); border-radius: 18px; }
.bsi-arten-erklaert { margin-top: 56px; }
.bsi-arten-erklaert dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin: 18px 0 0; }
.bsi-arten-erklaert dl > div { background: var(--tint); border-radius: 18px; padding: 16px 18px; }
.bsi-arten-erklaert dt { display: flex; align-items: center; font-weight: 700; color: var(--farbe); margin-bottom: 4px; }
.bsi-arten-erklaert dd { margin: 0; font-size: 14px; line-height: 1.5; color: #4b463e; }

/* ── 3b. Lexikon: ein Stoff ────────────────────────────────────────────── */
.bsi-stoff { padding: 18px 0 56px; }
.bsi-brot { display: flex; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--bsi-leise); margin-bottom: 22px; }
.bsi-brot a { color: var(--bsi-leise); }
.bsi-held { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.bsi-held__bild { position: relative; aspect-ratio: 1 / 1; display: grid; place-items: center; }
.bsi-held__bild .bsi-kiesel { inset: 6%; animation: bsi-atmen 9s ease-in-out infinite alternate; }
.bsi-held__bild img { position: relative; width: 80%; height: 80%; object-fit: contain; filter: drop-shadow(0 24px 22px rgba(60, 50, 30, .2)); }
@keyframes bsi-atmen {
  from { border-radius: 62% 38% 55% 45% / 52% 60% 40% 48%; transform: rotate(-4deg); }
  to   { border-radius: 46% 54% 42% 58% / 58% 44% 56% 42%; transform: rotate(6deg); }
}
@media (prefers-reduced-motion: reduce) {
  .bsi-held__bild .bsi-kiesel { animation: none; }
  .bsi-karte__link, .bsi-karte__buehne img, .bsi-kiesel, .bsi-tip { transition: none; }
}
.bsi-held__inci { font-size: 14px; font-style: italic; color: var(--bsi-leise); margin: -4px 0 14px; }
.bsi-held .bsi-chips { margin-bottom: 18px; }
.bsi-held .bsi-chip { font-size: 12.5px; padding: 5px 12px; }
.bsi-rolle { background: var(--tint); border-radius: 20px; padding: 18px 22px; }
.bsi-rolle h2 { margin: 0 0 6px; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--farbe); font-weight: 700; }
.bsi-rolle p { margin: 0; font-size: 16px; line-height: 1.6; }
.bsi-abschnitt { max-width: 780px; margin: 56px 0 0; }
.bsi-abschnitt > p { font-size: 16.5px; line-height: 1.75; margin: 14px 0 0; }
.bsi-weg { list-style: none; margin: 22px 0 0; padding: 0; }
.bsi-weg li { position: relative; display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 16px; margin: 0; padding-bottom: 28px; }
.bsi-weg li:not(:last-child)::before { content: ""; position: absolute; left: 22px; top: 48px; bottom: 6px; width: 2px;
  background: repeating-linear-gradient(to bottom, var(--farbe) 0 6px, transparent 6px 12px); opacity: .35; }
.bsi-weg__nr { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: var(--tint); color: var(--farbe);
  font-weight: 700; font-size: 18px; }
.bsi-weg h3 { margin: 10px 0 6px; font-size: 18px; text-transform: none; letter-spacing: 0; }
.bsi-weg p { margin: 0; font-size: 16px; line-height: 1.72; }
.bsi-bei-uns { background: var(--bsi-papier); border-radius: 20px; padding: 22px 24px; }
.bsi-bei-uns > p { margin-top: 8px; }
.bsi-wissen { max-width: 780px; margin: 48px 0 0; padding: 26px 28px; border-radius: 24px; background: var(--bsi-papier); position: relative; overflow: hidden; }
.bsi-wissen::before { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; background: var(--tint);
  border-radius: 62% 38% 55% 45% / 52% 60% 40% 48%; opacity: .8; }
.bsi-wissen p { position: relative; }
.bsi-wissen p:last-child { margin: 0; font-family: "BSCHI Playfair", "Playfair Display", Georgia, serif; font-size: clamp(18px, 2vw, 21px); line-height: 1.55; }
.bsi-produkte { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 18px 16px; }
.bsi-produkte li { margin: 0; }
.bsi-produkte a { display: flex; flex-direction: column; gap: 6px; color: inherit; text-decoration: none; }
.bsi-produkte__bild { display: block; border-radius: 16px; overflow: hidden; background: var(--bsi-papier); aspect-ratio: 1 / 1; }
.bsi-produkte__bild img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; margin: 0; }
.bsi-produkte a:hover img { transform: scale(1.04); }
.bsi-produkte__name { font-size: 14.5px; font-weight: 600; line-height: 1.3; }
.bsi-produkte__preis { font-size: 14px; color: var(--bsi-leise); }
.bsi-karten--klein { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); margin-top: 20px; }
.bsi-karten--klein .bsi-karte__name { font-size: 16.5px; }
.bsi-art-fuss { display: flex; align-items: baseline; gap: 2px; flex-wrap: wrap; margin-top: 48px; max-width: 780px; }
@media (max-width: 760px) {
  .bsi-held { grid-template-columns: 1fr; }
  .bsi-held__bild { max-width: 340px; width: 100%; margin: 0 auto; }
  .bsi-abschnitt, .bsi-wissen { margin-top: 40px; }
}
