/* seo-maus.de – schlankes Stylesheet ohne externe Schriften (DSGVO-freundlich) */

:root {
  --bg: #fbfaf8;
  --surface: #ffffff;
  --text: #1f1d24;
  --muted: #5d5868;
  --line: #e6e2ec;
  --accent: #5b3fb0;
  --accent-soft: #efe9fb;
  --code-bg: #f3f1f6;
  --radius: 10px;
  --measure: 42rem;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16141b;
    --surface: #1e1b25;
    --text: #ece9f2;
    --muted: #a8a2b5;
    --line: #322d3d;
    --accent: #b9a3f5;
    --accent-soft: #2a2340;
    --code-bg: #24202d;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.7;
}

a { color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--surface); padding: 0.5rem 0.75rem; z-index: 10; }

.wrap { max-width: var(--measure); margin: 0 auto; padding: 0 1rem; }

/* Kopf */
.site-header { border-bottom: 1px solid var(--line); background: var(--surface); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 0.55rem; color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; }
.brand .tld { color: var(--muted); font-weight: 500; }
.site-header nav ul { display: flex; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
.site-header nav a { color: var(--muted); text-decoration: none; font-weight: 500; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: var(--text); }
.site-header nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 0.4em; }

main.wrap { padding-top: 2.5rem; padding-bottom: 3.5rem; }

/* Fließtext */
h1, h2, h3 { line-height: 1.25; letter-spacing: -0.015em; }
h1 { font-size: clamp(1.8rem, 1.4rem + 1.8vw, 2.4rem); margin: 0 0 1rem; }
h2 { font-size: 1.45rem; margin: 2.5rem 0 0.75rem; }
h3 { font-size: 1.15rem; margin: 2rem 0 0.5rem; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.1rem; }
.prose li { margin-bottom: 0.35rem; }
.prose img { max-width: 100%; height: auto; border-radius: var(--radius); }
.prose blockquote { margin: 1.5rem 0; padding: 0.25rem 0 0.25rem 1rem; border-left: 3px solid var(--accent); color: var(--muted); }

code { font-family: var(--mono); font-size: 0.88em; background: var(--code-bg); padding: 0.1em 0.35em; border-radius: 4px; }
pre { background: var(--code-bg); padding: 1rem; border-radius: var(--radius); overflow-x: auto; line-height: 1.5; margin: 0 0 1.25rem; }
pre code { background: none; padding: 0; font-size: 0.85rem; }

.table-scroll, .prose table { display: block; overflow-x: auto; }
.prose table { border-collapse: collapse; width: 100%; margin: 0 0 1.5rem; font-size: 0.95rem; }
.prose th, .prose td { text-align: left; padding: 0.5rem 0.75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-weight: 600; }

/* Artikel */
.breadcrumb { font-size: 0.9rem; color: var(--muted); margin-bottom: 1rem; }
.breadcrumb a { color: var(--muted); }
.article-header { margin-bottom: 2rem; }
.meta { color: var(--muted); font-size: 0.95rem; margin: 0; }
.meta a { color: inherit; }

/* Listen von Artikeln */
.post-list { list-style: none; padding: 0; margin: 1rem 0 1.5rem; display: grid; gap: 1rem; }
.post-list li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.15rem; }
.post-list a { font-weight: 650; font-size: 1.1rem; text-decoration: none; color: var(--text); }
.post-list a:hover { color: var(--accent); }
.post-list p { margin: 0.35rem 0 0.25rem; color: var(--muted); font-size: 0.97rem; }
.post-list time { font-size: 0.85rem; color: var(--muted); }

/* Autorenkasten */
.authorbox { display: flex; gap: 1rem; align-items: flex-start; margin-top: 3rem; padding: 1.15rem; background: var(--accent-soft); border-radius: var(--radius); }
.authorbox p { margin: 0; font-size: 0.97rem; }
.authorbox-name { font-weight: 650; margin-bottom: 0.2rem !important; }
.authorbox img { border-radius: 50%; flex: none; }
.avatar { flex: none; display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: var(--surface); font-weight: 700; letter-spacing: 0.02em; }
.avatar-large { width: 96px; height: 96px; font-size: 1.6rem; }

/* Profil */
.profile { display: flex; gap: 1.25rem; align-items: center; margin-bottom: 2rem; flex-wrap: wrap; }
.profile h1 { margin-bottom: 0.25rem; }
.profile img { border-radius: 50%; }
.profile-role { margin: 0 0 0.4rem; color: var(--muted); }
.profile-links { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; padding: 0; margin: 0; }

.more { margin-top: 3rem; }

/* Fuß */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 0.92rem; }
.footer-inner { padding-top: 1.5rem; padding-bottom: 2rem; }
.footer-inner p { margin: 0 0 0.6rem; }
.footer-inner ul { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; list-style: none; padding: 0; margin: 0; }
.footer-inner a { color: var(--muted); }

.placeholder { background: #fff3c4; color: #5a4600; padding: 0 0.25em; border-radius: 3px; }
@media (prefers-color-scheme: dark) { .placeholder { background: #4a3d0a; color: #fbe8a6; } }
