/* EDEP – Projektseite. Keine externen Ressourcen, keine Cookies, kein Tracking. */
:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --fg: #16191d;
  --muted: #58616c;
  --line: #e2e5e9;
  --accent: #0a5bd3;
  --accent-fg: #ffffff;
  --ok: #1a7f37;
  --warn: #9a6700;
  --bad: #c62828;
  --code-bg: #0f141a;
  --code-fg: #e6edf3;
  --radius: 12px;
  --max: 1080px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1117;
    --surface: #161b22;
    --fg: #e6edf3;
    --muted: #8d96a0;
    --line: #2d333b;
    --accent: #4c9aff;
    --accent-fg: #0d1117;
    --ok: #3fb950;
    --warn: #d29922;
    --bad: #f85149;
    --code-bg: #010409;
  }
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  overflow-wrap: break-word;
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font:
    16px/1.6 system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    sans-serif;
  -webkit-text-size-adjust: 100%;
}
a {
  color: var(--accent);
}
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
code,
pre {
  font-variant-ligatures: none;
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
}
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px;
}

/* Kopfzeile */
header.top {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 10;
}
header.top .wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 56px;
  flex-wrap: wrap;
}
.brand {
  font-weight: 700;
  color: var(--fg);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.brand small {
  font-weight: 500;
  color: var(--muted);
  margin-left: 6px;
}
nav.main {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-left: auto;
  font-size: 14px;
}
nav.main a {
  color: var(--muted);
  text-decoration: none;
}
nav.main a:hover {
  color: var(--fg);
}
nav.main a.lang {
  color: var(--fg);
  font-weight: 600;
}

/* Einstieg */
.hero {
  padding-top: 64px;
  padding-bottom: 40px;
}
.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px;
}
.hero h1 {
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.15;
  margin: 0 0 16px;
  max-width: 18ch;
}
.hero p.lead {
  font-size: clamp(17px, 2.2vw, 20px);
  color: var(--muted);
  max-width: 62ch;
  margin: 0 0 28px;
}
.cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.btn {
  display: inline-block;
  padding: 11px 18px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--line);
  color: var(--fg);
  background: var(--surface);
}
.btn.primary {
  background: var(--accent);
  color: var(--accent-fg);
  border-color: var(--accent);
}
.meta-line {
  margin-top: 20px;
  font-size: 14px;
  color: var(--muted);
}

/* Abschnitte */
section {
  padding: 48px 0;
  border-top: 1px solid var(--line);
}
section h2 {
  font-size: clamp(24px, 3.4vw, 32px);
  margin: 0 0 8px;
  line-height: 1.25;
}
section p.intro {
  color: var(--muted);
  max-width: 70ch;
  margin: 0 0 28px;
}
.grid {
  display: grid;
  gap: 16px;
}
.grid > * {
  min-width: 0;
}
.grid.audit {
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  align-items: start;
}
@media (max-width: 820px) {
  .grid.audit {
    grid-template-columns: minmax(0, 1fr);
  }
}
.grid.two {
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
}
.grid.three {
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}
.card p {
  margin: 0;
  color: var(--muted);
}
.card p + p {
  margin-top: 8px;
}

/* Zitat mit Quelle */
blockquote.source {
  margin: 0;
  padding: 20px 24px;
  border-left: 4px solid var(--accent);
  background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
}
blockquote.source p {
  margin: 0 0 8px;
  font-size: 18px;
}
blockquote.source cite {
  font-style: normal;
  font-size: 14px;
  color: var(--muted);
}

/* Code mit Kopierknopf */
.code {
  position: relative;
  background: var(--code-bg);
  color: var(--code-fg);
  border-radius: var(--radius);
  padding: 44px 20px 18px;
  overflow-x: auto;
}
.code pre {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  white-space: pre;
}
.code .c {
  color: #8b949e;
}
.copy {
  position: absolute;
  top: 10px;
  right: 10px;
  font:
    600 12px system-ui,
    sans-serif;
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid #30363d;
  background: #21262d;
  color: #e6edf3;
  cursor: pointer;
}
ul.checks {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: grid;
  gap: 8px;
}
ul.checks li {
  padding-left: 26px;
  position: relative;
}
ul.checks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--ok);
  font-weight: 700;
}
.shot {
  margin: 28px 0 0;
}
.shot img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  display: block;
}
.shot figcaption {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
}

/* Kennzahlen */
.stats {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr));
}
.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  text-decoration: none;
  color: var(--fg);
  display: block;
}
.stat:hover {
  border-color: var(--accent);
}
.stat b {
  display: block;
  font-size: 34px;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.stat span {
  font-size: 14px;
  color: var(--muted);
}
.stat.open b {
  color: var(--warn);
}
.note {
  font-size: 14px;
  color: var(--muted);
  margin-top: 14px;
}

/* Stufen */
.badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 999px;
  margin-left: 6px;
  vertical-align: middle;
}
.badge.ok {
  background: color-mix(in srgb, var(--ok) 18%, transparent);
  color: var(--ok);
}
.badge.dev {
  background: color-mix(in srgb, var(--warn) 18%, transparent);
  color: var(--warn);
}
.badge.plan {
  background: color-mix(in srgb, var(--muted) 18%, transparent);
  color: var(--muted);
}

/* Tabellen */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 15px;
}
th,
td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
tr:last-child td {
  border-bottom: 0;
}
td.id {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 13px;
  white-space: nowrap;
  color: var(--muted);
}

footer.bottom {
  border-top: 1px solid var(--line);
  padding: 32px 0 48px;
  color: var(--muted);
  font-size: 14px;
}
footer.bottom p {
  margin: 4px 0;
}
