/* ==========================================================================
   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 {
  background: var(--sun);
  border-top: 2px solid var(--ink);
  padding: clamp(28px, 6vw, 80px) var(--edge) clamp(56px, 8vw, 110px);
  min-height: 78vh;
}
.lst-app {
  max-width: 680px;
  margin: 0 auto;
}

/* ---------- 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: 2px solid var(--ink);
  border-radius: 30px;
  padding: clamp(22px, 4vw, 40px);
  box-shadow: 6px 6px 0 var(--ink);
  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: 2px solid var(--ink);
  border-radius: 999px;
  padding: 14px 28px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 5px 5px 0 var(--ink);
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}
.lst-btn:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.lst-btn:active { transform: translate(2px, 2px); box-shadow: 3px 3px 0 var(--ink); }
.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: 5px 5px 0 var(--ink);
}
.lst-btn--leise { background: var(--cream); box-shadow: 3px 3px 0 var(--ink); }
.lst-btn--leise:hover { box-shadow: 5px 5px 0 var(--ink); }

/* ---------- 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__kopf .lst-text { margin-bottom: 0; }
.lst-code { margin: 6px 0 0; font-size: 18px; }

.lst-empf {
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: 30px;
  padding: clamp(22px, 4vw, 38px);
  box-shadow: 6px 6px 0 var(--ink);
}
.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; }
}
