/* Rechtsseiten im Design "Studio" (20.10.2026): gleicher Kopf, Fuß, Schrift und Farben wie die Startseite.
   Lesbare Rechtstypografie: Inter 400 auf Papier, Serif nur für Überschriften, Inhaltsverzeichnis links mitlaufend. */
@font-face { font-family: "Instrument Serif"; src: url("assets/fonts/instrument-serif-latin-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("assets/fonts/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("assets/fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }
:root {
  --bg: #f6f5f0; --sheet: #fdfcf9; --line: #dfe0d7; --ring: #d3d6cb; --ink: #14261f; --muted: #5f6b64; --quiet: #7d8780; --brass: #a88a52;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif; --sans: "Inter", "Helvetica Neue", system-ui, sans-serif; --mono: "JetBrains Mono", ui-monospace, monospace;
  --nav-h: 64px; --gutter: clamp(16px, 4vw, 48px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 20px); background: var(--bg); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16.5px/1.75 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
::selection { background: var(--ink); color: var(--bg); }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; border-radius: 4px; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: .22em; text-decoration-color: var(--ring); }
a:hover { text-decoration-color: var(--ink); }
.mono { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }

/* Kopf wie die Startseite */
.nav { position: sticky; top: 0; z-index: 20; height: var(--nav-h); background: rgba(246, 245, 240, .9); box-shadow: 0 1px 0 var(--line); }
@supports (backdrop-filter: blur(2px)) { .nav { background: rgba(246, 245, 240, .78); -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2); } }
.nav__in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font: 500 16px/1 var(--sans); letter-spacing: -.02em; text-decoration: none; }
.brand svg { width: 18px; height: 18px; }
.brand b { font-weight: 500; color: var(--quiet); }
.back { display: inline-flex; align-items: center; height: 40px; padding: 0 18px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--ring); font-size: 13.5px; text-decoration: none; transition: box-shadow .3s; }
.back:hover { box-shadow: inset 0 0 0 1px var(--ink); }

/* Seite: Inhaltsverzeichnis links, Text rechts */
.legal { display: grid; grid-template-columns: minmax(13rem, 17rem) minmax(0, 44rem); gap: clamp(40px, 7vw, 112px); justify-content: center; padding-top: clamp(56px, 8vw, 112px); padding-bottom: clamp(72px, 9vw, 128px); }
.legal__side { position: sticky; top: calc(var(--nav-h) + 32px); align-self: start; max-height: calc(100vh - var(--nav-h) - 64px); overflow: auto; }
main { min-width: 0; }
h1 { margin: 18px 0 28px; font: 400 clamp(44px, 5.4vw, 76px)/1 var(--serif); letter-spacing: -.02em; hyphens: manual; text-wrap: balance; }
h2 { margin: 56px 0 14px; padding-top: 28px; border-top: 1px solid var(--line); font: 400 clamp(25px, 2.1vw, 30px)/1.15 var(--serif); letter-spacing: -.01em; scroll-margin-top: calc(var(--nav-h) + 20px); text-wrap: balance; }
h3 { margin: 30px 0 8px; font: 500 16.5px/1.4 var(--sans); }
p { margin: 0 0 14px; }
strong { font-weight: 600; }
ul.list { margin: 0 0 16px; padding-left: 1.2rem; }
ul.list li { margin: 0 0 6px; }
ul.list li::marker { color: var(--brass); }
.lead { margin: 0 0 8px; padding: 4px 0 4px 20px; border-left: 1px solid var(--brass); color: var(--ink); font-size: 17.5px; line-height: 1.7; }
.toc { margin: 0; }
.toc summary { display: flex; align-items: center; gap: 10px; list-style: none; cursor: default; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--brass); }
.toc ol { margin: 16px 0 0; padding: 0; list-style: none; border-left: 1px solid var(--line); font-size: 13.5px; line-height: 1.45; }
.toc li { margin: 0; }
.toc a { display: block; padding: 6px 0 6px 16px; margin-left: -1px; border-left: 1px solid transparent; color: var(--muted); text-decoration: none; transition: color .3s, border-color .3s; }
.toc a:hover { color: var(--ink); }
.toc a.is-on { color: var(--ink); border-left-color: var(--ink); }
.tab { overflow-x: auto; margin: 10px 0 18px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); background: var(--sheet); }
table { border-collapse: collapse; width: 100%; min-width: 34rem; font-size: 14px; line-height: 1.55; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child > * { border-bottom: 0; }
th { font: 400 10.5px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.versions { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--muted); }

/* Fuß wie die Startseite */
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px 40px; padding-block: 32px 48px; border-top: 1px solid var(--line); font-size: 10px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 14px 26px; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--ink); }

@media (max-width: 960px) {
  :root { --nav-h: 58px; }
  body { font-size: 16px; }
  .legal { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 40px; }
  .legal__side { position: static; max-height: none; overflow: visible; }
  .toc { padding: 16px 20px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); background: var(--sheet); }
  .toc summary { cursor: pointer; justify-content: flex-start; }
  .toc summary::after { content: ""; margin-left: auto; width: 11px; height: 11px; background: linear-gradient(var(--ink), var(--ink)) center / 11px 1px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 1px 11px no-repeat; transition: transform .4s; }
  .toc details[open] summary::after { transform: rotate(45deg); }
  .toc ol { border: 0; }
  .toc a { padding: 6px 0; margin: 0; border: 0; }
  .foot { flex-direction: column; align-items: flex-start; }
}
@media print {
  .nav, .legal__side, .foot { display: none; }
  .legal { display: block; padding: 0; }
  body { background: #fff; font-size: 11pt; }
}
