/* Druckansicht: Antwortbögen und Lösungsblatt */

body.print-mode { background: #e9ebf2; color: #111; }
.print-toolbar { position: sticky; top: 0; z-index: 10; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 10px 16px; background: var(--panel); color: var(--text); border-bottom: 1px solid var(--border); }
.print-pages { padding: 24px 0 60px; display: flex; flex-direction: column; align-items: center; gap: 24px; }

.sheet {
  width: 210mm; min-height: 297mm; padding: 16mm 16mm 14mm; background: #fff; color: #111;
  box-shadow: 0 4px 30px #0003; display: flex; flex-direction: column;
  font: 11.5pt/1.4 system-ui, "Segoe UI", Roboto, Arial, sans-serif;
}
.sheet-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; border-bottom: 2.5px solid #111; padding-bottom: 8px; margin-bottom: 10px; }
.sheet-head h2 { margin: 2px 0 0; font-size: 20pt; }
.sheet-quiz { font-size: 10pt; text-transform: uppercase; letter-spacing: .12em; color: #555; }
.team-line { font-size: 13pt; font-weight: 700; display: flex; align-items: flex-end; gap: 6px; }
.team-line .line { width: 70mm; }
.line { display: inline-block; border-bottom: 1.5px solid #333; height: 1.4em; }
.line.grow { flex: 1; }
.sheet-list { margin: 0; padding-left: 9mm; flex: 1; }
.sheet-list > li { padding: 3.2mm 0; border-bottom: 1px dashed #bbb; font-weight: 700; break-inside: avoid; }
.sheet-list > li::marker { font-size: 13pt; }
.sheet-list.with-q > li { padding: 2.5mm 0; }
.sheet-q { font-weight: 600; margin-bottom: 2mm; }
.slot { display: flex; align-items: flex-end; gap: 3mm; font-weight: 400; min-height: 7mm; flex-wrap: wrap; }
.slot.col { flex-direction: column; align-items: stretch; }
.slot-type { font-size: 10pt; opacity: .55; }
.box-opt { display: inline-flex; align-items: center; gap: 1.6mm; margin-right: 4mm; }
.tick { width: 4.5mm; height: 4.5mm; border: 1.5px solid #333; border-radius: 1mm; display: inline-block; }
.cell { display: inline-block; width: 9mm; height: 7mm; border: 1.5px solid #333; border-radius: 1mm; vertical-align: bottom; }
.pair-slot { margin-right: 3mm; }
.opts { display: flex; flex-wrap: wrap; gap: 1mm 6mm; font-weight: 400; font-size: 10pt; color: #333; }
.opts.two { display: grid; grid-template-columns: 1fr 1fr; }
.sheet-foot { margin-top: 6mm; text-align: right; font-weight: 700; font-size: 13pt; }

.solutions .sol-round h3 { margin: 6mm 0 2mm; font-size: 14pt; border-bottom: 1.5px solid #111; padding-bottom: 1mm; }
.solutions table { width: 100%; border-collapse: collapse; }
.solutions td { padding: 1.6mm 2mm; vertical-align: top; border-bottom: 1px solid #ddd; }
.solutions td.n { width: 12mm; white-space: nowrap; color: #555; }
.solutions .sol-a { font-weight: 700; width: 40%; }
.solutions .muted { color: #666; }

@media print {
  @page { size: A4; margin: 0; }
  body.print-mode { background: #fff; }
  .no-print { display: none !important; }
  .print-pages { padding: 0; gap: 0; display: block; }
  .sheet { box-shadow: none; page-break-after: always; break-after: page; min-height: 297mm; }
  .solutions { min-height: 0; }
}

/* Abgabe-Zettel */
.slip-note { font-size: 10pt; color: #444; }
.sheet.slips { height: 297mm; display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: 0; padding: 8mm; }
.slip { border: 1px dashed #888; padding: 5mm 6mm; display: flex; flex-direction: column; gap: 3mm; }
.slip-head { font-size: 8.5pt; color: #666; text-transform: uppercase; letter-spacing: .06em; }
.slip-title { font-weight: 700; font-size: 12pt; }
.slip-line { display: flex; align-items: flex-end; gap: 2mm; font-weight: 600; }
.slip-foot { margin-top: auto; display: flex; flex-direction: column; gap: 1.5mm; font-size: 8.5pt; color: #555; }

/* Jeopardy-Antwortbogen */
.sheet-jeo { font-weight: 700; font-size: 11pt; margin-bottom: 2px; }
.sheet-logo { max-height: 14mm; max-width: 45mm; object-fit: contain; margin-left: auto; }
/* Ablaufplan */
.plan-meta { margin: 0 0 6mm; font-size: 11pt; color: #333; }
.plan-table { width: 100%; border-collapse: collapse; font-size: 11pt; }
.plan-table th { text-align: left; font-size: 9pt; text-transform: uppercase; letter-spacing: .08em; color: #555; padding: 2mm 2mm; border-bottom: 1.5px solid #111; }
.plan-table td { padding: 3mm 2mm; border-bottom: 1px solid #ccc; vertical-align: top; }
.plan-table .n { text-align: right; font-variant-numeric: tabular-nums; }
.plan-at { font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; width: 16mm; }
.plan-what { font-weight: 600; }
.plan-notes { width: 60mm; }
.sheet.plan .muted { color: #666; }
.sheet.plan .small { font-size: 9.5pt; }
.plan-script { margin-top: 1.5mm; font-size: 10pt; white-space: pre-line; color: #222; border-left: 2px solid #999; padding-left: 2mm; }

/* Urkunden */
.sheet.cert { text-align: center; justify-content: center; border: 6px double #111; padding: 18mm 16mm; position: relative; }
.sheet.cert .sheet-logo { position: absolute; top: 10mm; right: 10mm; }
.cert-kicker { font-size: 11pt; text-transform: uppercase; letter-spacing: .18em; color: #555; }
.sheet.cert h1 { font-size: 40pt; margin: 6mm 0 10mm; letter-spacing: .04em; }
.cert-rank { font-size: 22pt; font-weight: 700; }
.cert-team { font-size: 34pt; font-weight: 900; margin: 6mm 0; line-height: 1.1; }
.cert-pts { font-size: 18pt; }
.cert-best { margin-top: 8mm; font-size: 13pt; color: #333; }
.cert-foot { display: flex; justify-content: space-between; margin-top: 24mm; font-size: 11pt; }
.cert-sign { border-top: 1px solid #111; padding-top: 2mm; min-width: 50mm; }
