/* Lernpfad Academy - gemeinsames Aussehen der Schuelerseiten */

:root {
  --papier: #fbfaf7;
  --karte: #ffffff;
  --text: #23282f;
  --text-leise: #6b7280;
  --linie: #e5e2db;
  --akzent: #2f6f5e;
  --akzent-hell: #e6f0ec;
  --richtig: #2f7d4f;
  --falsch: #b23b3b;
  --radius: 14px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--papier);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
}

.huelle {
  max-width: 52rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 4rem;
}

/* Kopf und Navigation */

.krumen {
  font-size: 0.875rem;
  color: var(--text-leise);
  margin-bottom: 1.5rem;
}

.krumen a { color: var(--text-leise); }

.krumen a:hover { color: var(--akzent); }

h1 {
  font-size: 1.9rem;
  line-height: 1.25;
  margin: 0 0 0.25rem;
}

h2 {
  font-size: 1.3rem;
  margin: 2.5rem 0 0.75rem;
}

h3 {
  font-size: 1.05rem;
  margin: 1.5rem 0 0.5rem;
}

.unterzeile {
  color: var(--text-leise);
  margin: 0 0 2rem;
}

a { color: var(--akzent); }

/* Stammdaten */

.stammdaten {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 2.5rem;
  padding: 0;
  list-style: none;
}

.stammdaten li {
  background: var(--akzent-hell);
  color: var(--akzent);
  border-radius: 999px;
  padding: 0.25rem 0.85rem;
  font-size: 0.875rem;
}

/* Karten */

.raster {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 1rem;
}

.karte {
  display: block;
  background: var(--karte);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-decoration: none;
  color: inherit;
}

a.karte:hover {
  border-color: var(--akzent);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.karte h3 { margin: 0 0 0.25rem; }

.karte p {
  margin: 0;
  color: var(--text-leise);
  font-size: 0.9rem;
}

.karte.ruht { opacity: 0.55; }

.marke {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--text-leise);
  border: 1px solid var(--linie);
  border-radius: 999px;
  padding: 0.05rem 0.6rem;
  margin-top: 0.75rem;
}

/* Reiter */

.reiter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  border-bottom: 1px solid var(--linie);
  margin-bottom: 1.75rem;
}

.reiter button {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 0.6rem 0.9rem;
  font: inherit;
  color: var(--text-leise);
  cursor: pointer;
}

.reiter button:hover { color: var(--text); }

.reiter button[aria-selected="true"] {
  color: var(--akzent);
  border-bottom-color: var(--akzent);
  font-weight: 600;
}

.tafel[hidden] { display: none; }

/* Inhalte */

.kasten {
  background: var(--karte);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin: 1rem 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.95rem;
}

th, td {
  text-align: left;
  padding: 0.55rem 0.5rem;
  border-bottom: 1px solid var(--linie);
  vertical-align: top;
}

th { color: var(--text-leise); font-weight: 600; }

.tabellenrolle { overflow-x: auto; }

code, .formel {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  background: var(--akzent-hell);
  border-radius: 5px;
  padding: 0.1rem 0.35rem;
  font-size: 0.95em;
}

/* Aufgaben */

ol.aufgaben {
  padding-left: 1.25rem;
  margin: 0;
}

ol.aufgaben > li {
  background: var(--karte);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  margin-bottom: 0.85rem;
}

ol.aufgaben > li::marker {
  color: var(--akzent);
  font-weight: 700;
}

.aufgabe-text { margin: 0; }

details { margin-top: 0.75rem; }

summary {
  cursor: pointer;
  color: var(--akzent);
  font-size: 0.9rem;
}

details .loesung {
  margin: 0.6rem 0 0;
  padding-left: 0.9rem;
  border-left: 3px solid var(--akzent-hell);
  color: var(--text-leise);
}

/* Quiz */

.fortschritt {
  font-size: 0.85rem;
  color: var(--text-leise);
  margin-bottom: 0.5rem;
}

.frage {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 1rem;
}

.antworten {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.antworten button {
  text-align: left;
  background: var(--karte);
  border: 1px solid var(--linie);
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  font: inherit;
  cursor: pointer;
}

.antworten button:hover:not(:disabled) { border-color: var(--akzent); }

.antworten button:disabled {
  cursor: default;
  color: var(--text);
  opacity: 1;
}

.antworten button.ist-richtig {
  border-color: var(--richtig);
  background: #eef7f1;
}

.antworten button.ist-falsch {
  border-color: var(--falsch);
  background: #fbeeee;
}

.rueckmeldung {
  font-size: 0.95rem;
  margin-bottom: 1rem;
  min-height: 1.5rem;
}

.knopf {
  background: var(--akzent);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.6rem 1.4rem;
  font: inherit;
  cursor: pointer;
}

.knopf:hover { filter: brightness(1.08); }

.ergebnis-zahl {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--akzent);
  margin: 0;
}

/* Fusszeile */

.fuss {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--linie);
  font-size: 0.8rem;
  color: var(--text-leise);
}

@media (prefers-color-scheme: dark) {
  :root {
    --papier: #16191d;
    --karte: #1e2227;
    --text: #e8e6e1;
    --text-leise: #9aa3ad;
    --linie: #2e343b;
    --akzent: #6fbfa5;
    --akzent-hell: #223029;
  }
  .antworten button.ist-richtig { background: #1c2f26; }
  .antworten button.ist-falsch { background: #33211f; }
}

/* Verweis auf die Druckblätter */

.drucklinks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin: 0 0 1.75rem;
}

.knopf-link {
  display: inline-block;
  background: var(--akzent);
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.5rem 1.2rem;
  font-size: 0.95rem;
}

.knopf-link:hover { filter: brightness(1.08); }

/* Schrittfolgen fuer Anleitungen */

ol.schritte {
  list-style: none;
  counter-reset: schritt;
  padding: 0;
  margin: 1.25rem 0;
}

ol.schritte > li {
  counter-increment: schritt;
  position: relative;
  padding-left: 3rem;
  margin-bottom: 1.5rem;
}

ol.schritte > li::before {
  content: counter(schritt);
  position: absolute;
  left: 0;
  top: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--akzent);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

ol.schritte h3 {
  margin: 0.2rem 0 0.35rem;
  font-size: 1.05rem;
}

ol.schritte p { margin: 0.35rem 0 0; }

/* Checkliste */

ul.checkliste {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

ul.checkliste li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--linie);
}

ul.checkliste li:last-child { border-bottom: none; }

ul.checkliste input[type="checkbox"] {
  margin-top: 0.3rem;
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--akzent);
  flex-shrink: 0;
}

ul.checkliste .zusatz {
  display: block;
  color: var(--text-leise);
  font-size: 0.9rem;
  margin-top: 0.15rem;
}

/* Hinweiskaesten */

.merke, .achtung {
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}

.merke {
  background: var(--akzent-hell);
  border-left: 4px solid var(--akzent);
}

.achtung {
  background: #fdf2ee;
  border-left: 4px solid #c2683f;
}

.merke p:first-child, .achtung p:first-child { margin-top: 0; }
.merke p:last-child, .achtung p:last-child { margin-bottom: 0; }

/* Vorlagentext zum Kopieren */

pre.vorlage {
  background: var(--karte);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  overflow-x: auto;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 0.88rem;
  line-height: 1.55;
  white-space: pre-wrap;
}

@media (prefers-color-scheme: dark) {
  .achtung { background: #33241e; border-left-color: #c2683f; }
}

/* Klassenarbeiten */

.marke.bestaetigt {
  border-color: var(--akzent);
  color: var(--akzent);
}

.marke.vermutet {
  border-style: dashed;
}

.zaehler {
  background: var(--akzent-hell);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
  margin: 1.25rem 0 1.75rem;
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.zaehler .tage {
  font-size: 2rem;
  font-weight: 700;
  color: var(--akzent);
  line-height: 1;
}

.zaehler .datum {
  color: var(--text-leise);
  font-size: 0.95rem;
}

/* Stoffliste mit Sicherheitsgrad */

ul.stoff {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

ul.stoff li {
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--linie);
}

ul.stoff li:last-child { border-bottom: none; }

ul.stoff .grad {
  flex-shrink: 0;
  font-size: 0.75rem;
  border-radius: 999px;
  padding: 0.1rem 0.6rem;
  border: 1px solid var(--linie);
  color: var(--text-leise);
  white-space: nowrap;
}

ul.stoff .grad.ja {
  border-color: var(--akzent);
  color: var(--akzent);
}

ul.stoff .grad.vielleicht { border-style: dashed; }

ul.stoff .grad.nein {
  text-decoration: line-through;
  opacity: 0.6;
}

ul.stoff .was { flex: 1; }

ul.stoff .quelle {
  display: block;
  color: var(--text-leise);
  font-size: 0.85rem;
  margin-top: 0.1rem;
}

/* Kennung auf den Kacheln der Übungsblätter */

.karte .kennung {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--akzent);
  display: block;
  margin-bottom: 0.2rem;
}

.karte .blattlinks {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-leise);
}

/* Lehrvideos */

.videozaehler {
  color: var(--text-leise);
  font-size: 0.9rem;
  margin: 0 0 1rem;
}

.karte.video {
  display: flex;
  flex-direction: column;
}

.karte.video .kanal {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-leise);
  display: block;
  margin-bottom: 0.3rem;
}

.karte.video h3 { margin: 0 0 0.3rem; }

.karte.video h3 a {
  text-decoration: none;
  color: inherit;
}

.karte.video h3 a:hover { color: var(--akzent); }

.karte.video .passt-zu {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 0.78rem;
  color: var(--text-leise);
  margin-top: 0.5rem;
}

.karte.video .gesehen {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.9rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--linie);
  font-size: 0.88rem;
  color: var(--text-leise);
  cursor: pointer;
  user-select: none;
}

.karte.video .gesehen input {
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--akzent);
  cursor: pointer;
}

.karte.video.ist-gesehen {
  border-color: var(--akzent);
  background: var(--akzent-hell);
}

.karte.video.ist-gesehen .gesehen {
  color: var(--akzent);
  font-weight: 600;
  border-top-color: var(--akzent);
}

/* ---------- Dashboard-Leiste mit Uhr ---------- */

.uhrleiste {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--karte);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 0 0 2rem;
}

.uhrleiste .zeit {
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--akzent);
}

.uhrleiste .datum {
  color: var(--text-leise);
  font-size: 0.9rem;
  margin-top: 0.2rem;
}

.uhrleiste .naechstes {
  text-align: right;
  font-size: 0.9rem;
  color: var(--text-leise);
  max-width: 22rem;
}

.uhrleiste .naechstes strong {
  display: block;
  color: var(--text);
  font-size: 1rem;
}

/* ---------- Stundenplan ---------- */

.planrolle { overflow-x: auto; }

table.stundenplan {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
  font-size: 0.88rem;
}

table.stundenplan th,
table.stundenplan td {
  border: 1px solid var(--linie);
  padding: 0.4rem 0.5rem;
  text-align: center;
  vertical-align: middle;
}

table.stundenplan thead th {
  background: var(--karte);
  font-weight: 600;
  color: var(--text);
}

table.stundenplan .stunde {
  background: var(--karte);
  color: var(--text-leise);
  font-size: 0.78rem;
  white-space: nowrap;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

table.stundenplan .stunde b {
  display: block;
  color: var(--text);
  font-size: 0.9rem;
}

table.stundenplan td.leer { color: var(--text-leise); }

table.stundenplan td.nachhilfefach {
  background: var(--akzent-hell);
  color: var(--akzent);
  font-weight: 600;
}

table.stundenplan .heute {
  outline: 2px solid var(--akzent);
  outline-offset: -2px;
}

table.stundenplan thead th.heute {
  background: var(--akzent);
  color: #fff;
}

.pausenzeile td {
  background: repeating-linear-gradient(45deg, transparent, transparent 4px, var(--linie) 4px, var(--linie) 5px);
  padding: 0.2rem !important;
  font-size: 0.7rem;
  color: var(--text-leise);
}

/* ---------- Kalender ---------- */

.kalenderkopf {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}

.kalenderkopf h3 { margin: 0; font-size: 1.05rem; }

.kalenderkopf button {
  background: var(--karte);
  border: 1px solid var(--linie);
  border-radius: 8px;
  width: 2rem;
  height: 2rem;
  font: inherit;
  color: var(--text);
  cursor: pointer;
}

.kalenderkopf button:hover { border-color: var(--akzent); color: var(--akzent); }

.kalender {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  background: var(--linie);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  overflow: hidden;
}

.kalender .wochentag {
  background: var(--karte);
  text-align: center;
  padding: 0.35rem 0;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-leise);
}

.kalender .tag {
  background: var(--papier);
  min-height: 3.4rem;
  padding: 0.25rem 0.35rem;
  font-size: 0.8rem;
  position: relative;
}

.kalender .tag.fremd { opacity: 0.35; }

.kalender .tag.heute {
  outline: 2px solid var(--akzent);
  outline-offset: -2px;
}

.kalender .tag .zahl {
  font-variant-numeric: tabular-nums;
  color: var(--text-leise);
}

.kalender .tag.heute .zahl { color: var(--akzent); font-weight: 700; }

.kalender .tag .punkte {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  margin-top: 0.2rem;
}

.kalender .tag .punkt {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.punkt.klassenarbeit, .legende .klassenarbeit { background: #b23b3b; }
.punkt.test,          .legende .test          { background: #c2863f; }
.punkt.nachhilfe,     .legende .nachhilfe     { background: #2f6f5e; }
.punkt.sonstiges,     .legende .sonstiges     { background: #6b7280; }

.legende {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.6rem;
  font-size: 0.8rem;
  color: var(--text-leise);
}

.legende span { display: flex; align-items: center; gap: 0.35rem; }

.legende i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

/* Terminliste */

ul.termine {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
}

ul.termine li {
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--linie);
}

ul.termine li:last-child { border-bottom: none; }

ul.termine .wann {
  flex-shrink: 0;
  width: 5.5rem;
  font-variant-numeric: tabular-nums;
  color: var(--text-leise);
  font-size: 0.85rem;
}

ul.termine .was { flex: 1; }

ul.termine .rest {
  flex-shrink: 0;
  font-size: 0.8rem;
  color: var(--text-leise);
  white-space: nowrap;
}

ul.termine .marker {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 0.4rem;
}

@media (max-width: 34rem) {
  .uhrleiste { flex-direction: column; align-items: flex-start; }
  .uhrleiste .naechstes { text-align: left; }
  ul.termine li { flex-wrap: wrap; }
}


/* ---------- Challenge-Seite ---------- */

.belohnung {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  flex-wrap: wrap;
  background: var(--karte);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin: 1.5rem 0;
}

.belohnung .betrag {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--akzent);
  line-height: 1.2;
}

.startknopf {
  background: var(--akzent);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.8rem 1.9rem;
  font: inherit;
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
}

.startknopf:hover { filter: brightness(1.08); }

.gesperrt .karte.auftrag {
  opacity: 0.5;
  filter: grayscale(0.7);
  pointer-events: none;
}

.karte.auftrag .status {
  display: inline-block;
  font-size: 0.75rem;
  border-radius: 999px;
  padding: 0.1rem 0.65rem;
  border: 1px solid var(--linie);
  color: var(--text-leise);
  margin-top: 0.75rem;
}

.karte.auftrag .status.eingereicht {
  border-color: #c2863f;
  color: #c2863f;
}

.karte.auftrag .status.erledigt {
  border-color: var(--akzent);
  color: var(--akzent);
  font-weight: 600;
}

.karte.auftrag.ist-erledigt {
  border-color: var(--akzent);
  background: var(--akzent-hell);
}

.karte.auftrag .warum {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-leise);
  border-left: 3px solid var(--linie);
  padding-left: 0.6rem;
}

/* ---------- Challenge als Kachel ---------- */

.karte.challenge .streifen {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 0.7rem;
  line-height: 0;
}

.karte.challenge .streifen svg {
  display: block;
  width: 100%;
  height: 38px;
}

.karte.challenge.ruht .streifen { filter: grayscale(1); opacity: 0.6; }

.balken {
  height: 6px;
  background: var(--linie);
  border-radius: 3px;
  overflow: hidden;
  margin: 0.7rem 0 0.3rem;
}

.balken i {
  display: block;
  height: 100%;
  background: var(--akzent);
  border-radius: 3px;
}

.fortschritt-text {
  font-size: 0.8rem;
  color: var(--text-leise);
  font-variant-numeric: tabular-nums;
}

/* ---------- Markenkopf ---------- */

.markenkopf {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1.5rem;
  text-decoration: none;
  color: inherit;
}

.markenkopf svg {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  flex-shrink: 0;
}

.markenkopf .wortmarke {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  line-height: 1.15;
}

.markenkopf .wortmarke span {
  display: block;
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--akzent);
  margin-top: 0.1rem;
}

/* Große Fassung für die Startseite */

.markenkopf.gross { flex-direction: column; text-align: center; gap: 1rem; margin-bottom: 2rem; }
.markenkopf.gross svg { width: 96px; height: 96px; border-radius: 22px; }
.markenkopf.gross .wortmarke { font-size: 1.7rem; }
.markenkopf.gross .wortmarke span { font-size: 0.8rem; letter-spacing: 0.28em; }

/* Hausaufgaben */

.karte .wann {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--akzent);
  margin-bottom: 0.2rem;
}

.stand {
  display: inline-block;
  font-size: 0.75rem;
  border-radius: 999px;
  padding: 0.05rem 0.6rem;
  margin-top: 0.4rem;
  margin-left: 0.35rem;
  border: 1px solid var(--linie);
  color: var(--text-leise);
}

.stand.gemacht { border-color: var(--akzent); color: var(--akzent); }

.stand.korrigiert {
  border-color: var(--richtig);
  color: var(--richtig);
}

/* Fotos der Aufgabe und der Lösung */

.fotostrecke {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.fotostrecke figure { margin: 0; }

.fotostrecke img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  background: var(--karte);
}

.fotostrecke figcaption {
  font-size: 0.85rem;
  color: var(--text-leise);
  margin-top: 0.35rem;
}

/* Auswertung des Quiz – als Screenshot gedacht, darum kompakt und mit Kopfzeile */

.ergebnis-kopf {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--akzent);
  margin: 0 0 0.75rem;
}

.ergebnisliste {
  margin: 0.9rem 0;
  border-top: 1px solid var(--linie);
}

.ergebniszeile {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  padding: 0.32rem 0.2rem;
  border-bottom: 1px solid var(--linie);
}

.ergebniszeile .enr {
  min-width: 1.4rem;
  text-align: right;
  color: var(--text-leise);
  font-size: 0.85rem;
}

.ergebniszeile .ezeichen {
  font-weight: 700;
  width: 1rem;
}

.ergebniszeile.ja .ezeichen  { color: var(--richtig); }
.ergebniszeile.nein .ezeichen { color: var(--falsch); }

.ergebniszeile .ewas { flex: 1; }

.ergebniszeile .ewas small {
  display: block;
  color: var(--text-leise);
  font-size: 0.8rem;
  margin-top: 0.1rem;
}

.ergebniszeile.nein .ewas { font-weight: 600; }

.kopierfeld {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.6rem;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 0.8rem;
  color: var(--text);
  background: var(--papier);
  border: 1px solid var(--linie);
  border-radius: 8px;
}

/* Der Kasten soll auf einen Handybildschirm passen – sonst taugt der Screenshot nicht */

#ergebnis-feld #ergebnis-text { margin: 0.5rem 0 0; }

.screenshot-hinweis {
  font-size: 0.85rem;
  margin: 0.9rem 0 1rem;
}

/* Schrittfolge in einer Auftragskarte – für Aufträge, bei denen der Weg zählt */

.karte.auftrag ol.minischritte {
  margin: 0.7rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.85rem;
  color: var(--text-leise);
}

.karte.auftrag ol.minischritte li {
  margin-bottom: 0.3rem;
  padding-left: 0.15rem;
}

.karte.auftrag ol.minischritte li::marker {
  color: var(--akzent);
  font-weight: 700;
}

.karte.auftrag .auftraglink {
  display: inline-block;
  margin-top: 0.6rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--akzent);
  text-decoration: none;
}

.karte.auftrag .auftraglink:hover { text-decoration: underline; }

/* Foto des Belohnungs-Bausatzes. Beliebige Bildgröße erlaubt – die Regeln
   bringen es auf Maß. Fehlt die Datei, springt eine SVG-Zeichnung ein. */

/* Bild wie Ersatzgrafik behalten ihr Maß, auch auf sehr schmalen Schirmen */
.belohnung > svg { flex: 0 0 auto; }

.belohnung .bausatzbild {
  width: 150px;
  height: 96px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--linie);
  background: var(--papier);
  flex: 0 0 auto;
}

.karte.challenge .streifen img {
  display: block;
  width: 100%;
  height: 38px;
  object-fit: cover;
  object-position: center 30%;
}

/* Gym: Übungsauswahl und Fortschrittsdiagramm */

.gymwahl {
  margin: 1rem 0 1.5rem;
}

.gymwahl select {
  font: inherit;
  font-size: 1rem;
  padding: 0.55rem 1rem;
  border: 1px solid var(--linie);
  border-radius: 999px;
  background: var(--karte);
  color: var(--text);
  cursor: pointer;
}

/* Übersichtskacheln sind Buttons, sollen aber wie .karte aussehen */
button.karte {
  width: 100%;
  font: inherit;
  text-align: left;
  cursor: pointer;
  appearance: none;
}

button.karte.aktiv {
  border-color: var(--akzent);
  background: var(--akzent-hell);
}

button.karte .kachelgewicht {
  display: block;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--akzent);
  margin-top: 0.3rem;
}

.diagrammkasten {
  background: var(--karte);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  padding: 1rem 1.25rem 0.5rem;
  margin: 1rem 0;
}

.diagramm { display: block; width: 100%; height: auto; }
.diagramm .gitterlinie { stroke: var(--linie); stroke-width: 1; }
.diagramm .achsentext {
  font: 12px system-ui, sans-serif;
  fill: var(--text-leise);
}
.diagramm .verlauf {
  fill: none;
  stroke: var(--akzent);
  stroke-width: 2.5;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.diagramm .punkt { fill: var(--karte); stroke: var(--akzent); stroke-width: 2; }
.diagramm .punkt-aktuell { fill: var(--akzent); }
.diagramm .beschriftung-aktuell {
  font: 700 14px system-ui, sans-serif;
  fill: var(--akzent);
}

.gymzusammenfassung {
  font-size: 0.95rem;
  color: var(--text-leise);
  margin: 0 0 0.5rem;
}
.gymzusammenfassung strong { color: var(--text); }

/* Gym: Signal "Zeit zum Steigern" – voller Zielumfang erreicht */
.diagramm .punkt-steigern {
  fill: #c2863f;
  stroke: #c2863f;
  stroke-width: 2;
}
.diagramm .steigern-ring {
  fill: none;
  stroke: #c2863f;
  stroke-width: 1.5;
  stroke-dasharray: 3 2;
}
.diagramm .beschriftung-steigern {
  font: 700 13px system-ui, sans-serif;
  fill: #c2863f;
}
.gym-legende {
  font-size: 0.85rem;
  color: var(--text-leise);
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
  align-items: center;
  margin: 0.5rem 0 0;
}
.gym-legende .punktprobe {
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.35rem;
}
