/* XnD – Impressum und Datenschutz
   Schlichte Leseseiten: dieselben Farben, Schriften und Fokusregeln wie xnd.css, aber ohne Räume, Skript und Bewegung.
   Die Farbwerte stehen in xnd.css, Abschnitt 1 – bei Änderungen dort hier nachziehen (dunkel zweimal identisch).
   Darstellung: start.js setzt data-theme nach der gespeicherten Wahl des Besuchers. */

:root {
  color-scheme: light;
  --grund: #f3f4fb;
  --flaeche: #ffffff;
  --tinte: #16172b;
  --leise: #51566f;
  --linie: #d6d9ea;
  --akzent: #4f46d8;
  --akzent-weich: #e7e6fb;
  --auf-akzent: #ffffff;
  --licht: #3fc79a;
  --warn: #b4441a;
  --sans: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --lese: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --rand: clamp(1.25rem, 5vw, 4rem);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --grund: #10111c;
    --flaeche: #191b2b;
    --tinte: #eeeef8;
    --leise: #a7abc4;
    --linie: #2c2f48;
    --akzent: #a8a2ff;
    --akzent-weich: #26264e;
    --auf-akzent: #12122a;
    --licht: #7fe3bf;
    --warn: #f4a77e;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --grund: #10111c;
  --flaeche: #191b2b;
  --tinte: #eeeef8;
  --leise: #a7abc4;
  --linie: #2c2f48;
  --akzent: #a8a2ff;
  --akzent-weich: #26264e;
  --auf-akzent: #12122a;
  --licht: #7fe3bf;
  --warn: #f4a77e;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background:
    radial-gradient(60vmax 60vmax at 82% 0%, color-mix(in oklab, var(--akzent) 12%, transparent), transparent 68%) fixed,
    var(--grund);
  color: var(--tinte);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
a { color: var(--akzent); text-underline-offset: .18em; }
:focus-visible { outline: 3px solid var(--akzent); outline-offset: 3px; border-radius: .4rem; }
::selection { background: var(--akzent); color: var(--auf-akzent); }
.sprung { position: fixed; left: 1rem; top: -5rem; z-index: 10; padding: .7rem 1.1rem; border-radius: 99px; background: var(--akzent); color: var(--auf-akzent); font-weight: 600; text-decoration: none; }
.sprung:focus { top: 1rem; }

.kopf {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
  padding: 1.1rem var(--rand);
}
.marke { display: inline-flex; align-items: baseline; gap: .6rem; color: var(--tinte); text-decoration: none; min-height: 40px; align-items: center; }
.marke__zeichen { font-weight: 800; font-size: 1.35rem; letter-spacing: -.02em; }
.marke__zeichen i { font-family: var(--serif); font-weight: 400; color: var(--akzent); }
.marke__name { font-size: .9rem; color: var(--leise); }
.kopf nav { display: flex; gap: .4rem; flex-wrap: wrap; }
.kopf nav a, .zurueck {
  display: inline-flex; align-items: center; min-height: 40px; padding: .35rem .9rem;
  border: 1px solid var(--linie); border-radius: 99px; background: var(--flaeche);
  color: var(--tinte); font-size: .9rem; font-weight: 600; text-decoration: none;
}
.kopf nav a:hover, .zurueck:hover { border-color: var(--akzent); color: var(--akzent); }
.kopf nav a[aria-current="page"] { background: var(--akzent-weich); border-color: transparent; }

main {
  width: min(100% - 2 * var(--rand), 44rem);
  margin: 1rem auto 3rem;
  padding: clamp(1.5rem, 5vw, 3rem);
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-radius: 1.5rem;
}
.kicker { margin: 0 0 .4rem; font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--leise); }
h1 { margin: 0 0 1rem; font-size: clamp(2rem, 6vw, 2.8rem); line-height: 1.1; letter-spacing: -.02em; }
h1 em { font-family: var(--serif); font-weight: 400; color: var(--akzent); }
h2 { margin: 2.2rem 0 .6rem; font-size: 1.2rem; line-height: 1.3; }
h3 { margin: 1.4rem 0 .4rem; font-size: 1rem; }
p, ul, dl, address { margin: 0 0 1rem; }
main p, main li, main dd { font-family: var(--lese); }
ul { padding-left: 1.2rem; }
li + li { margin-top: .35rem; }
address { font-style: normal; font-family: var(--lese); }
.einleitung { font-size: 1.15rem; color: var(--leise); }
.kasten {
  margin: 1.5rem 0; padding: 1rem 1.2rem;
  border-left: 3px solid var(--licht); border-radius: .2rem .8rem .8rem .2rem;
  background: color-mix(in oklab, var(--licht) 9%, var(--flaeche));
}
.kasten p:last-child, .kasten ul:last-child { margin-bottom: 0; }
table { width: 100%; border-collapse: collapse; margin: 0 0 1rem; font-size: .92rem; }
th, td { padding: .55rem .5rem; border-bottom: 1px solid var(--linie); text-align: left; vertical-align: top; }
th { font-weight: 650; color: var(--leise); font-size: .8rem; letter-spacing: .04em; }
td code { font-size: .85em; overflow-wrap: anywhere; }
.tabelle { overflow-x: auto; }
mark { background: color-mix(in oklab, var(--warn) 22%, transparent); color: inherit; padding: 0 .2em; border-radius: .2em; }
.stand { margin-top: 2.5rem; font-size: .85rem; color: var(--leise); }

.fuss {
  width: min(100% - 2 * var(--rand), 44rem); margin: 0 auto 2.5rem;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem;
  font-size: .82rem; color: var(--leise);
}
.fuss a { color: inherit; }

/* Schmal: Tabelle als Liste, damit nichts waagerecht scrollt. */
@media (max-width: 34rem) {
  table, thead, tbody, tr, th, td { display: block; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  tr { padding: .6rem 0; border-bottom: 1px solid var(--linie); }
  td { border: 0; padding: .15rem 0; }
  td::before { content: attr(data-spalte) ": "; font-family: var(--sans); font-weight: 650; color: var(--leise); }
  .marke__name { display: none; }
}

@media print {
  body { background: none; color: #000; font-size: 11pt; }
  .kopf nav, .sprung, .zurueck { display: none; }
  main { border: 0; padding: 0; width: auto; }
  a { color: inherit; }
}
