/* Druck: /maschinen/<id> wird zum A4-Datenblatt.
   Nav/Footer/Buttons/Deko weg · Wortmarke als Stempel · Objekt-Nr. + Musterdaten sichtbar. */
@media print {
  @page { size: A4; margin: 16mm 14mm; }
  html, body { background: #fff !important; color: #000 !important; font-size: 10.5pt; }

  .demo-leiste, .header, .nav-panel, .nav-burger, .atmos, .progress, .footer, .btn, .btn-cta, .btn-link, .btn-linie,
  .btn-light, .btn-outline, .btn-sekundaer, .btn-primary, .btn-secondary, .tlink, .skip,
  .akte-preis .btn, .akte-preis .neben, .akte-preis .akte-drucken,
  .akte-preis-aktionen, .anker-nav, .pfad, .filterleiste, .treffer-zeile, .form-meldung,
  .mobil-preisbar, .galerie-thumbs, .aehnliche { display: none !important; }

  .shell { margin-left: 0 !important; padding-top: 0 !important; }

  .nur-print { display: block !important; }
  .print-kopf {
    display: flex !important; justify-content: space-between; align-items: flex-start;
    border-bottom: 2px solid #000; padding-bottom: 6mm; margin-bottom: 6mm;
  }
  .print-kopf .stempel { font-family: "Instrument Sans", system-ui, sans-serif; font-weight: 700;
    font-size: 22pt; letter-spacing: .01em; }
  .print-kopf .stempel b { color: #000; }
  .print-kopf .meta { font-family: "JetBrains Mono", monospace; font-size: 9pt; text-align: left; }
  .print-muster {
    font-family: "JetBrains Mono", monospace; font-weight: 600; letter-spacing: .1em;
    border: 1.5pt solid #000; padding: 1mm 3mm; display: inline-block; margin-top: 2mm;
  }

  .akte-layout { display: block !important; }
  .akte-preis { position: static !important; border: 1.5pt solid #000 !important; background: #fff !important;
    page-break-inside: avoid; margin-bottom: 6mm; padding: 4mm; }
  .akte-preis .brutto, .akte-preis .festpreis { color: #000 !important; }
  .akte-haupt > section { page-break-inside: avoid; margin-bottom: 5mm; border: 0 !important;
    background: #fff !important; padding: 0 !important; }
  .akte-haupt h2 { border-bottom: 1pt solid #000; font-size: 10pt; color: #000 !important; }
  .akte-haupt h2 .blocknr { color: #000 !important; }
  .protokoll > div { border-bottom: .5pt solid #999; padding: 1.2mm 0; }
  .protokoll dt, .protokoll dd { color: #000 !important; }
  .maengel-liste li { border-bottom: .5pt solid #999; color: #000; }
  .galerie-haupt, .galerie-platzhalter { border: .5pt solid #999; }
  a { color: #000 !important; text-decoration: none; }
  .akte-kopf { padding: 0 0 4mm; }
  .akte-kopf h1, .akte-kopfzeile, .akte-kopfzeile strong { color: #000 !important; }
  .chip { border-color: #000 !important; color: #000 !important; }
  .chip-muster { background: #000 !important; color: #fff !important;
    -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* Stempel auf der Maschinenakte: Bildmarke + Wortmarke nebeneinander.
   Schwarz, weil Farbdruck beim Kunden nicht vorausgesetzt werden kann. */
@media print{
  .print-kopf .stempel{display:flex;align-items:center;gap:6pt}
  .print-kopf .stempel-marke{display:block;color:#000}
  .print-kopf .stempel-marke .marke{width:16pt;height:16pt;display:block}
}

/* Palettenwechsel auf Espresso: die Bildschirmflächen sind jetzt dunkel und ihr
   Text cremefarben. Browser drucken Hintergründe standardmäßig NICHT — ohne
   diesen Reset stünde heller Text auf weißem Papier, also unsichtbar. Darum
   alles im Druck hart auf Papier zurücksetzen; die wenigen gewollten Umkehrungen
   (Musterdaten-Stempel) haben eigene Klassen und höhere Spezifität. */
@media print {
  *, *::before, *::after {
    background-image: none !important;
    background-color: transparent !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
  /* Ränder und Trenner sichtbar halten, statt im hellen Espresso-Ton zu verschwinden */
  .chip, .karte, .akte-preis, .protokoll > div, .maengel-liste li,
  .galerie-haupt, .galerie-platzhalter, table, th, td {
    border-color: #444 !important;
  }
  /* Platzhalterflächen ohne Foto: als leerer, beschrifteter Rahmen drucken */
  .ph, .galerie-platzhalter { border: .5pt dashed #999 !important; }
  /* Der Musterdaten-Stempel bleibt bewusst invertiert */
  .chip-muster, .print-muster {
    background-color: #000 !important; color: #fff !important; border-color: #000 !important;
    -webkit-print-color-adjust: exact; print-color-adjust: exact;
  }
}
