:root {
  --bg: #fbfbf9;
  --surface: #ffffff;
  --ink: #1d2126;
  --ink-soft: #4a525c;
  --muted: #7a828c;
  --line: #e6e6e1;
  --accent: #2a5d84;
  --accent-soft: #eaf1f7;
  --radius: 10px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Charter", "Georgia", "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

/* Kopf */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 650; font-size: 18px; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 30px; height: 30px; border-radius: 8px; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 15px; font-weight: 700; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a { color: var(--ink-soft); padding: 6px 12px; border-radius: 8px; font-size: 15px; }
.nav a:hover { background: var(--accent-soft); color: var(--accent); text-decoration: none; }

/* Startseite */
.hero { padding: 64px 0 40px; }
.hero h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(32px, 5vw, 48px); line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 14px; max-width: 760px; }
.hero p { color: var(--ink-soft); font-size: 19px; max-width: 640px; margin: 0; }

.feature { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; color: var(--ink); transition: border-color .15s; }
.feature:hover { text-decoration: none; border-color: #c9d6e2; }
.feature h2 { font-family: var(--serif); font-size: clamp(24px, 3.4vw, 32px); line-height: 1.25; margin: 10px 0 10px; font-weight: 600; }
.feature p { color: var(--ink-soft); margin: 0 0 16px; max-width: 720px; }
.readmore { color: var(--accent); font-weight: 600; font-size: 15px; }

.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 20px 0 8px; }
.cats a { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; color: var(--ink); font-weight: 600; display: flex; flex-direction: column; }
.cats a:hover { text-decoration: none; border-color: #c9d6e2; }
.cats small { color: var(--muted); font-weight: 400; font-size: 14px; }

.section-title { font-size: 20px; font-weight: 650; margin: 44px 0 6px; }

.list { display: flex; flex-direction: column; }
.card { padding: 24px 0; border-bottom: 1px solid var(--line); }
.card:last-child { border-bottom: 0; }
.card h2 { font-family: var(--serif); font-size: 23px; line-height: 1.3; font-weight: 600; margin: 6px 0 6px; }
.card h2 a { color: var(--ink); }
.card p { color: var(--ink-soft); margin: 0; max-width: 760px; }

.meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; color: var(--muted); align-items: center; }
.cat { background: var(--accent-soft); color: var(--accent); padding: 2px 10px; border-radius: 999px; font-weight: 600; font-size: 13px; }
.cat:hover { text-decoration: none; }

.page-head { padding: 48px 0 8px; }
.page-head h1 { font-family: var(--serif); font-size: 40px; font-weight: 600; margin: 0; }
.eyebrow { color: var(--muted); margin: 0 0 4px; font-size: 15px; }

/* Artikel */
.article-wrap { max-width: 760px; }
.article { padding: 48px 0 8px; }
.article-head h1 { font-family: var(--serif); font-size: clamp(30px, 4.6vw, 42px); line-height: 1.18; font-weight: 600; letter-spacing: -0.01em; margin: 14px 0 14px; }
.lead { font-size: 20px; color: var(--ink-soft); margin: 0 0 28px; line-height: 1.5; }

.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin: 0 0 32px; font-size: 15px; }
.toc strong { display: block; margin-bottom: 6px; }
.toc ol { margin: 0; padding-left: 20px; }
.toc li { margin: 3px 0; }

.prose { font-family: var(--serif); font-size: 19px; line-height: 1.7; }
.prose h2 { font-family: var(--sans); font-size: 25px; line-height: 1.3; margin: 44px 0 12px; font-weight: 650; letter-spacing: -0.01em; scroll-margin-top: 84px; }
.prose h3 { font-family: var(--sans); font-size: 20px; margin: 30px 0 8px; font-weight: 650; }
.prose p { margin: 0 0 18px; }
.prose ul, .prose ol { margin: 0 0 20px; padding-left: 24px; }
.prose li { margin: 6px 0; }
.prose strong { font-weight: 650; }
.prose code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.85em; background: #f1f1ec; padding: 2px 6px; border-radius: 5px; }
.prose pre { background: #f4f4ef; border-radius: var(--radius); padding: 16px 18px; overflow-x: auto; font-size: 15px; line-height: 1.55; }
.prose pre code { background: none; padding: 0; }
.prose a { text-decoration: underline; text-decoration-color: #b9cbdb; text-underline-offset: 3px; }

.note { background: var(--accent-soft); border-radius: var(--radius); padding: 16px 20px; margin: 0 0 22px; font-family: var(--sans); font-size: 16px; line-height: 1.6; }
.note p:last-child { margin-bottom: 0; }

.table { overflow-x: auto; margin: 0 0 24px; }
.prose table { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: 15px; line-height: 1.45; }
.prose th { text-align: left; font-weight: 650; color: var(--ink); background: #f4f4ef; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0 0; }
.tags span { font-size: 13px; color: var(--ink-soft); background: #f1f1ec; padding: 3px 10px; border-radius: 999px; }

.more { border-top: 1px solid var(--line); margin-top: 40px; padding: 28px 0 8px; }
.more h2 { font-size: 18px; margin: 0 0 14px; }
.more-list { display: grid; gap: 12px; }
.more-list a { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; color: var(--ink); font-weight: 600; display: flex; flex-direction: column; }
.more-list a:hover { text-decoration: none; border-color: #c9d6e2; }
.more-list span { color: var(--muted); font-size: 13px; font-weight: 400; }

/* Fuß */
.site-footer { border-top: 1px solid var(--line); margin-top: 72px; background: var(--surface); }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 24px 20px; font-size: 14px; color: var(--muted); }
.footer-inner p { margin: 0; }
.footer-inner a { color: var(--ink-soft); margin-left: 16px; }
.footer-inner a:first-child { margin-left: 0; }

@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .header-inner { padding: 10px 0; }
  .nav { margin: 0 -8px; gap: 0; flex-wrap: nowrap; overflow-x: auto; max-width: calc(100% + 16px); }
  .nav a { padding: 6px 8px; font-size: 14px; white-space: nowrap; }
  .hero { padding: 40px 0 28px; }
  .feature { padding: 22px; }
  .cats { grid-template-columns: repeat(2, 1fr); }
  .prose { font-size: 18px; }
  .lead { font-size: 18px; }
}
