/*
  Gemeinsames Stylesheet für die Textseiten (/privacy, /terms, /about, /faq).
  Die Startseite index.html trägt ihr CSS selbst, damit sie in einem
  einzigen Aufruf fertig ist.
*/

@font-face {
  font-family: "DM Sans";
  src: url("/assets/fonts/dm-sans-regular.woff2") format("woff2");
  font-weight: 400; font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("/assets/fonts/dm-sans-medium.woff2") format("woff2");
  font-weight: 500; font-display: swap;
}

/*
  DUNKEL ist der Grundzustand (Robin, 2026-08-12), unabhängig von der
  Systemeinstellung. Hell kommt nur über die eigene Wahl, die auf der
  Startseite getroffen und in localStorage gehalten wird. Darum steht hier
  kein prefers-color-scheme.
*/
:root {
  --bg: #000000;
  --card: #1C1C1E;
  --fg: #F2F2F4;
  --muted: #8E8E93;
  --accent: #4892F6;
  --line: rgba(255, 255, 255, 0.18);
}
:root[data-theme="light"] {
  --bg: #FFFFFF;
  --card: #F2F2F7;
  --fg: #000000;
  --muted: #6E6E73;
  --accent: #0A6CDB;
  --line: rgba(0, 0, 0, 0.14);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

.wrap {
  max-width: 44rem;
  margin: 0 auto;
  padding: 28px 24px max(72px, env(safe-area-inset-bottom));
}

/* Kopfzeile mit Wortmarke, führt zurück auf die Startseite */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 28px;
  margin-bottom: 36px;
  border-bottom: 1px solid var(--line);
}
.top .home { display: block; line-height: 0; }
/*
  Die Wortmarke liegt als eigene Datei vor, damit sie nicht in jeder Seite
  wiederholt wird. Als MASKE eingesetzt, nicht als Bild: so nimmt sie die
  Textfarbe an und funktioniert in hell und dunkel ohne zweite Datei.
*/
.top .wordmark {
  display: block;
  width: 56px;
  height: 31px;
  background-color: currentColor;
  color: var(--fg);
  -webkit-mask: url("/assets/wordmark.svg") no-repeat center / contain;
  mask: url("/assets/wordmark.svg") no-repeat center / contain;
}
.top nav { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 15px; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover { color: var(--fg); }
.top nav a[aria-current="page"] { color: var(--fg); }

h1 {
  font-size: 30px;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

.updated {
  margin: 0 0 44px;
  font-size: 14px;
  color: var(--muted);
}

h2 {
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 52px 0 14px;
  padding-top: 8px;
}

h3 {
  font-size: 17px;
  font-weight: 500;
  margin: 32px 0 8px;
  color: var(--fg);
}

p, ul, ol { margin: 0 0 16px; }
ul, ol { padding-left: 22px; }
li { margin-bottom: 7px; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

/* Fett nimmt die Textfarbe. Vorher stand hier hartes #FFFFFF, was im
   hellen Modus weisse Schrift auf weissem Grund ergab. */
strong { font-weight: 500; color: var(--fg); }

blockquote {
  margin: 0 0 16px;
  padding: 14px 18px;
  background: var(--card);
  border-radius: 12px;
  border-left: 2px solid var(--line);
  color: var(--muted);
  font-size: 16px;
}
blockquote p:last-child { margin-bottom: 0; }
blockquote cite { display: block; margin-top: 6px; font-style: normal; font-size: 14px; }

/* Inhaltsverzeichnis */
.toc {
  background: var(--card);
  border-radius: 14px;
  padding: 18px 22px;
  margin: 0 0 44px;
}
.toc p { margin: 0 0 10px; font-size: 14px; color: var(--muted); }
.toc ul { margin: 0; padding-left: 20px; }
.toc li { margin-bottom: 5px; }

/* Hinweiskasten */
.note {
  background: var(--card);
  border-radius: 12px;
  padding: 16px 18px;
  margin: 0 0 24px;
  font-size: 16px;
  color: var(--muted);
}
.note p:last-child { margin-bottom: 0; }

/* Abschluss: zurück zu den Stores */
.cta {
  margin-top: 64px;
  padding-top: 8px;
  text-align: center;
}
.cta p { color: var(--muted); font-size: 16px; margin-bottom: 20px; }
.cta .links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 24px; }

/*
  Trennstriche als Rahmen am Link statt als eigenes „·"-Zeichen. Ein eigenes
  Zeichen rutscht beim Umbrechen allein an den Zeilenanfang.
*/
footer {
  margin-top: 48px;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  align-items: center;
}
footer > span { padding-right: 12px; border-right: 1px solid var(--line); }
footer a {
  color: var(--muted);
  text-decoration: none;
  padding: 0 12px;
  border-right: 1px solid var(--line);
}
footer a:last-child { border-right: 0; }
footer a:hover { color: var(--fg); text-decoration: underline; }

@media (max-width: 480px) {
  h1 { font-size: 26px; }
  h2 { font-size: 19px; }
  .top { flex-direction: column; align-items: flex-start; }
}
