/* Unterseiten von getrivena.com (Impressum, Datenschutz, Daten löschen,
   Barrierefreiheit, 404) – dieselben Farben, dieselbe Schrift und dasselbe
   Raster wie die Startseite: Titel links in schmaler Spalte, Text rechts.
   Atkinson Hyperlegible Next: Braille Institute, SIL Open Font License,
   /fonts/OFL.txt – von getrivena.com selbst ausgeliefert. */
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("/fonts/atkinson-hyperlegible-next-regular.woff") format("woff");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("/fonts/atkinson-hyperlegible-next-bold.woff") format("woff");
  font-weight: 700; font-style: normal; font-display: swap;
}
/* Ergänzung für Zeichen, die Atkinson nicht hat (→ µ geschützter Bindestrich,
   schmales geschütztes Leerzeichen): Inter, SIL OFL, /fonts/OFL-Inter.txt.
   Gleicher Familienname, daher kein Eingriff in die font-family-Stapel. */
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("/fonts/rivena-zeichen-regular.woff") format("woff");
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+2192, U+00B5, U+2011, U+202F;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("/fonts/rivena-zeichen-bold.woff") format("woff");
  font-weight: 700; font-style: normal; font-display: swap;
  unicode-range: U+2192, U+00B5, U+2011, U+202F;
}
:root {
  --paper: #f4f8f7;
  --surface: #ffffff;
  --ink: #10302c;
  --muted: #4f6763;
  --teal: #0d9488;
  --teal-ink: #0b6f66;
  --mint: #dcf0ec;
  --rule: #cfe2de;
  --focus: #f59e0b;
  --measure: 40rem;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0c1716;
    --surface: #12211f;
    --ink: #e3efec;
    --muted: #9db6b1;
    --teal: #2dd4bf;
    --teal-ink: #5eead4;
    --mint: #173431;
    --rule: #24403c;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  font-family: "Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem; line-height: 1.6;
  background: var(--paper); color: var(--ink);
}
a { color: var(--teal-ink); }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px;
}
.wrap { width: 100%; max-width: 68rem; margin: 0 auto; padding: 0 1.25rem; }
[hidden], .hidden { display: none !important; }

/* Kopf wie auf der Startseite */
.top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1.25rem; padding-bottom: 1.25rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--ink); }
.brand-icon {
  width: 36px; height: 36px; border-radius: 9px;
  background: linear-gradient(135deg, #0d9488, #0f766e);
  display: inline-flex; align-items: center; justify-content: center;
}
.brand-icon svg { width: 21px; height: 21px; fill: #fff; }
.brand-name { font-weight: 700; font-size: 1.3rem; letter-spacing: -0.01em; }
.switch { display: inline-flex; border: 1px solid var(--rule); border-radius: 999px; padding: 3px; }
.switch button {
  font: inherit; font-size: 0.92rem; font-weight: 700; color: var(--muted);
  background: none; border: 0; border-radius: 999px; padding: 0.3rem 0.8rem; cursor: pointer;
}
.switch button.active { background: var(--mint); color: var(--teal-ink); }

/* Raster: Titel links, Text rechts */
main { flex: 1; padding-top: 2.5rem; padding-bottom: 4rem; }
.split { display: grid; grid-template-columns: minmax(0, 17rem) minmax(0, 1fr); gap: 1.5rem 4.5rem; align-items: start; }
.sec-head { position: sticky; top: 2rem; }
.sec-head h1 { font-size: clamp(1.7rem, 3vw, 2.15rem); line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 0.6rem; }
.sec-head .meta { color: var(--muted); font-size: 0.95rem; margin: 0 0 1.25rem; }

/* Inhaltsverzeichnis (Datenschutz) */
.toc { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.toc li { border-bottom: 1px solid var(--rule); }
.toc a { display: block; padding: 0.4rem 0; color: var(--muted); text-decoration: none; font-size: 0.93rem; line-height: 1.35; }
.toc a:hover { color: var(--teal-ink); }

/* Fließtext */
.prose { max-width: var(--measure); }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: 1.2rem; line-height: 1.3; margin: 2.5rem 0 0.6rem; scroll-margin-top: 1.5rem; }
.prose h3 { font-size: 1.05rem; margin: 1.5rem 0 0.4rem; }
.prose p { margin: 0 0 0.85rem; }
.prose ul, .prose ol { margin: 0 0 0.85rem; padding-left: 1.2rem; }
.prose li { margin: 0 0 0.4rem; }
.prose code { font-size: 0.9em; background: var(--mint); padding: 0.05em 0.3em; border-radius: 4px; }
.prose section + section { border-top: 1px solid var(--rule); margin-top: 2rem; }
.prose section + section h2 { margin-top: 2rem; }
.prose table { border-collapse: collapse; width: 100%; margin: 0 0 1rem; font-size: 0.95rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 0.5rem 0.6rem 0.5rem 0; border-bottom: 1px solid var(--rule); }
.note {
  background: var(--mint); border-radius: 12px; padding: 1rem 1.15rem; margin: 0 0 1.5rem;
}
.en-note { color: var(--muted); font-size: 0.95rem; margin-top: 2.5rem !important; padding-top: 1.25rem; border-top: 1px solid var(--rule); }

/* Fuß wie auf der Startseite */
footer { border-top: 1px solid var(--rule); padding: 1.5rem 0 2rem; font-size: 0.92rem; color: var(--muted); }
footer nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin-top: 0.4rem; }

/* 404 */
.lost { max-width: 34rem; }
.lost h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.1; margin: 0 0 0.75rem; }
.lost p { color: var(--muted); margin: 0 0 0.6rem; }
.button {
  display: inline-block; margin-top: 1rem; padding: 0.7rem 1.2rem; border-radius: 12px;
  background: var(--ink); color: var(--paper); text-decoration: none; font-weight: 700;
}

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 1.25rem; }
  .sec-head { position: static; }
  .toc { display: none; }
  main { padding-top: 1.25rem; }
}
@media print {
  .top .switch, footer nav, .toc { display: none; }
  .split { display: block; }
  body { background: #fff; color: #000; }
}
