/* css/schwierigkeit.css -- «Wie war diese Übung für dich?» ([NEUE-VERSION], Auftrag 139, Fenster SW).
 * Das Frage-Fenster ist FEST unten positioniert: es schiebt nichts in der Seite (Layoutsprung 0). Knoepfe >= 48 px.
 * Keine Bedeutung allein ueber Rot/Gruen: jede Stufe traegt Wort und Zeichen. */
.sw-frage {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 9000;
  box-sizing: border-box;
  width: min(560px, calc(100vw - 32px));
  padding: 14px 16px 12px;
  background: #ffffff;
  color: #1f2937;
  border: 1px solid #c7d2fe;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.18);
  font-size: 16px;
  line-height: 1.35;
}
.sw-frage__titel { margin: 0 0 10px; font-weight: 700; text-align: center; }
.sw-frage__knoepfe { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.sw-frage__knopf {
  min-height: 64px;
  min-width: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 6px 2px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #f8fafc;
  color: #1f2937;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.sw-frage__knopf:hover { background: #eef2ff; border-color: #818cf8; }
.sw-frage__knopf:focus-visible, .sw-frage__spaeter:focus-visible { outline: 3px solid #4f46e5; outline-offset: 2px; }
.sw-frage__knopf:disabled { opacity: 0.6; cursor: default; }
.sw-frage__zeichen { font-size: 24px; line-height: 1; }
.sw-frage__wort { text-align: center; overflow-wrap: anywhere; }
.sw-frage__spaeter {
  display: block;
  min-height: 44px;
  margin: 8px auto 0;
  padding: 0 18px;
  border: 0;
  background: transparent;
  color: #475569;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}
.sw-frage__meldung { margin: 6px 0 0; min-height: 1.35em; text-align: center; font-size: 14px; }
.sw-frage__meldung--fehler { color: #92400e; }
.sw-frage--danke { text-align: center; }

/* Lehrer-Anzeige (nur Administrator): Chip ganz rechts im Kopf der Kontroll-Ansicht und an den Kacheln. */
.sw-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 2px 8px;
  border: 1px solid #c7d2fe;
  border-radius: 999px;
  background: #eef2ff;
  color: #312e81;
  font-size: 12px;
  line-height: 18px;
  white-space: nowrap;
  vertical-align: middle;
}
.sw-chip--wenige { background: #f1f5f9; border-color: #cbd5e1; color: #64748b; }
.sw-chip__text { overflow: hidden; text-overflow: ellipsis; }
.sw-chip__balken { display: inline-flex; align-items: flex-end; gap: 1px; height: 14px; }
.sw-chip__stab { display: inline-block; width: 4px; height: var(--sw-hoehe, 0%); min-height: 1px; background: #6366f1; border-radius: 1px; }
.sw-chip--kurz { padding: 0 6px; font-size: 11px; }
.sw-eindruck { font-size: 12px; color: #334155; white-space: nowrap; }
.sw-eindruck--leer { color: #94a3b8; }
@media print { .sw-frage { display: none; } }
/* Kachel: Marke an der Ecke des Kontrolle-Knopfs -- absolut, darum ohne Einfluss auf das Layout der Karte. */
.sw-chip-anker { position: relative; }
.sw-chip--marke { position: absolute; top: -9px; right: -10px; z-index: 2; pointer-events: none; padding: 0 5px; font-size: 10px; line-height: 15px; }
