/* LRS Spiele: gemeinsame Grundlage beider Varianten */

@font-face { font-family: "Andika"; src: url("../fonts/andika-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Andika"; src: url("../fonts/andika-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("../fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("../fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("../fonts/atkinson-hyperlegible-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  /* Farben: nur die drei Lilatöne des Logos und Schwarz */
  --tinte: #5A3D8E;        /* Überschriften, Links, Buttons */
  --tinte-tief: #45296F;   /* Hover, Text auf Flieder */
  --flieder: #8784BE;      /* zweite Silbe, Linien, große Schrift */
  --hell: #D2D1E6;         /* Flächen, Bänder */
  --hauch: #F4F2FA;        /* sehr helle Fläche */
  --papier: #FFFFFF;
  --ink: #16121F;          /* Lesetext */
  --ink-2: #3B3450;        /* Nebentext */

  --font-display: "Andika", "Atkinson Hyperlegible", system-ui, sans-serif;
  --font-text: "Atkinson Hyperlegible", system-ui, sans-serif;

  --step--1: clamp(0.9rem, 0.86rem + 0.15vw, 0.98rem);
  --step-0: clamp(1.06rem, 1rem + 0.3vw, 1.2rem);
  --step-1: clamp(1.25rem, 1.12rem + 0.6vw, 1.55rem);
  --step-2: clamp(1.55rem, 1.3rem + 1.1vw, 2.2rem);
  --step-3: clamp(1.9rem, 1.45rem + 2vw, 3.1rem);
  --step-4: clamp(2.3rem, 1.6rem + 3.4vw, 4.6rem);
  --step-5: clamp(2.6rem, 1.7rem + 4.4vw, 5.6rem);

  --gutter: clamp(16px, 4vw, 64px);
  --maxw: 1240px;
  --measure: 36em;      /* gut 75 Zeichen */
  --space-s: clamp(0.75rem, 0.6rem + 0.5vw, 1rem);
  --space-m: clamp(1.25rem, 1rem + 1vw, 2rem);
  --space-l: clamp(2.5rem, 1.8rem + 3vw, 4.5rem);
  --space-xl: clamp(4rem, 2.8rem + 5vw, 7.5rem);

  --radius: 18px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-color: var(--flieder) var(--hauch); }
body {
  margin: 0; background: var(--papier); color: var(--ink);
  font-family: var(--font-text); font-size: var(--step-0); line-height: 1.6;
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.12; margin: 0; text-wrap: balance; color: var(--ink); }
p, ul, ol { margin: 0; }
p { text-wrap: pretty; overflow-wrap: break-word; }
a { color: var(--tinte); text-underline-offset: 0.18em; text-decoration-thickness: 1.5px; }
a:hover { color: var(--tinte-tief); text-decoration-thickness: 2.5px; }
::selection { background: var(--hell); color: var(--ink); }
:focus-visible { outline: 3px solid var(--tinte); outline-offset: 3px; border-radius: 6px; }
strong { font-weight: 700; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--tinte); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 50; }
.skip:focus { left: 16px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }

/* Kopfzeile */
.kopf { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,0.94); backdrop-filter: saturate(1.2) blur(8px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.kopf.ist-gescrollt { border-bottom-color: var(--hell); }
.kopf .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.kopf__logo img { width: 92px; height: auto; }
.menu { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 34px); list-style: none; padding: 0; font-family: var(--font-display); font-size: 1.08rem; }
.menu a { color: var(--ink); text-decoration: none; padding: 8px 2px; border-bottom: 2px solid transparent; }
.menu a:hover, .menu a[aria-current="page"] { color: var(--tinte); border-bottom-color: var(--flieder); }
.menu__spiele { position: relative; }
.menu__spiele ul { list-style: none; padding: 10px; margin: 0; position: absolute; top: calc(100% + 6px); left: -12px; min-width: 200px; background: #fff; border: 1px solid var(--hell); border-radius: 14px; box-shadow: 0 12px 30px -12px rgba(69,41,111,.25); display: none; }
.menu__spiele:hover ul, .menu__spiele:focus-within ul { display: block; }
.menu__spiele ul a { display: block; padding: 8px 10px; border: 0; border-radius: 8px; }
.menu__spiele ul a:hover { background: var(--hauch); }
.menu-knopf { display: none; font: inherit; font-family: var(--font-display); font-size: 1.05rem; color: var(--tinte); background: none; border: 2px solid var(--tinte); border-radius: 999px; padding: 8px 18px; cursor: pointer; }

@media (max-width: 820px) {
  .menu-knopf { display: inline-flex; }
  .kopf__logo img { width: 64px; }
  .kopf .wrap { min-height: 60px; }
  .kopf nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--hell); display: none; }
  .kopf.menu-offen nav { display: block; }
  .menu { flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 20px; }
  .menu a { display: block; padding: 14px 0; border-bottom: 1px solid var(--hell); }
  .menu__spiele ul { position: static; display: block; border: 0; box-shadow: none; padding: 0 0 0 16px; }
}

/* Buttons */
.knopf { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; line-height: 1.3; text-decoration: none; padding: 15px 28px; border-radius: 999px; border: 2px solid var(--tinte); background: var(--tinte); color: #fff; transition: background .25s var(--ease-out), transform .25s var(--ease-out), box-shadow .25s var(--ease-out); }
.knopf:hover { background: var(--tinte-tief); border-color: var(--tinte-tief); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 22px -10px rgba(69,41,111,.6); text-decoration: none; }
.knopf--leise { background: transparent; color: var(--tinte); }
.knopf--leise:hover { background: var(--hauch); color: var(--tinte-tief); }
.knopf .pfeil { width: 1.1em; height: 1.1em; flex: none; }
.hinweis-shop { display: block; font-size: var(--step--1); color: var(--ink-2); margin-top: 10px; }

/* Fragen */
.fragen { display: grid; gap: 12px; max-width: 880px; }
.frage { border: 2px solid var(--hell); border-radius: var(--radius); background: #fff; }
.frage summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 24px; font-family: var(--font-display); font-weight: 700; font-size: var(--step-1); line-height: 1.3; color: var(--ink); }
.frage summary::-webkit-details-marker { display: none; }
.frage summary::after { content: ""; flex: none; width: 22px; height: 22px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235A3D8E' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center/contain no-repeat; transition: transform .3s var(--ease-out); }
.frage[open] summary::after { transform: rotate(180deg); }
.frage[open] { border-color: var(--flieder); }
.frage p { padding: 0 24px 22px; max-width: var(--measure); }

.quelle { font-size: var(--step--1); color: var(--ink-2); margin-top: var(--space-s); }

/* Fußzeile */
.fuss { background: var(--ink); color: #EDEAF5; padding: var(--space-l) 0 var(--space-m); margin-top: var(--space-xl); }
.fuss a { color: #fff; text-decoration-color: var(--flieder); }
.fuss__oben { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--space-m); }
.fuss__logo { background: #fff; border-radius: 16px; padding: 10px; width: 112px; margin-bottom: 18px; }
.fuss h2 { font-size: 1.05rem; color: #fff; margin-bottom: 12px; }
.fuss ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.fuss__unten { border-top: 1px solid rgba(210,209,230,.25); margin-top: var(--space-l); padding-top: var(--space-m); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: var(--step--1); color: #CFCBE0; }
@media (max-width: 820px) { .fuss__oben { grid-template-columns: 1fr 1fr; } .fuss__oben > :first-child { grid-column: 1 / -1; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
