/* ==========================================================================
   OmniMentis – lernstand.css
   Page layer for lernstand/index.html (Lernstand-Check).
   Uses the tokens from base.css; repeats nothing from it.
   ========================================================================== */

/* ---------- Page ---------- */
.lst-topnav { display: flex; gap: 1.25rem; align-items: center; justify-self: end; }
.lst-topnav a { color: var(--ink); text-decoration: none; font-weight: 600; }
.lst-topnav a:hover { color: var(--coral); }
@media (max-width: 520px) { .lst-topnav a + a { display: none; } }

.lst-main {
  position: relative;
  overflow: hidden;
  overflow: clip;   /* nicht per Skript/Fokus scrollbar: das Wasserzeichen ragt über den Rand */
  background: #eef8f4;
  border-top: 1px solid rgba(15, 61, 71, 0.12);
  padding: clamp(28px, 6vw, 80px) var(--edge) clamp(56px, 8vw, 110px);
  min-height: 78vh;
}
.lst-app {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
}
/* OmniMentis-Logo als ruhiges Wasserzeichen, unten rechts angeschnitten */
.lst-main::before {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -110px;
  width: min(460px, 85vw);
  aspect-ratio: 1;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none'%3E%3Cpath d='M9.45 6.18 A11.8 11.8 0 1 0 22.55 6.18' stroke='%230f3d47' stroke-linecap='round' stroke-width='1.4'/%3E%3Cpath d='M9.9 20 L12.6 10.8 L15.8 15.8 L19 10.8 L21.6 20' stroke='%230f3d47' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.2'/%3E%3Ccircle cx='12.6' cy='10.8' fill='%230f3d47' r='1.7'/%3E%3Ccircle cx='19' cy='10.8' fill='%230f3d47' r='1.7'/%3E%3Ccircle cx='9.9' cy='20' fill='%230f3d47' r='1.7'/%3E%3Ccircle cx='21.6' cy='20' fill='%230f3d47' r='1.7'/%3E%3Ccircle cx='15.75' cy='16.74' fill='%23ff7253' r='2.48'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: 0.09;
  pointer-events: none;
}

/* ---------- Type ---------- */
.lst-h1 {
  font-family: var(--h);
  font-weight: 800;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.03;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
}
.lst-h2 {
  font-family: var(--h);
  font-weight: 800;
  font-size: clamp(24px, 3.4vw, 34px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}
.lst-h3 {
  font-family: var(--h);
  font-weight: 800;
  font-size: clamp(20px, 2.4vw, 26px);
  letter-spacing: -0.01em;
  margin: 0 0 14px;
}
.lst-h4 {
  font-family: var(--h);
  font-weight: 700;
  font-size: 19px;
  margin: 0 0 6px;
}
.lst-h1:focus, .lst-h2:focus { outline: none; }
.lst-hand {
  font-family: var(--hand);
  font-size: clamp(23px, 2.6vw, 30px);
  margin: 0 0 18px;
  transform: rotate(-1.6deg);
  transform-origin: left;
}
.lst-text {
  font-size: 18px;
  line-height: 1.65;
  margin: 0 0 20px;
  max-width: 54ch;
}
.lst-hinweis {
  font-size: 15px;
  line-height: 1.55;
  margin: 0 0 6px;
  opacity: 0.8;
}
.lst-sr {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Card ---------- */
.lst-karte {
  background: var(--cream);
  border: 1.5px solid var(--ink);
  border-radius: 28px;
  padding: clamp(22px, 4vw, 40px);
  box-shadow: 0 10px 30px rgba(15, 61, 71, 0.10);
  animation: om-rise 420ms ease both;
}

/* ---------- Buttons ---------- */
.lst-btn {
  display: inline-block;
  font: inherit;
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
  background: var(--sun);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 14px 28px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(15, 61, 71, 0.12);
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}
.lst-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(15, 61, 71, 0.16); }
.lst-btn:active { transform: translateY(1px); box-shadow: 0 2px 6px rgba(15, 61, 71, 0.12); }
.lst-btn:focus-visible, .lst-tri:focus-visible, .lst-regler__input:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 4px;
}
.lst-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.lst-btn--leise { background: var(--cream); box-shadow: none; }
.lst-btn--leise:hover { box-shadow: 0 4px 12px rgba(15, 61, 71, 0.12); }

/* ---------- Start ---------- */
.lst-fakten {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  gap: 10px;
}
.lst-fakten__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: baseline;
  font-size: 16px;
}
.lst-fakten__dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--coral);
}

/* ---------- Question ---------- */
.lst-kopf {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  margin-bottom: 22px;
}
.lst-kopf__nr { font-size: 14px; font-weight: 700; }
.lst-kopf__balken {
  height: 10px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  overflow: hidden;
  background: var(--cream);
}
.lst-kopf__fuell {
  display: block;
  height: 100%;
  width: calc(var(--anteil, 0) * 100%);
  background: var(--teal);
  transition: width 300ms ease;
}
.lst-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
}

/* ---------- Triangle (the one bold element) ---------- */
.lst-dreieck {
  display: grid;
  justify-items: center;
  gap: 8px;
  max-width: 500px;
  margin: 18px auto 0;
}
.lst-dreieck__unten {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.lst-ecke {
  font-family: var(--h);
  font-weight: 700;
  font-size: clamp(15px, 2.2vw, 18px);
  line-height: 1.25;
  max-width: 46%;
}
.lst-ecke--0 { text-align: center; max-width: 80%; }
.lst-ecke--2 { text-align: right; }

.lst-tri {
  display: block;
  width: 100%;
  max-width: 460px;
  height: auto;
  overflow: visible;
  touch-action: none;
  cursor: crosshair;
  border-radius: 12px;
}
.lst-tri__flaeche { fill: var(--mint); stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; }
.lst-tri__linie { stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 4 7; opacity: 0.35; }
.lst-tri__ecke { stroke: var(--ink); stroke-width: 2.5; }
.lst-tri__ecke--0 { fill: var(--teal); }
.lst-tri__ecke--1 { fill: var(--sun); }
.lst-tri__ecke--2 { fill: var(--cream); }
.lst-tri__hof { fill: var(--coral); opacity: 0.22; }
.lst-tri__kern { fill: var(--coral); stroke: var(--ink); stroke-width: 3; }
.lst-tri__punkt { animation: om-pop 220ms ease both; transform-box: fill-box; transform-origin: center; }

/* ---------- Slider ---------- */
.lst-regler { margin-top: 26px; }
.lst-regler__input {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 16px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: linear-gradient(90deg, var(--mint), var(--sun) 55%, var(--coral));
  cursor: pointer;
}
.lst-regler__input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--coral);
  border: 3px solid var(--ink);
}
.lst-regler__input::-moz-range-thumb {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--coral);
  border: 3px solid var(--ink);
}
.lst-regler--offen .lst-regler__input::-webkit-slider-thumb { background: var(--cream); }
.lst-regler--offen .lst-regler__input::-moz-range-thumb { background: var(--cream); }
.lst-regler__stufen {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  font-family: var(--h);
  font-weight: 700;
  font-size: 15px;
}

/* ---------- Result ---------- */
.lst-ergebnis { display: grid; gap: 28px; animation: om-rise 420ms ease both; }
.lst-ergebnis > .lst-btn { justify-self: start; }
.lst-ergebnis__aktionen { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.lst-ergebnis__kopf .lst-text { margin-bottom: 0; }
.lst-code { margin: 6px 0 0; font-size: 18px; }

.lst-empf {
  background: var(--cream);
  border: 1.5px solid var(--ink);
  border-radius: 28px;
  padding: clamp(22px, 4vw, 38px);
  box-shadow: 0 10px 30px rgba(15, 61, 71, 0.10);
}
.lst-empf .lst-text { margin-bottom: 0; }
.lst-empf__marke {
  display: inline-block;
  font-family: var(--hand);
  font-size: 24px;
  color: var(--teal);
  margin-bottom: 4px;
}
.lst-empf--reden { background: var(--mint); }
.lst-empf__hilfe {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 2px solid rgba(15, 61, 71, 0.15);
  font-size: 16px;
  line-height: 1.6;
}

.lst-weitere { display: grid; gap: 12px; }
.lst-weitere .lst-h3 { margin-bottom: 2px; }
.lst-weitere__item {
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: 20px;
  padding: 16px 20px;
}
.lst-weitere__item p { margin: 0; font-size: 16px; line-height: 1.55; }

.lst-punkte__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr));
  gap: 12px;
}
.lst-punkt {
  margin: 0;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: start;
  background: rgba(255, 253, 247, 0.6);
  border-radius: 16px;
  padding: 12px;
}
.lst-tri--klein { max-width: 72px; cursor: default; }
.lst-tri--klein .lst-tri__flaeche { stroke-width: 8; }
.lst-tri--klein .lst-tri__linie { display: none; }
.lst-tri--klein .lst-tri__ecke { stroke-width: 6; }
.lst-tri--klein .lst-tri__kern { stroke-width: 7; transform-box: fill-box; transform-origin: center; transform: scale(2); }
.lst-tri--klein .lst-tri__hof { display: none; }
.lst-punkt__frage { display: block; font-size: 13px; opacity: 0.75; margin-bottom: 4px; }
.lst-punkt__deutung { display: block; font-size: 15px; font-weight: 600; line-height: 1.4; }

.lst-mini-regler {
  position: relative;
  display: block;
  height: 12px;
  margin-top: 26px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: linear-gradient(90deg, var(--mint), var(--sun) 55%, var(--coral));
}
.lst-mini-regler__knopf {
  position: absolute;
  top: 50%;
  left: calc(var(--wert, 0.5) * 100%);
  width: 16px; height: 16px;
  margin: -8px 0 0 -8px;
  border-radius: 50%;
  background: var(--coral);
  border: 2px solid var(--ink);
}

.lst-senden { display: grid; gap: 14px; justify-items: start; }
.lst-senden__status {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  background: rgba(255, 253, 247, 0.6);
  border-radius: 16px;
  padding: 14px 18px;
}
.lst-senden__status:empty { display: none; }
.lst-senden__status--fehler { background: var(--cream); border: 2px solid var(--coral); }

/* ---------- Parent step ---------- */
.lst-form { display: grid; gap: 16px; margin-top: 8px; }
.lst-form .lst-btn { justify-self: start; }
.lst-label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.lst-feld {
  font: inherit;
  font-size: 16px;
  padding: 13px 15px;
  border-radius: 14px;
  border: 2px solid var(--ink);
  background: var(--cream);
  color: var(--ink);
}
.lst-feld:focus { outline: none; box-shadow: 0 0 0 3px rgba(23, 163, 152, 0.35); }
.lst-honig { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.lst-fehler { margin: 0; min-height: 1.4em; font-size: 15px; font-weight: 600; color: #b8361b; }
.lst-fehler:empty { min-height: 0; }
.lst-klein { margin: 0; font-size: 13px; opacity: 0.8; }
.lst-klein a { color: var(--teal); font-weight: 700; }

@media (max-width: 480px) {
  .lst-nav .lst-btn { padding: 12px 20px; font-size: 16px; }
}

/* ---------- Anrede (Eltern) ---------- */
.lst-anrede { border: 0; padding: 0; margin: 0; display: grid; gap: 6px; }
.lst-anrede__titel { padding: 0; margin-bottom: 6px; font-size: 14px; font-weight: 600; }
.lst-anrede__reihe { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.lst-anrede__option { display: flex; align-items: center; gap: 8px; min-height: 44px; font-size: 17px; cursor: pointer; }
.lst-anrede__option input { width: 20px; height: 20px; margin: 0; accent-color: var(--teal); }

/* ---------- Lern-Steckbrief (Ergebnis) ----------
   Nach der Designanforderung „Themen-Farben und -Symbole“: Farbe nur im Kreis
   (nach Reihenfolge), Symbol und Text in Tinte, Kopf und Tipp-Kasten hellmint. */
.lst-steckbrief { --lst-mint-hell: #eef8f4; display: grid; gap: 14px; }
.lst-steckbrief .lst-h3 { margin: 0; }
.lst-steckbrief__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.lst-sb-karte:last-child:nth-child(odd) { grid-column: 1 / -1; }
.lst-sb-karte {
  background: #fff;
  border: 1px solid rgba(15, 61, 71, 0.10);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(15, 61, 71, 0.08);
}
.lst-sb-karte__kopf {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--lst-mint-hell);
  border-bottom: 1px solid rgba(15, 61, 71, 0.10);
  padding: 14px 22px;
}
.lst-sb-karte__kreis {
  flex: none;
  box-sizing: border-box;
  width: 40px; height: 40px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
}
.lst-sb-karte__kreis--lernweg { background: var(--thema-lernweg); }
.lst-sb-karte__kreis--antrieb { background: var(--thema-antrieb); }
.lst-sb-karte__kreis--hilfe { background: var(--thema-hilfe); }
.lst-sb-karte__kreis--knifflig { background: var(--thema-knifflig); }
.lst-sb-karte__kreis--ruhe { background: var(--thema-ruhe); }
.lst-sb-karte__titelbox { display: grid; }
.lst-sb-karte__titel {
  margin: 0;
  font-family: var(--h);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.lst-sb-karte__inhalt { padding: 18px 22px 20px; display: grid; gap: 12px; }
.lst-sb-karte__text { margin: 0; font-size: 16px; line-height: 1.6; color: var(--ink); }
.lst-sb-karte__tipp {
  margin: 0;
  background: var(--lst-mint-hell);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
}
@media (max-width: 600px) {
  .lst-steckbrief__grid { grid-template-columns: 1fr; }
}
