:root {
  --gruen: #348E17;
  --gruen-dunkel: #092C17;
  --gold: #DA9D00;
  --gelb: #FEC000;
  --papier: #FBF9F4;
  --text: #1C2118;
  --grau: #6E7568;
  --linie: #DFDCD2;
  --rand: 16px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0;
  background: var(--papier);
  color: var(--text);
  font: 17px/1.55 system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-text-size-adjust: 100%;
}

#app {
  max-width: 34rem;
  margin: 0 auto;
  padding: var(--rand) var(--rand) 5rem;
}

h1, h2 { line-height: 1.2; font-weight: 700; }
h1 { font-size: 1.6rem; margin: 1.5rem 0 .5rem; }
h2 { font-size: 1.15rem; margin: 2rem 0 .5rem; }

label { display: block; margin: 1.2rem 0 .35rem; font-weight: 600; font-size: .95rem; }

input, textarea, select {
  width: 100%;
  padding: .7rem .8rem;
  border: 2px solid var(--linie);
  border-radius: 10px;
  background: #fff;
  font: inherit;
  color: inherit;
}

input:focus, textarea:focus, select:focus { border-color: var(--gruen); outline: none; }
textarea { min-height: 5.5rem; resize: vertical; }

button {
  display: block;
  width: 100%;
  margin-top: 1.5rem;
  padding: .85rem 1rem;
  border: 0;
  border-radius: 10px;
  background: var(--gruen);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

button:disabled { opacity: .5; cursor: default; }
button.leise { background: transparent; color: var(--grau); font-weight: 600; margin-top: .5rem; }

#fehler {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: .8rem var(--rand);
  background: var(--gold);
  color: var(--gruen-dunkel);
  font-weight: 600;
}

/* Dasselbe Band fuer das, was geklappt hat - gruen statt gold. */
#fehler.gut { background: var(--gruen); color: #fff; }

.laedt { color: var(--grau); text-align: center; padding: 3rem 0; }
.hinweis { color: var(--grau); font-size: .9rem; margin: .3rem 0 0; }

/* --- Das Bild hinter den sechzig Tagen --- */

.puzzle-block { margin: 1.5rem 0; }

.puzzle {
  position: relative;
  /* Zehn Spalten mal sechs Zeilen: eine Zeile ist ein Zehn-Tage-Abschnitt,
     also genau eine Reflexion aus dem Buch. Das Bild dahinter hat dasselbe
     Seitenverhaeltnis, damit kein Stueck angeschnitten wird. */
  aspect-ratio: 10 / 6;
  border-radius: 12px;
  overflow: hidden;
  background: #FFF7E2;
}

.puzzle-bild {
  position: absolute;
  inset: 0;
  background: url('../img/ninja/pokal.webp') center / contain no-repeat;
}

.kacheln {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  grid-template-rows: repeat(6, 1fr);
  /* Kein Abstand zwischen den Kacheln: durch jede Luecke waere das Bild zu
     sehen, und aus sechzig Luecken setzt sich der Umriss zusammen, bevor
     jemand einen einzigen Tag aufgedeckt hat. Die Raender trennen. */
  gap: 0;
}

.kachel {
  width: auto;
  margin: 0;
  padding: 0;
  border: 1px solid var(--linie);
  border-radius: 0;
  background: var(--papier);
  color: var(--grau);
  font-size: .62rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background-color .45s ease, border-color .45s ease, color .45s ease, opacity .45s ease;
}

/* Ein kuenftiger Tag ist nicht ausgegraut, sondern einfach zu. Die
   allgemeine Regel fuer gesperrte Knoepfe macht sie halbdurchsichtig - hier
   wuerde damit das halbe Bild durchscheinen, bevor es jemand aufgedeckt hat. */
.kachel:disabled { opacity: 1; cursor: default; }
.kachel.offen { border-style: dashed; }
.kachel.halb {
  background: color-mix(in srgb, var(--wegfarbe) 18%, var(--papier));
  opacity: .5;
  color: transparent;
}

/* Ein ganzer Tag nimmt seine Kachel weg. Nicht ueber opacity: 0 - sonst
   verschwaende auch der Rahmen bei Tastaturbedienung, und wer sich mit der
   Tabulatortaste durch die Tage bewegt, saehe nicht mehr, wo er ist. */
.kachel.voll {
  background: transparent;
  border-color: transparent;
  color: transparent;
}

/* Das Stueck, das gerade gefallen ist. Die Kachel ist beim Neuzeichnen schon
   weg - also faengt die Bewegung bei zugedeckt an und kippt von dort weg.
   Nur ein ganzer Tag nimmt eine Kachel, also faellt auch nur dann eine. */
.kachel.faellt { animation: stueck-faellt .55s ease-in; }

@keyframes stueck-faellt {
  0% {
    background-color: var(--papier);
    border-color: var(--linie);
    transform: none;
    opacity: 1;
  }
  100% {
    background-color: var(--papier);
    border-color: var(--linie);
    transform: translateY(16px) scale(.78) rotate(-10deg);
    opacity: 0;
  }
}

/* Und wenn das allerletzte faellt, atmet das ganze Bild einmal auf. */
.puzzle.jubel .puzzle-bild { animation: jubel .9s .25s ease-out; }

@keyframes jubel {
  0% { transform: none; }
  40% { transform: scale(1.04); }
  100% { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .kachel.faellt,
  .puzzle.jubel .puzzle-bild { animation: none; }
}

.kachel.voll:hover { border-color: var(--gold); }
.kachel:focus-visible { outline: 3px solid var(--gold); outline-offset: -1px; }
.kachel[aria-current="step"] { border: 2px solid var(--gold); }

.puzzle-stand {
  margin: .5rem 0 0;
  font-size: .85rem;
  color: var(--grau);
  text-align: center;
}

.umschalter { display: flex; gap: 8px; margin: 1rem 0 0; }
.umschalter button { margin: 0; background: #fff; color: var(--grau); border: 2px solid var(--linie); }
.umschalter button.aktiv { background: var(--gruen); border-color: var(--gruen); color: #fff; }

.skala { display: flex; gap: 8px; margin-top: .35rem; }
.skala .stufe { flex: 1; margin: 0; position: relative; }
.skala .stufe input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.skala .stufe span {
  display: block;
  padding: .7rem 0;
  border: 2px solid var(--linie);
  border-radius: 10px;
  background: #fff;
  text-align: center;
  font-weight: 700;
  pointer-events: none;
}
.skala .stufe input:checked + span { background: var(--gruen); border-color: var(--gruen); color: #fff; }
.skala .stufe input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }

/* --- Haltepunkte und Reflexion --- */

.haltepunkt-marke {
  color: var(--gold);
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin: 1.5rem 0 0;
}

.haltepunkt-ruf { background: var(--gold); color: var(--gruen-dunkel); }

textarea.gross { min-height: 11rem; }

.meilensteine { margin-top: .5rem; }
.meilenstein { padding: .8rem 0; border-bottom: 1px solid var(--linie); }
.meilenstein:last-child { border-bottom: 0; }
.meilenstein .haken {
  display: flex;
  align-items: center;
  gap: .5rem;
  /* Das ganze Label ist das Ziel, nicht nur das 22px-Kaestchen - sonst ist
     es auf dem Handy mit dem Daumen kaum zu treffen. */
  min-height: 44px;
  margin: 0;
  padding: 0 .2rem;
  font-weight: 600;
  font-size: .85rem;
  color: var(--grau);
  cursor: pointer;
}
.meilenstein .haken input { width: 22px; height: 22px; margin: 0; accent-color: var(--gruen); flex: none; }
.meilenstein .haken input:checked + span { color: var(--gruen); }
.meilenstein-text { font-size: .95rem; }

/* --- Rueckblick --- */

.verlauf, .sterne-verlauf { width: 100%; height: auto; display: block; margin: .5rem 0 0; }
.legende { color: var(--grau); font-size: .9rem; margin: .2rem 0 0; }
/* Zwei Striche statt zweier Punkte: der Morgen gestrichelt und blass, der
   Abend durchgezogen - genau wie im Bild darunter. Beide in der Farbe des
   Weges, damit die Legende nicht etwas behauptet, was die Linien nicht tun. */
.legende .strich {
  display: inline-block;
  width: 22px;
  height: 0;
  vertical-align: 4px;
  border-top: 3px solid var(--linienfarbe);
  border-radius: 2px;
}

.legende .strich.morgens { opacity: .5; border-top-style: dashed; }

/* --- Abschluss --- */

.feier { text-align: center; margin: 2rem 0 0; }
.feier-zeichen { display: inline-block; font-size: 3.5rem; color: var(--gold); animation: feiern .9s ease-out; }
@keyframes feiern { from { transform: scale(0) rotate(-40deg); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .feier-zeichen { animation: none; } }

blockquote.rueckschau {
  margin: 1.5rem 0;
  padding: 1rem 1.2rem;
  border-left: 4px solid var(--gold);
  background: #fff;
  font-style: italic;
  white-space: pre-wrap;
}

/* --- Einstellungen --- */

.nebenwege { display: flex; gap: 8px; }
.nebenwege button { margin-top: .5rem; }

.gefahr { margin-top: .5rem; }
button.warnung { background: #fff; color: #B5342D; border: 2px solid #B5342D; }

/* --- Der Rueckblick: ein Gesicht je Tag --- */

.baerchenreihe {
  display: grid;
  /* Waechst mit dem Platz. Auf dem Handy sind das sieben Spalten, auf einem
     breiten Schirm mehr - lieber grosse Gesichter als eine feste Zahl. */
  grid-template-columns: repeat(auto-fill, minmax(46px, 1fr));
  gap: 6px;
  margin: .8rem 0 0;
}

.tagesbaer {
  width: auto;
  margin: 0;
  padding: 4px 2px 3px;
  border: 1px solid var(--linie);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}

.tagesbaer img {
  display: block;
  width: 100%;
  height: auto;
}

/* Ein Tag ohne Eintrag zeigt kein Gesicht - ein graues Baerchen saehe aus
   wie eine schlechte Note, und eine Luecke ist keine. */
.kein-baer {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--papier);
}

.tagesbaer.leer { border-style: dashed; }
.tagesbaer.ganz { border-color: var(--gruen); }

/* Bei 42 Pixeln sind fuenf Gesichter nicht zu unterscheiden - das entscheidet
   sich in den Augen. Der Grund dahinter macht die Reihe auf einen Blick
   lesbar, und das Gesicht traegt die Einzelheit, wenn man hinschaut.
   Von Grau nach Gruen, nicht von Rot nach Gruen: eine schwere Stimmung ist
   keine schlechte Note. */
.tagesbaer.st1 { background: #E9E6DE; }
.tagesbaer.st2 { background: #DFE5D2; }
.tagesbaer.st3 { background: #CFE2BD; }
.tagesbaer.st4 { background: #AEDA8D; }
.tagesbaer.st5 { background: #83CC55; }

.tagesbaer-nr {
  display: block;
  font-size: .62rem;
  font-weight: 600;
  color: var(--grau);
  line-height: 1.4;
}

.sternspur {
  display: block;
  height: 4px;
  border-radius: 2px;
  /* Eine sichtbare Spur, nicht nur die Fuellung: sonst sieht ein Tag mit
     einem Stern aus wie ein Tag ohne Sterne. */
  background: var(--linie);
  overflow: hidden;
}

.sternspur-fuellung {
  display: block;
  height: 100%;
  background: var(--gold);
}

/* --- Der Lesemodus --- */

.lesebalken {
  height: 5px;
  border-radius: 3px;
  background: var(--linie);
  overflow: hidden;
  margin: 0 0 .35rem;
}

.lesebalken-fuellung {
  height: 100%;
  background: var(--gruen);
  transition: width .3s ease;
}

.lesestand {
  margin: 0 0 1rem;
  font-size: .8rem;
  color: var(--grau);
  text-align: right;
}

/* Eine Karte statt einer Folge von Sprechblasen: alles steht auf einmal da,
   und das Feld gehoert sichtbar dazu. */
.lesekarte {
  padding: 1.1rem 1.1rem .4rem;
  border: 1px solid var(--linie);
  border-radius: 14px;
  background: #fff;
}

.lesekarte h2 { margin: 0 0 .8rem; font-size: 1.15rem; }

/* In der Karte ist die Zeile kein eigener Sprechblasen-Kasten mehr - sonst
   waere es ein Kasten im Kasten. */
.lesekarte .ninja-zeile {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  margin: 0 0 .8rem;
  animation: none;
}

.lesefuss {
  display: flex;
  gap: .8rem;
  justify-content: space-between;
  margin-top: 1rem;
}

.lesefuss button { margin: 0; }

.verzeichnis { margin: .5rem 0 1rem; }

.verzeichnis-teil {
  margin: 1rem 0 .3rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--gold);
}

.verzeichnis-teil:first-child { margin-top: 0; }

.verzeichnis-schritt {
  display: block;
  width: 100%;
  margin: 0 0 4px;
  padding: .6rem .8rem;
  text-align: left;
  font-weight: 500;
  background: #fff;
  color: var(--text);
  border: 1px solid var(--linie);
  border-radius: 10px;
}

.verzeichnis-schritt.gelesen { color: var(--grau); }
.verzeichnis-schritt.gelesen::before { content: '✓  '; color: var(--gruen); }
.verzeichnis-schritt.hier { border-color: var(--gruen); border-width: 2px; font-weight: 700; }

/* --- Der Sprecher --- */

.sprecher {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  /* Feste Hoehe, damit die Zeilen darunter nicht springen, wenn der Ninja
     die Pose wechselt. */
  height: 150px;
  margin: 0 0 .5rem;
}

.sprecher img,
.sprecher video {
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

@media (min-height: 720px) { .sprecher { height: 190px; } }

/* --- Die Wahl des Weges --- */

.wege { margin-top: 1.5rem; }
.weg-wahl { margin-bottom: 1.5rem; }
.weg-wahl button { margin-top: 0; }
.weg-wahl .hinweis { margin-top: .4rem; }
.weg-wahl:not(:first-child) button { background: #fff; color: var(--gruen-dunkel); border: 2px solid var(--linie); }

/* --- Der Dialog --- */

.schritt-marke {
  color: var(--gold);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin: 0 0 .8rem;
  text-align: center;
}

.ninja-zeilen { margin: 0; }

.ninja-zeile {
  margin: 0 0 .9rem;
  padding: .85rem 1rem;
  border-radius: 14px 14px 14px 4px;
  background: #fff;
  border: 1px solid var(--linie);
  white-space: pre-wrap;
  animation: auftauchen .35s ease-out;
}

.ninja-zeile.reaktion { border-color: var(--gruen); }

@keyframes auftauchen {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) { .ninja-zeile { animation: none; } }

.buchzitat {
  margin: 0 0 .9rem;
  padding: .3rem 0 .3rem 1rem;
  border-left: 3px solid var(--gold);
  font-style: italic;
  color: var(--gruen-dunkel);
}
.buchzitat p { margin: 0; }
.buchzitat cite { display: block; margin-top: .3rem; font-style: normal; font-size: .85rem; color: var(--grau); }

button.tippen { background: #fff; color: var(--grau); border: 2px solid var(--linie); margin-top: .5rem; }

.listenfeld input { margin-bottom: .5rem; }

.hakenfeld { margin-top: .5rem; }
.zusage {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  min-height: 44px;
  margin: 0;
  padding: .6rem 0;
  border-bottom: 1px solid var(--linie);
  font-weight: 400;
  font-size: 1rem;
  cursor: pointer;
}
.zusage:last-child { border-bottom: 0; }
.zusage input { width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--gruen); flex: none; }

/* --- Die Wegfarbe --- */

.farbwahl { display: flex; flex-wrap: wrap; gap: 10px; margin-top: .5rem; }

.farbe {
  flex: 1 1 8rem;
  display: flex;
  align-items: center;
  gap: .6rem;
  min-height: 48px;
  margin: 0;
  padding: 0 .8rem;
  border: 2px solid var(--linie);
  border-radius: 10px;
  background: #fff;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
}

.farbe input { position: absolute; opacity: 0; width: 0; height: 0; }
.farbe .klecks { width: 22px; height: 22px; border-radius: 50%; background: var(--probe); flex: none; }
.farbe:has(input:checked) { border-color: var(--probe); box-shadow: inset 0 0 0 1px var(--probe); }
.farbe:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 2px; }

/* --- Kopfzeile der Vorbereitung: wo bin ich, und das Zahnrad --- */

.kopfzeile {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .5rem;
}

.teil-marke { margin: 0; line-height: 1.3; }
.teil-zahl {
  display: block;
  color: var(--gold);
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.teil-name { display: block; font-weight: 700; font-size: 1.05rem; color: var(--gruen-dunkel); }

.zahnrad {
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  flex: none;
  background: transparent;
  border: 2px solid var(--linie);
  border-radius: 50%;
  color: var(--grau);
  font-size: 1.1rem;
  line-height: 1;
}
.zahnrad[aria-expanded="true"] { background: var(--gruen-dunkel); border-color: var(--gruen-dunkel); color: #fff; }

.menue {
  margin: 0 0 1rem;
  padding: .6rem .9rem 1rem;
  border: 2px solid var(--linie);
  border-radius: 12px;
  background: #fff;
}
.menue button { text-align: left; margin-top: .3rem; }
.menue .hinweis { margin-top: .7rem; }

/* --- Teilen per Haekchen, nicht per zweitem Knopf --- */

.teilen-haken {
  display: flex;
  align-items: center;
  gap: .7rem;
  min-height: 44px;
  margin: .6rem 0 0;
  font-weight: 400;
  font-size: .95rem;
  color: var(--grau);
  cursor: pointer;
}
.teilen-haken input { width: 24px; height: 24px; margin: 0; accent-color: var(--gruen); flex: none; }
.teilen-haken input:checked + span { color: var(--gruen-dunkel); font-weight: 600; }

/* --- Noch kein Zugang --- */

.kein-zugang { margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid var(--linie); }
.kein-zugang h2 { margin-top: 0; }

.shoplink {
  display: block;
  margin-top: .6rem;
  padding: .8rem 1rem;
  border: 2px solid var(--gruen);
  border-radius: 10px;
  color: var(--gruen-dunkel);
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

/* --- Stimmung: die fuenf Gesichter statt der Zahlen 1 bis 5 --- */

.stimmungswahl { display: flex; gap: 6px; margin-top: .4rem; }

.gesicht {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .2rem;
  margin: 0;
  padding: .4rem .1rem .3rem;
  border: 2px solid transparent;
  border-radius: 12px;
  font-weight: 400;
  font-size: .72rem;
  color: var(--grau);
  cursor: pointer;
}

.gesicht input { position: absolute; opacity: 0; width: 0; height: 0; }
.gesicht img {
  width: 100%;
  max-width: 62px;
  height: auto;
  filter: grayscale(.75) opacity(.55);
  transition: filter .2s, transform .2s;
}
.gesicht:has(input:checked) { border-color: var(--gruen); background: #fff; }
.gesicht:has(input:checked) img { filter: none; transform: scale(1.06); }
.gesicht:has(input:checked) .gesichtname { color: var(--gruen-dunkel); font-weight: 700; }
.gesicht:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 2px; }

/* --- Sterne --- */

.sternwahl {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 4px;
  margin-top: .4rem;
}

.stern {
  /* Der Stern selbst ist klein - die Flaeche zum Antippen darf es nicht sein.
     44 Pixel sind das Mass, unter dem ein Daumen danebentrifft. */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0;
  font-size: 2.2rem;
  line-height: 1;
  color: var(--linie);
  cursor: pointer;
}
.stern input { position: absolute; opacity: 0; width: 0; height: 0; }

/* Von rechts nach links aufgebaut: der angetippte Stern und alle danach im
   Aufbau - also alle links davon auf dem Schirm - werden gold. */
.stern:has(input:checked),
.stern:has(input:checked) ~ .stern { color: var(--gold); }

.sternwahl:hover .stern { color: var(--linie); }
.sternwahl .stern:hover,
.sternwahl .stern:hover ~ .stern { color: var(--gold); }

.stern:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }

.nurvorleser {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* --- Wo stehe ich heute --- */

.stand {
  margin: .3rem 0 0;
  padding: .6rem .9rem;
  border-left: 3px solid var(--gruen);
  background: #fff;
  font-size: .92rem;
  color: var(--gruen-dunkel);
}

.umschalter button.fertig:not(.aktiv) { border-color: var(--gruen); color: var(--gruen-dunkel); }

/* Der Satz direkt nach dem Speichern. Klein, neben dem Ninja, und er steht
   an derselben Stelle wie sonst der Stand - damit der Blick nicht springt. */
.ninja-echo {
  display: flex;
  align-items: flex-end;
  gap: .6rem;
  margin: .4rem 0 0;
  animation: auftauchen .35s ease-out;
}

.ninja-echo img { flex: none; width: auto; }
.ninja-echo .ninja-zeile { margin: 0 0 .2rem; flex: 1; }

@media (prefers-reduced-motion: reduce) { .ninja-echo { animation: none; } }

/* Die eigenen Worte von damals. Sie stehen eingerueckt und in Anfuehrungs-
   zeichen, damit klar ist: das hat nicht der Ninja gesagt, das warst du. */
.eigene-worte {
  margin: .9rem 0 0;
  padding: .2rem 0 .2rem 1rem;
  border-left: 3px solid var(--gold);
}

.eigene-worte .woher {
  margin: 0 0 .3rem;
  font-size: .85rem;
  color: var(--grau);
}

.eigene-worte .wortlaut {
  margin: 0;
  font-style: italic;
  white-space: pre-wrap;
}

.eigene-worte .wortlaut::before { content: '„'; }
.eigene-worte .wortlaut::after { content: '“'; }

/* --- Ein Hinweis, der etwas von einem will: Adresse bestaetigen, Abschluss --- */

.merkzettel {
  margin: 1rem 0 0;
  padding: .8rem 1rem;
  border: 2px solid var(--gold);
  border-radius: 10px;
  background: #fff;
}

.merkzettel p { margin: 0; }
.merkzettel .hinweis { margin-top: .2rem; word-break: break-all; }

button.klein {
  width: auto;
  margin-top: .7rem;
  padding: .5rem .9rem;
  font-size: .9rem;
  background: var(--gold);
  color: var(--gruen-dunkel);
}

/* --- Der Anmeldebildschirm --- */

.konto-ninja { display: block; width: auto; margin: 1rem auto 0; }

.einwilligung { margin-top: 1.2rem; }
.einwilligung a, .rechtliches a { color: var(--gruen-dunkel); }

.rechtliches {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  margin: 2.5rem 0 0;
  font-size: .85rem;
}

/* --- Dein Plan --- */

.plan-teil h2 { margin-top: 1.6rem; }

.plan-antwort {
  margin: 0;
  padding: .8rem 1rem;
  border-left: 3px solid var(--gruen);
  border-radius: 0 10px 10px 0;
  background: #fff;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.plan-meilensteine { margin: 0; padding: 0; list-style: none; counter-reset: stein; }

.plan-meilensteine li {
  counter-increment: stein;
  display: flex;
  align-items: baseline;
  gap: .7rem;
  padding: .7rem 0;
  border-bottom: 1px solid var(--linie);
}

.plan-meilensteine li::before {
  content: counter(stein);
  flex: none;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: var(--linie);
  color: var(--gruen-dunkel);
  font-size: .85rem;
  font-weight: 700;
  line-height: 1.6rem;
  text-align: center;
}

.plan-meilensteine li.erreicht::before { background: var(--gruen); color: #fff; }
.plan-meilenstein-text { flex: 1; overflow-wrap: anywhere; }
.plan-marke { flex: none; font-size: .8rem; color: var(--grau); }
.plan-meilensteine li.erreicht .plan-marke { color: var(--gruen); font-weight: 700; }

.plan-klappe { border-bottom: 1px solid var(--linie); }

.plan-klappe summary {
  padding: .8rem 0;
  font-weight: 600;
  cursor: pointer;
}

.plan-klappe .plan-antwort, .plan-klappe .plan-haken { margin-bottom: 1rem; }

.plan-haken { margin: 0; padding: 0; list-style: none; }
.plan-haken li { display: flex; gap: .6rem; padding: .3rem 0; }
.plan-haken li.ja > span:first-child { color: var(--gruen); font-weight: 700; }
.plan-haken li.offen { color: var(--grau); }

/* --- Ein Schalter in den Einstellungen --- */

.schalter {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin: .8rem 0 0;
  font-weight: 600;
  cursor: pointer;
}

.schalter input { width: 24px; height: 24px; margin: 0; accent-color: var(--gruen); flex: none; }
.schalter input:disabled + span { color: var(--grau); font-weight: 400; }

.nebenwege { flex-wrap: wrap; }
.nebenwege button { flex: 1; width: auto; white-space: nowrap; }

.plan-knoepfe { margin: 1rem 0 0; }
.plan-knoepfe button { margin-top: .6rem; }

button.zweit {
  background: #fff;
  color: var(--gruen-dunkel);
  border: 2px solid var(--gruen);
}
