:root {
  --canvas: #0d1117;
  --surface: #161b22;
  --text: #e6edf3;
  --text-strong: #f0f6fc;
  --muted: #8b949e;
  --brand-ink: #7ee787;
  --border: #30363d;
  color-scheme: dark;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1.05rem;
  line-height: 1.5;
  display: flex;
  align-items: stretch;
  min-height: 100vh;
}

.seitenmenue {
  width: 17rem;
  flex: 0 0 17rem;
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 1rem 0.85rem 2rem;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
}

.seitenmenue .marke {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.seitenmenue .marke img {
  display: block;
  width: 100%;
  height: auto;
}

.seitenmenue nav {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-top: 0.9rem;
}

.seitenmenue nav a {
  color: var(--text);
  text-decoration: none;
  padding: 0.48rem 0.65rem;
  border-radius: 8px;
  line-height: 1.35;
}

.seitenmenue nav a:hover {
  background: #21262d;
  color: var(--text-strong);
}

.seitenmenue nav a.aktiv {
  background: #238636;
  color: #f0f6fc;
}

.seite {
  flex: 1;
  min-width: 0;
}

main {
  max-width: 52rem;
  margin: 0 auto;
  padding: 1.6rem 1.4rem 3rem;
}

h1 {
  color: var(--text-strong);
  font-size: 1.7rem;
  font-weight: 650;
  margin: 0 0 0.4rem;
}

.lead { margin: 0 0 1.4rem; }

figure {
  margin: 1.5rem 0 0.7rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

figure img {
  display: block;
  width: 100%;
  height: auto;
}

figcaption {
  padding: 0.55rem 0.9rem 0.7rem;
  color: var(--muted);
}

.hinweis {
  color: var(--text-strong);
  margin: 0.4rem 0 0;
}

footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
}

footer div {
  max-width: 68rem;
  margin: 0 auto;
  padding: 1rem 1.25rem 1.4rem;
}

footer h2 {
  color: var(--text-strong);
  font-size: 1rem;
  font-weight: 650;
  margin: 1.1rem 0 0.35rem;
}

footer p { margin: 0.15rem 0; }

ol.toc,
ol.toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

ol.toc > li { margin: 1.15rem 0 0.35rem; }
ol.toc ol { margin: 0.3rem 0 0.45rem 1.35rem; }
ol.toc li li { margin: 0.45rem 0; }

ol.toc .nr {
  color: var(--brand-ink);
  font-weight: 650;
  margin-right: 0.45rem;
}

.toc .satz {
  margin: 0.15rem 0 0.35rem;
  color: var(--muted);
  font-size: 0.98rem;
}

form.kontakt label {
  display: block;
  margin: 0.85rem 0;
}

form.kontakt input,
form.kontakt textarea {
  display: block;
  width: 100%;
  max-width: 28rem;
  margin-top: 0.3rem;
  background: var(--canvas);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem 0.65rem;
  font: inherit;
}

form.kontakt button {
  background: #238636;
  color: #f0f6fc;
  border: 0;
  border-radius: 8px;
  padding: 0.55rem 1rem;
  font: inherit;
  cursor: pointer;
}

form.kontakt button:hover { background: #2ea043; }

@media (max-width: 860px) {
  body { flex-direction: column; }
  .seitenmenue {
    width: 100%;
    flex: none;
    height: auto;
    position: static;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
}
