/* Kidspace-Designkonzept: Papier ~60 %, Tinte ~25 %, Ballfarben ~10 %.
   Kein Text auf Ballfarben, Gelb nur für Rahmen/Linien. */

@font-face { font-family: "Fredoka"; src: url("fonts/fredoka_semibold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Fredoka"; src: url("fonts/fredoka_bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible Next"; src: url("fonts/atkinson_regular.otf") format("opentype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible Next"; src: url("fonts/atkinson_bold.otf") format("opentype"); font-weight: 700; font-display: swap; }

:root {
  --tinte: #1A2340;
  --tinte-2: #4A5270;   /* Sekundärtext, 7.6:1 auf Papier */
  --tinte-3: #646B86;   /* gedämpft, 5.1:1 auf Weiß */
  --papier: #F7F8FC;
  --weiss: #FFFFFF;
  --linie: #E2E5EF;
  --rot: #D63339; --orange: #F08A24; --gelb: #F6C21C; --gruen: #2E9E57;
  --tuerkis: #1A9FB0; --blau: #2774D9; --lila: #6E4D9E;
  --font-title: "Fredoka", "Atkinson Hyperlegible Next", system-ui, sans-serif;
  --font-body: "Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 16px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--papier);
  color: var(--tinte);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.55;
}
img, svg { max-width: 100%; }

h1, h2, h3 { font-family: var(--font-title); font-weight: 700; line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 7vw, 3rem); }
h2 { font-size: clamp(1.5rem, 5vw, 2rem); }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }

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

/* Zweisprachigkeit: die jeweils andere Sprache ausblenden */
html[data-lang="de"] [data-l="en"],
html[data-lang="en"] [data-l="de"],
html:not([data-lang]) [data-l="en"] { display: none !important; }

.skip { position: absolute; left: -999px; top: 0; background: var(--weiss); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }

/* Kopfzeile */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px; max-width: 1280px; margin: 0 auto; }
.topbar .logo img { display: block; height: 56px; width: auto; }
.lang-btn {
  font: 700 1rem/1 var(--font-body); color: var(--tinte); background: var(--weiss);
  border: 2px solid var(--tinte); border-radius: 999px; padding: 10px 16px; min-height: 44px; cursor: pointer;
}
.lang-btn:hover { background: var(--papier); }

/* Fußzeile */
.footer { border-top: 3px solid var(--gelb); margin-top: 48px; padding: 24px 16px 40px; color: var(--tinte-2); font-size: 1rem; }
.footer-inner { max-width: 760px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.footer .accent { font-family: var(--font-title); font-weight: 600; color: var(--tinte); }
.footer p { margin: 0; }

/* kleiner Ball als Schmuck vor Überschriften */
.ball { display: inline-block; width: .6em; height: .6em; border-radius: 50%; margin-right: .35em; vertical-align: .08em; }
.ball.rot { background: var(--rot); } .ball.orange { background: var(--orange); } .ball.gruen { background: var(--gruen); }
.ball.tuerkis { background: var(--tuerkis); } .ball.blau { background: var(--blau); } .ball.lila { background: var(--lila); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
