/* Print sheets for "Stammgast werden" (Dashboard::Customers::SignupPrintsController).
   Loaded after brand.css, which carries the tokens on .ab-guest. Unlayered and
   without :has(), nesting or container queries, like the other public styles.

   Tischaufsteller   A4 = 2 columns x 2 rows of A6 (105 x 148.5 mm). Cut once
                     down the middle, fold once across: two tents, front and
                     back, the back rotated by 180 degrees so it reads upright.
   Rechnungsbeileger A4 = 2 columns x 4 rows of 105 x 74.25 mm: eight slips.

   Nothing relies on background colours: a printer with "background graphics"
   switched off still produces the same sheet. */

@page { size: A4 portrait; margin: 0; }

.ab-print { margin: 0; background: var(--ab-surface-muted); color: var(--ab-ink); font-family: var(--ab-font); }

/* Screen only: what to do with the sheet, and the print button. */
.print-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; max-width: 210mm; margin: 24px auto 16px; padding: 16px; border: 1px solid var(--ab-rule); border-radius: 4px; background: var(--ab-surface); }
.print-bar strong { display: block; font-size: 18px; font-weight: 800; letter-spacing: -.03em; }
.print-bar p { max-width: 62ch; margin: 4px 0 0; color: var(--ab-muted); font-size: 14px; line-height: 1.5; }
.print-bar__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.print-bar__btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 16px; border: 1px solid var(--ab-control); border-radius: 4px; background: transparent; color: var(--ab-ink); font: inherit; font-size: 15px; font-weight: 700; text-decoration: none; cursor: pointer; }
.print-bar__btn--primary { border-color: var(--ab-ink); background: var(--ab-accent); color: var(--ab-accent-ink); }
.print-bar__btn:focus-visible { outline: 3px solid var(--ab-focus); outline-offset: 4px; }

.print-sheet { box-sizing: border-box; display: grid; width: 210mm; height: 297mm; margin: 0 auto 24px; background: #FFFFFF; color: #24211E; }
.print-sheet--tent { grid-template-columns: 105mm 105mm; }
.print-sheet--inserts { grid-template-columns: 105mm 105mm; grid-template-rows: 74.25mm 74.25mm 74.25mm 74.25mm; }

.print-tent { box-sizing: border-box; display: grid; grid-template-rows: 148.5mm 148.5mm; border: 1px dashed #D6CFC3; }
.print-tent__back { height: 100%; transform: rotate(180deg); }
.print-tent > .print-tent__panel { border-bottom: 1px dashed #D6CFC3; }
.print-tent__panel { box-sizing: border-box; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4mm; height: 100%; padding: 8mm 7mm; text-align: center; }

.print-card__eyebrow { margin: 0; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #686158; }
.print-card__name { font-family: var(--ab-font-display); margin: 0; font-size: 26px; font-weight: 800; line-height: 1.05; letter-spacing: -.035em; overflow-wrap: anywhere; }
.print-card__line { margin: 0; font-size: 14px; line-height: 1.4; color: #24211E; }
.print-card__qr { display: block; width: 44mm; height: 44mm; }
.print-card__url { margin: 0; font-size: 12px; font-weight: 700; overflow-wrap: anywhere; }
.print-card__foot { margin: 0; font-size: 10px; color: #686158; }

.print-insert { box-sizing: border-box; display: flex; align-items: center; gap: 5mm; height: 100%; padding: 6mm; border: 1px dashed #D6CFC3; text-align: left; }
.print-insert__qr { display: block; flex: none; width: 26mm; height: 26mm; }
.print-insert__body { display: grid; gap: 1.5mm; min-width: 0; }
.print-insert__name { font-family: var(--ab-font-display); margin: 0; font-size: 16px; font-weight: 800; line-height: 1.1; letter-spacing: -.03em; overflow-wrap: anywhere; }
.print-insert .print-card__line { font-size: 11px; }
.print-insert .print-card__url { font-size: 10px; }

@media screen {
  .print-sheet { border: 1px solid var(--ab-rule); }
}

@media print {
  .print-bar { display: none; }
  .ab-print { background: #FFFFFF; }
  .print-sheet { width: 210mm; height: 297mm; margin: 0; border: 0; }
}
