/* Bildschirmansicht der Druck-HTML-Quellen.
   Die Quellen unter documentation/e-rechnung-pdf/ sind für A4 gesetzt (PDF über Playwright).
   build.sh hängt diese Datei nur in die KOPIEN für die Website ein — die Quellen und damit die
   PDFs bleiben unverändert. Alles hier steht unter @media screen: drucken ergibt weiter das
   PDF-Layout. */

@media screen {
  html { background: #e8ebe9; }
  body { padding: 76px 0 40px; }

  /* Jedes Blatt als weiße Seite mit Schatten. .cover/.doc = Technik + Anleitung (Fließtext,
     im Druck über @page umbrochen), .page = Broschüre (feste A4-Seiten). */
  .cover, .doc, .page {
    margin: 0 auto 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .08), 0 8px 24px rgba(0, 0, 0, .08);
    zoom: var(--dk-zoom, 1);
  }
  .doc { width: 210mm; padding: 20mm 19mm 22mm; background: #fff; }
  /* Kein Hintergrund für .cover/.page: die Quellen setzen ihn selbst (die Broschüren-Titelseite
     ist dunkel), ein weißer hier überdeckte ihn. */
  .page { page-break-after: auto; }
}

/* Leiste oben */
.dk-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: 56px; padding: 0 16px;
  display: flex; align-items: center; gap: 16px;
  background: #1f4645; color: #e6efed;
  font: 400 14px/1.2 'Inter', system-ui, sans-serif;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
}
.dk-bar a { color: inherit; text-decoration: none; }
.dk-bar a:hover { color: #fff; }
.dk-home { white-space: nowrap; opacity: .85; }
.dk-title {
  flex: 1; min-width: 0;
  font-family: 'Outfit', system-ui, sans-serif; font-weight: 400; font-size: 16px; color: #fff;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.dk-actions { display: flex; align-items: center; gap: 8px; }
.dk-lang { padding: 6px 10px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 6px; font-size: 13px; }
.dk-pdf {
  padding: 7px 14px; border-radius: 6px; white-space: nowrap;
  background: #fcb414; color: #1b1b1b !important; font-weight: 500;
}
.dk-pdf:hover { background: #ffc43d; }
.dk-bar :focus-visible { outline: 2px solid #97cfbd; outline-offset: 2px; }

@media screen and (max-width: 560px) {
  .dk-home span { display: none; }
  .dk-title { font-size: 14px; }
  .dk-pdf .lang-lang { display: none; }
}

@media print {
  .dk-bar { display: none; }
}
