/* ══════════════════════════════════════════════════════════════
   Webweezl blog — reading pages (posts + listing)
   Follows DESIGN.md ("The Pipeline of Stations" system):
   white ground, slate ink, one teal accent, hairline-divided
   lists instead of boxes, tint (teal-50 + mint edge) only where
   Webweezl itself speaks (CTA forms), shadows only on artefacts.
   Fonts: Plus Jakarta Sans (headings, names) + DM Sans (reading).
   No coloured side stripes, no icon-card grids, no uppercase kickers.
   ══════════════════════════════════════════════════════════════ */

:root {
  --b-ink: #0f172a;
  --b-ink-2: #334155;
  --b-ink-3: #475569;
  --b-ink-4: #64748b;
  --b-line: #e2e8f0;
  --b-line-strong: #cbd5e1;
  --b-line-hover: #94a3b8;
  --b-ground: #ffffff;
  --b-ground-2: #f8fafc;
  --b-bubble: #f1f5f9;
  --b-teal: #0d9488;
  --b-teal-dark: #0f766e;
  --b-teal-deep: #115e59;
  --b-teal-light: #ccfbf1;
  --b-teal-50: #f0fdfa;
  --b-teal-edge: #99f6e4;
  --b-teal-glow: #5eead4;
  --b-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --max-content: 888px; /* = 1232px page - 280px sidebar - 64px gap; Kurzfassung + meta line up with the text */
  --max-page: 1280px;

  /* Legacy names kept as aliases so older markup (and inline styles a
     generator may still emit) stays inside the one-accent palette. */
  --wz-ink: var(--b-ink);
  --wz-ink-700: var(--b-ink-2);
  --wz-ink-500: var(--b-ink-3);
  --wz-ink-300: var(--b-ink-4);
  --wz-ink-200: var(--b-line-strong);
  --wz-ink-100: var(--b-line);
  --wz-ink-50: var(--b-ground-2);
  --wz-purple: var(--b-teal-dark);
  --wz-purple-dark: var(--b-teal-deep);
  --wz-purple-50: var(--b-teal-50);
  --wz-purple-100: var(--b-teal-light);
  --wz-teal: var(--b-ink-3);
  --wz-amber: var(--b-ink-3);
  --wz-blue: var(--b-ink-3);
  --wz-rose: var(--b-ink-3);
  --wz-red: var(--b-ink-3);
  --wz-white: #ffffff;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: var(--font-body);
  color: var(--b-ink-2);
  background: var(--b-ground);
  caret-color: var(--b-teal-dark);
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  line-height: 1.7;
}
::selection { background: var(--b-teal-light); color: var(--b-ink); }
:where(.post-hero, .tldr-box, .article-layout, .related-section, .blog-head, .blog-main, .hub) :focus-visible {
  outline: 2px solid var(--b-teal-dark);
  outline-offset: 3px;
  border-radius: 6px;
}
.b-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.b-ico { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* ─── Reading progress ─── */
#progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: var(--b-teal);
  z-index: 1001;
}


/* ══════════════════════════════════════════════
   POST
   ══════════════════════════════════════════════ */

/* ─── Header ─── */
.post-hero {
  max-width: var(--max-page);
  margin: 0 auto;
  padding: calc(var(--nav-height, 72px) + clamp(32px, 5vw, 64px)) 24px 0;
}
.breadcrumb {
  font-size: 0.875rem;
  color: var(--b-ink-3);
  margin-bottom: 20px;
}
.breadcrumb a { color: var(--b-ink-3); text-decoration: underline; text-decoration-color: var(--b-line-strong); text-underline-offset: 0.2em; }
.breadcrumb a:hover { color: var(--b-teal-dark); text-decoration-color: currentColor; }
.breadcrumb .sep { margin: 0 8px; color: var(--b-line-hover); }

/* Category is carried by the breadcrumb; no eyebrow label above the H1. */
.post-hero .article-cat { display: none; }

.post-hero h1 {
  max-width: 820px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--b-ink);
  text-wrap: balance;
}
.post-hero .subtitle {
  max-width: 60ch;
  margin-top: 20px;
  font-size: clamp(1.0625rem, 1.4vw, 1.1875rem);
  line-height: 1.65;
  color: var(--b-ink-3);
  text-wrap: pretty;
}

.post-meta-bar {
  max-width: var(--max-content);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 28px;
}
.author-block { display: flex; align-items: center; gap: 10px; }
.author-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--b-bubble);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.8125rem;
  color: var(--b-ink-2);
}
.author-info { line-height: 1.35; }
.author-info .name { font-family: var(--font-display); font-weight: 700; font-size: 0.875rem; color: var(--b-ink); }
.author-info .role { font-size: 0.8125rem; color: var(--b-ink-3); }
.meta-divider { width: 1px; height: 20px; background: var(--b-line-strong); }
.meta-item { display: flex; align-items: center; gap: 6px; font-size: 0.875rem; color: var(--b-ink-3); font-variant-numeric: tabular-nums; }
.meta-item svg { width: 15px; height: 15px; stroke-width: 1.75; color: var(--b-ink-4); }

/* Decorative dashboard placeholder images were removed from the posts;
   keep the hook hidden in case an old copy still carries one. */
.post-featured-image { display: none; }

/* ─── Kurzfassung (TL;DR) — a ruled definition row, not a box ─── */
.tldr-box {
  max-width: var(--max-page);
  margin: 40px auto 0;
  padding: 0 24px;
}
.tldr {
  max-width: var(--max-content);
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr);
  gap: 6px 24px;
  padding: 20px 0;
  border-top: 2px solid var(--b-ink);
  border-bottom: 1px solid var(--b-line-strong);
}
.tldr::before {
  content: 'Kurzfassung';
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--b-ink);
}
.tldr p {
  grid-column: 2;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--b-ink-2);
  text-wrap: pretty;
}
.tldr p + p { margin-top: 10px; }

/* ─── Article grid ─── */
.article-layout {
  max-width: var(--max-page);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px; /* text fills the page up to the sidebar */
  gap: 64px;
}

/* ─── Body copy ─── */
.article-body { min-width: 0; font-size: 1.0625rem; line-height: 1.7; color: var(--b-ink-2); }
.article-body > :first-child { margin-top: 0; }
.article-body > h2:first-child { margin-top: 48px; }
.article-body h2 {
  font-family: var(--font-display);
  font-size: clamp(1.625rem, 2.5vw, 2.125rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.022em;
  color: var(--b-ink);
  margin: clamp(48px, 6vw, 72px) 0 16px;
  text-wrap: balance;
  scroll-margin-top: calc(var(--nav-height, 72px) + 24px);
}
.article-body h3 {
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--b-ink);
  margin: 36px 0 10px;
  text-wrap: balance;
}
.article-body h4 { font-family: var(--font-display); font-size: 1.0625rem; font-weight: 700; color: var(--b-ink); margin: 24px 0 8px; }
.article-body p { margin-bottom: 1.15em; text-wrap: pretty; }
.article-body strong { color: var(--b-ink); font-weight: 600; }
.article-body a {
  color: var(--b-teal-dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
.article-body a:hover { color: var(--b-teal-deep); }
.article-body ul, .article-body ol { padding-left: 1.4em; margin-bottom: 1.25em; }
.article-body li { margin-bottom: 0.5em; padding-left: 0.2em; }
.article-body li::marker { color: var(--b-ink-4); }
.article-body ol li::marker { font-family: var(--font-display); font-weight: 700; color: var(--b-ink-3); font-variant-numeric: tabular-nums; }
.article-body code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace; font-size: 0.875em; background: var(--b-bubble); padding: 1px 6px; border-radius: 6px; }

/* ─── Callouts (tip / warning / note) — typographic, between hairlines ─── */
.info-box {
  margin: 32px 0;
  padding: 20px 0;
  border-top: 1px solid var(--b-line-strong);
  border-bottom: 1px solid var(--b-line-strong);
  background: none;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--b-ink-2);
}
.info-box:has(+ .info-box) { margin-bottom: 0; }
.info-box + .info-box { margin-top: 0; border-top: 0; }
.info-box:has(.ib-icon) { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 14px; }
.info-box .ib-icon { width: 20px; height: 20px; margin-top: 3px; color: var(--b-ink-3); }
.info-box .ib-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.info-box.warning .ib-icon { color: var(--b-ink); }
.info-box .ib-content { min-width: 0; color: var(--b-ink-2); }
.info-box .ib-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--b-ink);
  margin-bottom: 4px;
}
.info-box > strong:first-child { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: var(--b-ink); margin-bottom: 6px; }
.info-box p { margin-bottom: 0.6em; }
.info-box p:last-child { margin-bottom: 0; }
.info-box ul, .info-box ol { padding-left: 1.3em; margin: 0.5em 0; }
.info-box li { margin-bottom: 0.35em; }
.info-box .comparison-table-wrap { margin: 12px 0 4px; }
.info-box .comparison-table { font-size: 0.9375rem; }

/* ─── Pull quote — set large under a rule, no side stripe ─── */
.pull-quote {
  margin: 44px 0;
  padding: 24px 0 0;
  border-top: 2px solid var(--b-ink);
  background: none;
}
.pull-quote p {
  max-width: 46ch;
  font-family: var(--font-display);
  font-size: clamp(1.0625rem, 1.4vw, 1.1875rem);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -0.015em;
  color: var(--b-ink);
  margin-bottom: 10px;
  text-wrap: balance;
}
.pull-quote cite { font-style: normal; font-size: 0.875rem; color: var(--b-ink-3); }

/* ─── Figures at a glance (was a row of stat cards) — ruled list ─── */
.stat-row { margin: 0 0 8px; }
.stat-card {
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr);
  gap: 4px 24px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--b-line-strong);
}
.stat-number {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--b-ink);
  font-variant-numeric: tabular-nums;
}
.stat-label { font-size: 0.9375rem; line-height: 1.55; color: var(--b-ink-2); }

/* ─── Tables — open, ruled, head on a 2px ink rule; scroll inside on mobile ─── */
.comparison-table-wrap {
  margin: 28px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--b-line-strong) transparent;
}
.comparison-table-wrap::-webkit-scrollbar { height: 6px; }
.comparison-table-wrap::-webkit-scrollbar-thumb { background: var(--b-line-strong); border-radius: 6px; }
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
}
/* neutralise the landing-page table rules from style.css (min-width 700px, sticky head, nowrap, tints) */
.article-body .comparison-table { min-width: 0; }
.article-body .comparison-table thead { position: static; }
.article-body .comparison-table th, .article-body .comparison-table td { text-align: left; vertical-align: top; white-space: normal; hyphens: auto; -webkit-hyphens: auto; }
.article-body .comparison-table thead th { vertical-align: bottom; }
.article-body .comparison-table thead th:first-child { min-width: 0; }
.article-body .comparison-table tbody td:first-child { font-weight: 500; color: var(--b-ink); }
.article-body .comparison-table tbody td.highlight { background: none; font-weight: 500; }
.article-body .comparison-table tbody tr:hover { background: none; }
.comparison-table thead th {
  padding: 0 14px 12px;
  border-bottom: 2px solid var(--b-ink);
  vertical-align: bottom;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--b-ink);
  background: none;
}
.comparison-table thead th.highlight { color: var(--b-teal-dark); background: none; border-bottom-color: var(--b-ink); }
.comparison-table tbody td, .comparison-table tbody th {
  padding: 12px 14px;
  border-bottom: 1px solid var(--b-line-strong);
  color: var(--b-ink-2);
  font-weight: 400;
}
.comparison-table tbody th { color: var(--b-ink); font-weight: 500; }
.comparison-table th:first-child, .comparison-table td:first-child { padding-left: 0; }
.comparison-table th:last-child, .comparison-table td:last-child { padding-right: 0; }
.comparison-table tbody tr:hover td, .comparison-table tbody tr:hover th { background: var(--b-ground-2); }
.comparison-table .hl { color: var(--b-ink); font-weight: 500; background: none; }
.check-icon {
  display: inline-block;
  width: 18px; height: 18px;
  vertical-align: -3px;
  font-size: 0;
  color: var(--b-teal-dark);
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.dash-icon { color: var(--b-line-hover); }

/* ─── FAQ — divider list with a round plus toggle ─── */
.faq-section { margin-top: clamp(48px, 6vw, 72px); }
.faq-section h2 { margin-top: 0 !important; margin-bottom: 20px; }
.faq-item {
  border: 0;
  border-bottom: 1px solid var(--b-line-strong);
  border-radius: 0;
  margin: 0;
  overflow: visible;
}
:not(.faq-item) + .faq-item { border-top: 1px solid var(--b-line-strong); }
.faq-item.open { border-color: var(--b-line-strong); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--b-ink);
  user-select: none;
}
.faq-q:hover { color: var(--b-teal-dark); }
.faq-q svg { display: none; }
.faq-q::after {
  content: '';
  flex: none;
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--b-line-strong);
  background:
    linear-gradient(var(--b-ink), var(--b-ink)) center / 11px 1.75px no-repeat,
    linear-gradient(var(--b-ink), var(--b-ink)) center / 1.75px 11px no-repeat;
  transition: transform 0.35s var(--b-ease), background-color 0.2s, border-color 0.2s;
}
.faq-q:hover::after { border-color: var(--b-teal-dark); }
.faq-item.open .faq-q { color: var(--b-ink); }
.faq-item.open .faq-q::after {
  transform: rotate(45deg);
  border-color: var(--b-teal-dark);
  background:
    linear-gradient(#fff, #fff) center / 11px 1.75px no-repeat,
    linear-gradient(#fff, #fff) center / 1.75px 11px no-repeat,
    var(--b-teal-dark);
}
.faq-a {
  display: none;
  max-width: 68ch;
  padding: 0 52px 22px 0;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--b-ink-2);
}
.faq-item.open .faq-a { display: block; }
.faq-a p + p { margin-top: 0.75em; }

/* ─── Sidebar ─── */
.article-sidebar {
  position: sticky;
  top: calc(var(--nav-height, 72px) + 32px);
  align-self: start;
  padding-top: 48px;
  /* a long TOC + the form can be taller than the window: let the column scroll on its own */
  max-height: calc(100vh - var(--nav-height, 72px) - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--b-line-strong) transparent;
  padding-right: 4px;
}
.toc-widget { margin-bottom: 36px; }
.toc-label {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--b-ink);
  margin-bottom: 10px;
}
.toc-list { list-style: none; padding-left: 14px; border-left: 1px solid var(--b-line); }
.toc-list li a {
  display: block;
  padding: 6px 0;
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--b-ink-3);
  text-decoration: none;
  transition: color 0.15s;
}
.toc-list li a:hover { color: var(--b-ink); }
.toc-list li a.active { color: var(--b-teal-dark); font-weight: 600; }

/* Sidebar CTA: Webweezl speaks here, so it takes the system tint */
.sidebar-cta {
  padding: 20px;
  background: var(--b-teal-50);
  border: 1px solid var(--b-teal-edge);
  border-radius: 12px;
}
.sidebar-cta .cta-title {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--b-ink);
  text-wrap: balance;
}
.sidebar-cta .cta-text { margin-top: 6px; font-size: 0.875rem; line-height: 1.5; color: var(--b-ink-2); }
.sidebar-cta .post-try { margin-top: 14px; }
.sidebar-cta .post-try__row { flex-direction: column; gap: 8px; }
.sidebar-cta .post-try__input { height: 46px; }
.sidebar-cta .post-try__btn { min-height: 46px; padding-top: 0.75rem; padding-bottom: 0.75rem; }
.sidebar-cta .post-try__input { font-size: 1rem; padding: 0 14px; }
.sidebar-cta .post-try__btn { justify-content: center; font-size: 0.9375rem; }
.sidebar-cta .cta-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--b-teal-deep);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.sidebar-cta .cta-link:hover { color: var(--b-ink); }

/* ─── URL form (sidebar + close band) → /demo?url=… ─── */
.post-try__label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--b-ink);
  margin-bottom: 8px;
}
.post-try__row { display: flex; gap: 10px; }
.post-try__input {
  flex: 1 1 auto;
  min-width: 0;
  height: 56px;
  padding: 0 18px;
  font: 500 1.0625rem/1 var(--font-body);
  color: var(--b-ink);
  background: #fff;
  border: 1.5px solid var(--b-line-strong);
  border-radius: 10px;
  transition: border-color 0.2s var(--b-ease), box-shadow 0.2s var(--b-ease);
}
.post-try__input::placeholder { color: var(--b-ink-4); }
.post-try__input:hover { border-color: var(--b-line-hover); }
.post-try__input:focus { outline: none; border-color: var(--b-teal-dark); box-shadow: 0 0 0 4px rgb(13 148 136 / 0.16); }
.post-try__btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 0.75rem 24px;
  font: 700 1rem/1.25 var(--font-body);
  color: #fff;
  background: var(--b-teal-dark);
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s var(--b-ease), transform 0.2s var(--b-ease), box-shadow 0.2s var(--b-ease);
}
.post-try__btn:hover { background: var(--b-teal-deep); transform: translateY(-1px); box-shadow: 0 8px 18px -10px rgb(15 23 42 / 0.45); }
.post-try__btn:active { transform: none; box-shadow: none; }
.post-try__btn .b-ico { transition: transform 0.25s var(--b-ease); }
.post-try__btn:hover .b-ico { transform: translateX(3px); }
.post-try__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 20px;
  margin-top: 16px;
  font-size: 0.9375rem;
}
.post-try__facts { display: flex; flex-wrap: wrap; row-gap: 2px; }
.post-try__facts span { white-space: nowrap; }
.post-try__facts span + span::before { content: '·'; margin: 0 8px; }
.post-try__alt { font-weight: 600; text-decoration: underline; text-underline-offset: 0.2em; }

/* Inline button inside an article (e.g. end of a post) */
.post-inline-cta { margin: 28px 0; }
.article-body a.post-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0.75rem 24px;
  border-radius: 10px;
  line-height: 1.3;
  background: var(--b-teal-dark);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.2s var(--b-ease), transform 0.2s var(--b-ease), box-shadow 0.2s var(--b-ease);
}
.article-body a.post-btn:hover { background: var(--b-teal-deep); color: #fff; transform: translateY(-1px); box-shadow: 0 8px 18px -10px rgb(15 23 42 / 0.45); }

/* ─── Further reading — ruled list ─── */
.related-section {
  max-width: var(--max-page);
  margin: clamp(72px, 9vw, 112px) auto;
  padding: 0 24px;
}
.related-heading {
  max-width: var(--max-content);
  font-family: var(--font-display);
  font-size: clamp(1.625rem, 2.5vw, 2.125rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--b-ink);
  margin-bottom: 16px;
}
.related-grid { max-width: var(--max-content); border-top: 2px solid var(--b-ink); }
.related-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 20px;
  align-items: center;
  gap: 4px 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--b-line-strong);
  text-decoration: none;
  color: inherit;
}
.related-card::after {
  content: '';
  width: 18px; height: 18px;
  background: var(--b-ink-4);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m13 6 6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m13 6 6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 0.25s var(--b-ease), background-color 0.2s;
}
.related-card:hover::after { background: var(--b-teal-dark); transform: translateX(3px); }
.related-card .rc-num { display: none; }
.related-card .rc-content { min-width: 0; }
.related-card .rc-tag { font-size: 0.8125rem; font-weight: 600; color: var(--b-ink-3) !important; margin-bottom: 2px; }
.related-card h4 {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--b-ink);
  text-wrap: balance;
}
.related-card:hover h4 { color: var(--b-teal-dark); }

/* ─── Close band (dark teal, URL form) ─── */
.post-close { background: var(--b-teal-dark); color: #fff; padding: clamp(72px, 9vw, 120px) 24px; }
.post-close__inner { max-width: 760px; margin: 0 auto; text-align: center; }
.post-close h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #fff;
  text-wrap: balance;
}
.post-close__lede { max-width: 56ch; margin: 16px auto 0; font-size: clamp(1.0625rem, 1.4vw, 1.1875rem); line-height: 1.6; color: var(--b-teal-light); text-wrap: pretty; }
.post-close .post-try { max-width: 600px; margin: 36px auto 0; text-align: left; }
.post-close .post-try__label { color: #fff; }
.post-close .post-try__input { border-color: transparent; }
.post-close .post-try__input:focus { border-color: #fff; box-shadow: 0 0 0 4px rgb(255 255 255 / 0.25); }
.post-close .post-try__btn { background: #fff; color: var(--b-teal-deep); }
.post-close .post-try__btn:hover { background: var(--b-teal-light); box-shadow: 0 8px 18px -10px rgb(15 23 42 / 0.45); }
.post-close .post-try__meta { justify-content: center; text-align: center; color: var(--b-teal-light); }
.post-close .post-try__facts span + span::before { color: var(--b-teal-glow); }
.post-close .post-try__alt { color: #fff; }
.post-close .post-try__alt:hover { color: var(--b-teal-light); }
.post-close :focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 6px; }
.post-close ::selection { background: #fff; color: var(--b-teal-deep); }

/* ─── Share ─── */
.sidebar-share { margin-top: 28px; }
.sidebar-share .share-label { font-family: var(--font-display); font-size: 0.875rem; font-weight: 700; color: var(--b-ink); margin-bottom: 10px; }
.share-btns { display: flex; gap: 8px; }
.share-btns a {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 1px solid var(--b-line-strong);
  border-radius: 50%;
  color: var(--b-ink-3);
  transition: border-color 0.2s, color 0.2s;
}
.share-btns a:hover { border-color: var(--b-teal-dark); color: var(--b-teal-dark); }
.share-btns a svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }

/* Legacy hook: the old newsletter bar had no working form behind it */
.newsletter-bar { display: none; }


/* ══════════════════════════════════════════════
   LISTING (blog/index.html): topic hub
   Hero with a jump index, one "Hier anfangen" band, then one
   section per buyer question: sticky head (H2 question + short
   answer) on the left, a hairline-divided post list on the right.
   ══════════════════════════════════════════════ */
.blog-head {
  max-width: var(--max-page);
  margin: 0 auto;
  padding: calc(var(--nav-height, 72px) + clamp(48px, 7vw, 96px)) 24px 0;
}
.blog-head h1 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 3.7vw, 3.25rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.035em;
  color: var(--b-ink);
}
.blog-head__lede { max-width: 56ch; margin-top: 20px; font-size: clamp(1.0625rem, 1.4vw, 1.1875rem); line-height: 1.65; color: var(--b-ink-3); text-wrap: pretty; }

.hub-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 25rem);
  gap: 40px clamp(40px, 6vw, 96px);
  align-items: end;
  padding-bottom: clamp(56px, 7vw, 88px);
}
.hub-hero h1 { max-width: 16ch; text-wrap: balance; }
.hub-hero__stand { display: flex; flex-wrap: wrap; margin-top: 20px; font-size: 0.875rem; line-height: 1.5; color: var(--b-ink-3); font-variant-numeric: tabular-nums; }
.hub-hero__stand span + span::before { content: '·'; margin: 0 8px; color: var(--b-line-hover); }

/* Jump index: an open list on a 2px ink rule, no boxes */
.hub-toc__label { font-family: var(--font-display); font-size: 0.875rem; font-weight: 700; line-height: 1.4; color: var(--b-ink); margin-bottom: 10px; }
.hub-toc__list { list-style: none; border-top: 2px solid var(--b-ink); }
.hub-toc__list li { border-bottom: 1px solid var(--b-line-strong); }
.hub-toc__list a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 18px;
  align-items: center;
  gap: 14px;
  min-height: 54px;
  padding: 0.75rem 2px;
  color: var(--b-ink);
  text-decoration: none;
}
.hub-toc__name { font-family: var(--font-display); font-size: 1rem; font-weight: 700; line-height: 1.35; transition: color 0.2s; }
.hub-toc__count { font-size: 0.875rem; line-height: 1.4; color: var(--b-ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.hub-toc__list .b-ico { color: var(--b-ink-4); transition: transform 0.25s var(--b-ease), color 0.2s; }
.hub-toc__list a:hover .hub-toc__name, .hub-toc__list a:hover .b-ico { color: var(--b-teal-dark); }
.hub-toc__list a:hover .b-ico { transform: translateY(2px); }

/* Shared section frame */
.hub-wrap { max-width: var(--max-page); margin: 0 auto; padding: 0 24px; }
.hub-split { display: grid; grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr); gap: 28px clamp(32px, 5vw, 80px); align-items: start; }
.hub-split__head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.625rem, 2.6vw, 2.25rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--b-ink);
  text-wrap: balance;
}
.hub-split__answer { margin-top: 16px; max-width: 46ch; font-size: 1rem; line-height: 1.65; color: var(--b-ink-2); text-wrap: pretty; }
.hub-split__note { margin-top: 16px; font-size: 0.875rem; line-height: 1.5; color: var(--b-ink-3); }

/* "Hier anfangen" band */
.hub-start { background: var(--b-ground-2); border-top: 1px solid var(--b-line); border-bottom: 1px solid var(--b-line); padding: clamp(64px, 8vw, 104px) 0; }
.hub-lead h3 {
  max-width: 28ch;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.025em;
  color: var(--b-ink);
  text-wrap: balance;
}
.hub-lead .hub-post__sum { margin-top: 14px; max-width: 60ch; font-size: 1.0625rem; }
.hub-lead__go {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-top: 18px;
  font-weight: 700;
  color: var(--b-teal-dark);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}
.hub-lead__go:hover { color: var(--b-teal-deep); }
.hub-lead__go .b-ico { transition: transform 0.25s var(--b-ease); }
.hub-lead__go:hover .b-ico { transform: translateX(3px); }

/* Topic sections */
.hub-topic { padding: clamp(72px, 9vw, 120px) 0; scroll-margin-top: var(--nav-height, 72px); }
.hub-topic + .hub-topic { border-top: 1px solid var(--b-line); }
.hub-posts { list-style: none; border-top: 2px solid var(--b-ink); }
.hub-post { padding: 24px 0 26px; border-bottom: 1px solid var(--b-line-strong); }
.hub-post h3 {
  max-width: 40ch;
  font-family: var(--font-display);
  font-size: clamp(1.1875rem, 1.6vw, 1.375rem);
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: -0.02em;
  color: var(--b-ink);
  text-wrap: balance;
}
.hub-post h3 a, .hub-lead h3 a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; text-decoration-color: transparent; transition: text-decoration-color 0.25s var(--b-ease), color 0.2s; }
.hub-post h3 a:hover, .hub-lead h3 a:hover { color: var(--b-teal-dark); text-decoration-color: currentColor; }
.hub-post__sum { margin-top: 8px; max-width: 66ch; font-size: 1rem; line-height: 1.65; color: var(--b-ink-2); text-wrap: pretty; }
.hub-post__meta { display: flex; flex-wrap: wrap; margin-top: 10px; font-size: 0.875rem; line-height: 1.5; color: var(--b-ink-3); font-variant-numeric: tabular-nums; }
.hub-post__meta span + span::before { content: '·'; margin: 0 8px; color: var(--b-line-hover); }

@media (min-width: 961px) {
  .hub-split__head { position: sticky; top: calc(var(--nav-height, 72px) + 32px); }
}
@media (max-width: 960px) {
  .hub-hero, .hub-split { grid-template-columns: minmax(0, 1fr); }
  .hub-hero { align-items: start; }
  .hub-split__answer { max-width: 62ch; }
}
@media (max-width: 640px) {
  .hub-topic { padding: 56px 0 64px; }
  .hub-post { padding: 20px 0 22px; }
  .hub-hero__stand { flex-direction: column; gap: 2px; }
  .hub-hero__stand span + span::before { content: none; }
}


/* ══════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .article-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .article-body { max-width: var(--max-content); }
  .article-sidebar { position: static; padding-top: 0; max-height: none; overflow: visible; }
  .toc-widget { display: none; }
  .sidebar-share { margin: 40px 0 0; }
  /* the close band repeats the form right below, so the sidebar form steps back */
  .sidebar-cta { display: none; }
}
@media (max-width: 640px) {
  .post-hero { padding-top: calc(var(--nav-height, 64px) + 28px); }
  .post-meta-bar { gap: 8px 14px; }
  .tldr, .stat-card { grid-template-columns: minmax(0, 1fr); }
  .tldr p { grid-column: 1; }
  .article-body .comparison-table th, .article-body .comparison-table td { min-width: 7.5rem; }
  .post-meta-bar .meta-divider { display: none; }
  .article-body { font-size: 1rem; }
  .faq-q { font-size: 1rem; gap: 16px; }
  .faq-a { padding-right: 0; }
  .post-try__row { flex-direction: column; }
  .post-try__btn { justify-content: center; }
  .post-try__facts { flex-direction: column; }
  .post-try__facts span + span::before { content: none; }
}
@media (prefers-reduced-motion: reduce) {
  .faq-q::after, .post-try__btn, .post-try__btn .b-ico, .related-card::after, .hub-post h3 a, .hub-lead h3 a, .hub-lead__go .b-ico, .hub-toc__list .b-ico, .hub-toc__name { transition: none !important; }
}
@media print {
  #progress-bar, .article-sidebar, .post-close { display: none; }
  .faq-a { display: block !important; }
}

/* Above the stack point: Kurzfassung, meta line and "weiterlesen" end where the text column ends */
@media (min-width: 1025px) {
  .post-meta-bar, .tldr, .related-heading, .related-grid { max-width: min(var(--max-content), calc(100% - 344px)); }
}
