/* ═══════════════════════════════════════════════════════════
   avui.io – Blog CSS
   Passt exakt zum Stil der bestehenden avui.io-Hauptseite.
   CI: #6E2654 (primary) · #993371 (accent) · #F4F4F4 (bg)
═══════════════════════════════════════════════════════════ */

/* ── DESIGN TOKENS (übernommen aus style.css der Hauptseite) ── */
:root {
  --primary:   #6E2654;
  --accent:    #993371;
  --gradient:  linear-gradient(135deg, #6E2654 0%, #993371 100%);
  --bg:        #F4F4F4;
  --white:     #FFFFFF;
  --black:     #000000;
  --text:      #1A1A1A;
  --muted:     #666666;
  --border:    #E2E2E2;

  --font:      'Poppins', system-ui, sans-serif;
  --font-deco: 'Richmond Display', Georgia, serif;

  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 4px rgba(0,0,0,.07);
  --shadow-md: 0 4px 20px rgba(0,0,0,.10);
  --shadow-lg: 0 8px 32px rgba(110,38,84,.18);

  --trans: 200ms ease;

  /* Typografie – synchron zur Hauptseite: nur zwei Copy-Größen */
  --fs-body: 1.05rem;  /* 16.8 px – Standard-Copy (Artikel-Body) */
  --fs-meta: 0.9rem;   /* 14.4 px – Meta, Captions, kleine Beschreibungen */

  /* Blog-spezifisch */
  --primary-tint: rgba(110,38,84,.06);
  --header-height: 80px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
/* Letzte Verteidigungslinie gegen horizontales Scrollen auf Mobilgeräten:
   selbst wenn ein WYSIWYG-Element doch breiter als der Viewport wird,
   bleibt die Seite als Ganzes nicht-scrollbar in X-Richtung. Das Element
   selbst (z. B. Tabelle) bekommt sein eigenes overflow-x: auto. */
html, body { overflow-x: clip; }
body { margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* ── CONTAINER ── */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* ── GEMEINSAMER BUTTON (.btn) ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  background: var(--gradient);
  color: var(--white);
  font-family: var(--font);
  font-size: var(--fs-meta);
  font-weight: 600;
  padding: .85rem 1.75rem;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: box-shadow var(--trans), transform var(--trans);
  box-shadow: var(--shadow-lg);
  white-space: nowrap;
  text-decoration: none;
}
.btn:hover { box-shadow: 0 12px 40px rgba(110,38,84,.28); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

/* ── SITE-HEADER / SITE-FOOTER (Platzhalter-Overrides für Blog) ── */
/* Die eigentlichen Stile kommen von der Hauptseite.
   Wir stellen sicher, dass der Blog-Body keinen unerwünschten Offset bekommt. */

/* ═══════════════════════════════════════════════════════════
   BLOG-ÜBERSICHTSSEITE
═══════════════════════════════════════════════════════════ */

/* ── BLOG HERO ── */
.blog-hero {
  /* Dunkler Hero analog zu .hero-section auf den restlichen Unterseiten.
     Header ist position:fixed → Offset über padding-top hier. */
  background: #0e0e0e;
  padding-top: calc(var(--header-height) + 5rem);
  padding-bottom: 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
/* Akzent-Orbs aus der Hauptseite — als Pseudo-Elemente, da im HTML keine
   eigenen Orb-Divs liegen. Subtil, hinter dem Text. */
.blog-hero::before,
.blog-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: -1;
}
.blog-hero::before {
  width: 600px; height: 600px;
  top: -180px; right: -120px;
  background: radial-gradient(circle, rgba(153,51,113,.28) 0%, transparent 70%);
}
.blog-hero::after {
  width: 420px; height: 420px;
  bottom: -160px; left: -80px;
  background: radial-gradient(circle, rgba(110,38,84,.2) 0%, transparent 70%);
}
.blog-hero .container {
  max-width: 720px;
  position: relative;
  z-index: 1;
}
.blog-hero h1 {
  font-family: var(--font);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: .75rem;
}
.blog-hero p {
  font-size: var(--fs-body);
  color: rgba(255,255,255,.65);
  line-height: 1.7;
  max-width: 54ch;
  margin-inline: auto;
}

/* ── KATEGORIE-FILTER ── */
.category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: center;
  padding-top: 4rem;
  padding-bottom: 2.5rem;
}
.category-filter a {
  display: inline-block;
  padding: .45rem 1.1rem;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  font-family: var(--font);
  font-size: var(--fs-meta);
  font-weight: 600;
  color: var(--muted);
  background: var(--white);
  text-decoration: none;
  transition: border-color var(--trans), color var(--trans), background var(--trans);
}
.category-filter a:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.category-filter a.is-active {
  background: var(--gradient);
  color: var(--white);
  border-color: transparent;
}

/* ── POST-GRID ── */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-top: 1.5rem;
  padding-bottom: 5rem;
}

/* ── POST-CARD ── */
.post-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--trans), transform var(--trans);
}
.post-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.post-card__image {
  display: block;
  aspect-ratio: 16 / 9;
  background: var(--bg);
  overflow: hidden;
  position: relative;
  text-decoration: none;
}
.post-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.post-card:hover .post-card__image img { transform: scale(1.03); }

.post-card__body {
  padding: 1.25rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  flex: 1;
}

.post-card__category {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
}

.post-card__title {
  font-size: var(--fs-body);
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
  flex: 1;
}
.post-card__title a {
  color: var(--text);
  text-decoration: none;
  transition: color var(--trans);
}
.post-card__title a:hover { color: var(--primary); }

.post-card__excerpt {
  font-size: var(--fs-meta);
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

.post-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--fs-meta);
  color: var(--muted);
  padding-top: .75rem;
  border-top: 1px solid var(--border);
  margin-top: .25rem;
}

/* ── BLOG EMPTY STATE ── */
.blog-empty {
  text-align: center;
  padding: 4rem 0;
  color: var(--muted);
  font-size: var(--fs-body);
}

/* ── PAGINATION ── */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .5rem;
  padding: 2.5rem 0 4rem;
}
.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 .75rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: var(--fs-meta);
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  background: var(--white);
  transition: border-color var(--trans), color var(--trans), background var(--trans);
}
.pagination a:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.pagination .is-current {
  background: var(--gradient);
  color: var(--white);
  border-color: transparent;
  font-weight: 700;
}

/* ═══════════════════════════════════════════════════════════
   BLOG-BEITRAGSSEITE
═══════════════════════════════════════════════════════════ */

/* ── BREADCRUMB ── */
/* Header ist position:fixed → Breadcrumb ist erstes Element → Offset hier */
.breadcrumb {
  padding-top: calc(var(--header-height) + 2rem);
  padding-bottom: .5rem;
  font-size: var(--fs-meta);
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
}
.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
  transition: color var(--trans);
}
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span {
  margin-inline: .4rem;
  color: var(--border);
}

/* ── ARTIKEL-HERO ── */
.article-hero {
  /* Innenraum — kein weiterer Header-Offset da Breadcrumb ihn übernimmt */
  padding-top: 1.5rem;
  padding-bottom: 3.5rem;
}

.article-hero__category {
  display: inline-block;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .75rem;
}

.article-hero h1 {
  font-family: var(--font);
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 1rem;
  max-width: 22ch;
}

.article-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  color: var(--muted);
  font-size: var(--fs-meta);
  margin-bottom: 2rem;
}
.article-hero__meta span {
  display: flex;
  align-items: center;
  gap: .35rem;
}
.article-hero__meta span + span::before {
  content: '·';
  margin-right: .65rem;
  color: var(--border);
}

.article-hero__image {
  width: 100%;
  aspect-ratio: 16 / 7;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg);
}
.article-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── ARTIKEL-LAYOUT (2-Spalten Desktop / 1-Spalte Mobile) ── */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 3rem;
  padding-bottom: 4rem;
  align-items: start;
}

/* ── ARTIKEL-EXCERPT ── */
.article-excerpt {
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--muted);
  border-left: 3px solid var(--primary);
  padding: .75rem 0 .75rem 1.25rem;
  margin-bottom: 2rem;
  background: var(--primary-tint);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* ── INHALTSVERZEICHNIS (TOC – linke Spalte, vor article-content) ── */
.toc {
  margin-bottom: 2rem;
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  background: rgba(110,38,84,.04);
  border: 1px solid rgba(110,38,84,.12);
}

.toc__title {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .85rem;
}

/* Counter-Reset und Grundstruktur */
.toc ol {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

/* H2-Ebene */
.toc > ol {
  counter-reset: toc-h2;
}
.toc > ol > li {
  counter-increment: toc-h2;
  margin-top: 0;
}
.toc > ol > li + li {
  margin-top: 1.25rem;
}
.toc > ol > li > a {
  display: block;
  font-size: var(--fs-meta);
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  transition: color var(--trans);
  line-height: 1.4;
}
.toc > ol > li > a::before {
  content: counter(toc-h2) ".0";
  color: var(--muted);
  font-weight: 400;
  margin-right: .3em;
  font-variant-numeric: tabular-nums;
}
.toc > ol > li > a:hover { color: var(--primary); }

/* H3-Ebene (.toc__sub) */
.toc__sub {
  counter-reset: toc-h3;
  margin-top: .25rem;
  padding-left: 1.25rem;
}
.toc__sub > li {
  counter-increment: toc-h3;
}
.toc__sub > li + li {
  margin-top: .15rem;
}
.toc__sub > li > a {
  display: block;
  font-size: var(--fs-meta);
  font-weight: 400;
  color: var(--muted);
  text-decoration: none;
  line-height: 1.4;
  padding: .15rem 0;
  transition: color var(--trans);
}
.toc__sub > li > a::before {
  content: counter(toc-h2) "." counter(toc-h3);
  color: var(--muted);
  margin-right: .3em;
  font-variant-numeric: tabular-nums;
}
.toc__sub > li > a:hover { color: var(--primary); }

/* Fallback für .toc a (flache Listen ohne Struktur) */
.toc a {
  color: var(--text);
  text-decoration: none;
  transition: color var(--trans);
}
.toc a:hover { color: var(--primary); }

/* ── ARTIKEL-INHALT (WYSIWYG) ── */
.article-content {
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.8;
  color: var(--text);
  /* Verhindert, dass breite Kind-Elemente (Tabellen, lange URLs,
     pre/code) die Grid-Spalte sprengen und damit horizontales Scrollen
     auf der ganzen Seite verursachen. */
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.article-content h2 {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
  margin-top: 2.75rem;
  margin-bottom: .85rem;
}

.article-content h3 {
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  margin-top: 2rem;
  margin-bottom: .65rem;
}

.article-content p {
  margin-bottom: 1.25rem;
}
.article-content p:last-child { margin-bottom: 0; }

.article-content ul,
.article-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .45rem;
}
.article-content ul { list-style: none; padding-left: 0; }
.article-content ul li {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
}
.article-content ul li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gradient);
  flex-shrink: 0;
  margin-top: .6em;
}
.article-content ol {
  list-style: decimal;
}
.article-content ol li { margin-left: 0; }

.article-content blockquote {
  border-left: 3px solid var(--primary);
  padding: .75rem 0 .75rem 1.25rem;
  margin: 1.75rem 0;
  color: var(--muted);
  font-style: italic;
  font-size: var(--fs-body);
  line-height: 1.75;
  background: var(--primary-tint);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.article-content img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin: 1.75rem 0;
  display: block;
  object-fit: cover;
}

/* ── Eingebettete Medien & Code (WYSIWYG-zukunftssicher) ──
   Sorgt dafür, dass künftige Beiträge mit Embeds, Code-Snippets,
   langen URLs etc. nicht horizontal überlaufen. */
.article-content iframe,
.article-content video,
.article-content embed,
.article-content object {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.75rem 0;
  border: 0;
}

.article-content pre {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: rgba(110,38,84,.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.15rem;
  margin: 1.75rem 0;
  font-size: var(--fs-meta);
  line-height: 1.6;
}

.article-content pre code {
  white-space: pre;
  background: transparent;
  padding: 0;
  border-radius: 0;
}

.article-content code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.92em;
  background: rgba(110,38,84,.07);
  padding: .12em .35em;
  border-radius: 4px;
  overflow-wrap: anywhere;
}

/* ── Tabellen im Beitrag ──
   Linksbündig, Header in Primary (lila), Schrift darauf weiß.
   Auf schmalen Bildschirmen scrollt die Tabelle horizontal,
   damit der Beitrag nicht über den Viewport hinausläuft. */
.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.75rem 0;
  font-size: var(--fs-meta);
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
.article-content thead th {
  background: var(--primary);
  color: var(--white);
  font-weight: 600;
  text-align: left;
  vertical-align: middle;
  padding: .85rem 1rem;
  letter-spacing: .01em;
}
.article-content tbody td {
  text-align: left;
  vertical-align: top;
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--border);
  line-height: 1.55;
}
.article-content tbody tr:last-child td { border-bottom: none; }
.article-content tbody tr:nth-child(even) td { background: rgba(110,38,84,.03); }

/* Schmale Spalten in der ersten Spalte (oft Label-Spalte) optisch leicht
   betonen, ohne sie zu fett zu machen. */
.article-content tbody td:first-child { font-weight: 500; color: var(--text); }

/* Responsiv: Tabelle behält ihre natürliche Größe, nur ein Wrapper
   (.table-scroll) scrollt horizontal. Wird in script.js automatisch
   um jede <table> innerhalb von .article-content gelegt — der Beitrags-
   Fließtext bleibt voll lesbar, nur die Tabelle scrollt seitlich. */
.article-content .table-scroll {
  margin: 1.75rem 0;
}
.article-content .table-scroll > table {
  margin: 0;
}
@media (max-width: 860px) {
  .article-content .table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    /* Visueller Hinweis, dass weiter scrollbar — sanfter Fade-Schatten
       am rechten Rand. */
    background:
      linear-gradient(to right, var(--white), var(--white)) left center / 20px 100% no-repeat,
      linear-gradient(to right, rgba(0,0,0,.08), rgba(255,255,255,0)) left center / 12px 100% no-repeat,
      linear-gradient(to left,  var(--white), var(--white)) right center / 20px 100% no-repeat,
      linear-gradient(to left,  rgba(0,0,0,.08), rgba(255,255,255,0)) right center / 12px 100% no-repeat;
    background-attachment: local, scroll, local, scroll;
    border-radius: var(--radius-md);
  }
  .article-content .table-scroll > table {
    /* Natürliche Breite je nach Inhalt; mindestens Container-Breite,
       damit kurze Tabellen nicht winzig in der Ecke schweben. */
    width: auto;
    min-width: 100%;
  }
  /* Innerhalb der Tabelle den globalen overflow-wrap: anywhere
     wieder neutralisieren — sonst werden kurze Werte wie "10–30 €"
     unnötig umgebrochen. Der Browser sorgt mit auto-layout für
     sinnvolle Spaltenbreiten. */
  .article-content .table-scroll td,
  .article-content .table-scroll th {
    overflow-wrap: normal;
    word-break: normal;
  }
}

.article-content a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--trans);
}
.article-content a:hover { color: var(--accent); }

/* ── CTA-BLOCK ── */
.cta-block {
  background: linear-gradient(135deg, rgba(110,38,84,.09) 0%, rgba(153,51,113,.06) 100%);
  border: 1.5px solid rgba(110,38,84,.18);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin: 3rem 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.cta-block h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}
.cta-block p {
  font-size: var(--fs-meta);
  color: var(--muted);
  line-height: 1.7;
  max-width: 44ch;
}
.cta-block .btn {
  margin-top: .25rem;
}

/* ── FAQ-BLOCK (Beitragsseite – kein eigener Hintergrund) ── */
.faq-block {
  margin: 3rem 0;
}
.faq-block h2 {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.5rem;
  line-height: 1.25;
}

/* FAQ-Items auf der Beitragsseite (.faq-item, .faq-item summary, .faq-item__body)
   – leicht abweichend vom Haupt-FAQ da anderer Kontext */
.faq-block .faq-item {
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.faq-block .faq-item:first-of-type { border-top: 1px solid var(--border); }

.faq-block .faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  user-select: none;
  background: none;
  position: relative;
}
.faq-block .faq-item summary::-webkit-details-marker { display: none; }
.faq-block .faq-item summary::marker { display: none; }
.faq-block .faq-item summary::after {
  content: '';
  display: block;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 5v14M5 12h14' stroke='%236E2654' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  transition: transform .3s ease;
}
.faq-block .faq-item[open] > summary::after {
  transform: rotate(45deg);
}

.faq-block .faq-item__body {
  padding: .25rem 0 1.1rem;
  font-size: var(--fs-meta);
  color: var(--muted);
  line-height: 1.75;
  padding-right: 2rem;
}

/* Allgemeine .faq-item-Styles (für Kompatibilität mit Haupt-FAQ-Klassen) */
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 0;
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { display: none; }
.faq-item__body {
  padding-bottom: 1.25rem;
  padding-right: 2rem;
  font-size: var(--fs-meta);
  color: var(--muted);
  line-height: 1.75;
}

/* ── SIDEBAR ── */
.article-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 1rem);
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* ── SHARE ── */
.share {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.25rem 1rem;
}
.share__title {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .75rem;
}
.share__buttons {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: .5rem;
}
.share__buttons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--muted);
  background: var(--bg);
  text-decoration: none;
  transition: background var(--trans), color var(--trans), border-color var(--trans);
}
.share__buttons a:hover {
  background: var(--gradient);
  color: var(--white);
  border-color: transparent;
}
.share__buttons a svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  display: block;
  flex-shrink: 0;
}

/* ── VENDOR-CARD ── */
.vendor-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .85rem;
}
.vendor-card__head {
  display: flex;
  align-items: center;
  gap: .85rem;
}
.vendor-card__logo {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.vendor-card__logo img {
  max-height: 48px;
  width: auto;
  display: block;
}
.vendor-card__name {
  font-size: var(--fs-meta);
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  margin: 0;
}
.vendor-card__tagline {
  font-size: var(--fs-meta);
  color: var(--muted);
  margin: .15rem 0 0;
}
.vendor-card__about {
  font-size: var(--fs-meta);
  color: var(--muted);
  line-height: 1.65;
}
.vendor-card__contact {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  padding-top: .85rem;
  border-top: 1px solid var(--border);
}
.vendor-card__line {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: var(--fs-meta);
  color: var(--muted);
  text-decoration: none;
  transition: color var(--trans);
}
.vendor-card__line:hover { color: var(--primary); }
.vendor-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(110,38,84,.08);
  flex-shrink: 0;
}
.vendor-card__icon svg {
  width: 1em;
  height: 1em;
  fill: var(--primary);
  display: block;
}
.vendor-card__btn {
  display: block;
  text-align: center;
  padding: .75rem 1rem;
  background: var(--gradient);
  color: var(--white);
  text-decoration: none;
  border-radius: 100px;
  font-family: var(--font);
  font-weight: 600;
  font-size: var(--fs-meta);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--trans), transform var(--trans);
}
.vendor-card__btn:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-1px);
}

/* ── VERWANDTE BEITRÄGE ── */
.related-posts {
  padding: 4rem 0 3rem;
  border-top: 1px solid var(--border);
}
.related-posts h2 {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.75rem;
  line-height: 1.25;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════ */

/* ── 1024px: Post-Grid & Related 2 Spalten ── */
@media (max-width: 1024px) {
  .post-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .article-layout {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 2rem;
  }
}

/* ── 860px: Alles 1-spaltig ── */
@media (max-width: 860px) {
  .blog-hero {
    padding-top: calc(var(--header-height) + 2.5rem);
    padding-bottom: 3rem;
  }
  .post-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-inline: auto;
  }
  .related-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-inline: auto;
  }
  .article-layout {
    /* minmax(0, 1fr) verhindert, dass breite Inhalte (z. B. Tabellen,
       Code-Blöcke, lange URLs) die Spalte über die Viewport-Breite
       hinaus aufblasen — ansonsten scrollt die gesamte Seite horizontal. */
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
  }
  .article-sidebar {
    position: static;
    top: unset;
  }
  .article-hero h1 {
    max-width: none;
  }
  .related-posts {
    padding: 3rem 0 2rem;
  }
}

/* ── 640px: Feintuning Mobile ── */
@media (max-width: 640px) {
  .blog-hero {
    padding-top: calc(var(--header-height) + 2rem);
    padding-bottom: 2.5rem;
    text-align: left;
  }
  .blog-hero p { margin-inline: 0; }
  .category-filter { justify-content: flex-start; }

  .article-hero {
    padding-bottom: 2.5rem;
  }
  .article-hero h1 {
    font-size: 1.7rem;
  }
  .article-hero__image {
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-md);
  }
  .article-hero__meta {
    gap: .5rem;
  }
  .article-hero__meta span + span::before {
    margin-right: .35rem;
  }

  .breadcrumb {
    padding-top: calc(var(--header-height) + 1.5rem);
  }

  .toc { padding: 1rem 1.25rem; }

  .cta-block {
    padding: 1.75rem 1.25rem;
  }
  .cta-block h3 { font-size: 1.2rem; }

  .share__buttons {
    grid-template-columns: repeat(5, 1fr);
  }
  .share__buttons a {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
  }

  .pagination {
    flex-wrap: wrap;
  }

  .article-content h2 { margin-top: 2rem; }
  .article-content h3 { margin-top: 1.5rem; }
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  .post-card,
  .post-card__image img,
  .post-card__title a,
  .vendor-card__btn,
  .share__buttons a,
  .category-filter a,
  .pagination a { transition: none; }
}
/* Post-Card: gesamte Kachel klickbar */
.post-card { position: relative; }
.post-card__link { position: absolute; inset: 0; z-index: 0; border-radius: inherit; text-decoration: none; }
.post-card__image { position: relative; z-index: 1; }
.post-card__body { position: relative; z-index: 1; }
/* Vendor-Card: Logo ohne Kreis/Border/Background; Tagline ausgeblendet */
.vendor-card__logo { width: auto; height: auto; border-radius: 0 !important; background: none !important; border: none !important; display: block; padding: 0; }
.vendor-card__logo img { max-height: 48px; width: auto; display: block; }
.vendor-card__tagline { display: none !important; }