/* =============================================================================
   baumgertel.com – Blog (nur Deutsch, unter /de/blog/)
   Ergänzt main.css (wird danach geladen) und ändert dort nichts.
   Nutzt dieselben Farben, Schriften und Breakpoints (768 px).
============================================================================= */

/* ---------- Kopf von Übersicht und Artikel ---------- */
.blog-head { max-width: 46rem; }
.blog-head .hero__eyebrow a { text-decoration: none; }
.blog-head .hero__subtitle { max-width: 40ch; }
.article__title { font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.75rem); max-width: 22ch; }
.article__meta { margin-top: 24px; font-family: var(--mono); font-size: .8rem; color: var(--c-muted); }

/* ---------- Übersicht: Liste wie „Typische Ausgangslagen“ ---------- */
.posts { margin-top: 56px; border-top: 1px solid var(--c-line); }
.post {
  position: relative; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 8px 32px;
  padding: 26px 0; border-bottom: 1px solid var(--c-line);
}
.post__title { font-size: var(--fs-body); font-weight: 700; line-height: 1.2; color: var(--c-primary); text-transform: lowercase; }
.post__title a { text-decoration: none; }
.post__title a::after { content: ""; position: absolute; inset: 0; } /* ganze Zeile klickbar */
.post__topic { display: block; margin-top: 6px; font-family: var(--mono); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--c-muted); }
.post p { font-size: 1rem; color: var(--c-muted); }
.post:hover .post__title, .post:focus-within .post__title { color: var(--c-primary-hover); }
@media (max-width: 680px) { .post { grid-template-columns: 1fr; } }

/* ---------- Artikeltext ---------- */
.prose {
  margin-top: 72px; margin-left: 8.5%; max-width: 68ch;
  font-size: var(--fs-body); line-height: 1.5; color: var(--c-muted);
}
.prose > * + * { margin-top: 1em; }
.prose h2 {
  margin-top: 2.2em; padding-top: 18px; border-top: 6px solid var(--c-text);
  font-size: clamp(1.5rem, 1.3rem + .9vw, 2rem); color: var(--c-text);
}
.prose h2 + * { margin-top: .8em; }
.prose h3 { margin-top: 1.8em; }
.prose strong { font-weight: 700; color: var(--c-text); }
.prose a { color: var(--c-primary); text-underline-offset: 3px; }
.prose a:hover, .prose a:focus-visible { color: var(--c-primary-hover); }
.prose code {
  padding: .1em .35em; border-radius: 6px; overflow-wrap: anywhere;
  font: .85em/1.4 var(--mono); color: var(--c-text); background: rgba(255, 255, 255, .08);
}
.prose pre { margin-top: 1.4em; }
.prose pre code { padding: 0; background: none; overflow-wrap: normal; }

/* Listen */
.prose ol, .prose ul { padding-left: 1.4em; }
.prose li + li { margin-top: .55em; }
.prose li::marker { color: var(--c-primary); font-weight: 700; }

/* Checklisten (- [ ] im Markdown): Kästchen statt Aufzählungszeichen */
.prose .checklist { list-style: none; padding-left: 0; }
.checklist li { position: relative; padding-left: 32px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 14px; height: 14px;
  border: 2px solid var(--c-primary); border-radius: 3px;
}

/* Tabellen: Linien wie FAQ, Kopfzeile wie Mono-Labels; auf schmalen Geräten seitlich scrollbar */
.table-wrap { margin-top: 1.6em; overflow-x: auto; }
.table-wrap + * { margin-top: 1.6em; }
.prose table { width: 100%; min-width: 34rem; border-collapse: collapse; font-size: 1rem; line-height: 1.4; }
.prose th {
  padding: 0 16px 12px 0; text-align: left; vertical-align: bottom;
  font: 400 .75rem/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--c-muted);
  border-bottom: 1px solid var(--c-line);
}
.prose td { padding: 14px 16px 14px 0; vertical-align: top; border-bottom: 1px solid var(--c-faint); }
.prose td:first-child { font-weight: 700; color: var(--c-text); }
.prose td code { font-size: .8em; }

/* Quellenzeile */
.prose .sources { margin-top: 2.4em; font-family: var(--mono); font-size: .8rem; line-height: 1.6; }
.prose .sources strong { font-weight: 400; color: var(--c-text); }

/* ---------- Abschluss: Gesprächsangebot und weitere Beiträge ---------- */
.article__cta {
  margin: 96px 0 0 8.5%; max-width: 68ch; padding: 32px;
  display: grid; gap: 16px; justify-items: start;
  border: 2px solid var(--c-text); border-radius: 32px; background: rgba(0, 0, 0, .3);
}
.article__cta h2 { font-size: clamp(1.5rem, 1.3rem + .9vw, 2rem); }
.article__cta p { font-size: 1rem; color: var(--c-muted); }

.more { margin: 72px 0 0 8.5%; max-width: 68ch; }
.more__label { font-family: var(--mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--c-muted); }
.more .posts { margin-top: 16px; }
.more .post { grid-template-columns: 1fr; padding: 18px 0; }

@media (max-width: 768px) {
  .prose, .article__cta, .more { margin-left: 0; }
  .prose { margin-top: 48px; }
  .article__cta { margin-top: 72px; padding: 24px; border-radius: 24px; }
}
