/* examen: Stile nur für diesen Bereich; Grundbausteine in app.css. */

.ex-naechste { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: -8px 0 20px; font-size: var(--t-lese); }
.ex-naechste b { font-weight: 600; }

.ex-norm { display: block; margin-top: 2px; font-size: var(--t-neben); color: var(--text-2); }
.ex-rubrik { margin: 18px 0 6px; }
.ex-absatz { font-size: var(--t-text); line-height: 1.5; margin: 8px 0 0; text-wrap: pretty; }
.ex-gross { font-size: var(--t-titel); font-weight: 700; letter-spacing: -.02em; line-height: 1.15; margin: 0; }
.ex-eng { margin: 4px 0 4px; line-height: 1.45; }
.ex-aktion { margin: 14px 0 4px; }
.ex-aktion .knopf { min-height: 44px; }
.ex-fuss { margin: 24px 0 0; max-width: 70ch; }

.ex-liste { list-style: none; margin: 0; padding: 0; }
.ex-liste li { padding: 8px 0; border-top: 1px solid var(--linie); font-size: var(--t-text); line-height: 1.5; text-wrap: pretty; }
.ex-liste li:first-child { border-top: 0; padding-top: 0; }
.ex-liste b { font-weight: 600; }
.ex-klein { margin-top: 10px; }
.ex-klein li { font-size: var(--t-text); color: var(--text-2); padding: 6px 0; }
.ex-klein li:first-child { border-top: 1px solid var(--linie); padding-top: 6px; }

.ex-haken .aufgabe-text { font-size: var(--t-text); line-height: 1.45; }
.ex-haken .check { position: relative; }
/* Tippfläche 44 px, der sichtbare Kreis bleibt 24 px */
.ex-haken .check::after { content: ""; position: absolute; inset: -10px; }

/* Fristen als Schiene */
.ex-schiene { list-style: none; position: relative; margin: 0; padding: 0 0 0 26px; }
.ex-schiene::before { content: ""; position: absolute; left: 6px; top: 14px; bottom: 14px; width: 2px; border-radius: 1px; background: var(--linie); }
.ex-frist { position: relative; padding: 8px 0 12px; }
.ex-punkt {
  position: absolute; left: -26px; top: 12px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--grund); border: 2px solid var(--text-3);
}
.ex-vorbei .ex-punkt { background: var(--linie); border-color: transparent; }
.ex-dran .ex-punkt { background: var(--studium); border-color: var(--studium); }
.ex-laeuft .ex-punkt { box-shadow: 0 0 0 4px var(--studium-weich); }
.ex-vorbei > :not(.ex-punkt) { opacity: .55; }
.ex-frist-kopf { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 2px 12px; font-size: var(--t-neben); color: var(--text-2); }
.ex-dran .ex-frist-kopf { color: var(--studium); font-weight: 600; }
.ex-frist-titel { font-size: var(--t-lese); font-weight: 600; margin: 2px 0 0; }
.ex-frist-text { font-size: var(--t-text); line-height: 1.5; color: var(--text-2); margin: 3px 0 0; text-wrap: pretty; }

/* Klausurplan */
.ex-klausuren { list-style: none; margin: 0; padding: 0; }
.ex-woche { margin: 14px 0 2px; }
.ex-woche:first-child { margin-top: 0; }
.ex-klausur { display: grid; grid-template-columns: 88px 44px minmax(0, 1fr) auto; align-items: baseline; gap: 8px; padding: 9px 0; border-top: 1px solid var(--linie); font-size: var(--t-text); }
.ex-woche + .ex-klausur { border-top: 0; }
.ex-klausur-datum { color: var(--text-2); white-space: nowrap; }
.ex-klausur b { font-weight: 700; white-space: nowrap; }
.ex-klausur-fach { min-width: 0; overflow-wrap: anywhere; hyphens: auto; }
.ex-vorbei.ex-klausur > * { opacity: .5; }
.ex-ort { margin: 12px 0 0; line-height: 1.45; }

/* Noten des Erstversuchs und Rechner */
.ex-noten { list-style: none; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin: 6px 0 10px; padding: 0; text-align: center; }
.ex-noten > * { display: grid; gap: 2px; padding: 8px 0; border-radius: var(--r-kachel); background: var(--flaeche); min-width: 0; }
.ex-note-k { font-size: var(--t-mini); font-weight: 600; letter-spacing: .04em; color: var(--text-2); white-space: nowrap; }
.ex-note-p { font-size: var(--t-betont); font-weight: 700; line-height: 1.1; }
.ex-unter .ex-note-p { color: var(--text-2); }
.ex-felder label { padding: 6px 4px 4px; gap: 4px; cursor: text; }
.ex-felder input {
  width: 100%; min-width: 0; height: 40px; border: 0; border-radius: var(--r-kachel); background: var(--kachel);
  text-align: center; font-size: var(--t-betont); font-weight: 700; font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield;
}
.ex-felder input::-webkit-outer-spin-button, .ex-felder input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ex-felder input:focus-visible { outline: 2px solid var(--studium); outline-offset: 0; }
.ex-ergebnis { font-size: var(--t-text); line-height: 1.5; color: var(--text-2); margin: 0; }
.ex-ergebnis b { color: var(--text); font-weight: 600; }
.ex-ergebnis .ex-gut { color: var(--gruen); }
.ex-ergebnis .ex-schlecht { color: var(--rot); }

.ex-skala { width: 100%; border-collapse: collapse; font-size: var(--t-text); margin-bottom: 6px; }
.ex-skala th { text-align: left; font-size: var(--t-klein); font-weight: 600; color: var(--text-2); padding: 0 8px 6px 0; }
.ex-skala td { padding: 7px 8px 7px 0; border-top: 1px solid var(--linie); }
.ex-skala td:first-child { font-weight: 500; }

/* Amt */
.ex-amt { font-style: normal; font-size: var(--t-text); line-height: 1.5; margin-bottom: 10px; }
.ex-amt b { font-weight: 600; }
.ex-kontakt { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 8px; padding: 8px 0; border-top: 1px solid var(--linie); font-size: var(--t-text); }
.ex-kontakt > span { color: var(--text-2); font-size: var(--t-neben); padding-top: 2px; }
.ex-kontakt a { overflow-wrap: anywhere; }
.ex-links { list-style: none; margin: 0; padding: 0; }
.ex-links a { display: block; padding: 7px 0; font-size: var(--t-text); font-weight: 500; line-height: 1.35; }

/* Prüfungsordnung: Klappen mit Lesespalte */
.ex-klappe { border-top: 1px solid var(--linie); }
.ex-klappe:first-of-type { border-top: 0; }
.ex-klappe > summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  min-height: 48px; padding: 8px 0; font-size: var(--t-lese);
}
.ex-klappe > summary::-webkit-details-marker { display: none; }
.ex-klappe > summary::after {
  content: ""; flex: none; width: 8px; height: 8px; margin-right: 4px;
  border-right: 2px solid var(--text-3); border-bottom: 2px solid var(--text-3);
  transform: rotate(45deg); transition: transform 200ms var(--ease);
}
.ex-klappe[open] > summary::after { transform: rotate(-135deg); }
.ex-klappe > summary:focus-visible { outline: 2px solid var(--studium); outline-offset: 2px; border-radius: var(--r-feld); }
.ex-text { max-width: 68ch; padding: 0 0 18px; font-size: var(--t-lese); line-height: 1.6; hyphens: auto; }
.ex-text > :first-child { margin-top: 0; }
.ex-text h2 { font-size: var(--t-betont); letter-spacing: -.01em; margin: 26px 0 8px; }
.ex-text h3 { font-size: var(--t-lese); margin: 18px 0 4px; }
.ex-text p { margin: 0; text-wrap: pretty; }
.ex-text p + p { margin-top: .7em; }
.ex-text ul, .ex-text ol { padding-left: 1.4em; margin: .5em 0; }
.ex-text li + li { margin-top: .3em; }
.ex-stufe {
  display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; margin-left: 4px;
  border-radius: var(--r-feld); font-size: var(--t-mini); font-weight: 700; vertical-align: 1px;
}
.ex-stufe-r { background: var(--studium); color: #fff; }
.ex-stufe-g { background: var(--flaeche); color: var(--text-2); }

/* Eine Spalte (iPad hochkant): Karten nach Dringlichkeit statt nach Spalte, Klausurplan gleich nach der Anmeldung. */
@media (max-width: 1100px) {
  .ex-raster > .spalte { display: contents; }
  .ex-o1 { order: 1; } .ex-o2 { order: 2; } .ex-o3 { order: 3; } .ex-o4 { order: 4; } .ex-o5 { order: 5; } .ex-o6 { order: 6; }
  .ex-o7 { order: 7; } .ex-o8 { order: 8; } .ex-o9 { order: 9; } .ex-o10 { order: 10; } .ex-o11 { order: 11; } .ex-o12 { order: 12; }
}

@media (max-width: 700px) {
  .ex-noten { gap: 4px; }
  .ex-note-k { font-size: var(--t-mini); letter-spacing: 0; }
  .ex-note-p { font-size: var(--t-betont); }
  .ex-felder label { padding: 5px 2px 3px; }
  .ex-felder input { font-size: var(--t-lese); height: 38px; }
  .ex-klausur { grid-template-columns: 76px 40px minmax(0, 1fr); }
  .ex-klausur > :last-child { grid-column: 3; }
}

/* Normstand: Gesetzesänderungen je Rechtsgebiet als Klappe. */
.ex-ns { border-top: 1px solid var(--linie); padding: 8px 0; }
.ex-ns > summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; }
.ex-ns > summary::-webkit-details-marker { display: none; }
.ex-ns-liste li { display: flex; flex-direction: column; gap: 2px; }
.ex-ns-kern { font-size: var(--t-neben); color: var(--text-2); text-wrap: pretty; }
.ex-ns-ers { color: var(--text-2); font-variant-numeric: tabular-nums; }
