/* Landingpage learn.avtoris.studio. Baut auf den Dateien des Modulbaukastens auf (index.html bindet schrift, tokens,
   basis, icons und komponenten ein). Hier steht nur, was die Seite zusätzlich braucht. Eigene Klassen beginnen mit lp-.
   Farben nur aus Modulbaukasten/styles/tokens.css, Paare nach Entwuerfe/runde-4/kontrast.md:
   Sand: text, text-leise. Himmel und Honig: kontur, leise-farbe, fell. Olive: auf-olive, auf-olive-leise. */

html { scroll-padding-top: 80px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
/* Kein overflow am body: der Hero schneidet seine gedrehten Karten selbst ab (.lp-hero { overflow: clip }) */
body.mb { min-height: 0; }
.mb img { display: block; max-width: 100%; height: auto; }
.mb a { color: inherit; }
.lp-w { width: 100%; max-width: clamp(1160px, 72vw, 1360px); margin-inline: auto; padding-inline: var(--mb-rand); }
/* .mb davor: sonst gewinnt «.mb a { color: inherit }» und der Text steht dunkel auf Tinte */
.mb .lp-skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 14px; border-radius: 12px; background: var(--mb-kontur); color: var(--mb-auf-akzent); }
.mb .lp-skip:focus { top: 12px; }
.mb .lp-h3 { font-size: clamp(20px, 2vw, 24px); line-height: 1.2; font-weight: 500; letter-spacing: -0.015em; color: var(--mb-kontur); }

/* ---------- Knopf als Link: dieselbe Kante wie in der App. komponenten.css drückt nur <button> (:enabled) ---------- */
.mb a.btn { text-decoration: none; }
.mb a.btn:active { transform: translateY(var(--mb-kante)); box-shadow: 0 0 0 var(--k-kante), inset 0 0 0 var(--mb-strich) var(--k-rand); }
@media (hover: hover) and (pointer: fine) { .mb a.btn:hover { background: color-mix(in srgb, var(--k) 92%, #fff); } }
.mb .btn .ic { width: 1.1em; height: 1.1em; }

/* ---------- Kopfzeile: klebt oben, Wortmarke mit Gerald-Büste ---------- */
.lp-kopf { position: sticky; top: 0; z-index: 20; background: var(--mb-grund); border-bottom: var(--mb-strich) solid var(--mb-rahmen); }
.lp-kopf-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 68px; }
.lp-kopf .btn { margin-block: 6px 10px; }
.lp-marke { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; font-size: 18px; letter-spacing: -0.01em; white-space: nowrap; }
.lp-marke b { font-weight: 500; }
.lp-bueste { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--mb-pfirsich); box-shadow: 0 0 0 2px var(--mb-kontur); overflow: hidden; }
.lp-bueste img { width: 46px; max-width: none; margin-top: 6px; }

/* ---------- Abschnitte ---------- */
.lp-sek { padding-block: clamp(64px, 9vw, 112px); }
.lp-sek .titel { max-width: 22ch; }
.lp-sek .lead { max-width: 56ch; margin-top: var(--mb-a4); }
.lp-himmel { background: var(--mb-himmel); }
.lp-honig { background: var(--mb-honig); --mb-text-2: var(--mb-kontur); --mb-text-leise: var(--mb-leise-farbe); }
.lp-olive { background: var(--mb-olive); color: var(--mb-auf-olive); --mb-text-2: var(--mb-auf-olive-leise); }
.lp-olive :focus-visible { outline-color: var(--mb-auf-olive); }

/* ---------- Hero ---------- */
.lp-hero { padding-block: clamp(32px, 5vw, 64px) clamp(48px, 7vw, 88px); overflow: clip; }
.lp-hero-in { display: grid; gap: 40px; }
.lp-hero-txt { display: grid; gap: var(--mb-a4); align-content: center; }
.lp-hero .titel-xl { font-size: clamp(40px, 6.4vw, 76px); max-width: 12ch; }
.lp-hero .lead { max-width: 34ch; font-size: clamp(17px, 1.6vw, 21px); }
.lp-cta { display: grid; justify-items: start; gap: var(--mb-a2); margin-top: var(--mb-a3); }
.lp-cta-s { font-size: 14px; color: var(--mb-text-leise); }

.lp-hero-bild { position: relative; }
.lp-feld { position: relative; height: 340px; border-radius: 40px; background: var(--mb-honig); overflow: hidden; }
.lp-feld .span { position: absolute; width: 22px; height: 8px; border-radius: 4px; }
.lp-buehne { position: absolute; left: 50%; bottom: 14px; width: 220px; height: 300px; transform: translateX(-50%); }
.lp-scheibe { position: absolute; left: 0; bottom: 0; width: 220px; height: 174px; overflow: visible; --s-top: var(--mb-creme); --s-ring: var(--mb-pfirsich-tief); --s-rand: var(--mb-rinde); }
.lp-gerald { position: absolute; left: 50%; bottom: 82px; width: 196px; transform: translateX(-50%); }
.lp-gerald img { width: 100%; transform-origin: 50% 92%; }
.lp-feld .zettel { position: absolute; z-index: 2; }
.lp-z1 { left: 7%; top: 9%; transform: rotate(-7deg); }
.lp-z2 { right: 5%; bottom: 13%; transform: rotate(5deg); }

/* Fächer aus nachgebauten Aufgaben: Karte, Antworten mit Tastenbuchstabe, gewählt = Creme mit Tinte, richtig = Grün */
.lp-faecher { position: relative; display: grid; gap: 14px; margin-top: -40px; padding-inline: 8px; }
.lp-aufgabe { display: grid; gap: 8px; width: 100%; max-width: 300px; padding: 14px; border-radius: var(--mb-radius-l); background: var(--mb-flaeche); border: var(--mb-strich) solid var(--mb-kontur); box-shadow: 0 var(--mb-kante) 0 var(--mb-kontur); }
.lp-a1 { transform: rotate(-2deg); }
.lp-a2 { transform: rotate(1.5deg); justify-self: end; }
.lp-a3 { transform: rotate(-1deg); }
.lp-fach { font: 500 11px/1 var(--mb-schrift-code); letter-spacing: .08em; text-transform: uppercase; color: var(--mb-text-leise); }
.lp-frage { font-size: 17px; line-height: 1.25; font-weight: 500; letter-spacing: -0.01em; }
.lp-luecke { display: inline-block; padding: 0 8px; border-radius: 8px; background: var(--mb-akzent-hell); box-shadow: inset 0 0 0 2px var(--mb-kontur); color: var(--mb-fell); font-family: var(--mb-schrift-code); font-size: 15px; }
.lp-antwort { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 12px 0 8px; border-radius: var(--mb-radius-m); background: var(--mb-flaeche); box-shadow: inset 0 0 0 2px var(--mb-rahmen), 0 3px 0 var(--mb-rahmen); font-size: 15px; margin-bottom: 3px; }
.lp-antwort kbd { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; box-shadow: inset 0 0 0 2px var(--mb-rahmen); font: 500 11px/1 var(--mb-schrift-code); color: var(--mb-text-leise); }
.lp-antwort .ic { margin-left: auto; }
.lp-antwort.is-sel { background: var(--mb-akzent-hell); box-shadow: inset 0 0 0 2px var(--mb-kontur), 0 3px 0 var(--mb-kontur); color: var(--mb-fell); }
.lp-antwort.is-sel kbd { background: var(--mb-kontur); color: #fff; box-shadow: none; }
.lp-antwort.is-right { background: var(--mb-erfolg-hell); box-shadow: inset 0 0 0 2px var(--mb-erfolg), 0 3px 0 var(--mb-erfolg); color: var(--mb-erfolg); }
.lp-antwort.is-right kbd { background: var(--mb-erfolg); color: #fff; box-shadow: none; }
@media (max-width: 599px) { .lp-a3 { display: none; } }
@media (min-width: 600px) and (max-width: 1119px) {
  .lp-faecher { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
  .lp-a2 { justify-self: stretch; margin-top: 24px; }
}

/* Schmaler Desktop und Tablet quer: schon zwei Spalten, Bild kleiner, nur zwei Karten */
@media (min-width: 900px) and (max-width: 1119px) {
  .lp-hero-in { grid-template-columns: minmax(0, 1fr) minmax(0, 400px); gap: 32px; align-items: center; }
  .lp-hero-bild { padding: 16px 0 16px 24px; }
  .lp-feld { height: min(480px, max(380px, 100dvh - 220px)); }
  .lp-buehne { left: auto; right: 8px; bottom: 16px; transform: none; width: 200px; height: 280px; }
  .lp-scheibe { width: 200px; height: 158px; }
  .lp-gerald { width: 178px; bottom: 74px; }
  .lp-z1 { left: 8%; top: 46%; }
  .lp-feld .lp-z2 { display: none; }
  .lp-faecher { position: absolute; inset: 0; display: block; margin: 0; padding: 0; }
  .lp-aufgabe { position: absolute; width: 208px; padding: 12px; }
  .lp-a1 { left: 0; top: 40px; margin: 0; }
  .lp-a2, .lp-a3 { display: none; }
  .lp-frage { font-size: 15px; }
}
@media (min-width: 1120px) {
  /* Der Hero füllt den ersten Bildschirm und steht in der Mitte, auf jedem Monitor (bis 920 px Höhe) */
  .lp-hero { display: grid; align-items: center; min-height: min(100dvh - 69px, 920px); }
  .lp-hero-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
  .lp-hero-bild { padding: 24px 0 24px 40px; }
  .lp-feld { height: min(560px, max(420px, 100dvh - 250px)); }
  .lp-buehne { left: auto; right: 16px; bottom: 24px; transform: none; width: 240px; height: 330px; }
  .lp-scheibe { width: 240px; height: 190px; }
  .lp-gerald { width: 214px; bottom: 90px; }
  .lp-z1 { left: 42%; top: 42%; }
  .lp-z2 { right: auto; left: 40%; bottom: 5%; }
  .lp-faecher { position: absolute; inset: 0; display: block; margin: 0; padding: 0; }
  .lp-aufgabe { position: absolute; width: 240px; }
  .lp-a1 { left: 0; top: 64px; }
  .lp-a2 { right: 20px; top: 8px; transform: rotate(3deg); }
  .lp-a3 { left: 16px; bottom: 72px; }
}

/* Grosser Monitor: das Bild wächst mit, sonst steht es verloren in der Fläche */
@media (min-width: 1600px) { .lp-hero-bild { zoom: 1.14; } .lp-hero .titel-xl { font-size: 84px; } }

/* ---------- Themenfelder: eine Liste, keine Reiter ---------- */
.lp-themen { padding-top: 0; }
.mb .lp-themen-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 12px; margin-top: var(--mb-a6); }
.lp-themen-liste li { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 12px 16px; border-radius: var(--mb-radius-l); background: var(--mb-flaeche); border: var(--mb-strich) solid var(--mb-rahmen); box-shadow: 0 var(--mb-kante) 0 var(--mb-rahmen); font-size: 17px; font-weight: 500; }
.lp-themen-liste .ic { font-size: 22px; color: var(--mb-fell); }

/* ---------- Kurz gesagt: Steckbrief auf Himmel ---------- */
.lp-kurz { display: grid; gap: var(--mb-a6); }
.lp-steckbrief { display: grid; background: var(--mb-flaeche); border: var(--mb-strich) solid var(--mb-kontur); box-shadow: 0 6px 0 var(--mb-kontur); border-radius: var(--mb-radius-xl); overflow: hidden; }
.lp-steckbrief > div { display: grid; gap: 8px; padding: 20px 22px; }
.lp-steckbrief > div + div { border-top: 2px dashed var(--mb-rahmen-tiefer); }
.lp-steckbrief dt { color: var(--mb-text-leise); }
.lp-steckbrief dd { margin: 0; font-size: clamp(18px, 1.8vw, 22px); line-height: 1.3; color: var(--mb-text-2); }
.lp-steckbrief b { color: var(--mb-kontur); }
@media (min-width: 860px) {
  .lp-kurz { grid-template-columns: minmax(0, .7fr) minmax(0, 2fr); align-items: center; }
  .lp-steckbrief { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lp-steckbrief > div { padding: 28px; }
  .lp-steckbrief > div + div { border-top: 0; border-left: 2px dashed var(--mb-rahmen-tiefer); }
}

/* ---------- So lernst du: Zickzack mit echten App-Bildern ---------- */
.mb .lp-schritte { display: grid; gap: clamp(48px, 7vw, 72px) 32px; margin-top: var(--mb-a7); }
.lp-schritt { display: grid; gap: 24px; justify-items: center; align-content: start; }
.lp-schritt-txt { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 14px; width: min(340px, 100%); }
.lp-schritt-txt .lp-nr { grid-row: span 2; }
.lp-schritt-txt p { grid-column: 2; color: var(--mb-text-2); font-size: 16px; }
.lp-schritt-txt .lp-h3 { align-self: center; }
.lp-nr { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--mb-honig); color: var(--mb-fell); box-shadow: 0 4px 0 var(--mb-honig-tief); font-size: 20px; font-weight: 500; }
/* Handy: fester Rahmen im Seitenverhältnis des Bildes (390 x 844), Tintenrand und harte Kante wie die Karten */
.lp-screen { width: min(292px, 100%); aspect-ratio: 390 / 844; margin: 0; padding: 6px; border-radius: 40px; border: var(--mb-strich) solid var(--mb-kontur); box-shadow: 0 6px 0 var(--mb-kontur); background: var(--mb-kontur); }
.lp-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 30px; background: var(--mb-grund); }
@media (min-width: 900px) {
  .mb .lp-schritte { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lp-schritt .lp-screen { order: -1; }
}
.mb .lp-dazu-t { margin-top: clamp(64px, 8vw, 104px); }
.mb .lp-dazu { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 12px; margin-top: var(--mb-a4); }
.lp-dazu li { display: grid; gap: 6px; align-content: start; padding: 18px; border-radius: var(--mb-radius-l); background: var(--mb-flaeche); border: var(--mb-strich) solid var(--mb-rahmen); box-shadow: 0 var(--mb-kante) 0 var(--mb-rahmen); }
.lp-dazu .ic { font-size: 24px; margin-bottom: 4px; }
.lp-dazu b { font-weight: 500; font-size: 17px; }
.lp-dazu span { color: var(--mb-text-leise); font-size: 15px; }

/* ---------- Gerald ---------- */
.lp-gerald-sek { padding-top: 0; }
.mb .lp-posen { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 32px 24px; margin-top: var(--mb-a7); }
.lp-posen li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px 16px; align-items: center; }
.lp-posen img { grid-row: span 2; width: 96px; }
.mb .lp-blase { position: relative; justify-self: start; padding: 8px 14px; border-radius: 16px; background: var(--mb-flaeche); box-shadow: 0 0 0 2px var(--mb-kontur), 0 4px 0 2px var(--mb-kontur); font-size: 15px; font-weight: 500; }
.lp-posen p:last-child { color: var(--mb-text-2); font-size: 15px; }
.lp-posen b { color: var(--mb-kontur); }

/* ---------- Für wen ---------- */
.lp-fuer { display: grid; gap: 20px; margin-top: var(--mb-a7); }
.lp-fuer .karte { padding: 24px; gap: 16px; }
.mb .karte .lp-h3 { font-size: clamp(20px, 2vw, 24px); font-weight: 500; }
.lp-fuer .karte > p { color: var(--mb-text-2); }
@media (min-width: 860px) { .lp-fuer { grid-template-columns: 1.2fr 1fr; } }
.lp-liste { display: grid; gap: 12px; }
.lp-liste li { display: flex; gap: 10px; align-items: flex-start; }
.lp-liste .ic { margin-top: 3px; color: var(--mb-erfolg); }
.lp-liste b { font-weight: 500; }

/* ---------- Wirklich gratis: Honig ---------- */
.lp-gratis { display: grid; gap: 24px; justify-items: start; }
.lp-gratis-g { width: 120px; }
.lp-honig .lp-liste { margin-top: var(--mb-a6); font-size: 18px; }
.lp-honig .lp-liste .ic { color: var(--mb-fell); }
@media (min-width: 860px) { .lp-gratis { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 56px; } .lp-gratis-g { width: 180px; } }

/* ---------- FAQ: details mit Rand und Kante ---------- */
.lp-faq-w { max-width: 860px; }
.lp-faq { display: grid; gap: 12px; margin-top: var(--mb-a6); }
.lp-faq details { border-radius: var(--mb-radius-l); background: var(--mb-flaeche); border: var(--mb-strich) solid var(--mb-rahmen); box-shadow: 0 var(--mb-kante) 0 var(--mb-rahmen); }
.lp-faq details[open] { border-color: var(--mb-kontur); box-shadow: 0 var(--mb-kante) 0 var(--mb-kontur); }
.lp-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; padding: 14px 18px; cursor: pointer; list-style: none; font-size: 17px; font-weight: 500; border-radius: inherit; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq-q { display: flex; align-items: center; gap: 12px; }
.lp-faq-q .ic { flex: none; color: var(--mb-fell); }
.mb .lp-h3-ic { display: flex; align-items: center; gap: 10px; }
.lp-faq summary::after { content: ''; flex: none; width: 10px; height: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); transition: transform var(--mb-kurz) var(--mb-ease); }
.lp-faq details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.lp-faq details p { padding: 0 18px 18px; color: var(--mb-text-2); max-width: 64ch; }

/* ---------- Schluss: Olive ---------- */
.lp-los { display: grid; justify-items: center; gap: 16px; text-align: center; }
.lp-los .titel { max-width: 16ch; color: var(--mb-auf-olive); font-size: clamp(32px, 4.4vw, 52px); }
.lp-los .lead { margin-top: 0; }
.lp-los .lp-zeig:has(.btn) { margin-top: 12px; }
.lp-los-g { width: 112px; }

/* ---------- Fusszeile ---------- */
.lp-fuss { padding-block: 28px; font-size: 15px; color: var(--mb-text-leise); }
.lp-fuss-in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px; }
.lp-fuss a { display: inline-flex; align-items: center; min-height: 44px; color: var(--mb-text); text-underline-offset: 4px; }

/* ---------- Bewegung: nur transform und opacity, nur ohne reduzierte Bewegung ---------- */
@media (prefers-reduced-motion: no-preference) {
  .lp-gerald img { animation: lp-atmen 4.4s ease-in-out infinite; }
  .lp-gerald { animation: lp-landen 1.2s .3s var(--mb-ease) both; }
  .js .lp-zeig { opacity: 0; transform: translateY(12px); transition: opacity 420ms var(--mb-ease), transform 420ms var(--mb-ease); }
  .js .lp-zeig.is-da { opacity: 1; transform: none; }
  .js :is(.lp-posen, .lp-schritte) .lp-zeig:nth-child(2), .js .lp-steckbrief.lp-zeig { transition-delay: 80ms; }
  .js :is(.lp-posen, .lp-schritte) .lp-zeig:nth-child(3) { transition-delay: 160ms; }
  .lp-themen-liste li, .lp-dazu li { transition: transform var(--mb-kurz) var(--mb-ease); }
}
@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
  .lp-themen-liste li:hover, .lp-dazu li:hover { transform: translateY(-2px); }
}
@keyframes lp-atmen { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(.99, 1.016); } }
/* Ankommen: Gerald landet auf der Scheibe und wippt einmal (wie «Gerald hüpft» in der App) */
@keyframes lp-landen { 0% { opacity: 0; transform: translate(-50%, -24px); } 60% { opacity: 1; transform: translate(-50%, 3px); } 100% { transform: translate(-50%, 0); } }
