/* Eigenes Farbsystem: warmes Papier, Tannengrün, Bernstein */
:root {
  --paper: #f6f3ea;
  --ink: #1d2320;
  --muted: #5f675f;
  --pine: #1f5a48;
  --pine-deep: #163f33;
  --amber: #c98a1b;
  --line: #ddd6c4;
  --surface: #fffdf7;
  --tag-bg: #e3efe8;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #151a18;
    --ink: #e9ece6;
    --muted: #9aa59c;
    --pine: #7fc5a8;
    --pine-deep: #a6dcc4;
    --amber: #e8b04e;
    --line: #2b3430;
    --surface: #1c2320;
    --tag-bg: #22332c;
  }
}

:root[data-theme="dark"] {
  --paper: #151a18;
  --ink: #e9ece6;
  --muted: #9aa59c;
  --pine: #7fc5a8;
  --pine-deep: #a6dcc4;
  --amber: #e8b04e;
  --line: #2b3430;
  --surface: #1c2320;
  --tag-bg: #22332c;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  line-height: 1.6;
}

.wrap {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Kopfzeile */
.top {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}

.mark {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--pine);
  color: var(--paper);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 18px;
  font-size: 0.95rem;
}

nav a:hover,
nav a[aria-current="page"] { color: var(--pine); }

/* Start */
.hero {
  padding: 72px 20px 48px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--amber);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero h1 {
  font-size: clamp(2rem, 4.6vw, 3rem);
  line-height: 1.15;
  margin: 0 0 16px;
  max-width: 720px;
  letter-spacing: -0.01em;
}

.lead {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 620px;
  margin: 0 0 24px;
}

.actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}

.btn {
  display: inline-block;
  padding: 12px 22px;
  background: var(--pine);
  color: var(--paper);
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
}

.btn:hover { background: var(--pine-deep); }

.link {
  color: var(--pine);
  text-decoration: none;
  font-weight: 600;
}

.link:hover { text-decoration: underline; }

.specs {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  color: var(--muted);
  font-size: 0.92rem;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.specs li::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  margin-right: 8px;
  vertical-align: middle;
}

/* Abschnitte */
.block {
  padding: 40px 20px;
  border-top: 1px solid var(--line);
}

h2 {
  font-size: 1.45rem;
  margin: 0 0 18px;
  letter-spacing: -0.005em;
}

h3 {
  font-size: 1.05rem;
  margin: 0 0 4px;
}

p { margin: 0 0 12px; }

/* Schritte */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 18px;
}

.steps li {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.steps p { color: var(--muted); margin: 0; }

.num {
  flex: none;
  font-family: Consolas, "Courier New", monospace;
  font-weight: 700;
  color: var(--amber);
  font-size: 1.1rem;
  min-width: 2.2ch;
}

.steps.compact li { gap: 12px; }

/* Tabelle */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.spec-table th,
.spec-table td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.spec-table tr:last-child th,
.spec-table tr:last-child td { border-bottom: none; }

.spec-table th {
  width: 30%;
  color: var(--pine);
  font-weight: 600;
  white-space: nowrap;
}

.spec-table td { color: var(--muted); }

/* Datenschutz */
.privacy {
  background: var(--surface);
  border-left: 4px solid var(--amber);
  padding-left: 24px;
  margin-left: auto;
  margin-right: auto;
  border-top: none;
}

/* Abschluss */
.cta {
  text-align: left;
  padding: 40px 20px 56px;
  border-top: 1px solid var(--line);
}

.cta h2 { margin-bottom: 14px; }

/* Download-Seite */
.page-head {
  padding: 56px 0 24px;
}

.page-head h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

/* Versionsschein */
.voucher {
  background: var(--surface);
  border: 2px dashed var(--line);
  border-radius: 12px;
  padding: 24px 26px;
  margin-bottom: 8px;
}

.voucher-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.voucher-head h2 { margin: 0; font-size: 1.25rem; }

.tag {
  background: var(--tag-bg);
  color: var(--pine);
  border-radius: 999px;
  padding: 3px 12px;
  font-size: 0.85rem;
  font-weight: 600;
}

.voucher-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px 24px;
  margin: 0 0 22px;
}

.voucher-facts dt {
  color: var(--muted);
  font-size: 0.85rem;
}

.voucher-facts dd {
  margin: 0;
  font-weight: 600;
  word-break: break-word;
}

/* Code und Prüfsumme */
code, pre {
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.9rem;
  word-break: break-all;
}

pre {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 14px;
  border-radius: 8px;
  overflow-x: auto;
  white-space: pre-wrap;
}

pre.hash { margin-top: 10px; }

main a { color: var(--pine); }

footer {
  border-top: 1px solid var(--line);
  padding: 22px 20px;
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 24px;
}

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