/* Behrens-Formular „Spesenabrechnung“, nur beim Drucken sichtbar. */
@font-face { font-family: "Quicksand"; font-weight: 500; src: url("fonts/quicksand-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Quicksand"; font-weight: 600; src: url("fonts/quicksand-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Quicksand"; font-weight: 700; src: url("fonts/quicksand-latin-700-normal.woff2") format("woff2"); }

#print { display: none; }

.blatt {
  --bordeaux: #641e2d;
  --dunkel: #3d1a22;
  position: relative;
  width: 210mm;
  height: 297mm;
  overflow: hidden;
  background: #fff;
  color: #17171a;
  font-family: "Quicksand", system-ui, sans-serif;
  font-weight: 600;
  break-after: page;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}
.blatt:last-child { break-after: auto; }
.blatt > * { position: absolute; box-sizing: border-box; margin: 0; }

.titel {
  color: var(--dunkel);
  font-size: 24.5pt;
  font-weight: 600;
  line-height: 8.55mm;
  letter-spacing: 0.465em;
  white-space: nowrap;
}
.logo { height: auto; }
.linie { background: #000; }
.vlinie { background: #000; }
.label { font-size: 8.3pt; font-weight: 700; color: #000; white-space: nowrap; }

.th, .th-preis {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.05;
}
.th { background: var(--bordeaux); color: #fff; font-size: 9.6pt; font-weight: 700; }
.th small { font-size: 8.6pt; font-weight: 600; }
.th.klein { font-size: 8.2pt; }
.th-preis { background: #f2e6d8; color: var(--dunkel); font-size: 8pt; font-weight: 700; }

.schatten { background: #ebe7e3; }
.pos {
  display: flex;
  align-items: center;
  padding-left: 1.6mm;
  font-size: 11pt;
  font-weight: 700;
  color: #000;
}

.val {
  display: flex;
  align-items: center;
  font-size: 10pt;
  font-weight: 700;
  color: #000;
  white-space: nowrap;
  overflow: hidden;
}
.val.mitte { justify-content: center; }
.val.kopf { align-items: flex-end; padding: 0 1mm 0.6mm; font-size: 11.5pt; }
.val.summe { justify-content: flex-end; align-items: flex-end; padding: 0 1mm 0.8mm; font-size: 13pt; font-weight: 700; }
.val.strecke { line-height: 1.1; }
.val.strecke.s { font-size: 8.4pt; }
.val.strecke.xs { font-size: 7.2pt; white-space: normal; line-height: 1.05; }

.unterschrift { display: flex; align-items: flex-end; gap: 3mm; padding: 0 1mm 0.7mm; }
.unterschrift .val { overflow: visible; font-size: 10.5pt; }
.unterschrift .sig { flex: 1; min-width: 0; height: 15mm; margin-bottom: -2.2mm; display: flex; align-items: flex-end; }
.unterschrift .sig svg { max-width: 100%; height: 100%; }
.firma { color: var(--bordeaux); font-size: 8.4pt; font-weight: 600; line-height: 3.8mm; white-space: nowrap; }
.firma b { font-weight: 700; }
.firma span { font-size: 8.1pt; }

@media print {
  @page { size: A4; margin: 0; }
  html, body { margin: 0; background: #fff; }
  body > *:not(#print) { display: none !important; }
  #print { display: block; }
}
.unterschrift.papier { padding: 0; align-items: flex-end; }
.unterschrift.papier img { width: 100%; height: 100%; object-fit: contain; object-position: left bottom; }

/* Deckblatt eines Monatspakets */
.deck-kopf { display: flex; gap: 8mm; }
.deck-kopf > div { flex: 1; border-bottom: 0.35mm solid #17171a; padding-bottom: 1.2mm; display: flex; flex-direction: column-reverse; gap: 1mm; }
.deck-kopf small { font-size: 8pt; font-weight: 700; }
.deck-kopf b { font-size: 12pt; font-weight: 700; }
.deck-tabelle { border-collapse: collapse; font-size: 10pt; }
.deck-tabelle th { background: var(--bordeaux); color: #fff; font-weight: 700; text-align: left; padding: 2mm 2mm; }
.deck-tabelle td { padding: 1.6mm 2mm; font-weight: 700; }
.deck-tabelle tr.grau td { background: #ece8e3; }
.deck-tabelle .d-pos { width: 12mm; }
.deck-tabelle .d-zahl { text-align: right; width: 24mm; }
.deck-tabelle th:last-child { width: 40mm; }
.deck-tabelle tfoot td { border-top: 0.6mm double #17171a; border-top-style: double; border-top-width: 1mm; font-size: 11pt; }
.deck-tabelle .papier { font-size: 7.5pt; color: var(--bordeaux); border: 0.25mm solid var(--bordeaux); border-radius: 1mm; padding: 0 1mm; margin-left: 1mm; }

/* Kurzanleitung für Fahrer (A4) */
.anl { display: flex; flex-direction: column; gap: 4.2mm; }
.anl > * { position: static; }
.anl-titel { position: static !important; }
.anl-unter { margin: -1mm 0 2mm; font-size: 14pt; color: var(--bordeaux); font-weight: 700; }
.anl-qr { display: flex; gap: 7mm; align-items: center; background: #f6f1ec; border-radius: 3mm; padding: 5mm; margin-bottom: 2mm; }
.anl-code { width: 42mm; height: 42mm; background: #fff; padding: 2.5mm; border-radius: 2mm; flex: none; }
.anl-code svg { width: 100%; height: 100%; display: block; }
.anl-qr b { font-size: 13pt; }
.anl-qr p { margin: 1.5mm 0 0; font-size: 10.5pt; font-weight: 600; }
.anl-qr .anl-url { font-size: 11.5pt; font-weight: 700; color: var(--bordeaux); word-break: break-all; }
.anl-schritt { display: flex; gap: 5mm; align-items: flex-start; }
.anl-nr { flex: none; width: 10mm; height: 10mm; border-radius: 50%; background: var(--bordeaux); color: #fff; font-weight: 700; font-size: 14pt; display: flex; align-items: center; justify-content: center; }
.anl-schritt h3 { margin: 0.6mm 0 1mm; font-size: 13.5pt; }
.anl-schritt p { margin: 0; font-size: 11pt; line-height: 1.45; font-weight: 600; }
.anl-gut { margin-top: auto; border: 0.5mm solid var(--bordeaux); border-radius: 3mm; padding: 4mm 5mm; }
.anl-gut h3 { margin: 0 0 2mm; color: var(--bordeaux); font-size: 12.5pt; }
.anl-gut p { margin: 0 0 1.6mm; font-size: 10.5pt; line-height: 1.4; font-weight: 600; }
