/* Gemeinsame Bausteine der kompass-Seiten (Lernende und Dashboard): Rahmen, Kopfleiste mit Marke, Label mit Linie, Auswahl,
   Rückweg, Knöpfe, Seitenbreite. Später liefert abutools/gestaltung/dist/rahmen.css dieselbe Datei.
   Alle Werte aus tokens.css. Gestaltung: docs/2026-10-02-kurs-design/README.md, «Kopfleiste» und «Gemeinsame Bausteine».
   Reihenfolge in jeder Seite: tokens.css, rahmen.css, seitenspezifisches CSS. */

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--grund); color: var(--tinte); font: 400 17px/26px var(--font-sans); -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; }
b, strong { font-weight: 600; }   /* geladen sind nur Plex 400, 500 und 600: kein künstliches 700 */
/* Gewichte (README «Schriftgewicht und lange Titel»): 600 nur Seitentitel, App-Name und grosse Zahlen; 500 Verben, Wege und Knöpfe; alles andere 400 */
p { margin: 0; }
.hidden { display: none !important; }

/* Kopfleiste (Lernende und Dashboard, README «Kopfleiste mit Logo» und «Gemeinsame Bausteine» 1 und 11): auf dem Handy fest oben.
   Links das Logo (Balken in Gelb mit Kontur als Rücken, Name, darunter abulab.ch), rechts der Ort. Auf Lehrpersonen-Seiten steht
   davor die Marke LEHRPERSON, und body.lehrperson zeichnet den Rand rechts. */
.kopfleiste { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--flaeche); border-bottom: 1px solid var(--linie); }
.logo { flex: none; display: flex; align-items: stretch; gap: 10px; color: var(--tinte); text-decoration: none; }
.logo .balken { flex: none; width: 12px; height: 32px; border-radius: 2px; background: var(--leuchtstift); outline: 1.5px solid var(--auf-leuchtstift); outline-offset: -1.5px; }
.logo .w { display: flex; flex-direction: column; justify-content: space-between; }
.logo .n { font: 600 20px/20px var(--font-sans); letter-spacing: -.01em; }
.logo .dom { font: 500 11px/12px var(--font-mono); letter-spacing: .06em; color: var(--tinte-leise); }
.kopfleiste .ort { margin-left: auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: right; }
.kopfleiste .ort .rest { display: none; }   /* Handy: nur die Art («AUSWERTUNG», «INHALT»), Desktop mit Einheit und Klasse */
.marke { margin-left: auto; padding: 2px 7px; border: 1.5px solid var(--loesung); border-radius: 3px; color: var(--loesung); font: 500 11px/14px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.kopfleiste .marke + .ort { margin-left: 0; }
@media (min-width: 900px) {
    .kopfleiste .ort .rest { display: inline; }
}

/* Lehrpersonen-Rand (README «Marke und Rand Lehrperson»): Streifen rechts über die volle Höhe, nie bei Lernenden.
   Die Klasse lehrperson steht am body (dashboard.html fest, app.js im Inhalt der Lehrperson). */
.lehrperson::after { content: ''; position: fixed; top: 0; right: 0; bottom: 0; width: 4px; background: var(--loesung); z-index: 5; pointer-events: none; }
@media (min-width: 700px) { .lehrperson::after { width: 6px; } }

/* Umschalter Auswertung | Inhalt (README «Umschalter»): Zeile unter der Kopfleiste; aktiv --tinte mit 2 px darunter, inaktiv --tinte-leise */
.wechsel { display: flex; align-items: center; gap: 18px; max-width: 720px; margin: 0 auto; padding: 4px 16px 0; }
.wechsel .zurueck { white-space: nowrap; }
.wechsel .tabs { flex: 1; min-width: 0; display: flex; gap: 22px; border-bottom: 1px solid var(--linie); }
.wechsel .tab { padding: 12px 0 10px; font: 500 12px/16px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; color: var(--tinte-leise); }
.wechsel .tab.an { color: var(--tinte); box-shadow: inset 0 -2px 0 var(--tinte); }
.wechsel .rest { display: none; margin-left: auto; align-self: center; font: 400 13px/18px var(--font-sans); color: var(--tinte-leise); }
@media (min-width: 900px) {
    .wechsel { gap: 24px; max-width: 1120px; padding: 16px 40px 0; }
    .wechsel .rest { display: block; }
}

/* Label über einer Liste: immer 2 px --tinte darunter (README Punkt 4) */
.label.linie { display: block; padding-bottom: 6px; border-bottom: 2px solid var(--tinte); }

/* Auswahl in Listen (README Punkt 2): eine Fläche innerhalb der Zeile, 4 px von den Linien, seitlich 8 px über die Spalte.
   Zeilenhöhe, Linien und Text bleiben. Gelb mit dunkler Schrift auf allem darin, auch im dunklen Thema. */
.auswahl { position: relative; }
.auswahl > * { position: relative; }
.auswahl.an::before { content: ''; position: absolute; top: 4px; bottom: 4px; left: -8px; right: -8px; border-radius: 4px; background: var(--leuchtstift); }
.auswahl.an, .auswahl.an * { color: var(--auf-leuchtstift); }
/* Fokusring: ein --tinte-Ring wäre im dunklen Thema weiss um das Gelb; er liegt innen auf dem Gelb, in --auf-leuchtstift */
.auswahl.an:focus-visible { outline: none; }
.auswahl.an:focus-visible::before { outline: 2px solid var(--auf-leuchtstift); outline-offset: -4px; }

/* Rückweg (README Punkt 5): «‹ ÜBERSICHT» als Label in --tinte, kein Blau in kompass */
.icon { width: 20px; height: 20px; flex: none; }
.icon.vor { transform: scaleX(-1); } /* Weg nach rechts = «zurück» gespiegelt */
.zurueck { display: inline-flex; align-items: center; gap: 6px; padding: 8px 0; border: 0; background: none; text-decoration: none; cursor: pointer; font: 500 12px/16px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--tinte); }

/* Knöpfe: Sekundärknopf mit Rahmen; destruktiv ist erst auf der Bestätigungsseite eine rote Fläche (--falsch / --auf-falsch) */
.knopf { min-height: 48px; padding: 12px 16px; border: 1.5px solid var(--linie-stark); border-radius: var(--radius-klein); background: transparent; color: var(--tinte); font: 500 17px/24px var(--font-sans); cursor: pointer; }
.knopf:active { background: var(--hinterlegt); }
.knopf.gefahr { border-color: var(--falsch); background: var(--falsch); color: var(--auf-falsch); }

main { max-width: 720px; margin: 0 auto; padding: 16px 16px 40px; }
