/* Malaika Africa – Kampagnen progress widget (scoped, site palette – see stripe-donate.css).
   --ma-fill is Blau (#4470D9, the small-text variant), reached is Braun. */
.ma-campaign { --ma-fill:#4470D9; --ma-reached:#966C63; --ma-track:#DCE6FA; --ma-ink:#3C3C3C; --ma-muted:#555;
  font-family: inherit; color: var(--ma-ink); max-width: 480px; }
.ma-campaign[hidden] { display: none; }

.ma-campaign__card {
  background: #fff; border-radius: 18px; padding: 24px;
  display: flex; flex-direction: column; gap: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
}
.ma-campaign p { margin: 0; }
/* A Titel is free text from the Sheet: one long compound must not leave the card. */
.ma-campaign__title { font-size: 17px; font-weight: 700; overflow-wrap: anywhere; hyphens: auto; }
.ma-campaign__amount { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.ma-campaign__raised { font-size: 32px; font-weight: 700; line-height: 1.1; color: var(--ma-fill); }
.ma-campaign__goal { font-size: 15px; color: var(--ma-muted); }
.ma-campaign__ended { font-size: 22px; font-weight: 700; line-height: 1.3; }

.ma-campaign__bar { height: 12px; border-radius: 999px; background: var(--ma-track); overflow: hidden; }
.ma-campaign__fill { height: 100%; border-radius: 999px; background: var(--ma-fill); transition: width .6s ease; }
.ma-campaign.is-reached .ma-campaign__fill { background: var(--ma-reached); }
.ma-campaign.is-ended .ma-campaign__fill { background: #B4CAF6; }
/* A small Stand (1 % at the start) still shows as a visible stub, not a sliver. */
.ma-campaign__bar:not([aria-valuenow="0"]) .ma-campaign__fill { min-width: 14px; }

.ma-campaign__meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--ma-muted); }
.ma-campaign__meta strong { color: var(--ma-ink); }

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

/* data-layout="hero": the Stand on the Kampagnen-Seite's dark hero, no card. */
/* On the Blau hero: Braun fill on a white track, so the bar reads at a glance
   (white on #4470D9 is 4.6:1, Braun on white 4.9:1). All text pure white:
   any off-white drops below 4.5 on #4470D9. */
.ma-campaign--hero { --ma-ink:#fff; --ma-muted:#fff; --ma-track:#fff; --ma-fill:#966C63; --ma-reached:#966C63;
  max-width: 520px; color: var(--ma-ink); }
.ma-campaign__stand { display: flex; flex-direction: column; gap: 10px; }
.ma-campaign--hero .ma-campaign__amount { justify-content: space-between; gap: 4px 12px; }
.ma-campaign--hero .ma-campaign__raised { font-size: 30px; font-weight: 800; color: var(--ma-ink); }
.ma-campaign--hero .ma-campaign__bar { height: 14px; }
.ma-campaign--hero .ma-campaign__meta { font-size: 15px; }
.ma-campaign--hero .ma-campaign__ended { font-size: 15px; font-weight: 600; }
.ma-campaign--hero.is-ended .ma-campaign__fill { background: var(--ma-fill); }
