:root {
  color-scheme: dark;
  --bg: #0f1117;
  --surface: #171a23;
  --surface-2: #1e2230;
  --border: #2a2f3e;
  --text: #e3e6ee;
  --muted: #8b92a5;
  --accent: #5b9dff;
}

* { box-sizing: border-box; }

body {
  margin: 0 auto;
  max-width: 1100px;
  padding: 32px 16px;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
}

h1 { margin: 0 0 4px; font-size: 26px; font-weight: 600; }
.muted { color: var(--muted); }
code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.9em; }

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin: 28px 0;
}

.tile {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}
.tile:hover, .tile:focus-visible {
  background: var(--surface-2);
  border-color: var(--accent);
  transform: translateY(-2px);
}
.tile:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.tile h2 { margin: 0; font-size: 18px; font-weight: 600; }
.tile h2::after { content: " →"; color: var(--accent); }
.tile p { margin: 0; color: var(--muted); flex: 1; }

.tag {
  align-self: flex-start;
  padding: 1px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
}
.path { font-size: 12px; color: var(--muted); }

.section { margin: 36px 0 0; font-size: 15px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.section + .tiles { margin-top: 14px; }

footer { font-size: 13px; }

/* Dokumentseiten (2shell/, eMudhra/) */
.back { margin: 0 0 8px; font-size: 13px; }
.back a { text-decoration: none; }

body.doc { max-width: 900px; }
.doc a { color: var(--accent); }
.doc header { margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.doc header .muted { margin: 4px 0 0; }
.doc h2 { margin: 36px 0 12px; font-size: 21px; font-weight: 600; }
.doc h3 { margin: 28px 0 8px; font-size: 17px; font-weight: 600; }
.doc p, .doc ul, .doc ol { margin: 0 0 12px; }
.doc p, .doc li { overflow-wrap: anywhere; }
.doc li { margin: 4px 0; }
.doc :not(pre) > code {
  padding: 1px 5px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 4px;
}
.doc pre {
  margin: 0 0 16px;
  padding: 12px 14px;
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  line-height: 1.45;
}
.doc pre code { font-size: 13px; }
.table-wrap { margin: 0 0 16px; overflow-x: auto; }
.doc table { border-collapse: collapse; width: 100%; font-size: 14px; }
.doc th, .doc td { padding: 6px 10px; border: 1px solid var(--border); text-align: left; vertical-align: top; }
.doc th { background: var(--surface-2); font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  .tile { transition: none; }
  .tile:hover, .tile:focus-visible { transform: none; }
}
