/* Lizenz der Inhalte der Werkstaetten (/cards/lizenz/), Gestaltung wie die Kartenwerkstatt (Petrol, hell und dunkel).
   Schriften selbst ausgeliefert (SIL OFL 1.1, Lizenztexte unter /cards/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: #f1f6f6; --flaeche: #ffffff; --linie: #d3e0e1; --tinte: #1c2a2d; --leise: #4f6467;
  --akzent: #1f6f78; --akzent-hell: #d9eeef; --fokus: #9a2a6f;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --papier: #0f1a1c; --flaeche: #152326; --linie: #2a3d41; --tinte: #e6f0f0; --leise: #a3b8ba;
    --akzent: #6fc3ca; --akzent-hell: #1d4449; --fokus: #e0559f;
    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; }
[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(--linie); 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; }
ol { margin: 0 0 12px; padding-inline-start: 34px; }
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; overflow-wrap: anywhere; }

@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; }
}
/* Lauf AI H: Falzbeins Satz zur Lizenz als erste Zeile (vorher im Fuss der Werkstatt) */
.zeile-lizenz { margin: 0 0 16px; font-size: 15px; color: var(--leise); overflow-wrap: anywhere; }
