/* lernplan.ai: Rahmenseite im Stil der Lernplan-App (Karopapier, Bricolage Grotesque, Lexend, #2342c8). */
@font-face { font-family: "Bricolage Grotesque"; font-weight: 600 700; font-display: swap;
  src: url("fonts/bricolage-grotesque-latin.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: "Bricolage Grotesque"; font-weight: 600 700; font-display: swap;
  src: url("fonts/bricolage-grotesque-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C4, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Lexend"; font-weight: 400 600; font-display: swap;
  src: url("fonts/lexend-latin.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: "Lexend"; font-weight: 400 600; font-display: swap;
  src: url("fonts/lexend-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C4, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --ink: #2342c8; --ink-soft: #e9eeff; --text: #1a1f2e; --muted: #586176; --line: #d8deeb;
  --page: #f5f7fb; --card: #fff; --gold: #ffd23f; --ok: #16784a; --ok-soft: #e2f4e9; --bad: #b5381f; --bad-soft: #fbe8e3;
  --vok: #254736; --form: #2e6a50;
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: Lexend, -apple-system, "Segoe UI", system-ui, sans-serif;
  color: var(--text); background: var(--page); font-family: var(--body); font-synthesis: none;
  -webkit-text-size-adjust: 100%; text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; overflow-x: hidden; min-height: 100dvh; display: flex; flex-direction: column;
  /* Karopapier wie in der Lernplan-App */
  background: linear-gradient(rgba(35, 66, 200, .07) 1px, transparent 1px),
              linear-gradient(90deg, rgba(35, 66, 200, .07) 1px, transparent 1px) var(--page);
  background-size: 22px 22px;
  line-height: 1.55;
}
::selection { background: var(--ink-soft); color: var(--ink); }
a { color: var(--ink); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:focus-visible { outline: 3px solid #6f86e0; outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); color: var(--text); margin: 0; text-wrap: balance; }

/* Kopfzeile wie .app-header der Apps */
.bar { display: flex; justify-content: space-between; align-items: center; gap: 14px;
  padding: 14px clamp(16px, 4vw, 32px); border-bottom: 1px solid var(--line); background: rgba(245, 247, 251, .92); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none;
  font-weight: 600; font-size: 16px; letter-spacing: -.3px; }
.brand img { border-radius: 7px; }

/* Knöpfe wie .btn / .btn-primary der Apps */
.btn { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 50px; padding: 14px 22px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink);
  font: 550 16px/1.2 var(--body); text-decoration: none; white-space: nowrap;
  transition: background-color .18s ease, box-shadow .18s ease, transform .18s cubic-bezier(.2, .8, .2, 1); }
.btn:hover { box-shadow: 0 2px 8px rgba(26, 31, 46, .1); transform: translateY(-1px); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn-primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-primary:hover { background: #1c37ad; }
.btn-small { min-height: 40px; padding: 9px 14px; font-size: 14px; }

main { flex: 1; width: 100%; }

/* 1. Bildschirm: Botschaft und Bild füllen zusammen den Bildschirm */
.intro { min-height: calc(100svh - 69px); display: flex; flex-direction: column; }
.hero { width: 100%; max-width: 1180px; margin: 0 auto; padding: clamp(24px, 5vh, 56px) clamp(16px, 4vw, 32px) 0; }
.hero h1 { font-size: clamp(36px, 3.5vw, 54px); line-height: 1.04; letter-spacing: -.035em; font-weight: 700; } /* am Desktop eine Zeile */
.hero em { font-style: normal; color: var(--ink); }
.hero h1 span { white-space: nowrap; } /* Umbruch nur zwischen den Sätzen */
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--muted); margin: 12px 0 0; max-width: 72ch; }
.scene { flex: 1; min-height: 340px; margin-top: 16px; position: relative; }
.scene canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(to bottom, transparent, #000 6%, #000 94%, transparent); }

/* Zugang anfragen: nach dem ersten Bild und am Ende */
.join { max-width: 1080px; margin: 0 auto; padding: clamp(32px, 5vw, 56px) clamp(16px, 4vw, 32px); }
.join-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px;
  padding: clamp(24px, 3vw, 36px) clamp(24px, 4vw, 44px); border-radius: 22px; background: var(--ink); color: #fff; }
.join-inner h2 { color: #fff; font-size: clamp(26px, 3vw, 34px); }
.join-inner p { margin: 6px 0 0; color: #dfe5ff; max-width: 52ch; font-size: 17px; }
.join-inner .btn-primary { background: #fff; color: var(--ink); border-color: #fff; }
.join-inner .btn-primary:hover { background: var(--ink-soft); }
.btn-big { min-height: 56px; padding: 16px 28px; font-size: 17px; }
.join-end { min-height: calc(100svh - 67px); /* mit der Fußzeile ein Bildschirm */ display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 0; }
.join-end h2 { font-size: clamp(40px, 6vw, 72px); letter-spacing: -.035em; }
.join-end > p { color: var(--muted); font-size: clamp(18px, 2vw, 21px); margin: 16px 0 30px; max-width: 46ch; }
.join-end .join-mail { margin: 18px 0 0; font-size: 15px; }

/* 2. Direkt zu den Apps */
.apps { max-width: 1080px; margin: 0 auto; padding: clamp(24px, 4vw, 40px) clamp(16px, 4vw, 32px);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; border-top: 1px solid var(--line); }
.app-link { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; text-decoration: none; color: var(--text);
  background: rgba(255, 255, 255, .7); border: 1px solid var(--line); transition: background-color .18s ease, border-color .18s ease, transform .18s cubic-bezier(.2, .8, .2, 1); }
.app-link:hover { background: #fff; border-color: #c4cde3; transform: translateY(-1px); }
.app-link img { border-radius: 11px; flex: none; }
.app-link span { display: grid; flex: 1; min-width: 0; }
.app-link b { font-family: var(--display); font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.app-link small { font-size: 13px; color: var(--muted); }
.app-link .arrow { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; transition: transform .18s ease; }
.app-link:hover .arrow { transform: translateX(3px); }
.apps .invite { grid-column: 1 / -1; margin: 6px 2px 0; color: var(--muted); font-size: 14px; }

/* 3. Ein Lerntag: die drei Apps, wie das Kind sie sieht */
.day { min-height: 100svh; max-width: 1180px; margin: 0 auto; padding: clamp(32px, 6vh, 104px) clamp(16px, 4vw, 32px);
  display: flex; flex-direction: column; justify-content: center; }
h2 { font-size: clamp(30px, 4vw, 44px); letter-spacing: -.03em; font-weight: 700; line-height: 1.1; }
.day-sub { color: var(--muted); margin: 10px 0 0; font-size: 17px; }
.day-stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: clamp(32px, 6vw, 96px); align-items: center; margin-top: clamp(28px, 5vh, 48px); }
.app-tabs { display: flex; gap: 10px; margin-bottom: 26px; }
.app-tabs button { padding: 6px; border-radius: 16px; border: 1.5px solid transparent; background: transparent; cursor: pointer; opacity: .45;
  transition: opacity .3s ease, border-color .3s ease, background-color .3s ease; }
.app-tabs button:hover { opacity: .8; }
.app-tabs button[aria-selected="true"] { opacity: 1; border-color: var(--line); background: rgba(255, 255, 255, .85); }
.app-tabs img { display: block; border-radius: 10px; }
.app-tabs button:focus-visible { outline: 3px solid #6f86e0; outline-offset: 2px; }
.infos { display: grid; }
.info { grid-area: 1 / 1; opacity: 0; transform: translateY(8px); visibility: hidden; transition: opacity .35s ease, transform .5s cubic-bezier(.16, 1, .3, 1), visibility 0s .5s; }
.info.on { opacity: 1; transform: none; visibility: visible; transition: opacity .5s .15s ease, transform .6s .15s cubic-bezier(.16, 1, .3, 1), visibility 0s; }
.info h3 { font-size: clamp(30px, 3.4vw, 40px); letter-spacing: -.03em; font-weight: 700; line-height: 1.1; }
.info .by { font-family: var(--body); font-size: 15px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.info-lead { font-size: clamp(18px, 1.8vw, 21px); color: var(--text); margin: 12px 0 18px; max-width: 34ch; }
.info ul { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 10px; color: var(--muted); max-width: 40ch; }
.info li { padding-left: 22px; position: relative; }
.info li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.info-lernplan li::before { background: #2342c8; } .info-vokabeln li::before { background: #254736; } .info-formeln li::before { background: #2e6a50; }
.info-vokabeln .btn-primary { background: #254736; border-color: #254736; } .info-formeln .btn-primary { background: #2e6a50; border-color: #2e6a50; }
.device { position: relative; height: clamp(440px, calc(100svh - 240px), 560px); /* Lerntag passt in einen Bildschirm */ border-radius: 30px; border: 10px solid #1a1f2e; overflow: hidden; box-shadow: 0 34px 60px -34px rgba(26, 31, 46, .6); }
.screen { position: absolute; inset: 0; overflow: hidden; padding: 18px; font-size: 14px; line-height: 1.45;
  opacity: 0; transform: translateX(16px); transition: opacity .2s ease, transform .2s ease; pointer-events: none; }
.screen.on { opacity: 1; transform: none; transition: opacity .4s .2s ease, transform .6s .2s cubic-bezier(.16, 1, .3, 1); }
.screen p { margin: 0; }
.frac { display: inline-grid; vertical-align: middle; text-align: center; line-height: 1.05; margin: 0 2px; font-style: normal; }
.frac i { font-style: normal; padding: 0 3px; }
.frac i:first-child { border-bottom: 1.5px solid currentColor; }

/* Lernplan-Zettel (wie apps/lernplan) */
.s-lernplan { background: linear-gradient(rgba(35,66,200,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(35,66,200,.07) 1px, transparent 1px) #f5f7fb; background-size: 16px 16px; color: var(--text); }
.lp-bar svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; vertical-align: -1px; margin-right: 2px; }
.lp-bar { display: flex; justify-content: space-between; align-items: center; margin: -18px -18px 14px; padding: 9px 12px; background: rgba(245,247,251,.95); border-bottom: 1px solid var(--line); font-size: 12px; }
.lp-count { color: var(--muted); font-variant-numeric: tabular-nums; } .lp-count b { color: var(--text); }
.lp-finish { background: var(--ink); color: #fff; border-radius: 8px; padding: 5px 10px; font-weight: 600; }
.lp-eyebrow { font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.lp-title { font-family: var(--display); font-size: 26px; font-weight: 700; line-height: 1.1; margin-top: 2px !important; }
.lp-chips { display: flex; flex-wrap: wrap; gap: 5px; margin: 8px 0 12px !important; }
.chip { font-size: 11px; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; }
.chip.phase { color: var(--ink); background: var(--ink-soft); border-color: transparent; font-weight: 600; }
.lp-task { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 11px; margin-bottom: 9px; }
.lp-head { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13.5px; margin-bottom: 8px !important; }
.num { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ink-soft); color: var(--ink); font-size: 12px; flex: none; }
.num.ok { background: var(--ok-soft); color: var(--ok); }
.video { position: relative; height: 92px; border-radius: 8px; overflow: hidden; background: linear-gradient(135deg, #1f2a44, #3a4a72); }
.video::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 70% 35%, rgba(255,210,63,.35), transparent 45%), repeating-linear-gradient(90deg, rgba(255,255,255,.04) 0 14px, transparent 14px 28px); }
.play { position: absolute; left: 50%; top: 44%; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; background: rgba(255,255,255,.92); }
.play::after { content: ""; position: absolute; left: 13px; top: 10px; border-left: 11px solid #1f2a44; border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.vlabel { position: absolute; left: 8px; bottom: 9px; font-size: 10.5px; color: #fff; opacity: .9; }
.vbar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.25); } .vbar b { display: block; height: 100%; width: 100%; background: var(--gold); }
.choices { display: grid; gap: 6px; }
.choice { display: flex; justify-content: space-between; align-items: center; min-height: 40px; padding: 5px 12px; border: 1.5px solid var(--line); border-radius: 9px; background: #fff; font-size: 14px; }
.choice em { font-style: normal; font-size: 11px; font-weight: 600; color: var(--ok); opacity: 0; }
.choice.c-right { border-color: var(--ok); background: var(--ok-soft); } .choice.c-right em { opacity: 1; }

/* Vokabeltrainer (wie apps/vokabeltrainer) */
.s-vokabeln { background: #fbfcfa; color: #1f2a24; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; padding-top: 22px; }
.st-top { display: flex; justify-content: space-between; color: #667269; font-size: 12px; margin-bottom: 30px !important; }
.st-dir { font-size: 12px; color: #667269; margin-bottom: 10px !important; }
.st-word { font-size: 32px; font-weight: 600; letter-spacing: -.6px; margin-bottom: 26px !important; }
.st-input { min-height: 50px; border: 1px solid #cdd9cc; border-radius: 10px; background: #fff; padding: 13px 14px; font-size: 17px; display: flex; align-items: center; }
.caret { display: inline-block; width: 1.5px; height: 20px; background: #254736; margin-left: 1px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.st-feedback { display: grid; gap: 2px; margin-top: 12px !important; padding: 9px 12px; border-radius: 10px; background: #eef6ea; border: 1px solid #cfe3c5; font-size: 13.5px; }
.st-feedback b { color: #2f6b3c; }
.st-btn { margin-top: 14px !important; text-align: center; background: #254736; color: #fff; border-radius: 10px; padding: 13px; font-weight: 600; }

/* Formeltrainer (wie apps/formeltrainer) */
.s-formeln { background: #f5faf6; color: #1f2a24; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; padding-top: 22px; }
.s-formeln .st-top { margin-bottom: 22px !important; }
.ft-name { font-size: 24px; font-weight: 700; letter-spacing: -.4px; }
.s-formeln .st-dir { margin: 2px 0 16px !important; }
var { font-family: "Times New Roman", Georgia, serif; font-style: italic; font-size: 1.12em; }
.ft-formula { font-size: 24px; text-align: center; padding: 14px; background: #fff; border: 1px solid #dce8df; border-radius: 12px; }
.ft-ask { margin: 16px 0 10px !important; font-size: 15px; }
.ft-choices { display: grid; gap: 7px; }
.ft-choice { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 52px; border: 1.5px solid #dce8df; border-radius: 10px; background: #fff; font-size: 17px; }
.ft-choice.f-right { border-color: #2e6a50; background: #e3f1e7; }

/* Bewegung: day.js schaltet die Bildschirme nacheinander an (.on) und spielt dort die kleinen Momente */
@media (prefers-reduced-motion: no-preference) {
  .screen:not(.on) .choice.c-right, .screen:not(.on) .ft-choice.f-right { border-color: var(--line); background: #fff; }
  .screen:not(.on) .choice.c-right em { opacity: 0; }
  .screen:not(.on) .vbar b { width: 0; }
  .screen:not(.on) .st-feedback { opacity: 0; }
  .screen.on .vbar b { animation: vfill 3.4s 1s cubic-bezier(.4, 0, .2, 1) both; }
  .screen.on .choice.c-right { animation: pick .5s 5.6s ease-out both; }
  .screen.on .choice.c-right em { animation: show .4s 6s ease-out both; }
  .screen.on .st-feedback { animation: rise .5s 4.4s cubic-bezier(.16, 1, .3, 1) both; }
  .screen.on .ft-choice.f-right { animation: pick-f .5s 4s ease-out both; }
}
@keyframes vfill { from { width: 0; } to { width: 100%; } }
@keyframes pick { from { border-color: var(--line); background: #fff; } to { border-color: var(--ok); background: var(--ok-soft); } }
@keyframes pick-f { from { border-color: #dce8df; background: #fff; } to { border-color: #2e6a50; background: #e3f1e7; } }
@keyframes show { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; align-items: center;
  padding: 22px clamp(16px, 4vw, 32px); border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; background: var(--page); }
.foot p { margin: 0; }
.foot nav { display: flex; gap: 20px; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--ink); }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 760px) {
  .hero h1 { font-size: 38px; }
  .scene { min-height: 700px; }
  .apps { grid-template-columns: 1fr; }
  .day-stage { grid-template-columns: 1fr; gap: 28px; }
  .app-tabs { margin-bottom: 18px; }
  .device { height: 540px; max-width: 420px; width: 100%; margin: 0 auto; }
  .day { min-height: 0; }
}
@media (max-width: 420px) {
  .bar .btn-small { padding: 8px 12px; }
  .note { font-size: 13px; }
}

/* Impressum und Datenschutz: Lesetext auf Karopapier */
.legal { max-width: 760px; margin: 0 auto; padding: clamp(36px, 6vh, 72px) clamp(16px, 4vw, 32px) 96px; }
.legal h1 { font-size: clamp(36px, 5vw, 52px); line-height: 1.05; letter-spacing: -.03em; font-weight: 700; }
.legal h2 { font-size: 21px; letter-spacing: -.3px; margin-top: 40px; }
.legal p, .legal li { font-size: 16px; color: #2c3346; margin: 12px 0 0; max-width: 68ch; }
.legal ul { padding-left: 20px; margin: 0; }
.legal .fine { color: var(--muted); font-size: 14px; margin-top: 48px; }
