:root {
  --bg: #f4f6f9;
  --card: #ffffff;
  --ink: #1f2933;
  --muted: #66707a;
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --line: #e2e8f0;
  --section: #eef2f7;
  --ok: #16a34a;
}

* { box-sizing: border-box; }

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

header {
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  color: #fff;
  padding: 28px 24px 24px;
}
header h1 { margin: 0; font-size: 1.8rem; }
header .tagline { margin: 4px 0 14px; opacity: 0.9; }
header .download {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  color: #fff;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.35);
  font-weight: 600;
}
header .download:hover { background: rgba(255,255,255,0.28); }
header .checksum {
  margin: 10px 0 0;
  font-size: 0.78rem;
  opacity: 0.85;
  word-break: break-all;
}
header .checksum code { font-size: 0.78rem; }

main { max-width: 980px; margin: 0 auto; padding: 24px; }

.uploader {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.filebtn {
  position: relative;
  overflow: hidden;
  display: inline-block;
}
.filebtn input[type=file] { position: absolute; left: 0; top: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.filebtn span {
  display: inline-block;
  background: #f1f5f9;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 14px;
  cursor: pointer;
}
.uploader button[type=submit] {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  font-weight: 600;
  cursor: pointer;
}
.uploader button[type=submit]:hover { background: var(--accent-dark); }
.uploader .hint { flex-basis: 100%; margin: 0; color: var(--muted); font-size: 0.9rem; }

.report {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 22px;
}
.report-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.report-head h2 {
  margin: 0;
  font-size: 1.15rem;
  word-break: break-all;
}
.copyall {
  background: #f1f5f9;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 12px;
  cursor: pointer;
  white-space: nowrap;
  font-weight: 600;
}
.copyall:hover { background: #e2e8f0; }
.copyall.done { color: var(--ok); border-color: var(--ok); }

.plain { display: none; }

table.section {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 14px;
  font-size: 0.93rem;
}
table.section th {
  text-align: left;
  background: var(--section);
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #334155;
}
table.section td { padding: 5px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
td.label { color: var(--muted); width: 240px; }
td.value { font-family: "SF Mono", "Consolas", monospace; font-size: 0.88rem; word-break: break-word; }
td.copy { width: 34px; text-align: right; }
.copyline {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  color: var(--muted);
  padding: 2px 4px;
  border-radius: 5px;
}
.copyline:hover { background: #f1f5f9; color: var(--accent); }
.copyline.done { color: var(--ok); }

.hints td.value { color: #92400e; }

.empty { color: var(--muted); text-align: center; padding: 20px; }

footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  padding: 20px;
  line-height: 1.6;
}

/* --- Doku-Seite --- */
.intro { margin-bottom: 8px; }
.tools { margin: 18px 0; }
.tools h2, .install h2, .contact h2, .history h2 { font-size: 1.2rem; }
.contact { margin-top: 18px; }
.contact p { line-height: 1.7; }

/* Entwicklungs-Historie: schlichte Zeitleiste */
.history { margin-top: 18px; }
.history .note { color: var(--muted); font-size: 0.9rem; margin: 0 0 12px; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li {
  display: flex;
  gap: 14px;
  padding: 10px 0 14px 14px;
  border-left: 2px solid var(--line);
  position: relative;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 16px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}
.timeline .when {
  flex: 0 0 92px;
  color: var(--muted);
  font-size: 0.85rem;
  padding-top: 2px;
}
.timeline h3 { margin: 0 0 3px; font-size: 1rem; }
.timeline p { margin: 0; color: #475569; line-height: 1.6; }
.toolcard {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 12px;
}
.toolcard h3 { margin: 0 0 4px; }
.toolcard p { margin: 0; color: #475569; }
.install ol { line-height: 1.8; }
.install code {
  background: #f1f5f9;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 6px;
  font-size: 0.85rem;
}
.install .note { color: var(--muted); font-size: 0.9rem; margin-top: 10px; }
