/* Homescreen /lernen/: nur die Anordnung. Farben, Schrift, Karten, Knöpfe, Ring, Woche, Kacheln und Icons kommen aus
   Modulbaukasten/styles/ (Runde 4). Vorlage: Entwuerfe/runde-4/board/screens/modulwahl.png, profil.png, pfad-breit.png. */

.mb .heim-w { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* ---------- Kopf: Gerald-Wortmarke, rechts Konto ---------- */
.mb .heim-kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; }
.mb .heim-marke { display: flex; align-items: center; gap: 10px; color: var(--mb-text); text-decoration: none; min-width: 0; }
.mb .heim-marke .marke-m { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--mb-pfirsich); box-shadow: 0 3px 0 var(--mb-pfirsich-tief); overflow: hidden; flex: none; }
.mb .heim-marke .marke-m .gerald { width: 52px; height: 52px; margin-top: 8px; }
.mb .heim-marke .wortmarke { font-size: 18px; letter-spacing: -0.01em; white-space: nowrap; }
.mb .heim-konto { display: flex; align-items: center; gap: 10px; min-width: 0; }
.mb .heim-bild { width: 36px; height: 36px; border-radius: 12px; box-shadow: 0 0 0 2px var(--mb-kontur); flex: none; }
.mb .heim-name { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mb .heim-entwickler { margin: 0 0 12px; padding: 10px 14px; border-radius: var(--mb-radius-m); background: var(--mb-flaeche); box-shadow: inset 0 0 0 var(--mb-strich) var(--mb-rahmen); color: var(--mb-text-leise); font-size: 13px; }
@media (max-width: 420px) {
  .mb .heim-marke .wortmarke, .mb .heim-name { display: none; }
}

/* ---------- Onboarding (Gast ohne Fortschritt): eine Frage pro Bildschirm, ruhig auf Sand ---------- */
/* overflow-x: die Frage fährt von rechts ein und darf dabei keinen Querscroll auslösen */
.mb .ob { min-height: 100dvh; display: flex; flex-direction: column; background: var(--mb-grund); overflow-x: clip; }
.mb .ob-kopf { display: flex; align-items: center; gap: 12px; width: min(720px, 100% - 32px); margin-inline: auto; padding: 14px 0 8px; }
.mb .ob-kopf .fortschritt { flex: 1; }
.mb .ob-kopf .icon-btn { text-decoration: none; }
.mb .ob-kopf .ic--pfeil { transform: scaleX(-1); }
.mb .ob-anmelden { flex: none; font-size: 14px; white-space: nowrap; }
.mb .ob-in { flex: 1; width: min(560px, 100% - 32px); margin-inline: auto; display: flex; flex-direction: column; gap: 20px; padding: clamp(12px, 7vh, 72px) 0 40px; }
.mb .ob-gerald-zeile { display: flex; align-items: flex-end; gap: 18px; min-height: 124px; }
.mb .ob-gerald { flex: none; width: 120px; }
.mb .ob-gerald .gerald { width: 120px; height: auto; }
.mb .ob-blase { position: relative; margin-bottom: 26px; padding: 12px 16px; border-radius: var(--mb-radius-xl); background: var(--mb-flaeche); box-shadow: inset 0 0 0 var(--mb-strich) var(--mb-kontur), 0 4px 0 var(--mb-kontur); font-size: 16px; line-height: 1.35; color: var(--mb-text); text-wrap: pretty; transform-origin: 0 100%; }
.mb .ob-blase::before { content: ''; position: absolute; left: -7px; bottom: 15px; width: 12px; height: 12px; background: var(--mb-flaeche); border-left: var(--mb-strich) solid var(--mb-kontur); border-bottom: var(--mb-strich) solid var(--mb-kontur); border-radius: 0 0 0 3px; transform: rotate(45deg); }
.mb .ob-schritt { display: grid; gap: 18px; }
.mb .ob-frage { font-size: clamp(28px, 5.4vw, 40px); line-height: 1.1; font-weight: 400; letter-spacing: -0.025em; color: var(--mb-kontur); text-wrap: balance; outline: none; }
.mb .ob-wahl { display: grid; gap: 12px; }
.mb .ob-opt { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 76px; padding: 14px 16px; text-align: left; border-radius: var(--mb-radius-l); background: var(--mb-flaeche); color: var(--mb-text); border: var(--mb-strich) solid var(--mb-rahmen); box-shadow: 0 var(--mb-kante) 0 var(--mb-rahmen-tief); transition: transform 110ms var(--mb-ease), box-shadow 110ms var(--mb-ease), background-color 160ms ease, border-color 160ms ease, opacity 200ms ease; }
.mb .ob-opt:active { transform: translateY(var(--mb-kante)); box-shadow: 0 0 0 var(--mb-rahmen-tief); }
.mb .ob-opt.is-sel { background: var(--mb-creme); border-color: var(--mb-kontur); box-shadow: 0 var(--mb-kante) 0 var(--mb-kontur); }
.mb .ob-opt.is-aus { opacity: .45; }
.mb .ob-ic { flex: none; font-size: 26px; color: var(--mb-fell); }
.mb .ob-txt { flex: 1; min-width: 0; display: grid; gap: 2px; }
.mb .ob-txt b { font-size: 18px; font-weight: 500; letter-spacing: -0.01em; }
.mb .ob-txt small { font-size: 14px; color: var(--mb-text-leise); }
.mb .ob-opt > .ic--chevron { flex: none; color: var(--mb-rahmen-tiefer); transition: transform 160ms var(--mb-ease), color 160ms ease; }
.mb .ob-fuss { margin-top: auto; padding-top: 12px; text-align: center; font-size: 13px; color: var(--mb-text-leise); }
@media (hover: hover) and (pointer: fine) {
  .mb .ob-opt:not(.is-sel):hover { border-color: var(--mb-rahmen-tiefer); box-shadow: 0 var(--mb-kante) 0 var(--mb-rahmen-tiefer); }
  .mb .ob-opt:hover > .ic--chevron { transform: translateX(3px); color: var(--mb-kontur); }
}
@media (max-width: 420px) {
  .mb .ob-gerald, .mb .ob-gerald .gerald { width: 92px; }
  .mb .ob-gerald-zeile { gap: 14px; min-height: 96px; }
  .mb .ob-blase { font-size: 15px; margin-bottom: 18px; }
  .mb .ob-anmelden { font-size: 13px; }
}
@media (prefers-reduced-motion: no-preference) {
  /* Die Frage kommt von rechts (dorthin geht es weiter), die Antworten gestaffelt, die Sprechblase wächst aus Geralds Mund */
  .mb .ob-schritt { animation: ob-kommen 280ms var(--mb-ease) both; }
  .mb .ob-opt { animation: ob-kommen 280ms var(--mb-ease) 60ms both; }
  .mb .ob-opt:nth-child(2) { animation-delay: 110ms; }
  .mb .ob-opt:nth-child(3) { animation-delay: 160ms; }
  .mb .ob-opt:nth-child(4) { animation-delay: 210ms; }
  .mb .ob-blase { animation: ob-blase 240ms var(--mb-ease) 80ms both; }
}
@keyframes ob-kommen { from { opacity: 0; transform: translateX(18px); } }
@keyframes ob-blase { from { opacity: 0; transform: scale(.92); } }

/* ---------- Module ---------- */
.mb .heim-module { display: grid; gap: 14px; }
/* Die ganze Karte ist der Link: so bewegen sich Themenfeld-Icon und Rakete unter dem Zeiger */
.mb .heim-modul { gap: 14px; color: inherit; text-decoration: none; }
.mb .heim-modul:active .btn { transform: translateY(var(--mb-kante)); box-shadow: 0 0 0 var(--k-kante); }
@media (hover: hover) and (pointer: fine) { .mb .heim-modul:hover .btn { background: color-mix(in srgb, var(--k) 92%, #fff); } }
.mb .heim-modul-kopf { display: flex; align-items: center; gap: 14px; }
.mb .heim-feld-ic { display: grid; place-items: center; flex: none; width: 56px; height: 56px; border-radius: 16px; background: var(--mb-berg); box-shadow: 0 4px 0 var(--mb-berg-tief); color: var(--mb-kontur); font-size: 26px; }
.mb .heim-modul-txt { min-width: 0; }
.mb .heim-modul-t { font-size: 21px; font-weight: 500; letter-spacing: -0.015em; line-height: 1.15; }
.mb .heim-modul-text { color: var(--mb-text-2); font-size: 15px; }
.mb .heim-fortschritt { display: grid; gap: 8px; }
.mb .heim-stand { font-size: 16px; }
.mb .heim-stand b { font-size: 22px; font-weight: 400; }
.mb .heim-modul .btn { text-decoration: none; }
.mb .heim-mehr { display: flex; align-items: center; gap: 8px; color: var(--mb-text-leise); font-size: 14px; }

/* ---------- Mit Fortschritt: Begrüssung und Module links, Heute und Statistik rechts ---------- */
.mb .heim-voll { min-height: 100dvh; background: var(--mb-grund); padding-bottom: 48px; }
.mb .heim-gitter { display: grid; gap: 18px; }
.mb .heim-haupt, .mb .heim-rechts { display: grid; gap: 14px; align-content: start; min-width: 0; }
.mb .heim-haupt > .abschnitt { margin: 12px 0 -2px; }
.mb .heim-gruss { display: grid; gap: 6px; padding: 4px 0 6px; }
.mb .heim-gruss .titel-xl { font-size: clamp(34px, 6vw, 56px); }
.mb .heim-heute { gap: 16px; }
.mb .heim-serie { display: grid; gap: 10px; }
.mb .heim-fair { display: grid; gap: 6px; }
.mb .heim-fair li { position: relative; padding-left: 18px; color: var(--mb-text-2); font-size: 15px; }
.mb .heim-fair li::before { content: ''; position: absolute; left: 2px; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--mb-honig); box-shadow: 0 0 0 2px var(--mb-honig-tief); }
.mb .heim-heute .btn { text-decoration: none; margin-top: 2px; }
.mb .heim-weiter-s { text-align: center; margin-top: -6px; }
.mb .heim-stat { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mb .heim-stat dd { margin: 0; }
/* Handy: Begrüssung, Heute, Module, Statistik. Die zwei Spalten lösen sich auf, die Reihenfolge setzt order. */
@media (max-width: 999px) {
  .mb .heim-haupt, .mb .heim-rechts { display: contents; }
  .mb .heim-heute { order: 1; }
  .mb .heim-haupt > .abschnitt, .mb .heim-module, .mb .heim-mehr { order: 2; }
  .mb .heim-stat-karte { order: 3; }
}
@media (min-width: 1000px) {
  .mb .heim-gitter { grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; padding-top: 12px; }
  .mb .heim-rechts { position: sticky; top: 16px; }
}
