/* Baustein-Bibliothek (Klick auf einen Baustein links → Varianten) */
.pal { position: relative; }
.pal-n { position: absolute; top: 6px; right: 6px; min-width: 20px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--yellow-soft, #fff4bf); color: var(--ink); font-size: 10.5px; font-weight: 800; display: grid; place-items: center; }
.pal-lib { background: linear-gradient(180deg, #fff 0%, #fffbea 100%); border-color: #f1e3a6; }
.pal-lib:hover { border-color: var(--ink-2); }
.bl-bar { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.bl-bar .input { flex: 1; }
.bl-chips { margin-bottom: 12px; flex-wrap: wrap; }
.bl-n { font-size: 10.5px; opacity: 0.6; margin-left: 2px; }
.bl-list { display: grid; gap: 10px; }
.bl-hl { display: flex; gap: 14px; align-items: flex-start; border: 1px solid var(--rule); border-radius: 12px; padding: 12px 14px; background: #fff; }
.bl-hl-t { font-weight: 800; font-size: 16px; line-height: 1.3; }
.bl-hl-d { color: var(--ink-2); font-size: 13.5px; margin-top: 3px; line-height: 1.45; }
.bl-hl-p { font-size: 12px; color: var(--muted); margin-top: 4px; }
.bl-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 11.5px; color: var(--muted); margin-top: 6px; min-width: 0; }
.bl-chip { background: var(--bg); border-radius: 999px; padding: 1px 8px; font-weight: 650; color: var(--ink-2); white-space: nowrap; }
.bl-act { display: flex; gap: 6px; flex: none; flex-wrap: wrap; justify-content: flex-end; }
.bl-sec { border: 1px solid var(--rule); border-radius: 12px; padding: 12px 14px; background: #fff; display: grid; gap: 6px; justify-items: start; }
.bl-sec-h { display: flex; gap: 14px; align-items: flex-start; width: 100%; }
.bl-sec-t { font-weight: 800; font-size: 15px; line-height: 1.3; }
.bl-why { font-size: 12.5px; color: var(--ink-2); }
.bl-prev { font-size: 13.5px; line-height: 1.55; color: var(--ink-2); }
.bl-full { width: 100%; border-radius: 10px; overflow: hidden; border: 1px solid var(--rule); }
.bl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.bl-card { border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.bl-card-prev { max-height: 340px; overflow: hidden; position: relative; background: var(--bg); }
.bl-card-prev::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 36px; background: linear-gradient(transparent, #fff); pointer-events: none; }
.bl-frame { display: block; width: 100%; min-height: 120px; border: 0; background: #fff; }
.bl-card-b { padding: 8px 10px 10px; display: grid; gap: 6px; margin-top: auto; }
.bl-card-b .bl-meta { margin-top: 0; }
.bl-card-b .bl-act { justify-content: flex-start; }
.bl-more { display: flex; justify-content: center; margin-top: 12px; }
@media (max-width: 640px) { .bl-hl, .bl-sec-h { flex-direction: column; } .bl-act { justify-content: flex-start; } }
.bl-tech { font-size: 12.5px; color: var(--ink-2); margin-top: 4px; }
