/* Gemeinsamer Stil der Pro-Seiten für Lehrkräfte (pro-konto, pro-klassen, pro-klasse,
   pro-verwaltung, pro-karten). Quelle: public/pro.css, der Build kopiert sie nach website/.
   Farbe: Indigo – Pro hebt sich so von den kurzlebigen Klassen (Türkis, Rot) ab. */
:root {
  --pro: #4338ca;
  --pro-dunkel: #312e81;
  --pro-hell: #e0e7ff;
  --pro-sehr-hell: #eef2ff;
  --text: #1e1e2e;
  --grau: #6b7280;
  --linie: #e5e7eb;
  --gut: #15803d;
  --gut-hell: #dcfce7;
  --warn: #b45309;
  --warn-hell: #fef3c7;
  --gefahr: #b91c1c;
  --gefahr-hell: #fee2e2;
  --karte: #ffffff;
  --grund: #f5f6fb;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; background: var(--grund); color: var(--text); line-height: 1.5; }
a { color: var(--pro); }
.kopf { background: linear-gradient(90deg, var(--pro-dunkel), var(--pro)); color: white; }
.kopf-innen { max-width: 1150px; margin: 0 auto; padding: 14px 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.kopf a { color: white; text-decoration: none; }
.kopf .logo { font-weight: 800; font-size: 1.15em; }
.kopf .logo span { font-weight: 600; opacity: 0.8; margin-left: 6px; font-size: 0.85em; letter-spacing: 1px; text-transform: uppercase; }
.kopf nav { display: flex; flex-wrap: wrap; gap: 4px; }
.kopf nav a { padding: 6px 12px; border-radius: 6px; font-size: 0.93em; }
.kopf nav a:hover, .kopf nav a.aktiv { background: rgba(255,255,255,0.18); }
.kopf .wer { margin-left: auto; font-size: 0.9em; opacity: 0.95; display: flex; align-items: center; gap: 10px; }
.kopf .wer button { font: inherit; font-size: 0.85em; background: rgba(255,255,255,0.15); color: white; border: 1px solid rgba(255,255,255,0.35); border-radius: 6px; padding: 4px 10px; cursor: pointer; }
main { max-width: 1150px; margin: 0 auto; padding: 28px 20px 80px; }
h1 { font-size: 1.7em; margin: 0 0 4px; letter-spacing: -0.5px; }
h2 { font-size: 1.2em; margin: 0 0 12px; }
h3 { font-size: 1.02em; margin: 0 0 8px; }
.unterzeile { color: var(--grau); margin: 0 0 22px; }
.feld { background: var(--karte); border-radius: 14px; box-shadow: 0 2px 10px rgba(30,30,80,0.07); padding: 20px 22px; margin-bottom: 22px; }
.feld > :last-child { margin-bottom: 0; }
.hinweis { background: var(--pro-sehr-hell); border-left: 4px solid var(--pro); border-radius: 8px; padding: 12px 16px; margin: 0 0 16px; }
.hinweis.warn { background: var(--warn-hell); border-color: var(--warn); }
.hinweis.gefahr { background: var(--gefahr-hell); border-color: var(--gefahr); }
.hinweis.gut { background: var(--gut-hell); border-color: var(--gut); }
.fehler { color: var(--gefahr); font-weight: 600; margin: 8px 0; }
.ok { color: var(--gut); font-weight: 600; }
.leise { color: var(--grau); font-size: 0.9em; }
.knopf { font: inherit; font-weight: 600; font-size: 0.93em; border-radius: 8px; padding: 8px 16px; cursor: pointer; border: 1px solid var(--pro); background: var(--pro); color: white; }
.knopf:hover { background: var(--pro-dunkel); }
.knopf:disabled { opacity: 0.55; cursor: wait; }
.knopf.zwei { background: white; color: var(--pro); }
.knopf.zwei:hover { background: var(--pro-sehr-hell); }
.knopf.klein { padding: 4px 10px; font-size: 0.84em; }
.knopf.gefahr { background: white; color: var(--gefahr); border-color: #fca5a5; }
.knopf.gefahr:hover { background: var(--gefahr-hell); }
.knopf:focus-visible, input:focus-visible, select:focus-visible, button:focus-visible { outline: 3px solid #818cf8; outline-offset: 2px; }
.reihe { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
label.block { display: block; font-weight: 600; font-size: 0.92em; margin: 12px 0 4px; }
input[type=text], input[type=number], input[type=date], select { font: inherit; padding: 8px 10px; border: 1px solid #c7cbe0; border-radius: 8px; background: white; min-width: 0; }
input.code { font-family: 'DejaVu Sans Mono', Consolas, monospace; letter-spacing: 1px; text-transform: uppercase; }
.code, code { font-family: 'DejaVu Sans Mono', Consolas, monospace; }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: 8px 10px; vertical-align: middle; border-bottom: 1px solid var(--linie); }
thead th { font-size: 0.75em; text-transform: uppercase; letter-spacing: 0.8px; color: var(--pro-dunkel); background: var(--pro-sehr-hell); }
.tabelle { overflow-x: auto; }
.zahl { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.marke { display: inline-block; font-size: 0.75em; font-weight: 700; border-radius: 999px; padding: 2px 9px; background: var(--pro-hell); color: var(--pro-dunkel); white-space: nowrap; }
.marke.gut { background: var(--gut-hell); color: var(--gut); }
.marke.warn { background: var(--warn-hell); color: var(--warn); }
.marke.grau { background: #f3f4f6; color: var(--grau); }
.reiter { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 2px solid var(--linie); margin: 0 0 20px; }
.reiter button { font: inherit; font-weight: 600; background: none; border: none; padding: 10px 14px; cursor: pointer; color: var(--grau); border-bottom: 3px solid transparent; margin-bottom: -2px; }
.reiter button.aktiv { color: var(--pro); border-color: var(--pro); }
.raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.kachel { background: var(--karte); border-radius: 12px; box-shadow: 0 2px 8px rgba(30,30,80,0.07); padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: inherit; border: 2px solid transparent; }
a.kachel:hover { border-color: var(--pro-hell); }
.kachel h3 { margin: 0; }
.balken { display: flex; height: 18px; border-radius: 5px; overflow: hidden; background: #f1f2f7; min-width: 140px; }
.balken span { display: block; height: 100%; }
.k0 { background: #ef4444; } .k1 { background: #f97316; } .k2 { background: #f59e0b; } .k3 { background: #eab308; }
.k4 { background: #84cc16; } .k5 { background: #22c55e; } .k6 { background: #16a34a; } .k7 { background: #15803d; } .k8 { background: #4338ca; }
.legende { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 0.8em; color: var(--grau); margin: 6px 0 10px; }
.legende i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 4px; vertical-align: -1px; }
details.baum summary { cursor: pointer; padding: 4px 0; }
details.baum { margin-left: 4px; }
details.baum details.baum { margin-left: 18px; }
.auswahl-liste { max-height: 420px; overflow: auto; border: 1px solid var(--linie); border-radius: 8px; padding: 8px 12px; background: #fcfcff; }
.auswahl-liste label { display: block; padding: 2px 0; font-size: 0.93em; cursor: pointer; }
dialog { border: none; border-radius: 14px; box-shadow: 0 10px 40px rgba(0,0,0,0.25); max-width: 560px; width: calc(100% - 32px); padding: 22px 24px; }
dialog::backdrop { background: rgba(20,20,50,0.45); }
.gross-code { font-family: 'DejaVu Sans Mono', Consolas, monospace; font-size: 1.5em; font-weight: 800; letter-spacing: 2px; background: var(--pro-sehr-hell); border-radius: 8px; padding: 10px 14px; display: inline-block; user-select: all; }
@media (max-width: 640px) {
  main { padding: 18px 12px 60px; }
  .feld { padding: 16px 14px; }
  .kopf .wer { margin-left: 0; }
}
