/* Production design-system bridge.
   Centralises visual primitives that were previously emitted as page-local styles.
   Loaded after theme.css so these rules intentionally win during the staged refactor. */

html:has(body.page-has-full-hero) {
  background-color: #1F111A;
}

body.page-has-full-hero {
  background-color: var(--c-bg, #fff);
}

.page-has-full-hero :where(.page-title, .sfl-breadcrumb.template, .space-before-title) {
  display: none !important;
}

.home-hero__media {
  background:
    linear-gradient(90deg, rgba(10, 10, 10, 0.9) 0%, rgba(10, 10, 10, 0.68) 42%, rgba(10, 10, 10, 0.35) 100%),
    image-set(
      url("/images/hero-1800.webp?v=20260630-visual1") type("image/webp"),
      url("/images/hero.jpg?v=20260630-visual1") type("image/jpeg")
    ) !important;
  background-size: cover !important;
  background-position: center right !important;
  opacity: 0;
  transition: opacity 0.8s ease 0.1s;
}

.home-hero__media.loaded,
.no-js .home-hero__media {
  opacity: 1;
}

.ds-listing-card__media {
  display: block;
}

.ds-listing-card__media::before {
  content: none !important;
}

.ds-listing-card__image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: var(--blog-card-media-position, center);
  transform: translateZ(0);
}

.ds-listing-card__image.is-missing {
  display: none;
}

.ds-article-hero__media {
  overflow: hidden;
}

.ds-article-hero__media img,
.ds-article-hero__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.donorbox-frame {
  display: block;
  width: 100%;
  max-width: 500px;
  min-width: 250px;
  max-height: none !important;
  border: 0;
  border-radius: 18px;
  background: transparent;
}

.u-underline {
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

/* ── Production primitives promoted from the design system (2026-07-01) ──
   Token-safe: uses --c-* theme tokens with fallbacks. These are the canonical
   classes for badges, status/result cards, proof rows, meta strips, backlinks,
   download cards, quantity steppers, author and partner cards. */

.ds-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid color-mix(in srgb, var(--c-text, #222) 22%, transparent);
  border-radius: 999px;
  padding: 0.22rem 0.7rem;
  font-family: var(--font-display, "Barlow Semi Condensed", sans-serif);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--c-surface, #fff);
  color: var(--c-text-secondary, #555);
}
.ds-badge--ok { border-color: color-mix(in srgb, #1c7c43 45%, transparent); color: #1c7c43; background: color-mix(in srgb, #1c7c43 8%, var(--c-surface, #fff)); }
.ds-badge--soon { border-color: color-mix(in srgb, #7f5500 45%, transparent); color: #7f5500; background: color-mix(in srgb, #7f5500 8%, var(--c-surface, #fff)); }
.ds-badge--out { border-color: color-mix(in srgb, #b3261e 45%, transparent); color: #b3261e; background: color-mix(in srgb, #b3261e 8%, var(--c-surface, #fff)); }
:root[data-theme="dark"] .ds-badge--ok { color: #6fd39a; border-color: color-mix(in srgb, #6fd39a 45%, transparent); background: color-mix(in srgb, #6fd39a 10%, var(--c-surface, #221a22)); }
:root[data-theme="dark"] .ds-badge--soon { color: #e6b566; border-color: color-mix(in srgb, #e6b566 45%, transparent); background: color-mix(in srgb, #e6b566 10%, var(--c-surface, #221a22)); }
:root[data-theme="dark"] .ds-badge--out { color: #f2938c; border-color: color-mix(in srgb, #f2938c 45%, transparent); background: color-mix(in srgb, #f2938c 10%, var(--c-surface, #221a22)); }

.ds-status-card {
  border: 1px solid color-mix(in srgb, var(--c-text, #222) 13%, transparent);
  border-left: 4px solid color-mix(in srgb, var(--c-text, #222) 22%, transparent);
  border-radius: 0.9rem;
  background: var(--c-surface, #fff);
  padding: clamp(1.1rem, 2.2vw, 1.4rem);
  display: grid;
  gap: 0.45rem;
  align-content: start;
}
.ds-status-card strong { font-family: var(--font-display, "Barlow Semi Condensed", sans-serif); font-weight: 600; font-size: 1.1rem; color: var(--c-text, #222); }
.ds-status-card p { margin: 0; color: var(--c-text-secondary, #555); font-size: 0.95rem; }
.ds-status-card--success { border-left-color: #1c7c43; }
.ds-status-card--error { border-left-color: #b3261e; }
:root[data-theme="dark"] .ds-status-card--success { border-left-color: #6fd39a; }
:root[data-theme="dark"] .ds-status-card--error { border-left-color: #f2938c; }

.ds-proof-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.1rem, 2.2vw, 1.6rem);
}
.ds-proof-row__stat {
  border: 1px solid color-mix(in srgb, var(--c-text, #222) 13%, transparent);
  border-radius: 0.9rem;
  background: var(--c-surface, #fff);
  padding: clamp(1.1rem, 2.2vw, 1.5rem);
  display: grid;
  gap: 0.35rem;
}
.ds-proof-row__stat strong {
  font-family: var(--font-display, "Barlow Semi Condensed", sans-serif);
  font-weight: 600;
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 0.95;
  color: var(--c-text, #222);
}
.ds-proof-row__stat span { color: var(--c-text-secondary, #555); font-size: 0.95rem; }

.ds-meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0;
  align-items: center;
  border-block: 1px solid color-mix(in srgb, currentColor 25%, transparent);
  padding: 0.65rem 0;
  font-size: 0.9rem;
  color: var(--c-text-secondary, #555);
}
.section--dark .ds-meta-strip,
.ds-section--dark .ds-meta-strip {
  color: rgba(255, 247, 251, 0.75);
}
.ds-meta-strip span { display: inline-flex; align-items: center; }
.ds-meta-strip span + span::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  margin: 0 0.6rem;
}

.ds-backlink {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--c-pink-text, #c00078);
  border-bottom: 2px solid color-mix(in srgb, var(--c-pink, #ff40b4) 45%, transparent);
  padding-bottom: 0.1rem;
}
.ds-backlink:hover { border-bottom-color: var(--c-pink, #ff40b4); }

.ds-download-card {
  display: grid;
  gap: 0.5rem;
  align-content: start;
  border: 1px solid color-mix(in srgb, var(--c-text, #222) 13%, transparent);
  border-radius: 0.9rem;
  background: var(--c-surface, #fff);
  padding: clamp(1.1rem, 2.2vw, 1.5rem);
  text-decoration: none;
  color: inherit;
}
.ds-download-card .ds-badge { justify-self: start; }
.ds-download-card h3 { margin: 0; font-size: clamp(1.2rem, 1.05rem + 0.4vw, 1.5rem); line-height: 1.1; }
.ds-download-card p { margin: 0; color: var(--c-text-secondary, #555); font-size: 0.95rem; }
.ds-download-card:hover { border-color: var(--c-pink, #ff40b4); }

.ds-qty {
  display: inline-grid;
  grid-template-columns: 2.6rem 4.5rem 2.6rem;
  border: 1px solid color-mix(in srgb, var(--c-text, #222) 22%, transparent);
  border-radius: 0.7rem;
  overflow: hidden;
  width: fit-content;
}
.ds-qty button {
  border: 0;
  background: var(--c-bg-alt, #f4f4f4);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  color: inherit;
}
.ds-qty button:hover { background: color-mix(in srgb, var(--c-pink, #ff40b4) 10%, transparent); }
.ds-qty input {
  border: 0;
  border-inline: 1px solid color-mix(in srgb, var(--c-text, #222) 13%, transparent);
  text-align: center;
  font: inherit;
  font-weight: 700;
  padding: 0.5rem 0.25rem;
  background: var(--c-surface, #fff);
  color: inherit;
  appearance: textfield;
  -moz-appearance: textfield;
}
.ds-qty input::-webkit-outer-spin-button,
.ds-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.ds-author-card,
.ds-partner-card {
  display: grid;
  gap: 1rem;
  border: 1px solid color-mix(in srgb, var(--c-text, #222) 13%, transparent);
  border-radius: 0.9rem;
  background: var(--c-surface, #fff);
  padding: clamp(1.1rem, 2.2vw, 1.5rem);
  text-decoration: none;
  color: inherit;
}
.ds-author-card { grid-template-columns: 5.5rem minmax(0, 1fr); align-items: start; }
.ds-author-card img {
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid color-mix(in srgb, var(--c-text, #222) 22%, transparent);
}
.ds-author-card span,
.ds-partner-card span {
  display: block;
  color: var(--c-pink-text, #c00078);
  font-family: var(--font-display, "Barlow Semi Condensed", sans-serif);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}
.ds-author-card h3,
.ds-partner-card h3 { margin: 0 0 0.35rem; font-size: clamp(1.2rem, 1.05rem + 0.4vw, 1.5rem); line-height: 1.1; }
.ds-author-card p,
.ds-partner-card p { margin: 0; color: var(--c-text-secondary, #555); font-size: 0.95rem; }
.ds-author-card:hover,
.ds-partner-card:hover { border-color: var(--c-pink, #ff40b4); }

@media (max-width: 980px) {
  .ds-proof-row { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .ds-author-card { grid-template-columns: 4.25rem minmax(0, 1fr); }
  .ds-author-card img { width: 4.25rem; height: 4.25rem; }
}

/* Legacy aliases still used by /ressourcen/* content. They render as the
   canonical pill buttons until the markup rollout replaces them. */
.ds-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.95em 2.2em;
  border: 2px solid var(--c-pink, #FF40B4);
  border-radius: 9999px;
  background: var(--c-pink, #FF40B4);
  color: var(--c-pink-on-fill, #111014);
  font-family: var(--font-display, "Barlow Semi Condensed", sans-serif);
  font-size: var(--text-sm, 0.9rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.ds-button:hover,
.ds-button:focus-visible {
  background: var(--c-pink-dark, #D4308F);
  border-color: var(--c-pink-dark, #D4308F);
  color: var(--c-white, #fff);
}
.ds-button--ghost {
  background: transparent;
  color: var(--c-pink-text, #C00078);
}
.ds-button--ghost:hover,
.ds-button--ghost:focus-visible {
  background: var(--c-pink, #FF40B4);
  border-color: var(--c-pink, #FF40B4);
  color: var(--c-pink-on-fill, #111014);
}
:where(.section--dark, .ds-section--dark) .ds-button--ghost {
  color: var(--c-white, #fff);
  border-color: rgba(255, 255, 255, 0.5);
}
:where(.section--dark, .ds-section--dark) .ds-button--ghost:hover,
:where(.section--dark, .ds-section--dark) .ds-button--ghost:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--c-white, #fff);
  color: var(--c-white, #fff);
}

/* ── Prose column: canonical form for markdown-rendered article bodies ──
   Target for the subpage rollout: blog, presse, fakten prose replaces
   .sfl-article__content ad-hoc styling with this primitive. */
.ds-prose {
  max-width: 44rem;
  color: var(--c-text, #1a1a1a);
  font-size: clamp(1.02rem, 0.96rem + 0.3vw, 1.2rem);
  line-height: 1.7;
}
.ds-prose > * + * { margin-top: 1.1em; }
.ds-prose h2,
.ds-prose h3 {
  margin: 1.6em 0 0.5em;
  line-height: 1.12;
  letter-spacing: -0.02em;
}
.ds-prose > h2:first-child,
.ds-prose > h3:first-child { margin-top: 0; }
.ds-prose h2 { font-size: clamp(1.6rem, 1.35rem + 0.8vw, 2.2rem); }
.ds-prose h3 { font-size: clamp(1.3rem, 1.15rem + 0.5vw, 1.65rem); }
.ds-prose p { margin: 0; }
.ds-prose p + p { margin-top: 1.1em; }
.ds-prose a {
  color: var(--c-pink-text, #C00078);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}
:where(.section--dark, .ds-section--dark) .ds-prose a { color: var(--c-pink, #FF40B4); }
.ds-prose blockquote {
  margin: 1.4em 0;
  padding: 0.35em 0 0.35em 1.1em;
  border-left: 3px solid var(--c-pink, #FF40B4);
  color: var(--c-text, #1a1a1a);
  font-size: 1.06em;
  line-height: 1.55;
}
.ds-prose blockquote p { margin: 0; }
.ds-prose blockquote p + p { margin-top: 0.8em; }
.ds-prose ul,
.ds-prose ol {
  margin: 1.1em 0 0;
  padding-left: 1.4em;
  display: grid;
  gap: 0.45em;
}
/* theme.css resets list-style globally — restore real markers in prose */
.ds-prose ul { list-style: disc; }
.ds-prose ol { list-style: decimal; }
.ds-prose li { display: list-item; }
.ds-prose li::marker { color: var(--c-pink-text, #C00078); font-weight: 600; }
:where(.section--dark, .ds-section--dark) .ds-prose li::marker { color: var(--c-pink, #FF40B4); }
.ds-prose sup { line-height: 0; }
.ds-prose sup a { text-decoration: none; font-weight: 700; }
.ds-prose img { border-radius: 0.9rem; }
.ds-prose hr {
  margin: 1.8em 0;
  border: 0;
  border-top: 1px solid color-mix(in srgb, var(--c-text, #222) 13%, transparent);
}

/* ── Search input: catalog toolbar and blog search share one control ── */
.ds-search {
  display: inline-grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  min-width: min(100%, 16rem);
  border: 1px solid color-mix(in srgb, var(--c-text, #222) 22%, transparent);
  border-radius: 999px;
  background: var(--c-surface, #fff);
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.ds-search:focus-within {
  border-color: var(--c-pink, #FF40B4);
  box-shadow: 0 0 0 0.18rem color-mix(in srgb, var(--c-pink, #FF40B4) 15%, transparent);
}
.ds-search input {
  min-height: 2.35rem;
  padding: 0.35rem 0.4rem 0.35rem 1rem;
  border: 0;
  background: transparent;
  color: var(--c-text, #1a1a1a);
  font: inherit;
  font-size: 0.95rem;
}
.ds-search input:focus { outline: 0; }
.ds-search input::-webkit-search-decoration { -webkit-appearance: none; }
.ds-search button {
  display: grid;
  place-items: center;
  width: 2.6rem;
  border: 0;
  background: transparent;
  color: var(--c-pink-text, #C00078);
  cursor: pointer;
}
.ds-search button:hover { background: color-mix(in srgb, var(--c-pink, #FF40B4) 12%, transparent); }
.ds-search button svg { width: 1.05rem; height: 1.05rem; }
:where(.section--dark, .ds-section--dark) .ds-search button { color: var(--c-pink, #FF40B4); }

/* FAQ accordion used standalone (outside the DS utility grid): keep a readable
   measure instead of stretching summaries across the full container. */
.ds-page .ds-faq-demo { max-width: 64rem; }

/* Legacy heading classes inside DS dark sections follow the section ink. */
.ds-section--dark :is(.section__title, .section__text) {
  color: inherit;
}
.ds-section--dark .section__text {
  color: rgba(255, 247, 251, 0.72);
}

/* Evidence rows keep their own light/dark surface even inside pink sections,
   so their accent terms must follow the theme token, not the pink-section ink. */
.ds-section--pink .ds-evidence-row dt {
  color: var(--c-pink-text, #C00078) !important;
}
.ds-section--pink .ds-evidence-row dd {
  color: var(--c-text-secondary, #555) !important;
}
.ds-section--pink .ds-evidence-row :is(h2, h3),
.ds-section--pink .ds-evidence-row > span {
  color: var(--c-text, #222) !important;
}

/* Four equal action cards (werde-aktiv steps): balanced 2×2 instead of the
   asymmetric 3-column demo grid. */
.ds-card-grid--steps { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
@media (max-width: 760px) {
  .ds-card-grid--steps { grid-template-columns: 1fr !important; }
}

/* Answer list: party/actor answers inside a floating window (Wahlprüfsteine).
   Same visual family as .ds-evidence-row dl, wider term column. */
.ds-answer-list {
  display: grid;
  margin: 1.1rem 0 0;
  border-top: 1px solid color-mix(in srgb, currentColor 18%, transparent);
}
.ds-answer-list div {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid color-mix(in srgb, currentColor 18%, transparent);
}
.ds-answer-list dt {
  color: var(--c-pink-text, #C00078);
  font-family: var(--font-display, "Barlow Semi Condensed", sans-serif);
  font-weight: 600;
  line-height: 1.25;
}
:where(.section--dark, .ds-section--dark) .ds-answer-list dt { color: var(--c-pink, #FF40B4); }
.ds-answer-list dd {
  margin: 0;
  color: var(--c-text-secondary, #555);
  line-height: 1.5;
}
.ds-answer-list dd strong { color: var(--c-text, #222); }
@media (max-width: 680px) {
  .ds-answer-list div { grid-template-columns: 1fr; gap: 0.2rem; }
}
