:root {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #25272b;
  background: #fff;
  font-synthesis: none;
  line-height: 1.7;
  color-scheme: light;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: #254b91; text-underline-offset: 3px; }
header {
  border-bottom: 1px solid #e5e7eb;
  padding: 20px max(24px, calc((100vw - 800px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 20px;
}
header a:first-child {
  font-size: 18px;
  letter-spacing: 2px;
  color: #202226;
  font-weight: 800;
  text-decoration: none;
}
main { max-width: 800px; margin: 48px auto 80px; padding: 0 24px; overflow-wrap: anywhere; }
h1 { font-size: clamp(28px, 5vw, 38px); line-height: 1.15; margin: 0 0 12px; letter-spacing: -1px; }
h2 { font-size: 20px; margin: 32px 0 8px; line-height: 1.4; }
h3 { font-size: 17px; margin: 24px 0 8px; line-height: 1.5; }
h2[id], h3[id], section[id] { scroll-margin-top: 24px; }
p, ul, ol { margin: 12px 0; }
li { padding-left: 4px; }
li + li { margin-top: 6px; }
.meta, .publisher { color: #62666e; font-size: 14px; }
.draft { padding: 16px 20px; border: 1px solid #d7d9df; border-radius: 8px; background: #fafafa; margin: 24px 0; }
.draft p:first-child { margin-top: 0; }
.draft p:last-child { margin-bottom: 0; }
.placeholder { background: #fff4d3; padding: 1px 4px; }
.toc { padding: 20px 24px; border: 1px solid #e5e7eb; border-radius: 8px; margin: 28px 0; background: #fafbfc; }
.toc h2 { margin: 0 0 12px; font-size: 18px; }
.toc ol, .toc ul { margin: 0; padding-left: 22px; }
.table-wrap { max-width: 100%; overflow-x: auto; margin: 20px 0; }
table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 14px; line-height: 1.6; }
caption { text-align: left; font-weight: 700; padding-bottom: 12px; }
th, td { border: 1px solid #dfe2e7; padding: 12px; text-align: left; vertical-align: top; }
th { font-weight: 700; background: #f4f5f7; }
td p:first-child { margin-top: 0; }
td p:last-child { margin-bottom: 0; }
code { font-size: .9em; overflow-wrap: anywhere; }
footer { border-top: 1px solid #e5e7eb; max-width: 752px; margin: 0 auto; padding: 24px 0 40px; display: flex; flex-wrap: wrap; gap: 12px 20px; font-size: 14px; }
footer .publisher { flex-basis: 100%; margin: 0; }
a:focus-visible, .table-wrap:focus-visible { outline: 3px solid #789bdc; outline-offset: 5px; }
.skip-link { position: absolute; top: 8px; left: 12px; padding: 8px 12px; background: white; transform: translateY(-150%); z-index: 1; }
.skip-link:focus { transform: translateY(0); }
@media (max-width: 600px) {
  main { margin-top: 32px; }
  header { padding: 16px 24px; }
  footer { margin: 0 24px; }
  .toc { padding: 16px 20px; }
  .table-wrap::before { content: "Tabelle seitlich scrollen →"; display: block; position: sticky; left: 0; margin-bottom: 8px; color: #62666e; font-size: 12px; }
  th, td { padding: 9px; }
}
@media print {
  :root { color: #000; font-size: 11pt; }
  header, footer, .skip-link { display: none; }
  main { max-width: none; margin: 0; padding: 0; }
  h1 { font-size: 24pt; }
  h2 { font-size: 15pt; break-after: avoid; }
  h3 { break-after: avoid; }
  a { color: inherit; }
  .table-wrap { overflow: visible; }
  .table-wrap::before { display: none; }
  table { min-width: 0; font-size: 9pt; }
  tr { break-inside: avoid; }
  .toc { break-inside: avoid; }
}
