/* Lernzettel (ADR-0064): Vorschau in der App und eigenständiges Dokument für das PDF (body.sheet-print, A4).
   Feste Farben statt Tokens – das PDF ist immer hell und druckfreundlich, unabhängig vom Farbschema der App. */

.sheet {
  color: #0f172a;
  font-family: 'Inter Variable', 'Inter', system-ui, sans-serif;
  font-size: 0.9375rem;
  line-height: 1.45;
}
.sheet h1 {
  margin: 0;
  font-family: 'Plus Jakarta Sans Variable', 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 1.5rem;
  line-height: 1.2;
  color: #0b1b3a;
}
.sheet h2 {
  margin: 0 0 0.5rem;
  padding-bottom: 0.25rem;
  font-family: 'Plus Jakarta Sans Variable', 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 1.0625rem;
  color: #1d4ed8;
  border-bottom: 2px solid #bfd3f7;
}
.sheet p {
  margin: 0 0 0.375rem;
}
.sheet-head {
  margin-bottom: 1rem;
}
.sheet-kicker,
.sheet-date,
.sheet-kind {
  color: #475569;
  font-size: 0.8125rem;
}
.sheet-section {
  margin-bottom: 1.125rem;
}
.sheet-label {
  font-weight: 700;
}
.sheet-formula,
.sheet-note,
.sheet-mistake {
  padding: 0.5rem 0;
  border-bottom: 1px solid #e2e8f0;
  break-inside: avoid;
}
.sheet-math {
  overflow-x: auto;
}
.sheet-math .katex-display {
  margin: 0.25rem 0;
  text-align: left;
}
.sheet-solution {
  color: #15803d;
  font-weight: 600;
}
.sheet ul {
  margin: 0;
  padding-left: 1.25rem;
}

/* Vorschau in der App: das Blatt bleibt hell, auch im dunklen Farbschema */
.sheet-preview {
  background: #ffffff;
}
.sheet-options {
  margin: var(--space-4, 1rem) 0;
  padding: 0;
  border: 0;
}
.check-row {
  display: flex;
  align-items: center;
  gap: var(--space-3, 0.75rem);
  min-height: var(--size-touch, 48px);
}
.check-row input {
  width: 1.375rem;
  height: 1.375rem;
  accent-color: var(--c-primary, #2563eb);
}
.sheet-actions {
  display: grid;
  gap: var(--space-2, 0.5rem);
}

/* PDF: A4 mit Rand, Formeln brechen nicht über Seiten */
@page {
  size: A4;
  margin: 16mm 15mm 18mm;
}
body.sheet-print {
  margin: 0;
  background: #ffffff;
}
body.sheet-print .sheet {
  font-size: 10.5pt;
}
body.sheet-print .sheet h1 {
  font-size: 18pt;
}
body.sheet-print .sheet h2 {
  font-size: 12.5pt;
  break-after: avoid;
}
body.sheet-print .sheet-math {
  overflow: visible;
}
