/* Motivation und Abbys Garderobe (#motivation), seit 08.10.2026.
 *
 * Steht zwischen der Bruecke nach den Familien-Szenen und dem Elternteil
 * (#fuer-eltern). Alles hier ist auf .mo gescoped, damit nichts in die
 * uebrige Landingpage durchsickert. Farben, Schriftgroessen und Radien nur
 * aus brand.css, die Formsprache (2px Tinte, asymmetrische Ecken, harter
 * Versatzschatten) aus landing.css.
 *
 * Ohne JavaScript ist alles sichtbar: der Spiegel zeigt den Satin-Bomber,
 * darunter stehen alle Outfits als Kacheln. motivation.js macht aus den
 * Kacheln Knoepfe zum Anprobieren. Kein style-Attribut (CSP style-src 'self').
 */

.mo {
  position: relative;
  padding-block: clamp(4rem, 7vw, 6.5rem);
  background: var(--cream);
  overflow-x: clip;
}

.mo-kopf {
  margin-bottom: clamp(2.2rem, 4vw, 3.4rem);
}

.mo .mo-kopf > p {
  color: var(--ink);
}

/* ── Bausteine und Handy ─────────────────────────────────────────────── */

.mo-raster {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, .42fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}

.mo-bausteine {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mo-baustein {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  min-width: 0;
  padding: 1.35rem 1.4rem 1.4rem;
  border: 2px solid var(--ink);
  border-radius: 24px 8px 24px 8px;
  background: var(--paper);
  box-shadow: 8px 8px 0 var(--mint);
}

.mo-baustein:nth-child(2) { box-shadow: 8px 8px 0 var(--yellow); }
.mo-baustein:nth-child(3) { box-shadow: 8px 8px 0 var(--peach); }
.mo-baustein:nth-child(4) { box-shadow: 8px 8px 0 var(--lavender); }

.mo-baustein__symbol {
  width: 44px;
  height: 44px;
}

.mo .mo-baustein h3 {
  font-size: var(--text-20);
  letter-spacing: -.03em;
}

.mo .mo-baustein p {
  color: var(--ink-soft);
  font-size: var(--text-15);
  line-height: 1.55;
}

.mo-tel-figur {
  position: relative;
  margin: 0;
  padding: 1rem 0 2.2rem;
}

.mo-tel {
  position: relative;
  width: min(100%, 268px);
  margin-inline: auto;
  overflow: hidden;
  border: 7px solid #171c35;
  border-radius: var(--radius-device);
  background: #171c35;
  box-shadow: 18px 22px 0 rgba(112, 87, 223, .16), var(--shadow-phone);
  transform: rotate(-2deg);
}

.mo-tel__schirm {
  position: relative;
  overflow: hidden;
  border-radius: 31px;
  background: var(--paper);
}

/* Dynamic Island wie im Teaser: echte iOS-Screenshots enthalten sie nicht. */
.mo-tel__schirm::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: 9px;
  left: 50%;
  width: 32%;
  height: 17px;
  border-radius: 999px;
  background: #171c35;
  transform: translateX(-50%);
}

.mo-tel__schirm img {
  width: 100%;
  aspect-ratio: 603 / 1311;
  object-fit: cover;
}

/* Zettel am Handy, Formsprache wie .hero-note */
.mo-zettel {
  position: absolute;
  z-index: 2;
  right: -.5rem;
  bottom: 0;
  width: 200px;
  padding: .9rem 1rem;
  border: 2px solid var(--ink);
  border-radius: 8px 20px 8px 20px;
  background: var(--white);
  box-shadow: 7px 7px 0 var(--mint);
  transform: rotate(3deg);
}

.mo .mo-zettel span,
.mo .mo-zettel strong {
  display: block;
}

.mo .mo-zettel span {
  margin-bottom: .2rem;
  color: var(--mint-deep);
  font-size: var(--text-12);
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.mo .mo-zettel strong {
  color: var(--ink);
  font-size: var(--text-14);
  line-height: 1.35;
}

/* ── Garderobe ───────────────────────────────────────────────────────── */

.mo-garderobe {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  grid-template-areas:
    "text spiegel"
    "kacheln spiegel";
  align-items: start;
  gap: 1.6rem clamp(2rem, 5vw, 4.5rem);
  margin-top: clamp(3.5rem, 7vw, 6rem);
  padding: clamp(1.5rem, 3.5vw, 2.8rem);
  border: 2px solid var(--ink);
  border-radius: 40px 14px 40px 14px;
  background: var(--paper);
  box-shadow: 12px 12px 0 var(--lilac);
}

.mo-garderobe__text { grid-area: text; }
.mo-spiegel { grid-area: spiegel; }
.mo-outfits { grid-area: kacheln; }

.mo .mo-garderobe__text h3 {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.08;
  letter-spacing: -.04em;
}

.mo .mo-garderobe__text > p {
  margin-top: 1rem;
  color: var(--ink);
  font-size: var(--text-17);
}

.mo-fakten {
  display: grid;
  gap: .55rem;
  margin: 1.3rem 0 0;
  padding: 0;
  list-style: none;
}

.mo-fakten li {
  position: relative;
  padding-left: 1.7rem;
  color: var(--ink-soft);
  font-size: var(--text-15);
  line-height: 1.5;
}

.mo-fakten li::before {
  content: "";
  position: absolute;
  top: .42em;
  left: .2rem;
  width: .8rem;
  height: .8rem;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--sun);
}

/* Spiegel: dieselbe Buehne wie in der App (lila Wand, Sandboden). */
.mo-spiegel {
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 28px 10px 28px 10px;
  background: var(--paper);
}

.mo-spiegel__buehne {
  position: relative;
  display: grid;
  place-items: end center;
  aspect-ratio: 5 / 4;
  padding-top: 1rem;
  background: linear-gradient(to bottom, var(--lavender) 0 76%, var(--sand) 76% 100%);
}

.mo-spiegel__buehne img {
  width: min(78%, 360px);
  height: auto;
  margin-bottom: 3%;
  transition: opacity .25s ease;
}

.mo-spiegel__buehne img.is-wechsel {
  opacity: 0;
}

.mo-spiegel__name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.3rem;
  border-top: 2px solid var(--ink);
}

.mo .mo-spiegel__name strong {
  color: var(--ink);
  font: 700 var(--text-20)/1.2 "Poppins", sans-serif;
  letter-spacing: -.03em;
  white-space: nowrap;
}

.mo .mo-spiegel__name span {
  color: var(--ink-soft);
  font-size: var(--text-13);
  font-weight: 650;
  text-align: right;
}

.mo-ziel {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  gap: .4rem 1rem;
  padding: 1rem 1.3rem 1.2rem;
  border-top: 2px solid var(--ink);
}

.mo-ziel__bild {
  position: relative;
  grid-row: span 2;
  width: 64px;
  height: 64px;
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: var(--surface-variant);
}

.mo-ziel__bild > img:first-child {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  filter: grayscale(1);
  opacity: .55;
}

.mo-ziel__schloss {
  position: absolute;
  right: -8px;
  bottom: -8px;
  width: 28px;
  height: 28px;
}

.mo .mo-ziel__text span,
.mo .mo-ziel__text strong {
  display: block;
}

.mo .mo-ziel__text span {
  color: var(--ink-soft);
  font-size: var(--text-12);
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.mo .mo-ziel__text strong {
  color: var(--ink);
  font: 700 var(--text-17)/1.25 "Poppins", sans-serif;
}

.mo .mo-ziel__text em {
  display: block;
  color: var(--ink);
  font-size: var(--text-15);
  font-style: normal;
  font-weight: 650;
}

/* Fortschritt: 24 von 30 Lerntagen (Varsity-Jacke, Schwelle aus 00203).
   Rein zur Anschauung, der Text daneben traegt die Aussage, darum
   aria-hidden im Markup. */
.mo-ziel__balken {
  grid-column: 2;
  height: 10px;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--white);
}

.mo-ziel__balken span {
  display: block;
  width: 80%;
  height: 100%;
  background: var(--mint-deep);
}

/* Kacheln */
.mo-outfits__kopf {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .8rem;
}

.mo .mo-outfits__kopf h4 {
  margin: 0;
  color: var(--ink);
  font: 700 var(--text-17)/1.2 "Poppins", sans-serif;
}

.mo .mo-outfits__kopf p {
  color: var(--ink-soft);
  font-size: var(--text-13);
  font-weight: 650;
}

.mo-outfits__liste {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mo-kachel {
  position: relative;
  min-width: 0;
}

/* Ohne JS ist die Kachel ein Kasten, mit JS ein Knopf darin. Beide Faelle
   bekommen dieselbe Optik ueber .mo-kachel__flaeche. */
.mo-kachel__flaeche {
  display: flex;
  width: 100%;
  height: 100%;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  padding: .45rem .45rem .6rem;
  border: 2px solid var(--ink);
  border-radius: 16px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  text-align: center;
}

button.mo-kachel__flaeche {
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}

button.mo-kachel__flaeche:hover {
  box-shadow: 4px 4px 0 var(--lavender);
  transform: translate(-2px, -2px);
}

.mo-kachel__flaeche img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 11px;
  background: var(--lavender);
}

.mo-kachel__name {
  font-size: var(--text-13);
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.mo-kachel.is-an .mo-kachel__flaeche {
  border-color: var(--lilac);
  box-shadow: 0 0 0 2px var(--lilac);
}

.mo-kachel__haken {
  position: absolute;
  z-index: 1;
  top: -9px;
  right: -9px;
  display: none;
  width: 26px;
  height: 26px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--lilac);
}

.mo-kachel__haken::after {
  content: "";
  position: absolute;
  top: 5px;
  left: 8px;
  width: 6px;
  height: 10px;
  border: solid var(--white);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

.mo-kachel.is-an .mo-kachel__haken {
  display: block;
}

.mo .mo-outfits__hinweis {
  margin-top: .9rem;
  color: var(--ink-soft);
  font-size: var(--text-13);
}

/* Der Hinweis "Tippt ein Outfit an" gilt nur, wenn es Knoepfe gibt. */
.mo-outfits__hinweis[hidden] {
  display: none;
}

/* ── Unter 1050px: Garderobe einspaltig ──────────────────────────────── */

@media (max-width: 1050px) {
  .mo-raster {
    grid-template-columns: minmax(0, 1fr) minmax(220px, .5fr);
  }

  .mo-bausteine {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }

  .mo-garderobe {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "text"
      "spiegel"
      "kacheln";
  }

  .mo-spiegel {
    width: min(100%, 560px);
    margin-inline: auto;
  }

  .mo-outfits {
    width: min(100%, 560px);
    margin-inline: auto;
  }
}

@media (max-width: 760px) {
  .mo-raster {
    grid-template-columns: minmax(0, 1fr);
  }

  .mo-tel-figur {
    order: -1;
    width: min(100%, 300px);
    margin-inline: auto;
  }

  .mo-tel {
    width: min(100%, 230px);
  }

  .mo-zettel {
    right: -.25rem;
    width: 170px;
  }

  .mo-garderobe {
    box-shadow: 8px 8px 0 var(--lilac);
  }
}

@media (max-width: 640px) {
  .mo-baustein,
  .mo-garderobe {
    margin-right: 8px;
  }

  .mo-garderobe {
    padding: 1.2rem 1rem 1.3rem;
    border-radius: 28px 10px 28px 10px;
  }

  .mo-spiegel__name,
  .mo-ziel {
    padding-inline: 1rem;
  }

  .mo-outfits__liste {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 360px) {
  .mo .mo-spiegel__name strong {
    font-size: var(--text-17);
  }

  .mo-zettel {
    position: relative;
    right: auto;
    bottom: auto;
    width: auto;
    margin-top: 1rem;
    transform: none;
  }

  .mo-tel-figur {
    padding-bottom: 0;
  }

  .mo-ziel {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .mo-ziel__bild {
    width: 52px;
    height: 52px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mo-spiegel__buehne img,
  button.mo-kachel__flaeche {
    transition: none;
  }

  button.mo-kachel__flaeche:hover {
    transform: none;
  }
}
