/* Richtig Entsorgt — design system */

:root {
  /* Colors — Paper theme (default): white/cream editorial look, leaf-green accent */
  --bg: #ffffff;
  --bg-elev: #fafaf7;       /* light cream for cards, inputs */
  --bg-sunken: #f1f1ec;     /* light gray for stats strip / footer */
  --ink: #14181a;           /* near-black with subtle green undertone */
  --ink-soft: #2c3236;
  --ink-mute: #5a6166;
  --ink-faint: #9aa1a5;
  --rule: #e3e5e0;          /* hairline borders */
  --rule-strong: #c5c8c1;   /* hover / divider borders */
  --primary: #14361d;       /* dark forest green for primary CTA */
  --primary-ink: #ffffff;
  --accent: #2f8a1f;        /* leaf green for accent / focus / underline */
  --accent-ink: #ffffff;
  --danger: #8a3a28;
  --success: #2f6a35;

  /* Type */
  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-sans: "Inter Tight", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Scale / density */
  --space-unit: 8px;
  --radius: 2px;
  --radius-lg: 4px;
  --max-w: 1280px;
  --gutter: 32px;

  /* Density */
  --row-pad-y: 14px;
  --row-pad-x: 18px;
  --card-pad: 28px;
  --section-pad-y: 96px;
}

/* Dark theme */
[data-theme="dark"] {
  --bg: #0d1612;
  --bg-elev: #141f18;
  --bg-sunken: #0a110d;
  --ink: #e2ecd8;
  --ink-soft: #c2d0b4;
  --ink-mute: #859585;
  --ink-faint: #566054;
  --rule: #263023;
  --rule-strong: #384535;
  --primary: #b8d48a;
  --primary-ink: #0d1612;
  --accent: #9ac055;
  --accent-ink: #0e1a0a;
}

/* High-contrast theme */
[data-theme="contrast"] {
  --bg: #ffffff;
  --bg-elev: #ffffff;
  --bg-sunken: #f0f0f0;
  --ink: #000000;
  --ink-soft: #000000;
  --ink-mute: #2a2a2a;
  --ink-faint: #555555;
  --rule: #000000;
  --rule-strong: #000000;
  --primary: #000000;
  --primary-ink: #ffffff;
  --accent: #b85000;
  --accent-ink: #ffffff;
}

/* Density: compact */
[data-density="compact"] {
  --row-pad-y: 10px;
  --row-pad-x: 14px;
  --card-pad: 20px;
  --section-pad-y: 64px;
  --gutter: 24px;
}

/* Accent variations (set via data attr) */
[data-accent="leaf"] { --accent: #2f8a1f; --accent-ink: #f0f7d8; }
[data-accent="moss"] { --accent: #1f5c14; --accent-ink: #eef3e2; }
[data-accent="amber"] { --accent: #c8862a; --accent-ink: #1a1205; }
[data-accent="clay"] { --accent: #a84a2a; --accent-ink: #eef0e6; }

/* Type pairings */
[data-type="serif-sans"] {
  --font-display: "Newsreader", Georgia, serif;
  --font-sans: "Inter Tight", system-ui, sans-serif;
}
[data-type="all-sans"] {
  --font-display: "Inter Tight", system-ui, sans-serif;
  --font-sans: "Inter Tight", system-ui, sans-serif;
}
[data-type="grotesk"] {
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-sans: "Space Grotesk", system-ui, sans-serif;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Skip link — first stop for keyboard users */
.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  background: var(--ink);
  color: var(--bg);
  padding: 14px 20px;
  font-weight: 600;
  z-index: 1000;
  transform: translateY(-150%);
  transition: transform 120ms ease;
  text-decoration: underline;
}
.skip-link:focus { transform: translateY(0); outline: 3px solid var(--accent); outline-offset: 2px; }

/* Container */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.container--wide { max-width: 1440px; }
.container--narrow { max-width: 880px; }

/* Typography */
.display-xl {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(44px, 6vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
}
.display-lg {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0;
}
.display-md {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(26px, 2.6vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
}
.h-sm {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
  margin: 0;
}
.lead {
  font-family: var(--font-sans);
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.45;
  color: var(--ink-soft);
  margin: 0;
}
.body { font-size: 16px; line-height: 1.55; color: var(--ink-soft); }
.small { font-size: 14px; color: var(--ink-soft); }
.mono {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.mono-lg { font-family: var(--font-mono); font-size: 14px; letter-spacing: 0.02em; }

a { color: inherit; text-decoration: none; }
a.link { border-bottom: 1px solid currentColor; }
a.link:hover { color: var(--ink); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  min-height: 44px;
  padding: 14px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 120ms ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn--primary { background: var(--primary); color: var(--primary-ink); }
.btn--primary:hover { background: var(--ink); }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { filter: brightness(0.94); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--rule-strong); }
.btn--ghost:hover { background: var(--bg-sunken); }
.btn--sm { padding: 10px 14px; font-size: 14px; min-height: 40px; }
.btn--lg { padding: 18px 28px; font-size: 16px; }

/* Cards */
.card {
  background: var(--bg-elev);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: var(--card-pad);
}

/* Rule lines */
.rule { border-top: 1px solid var(--rule); height: 1px; }
.rule-strong { border-top: 1px solid var(--rule-strong); }

/* Nav */
.nav {
  border-bottom: 1px solid var(--rule);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: saturate(1.2) blur(8px);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.nav__mark {
  width: 26px; height: 26px;
  border-radius: 0 100% 0 100%;
  background: var(--accent);
  position: relative;
  flex-shrink: 0;
  transform: rotate(-20deg);
}
.nav__mark::after {
  content: "";
  position: absolute;
  top: 50%; left: 15%; right: 15%;
  height: 1.5px;
  background: var(--bg);
  transform-origin: left;
  transform: rotate(-35deg);
}
.nav__links {
  display: flex;
  gap: 8px;
  font-size: 15px;
  color: var(--ink-soft);
}
.nav__links a {
  cursor: pointer;
  padding: 10px 14px;
  border-radius: var(--radius);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-weight: 500;
  text-decoration: none;
}
.nav__links a:hover { color: var(--ink); background: var(--bg-sunken); }
.nav__links a[aria-current="page"] {
  color: var(--ink);
  background: var(--bg-sunken);
  box-shadow: inset 0 -3px 0 var(--accent);
}

.nav__menu-btn { display: none; }
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__menu-btn {
    display: inline-flex; align-items: center; gap: 8px;
    background: transparent; border: 1px solid var(--rule-strong);
    padding: 10px 14px; min-height: 44px; cursor: pointer;
    border-radius: var(--radius); color: var(--ink); font-weight: 500;
  }
  .nav__menu-btn:hover { background: var(--bg-sunken); }
}

/* Mobile drawer */
.nav-drawer {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.4);
  display: none;
}
.nav-drawer.is-open { display: block; }
.nav-drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(360px, 90vw);
  background: var(--bg);
  padding: 20px 24px;
  overflow-y: auto;
}
.nav-drawer__head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 24px;
}
.nav-drawer__close {
  background: transparent; border: 1px solid var(--rule);
  width: 44px; height: 44px; cursor: pointer; font-size: 20px;
  border-radius: var(--radius);
}
.nav-drawer__list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 4px;
}
.nav-drawer__list a {
  display: block; padding: 14px 16px;
  font-size: 18px; font-weight: 500;
  border-radius: var(--radius);
  text-decoration: none;
}
.nav-drawer__list a:hover { background: var(--bg-sunken); }
.nav-drawer__list a[aria-current="page"] {
  background: var(--bg-sunken);
  box-shadow: inset 4px 0 0 var(--accent);
}
.nav__right { display: flex; align-items: center; gap: 14px; }
.nav__lang {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-mute);
  border: 1px solid var(--rule);
  padding: 5px 9px;
  border-radius: 2px;
  cursor: pointer;
}
.nav__lang:hover { border-color: var(--rule-strong); color: var(--ink); }



/* Eyebrow */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--ink-mute);
}

/* Footer */









/* Utilities */
.stack-2 > * + * { margin-top: 8px; }
.stack-3 > * + * { margin-top: 16px; }
.stack-4 > * + * { margin-top: 24px; }
.stack-5 > * + * { margin-top: 40px; }
.stack-6 > * + * { margin-top: 64px; }

.flex { display: flex; }
.flex--between { justify-content: space-between; }
.flex--center { align-items: center; }
.gap-2 { gap: 8px; } .gap-3 { gap: 16px; } .gap-4 { gap: 24px; }

.placeholder {
  background-image: repeating-linear-gradient(
    45deg,
    var(--bg-sunken),
    var(--bg-sunken) 8px,
    var(--bg) 8px,
    var(--bg) 16px
  );
  border: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-mute);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Search fields */
.search-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 0;
  border: 1px solid var(--ink);
  background: var(--bg-elev);
  border-radius: var(--radius);
  overflow: hidden;
}
.search-field {
  display: flex;
  flex-direction: column;
  padding: 14px 20px;
  position: relative;
  min-width: 0;
}
.search-field + .search-field { border-left: 1px solid var(--rule); }
.search-field__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 4px;
}
.search-field input {
  border: none;
  background: transparent;
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--ink);
  outline: none;
  width: 100%;
  padding: 0;
  font-weight: 400;
  min-height: 36px;
}
.search-field input::placeholder { color: var(--ink-faint); }
.search-field:focus-within {
  background: var(--bg-elev);
  box-shadow: inset 0 0 0 2px var(--accent);
}
.search-row__submit {
  background: var(--primary);
  color: var(--primary-ink);
  border: none;
  padding: 0 32px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 15px;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: background 120ms ease;
}
.search-row__submit:hover { background: var(--ink); }

@media (max-width: 720px) {
  .search-row { grid-template-columns: 1fr; }
  .search-field + .search-field { border-left: none; border-top: 1px solid var(--rule); }
  .search-row__submit { padding: 16px; }
}

/* Badges / Chips */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  min-height: 36px;
  border: 1px solid var(--rule-strong);
  border-radius: 99px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  background: var(--bg-elev);
  cursor: pointer;
  transition: all 120ms ease;
  font-family: inherit;
}
.chip:hover { border-color: var(--rule-strong); color: var(--ink); }
.chip.is-active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip__dot {
  width: 8px; height: 8px; border-radius: 50%;
  display: inline-block;
  border: 1px solid rgba(0,0,0,0.1);
}

/* Tweaks panel */
.tweaks {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 320px;
  max-height: calc(100vh - 40px);
  background: var(--bg-elev);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 0 20px 40px -16px rgba(0,0,0,0.25);
  z-index: 1000;
  display: none;
  flex-direction: column;
  font-family: var(--font-sans);
  overflow: hidden;
}
.tweaks.is-open { display: flex; }
.tweaks__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--rule);
  background: var(--bg);
}
.tweaks__title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
}
.tweaks__close {
  background: none; border: none; cursor: pointer;
  color: var(--ink-mute); font-size: 18px; line-height: 1;
}
.tweaks__body {
  padding: 18px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.tweak__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 8px;
}
.tweak__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
  gap: 6px;
}
.tweak__opt {
  padding: 8px 10px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--bg);
  cursor: pointer;
  font-size: 12px;
  text-align: center;
  color: var(--ink-soft);
  transition: all 120ms ease;
}
.tweak__opt:hover { border-color: var(--rule-strong); }
.tweak__opt.is-active {
  background: var(--ink); color: var(--bg); border-color: var(--ink);
}
.tweak__swatches { display: flex; gap: 8px; }
.tweak__swatch {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2px solid var(--rule);
  cursor: pointer;
  padding: 0;
}
.tweak__swatch.is-active { border-color: var(--ink); box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--ink); }

/* Focus styles — strong, visible everywhere */
:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}
.nav__links a:focus-visible,
.footer a:focus-visible {
  outline-offset: 4px;
}

/* Screen-reader-only utility */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ─────────────────────────────────────────────────────────────────────────
   AUF EINEN BLICK band — top-of-page summary on /objekt/* pages
   3 columns: Recovery%, Wertstoffe-Chips, Vergütung (dark)
   ───────────────────────────────────────────────────────────────────────── */
.at-a-glance {
  border: 1px solid var(--rule);
  background: var(--bg);
  margin: 0 0 56px;
}
.at-a-glance__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px;
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.at-a-glance__cols {
  display: grid;
  /* minmax(0, 1fr) erzwingt wirklich gleiche Spaltenbreiten —
     ohne minmax(0,...) blasen lange Wörter wie "VERGÜTUNGSMÖGLICHKEITEN" die Spalte auf. */
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}
.at-a-glance__col {
  padding: 24px 28px;
}
.at-a-glance__col + .at-a-glance__col {
  border-left: 1px solid var(--rule);
}
.at-a-glance__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 14px;
}
.at-a-glance__number {
  font-family: var(--font-display);
  font-size: 96px;
  line-height: 1;
  margin: 0 0 16px;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.at-a-glance__number-unit {
  font-size: inherit;
  color: var(--ink-mute);
  margin-left: 2px;
}
.at-a-glance__bar {
  height: 6px;
  background: var(--rule);
  overflow: hidden;
  margin: 0 0 12px;
  border-radius: 3px;
}
.at-a-glance__bar-fill {
  height: 100%;
  background: var(--accent);
  transition: width 600ms ease;
}
.at-a-glance__sub {
  font-size: 13px;
  color: var(--ink-mute);
  margin: 0;
  line-height: 1.4;
}
.at-a-glance__sub-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-right: 4px;
}
.at-a-glance__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 14px;
}
.at-a-glance__chip {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  font-size: 13px;
  background: var(--bg);
  color: var(--ink);
  white-space: nowrap;
  text-decoration: none;
}
.at-a-glance__chip--linked {
  cursor: pointer;
  transition: background 120ms, border-color 120ms, color 120ms;
}
.at-a-glance__chip--linked:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

/* Filled-Variante — verwendet für Wertstoffe-Spalte (ehem. dark fürs Vergütung).
   Subtler bg-sunken, dunkler Text — wie die Stats-Strip-Optik. */
.at-a-glance__col--filled {
  background: var(--bg-sunken);
  color: var(--ink);
}
.at-a-glance__col--filled .at-a-glance__label {
  color: var(--ink-mute);
}
/* Legacy --dark alias bleibt erhalten falls noch irgendwo referenziert */
.at-a-glance__col--dark {
  background: var(--bg-sunken);
  color: var(--ink);
}
.at-a-glance__col--dark .at-a-glance__label {
  color: var(--ink-mute);
}
.at-a-glance__headline {
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 1.15;
  margin: 0 0 16px;
  font-weight: 400;
  color: var(--ink);
}
.at-a-glance__bullets {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  font-size: 14px;
  line-height: 1.55;
}
.at-a-glance__bullets li {
  position: relative;
  padding-left: 16px;
  margin: 4px 0;
  color: var(--ink-soft);
}
.at-a-glance__bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.at-a-glance__footnote {
  font-size: 12px;
  color: var(--ink-mute);
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
  line-height: 1.4;
}

/* Schmale Footer-Zeile unter den 4 Spalten mit "Relevante Gesetze" */
.at-a-glance__legal-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 10px 24px;
  border-top: 1px solid var(--rule);
  font-size: 12px;
  line-height: 1.4;
  background: var(--bg);
}
.at-a-glance__legal-row-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  white-space: nowrap;
  flex-shrink: 0;
}
.at-a-glance__legal-row-list {
  color: var(--ink-soft);
}
.at-a-glance__legal-row-list a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--rule-strong);
  text-underline-offset: 2px;
}
.at-a-glance__legal-row-list a:hover {
  text-decoration-color: var(--accent);
}
.at-a-glance__legal-row-more {
  margin-left: auto;
  font-size: 12px;
  color: var(--ink-mute);
}
.at-a-glance__legal-row-more a {
  color: var(--ink-mute);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 120ms, border-color 120ms;
}
.at-a-glance__legal-row-more a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Verbose bullet variant — used in dark Vergütung column for descriptive lines */
.at-a-glance__bullets--verbose {
  font-size: 13px;
  line-height: 1.55;
}
.at-a-glance__bullets--verbose li {
  padding-left: 18px;
  margin: 8px 0;
}
.at-a-glance__bullets--verbose li::before {
  top: 7px;
  width: 5px;
  height: 5px;
}

@media (max-width: 768px) {
  .at-a-glance__cols { grid-template-columns: 1fr; }
  .at-a-glance__col + .at-a-glance__col {
    border-left: 0;
    border-top: 1px solid var(--rule);
  }
  .at-a-glance__col--dark + .at-a-glance__col,
  .at-a-glance__col + .at-a-glance__col--dark {
    border-top-color: var(--ink);
  }
  .at-a-glance__number { font-size: 48px; }
  .at-a-glance__headline { font-size: 26px; }
}

/* ─────────────────────────────────────────────────────────────────────────
   Hero Card-Layout — Frontpage 2-Spalten search hero
   ───────────────────────────────────────────────────────────────────────── */
.hero-cards-grid {
  display: grid;
  grid-template-columns: 1fr 56px 1fr;
  gap: 0;
  max-width: 1080px;
}
.hero-card {
  background: var(--bg);
  border: 1px solid var(--rule);
  padding: 28px 28px 24px;
  display: flex;
  flex-direction: column;
}
.hero-card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}
.hero-card__num {
  font-family: var(--font-display);
  font-size: 44px;
  line-height: 1;
  color: var(--accent);
  font-weight: 400;
  letter-spacing: -0.02em;
}
.hero-card__title {
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1.15;
  margin: 0 0 12px;
  font-weight: 400;
  color: var(--ink);
}
.hero-card__desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 22px;
  max-width: 380px;
}
.hero-card__form {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 18px;
  margin-top: auto;
}
.hero-card__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  padding: 8px 12px 0;
  border: 1px solid var(--rule-strong);
  border-bottom: 0;
}
.hero-card__form input {
  border: 1px solid var(--rule-strong);
  border-top: 0;
  padding: 8px 12px 12px;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--bg);
  outline: none;
  margin-bottom: 14px;
}
.hero-card__form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.hero-card__cta {
  background: var(--ink);
  color: #fff;
  border: 0;
  padding: 14px 18px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 120ms;
}
.hero-card__cta:hover {
  background: var(--primary);
}
.hero-card__cta svg {
  flex-shrink: 0;
}
.hero-card__chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}
.hero-card__chips .mono {
  margin-right: 4px;
}

.hero-cards-divider {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-cards-divider::before {
  content: '';
  position: absolute;
  top: 16px;
  bottom: 16px;
  left: 50%;
  width: 1px;
  background: var(--rule);
}
.hero-cards-divider__or {
  position: relative;
  background: var(--bg);
  padding: 6px 0;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--ink-mute);
  z-index: 1;
}

@media (max-width: 768px) {
  .hero-cards-grid {
    grid-template-columns: 1fr;
  }
  .hero-cards-divider {
    height: 56px;
  }
  .hero-cards-divider::before {
    top: 50%;
    bottom: auto;
    left: 16px;
    right: 16px;
    width: auto;
    height: 1px;
  }
  .hero-card__num {
    font-size: 36px;
  }
  .hero-card__title {
    font-size: 26px;
  }
}

/* ─────────────────────────────────────────────────────────────────────────
   Article-Glossary — Inline-Box für Begriffsdefinitionen im Long-form Article
   ───────────────────────────────────────────────────────────────────────── */
.article-glossary {
  background: var(--bg-elev);
  border-left: 3px solid var(--accent);
  padding: 14px 20px;
  margin: 16px 0 32px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 720px;
}
.article-glossary p { margin: 0; }
.article-glossary strong { color: var(--ink); }
.article-glossary a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}
.article-glossary a:hover { color: var(--accent); }

/* ─────────────────────────────────────────────────────────────────────────
   Editor-Shortcut — kleines "Inhalt bearbeiten"-Pill für eingeloggte User
   ───────────────────────────────────────────────────────────────────────── */
.node__edit-shortcut {
  display: inline-block;
  margin-bottom: 16px;
  padding: 6px 12px;
  background: var(--bg-sunken);
  border: 1px solid var(--rule-strong);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--ink-mute);
  text-decoration: none;
  transition: background 120ms, color 120ms;
}
.node__edit-shortcut:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

/* ─────────────────────────────────────────────────────────────────────────
   Article on-page TOC — used in long-form Ratgeber-Artikeln
   ───────────────────────────────────────────────────────────────────────── */
.article-toc {
  background: var(--bg-sunken);
  border: 1px solid var(--rule);
  padding: 24px 28px 20px;
  margin: 32px 0 48px;
  max-width: 760px;
}
.article-toc > p {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-mute);
  margin: 0 0 14px;
}
.article-toc ol {
  margin: 0;
  padding-left: 24px;
  columns: 2;
  column-gap: 28px;
  font-size: 14px;
  line-height: 1.7;
}
.article-toc ol li {
  break-inside: avoid;
  padding: 2px 0;
}
.article-toc ol a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 120ms;
}
.article-toc ol a:hover {
  border-bottom-color: var(--accent);
}
@media (max-width: 720px) {
  .article-toc ol { columns: 1; }
}
/* Smooth scroll for anchor links + offset for sticky nav */
html { scroll-behavior: smooth; }
.node__content h2[id] { scroll-margin-top: 80px; }

/* ─────────────────────────────────────────────────────────────────────────
   AI-Disclaimer — Transparenzhinweis nach Art. 50 EU AI Act
   ───────────────────────────────────────────────────────────────────────── */
.ai-disclaimer {
  margin: 96px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.02em;
  color: var(--ink-faint);
  line-height: 1.6;
  opacity: 0.7;
}
.ai-disclaimer em {
  font-style: normal;
}




/* ==========================================================================
   Footer — refined single-block layout with prominent brand + larger bottom row
   ========================================================================== */

.footer {
  background: var(--bg-sunken);
  border-top: 1px solid var(--rule);
  padding: 96px 0 44px;
  margin-top: 120px;
  position: relative;
  font-size: 15px;
  color: var(--ink-soft);
}

.footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent) 18%, transparent 18%);
}

.footer__brand-block {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 100%;
}

.footer__brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.footer__brand-mark .nav__mark {
  display: inline-block;
  width: 44px !important;
  height: 44px !important;
  flex-shrink: 0;
}

.footer__brand-name {
  font-family: "Newsreader", Georgia, serif;
  font-size: 32px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.01em;
}

.footer__brand-text {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 720px;
  margin: 0;
}

.footer__service-by {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  text-decoration: none;
  color: var(--ink-soft);
  margin-top: 4px;
  padding: 16px 24px 16px 20px;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 999px;
  width: fit-content;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.footer__service-by:hover {
  border-color: var(--rule-strong);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px -10px rgba(26, 23, 21, 0.15);
}

.footer__service-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.footer__service-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.footer__service-brand img {
  display: block;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
}

.footer__service-name {
  font-family: "Newsreader", Georgia, serif;
  font-size: 30px;
  font-weight: 500;
  color: #1a1715;
  line-height: 1;
}

.footer__service-uml {
  color: #cd4040;
}

.footer__bottom {
  margin-top: 96px;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  gap: 16px 36px;
  justify-content: space-between;
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.6;
}

.footer__bottom a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}

.footer__bottom a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 720px) {
  .footer { padding: 64px 0 32px; margin-top: 80px; }
  .footer__brand-name { font-size: 26px; }
  .footer__service-name { font-size: 24px; }
  .footer__service-brand img { width: 36px; height: 36px; }
  .footer__brand-mark .nav__mark { width: 36px !important; height: 36px !important; }
  .footer__bottom { font-size: 14px; }
}

/* Footer logo as image (Drupal CSS optimizer strips descendant rules in aggregation) */
.footer__logo-link { display: inline-block; line-height: 0; text-decoration: none; }
.footer__logo-img { display: block; height: 54px; width: auto; max-width: 240px; }
@media (max-width: 720px) { .footer__logo-img { height: 44px; } }

/* Footer bottom row: bigger font (no descendant selector — Drupal aggregator strips them) */
.footer__bottom { font-size: 17px !important; line-height: 1.6; }
.footer__bottom span { font-size: 17px; }
.footer__bottom a { font-size: 17px; font-weight: 500; }
@media (max-width: 720px) { .footer__bottom, .footer__bottom span, .footer__bottom a { font-size: 15px !important; } }

/* Footer logo: bigger + blend white BG into footer color */
.footer__logo-img {
  height: 96px !important;
  width: auto !important;
  max-width: 320px !important;
  mix-blend-mode: multiply;
  display: block;
}
@media (max-width: 720px) {
  .footer__logo-img { height: 64px !important; }
}

/* footer brand-text: +3 sizes (17 → 23px) */
.footer__brand-text { font-size: 23px !important; line-height: 1.55; max-width: 760px; }
@media (max-width: 720px) { .footer__brand-text { font-size: 19px !important; } }

/* Footer compact horizontal layout: text left, service-pill right, baseline-aligned */
.footer__brand-block {
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 32px !important;
  flex-wrap: wrap;
}
.footer__brand-text { margin: 0; flex: 1 1 auto; }
.footer__service-by { margin-top: 0 !important; flex-shrink: 0; }
.footer { padding: 56px 0 32px !important; margin-top: 80px !important; }
.footer__bottom { margin-top: 48px !important; padding-top: 24px !important; }
@media (max-width: 720px) {
  .footer__brand-block { flex-direction: column !important; align-items: flex-start !important; }
  .footer { padding: 40px 0 24px !important; margin-top: 56px !important; }
}
