/* lernschleife.css · Paket 16: Abschnitt "Was trägt" auf der Seite Zahlen (zu lernschleife.js)
   Nur Farben aus theme.js (hell und dunkel), kein Rot, keine Schatten. Alle Klassen mit Vorsatz ls-.
   Balken: eine Farbe (Schriftfarbe), der beste Balken voll, die übrigen gedämpft. Strich = Schnitt. */

.ls-block { padding: 28px 0 30px; border-bottom: 1px solid var(--line, rgba(128,128,128,.3)); display: grid; gap: 16px; }
.ls-block[hidden] { display: none; }
.ls-zahl, .ls-wt { font-variant-numeric: tabular-nums; }
.ls-zahl { font-weight: 600; color: var(--text-primary); }
.ls-titel { margin: 0; font-family: var(--font-body); font-size: 16px; font-weight: 600; color: var(--text-primary); }
.ls-sub-top { font-size: 13px; line-height: 1.4; color: var(--text-secondary); max-width: 62ch; text-wrap: pretty; margin-top: -8px; }

.ls-steuerung { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.ls-dims { padding-left: 0; }
.ls-pillen { display: inline-flex; flex-wrap: wrap; gap: 8px; }
.ls-pillen[hidden] { display: none; }
.ls-pille { appearance: none; min-height: 40px; padding: 0 16px; border: 1px solid var(--kontur, rgba(128,128,128,.4)); border-radius: 999px; background: transparent; color: var(--text-secondary); font: 600 14px/1 var(--font-body, system-ui, sans-serif); cursor: pointer; transition: border-color var(--dur-fast, .15s), color var(--dur-fast, .15s), transform var(--dur-fast, .15s); }
.ls-pille:hover { color: var(--text-primary); border-color: var(--text-primary); }
.ls-pille:active { transform: scale(0.97); }
.ls-pille:focus-visible { outline: 2px solid var(--text-primary); outline-offset: 2px; }
.ls-pille.ls-an { background: var(--text-primary); color: var(--bg-body, #fff); border-color: var(--text-primary); cursor: default; }

.ls-koerper { display: grid; gap: 14px; max-width: 760px; }
.ls-satz { display: grid; gap: 2px; }
.ls-satz-k { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; font-size: 18px; font-weight: 600; line-height: 1.3; color: var(--text-primary); text-wrap: balance; }
.ls-satz-name { color: var(--text-primary); overflow-wrap: anywhere; }
.ls-satz-s { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px; font-size: 13px; line-height: 1.4; color: var(--text-secondary); }
.ls-leer { font-size: 14px; line-height: 1.4; color: var(--text-secondary); }
.ls-laedt { min-height: 120px; }

.ls-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.ls-zeile { display: grid; gap: 6px; min-width: 0; }
.ls-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; min-width: 0; }
.ls-name { font-size: 15px; font-weight: 600; color: var(--text-primary); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ls-wert { flex: none; font-family: var(--font-display); font-weight: 900; font-size: 24px; line-height: 1; letter-spacing: -0.01em; text-transform: uppercase; color: var(--text-primary); font-variant-numeric: tabular-nums; }
.ls-wert-leer { font-family: var(--font-body); font-weight: 600; font-size: 16px; color: var(--text-muted, var(--text-tertiary)); }
.ls-spur { position: relative; height: 10px; border-radius: 999px; background: var(--line, rgba(128,128,128,.3)); overflow: visible; }
.ls-fuell { height: 100%; border-radius: 999px; background: var(--text-muted, var(--text-secondary)); }
.ls-beste .ls-fuell { background: var(--text-primary); }
.ls-ref { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; border-radius: 1px; background: var(--text-primary); box-shadow: 0 0 0 1px var(--bg-body, #fff); }
.ls-einheit { margin-left: 6px; font-family: var(--font-body); font-weight: 500; font-size: 13px; text-transform: none; letter-spacing: 0; color: var(--text-secondary); }
.ls-sub { display: flex; flex-wrap: wrap; gap: 4px; font-size: 13px; line-height: 1.4; color: var(--text-secondary); }
.ls-wenig .ls-name { color: var(--text-secondary); font-weight: 500; }
.ls-erklaer { margin: 0; display: flex; flex-wrap: wrap; gap: 4px; font-size: 13px; line-height: 1.4; color: var(--text-secondary); max-width: 62ch; text-wrap: pretty; }

@media (max-width: 640px) {
  .ls-block { padding: 22px 0 24px; }
  .ls-wert { font-size: 20px; }
  .ls-pille { padding: 0 14px; }
  .ls-satz-k { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { .ls-pille { transition: none; } }
