/* Datenschutzerklaerung von autisten.at, Gestaltung wie die Kartenwerkstatt (hell und dunkel). Auftrag L (29.11.):
   die Farben der Kartenwerkstatt (Farben I und II, frontend/src/stil/grund.css): Papier, Tinte, Mo-Blau, Fokus als
   doppelter Ring (innen Tinte, aussen Papier, kein Rot). Nur die Farben, der Text bleibt.
   Schriften selbst ausgeliefert (SIL OFL 1.1, Lizenztexte unter schrift/). Hell und Dunkel nur nach
   dem System: die Seite hat kein Skript ausser der Sprachwahl. */

@font-face { font-family: "KW Atkinson"; src: url("schrift/AtkinsonHyperlegibleNext-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "KW Atkinson"; src: url("schrift/AtkinsonHyperlegibleNext-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "KW Patrick Hand"; src: url("schrift/PatrickHand-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }

:root {
  --papier: #f6f4ee; --flaeche: #fcfbf8; --linie: #c9d1da; --rand-tipp: #6f7c8b; --tinte: #26303b; --leise: #4e5a67;
  --akzent: #2e5c9e; --akzent-hell: #dce6f4; --fokus: #26303b; --fokus-aussen: #f6f4ee;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --papier: #1f2730; --flaeche: #27313c; --linie: #3a4655; --rand-tipp: #8a9ab0; --tinte: #ece7dc; --leise: #b8c2cf;
    --akzent: #a9c4ee; --akzent-hell: #2a3b54; --fokus: #ece7dc; --fokus-aussen: #1f2730;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--papier); color: var(--tinte);
  font-family: "KW Atkinson", system-ui, sans-serif; font-size: 17px; line-height: 1.55;
}
:focus-visible { outline: 3px solid var(--fokus); outline-offset: 2px; box-shadow: 0 0 0 7px var(--fokus-aussen); }
[hidden] { display: none !important; }

.kopf {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px;
  padding: 12px 32px; min-height: 72px; background: var(--flaeche); border-bottom: 1px solid var(--linie);
}
.marke { font-family: "KW Patrick Hand", "Comic Sans MS", cursive; font-size: 32px; line-height: 1; color: var(--tinte); text-decoration: none; }
.wahl { display: flex; gap: 4px; padding: 4px; background: var(--flaeche); border: 1px solid var(--linie); border-radius: 12px; }
.wahl button {
  min-height: 44px; min-width: 96px; padding: 0 14px; border-radius: 9px; border: 1px solid var(--rand-tipp); background: var(--flaeche);
  color: var(--tinte); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer;
}
.wahl button[aria-pressed="true"] { border-color: var(--akzent); box-shadow: inset 0 0 0 1px var(--akzent); background: var(--akzent-hell); }

main { max-width: 760px; margin: 0 auto; padding: 24px 32px 48px; }
.hinweis {
  margin: 0 0 20px; padding: 12px 16px; border-radius: 12px; background: var(--akzent-hell); border: 1px solid var(--linie); font-weight: 700;
}
article { background: var(--flaeche); border: 1px solid var(--linie); border-radius: 12px; padding: 8px 28px 24px; }
article + article { margin-top: 24px; }
h1 { font-family: "KW Patrick Hand", "Comic Sans MS", cursive; font-weight: 400; font-size: 40px; line-height: 1.1; margin: 20px 0 8px; }
h2 { font-size: 19px; font-weight: 700; margin: 28px 0 6px; }
p { margin: 0 0 12px; }
ul { margin: 0 0 12px; padding-inline-start: 24px; }
li { margin: 4px 0; }
code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 0.92em; padding: 1px 5px; border-radius: 5px; background: var(--akzent-hell); }
a { color: var(--akzent); text-underline-offset: 3px; }

@media (max-width: 600px) {
  .kopf { padding: 8px 16px; min-height: 0; }
  .marke { font-size: 28px; }
  main { padding: 16px 16px 40px; }
  article { padding: 4px 16px 16px; }
  h1 { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
