/* DGM-Inventum references (mask_references, template frontend-inventum.html): impact band, filter bar, cards.
   Scoped to .inv-refs.inv-refs--v2 so it outranks the earlier .inv-refs rules in inventum.css. */
.inv-refs.inv-refs--v2 {
  --rf-ink: #161513; --rf-text: #4a463f; --rf-muted: #6b675f; --rf-line: #e6e1d8; --rf-accent: #08739c; --rf-accent-strong: #0a7aa6;
  --rf-font: "Theme-Font", Inter, system-ui, sans-serif; --rf-heading: "Heading-Font", "Inter Tight", "Theme-Font", Inter, system-ui, sans-serif;
  padding: clamp(24px, 3vw, 40px) 20px clamp(64px, 8vw, 104px);
  font-family: var(--rf-font);
}
.inv-refs.inv-refs--v2 .inv-refs__wrap { max-width: 1200px; margin: 0 auto; }

/* ---------- Impact band ---------- */
.inv-refs.inv-refs--v2 .inv-refs__impact {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px 56px; align-items: center;
  padding: clamp(28px, 4vw, 52px); border-radius: 26px; background: #13232c; color: #fff;
}
.inv-refs.inv-refs--v2 .inv-refs__impact-kicker { margin: 0 0 12px; color: #8fdcf5; font-size: 13px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
.inv-refs.inv-refs--v2 .inv-refs__impact-title {
  margin: 0; max-width: 18ch; color: #fff; font: 800 clamp(1.7rem, 1.2rem + 1.5vw, 2.4rem)/1.08 var(--rf-heading); letter-spacing: -.03em; text-wrap: balance;
}
.inv-refs.inv-refs--v2 .inv-refs__figures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 0; margin: 0; }
.inv-refs.inv-refs--v2 .inv-refs__figure { display: flex; flex-direction: column-reverse; gap: 6px; padding: 4px 0 4px 18px; border-left: 1px solid rgba(255, 255, 255, .16); }
.inv-refs.inv-refs--v2 .inv-refs__figure[hidden] { display: none; }
.inv-refs.inv-refs--v2 .inv-refs__figure dt { margin: 0; color: rgba(255, 255, 255, .72); font-size: 14px; font-weight: 500; }
.inv-refs.inv-refs--v2 .inv-refs__figure dd {
  margin: 0; color: #fff; font: 800 clamp(1.6rem, 1.1rem + 1.4vw, 2.3rem)/1 var(--rf-heading); letter-spacing: -.03em; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.inv-refs.inv-refs--v2 .inv-refs__figures-note { grid-column: 2; margin: -10px 0 0 18px; color: rgba(255, 255, 255, .55); font-size: 12.5px; max-width: none; }
.inv-refs.inv-refs--v2 .inv-refs__orgs { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .14); }
.inv-refs.inv-refs--v2 .inv-refs__orgs[hidden] { display: none; }
.inv-refs.inv-refs--v2 .inv-refs__orgs-label { margin: 0; color: rgba(255, 255, 255, .6); font-size: 13px; font-weight: 600; }
.inv-refs.inv-refs--v2 .inv-refs__orgs-list { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.inv-refs.inv-refs--v2 .inv-refs__orgs-list li { margin: 0; padding: 0; }
.inv-refs.inv-refs--v2 .inv-refs__orgs-list li::before { content: none; }
.inv-refs.inv-refs--v2 .inv-refs__org-chip {
  display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); color: #fff; font: 600 13px/1.2 var(--rf-font); cursor: pointer; transition: background-color 160ms ease;
}
.inv-refs.inv-refs--v2 .inv-refs__org-count { margin-left: 8px; padding: 2px 7px; border-radius: 999px; background: rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .85); font-size: 11.5px; font-weight: 650; font-variant-numeric: tabular-nums; }
.inv-refs.inv-refs--v2 .inv-refs__org-chip:hover { background: rgba(255, 255, 255, .18); }
.inv-refs.inv-refs--v2 .inv-refs__org-chip:focus-visible { outline: 2px solid #8fdcf5; outline-offset: 2px; }
.inv-refs.inv-refs--v2 .inv-refs__org-rest { color: rgba(255, 255, 255, .6); font-size: 13px; }

/* ---------- Filter bar ---------- */
.inv-refs.inv-refs--v2 .inv-refs__bar {
  margin: 28px 0 22px; padding: 8px; border-radius: 18px; background: rgba(251, 250, 249, .96);
  box-shadow: 0 0 0 1px var(--rf-line), 0 10px 24px -20px rgba(22, 21, 19, .35);
}
.inv-refs.inv-refs--v2 .inv-refs__chip.is-active { background: var(--rf-ink); color: #fff; }

/* ---------- Cards ---------- */
.inv-refs.inv-refs--v2 .inv-refs__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.inv-refs.inv-refs--v2 .inv-refs__card {
  border-radius: 18px; background: #fff; box-shadow: 0 0 0 1px rgba(22, 21, 19, .07), 0 1px 2px rgba(22, 21, 19, .04);
  transition: box-shadow 200ms ease, transform 200ms cubic-bezier(.23, 1, .32, 1);
}
.inv-refs.inv-refs--v2 .inv-refs__card:hover { box-shadow: 0 0 0 1px rgba(22, 21, 19, .09), 0 18px 36px -22px rgba(22, 21, 19, .35); transform: translateY(-2px); }
.inv-refs.inv-refs--v2 .inv-refs__logo { height: 118px; padding: 20px 22px; border-bottom: 1px solid #f0ece6; background: #fff; }
.inv-refs.inv-refs--v2 .inv-refs__logo img { max-height: 70px; }
.inv-refs.inv-refs--v2 .inv-refs__body { gap: 8px; padding: 16px 18px 16px; }
.inv-refs.inv-refs--v2 .inv-refs__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; font-size: 12.5px; color: var(--rf-muted); }
.inv-refs.inv-refs--v2 .inv-refs__type { display: inline-flex; align-items: center; gap: 6px; color: var(--rf-text); font-weight: 600; }
.inv-refs.inv-refs--v2 .inv-refs__type::before { content: ""; width: 7px; height: 7px; border-radius: 999px; background: #8a8580; }
.inv-refs.inv-refs--v2 .inv-refs__type--hybrid-event::before { background: #0a7aa6; }
.inv-refs.inv-refs--v2 .inv-refs__type--vor-ort-event::before { background: #128a5e; }
.inv-refs.inv-refs--v2 .inv-refs__type--online-live-event::before { background: #6d54c6; }
.inv-refs.inv-refs--v2 .inv-refs__org { font-weight: 600; }
.inv-refs.inv-refs--v2 .inv-refs__org::before { content: "·"; margin-right: 6px; color: #b3ada4; }
.inv-refs.inv-refs--v2 .inv-refs__title {
  display: -webkit-box; margin: 0; overflow: hidden; color: var(--rf-ink); font: 650 15.5px/1.32 var(--rf-heading); letter-spacing: -.01em;
  -webkit-line-clamp: 3; -webkit-box-orient: vertical;
}
.inv-refs.inv-refs--v2 .inv-refs__stats { display: flex; flex-wrap: wrap; gap: 5px; margin: 2px 0 0; padding: 0; list-style: none; }
.inv-refs.inv-refs--v2 .inv-refs__stats li {
  display: inline-flex; align-items: center; min-height: 26px; padding: 0 9px; border-radius: 999px; background: #f3f1ec;
  color: var(--rf-text); font-size: 12.5px; font-weight: 550; font-variant-numeric: tabular-nums;
}
.inv-refs.inv-refs--v2 .inv-refs__stats li::before { content: none; }
.inv-refs.inv-refs--v2 .inv-refs__descr { display: none; }
.inv-refs.inv-refs--v2 .inv-refs__actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 10px; border-top: 1px solid #f0ece6; }
.inv-refs.inv-refs--v2 .inv-refs__toggle {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 0; border: 0; background: none; color: var(--rf-ink); font: 650 13.5px/1.2 var(--rf-font); cursor: pointer;
}
.inv-refs.inv-refs--v2 .inv-refs__toggle i { font-size: 10px; color: var(--rf-accent); }
.inv-refs.inv-refs--v2 .inv-refs__toggle:hover { color: var(--rf-accent); }
.inv-refs.inv-refs--v2 .inv-refs__link { color: var(--rf-accent); font-size: 13px; font-weight: 600; }
.inv-refs.inv-refs--v2 .inv-refs__toggle:focus-visible, .inv-refs.inv-refs--v2 .inv-refs__link:focus-visible { outline: 2px solid var(--rf-accent-strong); outline-offset: 2px; border-radius: 4px; }

@media (max-width: 1099px) {
  .inv-refs.inv-refs--v2 .inv-refs__impact { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .inv-refs.inv-refs--v2 .inv-refs__figures { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .inv-refs.inv-refs--v2 .inv-refs__figures-note { grid-column: auto; margin: 0; }
  .inv-refs.inv-refs--v2 .inv-refs__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 799px) {
  .inv-refs.inv-refs--v2 .inv-refs__figures { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 0; }
  .inv-refs.inv-refs--v2 .inv-refs__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}
@media (max-width: 559px) {
  .inv-refs.inv-refs--v2 { padding-inline: 16px; }
  .inv-refs.inv-refs--v2 .inv-refs__impact { border-radius: 20px; }
  .inv-refs.inv-refs--v2 .inv-refs__grid { grid-template-columns: minmax(0, 1fr); }
  .inv-refs.inv-refs--v2 .inv-refs__card { display: grid; grid-template-columns: 104px minmax(0, 1fr); }
  .inv-refs.inv-refs--v2 .inv-refs__logo { height: auto; min-height: 100%; padding: 14px; border-right: 1px solid #f0ece6; border-bottom: 0; }
  .inv-refs.inv-refs--v2 .inv-refs__logo img { max-height: 56px; }
  .inv-refs.inv-refs--v2 .inv-refs__body { padding: 14px 14px 12px; }
}
@media (hover: none) { .inv-refs.inv-refs--v2 .inv-refs__card:hover { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .inv-refs.inv-refs--v2 .inv-refs__card, .inv-refs.inv-refs--v2 .inv-refs__org-chip { transition: none; }
  .inv-refs.inv-refs--v2 .inv-refs__card:hover { transform: none; }
}
