/* Textblöcke der Textwerkstatt (N239). Katalog: config/texte/bloecke.json, Prüfung: scripts/texte/tw_bloecke.py.
   Noch nicht im Shop ausgerollt (Katalog `gestaltung_live: false`). Die Blöcke gestalten sich selbst und hängen an
   keinem Elterncontainer: Sie gelten im Kategorietext, in der Produktbeschreibung und im Fließtext von Ratgeber und Blog.
   Farben und Schriften kommen aus den Variablen des Sweet-Templates, mit Ersatzwerten für die Vorschau.
   Beschriftungen („Hinweis“, „Auf einen Blick“ …) setzt diese Datei, nie der Text. Keine Media-Queries: Ein Block passt
   sich seiner Breite an, der Vergleich schiebt sich in seinem Rahmen zur Seite und hält die erste Spalte fest. */
.bb-tb { margin: 1.5em 0; font-size: 15px; line-height: 1.55; color: var(--bb-ink, #2b2a22); max-width: 100%; box-sizing: border-box; }
.bb-tb *, .bb-tb *::before { box-sizing: border-box; }
.bb-tb > :first-child { margin-top: 0; }
.bb-tb > :last-child { margin-bottom: 0; }
.bb-tb a { color: var(--bb-g-action, #0f6b31); text-decoration: underline; text-underline-offset: 2px; }
.bb-tb--blick::before, .bb-tb--hinweis::before, .bb-tb--weiter::before {
  display: block; margin-bottom: .6em; font-family: var(--bb-font-mono, "Space Mono", ui-monospace, monospace);
  font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }

/* Vergleich */
.bb-tb--vergleich { overflow-x: auto; border: 1px solid var(--bb-line, #e3dfd2);
  border-radius: var(--bb-radius-sm, 8px); background: var(--bb-surface, #fff); }
.bb-tb--vergleich table { width: 100%; border-collapse: collapse; margin: 0; }
/* Mindestbreiten statt Wortumbruch: Am Handy schiebt sich die Tabelle in ihrem Rahmen, die erste Spalte bleibt stehen */
.bb-tb--vergleich th, .bb-tb--vergleich td { padding: .7em .9em; text-align: left; vertical-align: top; min-width: 7.5em;
  border-bottom: 1px solid var(--bb-line, #e3dfd2); }
.bb-tb--vergleich tr > :last-child:not(:first-child) { min-width: 14em; }
.bb-tb--vergleich thead th { font-family: var(--bb-font-mono, "Space Mono", ui-monospace, monospace); font-size: 12px;
  letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; background: var(--bb-tb-flaeche, #f4f1e6); }
.bb-tb--vergleich tbody tr:last-child td { border-bottom: 0; }
.bb-tb--vergleich tr > :first-child { position: sticky; left: 0; font-weight: 700; background: var(--bb-surface, #fff);
  box-shadow: 1px 0 0 var(--bb-line, #e3dfd2); }
.bb-tb--vergleich thead tr > :first-child { background: var(--bb-tb-flaeche, #f4f1e6); }

/* Auf einen Blick */
.bb-tb--blick { padding: 1em 1.1em; border: 1px solid var(--bb-line, #e3dfd2); border-radius: var(--bb-radius-sm, 8px);
  background: var(--bb-tb-flaeche, #f4f1e6); }
.bb-tb--blick::before { content: "Auf einen Blick"; }
.bb-tb--blick ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55em; }
.bb-tb--blick li { position: relative; padding-left: 1.5em; }
.bb-tb--blick li::before { content: ""; position: absolute; left: .15em; top: .5em; width: .6em; height: .6em;
  border-radius: 50%; background: var(--bb-g-ink, #0f6b31); }

/* Schritte */
.bb-tb--schritte ol { list-style: none; margin: 0; padding: 0; counter-reset: bbtb; display: grid; gap: .7em; }
.bb-tb--schritte li { counter-increment: bbtb; position: relative; padding-left: 2.6em; min-height: 1.9em; }
.bb-tb--schritte li::before { content: counter(bbtb); position: absolute; left: 0; top: -.05em; width: 1.9em; height: 1.9em;
  display: grid; place-items: center; border-radius: 50%; border: 2px solid var(--bb-ink, #2b2a22);
  font-family: var(--bb-font-mono, "Space Mono", ui-monospace, monospace); font-size: 13px; font-weight: 700; }

/* Hinweis */
.bb-tb--hinweis { padding: .9em 1.1em; border: 2px solid var(--bb-y-ink, #7d5200); border-radius: var(--bb-radius-sm, 8px);
  background: var(--bb-tb-hinweis, #fdf6e0); }
.bb-tb--hinweis::before { content: "Hinweis"; color: var(--bb-y-ink, #7d5200); }
.bb-tb--hinweis p { margin: 0 0 .5em; }

/* Daten */
.bb-tb--daten dl { margin: 0; display: grid; grid-template-columns: minmax(7em, max-content) 1fr;
  border-top: 1px solid var(--bb-line, #e3dfd2); }
.bb-tb--daten dt, .bb-tb--daten dd { margin: 0; padding: .5em .9em .5em 0; border-bottom: 1px solid var(--bb-line, #e3dfd2); }
.bb-tb--daten dt { font-family: var(--bb-font-mono, "Space Mono", ui-monospace, monospace); font-size: 12px;
  letter-spacing: .05em; text-transform: uppercase; padding-top: .7em; }
.bb-tb--daten dd { font-weight: 600; font-variant-numeric: tabular-nums; }

/* Fragen */
.bb-tb--fragen { border-top: 1px solid var(--bb-line, #e3dfd2); }
.bb-tb--fragen details { border-bottom: 1px solid var(--bb-line, #e3dfd2); }
.bb-tb--fragen summary { cursor: pointer; list-style: none; padding: .8em 2em .8em 0; font-weight: 700; position: relative; }
.bb-tb--fragen summary::-webkit-details-marker { display: none; }
.bb-tb--fragen summary::after { content: "+"; position: absolute; right: .2em; top: .55em;
  font-family: var(--bb-font-mono, "Space Mono", ui-monospace, monospace); font-size: 18px; }
.bb-tb--fragen details[open] summary::after { content: "–"; }
.bb-tb--fragen summary:focus-visible { outline: 2px solid var(--bb-g-action, #0f6b31); outline-offset: 2px; }
.bb-tb--fragen details > :not(summary) { margin: 0 0 .9em; }

/* Weiterlesen */
.bb-tb--weiter::before { content: "Weiterlesen"; }
.bb-tb--weiter ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5em;
  grid-template-columns: repeat(auto-fit, minmax(14em, 1fr)); }
.bb-tb--weiter li { padding: .8em 1em; border: 1px solid var(--bb-line, #e3dfd2); border-radius: var(--bb-radius-sm, 8px);
  background: var(--bb-surface, #fff); }
.bb-tb--weiter li a { display: block; font-weight: 700; margin-bottom: .15em; }

/* ===== Standardbloecke am Seitenende (Seitenteam, Owner 22.11.2026) =====
   Auf Welten mit textBloecke baut plugins/bb_frontend/Catalog/Plp/TextBloecke.php die beiden Bloecke beim Ausgeben um und
   stellt sie in voller Breite unter den Text (.bb-tb-unten); der WAWI-Text bleibt, wie er ist. Ohne Umbau gelten die Regeln
   oben. Entwurf: outputs/seitenteam/BONGSHOP--Glasbongs--Heisenberg/marketer (Runde 5). Statt Media-Queries richten sich die
   Bloecke nach ihrer eigenen Breite (Container). */
.bb-tb-unten { display: grid; gap: clamp(28px, 4vw, 48px); margin: 0 0 clamp(36px, 5vw, 64px); }
.bb-tb-unten .bb-tb { margin: 0; }

/* Haeufige Fragen: dunkle Flaeche, nummerierte Karten, runder Plus-Knopf, erste offen */
.bb-tb--fragen.bb-fq { container-type: inline-size; border: 0; background: var(--k-dark, #17150e); color: #f4efe1;
  border-radius: calc(var(--bb-radius, 16px) + 6px); padding: clamp(20px, 3vw, 44px); }
.bb-fq__kopf { display: flex; align-items: center; gap: 16px; margin-bottom: clamp(16px, 2.4vw, 28px); }
.bb-fq__kicker, .bb-wl__kicker { margin: 0; font-family: var(--bb-font-mono, "Space Mono", ui-monospace, monospace); font-size: 12px;
  font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--bb-muted-text, #756f5f); }
.bb-fq__kicker { color: rgba(244, 239, 225, .65); }
.bb-fq__h, .bb-wl__h { font-family: var(--bb-font-disp, "Anton", system-ui, sans-serif); font-weight: 400; text-transform: uppercase;
  font-size: clamp(30px, 3.4vw, 48px); line-height: 1; margin: 6px 0 0; color: inherit; letter-spacing: 0; }
.bb-fq__h span { color: var(--bb-y, #eab00e); }
.bb-wl__h span { color: var(--bb-g, #178a41); }
.bb-fq__zahl { margin-left: auto; font-family: var(--bb-font-mono, "Space Mono", ui-monospace, monospace); font-size: 12px;
  letter-spacing: .12em; text-transform: uppercase; color: rgba(244, 239, 225, .65); white-space: nowrap; }
/* Spalten statt Raster: eine offene Frage reisst kein Loch neben sich */
.bb-fq__liste { columns: 2; column-gap: 12px; }
.bb-tb--fragen .bb-fq__k { break-inside: avoid; display: block; margin: 0 0 12px; background: var(--k-dark-2, #211e15);
  border: 1px solid rgba(244, 239, 225, .14); border-radius: var(--bb-radius, 16px); transition: background .2s, border-color .2s; }
.bb-tb--fragen .bb-fq__k[open] { background: #fdfcf7; color: var(--bb-ink, #17150e); border-color: #fdfcf7; }
.bb-tb--fragen .bb-fq__k summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: auto 1fr auto;
  align-items: center; gap: 14px; padding: 18px 18px 18px 20px; min-height: 72px; font-weight: 400; }
.bb-tb--fragen.bb-fq .bb-fq__k summary::after { content: none; }
.bb-tb--fragen .bb-fq__k summary:focus-visible { outline: 2px solid var(--bb-y, #eab00e); outline-offset: 2px;
  border-radius: var(--bb-radius, 16px); }
.bb-fq__nr { font-family: var(--bb-font-mono, "Space Mono", ui-monospace, monospace); font-weight: 700; font-size: 13px;
  color: var(--bb-y, #eab00e); }
.bb-fq__k[open] .bb-fq__nr { color: var(--bb-y-ink, #7d5200); }
.bb-fq__q { font-weight: 700; font-size: clamp(16px, 1.3vw, 18px); line-height: 1.3; }
.bb-fq__plus { position: relative; width: 36px; height: 36px; border-radius: 50%; background: var(--bb-y, #eab00e); flex: none;
  transition: transform .25s; }
.bb-fq__plus::before, .bb-fq__plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2.5px;
  background: var(--bb-ink, #17150e); border-radius: 2px; transform: translate(-50%, -50%); }
.bb-fq__plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.bb-fq__k[open] .bb-fq__plus { transform: rotate(45deg); }
.bb-fq__k summary:hover .bb-fq__plus { box-shadow: 0 0 0 4px rgba(234, 176, 14, .3); }
.bb-tb--fragen .bb-fq__a { margin: 0; padding: 0 20px 20px 54px; }
.bb-fq__a p { margin: 0 0 .7em; font-size: 16px; line-height: 1.6; color: #3a372c; }
.bb-fq__a > :last-child { margin-bottom: 0; }
.bb-fq__a a { color: var(--bb-g-ink, #0f6b31); }
@container (max-width: 640px) {
  .bb-fq__liste { columns: 1; }
  .bb-fq__zahl { display: none; }
  .bb-tb--fragen .bb-fq__k { margin-bottom: 10px; }
  .bb-tb--fragen .bb-fq__k summary { gap: 10px; padding: 14px; min-height: 64px; }
  .bb-tb--fragen .bb-fq__a { padding: 0 14px 16px; }
}

/* Weiterlesen: Teaserkarten mit Bild der Zielseite, Art-Etikett, Titel, Kurztext, Pfeil-Link */
.bb-tb--weiter.bb-wl { container-type: inline-size; }
.bb-tb--weiter.bb-wl::before { content: none; }
.bb-wl__kopf { margin-bottom: 18px; }
.bb-wl__liste { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.bb-wl__liste--1 { grid-template-columns: minmax(0, 1fr); max-width: 24em; }
.bb-wl__liste--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bb-wl__liste--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bb-tb a.bb-wl__k { display: flex; flex-direction: column; background: var(--bb-bg, #fdfcf7); border: 1.5px solid var(--bb-line, #e3dfd2);
  border-radius: var(--bb-radius, 16px); overflow: hidden; text-decoration: none; color: var(--bb-ink, #17150e);
  transition: transform .2s, box-shadow .2s; }
.bb-tb a.bb-wl__k:hover { transform: translateY(-3px); box-shadow: var(--bb-shadow, 0 16px 40px -20px rgba(23, 21, 14, .22)); }
.bb-wl__bild { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--k-cream, #f4efe1); overflow: hidden; }
.bb-wl__bild img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.bb-wl__k:hover .bb-wl__bild img { transform: scale(1.04); }
.bb-wl__k--frei .bb-wl__bild { background: #fff; }
.bb-wl__k--frei .bb-wl__bild img { object-fit: contain; padding: 10px; }
.bb-wl__bild em { position: absolute; left: 12px; top: 12px; font-style: normal; font-family: var(--bb-font-mono, "Space Mono", ui-monospace, monospace);
  font-weight: 700; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; background: var(--bb-ink, #17150e); color: #fff;
  border-radius: 99px; padding: 4px 10px; }
.bb-wl__t { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; flex: 1; }
.bb-wl__t b { font-family: var(--bb-font-disp, "Anton", system-ui, sans-serif); font-weight: 400; text-transform: uppercase;
  font-size: clamp(20px, 1.6vw, 24px); line-height: 1.05; }
.bb-wl__t span { font-size: 15px; line-height: 1.5; color: #4c4738; }
.bb-wl__t i { margin-top: auto; padding-top: 6px; font-style: normal; font-weight: 700; font-size: 14.5px; color: var(--bb-g-ink, #0f6b31); }
@container (max-width: 900px) {
  .bb-wl__liste, .bb-wl__liste--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container (max-width: 560px) {
  .bb-wl__liste, .bb-wl__liste--2, .bb-wl__liste--3 { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .bb-tb a.bb-wl__k { display: grid; grid-template-columns: 112px 1fr; }
  .bb-wl__bild { aspect-ratio: auto; min-height: 112px; }
  .bb-wl__bild em { left: 6px; top: 6px; font-size: 9px; padding: 3px 7px; }
  .bb-wl__t { padding: 12px 14px; gap: 5px; }
  .bb-wl__t b { font-size: 18px; }
  .bb-wl__t span { font-size: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .bb-wl__t i { font-size: 13.5px; }
}
