/* Gestaltung „Linie“ für die Bausteine des portierten Plugins (app.css): Anmeldung, Lektion, Material-Seite,
   Selbsteinschätzung, Rückgabe – und die Aufgaben, die das Cockpit in Abgabe und Korrektur zeigt.
   Farben, Schrift, Rundungen, Versalien setzt bereits tokens.css; hier steht nur, was Variablen nicht lösen:
   Linienstärken, Schriftgrößen/-gewichte, Zierelemente (Verläufe, „»“, Farbbalken). Immer nach app.css laden.
   Reine Darstellung – nichts hier ändert Verhalten (wichtig für Klassenarbeiten). */

/* ---------- Schrift und Grundformen ---------- */
body.bkfo-app { font: 400 17px/1.6 var(--font-body); }
.bkfo-app a, .bkfo-item a { color: var(--ink); text-decoration-color: var(--line-strong); text-decoration-thickness: 1px; }
.bkfo-app a:hover, .bkfo-item a:hover { text-decoration-color: currentColor; }
.bkfo-app :focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.bkfo-app strong, .bkfo-item strong, .bkfo-app b, .bkfo-item b { font-weight: 600; }
.bkfo-h1 { font-weight: 600; font-size: clamp(24px, 3.4vw, 30px); line-height: 1.2; letter-spacing: -.022em; margin: 4px 0 18px; }
.bkfo-h2 { font-weight: 600; font-size: 19px; letter-spacing: -.012em; }
.bkfo-kicker, .bkfo-dash-h2, .bkfo-week-label, .bkfo-lab-label, .bkfo-model-label, .bkfo-teacher-label { font-weight: 500; font-size: 13.5px; color: var(--muted); }
.bkfo-kicker::before, .bkfo-dash-h2::before, .bkfo-login-teacher::before, .bkfo-brand-title::after, .bkfo-login-title::after { content: none; }
.bkfo-app blockquote, .bkfo-item blockquote { border-left: 2px solid var(--line-strong); background: var(--bg-2); border-radius: 0 var(--radius) var(--radius) 0; }

/* ---------- Kopfleiste ---------- */
.bkfo-topbar { background: color-mix(in srgb, var(--bg) 90%, transparent); }
.bkfo-back { font-weight: 500; font-size: 15px; }
.bkfo-link { font-weight: 400; color: var(--muted); }
.bkfo-app a.bkfo-link { color: var(--muted); }
.bkfo-app a.bkfo-link:hover { color: var(--ink); }
.bkfo-brand-title { font-weight: 600; font-size: 15px; letter-spacing: -.01em; }
.bkfo-brand-photo { box-shadow: 0 0 0 1px var(--line); }
.bkfo-save.is-error { font-weight: 600; }

/* ---------- Karten, Knöpfe, Felder ---------- */
.bkfo-card, .bkfo-item, .bkfo-lesson-link, .bkfo-dialog, .bkfo-login-card, .bkfo-hero, .bkfo-pin { border-radius: var(--radius-lg); }
.bkfo-btn { font-weight: 500; font-size: 16px; border: 1px solid var(--line-strong); border-radius: var(--radius); min-height: 46px; padding: 9px 18px; }
.bkfo-btn:hover { border-color: var(--line-strong); background: var(--soft); }
.bkfo-btn-primary, .bkfo-lockbar .bkfo-lock { border-color: var(--primary); }
.bkfo-btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.bkfo-btn-arrow::after { content: "→"; color: currentColor; opacity: .65; font-size: 1em; }
.bkfo-field span { font-weight: 500; font-size: 14.5px; }
.bkfo-field input, .bkfo-text, .bkfo-match-select { border: 1px solid var(--line-strong); background: var(--card); border-radius: var(--radius); }
.bkfo-text:focus, .bkfo-gap:focus, .bkfo-match-select:focus, .bkfo-field input:focus { border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink) 12%, transparent); }
.bkfo-text:disabled, .bkfo-text-ro { background: var(--bg-2); border-color: var(--line); }
.bkfo-gap { border-bottom: 1.5px solid var(--ink); border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
.bkfo-note, .bkfo-alert, .bkfo-banner, .bkfo-hintbox, .bkfo-source { border-radius: var(--radius); }
.bkfo-dialog { border: 1px solid var(--line); }
.bkfo-dialog::backdrop { background: rgba(0, 0, 0, .4); backdrop-filter: none; -webkit-backdrop-filter: none; }
.bkfo-dialog h2 { font-weight: 600; font-size: 19px; letter-spacing: -.012em; }
.bkfo-locked { border: 1px dashed var(--line-strong); }

/* ---------- Anmeldung: weiße Seite, eine Karte ---------- */
.bkfo-login { background: var(--bg-2); }
.bkfo-login-bg { display: none; }
.bkfo-login-title { font-weight: 600; letter-spacing: -.022em; }
.bkfo-login-teacher { font-weight: 400; font-size: 15px; color: var(--muted); margin-top: 4px; }
.bkfo-login-card { box-shadow: none; padding: 26px; }
.bkfo-login-card h1 { font-weight: 600; font-size: 20px; letter-spacing: -.015em; }
.bkfo-login-photo { box-shadow: 0 0 0 1px var(--line); }

/* ---------- Übersicht, Zeitleiste, Pinnwand, Material ---------- */
.bkfo-lesson-link:hover, .bkfo-hero:hover { border-color: var(--line-strong); box-shadow: none; }
.bkfo-lesson-title { font-weight: 600; font-size: 17px; letter-spacing: -.008em; }
.bkfo-badge { font-weight: 500; font-size: 12px; padding: 1px 7px; background: var(--soft); color: var(--muted); }
.bkfo-status { font-weight: 500; font-size: 12.5px; padding: 3px 9px; }
.bkfo-status-new { background: var(--ink); color: var(--bg); }
.bkfo-hero { box-shadow: none; }
.bkfo-hero::before, .bkfo-hero::after { content: none; }
.bkfo-hero-title { font-weight: 600; font-size: clamp(21px, 3vw, 26px); line-height: 1.2; letter-spacing: -.02em; }
.bkfo-meter { height: 6px; border-radius: 3px; }
.bkfo-meter > span { background: var(--brand); border-radius: 3px; }
.bkfo-pin, .bkfo-pin-exam, .bkfo-pin-date, .bkfo-pin-info { border-left: 1px solid var(--line); }
.bkfo-pin-exam { border-color: color-mix(in srgb, var(--bad) 30%, var(--line)); }
.bkfo-pin-icon { border-radius: var(--radius); }
.bkfo-pin-info .bkfo-pin-icon { background: var(--soft); color: var(--muted); }
.bkfo-pin-type, .bkfo-mat-kind { font-weight: 500; }
.bkfo-pin-title { font-weight: 600; font-size: 16.5px; }
.bkfo-pin-count { font-weight: 500; }
.bkfo-mat-title { font-weight: 500; }

/* ---------- Lektion ---------- */
.bkfo-item { padding: 20px 22px; }
.bkfo-info-title { font-weight: 600; font-size: 18px; letter-spacing: -.01em; }
.bkfo-num { background: var(--soft); color: var(--ink); font-weight: 600; font-size: 14px; min-width: 28px; height: 28px; border-radius: var(--radius); }
.bkfo-prompt strong { font-weight: 600; }
.bkfo-score-chip { font-weight: 500; }
.bkfo-option, .bkfo-order-item, .bkfo-order-btns button, .bkfo-order-confirm { border: 1px solid var(--line-strong); border-radius: var(--radius); }
.bkfo-step span { border: 1px solid var(--line-strong); border-radius: var(--radius); font-weight: 500; }
.bkfo-option:hover, .bkfo-step span:hover { border-color: var(--faint); }
.bkfo-option:has(input:checked) { border-color: var(--choice); box-shadow: inset 0 0 0 1px var(--choice); }
.bkfo-option.is-key, .bkfo-option.is-key:has(input:checked) { border-color: var(--ok); box-shadow: inset 0 0 0 1px var(--ok); }
.bkfo-option.is-wrong, .bkfo-option.is-wrong:has(input:checked) { border-color: var(--bad); box-shadow: inset 0 0 0 1px var(--bad); }
.bkfo-option.is-key::after, .bkfo-option.is-wrong::after, .bkfo-mark { font-weight: 600; }
.bkfo-step input:focus-visible + span { outline: 2px solid var(--ink); }
.bkfo-order-item::before { font-weight: 600; border-radius: var(--radius); }
.bkfo-source-title, .bkfo-checklist legend, .bkfo-wc-n { font-weight: 600; }
.bkfo-match-left { font-weight: 500; }
.bkfo-key { font-weight: 500; }
.bkfo-feedback { border: 1px solid color-mix(in srgb, var(--ok) 25%, var(--line)); border-left-width: 1px; border-radius: var(--radius); }
.bkfo-feedback-score { font-weight: 600; }
.bkfo-extras { border: 1px dashed var(--line-strong); background: var(--bg-2); border-radius: var(--radius-lg); }
.bkfo-extras-title { font-weight: 600; font-size: 16px; }
.bkfo-extras-sub { font-style: normal; }
.bkfo-extras-progress { font-weight: 500; }
.bkfo-submitbar { background: color-mix(in srgb, var(--bg) 92%, transparent); }

/* ---------- Übung, Klassenarbeit, Rückgabe: Kästen mit feinem Rand statt Farbbalken ---------- */
.bkfo-practice-note, .bkfo-exam-banner, .bkfo-return-banner { border: 1px solid var(--line); border-radius: var(--radius); }
.bkfo-practice-note, .bkfo-exam-banner { border-color: color-mix(in srgb, var(--warn-mark) 40%, var(--line)); }
.bkfo-return-banner { border-color: var(--accent-line); }
.bkfo-practice-link { border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: none; }
.bkfo-practice-link:hover { border-color: var(--line-strong); }
.bkfo-practice-result .bkfo-retry { font-weight: 500; border-color: var(--line-strong); }
.bkfo-model { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); }
.bkfo-sample { border-radius: var(--radius); }
.bkfo-sample[open] { border-left: 1px solid var(--line-strong); }
.bkfo-sample > summary { font-weight: 500; color: var(--ink); }
.bkfo-return-result { border: 1px solid var(--line-strong); border-radius: var(--radius-lg); box-shadow: none; }
.bkfo-return-table tr.is-total th, .bkfo-return-table tr.is-total td { font-weight: 600; border-top: 1px solid var(--ink); }
.bkfo-return-grade, .bkfo-toast, .bkfo-offline-bar { border-radius: var(--radius); }
.bkfo-section-points, .bkfo-draft-chip, .bkfo-exam-timer { border-radius: var(--radius-sm); font-weight: 600; }
.bkfo-toast, .bkfo-offline-bar { font-weight: 500; }
.bkfo-unanswered, .bkfo-queued { font-weight: 500; }
.bkfo-pin-more .bkfo-pin-text { border-left: 1px solid var(--line-strong); }
.bkfo-teacher { border: 1px dashed var(--line-strong); border-radius: var(--radius); background: var(--bg-2); }
.bkfo-teacher-sub, .bkfo-preview-bar a { font-weight: 600; }

/* ---------- Cockpit: Plugin-Bausteine in den neuen Seiten ---------- */
.ck .bkfo-item { box-shadow: none; }
