/* Bestenliste card (bestenlisten/karte, referenz/19-bestenlisten.html): hub groups and the rails
   „Mehr aus …“ on lists and product checks. Colours from the Themenwelt (--c, --h). */

.bl-ic { width: 48px; height: 48px; border-radius: 50%; background: rgba(255, 255, 255, .55); display: grid; place-items: center; flex: none; }
.bl-ic svg { width: 26px; height: 26px; }

.bcard {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  text-decoration: none;
  color: var(--ink);
  transition: border-color .15s;
}
a.bcard:hover { border-color: var(--ink); }
a.bcard:hover h3 { text-decoration: underline; text-decoration-color: var(--c); text-decoration-thickness: 2px; text-underline-offset: 4px; }
a.bcard:focus-visible { outline: 3px solid var(--brand-deep); outline-offset: 2px; }
.bcard[hidden] { display: none; }
.bcard-img { aspect-ratio: 16 / 10; background: color-mix(in srgb, var(--c) 30%, var(--bg)); display: grid; place-items: center; max-width: 100%; overflow: hidden; }
.bcard-img img { width: 100%; height: 100%; object-fit: cover; }
/* Kategoriebild: transparent square clay motif, whole on the Themenwelt tint (DECISIONS 19.10.2026). */
/* Absolutely placed: in the aspect-ratio grid box `height: 100%` does not resolve, and the square image
   would grow past the 16:10 frame and get clipped. */
.bcard-img:has(> .bl-motif) { position: relative; }
.bcard-img img.bl-motif { position: absolute; inset: 0; object-fit: contain; padding: 6%; }
.bcard-img svg { width: 44px; height: 44px; opacity: .85; }
.bcard-body { padding: 14px 16px 16px; display: grid; gap: 6px; align-content: start; }
.bcard-tag { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.bcard h3 { font-size: 19px; font-weight: 800; }
.bcard p { font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.bcard-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--ink-3); margin-top: 4px; font-variant-numeric: tabular-nums; }
.bcard-meta b { color: var(--ink); font-weight: 600; }
.pill-soon { justify-self: start; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 8px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); }

/* „In Arbeit“: dashed, striped tile, no link. */
.bcard.soon { background: var(--sunk); border-style: dashed; }
.bcard.soon .bcard-img { background: repeating-linear-gradient(135deg, var(--sunk) 0 10px, transparent 10px 20px), color-mix(in srgb, var(--c) 14%, var(--bg)); }
.bcard.soon .bcard-img svg { opacity: .35; }

@container page (min-width: 900px) {
  .bl-ic { width: 56px; height: 56px; }
  .bcard { grid-template-rows: none; grid-template-columns: 104px minmax(0, 1fr); }
  .bcard-img { aspect-ratio: auto; height: 100%; min-height: 120px; }
  .bcard-img svg { width: 32px; height: 32px; }
  .bcard h3 { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  .bcard { transition: none; }
}
