/* Tavolo News — Editorial Theme
 * 1:1 an die Hauptseite tavolo.me angeglichen:
 * Farben: Charcoal #1A1D1F · Terracotta #A36B4D · Off-white #FAFAFA · Slate #70777B
 * Fonts: Noto Serif (Headlines) · Plus Jakarta Sans (Body)
 * Ecken: durchgängig eckig (border-radius 0) wie auf tavolo.me.
 */

:root {
  --charcoal: #1A1D1F;
  --charcoal-hover: #2D3135;     /* btn-primary:hover auf tavolo.me */
  --terracotta: #A36B4D;
  --terracotta-hover: #8F5B3D;   /* btn-accent:hover auf tavolo.me */
  --offwhite: #FAFAFA;           /* exakt tavolo.me --color-off-white */
  --slate: #70777B;
  --soft: #F4F1EC;
  --border: #EEEEEE;             /* exakt tavolo.me --color-border */
  --green: #4A7C59;
  --gold: #B8893A;

  /* Schriften der Hauptseite — Noto Serif (lokal, Variable) + Plus Jakarta Sans */
  --serif: "Noto Serif", Georgia, "Times New Roman", serif;
  --sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --read-max: 760px;
  --wide-max: 1180px;
}

/* Eckig wie tavolo.me — identischer Ansatz: `border-radius: 0 !important`
   global. Überschreibt sämtliche Rundungen (Pills, Status-Dots, Cards,
   Code-Blöcke) und macht die bestehenden border-radius-Deklarationen
   im File zu totem, aber harmlosem Code. So ist die Optik 1:1 eckig
   wie auf der Hauptseite. */
*, *::before, *::after { border-radius: 0 !important; }

/* Reset light */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--slate);
  background: var(--offwhite);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--terracotta); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--serif);
  color: var(--charcoal);
  line-height: 1.15;          /* tavolo.me */
  margin: 0 0 0.6em;
  font-weight: 700;           /* tavolo.me — Noto Serif Bold */
  letter-spacing: -0.02em;    /* tavolo.me */
}
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.1rem); margin-top: 2em; }
h3 { font-size: 1.3rem; margin-top: 1.6em; }

p, ul, ol, blockquote { margin: 0 0 1.2em; }
blockquote {
  border-left: 3px solid var(--terracotta);
  padding: 0.4em 0 0.4em 1.2em;
  color: var(--charcoal);
  font-style: italic;
  font-family: var(--serif);
  font-size: 1.25rem;
}
code, pre { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
code { background: var(--soft); padding: 0.1em 0.35em; border-radius: 3px; font-size: 0.92em; }
pre { background: var(--charcoal); color: #f5f5f5; padding: 1em 1.2em; border-radius: 4px; overflow-x: auto; }
pre code { background: transparent; color: inherit; padding: 0; }

hr { border: 0; border-top: 1px solid var(--border); margin: 3em 0; }

/* Layout */
.container { max-width: var(--wide-max); margin: 0 auto; padding: 0 24px; }
.read { max-width: var(--read-max); margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 250, 248, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.site-logo { display: flex; align-items: center; gap: 10px; color: var(--charcoal); }
.site-logo img { width: 28px; height: 28px; }
.site-logo__name {
  font-family: var(--serif); font-weight: 600; font-size: 1.25rem;
  letter-spacing: -0.01em; color: var(--charcoal);
}
.site-logo__sub { color: var(--slate); font-size: 0.85rem; margin-left: 4px; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { color: var(--charcoal); font-size: 0.92rem; font-weight: 500; }
.site-nav a:hover { color: var(--terracotta); text-decoration: none; }
.site-nav a.cta {
  background: var(--charcoal); color: var(--offwhite);
  padding: 8px 16px; border-radius: 999px;
}
.site-nav a.cta:hover { background: var(--terracotta); color: #fff; }

.nav-toggle {
  display: none; background: none; border: 0; padding: 8px;
  cursor: pointer; color: var(--charcoal);
}
.nav-toggle svg { width: 24px; height: 24px; }

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--offwhite); border-bottom: 1px solid var(--border);
    padding: 8px 0;
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 14px 24px; width: 100%; border-bottom: 1px solid var(--border); }
  .site-nav a.cta { margin: 12px 24px; width: auto; text-align: center; }
}

/* Hero / Page Title */
.page-hero { padding: 72px 0 24px; text-align: center; }
.page-hero h1 { margin-bottom: 0.3em; }
.page-hero p.lead {
  max-width: 580px; margin: 0 auto; font-size: 1.1rem; color: var(--slate);
}

/* Post list (index/archive) */
.post-list { padding: 48px 0; }
.post-card {
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
}
.post-card:last-child { border-bottom: 0; }
.post-card__meta {
  font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--slate); margin-bottom: 12px;
}
.post-card__title { margin: 0 0 12px; }
.post-card__title a { color: var(--charcoal); }
.post-card__title a:hover { color: var(--terracotta); text-decoration: none; }
.post-card__excerpt { color: var(--slate); margin: 0; }
.post-card__more {
  display: inline-block; margin-top: 14px; color: var(--terracotta);
  font-size: 0.9rem; font-weight: 500;
}

/* Single Article */
.article { padding: 56px 0 80px; }
.article__meta {
  font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--slate); margin-bottom: 12px;
}
.article__title { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 16px; }
.article__lead {
  font-family: var(--serif); font-size: 1.35rem; color: var(--charcoal);
  margin-bottom: 32px; line-height: 1.5;
}
.article__body { font-size: 1.08rem; }
.article__body h2, .article__body h3 { margin-top: 2em; }
/* Kein Drop-Cap: der floatende Großbuchstabe verschob den ersten Absatz
   optisch gegenüber dem bündigen Titel. Erster Absatz startet jetzt
   flush-left, exakt unter der Überschrift. */

/* Streu-<br> im Fließtext neutralisieren. Ältere Posts wurden mit dem
   nl2br-Renderer erzeugt: jeder Quell-Zeilenumbruch wurde zu festem <br>,
   wodurch der Text mobil mitten im Satz umbrach. Da nlbr stets "<br>\n"
   ausgibt, ersetzt das ausgeblendete <br> samt folgendem Whitespace genau
   ein Leerzeichen — der Text fließt wieder bis zum Spaltenrand. Wirkt
   sofort für ALLE bestehenden Posts; bei neuen (sauber gerenderten) Posts
   gibt es keine <br>, also ein No-op. */
.article__body p br,
.article__body li br { display: none; }

/* Footer */
.site-footer {
  background: var(--charcoal); color: rgba(250,250,248,0.7);
  padding: 64px 0 32px; margin-top: 80px;
}
.site-footer a { color: rgba(250,250,248,0.75); }
.site-footer a:hover { color: var(--offwhite); }
.site-footer__grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px;
  margin-bottom: 48px;
}
@media (max-width: 720px) { .site-footer__grid { grid-template-columns: 1fr; gap: 32px; } }
.site-footer h4 {
  color: rgba(250,250,248,0.35); font-family: var(--sans);
  font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 16px; font-weight: 600;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer__brand p { font-size: 0.92rem; max-width: 320px; }
.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px; font-size: 0.82rem; color: rgba(250,250,248,0.4);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}

/* ────────────────────────────────────────────────────────────────
 * Roadmap — Kanban-Board (3 Spalten)
 *
 * Drei gleichbreite Spalten. Die "Umgesetzt"-Spalte wird sehr lang
 * (~70 Karten), bekommt deshalb max-height + overflow-y:auto, sodass
 * das Scrollen innerhalb der Spalte stattfindet und nicht die ganze
 * Seite nach unten reißt.
 *
 * Spalten-Köpfe: kleiner farbiger Punkt (Status-Farbe) + h2 + Count.
 * Karten haben einen 3-px-Akzentstreifen links in Status-Farbe und
 * einen kleinen Kategorie-Eyebrow oben.
 *
 * Auf Mobile kollabiert das Board in 1 Spalte und die Scroll-Höhe
 * wird aufgehoben — alle Karten fließen dann im Seiten-Scroll.
 * ──────────────────────────────────────────────────────────────── */

.kb-board { padding: 16px 0 96px; }
.kb-cols {
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr;
  gap: 24px;
  align-items: start;
}
@media (max-width: 1024px) {
  .kb-cols { grid-template-columns: 1fr 1fr; }
  /* Die Umgesetzt-Spalte spannt sich auf zwei Spalten (volle Breite). */
  .kb-cols .kb-col--live { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .kb-cols { grid-template-columns: 1fr; }
  .kb-cols .kb-col--live { grid-column: auto; }
}

.kb-col {
  background: var(--soft);
  border-radius: 6px;
  padding: 24px 18px 20px;
}

.kb-col__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}
.kb-col__head h2 {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--charcoal);
  margin: 0;
  letter-spacing: -0.01em;
}
.kb-col__dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--border);
  flex-shrink: 0;
}
.kb-col--inarbeit .kb-col__dot { background: var(--gold); }
.kb-col--geplant  .kb-col__dot { background: var(--slate); }
.kb-col--live     .kb-col__dot { background: var(--green); }

.kb-col__count {
  margin-left: auto;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--slate);
  background: rgba(0,0,0,0.05);
  border-radius: 999px;
  padding: 2px 10px;
}
.kb-col--inarbeit .kb-col__count { background: rgba(184,137,58,0.18); color: var(--gold); }
.kb-col--geplant  .kb-col__count { background: rgba(112,119,123,0.16); color: var(--slate); }
.kb-col--live     .kb-col__count { background: rgba(74,124,89,0.18);  color: var(--green); }

.kb-col__sub {
  font-size: 0.82rem;
  color: var(--slate);
  margin: 0 0 18px;
  line-height: 1.5;
}

.kb-col__empty {
  font-size: 0.85rem;
  color: var(--slate);
  font-style: italic;
  margin: 0;
  padding: 12px 0;
}

/* Karten-Body — Standard ohne Scroll. */
.kb-col__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Lazy-Scroll-Variante für Umgesetzt: max-height begrenzt + native
   smooth scrolling. Browser virtualisieren intern (paint-on-demand
   bei content-visibility:auto auf den Karten), echtes JS-Lazy-Loading
   ist bei ~70 Items overkill. */
.kb-col__body--scroll {
  max-height: 720px;
  overflow-y: auto;
  padding-right: 8px; /* Scrollbar bekommt Luft */
  scroll-behavior: smooth;
  /* Subtiler Indikator-Schatten oben/unten wenn Inhalt gescrollt werden
     kann — der Nutzer soll sofort sehen "ah, hier kann ich scrollen". */
  background:
    linear-gradient(var(--soft) 30%, rgba(245,242,237,0)) center top,
    linear-gradient(rgba(245,242,237,0), var(--soft) 70%) center bottom,
    radial-gradient(farthest-side at 50% 0, rgba(0,0,0,0.08), rgba(0,0,0,0)) center top,
    radial-gradient(farthest-side at 50% 100%, rgba(0,0,0,0.08), rgba(0,0,0,0)) center bottom;
  background-repeat: no-repeat;
  background-size: 100% 24px, 100% 24px, 100% 8px, 100% 8px;
  background-attachment: local, local, scroll, scroll;
}
@media (max-width: 720px) {
  /* Auf Mobile keine Inner-Scroll-Spalte mehr — würde die UX killen. */
  .kb-col__body--scroll {
    max-height: none;
    overflow: visible;
    padding-right: 0;
    background: none;
  }
}

/* Custom-Scrollbar: dezent, in Restaurant-Farben. */
.kb-col__body--scroll::-webkit-scrollbar { width: 6px; }
.kb-col__body--scroll::-webkit-scrollbar-track { background: transparent; }
.kb-col__body--scroll::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.12);
  border-radius: 3px;
}
.kb-col__body--scroll::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.2); }

/* Gruppen-Header innerhalb Umgesetzt — sticky beim Scrollen, damit
   man immer sieht in welcher Themen-Sektion man gerade ist. */
.kb-group { margin-bottom: 18px; }
.kb-group:last-child { margin-bottom: 0; }

.kb-group__head {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--soft);
  margin: 0 -4px 10px;
  padding: 10px 4px 8px;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--charcoal);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}
.kb-group__count {
  margin-left: auto;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--slate);
  background: rgba(0,0,0,0.05);
  border-radius: 999px;
  padding: 1px 8px;
}

/* Karte ------------------------------------------------------------- */
.kb-card {
  background: #fff;
  border: 1px solid var(--border);
  border-left: 3px solid var(--border);
  border-radius: 4px;
  padding: 14px 16px;
  /* content-visibility lässt den Browser Off-Screen-Karten überspringen
     beim Rendern — billige Performance-Verbesserung wenn die Scroll-
     Liste lang ist. */
  content-visibility: auto;
  contain-intrinsic-size: 0 130px;
}
.kb-card--inarbeit { border-left-color: var(--gold); }
.kb-card--geplant  { border-left-color: var(--slate); }
.kb-card--live     { border-left-color: var(--green); }

.kb-card__eyebrow {
  font-family: var(--sans);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
  margin: 0 0 6px;
  opacity: 0.85;
}

.kb-card__title {
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--charcoal);
  margin: 0 0 6px;
  line-height: 1.35;
}

.kb-card__desc {
  font-size: 0.82rem;
  color: var(--slate);
  margin: 0;
  line-height: 1.5;
}

.kb-cta { font-size: 0.95rem; color: var(--slate); margin-top: 32px; }

/* Support / Early Adopter */
.support { padding: 48px 0 96px; }
.support__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
  margin-top: 40px;
}
@media (max-width: 820px) { .support__grid { grid-template-columns: 1fr; } }
.support-card {
  background: #fff; border: 1px solid var(--border); border-radius: 6px;
  padding: 32px; display: flex; flex-direction: column;
}
.support-card h3 {
  font-size: 1.4rem; margin-bottom: 8px;
}
.support-card__tag {
  font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--terracotta); margin-bottom: 14px; font-weight: 600;
}
.support-card p { flex: 1; margin-bottom: 20px; }
/* Buttons 1:1 wie tavolo.me (.btn / .btn-primary): eckig, uppercase,
   Plus-Jakarta-Sans, 1px-Border, Hover dunkelt charcoal ab. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px;
  background: var(--charcoal); color: #fff;
  border: 1px solid var(--charcoal);
  font-family: var(--sans);
  font-weight: 600; font-size: 0.8125rem;
  letter-spacing: 0.04em; text-transform: uppercase;
  text-align: center; cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}
.btn:hover { background: var(--charcoal-hover); border-color: var(--charcoal-hover); color: #fff; text-decoration: none; }
/* Akzent-Variante (terracotta) — entspricht .btn-accent auf tavolo.me */
.btn--accent { background: var(--terracotta); border-color: var(--terracotta); color: #fff; }
.btn--accent:hover { background: var(--terracotta-hover); border-color: var(--terracotta-hover); }
/* Outline-Variante — entspricht .btn-secondary auf tavolo.me */
.btn--outline { background: transparent; color: var(--charcoal); border: 1px solid var(--charcoal); }
.btn--outline:hover { background: var(--offwhite); color: var(--charcoal); }

/* Feature Form */
.feature-form { padding: 32px 0 64px; }
.feature-form__box {
  background: var(--soft); border-radius: 8px; padding: 36px;
}
.field { display: flex; flex-direction: column; margin-bottom: 18px; }
.field label {
  font-size: 0.82rem; font-weight: 600; color: var(--charcoal);
  margin-bottom: 6px; letter-spacing: 0.02em;
}
.field input, .field select, .field textarea {
  font-family: var(--sans); font-size: 1rem;
  padding: 12px 14px; border: 1px solid var(--border); border-radius: 4px;
  background: #fff; color: var(--charcoal); width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--terracotta); outline-offset: 1px; border-color: var(--terracotta);
}
.field textarea { min-height: 140px; resize: vertical; }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .field--row { grid-template-columns: 1fr; } }
.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
.form-toast {
  margin-top: 18px; padding: 14px 18px; border-radius: 4px;
  font-size: 0.95rem; display: none;
}
.form-toast.is-success { display: block; background: rgba(74, 124, 89, 0.14); color: var(--green); }
.form-toast.is-error { display: block; background: rgba(163, 107, 77, 0.14); color: var(--terracotta); }

.feature-list { margin-top: 64px; }
.feature-list h2 { margin-bottom: 24px; }
.feature-item {
  padding: 20px 0; border-bottom: 1px solid var(--border);
}
.feature-item h3 { font-family: var(--sans); font-size: 1.05rem; margin: 0 0 4px; color: var(--charcoal); }
.feature-item p { margin: 0; font-size: 0.92rem; color: var(--slate); }

/* 404 */
.error-page { padding: 96px 0; text-align: center; }
.error-page h1 { font-size: clamp(3rem, 8vw, 5rem); }

/* Pagination */
.pagination {
  display: flex; justify-content: center; gap: 8px; margin: 48px 0;
}
.pagination a, .pagination span {
  padding: 8px 14px; border-radius: 4px; font-size: 0.9rem;
  color: var(--charcoal); border: 1px solid var(--border);
}
.pagination .current { background: var(--charcoal); color: var(--offwhite); border-color: var(--charcoal); }

/* Search form */
.search-form { display: flex; gap: 8px; max-width: 480px; margin: 0 auto; }
.search-form input { flex: 1; padding: 10px 14px; border: 1px solid var(--border); border-radius: 4px; font-size: 1rem; }

/* Sidebar-Layout: Content links, Sidebar rechts.
   .with-sidebar nutzt .container für die volle Breite (1180px) und ein
   2-Spalten-Grid; unter 980px stapelt es. Content behält dann automatisch
   die optische read-max-Breite über article__title etc. */
.with-sidebar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 56px;
  padding: 48px 24px;
  align-items: start;
}
.with-sidebar__main { min-width: 0; }
.article--with-sidebar { padding: 0; }
.post-list--with-sidebar { padding: 0; }

@media (max-width: 980px) {
  .with-sidebar { grid-template-columns: 1fr; gap: 40px; }
}

/* Sidebar-Karten — minimal, klare Trennung, kein Schatten-Overkill */
.news-sidebar { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 88px; }
@media (max-width: 980px) { .news-sidebar { position: static; } }

.side-card {
  background: #fff;
  border: 1px solid var(--border);
  padding: 20px 22px;
}
.side-card--cta { background: var(--charcoal); border-color: var(--charcoal); color: var(--offwhite); }
.side-card--cta .side-card__title { color: #fff; }
.side-card--cta .side-card__text { color: rgba(255,255,255,0.78); }
.side-card--cta .side-card__kicker { color: var(--terracotta); }
.side-card--soft { background: var(--soft); border-color: transparent; }
/* Demo-Box — terracotta-akzentuiert, hebt sich von der dunklen
   WP-Plugin-CTA darunter ab und zieht den Blick auf die Live-Demo. */
.side-card--demo { background: var(--soft); border: 1px solid var(--terracotta); border-left-width: 3px; }
.side-card--demo .side-card__kicker { color: var(--terracotta); }

.side-card__kicker {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--terracotta); margin-bottom: 10px;
}
.side-card__title { font-size: 1.05rem; margin: 0 0 8px; line-height: 1.3; }
.side-card__text { font-size: 0.9rem; line-height: 1.55; margin: 0 0 14px; color: var(--slate); }
.side-card__btn {
  display: inline-block; padding: 9px 14px;
  background: var(--terracotta); color: #fff !important;
  font-size: 0.85rem; font-weight: 600; border-radius: 3px;
}
.side-card__btn:hover { background: #8b5840; text-decoration: none; }
/* Gestapelte Demo-Links (mehrere Buttons untereinander) */
.side-card__btn--block { display: block; text-align: center; margin-top: 8px; }
.side-card__btn--ghost {
  background: transparent; color: var(--charcoal) !important;
  border: 1px solid var(--border);
}
.side-card__btn--ghost:hover { background: var(--charcoal); color: #fff !important; }

.side-nav ul, .side-recent ul { list-style: none; margin: 0; padding: 0; }
.side-nav li { padding: 6px 0; border-bottom: 1px dashed var(--border); }
.side-nav li:last-child { border-bottom: 0; }
.side-nav a { color: var(--charcoal); font-size: 0.92rem; font-weight: 500; }
.side-nav a:hover { color: var(--terracotta); text-decoration: none; }

.side-recent li { margin-bottom: 14px; }
.side-recent li:last-child { margin-bottom: 0; }
.side-recent__link {
  display: flex; gap: 12px; align-items: flex-start;
  color: var(--charcoal);
}
.side-recent__link:hover .side-recent__title { color: var(--terracotta); }
.side-recent__thumb {
  flex: 0 0 56px; width: 56px; height: 56px; overflow: hidden;
  border: 1px solid var(--border); background: var(--soft);
}
.side-recent__thumb img { width: 100%; height: 100%; object-fit: cover; }
.side-recent__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.side-recent__date {
  font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--slate);
}
.side-recent__title {
  font-family: var(--serif); font-weight: 600; font-size: 0.98rem;
  line-height: 1.25; color: var(--charcoal);
}

/* Search form */
.search-form { display: flex; gap: 8px; max-width: 480px; margin: 0 auto; }
.search-form input { flex: 1; padding: 10px 14px; border: 1px solid var(--border); border-radius: 4px; font-size: 1rem; }

/* Utilities */
.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;
}

/* ─────────────────────────────────────────────────────────────────
 * Featured-Image-Hero (Single-Post)
 *
 * Vollbreites Bild oben am Beitrag, in 21:9 / 16:9 je nach Viewport.
 * Subtiler Bottom-Fade in den Off-White-Hintergrund — wirkt magazin-
 * artig und vermeidet eine harte Kante zum Titel darunter.
 *
 * Container für Title/Text rückt nach oben (negative margin) damit
 * der Titel optisch näher ans Bild rückt — Editorial-Look.
 * ───────────────────────────────────────────────────────────────── */
.article-hero {
  position: relative;
  margin: 0;
  width: 100%;
  aspect-ratio: 21 / 9;
  max-height: 540px;
  overflow: hidden;
  background: var(--soft);
}
@media (max-width: 760px) {
  .article-hero { aspect-ratio: 16 / 10; max-height: 360px; }
}
.article-hero__img,
.article-hero img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  display: block;
  /* Sanftes Zoom-Reveal beim Erstrendern */
  animation: heroReveal 1.2s cubic-bezier(.22,.61,.36,1) both;
}
@keyframes heroReveal {
  from { transform: scale(1.05); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
/* Bottom-Fade — Bild läuft sanft in den Hintergrund aus */
.article-hero__fade {
  position: absolute;
  inset: auto 0 0 0;
  height: 35%;
  background: linear-gradient(to bottom, rgba(250,250,248,0) 0%, var(--offwhite) 100%);
  pointer-events: none;
}
.with-sidebar--after-hero { padding-top: 24px; }
@media (max-width: 980px) {
  .with-sidebar--after-hero { padding-top: 20px; }
}

/* ─────────────────────────────────────────────────────────────────
 * Post-Cards mit Beitragsbild (Index + Archive)
 *
 * Two-Column-Layout: Bild links (40%), Text rechts. Auf Mobile
 * stapelt es vertikal. Posts ohne Beitragsbild rendern sich
 * Single-Column ohne sichtbaren Layout-Bruch (keine leere Bild-Spalte).
 *
 * Hover: dezenter Image-Zoom + Titel-Color-Shift — schnell, ruhig,
 * keine animierten Schatten oder Translates.
 * ───────────────────────────────────────────────────────────────── */
.post-card--has-image {
  display: grid;
  grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
@media (max-width: 720px) {
  .post-card--has-image {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}
.post-card__image {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--soft);
  border-radius: 2px;
  /* Schmaler Akzent oben für Markenwiedererkennung */
}
.post-card__image::after {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(26,29,31,0.06);
  pointer-events: none;
}
.post-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s cubic-bezier(.22,.61,.36,1);
}
.post-card--has-image:hover .post-card__image img {
  transform: scale(1.04);
}
.post-card__body { min-width: 0; }
.post-card__title a {
  transition: color 0.18s ease;
}

/* ─────────────────────────────────────────────────────────────────
 * Inline-Bilder im Artikel-Body
 *
 * Markdown → <p><img></p>, Publisher promoviert das zu
 * <figure class="md-figure"><img><figcaption>alt</figcaption></figure>.
 *
 * Bewusst BESCHEIDEN dimensioniert: maximal ~520px breit (entspricht
 * gut 70 % der Read-Max-Breite), zentriert, mit angenehmem Abstand
 * davor/danach. Bilder sollen den Lesefluss begleiten, nicht dominieren.
 * Auf Mobile wird auf 100 % Breite umgeschaltet — alles andere wirkt
 * dort verloren.
 * ───────────────────────────────────────────────────────────────── */
.article__body figure,
.article__body .md-figure {
  margin: 36px auto;
  max-width: 520px;
  text-align: center;
}
.article__body figure img,
.article__body .md-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 3px;
  box-shadow: 0 10px 28px -18px rgba(26,29,31,0.30);
  margin: 0 auto;
}
.article__body figcaption {
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--slate);
  text-align: center;
  margin-top: 12px;
  line-height: 1.5;
  letter-spacing: 0.01em;
  font-style: italic;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}

/* Mobile: volle Breite */
@media (max-width: 720px) {
  .article__body figure,
  .article__body .md-figure {
    max-width: 100%;
    margin: 28px 0;
  }
}
