/* Schülerseite – Querformat, normal lesbar (kein Großdruck) */
:root {
  --tinte: #232323; --grau: #6b6b6b; --grund: #f7f5f0; --linie: #e2dfd8;
  --gruen: #2f6b4f; --kamin: #a33b2a; --gelb: #ffc400;
  --hellgruen: #ddf0e4; --hellgruen-rand: #9ccbae;
  --hellrot: #f6e0db; --hellrot-rand: #d9a497;
  --inaktiv: #fbfaf8; --inaktiv-rand: #eceae5; --inaktiv-schrift: #d3d0c9;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  display: flex; flex-direction: column;
  font-family: system-ui, "Segoe UI", Roboto, sans-serif; font-size: 18px;
  color: var(--tinte); background: var(--grund);
}
button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }

/* Kopfzeile */
.kopf {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 10px 24px; background: #fff; border-bottom: 2px solid var(--linie);
}
.ort h1 { margin: 2px 0; font-size: 24px; }
.klein { font-size: 15px; color: var(--grau); }
.system { display: flex; gap: 14px; }
.rund {
  width: 50px; height: 50px; border-radius: 50%;
  border: 2px solid #bdb9b0; background: #fff; display: grid; place-items: center;
}
.rund svg { fill: var(--tinte); }
.rund.an { background: #fff3c4; border-color: #d4a800; }
.sterne {
  justify-self: end; border: none; background: none; font-size: 24px; font-weight: bold;
  display: flex; align-items: center; gap: 8px;
}
.stern { font-size: 44px; color: var(--gelb); -webkit-text-stroke: 1px #d49a00; }
.sterne.aus { opacity: .15; }

/* Anzeigefläche */
.flaeche {
  flex: 1; overflow: auto; display: flex; flex-direction: column; align-items: center;
  gap: 16px; padding: 18px 24px;
}
.start { margin: auto; }
#btn-start {
  font-size: 22px; padding: 18px 34px; border: none; border-radius: 12px;
  background: var(--gruen); color: #fff;
}
.bild img, .bild video {
  display: block; max-width: min(1000px, 100%); max-height: 38vh;
  background: #fff; border: 2px solid var(--linie); border-radius: 10px; padding: 10px;
}
.tastatur svg { display: block; max-width: min(900px, 100%); height: auto; }
.textzeile {
  width: min(1000px, 100%); display: flex; align-items: center; gap: 12px;
  background: #fff; border: 1.5px solid var(--linie); border-radius: 8px; padding: 6px 10px 6px 16px;
}
.textzeile p { flex: 1; margin: 0; font-size: 16px; color: var(--grau); }
.textzeile p b { color: #7a5a00; }
.textzeile.aus p { visibility: hidden; }
.klein-knopf {
  border: 1.5px solid #bdb9b0; background: #fff; border-radius: 8px; padding: 6px 12px; font-size: 15px;
}
.test {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  font-size: 15px; color: var(--grau); border: 1.5px dashed #bdb9b0; border-radius: 8px; padding: 8px 12px;
}
.wiederholung-hinweis {
  display: flex; align-items: center; gap: 16px;
  background: var(--hellgruen); border-radius: 8px; padding: 8px 16px; font-weight: bold;
}

/* Knopfleiste */
.leiste { display: flex; gap: 16px; padding: 14px 24px; background: #efede7; }
.luecke { flex: 1; }
.k {
  min-width: 190px; min-height: 64px; padding: 6px 18px; border-radius: 12px;
  border: 2px solid #8c8a84; background: #fff; color: var(--tinte); font-size: 20px;
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
}
.k small { font-size: 13px; color: #4f7a60; }
.k.wiederholen { background: var(--hellgruen); border-color: var(--hellgruen-rand); }
.k.rueckfrage  { background: var(--hellrot);   border-color: var(--hellrot-rand); }
.k.aufnahme    { background: var(--kamin); border-color: var(--kamin); color: #fff; font-weight: bold; flex-direction: row; gap: 12px; }
.k.aufnahme .punkt { width: 18px; height: 18px; border-radius: 50%; background: #fff; }
.k.aufnahme.laeuft .punkt { border-radius: 2px; }
.k.weiter      { background: var(--gruen); border-color: var(--gruen); color: #fff; font-weight: bold; }
.k.trotzdem    { background: #fff; border-color: #8c8a84; color: var(--tinte); font-weight: normal; }
.k:disabled, .k:disabled small {
  background: var(--inaktiv) !important; border-color: var(--inaktiv-rand) !important;
  color: var(--inaktiv-schrift) !important; cursor: default;
}
.k:disabled .punkt { background: var(--inaktiv-schrift); }

/* Ebenen (Liste, Rückfrage, Sicherheitsfrage) */
.ebene {
  position: fixed; inset: 0; background: rgba(0,0,0,.25);
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.fenster {
  background: #fff; border-radius: 12px; padding: 18px 24px; width: min(1100px, 100%);
  max-height: 90vh; overflow: auto; border: 2px solid var(--hellgruen-rand);
}
.fenster.schmal { width: min(520px, 100%); }
.fenster-kopf { display: flex; justify-content: space-between; align-items: center; }
.fenster h2 { margin: 6px 0; font-size: 22px; }
.letzte {
  width: 100%; text-align: left; margin: 8px 0 12px; padding: 10px 16px;
  border: none; border-radius: 8px; background: var(--hellgruen); font-weight: bold;
}
.einheit { font-weight: bold; margin: 14px 0 4px; }
.abschnitt { color: var(--grau); font-weight: bold; font-size: 15px; margin: 8px 0 4px 12px; }
.eintrag {
  display: block; margin: 2px 0 2px 12px; padding: 6px 10px; border: none; background: none;
  text-align: left; border-radius: 6px; font-size: 16px;
}
.eintrag:hover { background: #f1efea; }
textarea { width: 100%; font: inherit; padding: 10px; border-radius: 8px; border: 1.5px solid #bdb9b0; }
.zeile { display: flex; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
