/* Anchorpost – öffentliche Website. Keine externen Schriften, keine Skripte, kein Tracking. */

:root {
  --bg: #f7f6f2;
  --surface: #ffffff;
  --text: #1d2730;
  --muted: #5b6672;
  --border: #e2e0d8;
  --accent: #17405f;
  --accent-soft: #e6eef4;
  --placeholder-bg: #fff3c4;
  --placeholder-border: #d9a400;
  --radius: 10px;
  --max: 46rem;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }

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

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

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

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

/* Kopfzeile */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.9rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 650;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.brand svg { width: 1.75rem; height: 1.75rem; color: var(--accent); flex: none; }
.status-pill {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  white-space: nowrap;
}

/* Inhalt */
main { padding-block: 2.5rem 3.5rem; }

h1 {
  font-size: clamp(1.75rem, 5vw, 2.4rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}
h2 {
  font-size: 1.3rem;
  line-height: 1.3;
  margin: 2.5rem 0 0.6rem;
  letter-spacing: -0.01em;
}
h3 { font-size: 1.05rem; margin: 1.6rem 0 0.4rem; }
p, ul, ol { margin: 0 0 1rem; }
ul, ol { padding-left: 1.3rem; }
li { margin-bottom: 0.35rem; }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--accent-soft);
  padding: 0.05em 0.35em;
  border-radius: 4px;
  overflow-wrap: anywhere;
}

.lead { font-size: 1.2rem; color: var(--muted); max-width: 38rem; }
.meta { color: var(--muted); font-size: 0.92rem; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
}
.card h2, .card h3 { margin-top: 0; font-size: 1.05rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.98rem; }

.box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem 1.3rem;
  margin: 1.5rem 0;
}
.box > :last-child { margin-bottom: 0; }

.table-wrap { overflow-x: auto; margin: 1rem 0 1.25rem; }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; background: var(--surface); }
th, td { text-align: left; vertical-align: top; padding: 0.6rem 0.75rem; border: 1px solid var(--border); }
th { background: var(--accent-soft); font-weight: 600; }

/* Deutlich sichtbare Platzhalter – müssen vor Veröffentlichung ersetzt werden */
.platzhalter {
  background: var(--placeholder-bg);
  border: 1px dashed var(--placeholder-border);
  border-radius: 4px;
  padding: 0 0.3em;
  font-weight: 600;
}

.toc { font-size: 0.95rem; }
.toc ol { margin: 0; }

/* Fußzeile */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.92rem;
  color: var(--muted);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-block: 1.5rem;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.site-footer a { color: var(--muted); }
.site-footer a[aria-current="page"] { color: var(--text); font-weight: 600; }

@media (max-width: 30rem) {
  body { font-size: 1rem; }
  main { padding-block: 1.75rem 2.5rem; }
  .status-pill { font-size: 0.75rem; }
}
