/* kotschmar.net — Startseite und Rechtstexte
   Systemschrift, heller und dunkler Modus, keine externen Ressourcen. */

:root {
  --bg: #f5f5f7;
  --surface: #ffffff;
  --text: #1d1d1f;
  --text-muted: #6e6e73;
  --separator: rgba(60, 60, 67, .18);
  --accent: #007aff;
  --accent-soft: rgba(0, 122, 255, .08);
  --shadow-card: 0 1px 2px rgba(0, 0, 0, .05), 0 0 0 .5px rgba(0, 0, 0, .06);
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1c1e;
    --surface: #2c2c2e;
    --text: #f5f5f7;
    --text-muted: #98989d;
    --separator: rgba(235, 235, 245, .16);
    --accent: #0a84ff;
    --accent-soft: rgba(10, 132, 255, .14);
    --shadow-card: 0 0 0 .5px rgba(255, 255, 255, .08);
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font: 15px/1.55 var(--sans);
  color: var(--text);
  background: var(--bg);
}

a { color: var(--accent); }

.wrap { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 16px; }

main { flex: 1; }

/* ---------- Startseite: Visitenkarte ---------- */

.karte {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 40px 16px;
}

.karte .inner { width: 100%; max-width: 420px; text-align: center; }

.mono {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  margin: 0 auto 18px;
  border-radius: 50%;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: .02em;
  color: #fff;
  background: linear-gradient(145deg, #3a3a3c, #1d1d1f);
}

@media (prefers-color-scheme: dark) {
  .mono { background: linear-gradient(145deg, #48484a, #2c2c2e); }
}

.karte h1 {
  margin: 0 0 26px;
  font-size: clamp(26px, 6vw, 34px);
  font-weight: 600;
  letter-spacing: -.02em;
}

.kachel {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  text-align: left;
  color: inherit;
  text-decoration: none;
  background: var(--surface);
  border-radius: 14px;
  box-shadow: var(--shadow-card);
  transition: transform .12s ease, box-shadow .12s ease;
}

.kachel:hover, .kachel:focus-visible {
  transform: translateY(-1px);
  box-shadow: var(--shadow-card), 0 6px 18px rgba(0, 0, 0, .08);
}

.kachel:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: 2px; }

.kachel svg {
  flex: none;
  width: 40px;
  height: 40px;
  padding: 7px;
  border-radius: 10px;
  color: #fff;
  background: var(--accent);
}

.kachel strong { display: block; font-size: 16px; font-weight: 600; }

.kachel span { display: block; margin-top: 1px; color: var(--text-muted); font-size: 14px; }

.kachel .pfeil { margin-left: auto; color: var(--accent); font-size: 22px; line-height: 1; }

footer.site.mitte .wrap { justify-content: center; }

/* ---------- Rechtstexte ---------- */

header.site {
  border-bottom: .5px solid var(--separator);
  background: var(--surface);
}

header.site .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding-top: 12px;
  padding-bottom: 12px;
}

header.site h1 { margin: 0; font-size: 16px; font-weight: 600; }

header.site a { font-size: 14px; text-decoration: none; }

.prose { padding-top: 24px; padding-bottom: 40px; }

.prose h2 { font-size: 17px; font-weight: 600; margin: 30px 0 8px; }

.prose p, .prose ul { margin: 0 0 12px; }

.prose ul { padding-left: 20px; }

.prose code {
  font-family: var(--mono);
  font-size: .92em;
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--accent-soft);
}

.notice {
  margin: 0 0 18px;
  padding: 13px 16px;
  border-radius: 10px;
  background: var(--accent-soft);
}

table.tbl { width: 100%; border-collapse: collapse; margin: 8px 0 16px; font-size: 14px; }

table.tbl th, table.tbl td {
  padding: 7px 8px;
  text-align: left;
  vertical-align: top;
  border-bottom: .5px solid var(--separator);
  overflow-wrap: anywhere;
}

table.tbl th { font-size: 12px; font-weight: 600; color: var(--text-muted); }

/* ---------- Fußzeile ---------- */

footer.site {
  padding: 18px 0 24px;
  border-top: .5px solid var(--separator);
  font-size: 13px;
  color: var(--text-muted);
}

footer.site .wrap { display: flex; flex-wrap: wrap; gap: 6px 18px; }

footer.site a { color: var(--text-muted); }

footer.site a:hover { color: var(--accent); }

@media print {
  body { background: #fff; color: #000; }
  header.site, footer.site { border: 0; }
  a { color: #000; }
}
