/* =============================================================
   MENTALPROFIL

   Baut auf profile-test.css auf (Tokens .pt, Karten, Knoepfe, Fonts,
   Testleiste) und ergaenzt nur, was der Test neu braucht. Masse und
   Farben nach docs/design-system.md und dem Ablauf-Konzept
   (docs/mental-profile/reviews/2026-11-08-app-flow-concept.md, 2 bis 4).
   Gruen und Rot kommen im Test nicht vor: sie hiessen „richtig“ und
   „falsch“.
   ============================================================= */

.mp {
  --mp-chart-from: #0EC1D6;
  --mp-chart-to: #7BD92F;
  --mp-chart: linear-gradient(90deg, var(--mp-chart-from), var(--mp-chart-to));
  --mp-selected: rgba(25, 25, 25, 0.8);
  --mp-chip-border: #DBDBDB;
  --mp-ease-in: cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Ueberschriften, die beim Bildschirmwechsel den Fokus bekommen,
   tragen keinen Ring: der Fokus ist nur fuer Screenreader da. */
.mp [tabindex="-1"]:focus,
.mp [tabindex="-1"]:focus-visible {
  outline: none;
}

.mp-center-text { text-align: center; }

/* =============================================================
   EINSTIEG
   ============================================================= */

.mp-hero {
  /* mehr Luft oben, damit die Kopfzeile auf dem iPhone nicht nah an Statusleiste und Kamerainsel sitzt (Moritz 09.11.2026) */
  padding-top: calc(88px + env(safe-area-inset-top, 0px));
  padding-bottom: 28px;
}

/* Absenderzeile unter Titel und Unterzeile: klein und ruhig, ohne Knopf (11.11.2026) */
.mp-hero__byline {
  max-width: 26em;
  margin: 12px auto 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--pt-text-secondary);
}

.mp-hero__net {
  width: 196px;
  margin: 28px auto 8px;
}

.mp-hero__net svg {
  display: block;
  width: 100%;
  height: auto;
}

.mp-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.mp-field__label {
  display: block;
  font-size: 16px;
  letter-spacing: -0.016em;
  color: var(--pt-text);
  margin-bottom: 10px;
}

.mp-field__hint {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--pt-text-secondary);
}

#mp-start-hint { margin-top: -12px; }

@media (prefers-reduced-motion: no-preference) {
  .mp-chip-btn.is-on { animation: mp-pop 0.3s ease-out; }
}

/* Suchfeld mit Vorschlagsliste */
.mp-combo {
  position: relative;
}

.mp-combo__input {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 1.5px solid var(--pt-border);
  border-radius: 16px;
  background: var(--pt-card);
  font: inherit;
  font-size: 16px;
  color: var(--pt-text);
  -webkit-appearance: none;
  appearance: none;
}

.mp-combo__input::placeholder {
  color: var(--pt-text-tertiary);
}

.mp-combo__input:focus-visible {
  border-color: var(--pt-inverted);
  outline: none;
  box-shadow: 0 0 0 2px var(--pt-card), 0 0 0 4px var(--pt-inverted);
}

/* „So läuft es“ blendet nach der Wahl der Sportart sanft ein */
.mp-reveal {
  animation: mp-in 0.36s var(--mp-ease-in);
}

/* Sportauswahl wie im Onboarding der App (fields.tsx, Chip): Pillen mit
   Rand, gewaehlt schwarz. Brechen auf 375 px frei um. */
.mp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mp-chip-btn {
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid var(--mp-chip-border);
  border-radius: 999px;
  background: var(--pt-card);
  font: inherit;
  font-size: 15px;
  line-height: 1.2;
  color: var(--pt-text);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.mp-chip-btn:hover {
  border-color: var(--pt-text-tertiary);
}

.mp-chip-btn.is-on {
  transition: none;
  background: var(--pt-inverted);
  border-color: var(--pt-inverted);
  color: #fff;
}

.mp-other {
  margin-top: 18px;
}

.mp-disc__back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  margin: -8px 0 6px -8px;
  padding: 0 8px;
  border: none;
  border-radius: 12px;
  background: transparent;
  font: inherit;
  font-size: 15px;
  color: var(--pt-text);
  cursor: pointer;
}

/* Ansprache: vier gleich breite Felder */
.mp-gender {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.mp-gender__opt {
  min-height: 48px;
  padding: 0 12px;
  border: 1.5px solid var(--pt-border);
  border-radius: 16px;
  background: var(--pt-card);
  font: inherit;
  font-size: 15px;
  color: var(--pt-text);
  cursor: pointer;
}

.mp-gender__opt:hover {
  border-color: var(--pt-text-tertiary);
}

/* Gewaehlt wie der Sport-Chip: schwarz, weisse Schrift, ohne Uebergang,
   damit es nie halb grau (wie deaktiviert) aussieht */
.mp-gender__opt.is-on,
.mp-gender__opt.is-on:hover {
  background: var(--pt-inverted);
  border-color: var(--pt-inverted);
  color: #fff;
  transition: none;
}

/* =============================================================
   RAHMEN IM TEST: Zurueck, Kapitel, Wochenleiste
   ============================================================= */

.mp-top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--pt-bg);
  padding: 8px 0 12px;
}

.mp-top__row {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  margin-bottom: 6px;
}

.mp-back {
  width: 44px;
  height: 44px;
  margin-left: -10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 14px;
  background: transparent;
  color: var(--pt-text);
  cursor: pointer;
}

.mp-back[hidden] { visibility: hidden; display: inline-flex; }

.mp-top__label {
  text-align: center;
  font-size: 13px;
  letter-spacing: -0.01em;
  color: var(--pt-text);
}

/* Sechs gleich breite Stationen, gefuellt per scaleX (nur transform) */
.mp-week {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 3px;
}

.mp-week__seg {
  height: 6px;
  border-radius: 999px;
  background: var(--pt-placeholder);
  overflow: hidden;
}

.mp-week__fill {
  display: block;
  height: 100%;
  background: var(--mp-chart);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.mp-stage {
  min-height: 60vh;
  padding-top: 12px;
}

/* =============================================================
   BILDSCHIRME
   ============================================================= */

.mp-screen {
  animation: mp-in 0.26s var(--mp-ease-in);
}

@keyframes mp-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

.mp-center {
  text-align: center;
  padding: 24px 4px 0;
}

.mp-caption {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pt-text-secondary);
  margin-bottom: 10px;
}

.mp-display {
  font-size: 30px;
  line-height: 1.12;
  margin-bottom: 12px;
}

.mp-rule {
  border: none;
  border-top: 1px solid var(--pt-border);
  margin: 24px 0;
}

/* Ansage auf weisser Karte, nichts darin ist antippbar ausser dem Knopf */
.mp-announce {
  margin-top: 6vh;
  padding: 32px 22px 22px;
  text-align: center;
}

.mp-announce__text {
  margin-top: 6px;
  font-size: 17px;
  line-height: 1.5;
  color: var(--pt-text-muted);
  margin-bottom: 22px;
}

/* Kapitelkarte als Zwischentitel auf ruhiger Flaeche (#898AFF mit etwa
   9 Prozent auf dem Hintergrund). Die Variable faerbt Seite und Kopfzeile. */
.pt.mp-tinted {
  --pt-bg: #EBEAF4;
}

.mp-chapter {
  text-align: center;
  padding: 6vh 4px 0;
}

.mp-chapter__done {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  padding: 7px 14px;
  margin-bottom: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  line-height: 1.35;
  color: var(--pt-text);
}

.mp-chapter__tick {
  color: #5B5CD6;
  font-weight: 700;
}

.mp-chapter__num {
  font-family: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  font-variation-settings: 'opsz' 144;
  font-weight: 600;
  font-size: 112px;
  line-height: 0.95;
  color: rgba(137, 138, 255, 0.4);
  margin-bottom: 6px;
}

.mp-chapter__title {
  font-size: 34px;
  line-height: 1.1;
  margin-bottom: 30px;
}

.mp-chapter__about {
  max-width: 22em;
  margin: 0 auto 36px;
}

.mp-chapter__about-label {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pt-text-secondary);
  margin-bottom: 8px;
}

.mp-chapter__about-text {
  font-family: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  font-variation-settings: 'opsz' 24;
  font-style: italic;
  font-weight: 500;
  font-size: 19px;
  line-height: 1.45;
  color: var(--pt-text);
}

.mp-chapter__num,
.mp-chapter__title {
  animation: mp-rise 0.42s var(--mp-ease-in) both;
}

.mp-chapter__title {
  animation-delay: 0.08s;
}

.mp-halftime__box {
  padding: 18px 18px 20px;
  margin-bottom: 28px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.6);
}

/* Grosse Wochenleiste mit Stationen und wandernder Markierung */
.mp-stations {
  position: relative;
  height: 20px;
  margin: 8px 10px 32px;
}

.mp-stations__line {
  position: absolute;
  left: 0;
  right: 0;
  top: 9px;
  height: 2px;
  background: var(--pt-placeholder);
  border-radius: 2px;
}

.mp-stations__fill {
  height: 100%;
  width: 0;
  background: var(--mp-chart);
  border-radius: 2px;
  transition: width 0.52s var(--mp-ease-in);
}

.mp-stations__dot {
  position: absolute;
  top: 5px;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  border-radius: 999px;
  background: var(--pt-placeholder);
}

.mp-stations__dot--done {
  background: var(--mp-chart-from);
}

.mp-stations__marker {
  position: absolute;
  top: 3px;
  width: 14px;
  height: 14px;
  margin-left: -7px;
  border-radius: 999px;
  background: var(--pt-text);
  box-shadow: 0 0 0 3px var(--pt-card);
  transition: left 0.52s var(--mp-ease-in);
}

.mp-stations--celebrate .mp-stations__dot {
  animation: mp-light 0.4s ease both;
}
.mp-stations--celebrate .mp-stations__dot:nth-of-type(1) { animation-delay: 0s; }
.mp-stations--celebrate .mp-stations__dot:nth-of-type(2) { animation-delay: 0.18s; }
.mp-stations--celebrate .mp-stations__dot:nth-of-type(3) { animation-delay: 0.36s; }
.mp-stations--celebrate .mp-stations__dot:nth-of-type(4) { animation-delay: 0.54s; }
.mp-stations--celebrate .mp-stations__dot:nth-of-type(5) { animation-delay: 0.72s; }
.mp-stations--celebrate .mp-stations__dot:nth-of-type(6) { animation-delay: 0.9s; }
.mp-stations--celebrate .mp-stations__marker { display: none; }
.mp-stations--celebrate .mp-stations__fill { width: 100% !important; }

@keyframes mp-light {
  0%   { background: var(--pt-placeholder); transform: scale(1); }
  60%  { transform: scale(1.4); }
  100% { background: var(--mp-chart-to); transform: scale(1); }
}

.mp-done {
  padding-top: 18vh;
}

/* Halbzeit: Netz ohne Werte, fuer alle gleich. Schein und Farben stecken
   im SVG selbst (startMorph in js/mental-profile.js), deshalb kein Filter hier. */
.mp-halftime__net {
  width: 156px;
  margin: 0 auto 10px;
}

@media (prefers-reduced-motion: reduce) {
  .mp-halftime__net { animation: mp-glow 6s ease-in-out infinite; }
}

@keyframes mp-glow {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.6; }
}

.mp-halftime__net svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.mp-halftime__text {
  font-size: 18px;
  line-height: 1.45;
  color: var(--pt-text);
  max-width: 22em;
  margin: 0 auto;
}

/* =============================================================
   FRAGEN
   ============================================================= */

.mp-q {
  padding-top: 8px;
}

.mp-q__text {
  font-size: 18px;
  line-height: 1.42;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}

.mp-chip {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  margin-bottom: 14px;
  border: 1px solid var(--mp-chip-border);
  border-radius: 12px;
  font-size: 12px;
  color: var(--pt-text);
}

.mp-opt {
  font: inherit;
  color: var(--pt-text);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.mp-opt.is-pop {
  animation: mp-pop 0.3s ease-out;
}

@keyframes mp-pop {
  0%   { transform: scale(1); }
  45%  { transform: scale(1.04); }
  100% { transform: scale(1); }
}

/* Haltung: Stamm, zwei Aussagen in ruhigen Boxen, sechs Kreise ohne
   Mitte, Stufen darunter. Trefferflaechen gleich breit, sichtbar aussen
   gross und innen klein. Die Boxen sind die Rueckmeldung, keine Knoepfe. */
.mp-att__stem {
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.mp-att__hint {
  margin: 0 0 14px;
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--pt-card);
  font-size: 14px;
  line-height: 1.45;
  color: var(--pt-text);
  transition: opacity 0.3s ease;
}

.mp-att__hint.is-gone {
  opacity: 0;
  pointer-events: none;
}

.mp-att__poles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: stretch;
  margin-bottom: 16px;
}

/* Box ohne Rahmen und Schatten, leicht lila getoent */
.mp-att__pole {
  position: relative;
  display: flex;
  padding: 11px 12px;
  border-radius: 16px;
  background: rgba(137, 138, 255, 0.07);
  color: var(--pt-text);
  cursor: default;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.18s ease, color 0.18s ease;
}

.mp-att__pole-text {
  font-size: 15px;
  line-height: 1.38;
  letter-spacing: -0.01em;
  hyphens: manual;
}

.mp-att__pole--right {
  justify-content: flex-end;
  text-align: right;
}

/* Verbindung zum aeussersten Kreis: von der Box nach unten zur Mitte des
   aeussersten Kreises. Die Mitte liegt bei 1/12 der ganzen Breite; bei zwei
   Spalten mit 16 px Abstand sind das (Boxbreite + 8 px) / 6. */
.mp-att__link {
  position: absolute;
  top: 100%;
  height: 24px;
  width: 1.5px;
  background: rgba(137, 138, 255, 0.45);
  transition: background 0.18s ease;
}

.mp-att__pole--left .mp-att__link { left: calc((100% + 8px) / 6 - 0.75px); }
.mp-att__pole--right .mp-att__link { right: calc((100% + 8px) / 6 - 0.75px); }

/* Rueckmeldung nach Stufe: 3 genau so, 2 eher so, 1 etwas */
.mp-att__pole.is-sel-3 { background: rgba(137, 138, 255, 0.30); }
.mp-att__pole.is-sel-2 { background: rgba(137, 138, 255, 0.20); }
.mp-att__pole.is-sel-1 { background: rgba(137, 138, 255, 0.13); }
.mp-att__pole.is-sel-3 .mp-att__pole-text,
.mp-att__pole.is-sel-2 .mp-att__pole-text { font-weight: 700; }
.mp-att__pole.is-sel-3 .mp-att__link,
.mp-att__pole.is-sel-2 .mp-att__link { background: #898AFF; }
.mp-att__pole.is-other-3 { color: var(--pt-text-tertiary); background: rgba(137, 138, 255, 0.03); }
.mp-att__pole.is-other-2 { color: var(--pt-text-secondary); background: rgba(137, 138, 255, 0.04); }
.mp-att__pole.is-other-1 { color: #4A4A4A; }

/* Stufen unter den Kreisen, spiegelbildlich, mit Trennstrich in der Mitte */
.mp-att__steps {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  margin-top: 2px;
}

.mp-att__step {
  padding: 0 1px;
  text-align: center;
  font-size: 11px;
  line-height: 1.2;
  white-space: pre-line;
  color: var(--pt-text-secondary);
}

.mp-att__step--mid {
  border-right: 1px solid var(--pt-border);
}

/* Einmaliger Hinweis: die beiden aeusseren Kreise pulsieren sanft */
.mp-att--intro .mp-att__opt:first-of-type .mp-dot,
.mp-att--intro .mp-att__opt:last-of-type .mp-dot {
  animation: mp-pulse 1.4s ease-in-out 0.4s 2;
}

/* Tipp auf eine Box: die drei Kreise dieser Seite pulsieren einmal */
.mp-att__opt.is-nudge .mp-dot {
  animation: mp-pulse 0.6s ease-in-out 1;
  border-color: #898AFF;
}

@keyframes mp-pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.12); }
}

.mp-att__scale {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
}

.mp-att__track {
  position: absolute;
  left: calc(100% / 12);
  right: calc(100% / 12);
  top: 50%;
  height: 1.5px;
  background: var(--pt-border);
  transform: translateY(-50%);
}

.mp-att__opt {
  position: relative;
  height: 60px;
  padding: 0;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mp-dot {
  display: block;
  border-radius: 999px;
  background: var(--pt-card);
  border: 1.5px solid var(--pt-border);
  transition: background 0.15s ease-out, border-color 0.15s ease-out;
}

.mp-dot--0, .mp-dot--5 { width: 44px; height: 44px; }
.mp-dot--1, .mp-dot--4 { width: 36px; height: 36px; }
.mp-dot--2, .mp-dot--3 { width: 28px; height: 28px; }

.mp-att__opt:hover .mp-dot {
  border-color: var(--pt-text-tertiary);
}

.mp-att__opt.is-on .mp-dot {
  background: var(--mp-selected);
  border-color: var(--pt-text);
  box-shadow: inset 0 0 0 4px var(--pt-card);
}

.mp-att__opt.is-pop {
  animation: none;
}

.mp-att__opt.is-pop .mp-dot {
  animation: mp-pop-dot 0.3s ease-out;
}

@keyframes mp-pop-dot {
  0%   { transform: scale(1); }
  45%  { transform: scale(1.12); }
  100% { transform: scale(1); }
}

/* Fertigkeit: sechs Zeilen, darunter leise „Kam nicht vor“ */
.mp-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mp-row {
  min-height: 52px;
  padding: 12px 18px;
  border: 1.5px solid var(--pt-border);
  border-radius: 16px;
  background: var(--pt-card);
  text-align: left;
  font-size: 16px;
  letter-spacing: -0.01em;
  transition: background 0.15s ease-out, border-color 0.15s ease-out, color 0.15s ease-out;
}

.mp-row:hover {
  border-color: var(--pt-text-tertiary);
}

.mp-row.is-on {
  background: var(--mp-selected);
  border-color: var(--pt-text);
  color: #fff;
  box-shadow: inset 0 0 0 4px var(--pt-card);
}

.mp-na {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #ECE9E9;
  display: flex;
  justify-content: center;
}

.mp-na__btn {
  min-height: 44px;
  padding: 0 16px;
  border: none;
  border-radius: 12px;
  background: transparent;
  font-size: 15px;
  color: var(--pt-text-secondary);
}

.mp-na__btn.is-on {
  background: var(--mp-selected);
  color: #fff;
  box-shadow: inset 0 0 0 4px var(--pt-bg);
}

/* Szene, Antriebsquelle, Einstieg: Karten in voller Breite */
.mp-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mp-card-opt {
  min-height: 64px;
  padding: 16px;
  border: 1.5px solid var(--pt-border);
  border-radius: 16px;
  background: var(--pt-card);
  text-align: left;
  font-size: 16px;
  line-height: 1.35;
  letter-spacing: -0.01em;
  transition: background 0.15s ease-out, border-color 0.15s ease-out, color 0.15s ease-out;
}

.mp-card-opt:hover {
  border-color: var(--pt-text-tertiary);
}

.mp-card-opt.is-on {
  background: var(--pt-inverted);
  border-color: var(--pt-inverted);
  color: #fff;
}

.mp-continue {
  margin-top: 20px;
}

/* =============================================================
   ERGEBNIS
   ============================================================= */

.mp-result {
  padding-top: calc(64px + env(safe-area-inset-top, 0px));
}

.mp-result__head {
  text-align: center;
  padding: 0 4px;
}

.mp-type {
  font-size: clamp(32px, 9vw, 42px);
  line-height: 1.08;
  margin-bottom: 10px;
}

.mp-type__clause {
  font-size: 18px;
  line-height: 1.4;
  color: var(--pt-text-muted);
  margin-bottom: 10px;
}

.mp-type__potential {
  display: inline-block;
  font-size: 14px;
  padding: 6px 12px;
  border: 1px solid var(--mp-chip-border);
  border-radius: 12px;
  color: var(--pt-text);
  margin-bottom: 12px;
}

.mp-type__lead {
  font-size: 16px;
  line-height: 1.5;
  color: var(--pt-text);
  max-width: 26em;
  margin: 0 auto 6px;
}

.mp-net {
  margin: 14px -8px 8px;
}

.mp-net svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.mp-net__label {
  font-family: var(--font-family, 'Inter', sans-serif);
  letter-spacing: -0.01em;
}

/* Aufbau: Gerüst zuerst, dann wachsen die Ecken, dann Beschriftung */
.mp-result--reveal .mp-type,
.mp-result--reveal .mp-type__clause,
.mp-result--reveal .mp-type__potential,
.mp-result--reveal .mp-type__lead {
  animation: mp-rise 0.36s var(--mp-ease-in) both;
}
.mp-result--reveal .mp-type { animation-delay: 0.1s; }
.mp-result--reveal .mp-type__clause,
.mp-result--reveal .mp-type__potential { animation-delay: 0.3s; }
.mp-result--reveal .mp-type__lead { animation-delay: 0.45s; }
.mp-result--reveal .mp-net__grid { animation: mp-fade 0.4s ease both; }
.mp-result--reveal .mp-net__labels,
.mp-result--reveal .mp-net__marks { animation: mp-fade 0.4s ease 1.3s both; }

@keyframes mp-rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

@keyframes mp-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Mentale Staerke */
.mp-score {
  margin-top: 8px;
}

.mp-score__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mp-score__label {
  font-size: 16px;
  letter-spacing: -0.016em;
  font-weight: 600;
}

.mp-info {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--pt-border);
  border-radius: 999px;
  background: var(--pt-card);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  font-style: italic;
  color: var(--pt-text);
  cursor: pointer;
}

.mp-info[aria-expanded="true"] {
  background: var(--pt-inverted);
  border-color: var(--pt-inverted);
  color: #fff;
}

.mp-score__value {
  margin: 4px 0 10px;
  font-size: 58px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  background: var(--mp-chart);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.mp-score__bar {
  height: 10px;
  border-radius: 16px;
  background: var(--pt-bg);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.mp-score__fill {
  height: 100%;
  background: var(--mp-chart);
  transform: scaleX(0);
  transform-origin: left center;
  border-radius: 16px;
}

.mp-score__scale {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 11px;
  color: var(--pt-text-secondary);
}

.mp-score__text {
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--pt-text);
}

.mp-score__info {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--pt-bg);
}

.mp-score__info p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--pt-text);
}

.mp-score__info p + p {
  margin-top: 8px;
}

.mp-notice {
  margin: 14px 8px 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--pt-text-secondary);
  text-align: center;
}

/* Bausteinkarten: Staerken, Potenzial, Antrieb */
.mp-block + .mp-block {
  margin-top: 12px;
}

.mp-block__head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mp-block__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  flex-shrink: 0;
}

.mp-block__name {
  font-size: 18px;
  letter-spacing: -0.018em;
  font-weight: 600;
}

.mp-block__sub {
  margin: 2px 0 10px 16px;
  font-size: 13px;
  color: var(--pt-text-secondary);
}

.mp-block__text {
  font-size: 15px;
  line-height: 1.5;
  color: var(--pt-text);
}

/* Teilen-Karte */
.mp-share .pt-share {
  margin-top: 0;
}

/* =============================================================
   WENIGER BEWEGUNG
   ============================================================= */

@media (prefers-reduced-motion: reduce) {
  .mp-screen { animation: mp-fade 0.12s ease; }
  .mp-reveal { animation: none; }
  .mp-chapter__num,
  .mp-chapter__title { animation: none; }
  .mp-opt.is-pop,
  .mp-att__opt.is-pop .mp-dot { animation: none; }
  .mp-week__fill,
  .mp-stations__fill,
  .mp-stations__marker,
  .mp-dot,
  .mp-row,
  .mp-card-opt { transition: none; }
  .mp-stations--celebrate .mp-stations__dot { animation: none; background: var(--mp-chart-to); }
  .mp-att--intro .mp-att__opt .mp-dot,
  .mp-att__opt.is-nudge .mp-dot { animation: none; }
  .mp-att__opt.is-nudge .mp-dot { box-shadow: 0 0 0 3px rgba(137, 138, 255, 0.35); }
  .mp-att__pole, .mp-att__link, .mp-att__hint { transition: none; }
  .mp-result--reveal * { animation: none !important; }
}

/* Halbzeit und Kapitel 4 teilen sich eine Karte: kompakter, damit
   „Kapitel starten“ auf einem 375 x 812 Bildschirm sichtbar bleibt */
.mp-chapter.mp-halftime {
  padding-top: 8px;
}

.mp-halftime .mp-halftime__box {
  padding: 14px 16px 16px;
  margin-bottom: 18px;
}

.mp-halftime .mp-halftime__net {
  width: 156px;
  margin-bottom: 4px;
}

.mp-halftime .mp-halftime__box {
  padding-top: 12px;
}

.mp-halftime .mp-halftime__text {
  font-size: 16px;
}

.mp-halftime .mp-chapter__num {
  font-size: 64px;
}

.mp-halftime .mp-chapter__title {
  margin-bottom: 18px;
}

.mp-halftime .mp-chapter__about {
  margin-bottom: 24px;
}

.mp-halftime .mp-chapter__about-text {
  font-size: 17px;
}

a.pt-btn {
  text-decoration: none;
}

/* =============================================================
   ERGEBNIS: lange Texte, Teilen, Einladung, PDF, Training
   ============================================================= */

/* Bis 3 bis 5 Saetze je Abschnitt: ruhige Zeilenlaenge und -hoehe */
.mp-block__text {
  max-width: 36em;
}

.mp-block__text p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--pt-text);
}

.mp-block__text p + p {
  margin-top: 10px;
}

/* Unter den Karten, klein (11.11.2026): Teilen, Einladen, PDF, Neustart */
.mp-more {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--pt-border);
}

.mp-share + .mp-share {
  margin-top: 20px;
}

.mp-share__title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-align: center;
  margin-bottom: 10px;
}

.mp-invite__text {
  font-size: 14px;
  line-height: 1.5;
  color: var(--pt-text-muted);
  text-align: center;
  margin-bottom: 10px;
}

.mp-more .pt-share__btn {
  min-height: 44px;
  padding: 10px 16px;
  font-size: 14px;
}

.mp-more__restart {
  margin-top: 20px;
  min-height: 44px;
  font-size: 14px;
}

/* =============================================================
   ERGEBNISKARTEN (11.11.2026)
   Aufbau wie die Erklaerkarten der App (IntroCardsStep, EduCards):
   weisse Karte, Zaehler oben rechts, Punkte darunter, „Weiter“.
   Wischen ueber CSS scroll-snap, die Hoehe setzt das Skript auf die
   gezeigte Karte.
   ============================================================= */

.mp-deck-wrap {
  position: relative;
  margin: 0 -4px;
}

.mp-deck {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0 4px;
  scroll-padding: 0 4px;
  transition: height 0.25s var(--mp-ease-in);
}

.mp-deck::-webkit-scrollbar {
  display: none;
}

.mp-deck:focus-visible {
  outline: 2px solid var(--pt-inverted);
  outline-offset: 2px;
  border-radius: 26px;
}

.mp-rcard {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  min-width: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  padding: 22px 20px 20px;
}

.mp-rcard__count {
  position: absolute;
  top: 18px;
  right: 20px;
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--pt-text-tertiary);
}

.mp-rcard__title {
  font-family: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  font-variation-settings: 'opsz' 90;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 40px 16px 0;
}

.mp-rcard__next {
  margin-top: 22px;
}

.mp-rcard .mp-block + .mp-block {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--pt-border);
}

/* Karte 1: Mentale Staerke unter dem Netz, abgesetzt statt eigener Karte */
.mp-rcard--score .mp-score {
  margin-top: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--pt-border);
}

.mp-rcard--score .mp-result__head {
  padding-top: 8px;
}

/* Karte 4: Aufmacher hervorgehoben, Unterzeile neben dem Punkt */
.mp-block--lead .mp-block__head {
  margin-bottom: 12px;
}

.mp-block__sub--inline {
  margin: 0;
}

.mp-block--lead .mp-block__text p:first-child {
  font-size: 18px;
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* Karte 5: die App */
.mp-app__lead {
  font-size: 16px;
  line-height: 1.55;
  color: var(--pt-text);
  margin-bottom: 8px;
}

.mp-app__shot {
  margin: 4px auto 0;
  width: min(80%, 300px);
}

.mp-app__shot img {
  display: block;
  width: 100%;
  height: auto;
}

.mp-app__list {
  list-style: none;
  margin: 6px 0 20px;
  padding: 0;
}

.mp-app__list li {
  position: relative;
  padding: 7px 0 7px 30px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--pt-text);
}

.mp-app__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--pt-standard-track);
}

.mp-app__list li::after {
  content: '';
  position: absolute;
  left: 7px;
  top: 12px;
  width: 5px;
  height: 9px;
  border: solid var(--pt-standard);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Punkte und Pfeile unter dem Stapel */
.mp-deck__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 14px;
}

.mp-deck__dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mp-deck__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: var(--pt-placeholder);
  cursor: pointer;
  transition: width 0.2s ease, background-color 0.2s ease;
}

.mp-deck__dot.is-on {
  width: 20px;
  background: var(--pt-inverted);
}

/* Pfeile nur, wo es eine Maus gibt; auf dem Handy wischt man oder tippt „Weiter“ */
.mp-deck__arrow {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--pt-border);
  border-radius: 999px;
  background: var(--pt-card);
  color: var(--pt-text);
  cursor: pointer;
}

.mp-deck__arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

@media (hover: hover) and (pointer: fine) {
  .mp-deck__arrow { display: inline-flex; }
}

@media (prefers-reduced-motion: reduce) {
  .mp-deck { scroll-behavior: auto; transition: none; }
  .mp-deck__dot { transition: none; }
}

.mp-pdf {
  margin-top: 12px;
}


/* Elemente nur fuer den Druck */
.mp-print-only {
  display: none;
}

/* =============================================================
   DRUCK: „Als PDF speichern“ und Drucken aus dem Browsermenue
   A4, Netz und Zahl im Endzustand, ohne Knoepfe und Teilen.
   ============================================================= */

@media print {
  @page {
    size: A4;
    margin: 14mm 14mm 18mm;
  }

  html, body, .pt, .pt.mp-tinted {
    --pt-bg: #FFFFFF;
    background: #FFFFFF !important;
  }

  * {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    animation: none !important;
    transition: none !important;
  }

  .pt__shell {
    max-width: none;
    padding: 0;
  }

  #mp-intro,
  .mp-top,
  .pt-footer,
  .pt-testbar,
  .pt-shared-note,
  .mp-share,
  .mp-pdf,
  .mp-deck__nav,
  .mp-rcard__count,
  .mp-rcard--app,
  .mp-more__restart,
  .mp-info,
  .mp-score__info,
  .pt-disclaimer,
  .mp-screen-only,
  .mp-net,
  .mp-score__count,
  button,
  .pt-btn {
    display: none !important;
  }

  .mp-print-only {
    display: block;
  }

  .mp-result {
    padding-top: 0;
  }

  /* Karten im Druck untereinander, nicht als Stapel */
  .mp-deck {
    display: block !important;
    height: auto !important;
    overflow: visible !important;
  }

  .mp-rcard {
    width: auto !important;
    margin-bottom: 4mm;
  }

  .mp-print-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 1px solid #E3E3E3;
    padding-bottom: 6px;
    margin-bottom: 14px;
  }

  .mp-print-head__title {
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #191919;
  }

  .mp-print-head__meta {
    font-size: 12px;
    color: #7D7D7D;
  }

  .mp-type {
    font-size: 30px;
  }

  .mp-print-net {
    width: 115mm;
    margin: 4mm auto 2mm;
  }

  .mp-print-net svg {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
  }

  /* Endwert statt der hochzaehlenden Zahl */
  .mp-score__final {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    clip: auto;
    overflow: visible;
    white-space: normal;
  }

  .mp-score__fill {
    transform: scaleX(var(--mp-ms, 0)) !important;
  }

  .pt-card,
  .mp-score {
    border: 1px solid #E3E3E3;
    border-radius: 14px;
    padding: 12px 14px;
    break-inside: avoid;
  }

  /* Verlaufstext druckt nicht ueberall sauber: im Druck eine Farbe */
  .mp-score__value {
    font-size: 40px;
    background: none;
    color: #0EA5B7;
    -webkit-text-fill-color: #0EA5B7;
  }

  .mp-print-values {
    break-inside: avoid;
  }

  .mp-print-values__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px 18px;
    font-size: 13px;
  }

  .mp-print-values__list li {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #F0F0F0;
    padding: 3px 0;
  }

  .pt-section-title {
    margin: 14px 0 6px;
    break-after: avoid;
  }

  .mp-block + .mp-block {
    margin-top: 8px;
  }

  .mp-block__text p {
    font-size: 13px;
    line-height: 1.5;
  }

  .mp-notice {
    font-size: 11px;
    margin-top: 8px;
  }

  /* Fusszeile am Ende des Profils; feste Fusszeilen je Seite setzt
     Safari anders als Chrome */
  .mp-print-foot {
    margin-top: 10mm;
    padding-top: 4px;
    border-top: 1px solid #E3E3E3;
    text-align: center;
    font-size: 10px;
    color: #7D7D7D;
  }
}

/* Hinweis unter der Altersfrage bei „unter 16“ */
.mp-field__hint--strong {
  color: var(--pt-text);
}

/* =============================================================
   Einwilligung zur Werbemessung (js/meta-consent.js), seit 11.11.2026
   in der Karte „Bevor es losgeht“ und als Fenster ueber
   „Cookie-Einstellungen“, kein schwebendes Banner mehr.
   Beide Knoepfe auf einer Ebene, gleich gross: Ablehnen umrandet mit
   voller Schriftfarbe (Kontrast wie Einverstanden), Einverstanden
   gefuellt wie die anderen Hauptknoepfe. Nichts vorausgewaehlt.
   ============================================================= */

.mp-consent__text {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--pt-text);
}

.mp-consent__text a {
  color: inherit;
  text-decoration: underline;
}

.mp-consent__row {
  display: flex;
  gap: 10px;
}

.mp-consent__btn {
  flex: 1 1 0;
  min-width: 0;
  padding-left: 12px;
  padding-right: 12px;
}

.mp-consent__btn {
  border: 1.5px solid var(--pt-inverted);   /* beide gleich breit */
}

.mp-consent__btn--no {
  background: var(--pt-card);
  color: var(--pt-text);
}

.mp-announce__consent {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--pt-border);
  text-align: left;
}

/* Fenster fuer „Cookie-Einstellungen“ */
.mp-consent-dialog {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px 12px calc(16px + env(safe-area-inset-bottom, 0px));
  background: rgba(17, 17, 17, 0.4);
}

@media (min-width: 600px) {
  .mp-consent-dialog { align-items: center; }
}

.mp-consent-dialog__box {
  position: relative;
  width: 100%;
  max-width: 480px;
  padding: 44px 20px 20px;
  background: var(--pt-card);
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.mp-consent-dialog__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 999px;
  background: var(--pt-bg);
  color: var(--pt-text);
  font: inherit;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

@media print {
  .mp-consent,
  .mp-consent-dialog { display: none; }
}

/* =============================================================
   Einstieg in Einzelschritten (Moritz 12.11.2026): Start, Sportart,
   Ansprache, Alter je ein Bildschirm. Oben Zurueck und drei Segmente als
   Fortschritt, damit sich die Angaben wie der Test anfuehlen und nicht
   wie ein Formular. Danach die Forschungsfrage vor dem Ergebnis.
   ============================================================= */

/* display der Bausteine schlaegt [hidden], deshalb ausdruecklich */
.mp-intro-top[hidden],
.mp-step[hidden],
.mp-step__next[hidden] { display: none; }

.mp-intro-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: calc(16px + env(safe-area-inset-top, 0px)) 0 8px;
}

.mp-steps {
  flex: 1 1 auto;
  display: flex;
  gap: 6px;
}

.mp-steps__seg {
  flex: 1 1 0;
  height: 4px;
  border-radius: 999px;
  background: var(--pt-border);
  transition: background 0.25s ease;
}

.mp-steps__seg.is-on {
  background: var(--pt-inverted);
}

/* Die Schritte nach dem Start sitzen wie die Testkarten oben, nicht erst
   nach dem Hero-Abstand */
.mp-app--steps .mp-step {
  padding-top: 8px;
}

/* Startbildschirm ohne Scrollen auf dem Handy (12.11.2026): weniger Luft
   oben, kleineres Netz, damit „Profil starten“ in der ersten Ansicht steht */
#mp-step-start .mp-hero {
  padding-top: calc(56px + env(safe-area-inset-top, 0px));
  padding-bottom: 20px;
}
#mp-step-start .mp-hero__net {
  width: 150px;
  margin: 18px auto 2px;
}
#mp-step-start .pt-disclaimer {
  margin-top: 22px;
}

.mp-form--start {
  margin-top: 4px;
}

.mp-step__title {
  margin: 0 0 8px;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--pt-text);
}

.mp-step__title:focus { outline: none; }

.mp-step__text {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--pt-text-secondary);
}

.mp-step__next {
  margin-top: 14px;
}

.mp-research .mp-consent__text {
  text-align: left;
  margin-top: 6px;
}

.mp-research .mp-consent__row {
  margin-top: 18px;
}

@media (prefers-reduced-motion: no-preference) {
  .mp-step:not([hidden]) { animation: mp-in 0.3s var(--mp-ease-in); }
}

/* =============================================================
   App früher anbieten (13.11.2026): Knopf auf Karte 1 und der
   Potenzial-Karte, Leiste unten über allen Ergebniskarten
   ============================================================= */

.mp-cta {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--pt-border);
}

.mp-cta__text {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--pt-text);
}

.mp-cta__btn {
  margin-top: 14px;
}

.mp-appbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  background: var(--pt-card);
  border-top: 1px solid var(--pt-border);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
}

.mp-appbar__text {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 14px;
  line-height: 1.3;
  color: var(--pt-text);
}

.mp-appbar__btn {
  flex: 0 0 auto;
  padding-left: 18px;
  padding-right: 18px;
  white-space: nowrap;
}

/* Platz unter dem Inhalt, damit die Leiste nichts verdeckt */
body.mp-has-appbar .pt__shell { padding-bottom: 96px; }

@media (min-width: 720px) {
  .mp-appbar { left: 50%; right: auto; width: 640px; transform: translateX(-50%); border-radius: 18px 18px 0 0; border-left: 1px solid var(--pt-border); border-right: 1px solid var(--pt-border); }
}

@media print {
  .mp-appbar, .mp-cta { display: none; }
}
