/* Rechtsseiten soul-m8.ai (30.11.2026) – /legal und /legal/<slug>. Ruhige Leseseiten im Look der Landing Page (/home):
   Nachtblau, Eisblau-Akzente, Bricolage Grotesque für Text, Instrument Serif für die großen Überschriften.
   Strenge CSP: kein JavaScript, keine style-Attribute – alles steht hier. Druckansicht hell (für PDF-Ablage bei Zahlungsanbietern). */

:root {
  --nacht: #060c15;
  --tief: #0a1320;
  --flaeche: rgba(13, 25, 40, .72);
  --flaeche-fest: #0d1928;
  --linie: rgba(158, 190, 220, .14);
  --linie-hell: rgba(169, 220, 255, .28);
  --eis: #4aaef5;
  --baby: #a9dcff;
  --studio: #eaf6ff;
  --text: #dbe6f1;
  --hell: #f2f8ff;
  --grau: #93a8bb;
  --still: #6b8094;
  --warn: #ffcf8a;
  --sans: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --rand: clamp(16px, 4vw, 48px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-behavior: smooth; background: var(--nacht); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; min-height: 100vh; overflow-x: clip;
  color: var(--text); font-family: var(--sans); font-size: 16.5px; line-height: 1.72; font-weight: 400;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  background:
    radial-gradient(1100px 560px at 8% -140px, rgba(74, 174, 245, .17), transparent 62%),
    radial-gradient(900px 520px at 104% -60px, rgba(169, 220, 255, .08), transparent 60%),
    var(--nacht);
  background-repeat: no-repeat;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--baby); text-decoration: underline; text-decoration-color: rgba(169, 220, 255, .38); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--hell); text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--baby); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(74, 174, 245, .35); color: #fff; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 10; padding: 10px 14px; border-radius: 10px; background: var(--studio); color: var(--nacht); font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------------------------------------------------------------- Kopf */
.kopf {
  width: min(100%, 1240px); margin: 0 auto; padding: 22px var(--rand) 10px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.marke { display: inline-flex; flex: 0 1 auto; min-width: 0; }
.marke img { width: 168px; max-width: 46vw; }
.kopf-nav { display: flex; align-items: center; gap: 6px; flex: none; }
.kopf-nav a { color: var(--grau); text-decoration: none; font-size: 15px; font-weight: 500; padding: 8px 12px; border-radius: 999px; }
.kopf-nav a:hover { color: var(--hell); background: rgba(169, 220, 255, .08); }
.kopf-nav a[aria-current="page"] { color: var(--hell); }
.kopf-nav .kopf-knopf { color: var(--studio); border: 1px solid var(--linie-hell); }
.kopf-nav .kopf-knopf:hover { border-color: var(--baby); }

/* ---------------------------------------------------------------- Rahmen: Dokumentliste links (ab 1024 px), Text rechts */
.rahmen {
  width: min(100%, 1240px); margin: 0 auto; padding: 18px var(--rand) 72px;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px;
}
@media (min-width: 1024px) {
  .rahmen { grid-template-columns: 236px minmax(0, 1fr); gap: 56px; padding-top: 34px; }
}
.leiste { order: 2; min-width: 0; }
.inhalt { order: 1; min-width: 0; max-width: 46rem; }
@media (min-width: 1024px) {
  .leiste { order: 0; }
  .leiste-innen { position: sticky; top: 24px; }
}
.leiste-titel { margin: 0 0 10px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--still); font-weight: 600; }
.leiste ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.leiste a {
  display: block; padding: 8px 12px; border-radius: 10px; color: var(--grau); text-decoration: none; font-size: 14.5px; line-height: 1.35;
  border: 1px solid transparent;
}
.leiste a:hover { color: var(--hell); background: rgba(169, 220, 255, .06); }
.leiste a[aria-current="page"] { color: var(--hell); background: rgba(74, 174, 245, .12); border-color: rgba(74, 174, 245, .32); }
.leiste-kontakt { margin: 18px 0 0; padding: 14px; border-radius: 14px; border: 1px solid var(--linie); background: var(--flaeche); font-size: 13.5px; line-height: 1.55; color: var(--grau); }
.leiste-kontakt b { display: block; color: var(--studio); font-weight: 600; margin-bottom: 2px; }
.leiste-kontakt a { display: inline; padding: 0; border: 0; border-radius: 0; color: var(--baby); text-decoration: underline; text-decoration-color: rgba(169, 220, 255, .38); overflow-wrap: anywhere; }
.leiste-kontakt a:hover { background: none; color: var(--hell); }
@media (max-width: 1023px) {
  .leiste { border-top: 1px solid var(--linie); padding-top: 28px; }
  .leiste ul { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
}

/* ---------------------------------------------------------------- Text */
.pfad { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 0 0 18px; font-size: 13.5px; color: var(--still); }
.pfad a { color: var(--grau); text-decoration: none; }
.pfad a:hover { color: var(--hell); }
.pfad [aria-current] { color: var(--grau); }

h1 {
  margin: 0 0 12px; font-family: var(--serif); font-weight: 400; color: var(--hell);
  font-size: clamp(38px, 6.4vw, 60px); line-height: 1.04; letter-spacing: -.01em; overflow-wrap: break-word;
}
.stand { margin: 0 0 22px; font-size: 14px; color: var(--still); }
.stand b { color: var(--grau); font-weight: 600; }
.vorspann { margin: 0 0 22px; font-size: 18px; line-height: 1.65; color: var(--studio); }

h2 {
  margin: 56px 0 14px; scroll-margin-top: 24px;
  font-size: clamp(21px, 2.6vw, 25px); line-height: 1.3; font-weight: 650; color: var(--hell); letter-spacing: -.005em;
  display: flex; align-items: baseline; gap: 12px;
}
h2 .nr {
  flex: none; min-width: 34px; height: 28px; padding: 0 8px; border-radius: 9px; transform: translateY(-2px);
  display: inline-grid; place-items: center; font-size: 13.5px; font-weight: 700; color: var(--baby);
  background: rgba(74, 174, 245, .12); border: 1px solid rgba(74, 174, 245, .28); letter-spacing: 0;
}
h3 { margin: 30px 0 8px; font-size: 17.5px; line-height: 1.4; font-weight: 650; color: var(--studio); scroll-margin-top: 24px; }
section { scroll-margin-top: 24px; }
p { margin: 0 0 14px; }
ul, ol { margin: 0 0 16px; padding-left: 22px; }
li { margin: 0 0 7px; padding-left: 2px; }
li::marker { color: var(--eis); }
ol > li::marker { font-weight: 650; }
strong, b { color: var(--hell); font-weight: 650; }
em { font-style: italic; }
.inhalt a { overflow-wrap: anywhere; }
a[href^="mailto:"] { white-space: nowrap; overflow-wrap: normal; }  /* Adresse nie umbrechen */
abbr { text-decoration: none; }
hr { border: 0; border-top: 1px solid var(--linie); margin: 40px 0; }

/* Inhaltsverzeichnis */
.toc {
  margin: 6px 0 8px; padding: 18px 20px 14px; border-radius: 18px; border: 1px solid var(--linie);
  background: var(--flaeche);
}
.toc-titel { margin: 0 0 8px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--still); font-weight: 600; }
.toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; display: grid; gap: 0 28px; }
@media (min-width: 720px) { .toc ol { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.toc li { counter-increment: toc; margin: 0; padding: 0; }
.toc a {
  display: flex; gap: 10px; padding: 6px 0; color: var(--grau); text-decoration: none; font-size: 14.5px; line-height: 1.4;
  border-bottom: 1px solid rgba(158, 190, 220, .07);
}
.toc a::before { content: counter(toc) "."; flex: none; min-width: 22px; color: var(--eis); font-weight: 650; font-variant-numeric: tabular-nums; }
.toc a:hover { color: var(--hell); }

/* Hinweis-, Zusammenfassungs- und Kontaktboxen */
.box {
  margin: 20px 0; padding: 18px 20px; border-radius: 16px; border: 1px solid var(--linie);
  background: var(--flaeche);
}
.box > :last-child { margin-bottom: 0; }
.box-titel { margin: 0 0 8px; font-weight: 650; color: var(--hell); }
.box-akzent { border-color: rgba(74, 174, 245, .34); background: linear-gradient(180deg, rgba(74, 174, 245, .11), rgba(13, 25, 40, .7)); }
.box-warn { border-color: rgba(255, 207, 138, .34); background: linear-gradient(180deg, rgba(255, 207, 138, .08), rgba(13, 25, 40, .7)); }
.box-warn .box-titel { color: var(--warn); }
.kurz { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.kurz li { position: relative; padding-left: 26px; margin: 0; }
.kurz + p { margin-top: 14px; color: var(--grau); font-size: 14.5px; }
.kurz li::before {
  content: ""; position: absolute; left: 2px; top: .52em; width: 14px; height: 8px;
  border-left: 2px solid var(--eis); border-bottom: 2px solid var(--eis); transform: rotate(-45deg);
}

/* Angaben (Impressum) */
.angaben { margin: 0 0 20px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; border-top: 1px solid var(--linie); }
.angaben > div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px 24px; padding: 12px 0; border-bottom: 1px solid var(--linie); }
@media (min-width: 640px) { .angaben > div { grid-template-columns: 200px minmax(0, 1fr); } }
.angaben dt { color: var(--grau); font-size: 14.5px; }
.angaben dd { margin: 0; color: var(--studio); }

/* Tabellen: scrollen in sich, nie die Seite */
.tabelle { margin: 16px 0 22px; overflow-x: auto; border-radius: 14px; border: 1px solid var(--linie); background: var(--flaeche); }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.5; min-width: 560px; }
th, td { text-align: left; vertical-align: top; padding: 11px 14px; border-bottom: 1px solid var(--linie); }
th { color: var(--grau); font-weight: 600; font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; background: rgba(6, 12, 21, .45); }
tr:last-child td { border-bottom: 0; }
td code, .inhalt code {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .9em; color: var(--baby);
  background: rgba(74, 174, 245, .1); border-radius: 6px; padding: 1px 6px; white-space: nowrap;
}

/* Übersicht /legal: Karten */
.karten { list-style: none; margin: 28px 0 8px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 14px; }
.karten li { margin: 0; padding: 0; }
.karte {
  height: 100%; display: flex; flex-direction: column; gap: 6px; padding: 18px 18px 16px; border-radius: 18px;
  border: 1px solid var(--linie); background: var(--flaeche); color: var(--text); text-decoration: none;
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
}
.karte:hover { border-color: rgba(74, 174, 245, .45); background: rgba(16, 32, 52, .85); color: var(--text); transform: translateY(-2px); }
.karte b { color: var(--hell); font-size: 17px; font-weight: 650; }
.karte span { color: var(--grau); font-size: 14.5px; line-height: 1.55; }
.karte i { margin-top: auto; padding-top: 6px; font-style: normal; color: var(--baby); font-size: 14px; font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .karte { transition: none; } .karte:hover { transform: none; } }

.zurueck-oben { margin: 48px 0 0; font-size: 14px; }

/* ---------------------------------------------------------------- Fuß */
.fuss { border-top: 1px solid var(--linie); }
.fuss-innen {
  width: min(100%, 1240px); margin: 0 auto; padding: 30px var(--rand) calc(34px + env(safe-area-inset-bottom));
  display: grid; gap: 14px; color: var(--still); font-size: 13.5px; line-height: 1.6;
}
.fuss-innen p { margin: 0; }
.fuss-innen img { width: 150px; }
.fuss-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.fuss-links a, .fuss-innen a { color: var(--grau); text-decoration: none; }
.fuss-links a:hover, .fuss-innen a:hover { color: var(--hell); }
.fuss-firma { color: var(--grau); }

/* ---------------------------------------------------------------- Schmale Geräte */
@media (max-width: 520px) {
  body { font-size: 16px; }
  .kopf-nav a:not(.kopf-knopf) { display: none; }
  .vorspann { font-size: 17px; }
  h2 { gap: 10px; }
  .toc, .box { padding: 16px; }
}

/* ---------------------------------------------------------------- Druck (PDF für Zahlungsanbieter): hell, ohne Navigation */
@media print {
  :root { color-scheme: light; }
  html, body { background: #fff !important; color: #111 !important; font-size: 11pt; }
  .kopf, .leiste, .skip, .toc, .zurueck-oben, .fuss-innen img { display: none !important; }  /* nie ein Logo auf hellem Grund */
  .rahmen { display: block; padding: 0; }
  .inhalt { max-width: none; }
  h1, h2, h3, strong, b, .vorspann, .angaben dd, .box-titel { color: #000 !important; }
  h2 .nr { color: #000; background: none; border-color: #999; }
  a { color: #000; text-decoration: underline; }
  .box, .tabelle, .karte { background: none !important; border-color: #bbb !important; }
  th { background: #f2f2f2 !important; color: #333 !important; }
  .stand, .angaben dt, .fuss-innen, .fuss-firma, .fuss-links a { color: #444 !important; }
  td code, .inhalt code { background: none; color: #000; }
  h2, h3 { break-after: avoid; }
  table, .box { break-inside: avoid; }
}
