/* Brainfil Blog – Design-Tokens aus der Plattform (plattform/src/tokens.css) */
@font-face { font-family: "Lexend"; src: url("/assets/fonts/lexend.woff2") format("woff2"); font-weight: 300 800; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-latin.woff2") format("woff2"); font-weight: 300 800; font-display: swap; }
:root {
  --paper: #f8f8f1; --surface: #fffefa; --sage: #e7edde; --forest: #253e30; --accent: #4f6b39; --accent-hover: #364b27;
  --ink: #202b24; --muted: #596354; --border: #d9dfd3; --focus: #78530b;
  --font-head: "Lexend", system-ui, sans-serif; --font-body: "Inter", system-ui, sans-serif;
  --radius: 10px; --shadow: 0 8px 24px rgb(37 62 48 / 7%), 0 2px 4px rgb(37 62 48 / 4%); --shell: 1180px;
}
* { box-sizing: border-box; }
html { color-scheme: light; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--forest); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(34px, 4.6vw, 52px); font-weight: 700; }
h2 { font-size: clamp(24px, 2.8vw, 32px); font-weight: 600; }
h3 { font-size: 21px; font-weight: 600; }
p { margin: 0 0 1.1em; }
a { color: var(--accent-hover); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--forest); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
img { max-width: 100%; height: auto; }
.shell { max-width: var(--shell); margin: 0 auto; padding: 0 24px; }
.shell.narrow { max-width: 760px; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--forest); color: #fff; padding: 8px 12px; border-radius: 6px; z-index: 10; }
.skip-link:focus { left: 8px; }
.eyebrow { font-family: var(--font-head); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: 10px; }
.lead { font-size: 20px; color: var(--muted); max-width: 640px; }

/* Header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 5; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 36px; width: auto; }
.brand-label { font-family: var(--font-head); font-size: 15px; color: var(--muted); padding-left: 12px; border-left: 1px solid var(--border); }
.site-nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.site-nav a { font-family: var(--font-head); font-size: 15px; color: var(--ink); text-decoration: none; }
.site-nav a:hover { color: var(--accent-hover); }
.nav-cta { background: var(--forest); color: #fff !important; padding: 9px 16px; border-radius: 999px; }
.nav-cta:hover { background: var(--accent-hover); }

/* Startseite */
.hero { background: var(--sage); padding: 64px 0 56px; }
.hero .lead { font-size: 19px; }
.posts { padding: 48px 24px 72px; display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.post-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.post-card h2 { font-size: 24px; margin: 6px 0 10px; }
.post-card h2 a { color: var(--forest); text-decoration: none; }
.post-card h2 a:hover { text-decoration: underline; }
.post-card p { color: var(--muted); flex: 1; }
.post-meta { font-size: 14px; color: var(--muted); }
.text-link { font-family: var(--font-head); font-weight: 600; text-decoration: none; }
.empty { grid-column: 1 / -1; color: var(--muted); font-size: 18px; }

/* Beitrag */
.post-header { background: var(--sage); padding: 56px 0 44px; }
.post-header .post-meta { margin-top: 12px; }
.post-body { padding: 44px 24px 24px; font-size: 18px; }
.post-body h2 { margin-top: 1.8em; }
.post-body h3 { margin-top: 1.4em; }
.post-body ul, .post-body ol { padding-left: 1.3em; }
.post-body li { margin-bottom: 0.4em; }
.post-body blockquote { margin: 1.4em 0; padding: 12px 20px; border-left: 4px solid var(--accent); background: var(--surface); color: var(--muted); border-radius: 0 var(--radius) var(--radius) 0; }
.post-body pre { background: #1e2a22; color: #eef2e8; padding: 16px 18px; border-radius: var(--radius); overflow-x: auto; font-size: 15px; }
.post-body code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 0.95em; }
.post-body :not(pre) > code { background: var(--sage); padding: 1px 6px; border-radius: 4px; }
.post-body table { border-collapse: collapse; width: 100%; margin: 1.2em 0; display: block; overflow-x: auto; }
.post-body th, .post-body td { border: 1px solid var(--border); padding: 8px 12px; text-align: left; vertical-align: top; }
.post-body th { background: var(--sage); font-family: var(--font-head); font-weight: 600; }
.post-body img { border-radius: var(--radius); box-shadow: var(--shadow); }
.post-body hr { border: 0; border-top: 1px solid var(--border); margin: 2em 0; }
.author-box { display: flex; gap: 20px; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px; margin-top: 24px; }
.author-box img { flex: none; width: 72px; height: 72px; }
.author-box p { margin: 0 0 6px; }
.post-nav { padding: 28px 24px 64px; }
.page { padding: 48px 0 72px; }

/* Footer */
.site-footer { background: var(--forest); color: #e9efe4; padding: 32px 0; margin-top: 24px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.footer-inner p { display: flex; align-items: center; gap: 10px; margin: 0; font-family: var(--font-head); font-size: 15px; }
.footer-inner p img { filter: brightness(0) invert(1); opacity: 0.9; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-inner a { color: #fff; text-decoration: none; font-size: 15px; }
.footer-inner a:hover { text-decoration: underline; }

@media (max-width: 760px) {
  body { font-size: 16px; }
  .header-inner { flex-direction: column; align-items: flex-start; padding-block: 12px; }
  .site-nav { gap: 14px; }
  .brand-label { display: none; }
  .hero { padding: 44px 0 36px; }
  .post-body { font-size: 17px; padding-top: 32px; }
  .author-box { flex-direction: column; }
}
