/*
 * Schüleransicht: Anmeldung mit Code, Menü, Lernstände, Kalender, Ziele.
 * Wird nach lernpfad.css geladen (nur für diese Rolle).
 */

div.LernpfadS {
  position: relative;
  z-index: 1000;
  background: #ffffffa7;
  border-radius: 1em;
  padding: 2em;
  margin-top: 2em;
}

#LoginS input.SchuelerCode {
  width: 8em;
}

p.FeststelltasteWarnung {
  color: #d00000;
  font-weight: bold;
  font-size: 130%;
}

p.FeststelltasteWarnung[hidden] {
  display: none;
}

p.PinHinweisLehrkraft {
  font-weight: bold;
}

div.LoginContainer {
  background: #f1f1f1af;
  border-radius: 1em;
  padding: 2em;
}

p.IchBin {
  border-bottom: 2px solid #262626;
  font-size: 130%;
}

.SchulerZiele ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.SchulerZiele li {
  border-left: 4px solid #d5a846;
  margin: 0.6em 0;
  padding: 0.6em 0.8em;
}
.SchulerZiele li.erledigt {
  background: #e8f5e9;
  border-left-color: #3a9d55;
  color: #236b37;
}
.SchulerZiele .ZielStatus {
  display: inline-block;
  font-weight: bold;
  margin-right: 0.5em;
}
.SchulerZiele .ZielText,
.SchulerZiele .ZielZeit {
  display: block;
}
.SchulerZiele .ZielZeit {
  color: #666;
  font-size: 0.85em;
  margin-top: 0.2em;
}

.NotentabelleS td,
.NotentabelleS th {
  padding: 0.3em 0.6em;
  text-align: center;
  white-space: nowrap;
}
.NotentabelleS th {
  text-align: left;
}
.NotentabelleS {
  width: auto;
}

/* Notentabelle quer; bei vielen Stufen seitlich scrollbar */
#NotentabelleBox {
  margin: 0.6em 0;
  max-width: 100%;
  overflow-x: auto;
}

tr.ErgebnisZusammenfassung {
  text-align: right;
}

td.ErgebnisNote {
  text-align: center;
}

table.ErgebnisLernstand tbody tr td:nth-child(3) {
  text-align: right;
}
.LernstandPlanungsRaster {
  display: grid;
  gap: 1em;
}
.LernstandKalenderTag {
  background: #f1f1f1;
  border-radius: 0.5em;
  padding: 0.6em;
  margin-bottom: 8px;
}
.LernstandDragItem {
  background: white;
  border: 1px solid #aaa;
  border-radius: 0.35em;
  cursor: grab;
  margin: 0.4em 0;
  padding: 0.5em;
}
.LernstandDragItem span {
  display: block;
}
.LernstandKalender {
  display: grid;
  gap: 0.5em;
}
.LernstandKalenderWoche {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
}
.LernstandKalenderWoche > .klein {
  margin: 0.5em 0;
}
.LernstandKalenderTag {
  border: 1px solid #bbb;
  flex: 1 1 6em;
  min-height: 5em;
}
.LernstandKalenderTag h4 {
  margin: 0 0 0.3em;
}
.LernstandKalenderTag h4 small {
  font-size: 0.75em;
  font-weight: normal;
}
.LernstandKalenderTag.buchbar {
  background: #fff;
  border-style: dashed;
}
.LernstandKalenderTag.vergangen {
  background: #e4e4e4;
  color: #888;
}
.LernstandKalenderTag.LernstandTagGesperrt {
  background: #cfcfcf !important;
  color: #888;
  opacity: 0.6;
}
.LernstandKalenderEintrag.LernstandDragItem {
  display: inline-block;
  margin: 0.2em;
  padding: 0.7em;
}

.LernstandKalenderEintrag span.tall {
    font-size: 130%;
}

.LernstandKalenderTagAktiv {
  background: #d7eddb !important;
  border-color: #23833a !important;
}
.LernstandKalenderEintrag {
  background: #dce8f7;
  border-radius: 0.25em;
  display: inline-block;
  font-size: 0.8em;
  margin: 0.2em;
  padding: 0.2em;
}
.LernstandKalenderEintrag.LernstandErledigt {
  background: #d9e8d9;
}
/* Nummer und Titel ohne Umbruch in einer Zeile */
.LernstandKalenderEintrag {
  white-space: nowrap;
}
.LernstandKalenderEintrag span.tall {
  display: inline;
}

/* Gewichtungsfaktor eines Lernstands, z. B. "5 ⋅" vor den Prozenten */
td.LernstandProzent {
  text-align: right;
}
.LernstandFaktor {
  background: #e3effb;
  border-radius: 0.4em;
  color: #1f4f7a;
  font-size: 0.75em;
  margin-right: 0.3em;
  padding: 0.1em 0.45em;
  white-space: nowrap;
}

/* Mein Platz: eigener Sitzplatz rot, Smartboard oben (Blick nach vorne) */
.MeinPlatz {
  display: inline-block;
  margin: 0.5em 1.5em 1em 0;
  max-width: 100%;
  vertical-align: top;
}
.MeinPlatz figcaption {
  font-weight: 700;
  margin-bottom: 0.4em;
}
.MeinPlatzTafel {
  background: #2b3a4a;
  border-radius: 4px;
  color: #fff;
  font-size: 0.85em;
  letter-spacing: 0.05em;
  margin-bottom: 0.8em;
  padding: 0.3em 0;
  text-align: center;
}
.MeinPlatz svg.SitzplanMini {
  display: block;
  height: auto;
  margin: 0 auto;
  max-width: 100%;
}
.MeinPlatzLegende {
  font-size: 0.9em;
}
.MeinPlatzPunkt {
  background: #d00000;
  border-radius: 3px;
  display: inline-block;
  height: 0.9em;
  vertical-align: -0.1em;
  width: 0.9em;
}

/* Nachrichten der Lehrkraft (views/schueler/nachrichten.php) */
.SchuelerNachrichten {
  display: flex;
  flex-direction: column;
  gap: 0.7em;
  max-width: 40em;
}
.SchuelerNachricht {
  padding: 0.6em 0.8em;
  border: 1px solid #d5d9de;
  border-left: 5px solid #9aa5b1;
  border-radius: 0.5em;
  background: #fff;
}
.SchuelerNachricht.neu {
  border-left-color: #e8a200;
  background: #fffaf0;
}
.SchuelerNachricht header {
  display: flex;
  justify-content: space-between;
  gap: 1em;
  font-size: 0.85em;
  color: #555;
  margin-bottom: 0.35em;
}
.SchuelerNachrichtStatus {
  color: #009846;
  white-space: nowrap;
}
.SchuelerNachricht.neu .SchuelerNachrichtStatus {
  color: #b06000;
  font-weight: 700;
}
.SchuelerNachricht p {
  margin: 0;
}
.NachrichtPlayer {
  display: flex;
  align-items: center;
  gap: 0.7em;
}
button.NachrichtAbspielen {
  width: 2.6em;
  height: 2.6em;
  padding: 0;
  border-radius: 50%;
  font-size: 1.2em;
  line-height: 1;
}
.NachrichtFortschritt {
  flex: 1;
  height: 0.4em;
  border-radius: 0.2em;
  background: #e3e6ea;
  overflow: hidden;
}
.NachrichtFortschritt span {
  display: block;
  width: 0;
  height: 100%;
  background: #146099;
}
.NachrichtDauer {
  font-size: 0.85em;
  color: #555;
  white-space: nowrap;
}
/* Lernstand: Ergebnis noch nicht gesehen */
.LernstandNeu {
  padding: 0.1em 0.45em;
  border-radius: 0.4em;
  background: #e8a200;
  color: #fff;
  font-size: 0.8em;
  font-weight: 700;
}
.SchuelerNachrichtBetreff {
  margin: 0 0 0.3em;
  font-size: 1.05em;
}
button.NachrichtGelesen {
  height: auto;
  margin-top: 0.6em;
  padding: 0.45em 1em;
  border: 0;
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
  background-color: #15803d;
  color: #fff;
  font-weight: 600;
  line-height: 1.3;
  text-transform: none;
}
button.NachrichtGelesen:hover {
  background-color: #16a34a;
}
