:root {
  --bg: #f4f2ec;
  --surface: #ffffff;
  --text: #1c2520;
  --muted: #5f6d64;
  --line: #dedacf;
  --green: #1d3a2a;
  --accent: #e8743b;
  --accent-dark: #c85a24;
  --shadow: 0 1px 2px rgba(20, 30, 25, .06), 0 8px 24px rgba(20, 30, 25, .06);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111613;
    --surface: #1a221d;
    --text: #e9ede9;
    --muted: #9aa9a0;
    --line: #2a352f;
    --green: #2c5a40;
    --shadow: none;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh; display: flex; flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
.wrap { flex: 1; width: 100%; max-width: 880px; margin: 0 auto; padding: 72px 16px 40px; }

.hero { margin-bottom: 44px; }
.mark {
  width: 56px; height: 56px; border-radius: 14px; background: var(--green); color: #fff;
  display: grid; place-items: center; font-weight: 800; letter-spacing: .5px; margin-bottom: 22px;
}
h1 { font-size: clamp(34px, 6vw, 48px); line-height: 1.1; margin: 0 0 14px; letter-spacing: -.5px; }
.lead { font-size: 18px; color: var(--muted); max-width: 620px; margin: 0; }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 18px; }
.tile {
  position: relative; display: flex; gap: 16px; align-items: flex-start;
  padding: 22px 22px 22px 20px; border-radius: 16px; text-decoration: none; color: inherit;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: transform .15s ease, border-color .15s ease;
}
.tile:hover { transform: translateY(-3px); border-color: var(--accent); }
.tile:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.tile-icon { flex: 0 0 auto; width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; }
.tile-icon.systems { background: var(--green); color: #fff; }
.tile-icon.clay { background: color-mix(in srgb, var(--accent) 16%, transparent); }
.tile-body { flex: 1; min-width: 0; padding-right: 18px; }
.tile-kicker { font-size: 12px; font-weight: 700; letter-spacing: .4px; color: var(--accent-dark); }
@media (prefers-color-scheme: dark) { .tile-kicker { color: var(--accent); } }
.tile h2 { font-size: 20px; margin: 2px 0 6px; }
.tile p { margin: 0; color: var(--muted); font-size: 15px; }
.tile-go { position: absolute; right: 20px; top: 20px; font-size: 20px; color: var(--muted); transition: transform .15s ease, color .15s ease; }
.tile:hover .tile-go { transform: translateX(3px); color: var(--accent); }

.foot { text-align: center; color: var(--muted); font-size: 13px; padding: 24px 16px 32px; }

.notfound { text-align: center; padding-top: 120px; }
.notfound a { color: var(--accent-dark); font-weight: 600; }

/* Handy: lange Wörter trennen, Abstände straffen */
.tile h2 { hyphens: manual; -webkit-hyphens: manual; overflow-wrap: break-word; }
@media (max-width: 520px) {
  .wrap { padding-top: 40px; }
  .hero { margin-bottom: 28px; }
  .mark { width: 48px; height: 48px; margin-bottom: 16px; }
  .tiles { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .tile { padding: 18px 16px; gap: 14px; }
  .tile h2 { font-size: 18px; }
  .tile-icon { width: 42px; height: 42px; }
  .tile-go { right: 14px; top: 16px; }
}
