/* ═══════════════════════════════════════════════════════════════════
   blog.css — Gemeinsame Styles für Blog-Übersicht und Posts
   Einbinden: <link rel="stylesheet" href="/blog.css" />
   (zusätzlich zu /fonts.css)
   ═══════════════════════════════════════════════════════════════════ */

/* ── Tokens ── */
:root {
  --canvas:      #faf8f4;
  --surface:     #ffffff;
  --off:         #f3efe7;
  --off-deep:    #e8e2d4;
  --ink:         #0f1923;
  --ink-mid:     #1e2d3d;
  --slate:       #4a5568;
  --muted:       #718096;
  --subtle:      #a0aec0;
  --rule:        rgba(15,25,35,0.09);
  --rule-md:     rgba(15,25,35,0.15);
  --accent:      #a37410;
  --accent-lt:   #c89320;
  --accent-pale: #f5edd8;
  --accent-rule: rgba(163,116,16,0.22);
  --pos:         #1a6b45;
  --pos-pale:    #d6ecdf;
  --shadow-sm:   0 1px 8px rgba(15,25,35,0.05);
  --shadow-md:   0 4px 24px rgba(15,25,35,0.08);
  --font-display:'Fraunces', Georgia, serif;
  --font-body:   'DM Sans', system-ui, sans-serif;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--canvas);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Layout ── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 56px; }
.eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--accent);
}

/* ── Nav ── */
nav.top {
  height: 72px; padding: 0 56px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--rule);
  background: var(--canvas);
  position: sticky; top: 0; z-index: 100;
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-mark {
  width: 38px; height: 38px; border-radius: 50%; background: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
}
.brand-name {
  font-family: var(--font-display); font-size: 18px; font-weight: 500;
  letter-spacing: -0.015em; line-height: 1; color: var(--ink);
}
.nav-links { display: flex; align-items: center; gap: 36px; font-size: 14px; }
.nav-links a { color: var(--slate); text-decoration: none; transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); font-weight: 500; }
.nav-cta-group { display: flex; align-items: center; gap: 12px; }
.btn-text { color: var(--ink); text-decoration: none; font-size: 14px; padding: 8px 16px; }
.btn-text:hover { opacity: 0.7; }
.btn-primary {
  background: var(--ink); color: #fff; text-decoration: none;
  font-size: 14px; font-weight: 500; padding: 10px 20px; border-radius: 8px;
  display: inline-flex; align-items: center; gap: 8px; transition: background .2s;
}
.btn-primary:hover { background: var(--ink-mid); }

/* ── Footer ── */
footer.site {
  max-width: 1280px; margin: 0 auto; padding: 32px 56px;
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--rule); font-size: 13px; color: var(--muted);
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-mark { display: inline-flex; align-items: center; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--ink); }

/* ── Blog-Übersicht ── */
.blog-header { padding: 64px 56px 48px; max-width: 1280px; margin: 0 auto; }
.blog-header h1 {
  font-family: var(--font-display); font-size: clamp(36px, 4vw, 52px);
  font-weight: 300; letter-spacing: -0.022em; margin: 14px 0 12px;
}
.blog-header h1 em { font-style: italic; color: var(--ink-mid); }
.blog-header p { font-size: 17px; color: var(--slate); max-width: 540px; }

.post-grid {
  max-width: 1280px; margin: 0 auto; padding: 0 56px 96px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.post-card {
  background: var(--surface); border: 1px solid var(--rule-md);
  border-radius: 16px; padding: 28px; text-decoration: none; color: inherit;
  display: flex; flex-direction: column; gap: 12px;
  transition: box-shadow .2s, transform .2s;
}
.post-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.post-card .card-tag {
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--accent);
}
.post-card h2 {
  font-family: var(--font-display); font-size: 20px; font-weight: 400;
  line-height: 1.3; letter-spacing: -0.012em;
}
.post-card p { font-size: 14px; color: var(--slate); line-height: 1.6; flex: 1; }
.post-card .card-meta { font-size: 12px; color: var(--subtle); margin-top: 4px; }

/* ── Breadcrumb ── */
.breadcrumb {
  max-width: 780px; margin: 0 auto; padding: 24px 0 0;
  font-size: 12.5px; color: var(--muted);
  display: flex; align-items: center; gap: 6px;
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb .sep { opacity: 0.4; }

/* ── Post-Layout ── */
.post-wrap { max-width: 780px; margin: 0 auto; padding: 0 56px; }

.post-header { padding: 36px 0 40px; border-bottom: 1px solid var(--rule); margin-bottom: 48px; }
.post-header h1 {
  font-family: var(--font-display); font-size: clamp(30px, 3.5vw, 44px);
  font-weight: 300; line-height: 1.12; letter-spacing: -0.022em;
  margin: 14px 0 18px;
}
.post-header h1 em { font-style: italic; color: var(--ink-mid); }
.post-meta { display: flex; gap: 20px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.post-meta span { display: inline-flex; align-items: center; gap: 6px; }

/* ── Post-Body Typografie ── */
.post-body { padding-bottom: 64px; }

.post-body h2 {
  font-family: var(--font-display); font-size: 26px; font-weight: 400;
  letter-spacing: -0.015em; margin: 52px 0 16px; line-height: 1.2;
}
.post-body h3 {
  font-size: 17px; font-weight: 600; margin: 32px 0 10px; color: var(--ink-mid);
}
.post-body p { margin-bottom: 20px; font-size: 17px; line-height: 1.75; color: var(--slate); }
.post-body p:first-child { font-size: 18px; color: var(--ink); font-weight: 300; }
.post-body a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; }
.post-body a:hover { color: var(--accent-lt); }
.post-body strong { color: var(--ink); font-weight: 600; }

.post-body ul, .post-body ol {
  margin: 0 0 20px 24px; font-size: 17px; line-height: 1.75; color: var(--slate);
}
.post-body li { margin-bottom: 6px; }

.post-body blockquote {
  margin: 36px 0; padding: 20px 24px;
  border-left: 3px solid var(--accent);
  background: var(--accent-pale); border-radius: 0 8px 8px 0;
  font-size: 17px; color: var(--ink-mid); font-style: italic;
}

.post-body table {
  width: 100%; border-collapse: collapse; margin: 32px 0; font-size: 15px;
}
.post-body th {
  text-align: left; padding: 10px 14px; background: var(--off);
  font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); border-bottom: 1px solid var(--off-deep);
}
.post-body td { padding: 12px 14px; border-bottom: 1px solid var(--rule); color: var(--slate); }
.post-body tr:last-child td { border-bottom: none; }
.post-body tr:hover td { background: var(--off); }

/* ── Inline-CTA im Post ── */
.post-cta-box {
  margin: 48px 0; padding: 32px 36px;
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-mid) 100%);
  border-radius: 16px; color: #fff;
}
.post-cta-box p { color: rgba(255,255,255,0.75); font-size: 15px; margin-bottom: 20px; }
.post-cta-box h3 {
  font-family: var(--font-display); font-size: 22px; font-weight: 400;
  margin-bottom: 8px; color: #fff;
}
.post-cta-box .cta-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: #fff; text-decoration: none;
  font-size: 15px; font-weight: 500; padding: 12px 22px;
  border-radius: 8px; transition: background .2s;
}
.post-cta-box .cta-btn:hover { background: var(--accent-lt); }

/* ── Disclaimer ── */
.post-disclaimer {
  margin-top: 56px; padding: 16px 20px;
  border: 1px solid var(--rule-md); border-radius: 8px;
  font-size: 12.5px; color: var(--muted); line-height: 1.6;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .post-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  nav.top { padding: 0 20px; }
  .nav-links { display: none; }
  .blog-header { padding: 40px 20px 32px; }
  .post-grid { grid-template-columns: 1fr; padding: 0 20px 64px; }
  .post-wrap { padding: 0 20px; }
  footer.site { padding: 24px 20px; flex-direction: column; gap: 16px; text-align: center; }
}
