:root {
  --bg: #f8f9fa;
  --fg: #212529;
  --muted: #868e96;
  --card: #fff;
  --line: #e9ecef;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #16181c; --fg: #f1f3f5; --muted: #909296; --card: #212529; --line: #343a40; }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 18px/1.4 system-ui, -apple-system, "Segoe UI", sans-serif;
}
header, main { max-width: 960px; margin: 0 auto; padding: 24px 16px; }
h1 { margin: 0 0 16px; font-size: 1.4rem; font-weight: 600; letter-spacing: -.01em; }
nav { display: flex; gap: 8px; flex-wrap: wrap; }
nav button {
  font: inherit;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--fg);
  cursor: pointer;
}
nav button[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.kacheln { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
.kachel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 160px;
  padding: 16px;
  text-align: center;
  text-decoration: none;
  color: var(--fg);
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 5px solid var(--farbe);
  border-radius: 14px;
  transition: transform .12s, box-shadow .12s;
}
.kachel:hover, .kachel:focus-visible { transform: translateY(-3px); box-shadow: 0 6px 18px rgb(0 0 0 / .12); outline: none; }
.kachel .icon { font-size: 2.6rem; line-height: 1; }
.kachel .titel { font-weight: 600; }
.kachel .fach { font-size: .8rem; color: var(--muted); }
