:root {
  color-scheme: light;
  --ink: #17211f;
  --muted: #59635f;
  --line: #d5cec1;
  --paper: #f6f4ee;
  --panel: #ffffff;
  --brand: #0b786f;
  --brand-dark: #24493f;
  --accent: #b56118;
  --blue: #195ca8;
  --danger: #a33a32;
  font-family: "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { background: var(--paper); }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

a { color: var(--blue); font-weight: 700; }
a:hover { text-decoration-thickness: 2px; }

.layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  min-height: 100vh;
}

.layout.nav-collapsed { grid-template-columns: 78px minmax(0, 1fr); }

.side {
  background: var(--brand-dark);
  color: #fff;
  height: 100vh;
  overflow-y: auto;
  padding: 18px 15px;
  position: sticky;
  top: 0;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.brand img { width: 54px; height: 54px; flex: 0 0 auto; }
.brand strong, .brand span { display: block; }
.brand span { color: #d5e7e2; font-size: 0.88rem; margin-top: 3px; }

.nav-toggle {
  align-items: center;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  margin-bottom: 12px;
  min-height: 38px;
  padding: 7px 10px;
}

.nav { display: grid; gap: 4px; }
.nav a {
  color: #fff;
  text-decoration: none;
  padding: 9px 10px;
  border-radius: 6px;
}
.nav a[aria-current="page"], .nav a:hover { background: rgba(255, 255, 255, 0.17); }

.source-note {
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  color: #e8f4f1;
  font-size: 0.9rem;
  line-height: 1.48;
  margin-top: 24px;
  padding-top: 14px;
}

.nav-collapsed .brand div,
.nav-collapsed .nav,
.nav-collapsed .source-note { display: none; }
.nav-collapsed .brand img { width: 46px; height: 46px; }

.main { min-width: 0; padding: 28px clamp(18px, 4vw, 56px) 42px; }
.content { max-width: 1080px; }

.hero {
  max-width: 1120px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  color: var(--brand);
  font-weight: 800;
  margin: 0 0 8px;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.06;
  max-width: 1000px;
  margin: 0;
}

h2 { font-size: 1.45rem; margin: 30px 0 10px; }
h3 { font-size: 1.08rem; margin: 20px 0 6px; }

.lead { color: var(--muted); font-size: 1.16rem; line-height: 1.55; max-width: 920px; }
.notice, .warning, .privacy {
  border-left: 5px solid var(--accent);
  background: #fff7e8;
  padding: 12px 14px;
  max-width: 980px;
  line-height: 1.55;
}
.privacy { border-left-color: var(--brand); background: #edf7f4; }
.warning { border-left-color: var(--danger); background: #fff0ef; }

.product-shot {
  display: block;
  height: auto;
  margin: 22px 0 8px;
  max-width: 1180px;
  width: 100%;
  border: 1px solid var(--line);
}

.actions, .grid { display: grid; gap: 14px; }
.actions { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); max-width: 1120px; margin: 24px 0; }
.grid { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); max-width: 1120px; }

.download, .panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}
.download h2, .panel h2 { font-size: 1.2rem; margin-top: 0; }

.button {
  align-items: center;
  background: var(--brand);
  border-radius: 6px;
  color: #fff;
  display: inline-flex;
  justify-content: center;
  min-height: 42px;
  padding: 9px 14px;
  text-decoration: none;
}
.button.secondary { background: #ece6da; color: var(--ink); }

.meta { color: var(--muted); font-size: 0.92rem; line-height: 1.5; }
.hash { display: block; overflow-wrap: anywhere; font: 0.82rem Consolas, "Courier New", monospace; margin-top: 7px; }

.block { border-top: 1px solid var(--line); margin-top: 30px; max-width: 1120px; padding-top: 2px; }
.content p, .content li, .block p, .block li { line-height: 1.64; }
.compact-list li { margin-bottom: 6px; }

details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  margin: 10px 0;
  max-width: 1040px;
  padding: 0 14px;
}
details summary { cursor: pointer; font-weight: 800; padding: 12px 0; }
details > :not(summary) { margin-left: 0; }

.evidence-list { max-width: 1040px; }
.evidence-item { border-top: 1px solid var(--line); padding: 14px 0; }
.evidence-item:first-child { border-top: 0; }
.evidence-item h2 { font-size: 1.15rem; margin: 0 0 5px; }
.evidence-item p { margin: 5px 0; }

.version-history { max-width: 1040px; }
.version-entry {
  background: #fff;
  border-left: 5px solid #7ca99e;
  margin: 0 0 12px;
  padding: 13px 15px;
}
.version-entry > strong {
  color: #075f56;
  display: block;
  font-size: 1.08rem;
  margin-bottom: 4px;
}
.version-meta {
  color: var(--muted);
  display: block;
  font-size: 0.88rem;
  line-height: 1.5;
  margin-bottom: 7px;
  overflow-wrap: anywhere;
}
.version-change { display: block; line-height: 1.58; }

.page-index {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 8px;
}
.page-index button {
  background: #e7f2ef;
  border: 1px solid #bdd8d1;
  border-radius: 5px;
  color: #075f56;
  cursor: pointer;
  font: inherit;
  padding: 7px 10px;
}
.page-index button:hover,
.page-index button:focus-visible { background: #d8ebe6; }

.command-example {
  background: #182522;
  border-left: 5px solid var(--brand);
  color: #f4f8f7;
  font: 0.92rem/1.55 Consolas, "Courier New", monospace;
  margin: 10px 0 18px;
  max-width: 1040px;
  overflow-wrap: anywhere;
  padding: 13px 15px;
  white-space: pre-wrap;
}

.cli-table {
  border-collapse: collapse;
  margin: 12px 0 22px;
  max-width: 1040px;
  table-layout: fixed;
  width: 100%;
}
.cli-table th,
.cli-table td {
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
.cli-table th { background: #e9eeeb; color: #34413d; }
.cli-table th:first-child,
.cli-table td:first-child { width: 24%; }
.cli-table th:last-child,
.cli-table td:last-child { width: 31%; }
.cli-table code,
.cli-content code {
  font-family: Consolas, "Courier New", monospace;
  overflow-wrap: anywhere;
}

.wide-main { min-width: 0; }

.package-table-block { max-width: none; }

.package-table {
  border-collapse: collapse;
  margin: 12px 0 24px;
  min-width: 100%;
  width: 100%;
}

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

.package-table th {
  background: #e9eeeb;
  color: #34413d;
  cursor: pointer;
  position: relative;
  user-select: none;
}

.package-table th[data-direction="asc"]::after { content: " \2191"; }
.package-table th[data-direction="desc"]::after { content: " \2193"; }
.package-table td:nth-child(2),
.package-table td:nth-child(3),
.package-table td:nth-child(4),
.package-table td:nth-child(5) { text-align: right; }

.column-resizer {
  cursor: col-resize;
  height: 100%;
  position: absolute;
  right: -4px;
  top: 0;
  width: 9px;
}

.table-tools {
  align-items: flex-start;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0;
}

.table-tools details {
  margin: 0;
  min-width: 190px;
  padding: 0 12px 10px;
}

.table-tools details label {
  display: block;
  line-height: 1.45;
  padding: 3px 0;
}

.table-tools button,
.compact-button {
  border: 1px solid #8ea49e;
  border-radius: 5px;
  cursor: pointer;
  font: inherit;
  min-height: 34px;
  padding: 7px 11px;
}

.table-tools button {
  background: #f3f0ea;
  color: var(--ink);
}

.compact-button { min-height: 34px; }
.package-hash { max-width: 210px; }
kbd {
  background: #f1eee8;
  border: 1px solid #c9c2b6;
  border-bottom-width: 2px;
  border-radius: 4px;
  font: 0.86em Consolas, "Courier New", monospace;
  padding: 1px 5px;
}

footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
  margin-top: 38px;
  max-width: 1120px;
  padding-top: 18px;
}

@media (max-width: 820px) {
  .layout, .layout.nav-collapsed { display: block; }
  .side { height: auto; position: relative; }
  .nav-collapsed .brand div, .nav-collapsed .source-note { display: block; }
  .nav-collapsed .nav { display: none; }
  .main { padding: 22px 16px 34px; }
  h1 { font-size: 2.15rem; }
  .cli-table,
  .cli-table tbody,
  .cli-table tr,
  .cli-table td { display: block; width: 100%; }
  .cli-table thead { display: none; }
  .cli-table tr { border-bottom: 2px solid var(--line); padding: 8px 0; }
  .cli-table td { border: 0; padding: 5px 8px; }
  .cli-table td:first-child,
  .cli-table td:last-child { width: 100%; }
  .cli-table td:first-child { font-weight: 800; }
  .cli-table td:last-child::before { content: "Beispiel: "; font-weight: 800; }
}
