/* Cheat sheets for the assembly (admin/bidding/help): one A4 page per role, readable on a screen too. */
body.cheatsheets { margin: 0; background: #eef1e4; color: #1f2a22; font: 10pt/1.38 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.cheatsheets__toolbar { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 10px 16px;
  background: #fff; border-bottom: 1px solid #cfd8bf; font-size: 14px; }
.cheatsheets__toolbar a { color: #2f6b3a; }
.cheatsheets__toolbar button, .cheatsheet__print { font: 600 14px system-ui, sans-serif; color: #fff; background: #2f6b3a; border: 0; border-radius: 8px; padding: 8px 14px; cursor: pointer; }
.cheatsheets__toolbar button { margin-left: auto; }

.cheatsheet { box-sizing: border-box; width: 210mm; max-width: calc(100% - 32px); margin: 24px auto; padding: 12mm; background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .12); border-radius: 4px; }
.cheatsheet__header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; border-bottom: 3px solid #2f6b3a;
  padding-bottom: 3mm; margin-bottom: 4mm; }
.cheatsheet__role { font-size: 10pt; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #2f6b3a; }
.cheatsheet h1 { margin: 0; font-size: 20pt; line-height: 1.15; }
.cheatsheet h2 { margin: 0 0 1.5mm; font-size: 11.5pt; color: #2f6b3a; }
.cheatsheet p { margin: 0 0 2mm; }
.cheatsheet ol, .cheatsheet ul { margin: 0 0 2mm; padding-left: 5mm; }
.cheatsheet li { margin-bottom: 1mm; }
.cheatsheet li ul { margin-top: 1mm; }
.cheatsheet__lead { font-size: 11pt; }
.cheatsheet__small { font-size: 9pt; color: #4c5a48; }
.cheatsheet__url, .cheatsheet__mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-weight: 700; word-break: break-all; }
.cheatsheet__fill { display: flex; align-items: flex-end; gap: 2mm; font-weight: 600; }
.cheatsheet__fill span { flex: 1; min-width: 30mm; border-bottom: 1px solid #1f2a22; height: 6mm; }

.cheatsheet__columns { column-count: 2; column-gap: 6mm; }
.cheatsheet__box { break-inside: avoid; margin-bottom: 4mm; padding: 3mm 3.5mm; border: 1px solid #cfd8bf; border-radius: 3mm; }
.cheatsheet__box > :last-child { margin-bottom: 0; }
.cheatsheet__box--help { background: #fdf6ec; border-color: #f0c98a; }

.cheatsheet__join { display: flex; align-items: center; gap: 6mm; margin-bottom: 4mm; }
.cheatsheet__join > div:last-child { flex: 1; }
.cheatsheet__qr { flex: none; width: 38mm; height: 38mm; }
.cheatsheet__qr img, .cheatsheet__qr canvas { width: 100% !important; height: 100% !important; }

@media (max-width: 720px) {
  .cheatsheet { max-width: none; margin: 16px; padding: 16px; }
  .cheatsheet__columns { column-count: 1; }
  .cheatsheet__header { flex-direction: column; }
}

@media print {
  @page { size: A4; margin: 12mm; }
  body.cheatsheets { background: #fff; }
  .cheatsheets__toolbar, .cheatsheet__print { display: none; }
  .cheatsheet { width: auto; max-width: none; margin: 0; padding: 0; box-shadow: none; border-radius: 0; break-after: page; }
  .cheatsheet:last-of-type { break-after: auto; }
  .cheatsheet__box--help { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body[data-only="empfang"] .cheatsheet:not(#empfang),
  body[data-only="mitglieder"] .cheatsheet:not(#mitglieder),
  body[data-only="bietstation"] .cheatsheet:not(#bietstation),
  body[data-only="admin"] .cheatsheet:not(#admin) { display: none; }
}
