/* JuraSchemata -- Mobile First.
   Aufbau: 1 Variablen, 2 Grundgeruest, 3 Navigation, 4 Bausteine,
   5 Trainer A (Lueckenschema), 6 Trainer B (Reihenfolge),
   7 Bewertungsleiste, 8 Listen/Statistik, 9 Desktop ab 760px.
   Neue Trainer bekommen einen eigenen Abschnitt; Gemeinsames bleibt in 4. */

/* --- 1 Variablen ----------------------------------------------------- */
:root {
  --bg: #f4f6f9;
  --flaeche: #ffffff;
  --flaeche-2: #eef1f6;
  --rand: #d7dde7;
  --text: #16202e;
  --text-schwach: #5d6b7f;
  --akzent: #1c4e86;
  --akzent-hell: #e8f0fa;
  --gut: #1f7a4d;
  --gut-hell: #e4f4eb;
  --mittel: #9a6a12;
  --mittel-hell: #fbf1dc;
  --schlecht: #a33232;
  --schlecht-hell: #fbe9e9;
  --radius: 12px;
  --radius-s: 8px;
  --schatten: 0 1px 3px rgba(18, 32, 51, .09), 0 6px 20px rgba(18, 32, 51, .06);
  --kopf-h: 52px;
  --navm-h: calc(56px + env(safe-area-inset-bottom));
  --fs: 16px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #11161f;
    --flaeche: #1a212d;
    --flaeche-2: #222b3a;
    --rand: #313d4f;
    --text: #e6ebf3;
    --text-schwach: #97a5ba;
    --akzent: #6ba3e8;
    --akzent-hell: #1c2b3f;
    --gut: #5cc48c;
    --gut-hell: #17301f;
    --mittel: #dcae5a;
    --mittel-hell: #332914;
    --schlecht: #e78282;
    --schlecht-hell: #35191b;
    --schatten: 0 1px 3px rgba(0, 0, 0, .4), 0 6px 20px rgba(0, 0, 0, .3);
  }
}

/* --- 2 Grundgeruest --------------------------------------------------- */
* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: var(--fs)/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  padding-bottom: var(--navm-h);
  overscroll-behavior-y: contain;
}

.inhalt {
  max-width: 1080px;
  margin: 0 auto;
  padding: 14px 14px 28px;
}

h1 { font-size: 1.35rem; margin: .2em 0 .5em; line-height: 1.25; }
h2 { font-size: 1.1rem; margin: 1.4em 0 .5em; }
h3 { font-size: .98rem; margin: 1em 0 .4em; }
p { margin: .5em 0; }
a { color: var(--akzent); }

/* --- 3 Navigation ----------------------------------------------------- */
.kopf {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 10px;
  height: var(--kopf-h);
  padding: 0 12px;
  padding-top: env(safe-area-inset-top);
  background: var(--flaeche);
  border-bottom: 1px solid var(--rand);
}

.marke {
  display: flex; align-items: center; gap: 8px;
  font-weight: 650; text-decoration: none; color: var(--text);
  margin-right: auto;
}
.marke-kurz {
  display: grid; place-items: center;
  width: 28px; height: 28px; border-radius: 7px;
  background: var(--akzent); color: #fff; font-weight: 700;
}
.nav-desktop { display: none; }

.abmelden button {
  background: none; border: 0; color: var(--text-schwach);
  font-size: 1.15rem; cursor: pointer; padding: 6px 8px;
  border-radius: var(--radius-s);
}
.abmelden button:hover { background: var(--flaeche-2); color: var(--text); }

.nav-mobil {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: grid; grid-template-columns: repeat(4, 1fr);
  height: var(--navm-h);
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--flaeche);
  border-top: 1px solid var(--rand);
}
.nav-mobil a {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 2px;
  color: var(--text-schwach); text-decoration: none;
  font-size: .68rem; letter-spacing: .01em;
}
.nav-mobil .sym { font-size: 1.15rem; line-height: 1; }
.nav-mobil a.aktiv { color: var(--akzent); font-weight: 600; }

/* --- 4 Bausteine ------------------------------------------------------ */
.karte {
  background: var(--flaeche);
  border: 1px solid var(--rand);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: var(--schatten);
}

.knopf {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; min-height: 44px; padding: 10px 16px;
  border: 1px solid var(--rand); border-radius: var(--radius-s);
  background: var(--flaeche); color: var(--text);
  font: inherit; font-weight: 550; cursor: pointer;
  text-decoration: none;
  touch-action: manipulation;
}
.knopf:active { transform: translateY(1px); }
.knopf.primaer { background: var(--akzent); border-color: var(--akzent); color: #fff; }
.knopf.breit { width: 100%; }
.knopf[disabled] { opacity: .5; cursor: not-allowed; }

.marken { display: flex; flex-wrap: wrap; gap: 6px; }
.marker {
  display: inline-block; padding: 2px 8px; border-radius: 999px;
  background: var(--flaeche-2); color: var(--text-schwach);
  font-size: .74rem; font-weight: 550; white-space: nowrap;
}
.marker.akzent { background: var(--akzent-hell); color: var(--akzent); }
.marker.gut { background: var(--gut-hell); color: var(--gut); }
.marker.mittel { background: var(--mittel-hell); color: var(--mittel); }
.marker.schlecht { background: var(--schlecht-hell); color: var(--schlecht); }

.schwach { color: var(--text-schwach); }
.klein { font-size: .84rem; }
.mono { font-variant-numeric: tabular-nums; }
.leer { text-align: center; padding: 40px 12px; color: var(--text-schwach); }

.kennzahlen {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
}
.kennzahl {
  background: var(--flaeche); border: 1px solid var(--rand);
  border-radius: var(--radius); padding: 12px;
}
.kennzahl .wert {
  font-size: 1.6rem; font-weight: 680; line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.kennzahl .bez { font-size: .78rem; color: var(--text-schwach); }
.kennzahl.faellig .wert { color: var(--akzent); }
.kennzahl.neu .wert { color: var(--gut); }

.fortschritt {
  height: 4px; background: var(--flaeche-2); border-radius: 999px;
  overflow: hidden; margin: 10px 0;
}
.fortschritt > i {
  display: block; height: 100%; background: var(--akzent);
  transition: width .25s ease;
}

.aufgabenstellung {
  background: var(--akzent-hell);
  border-left: 3px solid var(--akzent);
  border-radius: var(--radius-s);
  padding: 11px 13px; margin-bottom: 14px;
  font-size: .95rem;
}

.trainer-kopf {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 10px; flex-wrap: wrap; margin-bottom: 4px;
}
.trainer-kopf h1 { margin: 0; }

/* --- 5 Trainer A: Lueckenschema --------------------------------------- */
.schema-punkte { display: flex; flex-direction: column; gap: 10px; }

.punkt {
  border: 1px solid var(--rand); border-radius: var(--radius);
  background: var(--flaeche); overflow: hidden;
}
.punkt-kopf {
  display: flex; align-items: baseline; gap: 9px;
  padding: 9px 12px 0;
}
.punkt-nr {
  flex: 0 0 auto; min-width: 2.6em;
  font-weight: 700; color: var(--akzent);
  font-variant-numeric: tabular-nums;
}
.punkt-hinweis { font-size: .86rem; color: var(--text-schwach); }
/* Im strengen Modus erst beim Aufdecken eingeblendet. */
.punkt-hinweis.nachgereicht {
  font-style: italic; color: var(--akzent);
}

.punkt-eingabe { padding: 8px 12px 12px; }
.punkt-eingabe textarea {
  width: 100%; min-height: 62px; resize: vertical;
  padding: 9px 10px;
  border: 1px solid var(--rand); border-radius: var(--radius-s);
  background: var(--bg); color: var(--text);
  font: inherit; font-size: .93rem; line-height: 1.45;
}
.punkt-eingabe textarea:focus {
  outline: 2px solid var(--akzent); outline-offset: -1px;
  background: var(--flaeche);
}

.punkt-loesung {
  border-top: 1px dashed var(--rand);
  background: var(--gut-hell);
  padding: 10px 12px;
}
.punkt-loesung .lbl {
  font-size: .7rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--gut); display: block;
  margin-bottom: 3px;
}
.punkt-loesung .ueberschrift {
  font-weight: 650; font-size: .92rem; margin-bottom: 3px;
}
.punkt-loesung .text { font-size: .93rem; }

.punkt-erlaeuterung {
  border-top: 1px solid var(--rand);
  background: var(--flaeche-2);
  padding: 10px 12px;
  font-size: .87rem; color: var(--text-schwach);
}
.punkt-erlaeuterung .lbl {
  font-size: .7rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; display: block; margin-bottom: 3px;
}

.punkt.b-gut { border-left: 3px solid var(--gut); }
.punkt.b-teilweise { border-left: 3px solid var(--mittel); }
.punkt.b-schwach, .punkt.b-leer { border-left: 3px solid var(--schlecht); }

.trefferzeile { margin-top: 7px; font-size: .78rem; }

/* --- 6 Trainer B: Reihenfolge ----------------------------------------- */
.sortierliste {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 8px;
}
.sortierkarte {
  display: flex; align-items: stretch; gap: 0;
  background: var(--flaeche);
  border: 1px solid var(--rand); border-radius: var(--radius);
  box-shadow: var(--schatten);
  user-select: none; touch-action: manipulation;
}
.sortierkarte .griff {
  flex: 0 0 auto; display: grid; place-items: center;
  width: 38px; cursor: grab;
  color: var(--text-schwach); font-size: 1.1rem;
  border-right: 1px solid var(--rand);
  touch-action: none;
}
.sortierkarte .griff:active { cursor: grabbing; }
.sortierkarte .pos {
  flex: 0 0 auto; display: grid; place-items: center;
  width: 30px; font-weight: 700; color: var(--akzent);
  font-variant-numeric: tabular-nums; font-size: .9rem;
}
.sortierkarte .txt {
  flex: 1 1 auto; padding: 11px 10px 11px 2px;
  font-size: .9rem; line-height: 1.45; min-width: 0;
}
.sortierkarte .txt .ueberschrift {
  display: block; font-weight: 650; font-size: .86rem;
  color: var(--akzent); margin-bottom: 2px;
}
.sortierkarte .txt .volltext { display: block; }
.sortierliste.ausgewertet .pos {
  width: auto; min-width: 30px; padding: 0 6px;
  font-size: .82rem;
}
.sortierkarte .pfeile {
  flex: 0 0 auto; display: flex; flex-direction: column;
  border-left: 1px solid var(--rand);
}
.sortierkarte .pfeile button {
  flex: 1; width: 40px; border: 0; background: none;
  color: var(--text-schwach); font-size: .8rem; cursor: pointer;
}
.sortierkarte .pfeile button:first-child { border-bottom: 1px solid var(--rand); }
.sortierkarte .pfeile button:active { background: var(--flaeche-2); }
.sortierkarte .pfeile button[disabled] { opacity: .25; cursor: default; }

.sortierkarte.zieht { opacity: .45; }
.sortierkarte.ziel { outline: 2px dashed var(--akzent); outline-offset: 2px; }
.sortierkarte.richtig { border-left: 3px solid var(--gut); background: var(--gut-hell); }
.sortierkarte.falsch { border-left: 3px solid var(--schlecht); background: var(--schlecht-hell); }
.sortierkarte .soll {
  display: block; margin-top: 4px;
  font-size: .76rem; color: var(--schlecht); font-weight: 600;
}

.loesungsliste { list-style: none; margin: 10px 0 0; padding: 0; }
.loesungsliste li {
  display: flex; gap: 9px; padding: 9px 0; align-items: flex-start;
  border-top: 1px solid var(--rand); font-size: .9rem;
}
.loesungsliste .nr { font-weight: 700; color: var(--akzent); min-width: 2.6em; }
.loesungsliste .inhalt { flex: 1; min-width: 0; }
.loesungsliste .ueberschrift {
  display: block; font-weight: 650; margin-bottom: 2px;
}
.loesungsliste .erl {
  display: block; margin-top: 3px;
  font-size: .83rem; color: var(--text-schwach);
}

/* --- 7a Notizen -------------------------------------------------------- */
.notiz-knopf {
  display: inline-flex; align-items: center; gap: 3px;
  min-height: 28px; padding: 3px 9px;
  border: 1px solid var(--rand); border-radius: 999px;
  background: var(--flaeche); color: var(--text-schwach);
  font: inherit; font-size: .78rem; cursor: pointer;
  flex: 0 0 auto;
}
.notiz-knopf:hover { background: var(--flaeche-2); color: var(--text); }
.notiz-knopf .sym { font-size: .9rem; line-height: 1; }
.notiz-knopf.hat-notizen {
  background: var(--mittel-hell); border-color: var(--mittel);
  color: var(--mittel); font-weight: 650;
}
.notiz-knopf .zahl { font-variant-numeric: tabular-nums; }

.karte-kopf {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
}
.karte-kopf h3 { margin: 0; }

.punkt-kopf .notiz-knopf { margin-left: auto; }

.notiz-dialog {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: flex-end; justify-content: center;
  background: rgba(10, 16, 26, .55);
  padding: 0;
}
.notiz-box {
  width: 100%; max-width: 560px; max-height: 88vh; overflow-y: auto;
  background: var(--flaeche);
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
  box-shadow: 0 -6px 30px rgba(0, 0, 0, .25);
}
.notiz-kopf {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-bottom: 4px;
}
.notiz-kopf h3 { margin: 0; font-size: 1.02rem; }
.notiz-zu {
  border: 0; background: none; color: var(--text-schwach);
  font-size: 1.5rem; line-height: 1; cursor: pointer;
  padding: 0 6px; border-radius: var(--radius-s);
}
.notiz-zu:hover { background: var(--flaeche-2); color: var(--text); }

.notiz-liste { list-style: none; margin: 0 0 12px; padding: 0; }
.notiz-liste li {
  border-top: 1px solid var(--rand); padding: 9px 0;
}
.notiz-liste li.erledigt .notiz-text {
  text-decoration: line-through; color: var(--text-schwach);
}
.notiz-haken {
  display: flex; gap: 9px; align-items: flex-start; cursor: pointer;
}
.notiz-haken input { margin-top: 4px; flex: 0 0 auto; width: 17px; height: 17px; }
.notiz-text { flex: 1; font-size: .92rem; white-space: pre-wrap; }
.notiz-meta {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-top: 3px; padding-left: 26px;
}
.notiz-loeschen {
  border: 0; background: none; color: var(--schlecht);
  font: inherit; font-size: .78rem; cursor: pointer; padding: 2px 4px;
}
.notiz-eingabe {
  width: 100%; min-height: 76px; resize: vertical;
  padding: 10px; border: 1px solid var(--rand);
  border-radius: var(--radius-s); background: var(--bg);
  color: var(--text); font: inherit; font-size: .93rem;
}
.notiz-aktionen {
  display: flex; gap: 8px; justify-content: flex-end; margin-top: 10px;
}
.notiz-aktionen .knopf { flex: 1; }

@media (min-width: 760px) {
  .notiz-dialog { align-items: center; padding: 20px; }
  .notiz-box { border-radius: var(--radius); }
  .notiz-aktionen .knopf { flex: 0 0 auto; }
}

/* --- 7b Redaktion (Schema ansehen und bearbeiten) ---------------------- */
.redakt-punkt {
  background: var(--flaeche); border: 1px solid var(--rand);
  border-radius: var(--radius); padding: 12px; margin-bottom: 11px;
}
.redakt-kopf {
  display: flex; align-items: center; gap: 8px; margin-bottom: 8px;
}
.redakt-kopf .punkt-nr { min-width: auto; font-size: 1rem; }
.redakt-kopf .notiz-knopf { margin-left: auto; }
.redakt-reset {
  border: 1px solid var(--rand); border-radius: var(--radius-s);
  background: var(--flaeche); color: var(--text-schwach);
  font-size: .95rem; cursor: pointer; min-height: 28px; padding: 2px 9px;
}
.redakt-zeile { margin-bottom: 9px; }
.feld-lbl {
  display: block; font-size: .7rem; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase;
  color: var(--text-schwach); margin-bottom: 3px;
}
.feld-geaendert { color: var(--mittel); font-size: 1rem; }
.redakt-feld {
  width: 100%; resize: vertical; overflow: hidden;
  padding: 8px 10px; border: 1px solid var(--rand);
  border-radius: var(--radius-s); background: var(--bg);
  color: var(--text); font: inherit; font-size: .92rem; line-height: 1.5;
}
.redakt-feld:focus {
  outline: 2px solid var(--akzent); outline-offset: -1px;
  background: var(--flaeche);
}
.redakt-feld.einzeilig {
  font-size: 1.3rem; font-weight: 650; padding: 4px 8px;
  border-color: transparent; background: none;
}
.redakt-feld.einzeilig:hover { border-color: var(--rand); }
.redakt-feld[disabled] { opacity: .6; }

/* --- 7 Bewertungsleiste ----------------------------------------------- */
.aktionsleiste {
  position: sticky; bottom: 0; z-index: 30;
  margin: 14px -14px 0; padding: 10px 14px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--flaeche) 94%, transparent);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--rand);
}

.bewertung { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.bewertung button {
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  min-height: 56px; padding: 7px 3px;
  border: 1px solid var(--rand); border-radius: var(--radius-s);
  background: var(--flaeche); color: var(--text);
  font: inherit; cursor: pointer; touch-action: manipulation;
}
.bewertung button:active { transform: translateY(1px); }
.bewertung .nr {
  font-size: .64rem; font-weight: 700; color: var(--text-schwach);
}
.bewertung .lbl { font-size: .82rem; font-weight: 600; }
.bewertung .iv {
  font-size: .68rem; color: var(--text-schwach);
  font-variant-numeric: tabular-nums;
}
.bewertung button[data-rating="1"] { border-bottom: 3px solid var(--schlecht); }
.bewertung button[data-rating="2"] { border-bottom: 3px solid var(--mittel); }
.bewertung button[data-rating="3"] { border-bottom: 3px solid var(--gut); }
.bewertung button[data-rating="4"] { border-bottom: 3px solid var(--akzent); }
.bewertung button.empfohlen { box-shadow: inset 0 0 0 2px var(--akzent); }

/* --- 8 Listen, Login, Statistik --------------------------------------- */
.werkzeugleiste {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px;
}
.werkzeugleiste input[type="search"],
.werkzeugleiste select {
  flex: 1 1 140px; min-height: 42px; padding: 8px 10px;
  border: 1px solid var(--rand); border-radius: var(--radius-s);
  background: var(--flaeche); color: var(--text); font: inherit;
  font-size: .92rem;
}

.schemaliste { display: flex; flex-direction: column; gap: 10px; }
.schemazeile {
  background: var(--flaeche); border: 1px solid var(--rand);
  border-radius: var(--radius); padding: 12px;
}
.schemazeile h3 { margin: 0 0 5px; font-size: .96rem; }
.schemazeile .aktionen { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 9px; }
.schemazeile .aktionen .knopf { min-height: 38px; padding: 7px 12px; font-size: .85rem; }

.login-seite {
  display: grid; place-items: center; min-height: 100vh;
  padding: 20px; padding-bottom: 20px;
}
.login-box { width: 100%; max-width: 360px; }
.login-box h1 { text-align: center; }
.login-box input[type="password"] {
  width: 100%; min-height: 46px; padding: 11px 12px;
  border: 1px solid var(--rand); border-radius: var(--radius-s);
  background: var(--bg); color: var(--text); font: inherit;
  margin-bottom: 10px;
}

/* Benutzername: fest vorgegeben, nur fuer den Passwortmanager da. */
.login-box .feldzeile {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--rand); border-radius: var(--radius-s);
  background: var(--flaeche-2); padding: 0 12px; min-height: 42px;
  margin-bottom: 4px;
}
.login-box .feldlabel {
  flex: 0 0 auto; font-size: .8rem; font-weight: 600;
  color: var(--text-schwach);
}
.login-box .feldzeile input {
  flex: 1; min-width: 0; border: 0; background: none;
  color: var(--text-schwach); font: inherit; font-size: .92rem;
  padding: 9px 0; cursor: default;
}
.login-box .feldzeile input:focus { outline: none; }
.login-box .feldhinweis { margin: 0 0 12px; padding-left: 2px; }
.meldung {
  padding: 9px 12px; border-radius: var(--radius-s);
  font-size: .88rem; margin-bottom: 10px;
}
.meldung.fehler { background: var(--schlecht-hell); color: var(--schlecht); }

.balken { display: flex; flex-direction: column; gap: 6px; }
.balkenzeile { display: flex; align-items: center; gap: 8px; font-size: .85rem; }
.balkenzeile .bez { flex: 0 0 5.5em; color: var(--text-schwach); }
.balkenzeile .bar { flex: 1; height: 16px; background: var(--flaeche-2); border-radius: 4px; overflow: hidden; }
.balkenzeile .bar > i { display: block; height: 100%; background: var(--akzent); }
.balkenzeile .n { flex: 0 0 3em; text-align: right; font-variant-numeric: tabular-nums; }

.toast {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(var(--navm-h) + 12px); z-index: 60;
  background: var(--text); color: var(--bg);
  padding: 9px 16px; border-radius: 999px; font-size: .86rem;
  box-shadow: var(--schatten); opacity: 0; pointer-events: none;
  transition: opacity .2s ease;
}
.toast.sichtbar { opacity: 1; }

/* --- 9 Desktop ab 760px ------------------------------------------------ */
@media (min-width: 760px) {
  :root { --fs: 16.5px; }
  body { padding-bottom: 0; }
  .nav-mobil { display: none; }
  .nav-desktop { display: flex; gap: 4px; }
  .nav-desktop a {
    padding: 7px 13px; border-radius: var(--radius-s);
    color: var(--text-schwach); text-decoration: none;
    font-weight: 550; font-size: .92rem;
  }
  .nav-desktop a:hover { background: var(--flaeche-2); color: var(--text); }
  .nav-desktop a.aktiv { background: var(--akzent-hell); color: var(--akzent); }

  .inhalt { padding: 22px 22px 40px; }
  h1 { font-size: 1.55rem; }
  .kennzahlen { grid-template-columns: repeat(4, 1fr); }

  /* Typ A: Nummer | Eingabe | Loesung nebeneinander, wie gewuenscht */
  .punkt.aufgedeckt {
    display: grid;
    grid-template-columns: 3.2em minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "nr eingabe loesung"
      "erl erl erl";
    align-items: start;
  }
  .punkt.aufgedeckt .punkt-kopf {
    grid-area: nr; flex-direction: column; padding: 12px 0 12px 12px;
  }
  .punkt.aufgedeckt .punkt-kopf .punkt-hinweis { display: none; }
  .punkt.aufgedeckt .punkt-eingabe { grid-area: eingabe; padding: 12px; }
  .punkt.aufgedeckt .punkt-loesung {
    grid-area: loesung; border-top: 0; border-left: 1px dashed var(--rand);
    height: 100%;
  }
  .punkt.aufgedeckt .punkt-erlaeuterung { grid-area: erl; }
  /* Hinweisfrage wandert nach oben ueber beide Spalten */
  .punkt.aufgedeckt .punkt-eingabe .hinweis-desktop { display: block; }

  .aktionsleiste { margin: 18px 0 0; border-radius: var(--radius); border: 1px solid var(--rand); }
  .bewertung button { min-height: 62px; }
  .schemaliste { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .toast { bottom: 22px; }
}

@media (min-width: 1040px) {
  .schemaliste { grid-template-columns: repeat(3, 1fr); }
}

.hinweis-desktop { display: none; font-size: .84rem; color: var(--text-schwach); margin-bottom: 6px; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
