/* Bingo-Generator (/de/hochzeitsbingo). Ergänzt tool.css + photo-tasks.css (Formularfelder, QR .fa-qr, Druck-Container .fa-print). Tokens aus legal.css */
.bg-note { margin-top: 22px; font-size: .9375rem; color: var(--ink-soft); text-align: center; }
.bg-grid-out { display: grid; gap: 18px; margin-top: 14px; }
.bg-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
.bg-card { display: flex; flex-direction: column; max-width: 820px; margin: 0 auto; padding: 18px 20px 16px; border: 1px dashed var(--line); border-radius: 16px; background: var(--paper); box-shadow: 0 8px 30px -24px rgba(120, 80, 60, .5); }
.bg-s5 { min-width: 540px; }
.bg-s4 { min-width: 440px; }
.bg-top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; min-height: 1em; }
.bg-lab { font-size: .6875rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #a24a1c; }
.bg-no { font-size: .8125rem; color: var(--ink-soft); }
.bg-title { margin-top: 4px; font: 600 1.625rem/1.15 var(--display); letter-spacing: -.01em; text-align: center; text-wrap: balance; }
.bg-title span { font-weight: 500; color: var(--ink-soft); }
.bg-ghead { margin-top: 6px; font: italic 500 1.0625rem/1.3 var(--display); text-align: center; }
.bg-letters { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 10px; }
.bg-letters span { font: 600 1.75rem/1 var(--display); color: var(--coral-600); text-align: center; }
.bg-grid { display: grid; margin-top: 8px; border-top: 1px solid #d9cec2; border-left: 1px solid #d9cec2; }
.bg-s5 .bg-grid { grid-template-columns: repeat(5, 1fr); }
.bg-s4 .bg-grid { grid-template-columns: repeat(4, 1fr); }
.bg-cell { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-width: 0; min-height: 88px; padding: 8px 6px; border-right: 1px solid #d9cec2; border-bottom: 1px solid #d9cec2; font-size: .875rem; line-height: 1.3; text-align: center; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
.bg-s4 .bg-cell { min-height: 96px; font-size: .9375rem; }
.bg-free { background: #fde6e1; color: #8f2a1d; font-weight: 600; }
.bg-free b { font-size: 1.375rem; line-height: 1; color: var(--coral-600); }
.bg-vg .bg-cell { justify-content: space-between; }
.bg-vg .bg-free { justify-content: center; }
.bg-sign { display: block; flex: none; width: 82%; height: 14px; border-bottom: 1px solid #b9ada1; }
.bg-foot { display: flex; align-items: center; gap: 12px; margin-top: 12px; font-size: .8125rem; line-height: 1.4; color: var(--ink-soft); }
.bg-rules { flex: 1; }
.bg-swipe { margin-top: 4px; font-size: .875rem; color: var(--ink-soft); text-align: center; }
@media (min-width: 640px) { .bg-s5, .bg-s4 { min-width: 0; } .bg-swipe { display: none; } }
@media (min-width: 1000px) { .bg-cell { font-size: .9375rem; } }

@media print {
  .bg-page { display: grid; width: 210mm; height: 297mm; overflow: hidden; break-after: page; page-break-after: always; }
  .bg-page:last-child { break-after: auto; page-break-after: auto; }
  .bg-letter .bg-page { width: 215.9mm; height: 279.4mm; }
  .bg-per2 { grid-template-rows: 1fr 1fr; }
  .bg-per1 { grid-template-rows: 1fr; }
  .fa-print .bg-card { min-width: 0; max-width: none; min-height: 0; margin: 0; padding: 8mm 11mm 7mm; overflow: hidden; border: 0; border-radius: 0; background: #fff; box-shadow: none; color: #2b2622; }
  .fa-print .bg-per2 .bg-card + .bg-card { border-top: .25mm dashed #c4bab0; }
  .fa-print .bg-per1 .bg-card { padding: 14mm 14mm 12mm; }
  .fa-print .bg-lab { font-size: 7pt; }
  .fa-print .bg-no { font-size: 8pt; color: #6b625b; }
  .fa-print .bg-title { margin-top: 1mm; font-size: 15pt; }
  .fa-print .bg-title span { color: #6b625b; }
  .fa-print .bg-ghead { margin-top: 1mm; font-size: 10pt; }
  .fa-print .bg-letters { margin-top: 1.5mm; }
  .fa-print .bg-letters span { font-size: 17pt; color: #ec5340; }
  .fa-print .bg-grid { flex: 1; min-height: 0; margin-top: 1.5mm; border-top: .25mm solid #b9ada1; border-left: .25mm solid #b9ada1; }
  .fa-print .bg-s5 .bg-grid { grid-template-rows: repeat(5, minmax(0, 1fr)); }
  .fa-print .bg-s4 .bg-grid { grid-template-rows: repeat(4, minmax(0, 1fr)); }
  .fa-print .bg-cell { min-height: 0; overflow: hidden; gap: 1mm; padding: 1.4mm 1.6mm; border-right: .25mm solid #b9ada1; border-bottom: .25mm solid #b9ada1; font-size: 8.5pt; line-height: 1.2; }
  .fa-print .bg-s4 .bg-cell { font-size: 10pt; }
  .fa-print .bg-per1 .bg-cell { padding: 2.5mm; font-size: 11.5pt; }
  .fa-print .bg-per1 .bg-s4 .bg-cell { font-size: 14pt; }
  .fa-print .bg-free { background: #fde6e1; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .fa-print .bg-free b { font-size: 13pt; color: #ec5340; }
  .fa-print .bg-sign { width: 85%; height: 2.5mm; border-bottom: .2mm solid #8f857c; }
  .fa-print .bg-foot { gap: 3mm; margin-top: 2.5mm; font-size: 7.5pt; line-height: 1.3; color: #6b625b; }
  .fa-print .bg-qr { width: 16mm; height: 16mm; }
  .fa-print .bg-per1 .bg-title { margin-top: 2mm; font-size: 24pt; }
  .fa-print .bg-per1 .bg-ghead { margin-top: 2mm; font-size: 14pt; }
  .fa-print .bg-per1 .bg-letters span { font-size: 28pt; }
  .fa-print .bg-per1 .bg-lab { font-size: 8.5pt; }
  .fa-print .bg-per1 .bg-no { font-size: 10pt; }
  .fa-print .bg-per1 .bg-foot { margin-top: 4mm; font-size: 10.5pt; }
  .fa-print .bg-per1 .bg-qr { width: 24mm; height: 24mm; }
  .fa-print .bg-per1 .bg-free b { font-size: 20pt; }
  .fa-print .bg-per1 .bg-sign { height: 4mm; }
}
