/*
 * Website at `/` (ADR-0010). Plain CSS, no build: values mirror the design
 * layer (packages/ui/src/design/tokens.ts) — warm paper by day, ink blue by night, the app icon's blue
 * as accent, Nunito 400/800 (ADR-0013), motion only without reduced motion.
 */
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("/fonts/nunito-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("/fonts/nunito-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-display: swap;
  font-weight: 800;
  src: url("/fonts/nunito-latin-800-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-display: swap;
  font-weight: 800;
  src: url("/fonts/nunito-latin-ext-800-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: light dark;
  --bg: #fbf6ee;
  --surface: #f3ebdf;
  --border: #e6dccd;
  --text: #2b231d;
  --text-muted: #6b5f55;
  --accent: #1d67a8;
  --accent-text: #ffffff;
  --accent-soft: #e6eef7;
  --radius-md: 14px;
  --radius-lg: 18px;
  --gutter: 16px;
  --content-max: 64rem;
  --ease: cubic-bezier(0.2, 0, 0, 1);
  /* Area cues (tokens.ts AREA_HUES, CUE): muted ground, darker text. */
  --cue-bg-l: 0.93;
  --cue-bg-c: 0.05;
  --cue-text-l: 0.44;
  --cue-text-c: 0.11;
  --raised: #fffdfa;
  --shadow: 0 1px 2px rgb(60 40 20 / 0.08), 0 8px 24px rgb(60 40 20 / 0.1);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131726;
    --surface: #1f2539;
    --border: #30374f;
    --text: #eef0f8;
    --text-muted: #aab0c6;
    --accent: #8cbcec;
    --accent-text: #11263a;
    --accent-soft: #233446;
    --cue-bg-l: 0.32;
    --cue-bg-c: 0.055;
    --cue-text-l: 0.85;
    --cue-text-c: 0.09;
    --raised: #262d44;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 8px 24px rgb(0 0 0 / 0.3);
  }
}

* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  touch-action: manipulation;
}
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.6 "Nunito", system-ui, sans-serif;
  padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px)
    env(safe-area-inset-left, 0px);
}
h1,
h2,
h3 {
  font-weight: 800;
  margin: 0;
}
p {
  margin: 0;
}
a {
  color: var(--accent);
}
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.bar,
main > section,
footer {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
@media (min-width: 40rem) {
  :root {
    --gutter: 32px;
  }
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.25rem;
  min-height: 44px;
}
.brand img {
  border-radius: 8px;
}
.bar-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  font-weight: 800;
}

.hero {
  display: grid;
  gap: 40px;
  align-items: center;
  padding-block: 32px 64px;
}
@media (min-width: 56rem) {
  .hero {
    grid-template-columns: 1.1fr 1fr;
    padding-block: 48px 80px;
  }
}
.hero h1 {
  font-size: clamp(2.25rem, 1.5rem + 3.5vw, 3.75rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.lead {
  margin-top: 20px;
  max-width: 36rem;
  font-size: 1.25rem;
  color: var(--text-muted);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin-top: 32px;
}
.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding-inline: 32px;
  border-radius: 9999px;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 800;
  font-size: 1.125rem;
  text-decoration: none;
}
.secondary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 800;
}
.note {
  margin-top: 16px;
  font-size: 0.9375rem;
  color: var(--text-muted);
}
@media (prefers-reduced-motion: no-preference) {
  .primary {
    transition: filter 180ms var(--ease);
  }
}
@media (hover: hover) {
  .primary:hover {
    filter: brightness(1.08);
  }
}

main > section + section {
  margin-top: 56px;
}
section h2 {
  font-size: 1.625rem;
  line-height: 1.25;
}

.features ul {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
@media (min-width: 40rem) {
  .features ul {
    grid-template-columns: 1fr 1fr;
  }
}
.features li {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.features svg {
  box-sizing: content-box;
  width: 24px;
  height: 24px;
  padding: 12px;
  border-radius: var(--radius-md);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.features h3 {
  margin-top: 16px;
  font-size: 1.125rem;
}
.features p {
  margin-top: 6px;
  color: var(--text-muted);
}

.install > p {
  margin-top: 8px;
  color: var(--text-muted);
}
.steps {
  display: grid;
  gap: 16px;
  margin-top: 24px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
}
.steps > div {
  padding: 24px;
  background: var(--raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.steps h3 {
  font-size: 1.125rem;
}
.steps ol {
  list-style: none;
  counter-reset: step;
  margin: 16px 0 0;
  padding: 0;
}
.steps li {
  counter-increment: step;
  position: relative;
  min-height: 32px;
  padding: 3px 0 0 44px;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--text);
  font-weight: 800;
}
.steps li + li {
  margin-top: 10px;
}
.steps em {
  font-style: normal;
  font-weight: 800;
}

.teaser {
  padding-block: 32px;
}
main > section.teaser {
  width: calc(100% - 2 * var(--gutter));
  max-width: calc(var(--content-max) - 2 * var(--gutter));
  padding: 32px var(--gutter);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.teaser > * {
  max-width: 36rem;
}
.badge {
  display: inline-block;
  padding: 2px 12px;
  border-radius: 9999px;
  background: var(--accent-soft);
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 800;
}
.teaser h2 {
  margin-top: 12px;
}
.teaser p {
  margin-top: 8px;
  color: var(--text-muted);
}

footer {
  margin-top: 48px;
  padding-block: 24px 32px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* Area cues by hue, for the hero picture and *Was geübt wird*. */
.card-math, .area-math { --h: 85; }
.area-sp { --h: 150; }
.tag-en, .area-en { --h: 235; }
.card-fr, .area-fr { --h: 10; }
.card-cards, .area-cards { --h: 190; }
.f-green { --h: 150; }
.f-blue { --h: 235; }
.f-violet { --h: 300; }
.f-amber { --h: 60; }
.card,
.tag,
.mark,
.features li svg {
  background: oklch(var(--cue-bg-l) var(--cue-bg-c) var(--h));
  color: oklch(var(--cue-text-l) var(--cue-text-c) var(--h));
}

/* Hero picture: a round on a tablet, area cards around it. Scales with its
 * container (no horizontal overflow at 320 px), decorative only. */
.hero-art {
  container-type: inline-size;
  position: relative;
  width: min(100%, 30rem);
  aspect-ratio: 1 / 0.85;
  margin-inline: auto;
}
.glow {
  position: absolute;
  inset: 8% 6%;
  border-radius: 50%;
  background: var(--accent-soft);
  filter: blur(28px);
}
.tablet {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 52cqw;
  aspect-ratio: 3 / 4;
  padding: 2.4cqw;
  border-radius: 7cqw;
  background: var(--text);
  box-shadow: var(--shadow);
  transform: translate(-50%, -50%) rotate(-3deg);
}
.screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  padding: 6cqw 4cqw 5cqw;
  border-radius: 5cqw;
  background: var(--bg);
}
.tag {
  padding: 0.6cqw 3cqw;
  border-radius: 9999px;
  font-size: 3.2cqw;
  font-weight: 800;
}
.prompt {
  margin-top: 7cqw;
  font-size: 6.4cqw;
  font-weight: 800;
}
.answer {
  width: 100%;
  margin-top: 5cqw;
  padding: 2.4cqw 0;
  border-radius: 3cqw;
  background: var(--raised);
  box-shadow: 0 0.8cqw 0 var(--border);
  font-size: 4.8cqw;
  text-align: center;
}
.right {
  display: inline-flex;
  align-items: center;
  gap: 1.2cqw;
  margin-top: 4cqw;
  color: oklch(var(--cue-text-l) var(--cue-text-c) 150);
  font-size: 3.6cqw;
  font-weight: 800;
}
.right svg {
  width: 4.4cqw;
  height: 4.4cqw;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.dots {
  display: flex;
  gap: 1.6cqw;
  margin-top: auto;
}
.dots i {
  width: 2.2cqw;
  height: 2.2cqw;
  border-radius: 50%;
  background: var(--border);
}
.dots i.done {
  background: var(--accent);
}
.card {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6cqw;
  width: 27cqw;
  aspect-ratio: 4 / 5;
  border-radius: 4.5cqw;
  box-shadow: var(--shadow);
  text-align: center;
}
.card b {
  font-size: 5.2cqw;
  font-weight: 800;
}
.card small {
  font-size: 3.4cqw;
}
.card-fr {
  left: 1cqw;
  top: 8cqw;
  transform: rotate(-12deg);
}
.card-math {
  right: 1cqw;
  top: 2cqw;
  transform: rotate(9deg);
}
.card-cards {
  right: 4cqw;
  bottom: 2cqw;
  transform: rotate(-6deg);
}
/* Transform only, never faded: text keeps its contrast. */
@keyframes rise {
  from {
    translate: 0 16px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .card,
  .tablet {
    animation: rise 260ms var(--ease) calc(var(--i) * 60ms) both;
  }
}

/* *Was geübt wird*: one tile per area. */
.areas ul {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
}
.areas li {
  padding: 20px;
  border-radius: var(--radius-lg);
  background: var(--raised);
  box-shadow: 0 1px 2px rgb(60 40 20 / 0.06);
  border: 1px solid var(--border);
}
.mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  font-size: 1.25rem;
  font-weight: 800;
}
.mark svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.areas h3 {
  margin-top: 14px;
  font-size: 1.125rem;
}
.areas p {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* *So funktioniert's*: three numbered steps. */
.how ol {
  list-style: none;
  counter-reset: how;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
}
.how li {
  counter-increment: how;
}
.how li::before {
  content: counter(how);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-soft);
  font-weight: 800;
  font-size: 1.125rem;
}
.how h3 {
  margin-top: 12px;
  font-size: 1.125rem;
}
.how p {
  margin-top: 6px;
  color: var(--text-muted);
}

/* *Häufige Fragen*: native disclosure, no script (ADR-0010). */
.faq details {
  max-width: 44rem;
  border-bottom: 1px solid var(--border);
}
.faq h2 + details {
  margin-top: 16px;
  border-top: 1px solid var(--border);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding-block: 12px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  flex: none;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text-muted);
}
.faq details[open] summary::after {
  content: "–";
}
.faq summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}
.faq details p {
  padding-bottom: 16px;
  color: var(--text-muted);
}

footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
}
footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text-muted);
}

/* *Impressum*, *Datenschutz*: one readable column. */
main.legal {
  width: 100%;
  max-width: 44rem;
  margin-inline: auto;
  padding: 32px var(--gutter) 0;
}
.legal h1 {
  font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem);
  line-height: 1.15;
}
.legal .lead {
  margin-top: 16px;
}
.legal section {
  margin-top: 32px;
}
.legal h2 {
  font-size: 1.25rem;
}
.legal section p {
  margin-top: 8px;
}
.legal .stand {
  margin-top: 24px;
  color: var(--text-muted);
}
main.legal > section {
  padding-inline: 0;
}
main.legal > section + section {
  margin-top: 32px;
}
