/* A4-Handzettel. Auf dem Bildschirm als Blattvorschau, im Druck randgenau.
   Muss schwarz-weiß lesbar sein: Kategorie steht als Symbol und Nummer, nicht nur als Farbe. */

@page {
  size: A4;
  margin: 11mm 12mm 12mm;
}

.druckzettel {
  --dz-text: #111;
  --dz-leise: #444;
  --dz-linie: #9aa5ad;
  width: 186mm;
  color: var(--dz-text);
  font-family: var(--schrift);
  font-size: 9.6pt;
  line-height: 1.32;
  background: #fff;
}

.druckzettel .zw {
  display: inline-flex;
  flex-direction: column;
}

.druckzettel .zw > .de:not(.nur) {
  font-size: 0.82em;
  color: var(--dz-leise);
}

.druckzettel [dir='rtl'] {
  text-align: right;
}

.druckzettel .symbol {
  color: var(--dz-text);
}

/* Kopf */
.dz-kopf {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5mm;
  align-items: start;
  padding-bottom: 3mm;
  border-bottom: 0.6mm solid #111;
  margin-bottom: 3mm;
}

.dz-titel {
  font-size: 17pt;
  line-height: 1.15;
  margin: 0 0 1.5mm;
  color: #111;
}

.dz-titel .zw > .de:not(.nur) {
  font-size: 0.6em;
  font-weight: 600;
}

.dz-einleitung {
  margin: 0 0 1.5mm;
}

.dz-aussteller {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1mm 3mm;
  align-items: baseline;
}

.dz-label {
  display: inline-flex;
  align-items: center;
  gap: 1.2mm;
  font-weight: 700;
}

.dz-kontakt {
  color: var(--dz-leise);
}

.dz-digital {
  display: flex;
  gap: 3mm;
  align-items: center;
  max-width: 78mm;
  border: 0.3mm solid var(--dz-linie);
  border-radius: 2mm;
  padding: 2mm;
}

.dz-digital .qr {
  width: 27mm;
  height: 27mm;
  flex: none;
}

.dz-digital-text {
  display: flex;
  flex-direction: column;
  gap: 1mm;
}

.dz-klein {
  font-size: 8pt;
}

.dz-code {
  font-size: 8.5pt;
}

.dz-code b {
  font-size: 11pt;
  letter-spacing: 0.08em;
}

/* Testbetrieb: schmales Band über dem Kopf, verdeckt nichts */
.dz-test {
  display: flex;
  justify-content: center;
  border: 0.5mm dashed #111;
  border-radius: 1mm;
  padding: 0.8mm 3mm;
  margin: 0 0 2.5mm;
  font-weight: 800;
  font-size: 9.5pt;
  letter-spacing: 0.03em;
  text-align: center;
}

.dz-test .zw {
  flex-direction: row;
  gap: 3mm;
  align-items: baseline;
}

/* Übersichtskarte */
.dz-karte {
  margin: 0 0 3mm;
  break-inside: avoid;
}

.dz-karte img {
  display: block;
  width: 186mm;
  height: 70mm;
  object-fit: cover;
  border: 0.3mm solid var(--dz-linie);
}

.dz-quelle {
  margin: 0.8mm 0 0;
  font-size: 6.5pt;
  color: var(--dz-leise);
}

/* Stellen */
.dz-stellen {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dz-stelle {
  display: grid;
  grid-template-columns: 11mm 1fr 30mm;
  gap: 3mm;
  padding: 2.6mm 0;
  border-bottom: 0.3mm solid var(--dz-linie);
  break-inside: avoid;
  page-break-inside: avoid;
}

.dz-nrspalte {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5mm;
}

.dz-nr {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 9mm;
  height: 9mm;
  border-radius: 50%;
  background: var(--farbe);
  color: var(--schrift);
  font-weight: 800;
  font-size: 12pt;
  /* Ring hält die Nummer auch im Schwarz-Weiß-Druck lesbar */
  box-shadow: 0 0 0 0.4mm #111;
  print-color-adjust: exact;
  -webkit-print-color-adjust: exact;
}

.dz-art {
  font-size: 12.5pt;
  margin: 0;
  color: #111;
}

.dz-name {
  font-weight: 600;
  margin: 0.5mm 0 0.5mm;
}

.dz-adresse,
.dz-angabe {
  display: flex;
  gap: 1.5mm;
  align-items: baseline;
  margin: 0.6mm 0;
}

.dz-adresse {
  font-weight: 600;
}

.dz-beschreibung {
  margin: 1mm 0;
}

.dz-ltr {
  direction: ltr;
  unicode-bidi: isolate;
}

.dz-termin {
  display: flex;
  gap: 2mm;
  align-items: flex-start;
  margin: 1.5mm 0;
  padding: 1.5mm 2mm;
  border: 0.5mm solid #111;
  border-radius: 1.5mm;
  font-weight: 700;
  font-size: 10.5pt;
}

.dz-termin .dz-label {
  display: block;
  font-size: 8pt;
}

.dz-mitbringen,
.dz-hinweis {
  margin: 1.5mm 0 0.5mm;
}

.dz-mitbringen ul {
  list-style: none;
  margin: 0.8mm 0 0;
  padding: 0;
  columns: 2;
  column-gap: 5mm;
}

.dz-mitbringen li {
  display: flex;
  gap: 1.5mm;
  align-items: flex-start;
  break-inside: avoid;
  margin-bottom: 0.8mm;
}

.dz-kaestchen {
  flex: none;
  width: 3.2mm;
  height: 3.2mm;
  margin-top: 0.4mm;
  border: 0.35mm solid #111;
  border-radius: 0.5mm;
}

.dz-hinweis > .zw {
  display: flex;
  margin-top: 0.6mm;
  padding-inline-start: 2mm;
  border-inline-start: 0.6mm solid #111;
  white-space: pre-line;
}

.dz-maschinell {
  display: block;
  font-size: 7pt;
  color: var(--dz-leise);
  font-style: italic;
}

.dz-route {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1mm;
  text-align: center;
}

.dz-route .qr {
  width: 24mm;
  height: 24mm;
}

.dz-modus {
  display: inline-flex;
  gap: 1mm;
  align-items: center;
  font-size: 8pt;
}

.dz-foto {
  width: 28mm;
  height: 20mm;
  object-fit: cover;
  margin-top: 1mm;
  border: 0.3mm solid var(--dz-linie);
}

.dz-fuss {
  margin-top: 3mm;
  font-size: 8pt;
  color: var(--dz-leise);
}

.dz-fuss p {
  margin: 0 0 1mm;
}

/* Arabisch/Persisch: Spalten spiegeln, damit Nummer und Text von rechts gelesen werden */
.rtl-ziel .dz-stelle {
  direction: rtl;
}

.rtl-ziel .dz-stelle .de,
.rtl-ziel .dz-stelle [lang='de'] {
  direction: ltr;
  text-align: right;
}

/* Druck: nur der Zettel */
@media print {
  body.druckmodus > *:not(.druckbereich) {
    display: none !important;
  }

  body.druckmodus {
    background: #fff;
  }

  body.druckmodus .druckbereich {
    display: block !important;
    position: static;
    padding: 0;
    margin: 0;
    background: #fff;
  }

  body.druckmodus .druckbereich .druckblatt {
    box-shadow: none;
    padding: 0;
    margin: 0;
    width: auto;
  }
}

/* Bildschirmvorschau: Blatt auf grauem Grund */
.druckblatt {
  background: #fff;
  width: 210mm;
  min-height: 297mm;
  padding: 11mm 12mm 12mm;
  margin: 0 auto 1rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
}
