/* Lern-App Deutsch–Albanisch
   Farbe trägt Bedeutung: Blau = der, Rot = die, Grün = das. Sonst nur Stein und Tinte. */

:root {
  --stein: #E7E9E6;
  --karte: #FBFBF9;
  --tinte: #2A1C13;
  --leise: #6B6259;
  --linie: #D2D5D0;
  --fein: #EEF0ED;
  --der: #2459A6;
  --der-grund: #E1EAF7;
  --die: #B3322A;
  --die-grund: #F7E3E1;
  --das: #2B7A4B;
  --das-grund: #E0F0E6;
  --knopf-text: #FBFBF9;
  --gelernt: #2A1C13;
  --lernend: #A89B8E;
  --schatten: 0 1px 0 rgba(42, 28, 19, 0.06);
  --radius-gross: 20px;
  --radius: 12px;
  --tab-hoehe: 60px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --stein: #191512;
    --karte: #241E19;
    --tinte: #F1EBE3;
    --leise: #A99E93;
    --linie: #3B332C;
    --fein: #2E2721;
    --der: #8FB7EE;
    --der-grund: rgba(143, 183, 238, 0.15);
    --die: #F0948B;
    --die-grund: rgba(240, 148, 139, 0.15);
    --das: #84CDA0;
    --das-grund: rgba(132, 205, 160, 0.15);
    --knopf-text: #191512;
    --gelernt: #F1EBE3;
    --lernend: #6E6359;
    --schatten: none;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--stein);
  color: var(--tinte);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  -webkit-tap-highlight-color: transparent;
  min-height: 100dvh;
}

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }

:focus-visible {
  outline: 3px solid var(--der);
  outline-offset: 2px;
  border-radius: 8px;
}

h1, h2, p { margin: 0; }

/* ---------- Seitenrahmen ---------- */

.seite {
  max-width: 560px;
  margin: 0 auto;
  padding: calc(20px + env(safe-area-inset-top)) 16px calc(var(--tab-hoehe) + 32px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.app-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--leise);
}

.titel { font-size: 1.75rem; line-height: 1.2; font-weight: 700; }

.held {
  font-size: 2rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.held-satz { font-weight: 500; }
.held-satz strong { font-weight: 800; }
.held-satz.klein { font-size: 1.35rem; line-height: 1.3; }

.einleitung { font-size: 1.1rem; color: var(--tinte); max-width: 34em; }
.nebenzeile { font-size: 0.95rem; color: var(--leise); }
.tipp { font-size: 0.95rem; color: var(--leise); border-left: 3px solid var(--linie); padding-left: 12px; }
.kleintitel { font-size: 0.85rem; font-weight: 600; color: var(--leise); }

/* ---------- Knöpfe ---------- */

.knopf {
  min-height: 56px;
  padding: 0 22px;
  border-radius: 999px;
  border: 0;
  font-weight: 700;
  font-size: 1.05rem;
  width: 100%;
}
.knopf-haupt { background: var(--tinte); color: var(--knopf-text); }
.knopf-zweit { background: transparent; color: var(--tinte); box-shadow: inset 0 0 0 2px var(--tinte); }
.knopf-gefahr { background: transparent; color: var(--die); box-shadow: inset 0 0 0 2px var(--die); }
.knopf:active { transform: scale(0.98); }

.knopfreihe { display: flex; gap: 12px; }
.knopfreihe .knopf { flex: 1; }

/* ---------- Unterer Navigationsbalken ---------- */

.tabs {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  display: flex;
  justify-content: center;
  gap: 4px;
  padding: 6px 12px calc(6px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--stein) 92%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--linie);
  z-index: 10;
}
.tab {
  flex: 1;
  max-width: 180px;
  min-height: 48px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--leise);
  text-decoration: none;
  font-weight: 600;
}
.tab.aktiv { color: var(--tinte); background: var(--karte); box-shadow: var(--schatten), inset 0 0 0 1px var(--linie); }
.tab { font-size: 0.95rem; padding: 0 4px; }
@media (max-width: 360px) { .tab { font-size: 0.85rem; } }

/* ---------- Fortschritt auf der Startseite ---------- */

.fortschritt { display: flex; flex-direction: column; gap: 10px; padding-top: 8px; }
.serie { font-weight: 700; font-size: 1.05rem; }
.balken {
  display: flex;
  height: 10px;
  border-radius: 999px;
  background: var(--fein);
  box-shadow: inset 0 0 0 1px var(--linie);
  overflow: hidden;
}
.balken-gelernt { background: var(--gelernt); }
.balken-lernend { background: var(--lernend); }

/* ---------- Lernsitzung ---------- */

body[data-ansicht="mesim"] .tabs { display: none; }

.sitzung {
  max-width: 560px;
  margin: 0 auto;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: env(safe-area-inset-top) 0 0;
}

.sitzung-kopf {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  position: sticky;
  top: 0;
  background: var(--stein);
  z-index: 5;
}
.zu {
  width: 44px; height: 44px;
  border: 0; border-radius: 50%;
  background: transparent;
  display: grid; place-items: center;
  flex: none;
}
.zu .ikone { width: 22px; height: 22px; }
/* Zurück-Knopf im Sitzungskopf (0.29.3, ab 0.29.4 mit Wort) */
.zurueck-knopf {
  flex: none;
  display: inline-flex; align-items: center; gap: 2px;
  min-height: 40px; padding: 0 14px 0 6px;
  border: 0; border-radius: 999px;
  background: var(--karte); color: var(--tinte);
  box-shadow: inset 0 0 0 1.5px var(--tinte);
  font-weight: 700; font-size: 0.95rem;
}
.zurueck-knopf .ikone { width: 22px; height: 22px; }
.zurueck-knopf.unsichtbar { visibility: hidden; }
.leiste {
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: var(--fein);
  box-shadow: inset 0 0 0 1px var(--linie);
  overflow: hidden;
}
.leiste span { display: block; height: 100%; background: var(--tinte); border-radius: 999px; transition: width 0.3s ease; }
.leiste.leer { visibility: hidden; }
.zaehler { font-size: 0.9rem; color: var(--leise); font-variant-numeric: tabular-nums; min-width: 4.5em; text-align: right; }

.karte {
  margin: 4px 16px 0;
  padding: 24px 20px 28px;
  background: var(--karte);
  border-radius: var(--radius-gross);
  box-shadow: var(--schatten), inset 0 0 0 1px var(--linie);
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1 0 auto;
}
.karte hr { border: 0; border-top: 1px dashed var(--linie); margin: 6px 0; width: 100%; }
.karte-ende { justify-content: center; gap: 16px; }

.kartentyp { font-size: 0.95rem; font-weight: 600; color: var(--leise); }

.aktionen {
  position: sticky;
  bottom: 0;
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
  background: linear-gradient(to bottom, transparent, var(--stein) 30%);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ---------- Das deutsche Wort ---------- */

.wort { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.wort-de { font-weight: 700; font-size: 1.5rem; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.wort-gross { flex-direction: column; align-items: flex-start; gap: 8px; }
.wort-gross .wort-de { font-size: clamp(2.4rem, 11vw, 3.4rem); line-height: 1.05; letter-spacing: -0.02em; }

.artikel {
  display: inline-block;
  padding: 2px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.6;
}
.wort-gross .artikel { font-size: 1.15rem; }
.artikel-der { color: var(--der); background: var(--der-grund); }
.artikel-die { color: var(--die); background: var(--die-grund); }
.artikel-das { color: var(--das); background: var(--das-grund); }

.laut {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 14px 0 10px;
  border-radius: 999px;
  border: 0;
  background: var(--fein);
  color: var(--tinte);
  font-weight: 600;
  font-size: 0.95rem;
}
.satz-de .laut, .loesung .laut { min-height: 32px; padding: 0 8px; vertical-align: middle; }
.ikone { width: 20px; height: 20px; fill: currentColor; flex: none; }
.knopfzeile { display: flex; flex-wrap: wrap; gap: 8px; }
.google { text-decoration: none; }
.rueckmeldung .google { margin-top: 4px; }

/* ---------- Bedeutung, Varianten, Beispiel ---------- */

.bedeutung { display: flex; flex-direction: column; gap: 6px; }
.sq-gross { font-size: 1.6rem; font-weight: 700; line-height: 1.25; }
.frage { font-size: clamp(1.8rem, 8vw, 2.4rem); }
.variante { font-size: 1rem; }
.variante-ort { font-size: 0.85rem; font-weight: 700; color: var(--leise); margin-right: 4px; }

.beispiel { display: flex; flex-direction: column; gap: 4px; padding-top: 4px; }
.satz-de { font-size: 1.1rem; font-weight: 600; }
.satz-sq { color: var(--leise); }

.verbformen { display: flex; flex-direction: column; gap: 6px; }
.formen { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; }
.form { font-size: 1rem; }
.pron { color: var(--leise); }

/* ---------- Bilder ---------- */

.bild-emoji {
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  line-height: 1;
  display: inline-block;
}
img.bild { display: block; object-fit: cover; background: var(--fein); }

.bildrahmen {
  align-self: center;
  width: min(100%, 260px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: var(--radius-gross);
  background: var(--stein);
  box-shadow: inset 0 0 0 1px var(--linie);
  overflow: hidden;
}
.bild-frage.bild-emoji { font-size: clamp(6rem, 34vw, 9rem); }
img.bild-frage { width: 100%; height: 100%; }

.bild-karte.bild-emoji { font-size: 4.5rem; }
img.bild-karte { width: 140px; height: 140px; border-radius: var(--radius); }

.bild-zeile.bild-emoji { font-size: 1.35rem; }
img.bild-zeile { width: 30px; height: 30px; border-radius: 6px; }

/* Gezeichnete Bilder (bilder/woerter/*.svg): so gross wie ein Emoji, ohne Hintergrund */
img.bild.bild-gezeichnet { background: transparent; object-fit: contain; border-radius: 0; }
img.bild-frage.bild-gezeichnet { width: clamp(104px, 38vw, 150px); height: clamp(104px, 38vw, 150px); }
img.bild-karte.bild-gezeichnet { width: 84px; height: 84px; }
img.bild-zeile.bild-gezeichnet { width: 26px; height: 26px; }

.fotovorschau { display: flex; }
img.bild-vorschau { width: 140px; height: 140px; border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--linie); }

.sq-mittel { font-size: 1.15rem; font-weight: 600; }

.bilduebung { display: flex; flex-direction: column; gap: 6px; }

/* ---------- Auswahl ---------- */

.optionen { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.option {
  min-height: 56px;
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 0;
  background: var(--karte);
  box-shadow: inset 0 0 0 2px var(--linie);
  text-align: left;
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}
.option:not(:disabled):active { box-shadow: inset 0 0 0 2px var(--tinte); }
.option-richtig { background: var(--tinte); color: var(--knopf-text); box-shadow: none; }
.option-falsch { text-decoration: line-through; color: var(--leise); box-shadow: inset 0 0 0 2px var(--leise); }
.option-aus { opacity: 0.45; }
.zeichen { font-weight: 800; width: 1.2em; text-align: center; }
.option-de .artikel { font-size: 0.9rem; padding: 0 10px; }
.option-richtig .artikel { background: var(--karte); }

/* ---------- Eintippen ---------- */

.schreibfeld { margin-top: 4px; }
.eingabe {
  width: 100%;
  min-height: 60px;
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 0;
  background: var(--stein);
  box-shadow: inset 0 0 0 2px var(--linie);
  font-size: 1.35rem;
  font-weight: 600;
}
.eingabe:focus { outline: none; box-shadow: inset 0 0 0 2px var(--tinte); }
.eingabe:disabled { opacity: 1; -webkit-text-fill-color: currentColor; }
.schreibfeld-richtig .eingabe, .schreibfeld-fast .eingabe { box-shadow: inset 0 0 0 2px var(--tinte); }
.schreibfeld-falsch .eingabe { text-decoration: line-through; color: var(--leise); }

.tasten { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.taste {
  min-height: 46px;
  border-radius: 10px;
  border: 0;
  background: var(--fein);
  box-shadow: inset 0 0 0 1px var(--linie);
  font-size: 1.2rem;
  font-weight: 600;
}

/* ---------- Rückmeldung ---------- */

.rueckmeldung {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px dashed var(--linie);
  animation: einblenden 0.25s ease-out;
}
.rueckmeldung-titel { font-size: 1.3rem; font-weight: 800; }
.rueckmeldung-falsch .rueckmeldung-titel { color: var(--tinte); }
.rueckmeldung-hinweis { font-weight: 600; }
.loesung { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

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

/* ---------- Wortliste ---------- */

.suche {
  width: 100%;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 999px;
  border: 0;
  background: var(--karte);
  box-shadow: inset 0 0 0 1px var(--linie);
  font-size: 1rem;
}
.suche:focus { outline: none; box-shadow: inset 0 0 0 2px var(--tinte); }
.liste { display: flex; flex-direction: column; gap: 6px; }
.gruppe { font-size: 1.1rem; font-weight: 700; margin-top: 18px; }
.gruppe-de { font-size: 0.85rem; font-weight: 500; color: var(--leise); }
.woerter {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  background: var(--karte);
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px var(--linie);
}
.woerter li + li { border-top: 1px solid var(--fein); }
.zeile {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "de status" "sq status";
  gap: 0 12px;
  align-items: center;
  padding: 10px 14px;
  border: 0;
  background: transparent;
  text-align: left;
}
.zeile-de { grid-area: de; display: flex; align-items: center; gap: 8px; font-weight: 700; }
.zeile-de .artikel { font-size: 0.8rem; padding: 0 8px; }
.zeile-sq { grid-area: sq; color: var(--leise); font-size: 0.95rem; }
.zeile-status { grid-area: status; font-size: 0.8rem; color: var(--leise); white-space: nowrap; }
.status-gelernt { color: var(--tinte); font-weight: 700; }

.knopf-link {
  display: grid;
  place-items: center;
  text-decoration: none;
}
.woerter li { display: flex; align-items: center; }
.woerter li .zeile { flex: 1; min-width: 0; }
/* Google-Suche in der Wortliste: nur das Lupen-Symbol */
.google-zeile {
  flex: none;
  width: 40px; height: 40px;
  margin-right: 8px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--leise);
  text-decoration: none;
}
.google-zeile:active { background: var(--fein); }
.woerter li.eigen .google-zeile { margin-right: 2px; }
.bearbeiten {
  flex: none;
  margin-right: 10px;
  min-height: 40px;
  padding: 0 14px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--fein);
  box-shadow: inset 0 0 0 1px var(--linie);
  color: var(--tinte);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

/* ---------- Eigenes Wort: Formular ---------- */

.formular { display: flex; flex-direction: column; gap: 18px; }
.feldgruppe { display: flex; flex-direction: column; gap: 6px; }
.feldgruppe label, .feldtitel { font-weight: 600; font-size: 0.95rem; }
.feld {
  width: 100%;
  min-height: 52px;
  padding: 10px 14px;
  border-radius: var(--radius);
  border: 0;
  background: var(--karte);
  box-shadow: inset 0 0 0 1px var(--linie);
  font-size: 1.1rem;
}
.feld:focus { outline: none; box-shadow: inset 0 0 0 2px var(--tinte); }
.feld[aria-invalid="true"] { box-shadow: inset 0 0 0 2px var(--die); }
.feldfehler { color: var(--die); font-weight: 600; font-size: 0.95rem; }

.segmente { display: flex; gap: 8px; flex-wrap: wrap; }
.segment {
  flex: 1;
  min-width: 80px;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 999px;
  border: 0;
  background: var(--karte);
  box-shadow: inset 0 0 0 1px var(--linie);
  font-weight: 700;
}
.segment.aktiv { background: var(--tinte); color: var(--knopf-text); box-shadow: none; }
.segment.artikel-der, .segment.artikel-die, .segment.artikel-das { background: var(--karte); }
.segment.artikel-der.aktiv { color: var(--der); background: var(--der-grund); box-shadow: inset 0 0 0 2px var(--der); }
.segment.artikel-die.aktiv { color: var(--die); background: var(--die-grund); box-shadow: inset 0 0 0 2px var(--die); }
.segment.artikel-das.aktiv { color: var(--das); background: var(--das-grund); box-shadow: inset 0 0 0 2px var(--das); }

/* ---------- Übungen (Phase 2) ---------- */

.uebungsliste { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.uebung-eintrag {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 16px 18px;
  border: 0;
  border-radius: var(--radius-gross);
  background: var(--karte);
  box-shadow: inset 0 0 0 1px var(--linie);
  text-align: left;
}
.uebung-eintrag:active { box-shadow: inset 0 0 0 2px var(--tinte); }
.uebung-name { font-size: 1.15rem; font-weight: 700; }
.uebung-info { color: var(--leise); font-size: 0.95rem; }
/* Verben-Trainer (0.29): Eingang auf «Ushtrime», ganze Breite */
.trajner-eintrag { height: auto; color: inherit; text-decoration: none; box-shadow: inset 0 0 0 2px var(--tinte); }
.verbliste { margin-top: 0; }
.verb-segmente .segment { min-width: 0; padding: 0 8px; white-space: nowrap; }
.uebung-beispiel { margin-top: 4px; font-size: 0.9rem; font-weight: 600; padding: 2px 10px; border-radius: 999px; background: var(--fein); }

.wort-solo { font-size: clamp(2.2rem, 10vw, 3rem); line-height: 1.1; }
.artikelwahl .segment { min-height: 64px; font-size: 1.3rem; }
.artikelwahl .option-richtig { background: var(--tinte); color: var(--knopf-text); box-shadow: none; }
.artikelwahl .option-falsch { text-decoration: line-through; opacity: 0.7; }
.artikelwahl .option-aus { opacity: 0.4; }
.artikelwahl .zeichen { width: auto; margin-right: 6px; }

.konjugation { font-size: clamp(1.7rem, 8vw, 2.2rem); line-height: 1.2; }
.konjugation .infinitiv { color: var(--leise); font-weight: 500; }

.hoeren-knopf {
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 22px 28px;
  border: 0;
  border-radius: var(--radius-gross);
  background: var(--fein);
  box-shadow: inset 0 0 0 1px var(--linie);
  font-weight: 700;
}
.hoeren-knopf .ikone { width: 48px; height: 48px; }

.lueckensatz { font-size: 1.4rem; font-weight: 600; line-height: 1.35; }
.satz-loesung { font-size: 1.15rem; font-weight: 700; }

.satzfeld {
  min-height: 64px;
  padding: 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  border-radius: var(--radius);
  background: var(--stein);
  box-shadow: inset 0 0 0 2px var(--linie);
}
.satzfeld-richtig { box-shadow: inset 0 0 0 2px var(--tinte); }
.satzfeld-falsch { box-shadow: inset 0 0 0 2px var(--leise); }
.satzfeld-falsch .chip { text-decoration: line-through; color: var(--leise); }
.satzfeld-leer { color: var(--leise); padding-left: 6px; }
.satzzeichen { font-size: 1.2rem; font-weight: 700; margin-left: -4px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 46px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: var(--karte);
  box-shadow: inset 0 0 0 1px var(--linie), var(--schatten);
  font-size: 1.1rem;
  font-weight: 600;
}
.chip-gesetzt { background: var(--fein); }
.knopf:disabled { opacity: 0.45; }

/* ---------- Einstellungen ---------- */

.block {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  background: var(--karte);
  border-radius: var(--radius-gross);
  box-shadow: inset 0 0 0 1px var(--linie);
}
.block h2 { font-size: 1.1rem; font-weight: 700; }

.stepper { display: flex; align-items: center; gap: 18px; }
.rund {
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 0;
  background: var(--fein);
  box-shadow: inset 0 0 0 1px var(--linie);
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1;
}
.zahl { font-size: 2rem; font-weight: 800; min-width: 2ch; text-align: center; font-variant-numeric: tabular-nums; }

.schalter {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 48px;
  cursor: pointer;
}
.schalter input {
  appearance: none;
  -webkit-appearance: none;
  width: 52px; height: 32px;
  border-radius: 999px;
  background: var(--linie);
  position: relative;
  flex: none;
  margin: 0;
  transition: background 0.2s;
}
.schalter input::after {
  content: "";
  position: absolute;
  top: 3px; left: 3px;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--karte);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s;
}
.schalter input:checked { background: var(--tinte); }
.schalter input:checked::after { transform: translateX(20px); }

/* ---------- Meldung ---------- */

.meldung {
  position: fixed;
  left: 16px; right: 16px;
  bottom: calc(var(--tab-hoehe) + 24px + env(safe-area-inset-bottom));
  max-width: 520px;
  margin: 0 auto;
  padding: 14px 18px;
  border-radius: var(--radius);
  background: var(--tinte);
  color: var(--knopf-text);
  font-weight: 600;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 20;
}
.meldung.sichtbar { opacity: 1; transform: none; }

@media (min-width: 600px) {
  .karte { margin: 8px 16px 0; padding: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .knopf:active { transform: none; }
}

/* Hinweis ohne JavaScript (kein Inline-Stil wegen der Sicherheitsregel der Webseite) */
.ohne-js { padding: 16px; }

/* ---------- Stufe und Einstufungstest ---------- */

.untertitel { font-size: 1.35rem; line-height: 1.3; font-weight: 700; }
.niveauliste { grid-template-columns: 1fr; }
.niveau-test { box-shadow: inset 0 0 0 2px var(--tinte); }
.textlink { color: var(--tinte); font-weight: 600; }

/* ---------- Themen (0.26) ---------- */

.emoji, .tema-emoji { font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }

/* Startseite: aus welchem Thema die neuen Wörter kommen */
.tema-zeile {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-gross);
  background: var(--karte);
  box-shadow: inset 0 0 0 1px var(--linie);
  color: var(--tinte);
  text-decoration: none;
}
.tema-zeile:active { box-shadow: inset 0 0 0 2px var(--tinte); }
.tema-zeile .tema-emoji { font-size: 30px; line-height: 1; }
.tema-text { display: flex; flex-direction: column; min-width: 0; }
.tema-titel { font-size: 0.8rem; font-weight: 600; color: var(--leise); }
.tema-name { font-weight: 700; overflow-wrap: anywhere; }
.tema-pfad, .tema-de, .tema-zahlen { font-size: 0.85rem; color: var(--leise); overflow-wrap: anywhere; }
.tema-ndrysho { font-size: 0.9rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--fein); }

.tema-fertig {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-gross);
  background: var(--das-grund);
}
.tema-fertig p { font-weight: 600; }
.tema-fertig .knopfreihe { flex-direction: column; }
.tema-fertig .knopf { min-height: 48px; font-size: 1rem; }

/* Themenliste */
.zurueck-link { align-self: flex-start; color: var(--tinte); font-weight: 600; text-decoration: none; padding: 6px 0; }
button.zurueck-link { border: 0; background: none; }
.tema-kopf .tema-emoji { font-size: 0.95em; }
.temenliste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.tema-eintrag {
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 0;
  border-radius: var(--radius-gross);
  background: var(--karte);
  box-shadow: inset 0 0 0 1px var(--linie);
  text-align: left;
}
.tema-eintrag:active { box-shadow: inset 0 0 0 2px var(--tinte); }
.tema-eintrag.gewaehlt { box-shadow: inset 0 0 0 2px var(--tinte); }
.tema-eintrag .tema-emoji { font-size: 32px; line-height: 1; }
.tema-eintrag.ohne-emoji { grid-template-columns: minmax(0, 1fr) auto; }
.tema-balken { display: block; height: 4px; margin-top: 6px; border-radius: 999px; background: var(--fein); overflow: hidden; }
.tema-balken > span { display: block; height: 100%; background: var(--gelernt); }
.tema-marke { font-size: 0.8rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--tinte); color: var(--knopf-text); white-space: nowrap; }
.tema-gruppe { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: var(--radius-gross); box-shadow: inset 0 0 0 1px var(--linie); }
.tema-gruppe-titel { font-weight: 700; padding: 0 4px; }

/* Wortliste: Filter nach Thema, Überschriften nach Bereich */
select.feld {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 44px;
  font-size: 1rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--leise) 50%), linear-gradient(135deg, var(--leise) 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
.filter { border-radius: 999px; padding-left: 18px; }
.gruppe-bereich { font-size: 1.25rem; font-weight: 700; margin: 24px 0 0; }
.liste > .gruppe-bereich:first-child { margin-top: 4px; }
h3.gruppe { margin: 12px 0 0; }
.tema-ganz { display: flex; flex-direction: column; gap: 6px; align-items: center; }

/* ---------- Satzübungen (0.27): Lidh fjalitë, Ktheje fjalinë ---------- */
.satzpaar { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: var(--radius); background: var(--fein); }
.satzpaar p { font-size: 1.2rem; font-weight: 600; line-height: 1.35; }
.lidhez { font-weight: 700; font-size: 1.05rem; }
.satz-fest { font-size: 1.1rem; font-weight: 600; padding: 0 2px; }
.optionen-saetze .option { font-size: 1.02rem; line-height: 1.35; }

/* ---------- 0.28: Fehler melden, Fehlerwörter, Diktat ---------- */
.melden-link { text-decoration: none; color: var(--leise); background: transparent; box-shadow: inset 0 0 0 1px var(--linie); }
.melden-link.gemeldet { color: var(--tinte); }
.melden-zeile {
  flex: none;
  width: 40px; height: 40px;
  margin-right: 8px;
  margin-left: -6px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--linie);
  text-decoration: none;
}
.melden-zeile .ikone { width: 18px; height: 18px; }
.melden-zeile.gemeldet { color: var(--die); }
.melden-zeile:active { background: var(--fein); }
.seite-raporto { padding-bottom: 32px; }
.melde-vorschau { gap: 10px; }
.melde-gruende .segment { flex: 1 1 40%; }
.feld-text { min-height: 96px; resize: vertical; line-height: 1.4; }
.meldeliste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.meldeliste li { display: flex; align-items: center; gap: 4px; border-top: 1px solid var(--fein); }
.meldeliste li:first-child { border-top: 0; }
.melde-eintrag { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 10px 0; color: var(--tinte); text-decoration: none; }
.melde-was { font-weight: 700; }
.melde-grund { font-size: 0.92rem; color: var(--leise); overflow-wrap: anywhere; }
.melde-weg { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%; background: none; color: var(--leise); }
.melde-weg:active { background: var(--fein); }
.gabime-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  border-radius: var(--radius-gross);
  background: var(--karte);
  box-shadow: inset 0 0 0 2px var(--die);
}
.gabime-block h2 { font-size: 1.1rem; font-weight: 700; }
.gabime-block .knopf { margin-top: 4px; }
.diktat-knoepfe { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.diktat-knoepfe .laut { align-self: center; }
