/* Hakenheld Web – Ergänzungen zu style.css (Anmeldung, Startbildschirm, Druckansicht, sichere Ränder iPhone) */
body { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
.top { padding-top: calc(env(safe-area-inset-top) + 0px); }
.boot { position: fixed; inset: 0; z-index: 60; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px; text-align: center; }
.boot[hidden] { display: none; }
.boot img { width: 96px; }
.boot .boot-text { font-size: 17px; color: #444; max-width: 460px; line-height: 1.4; }
.boot.err .boot-text { color: #b71c1c; }
.lic.auth { z-index: 55; }
.auth .lic-box { max-width: 460px; padding-top: calc(env(safe-area-inset-top) + 18px); }
.auth h2 { color: #1b5e20 !important; margin: 6px 0 4px; }
.auth-app { text-align: center; color: #2e7d32; font-weight: bold; font-size: 14px; }
.center { text-align: center; }
.small { font-size: 13px; }
.ok-box { margin-top: 12px; background: #eef7ef; color: #1b5e20; border: 1px solid #b9dcbc; border-radius: 10px; padding: 12px; font-size: 15px; line-height: 1.35; }
.link-btn { display: block; margin: 14px auto 4px; background: none; border: 0; color: #1b5e20; text-decoration: underline; font-size: 16px; font-family: inherit; }
/* Druckansicht der Nachweise */
#pdfView { position: fixed; inset: 0; z-index: 70; background: #e9ecea; overflow: auto; padding: 0 0 40px; }
#pdfView[hidden] { display: none; }
.pv-bar { position: sticky; top: 0; display: flex; gap: 10px; padding: calc(env(safe-area-inset-top) + 8px) 10px 8px; background: #1b5e20; z-index: 2; }
.pv-bar .btn { margin: 0; min-height: 46px; }
.pv-bar #pvPrint { flex: 1; }
.pv-hint { font-size: 13px; color: #555; padding: 8px 12px; }
.pdoc { background: #fff; width: 210mm; min-height: 200mm; margin: 8px auto; padding: 12mm 12mm 10mm; box-shadow: 0 1px 4px rgba(0,0,0,.2); font-family: Arial, Helvetica, sans-serif; color: #191919; font-size: 9pt; }
.pdoc.land { width: 297mm; }
.ph { display: flex; gap: 10px; align-items: flex-start; border-bottom: 0.6pt solid #969696; padding-bottom: 8px; margin-bottom: 8px; }
.plogo { width: 50px; height: 50px; object-fit: contain; }
.pt { flex: 1; }
.papp { color: #2e7d32; font-weight: bold; font-size: 8.5pt; }
.ptitle { color: #1b5e20; font-weight: bold; font-size: 17pt; }
.pperiod { font-weight: bold; font-size: 11pt; }
.pbiz { width: 36%; color: #444; font-size: 8.5pt; }
.pbiz b { font-size: 10.5pt; }
.pdoc .red { color: #c62828; font-weight: bold; }
.pdoc .grey { color: #888; }
.pdoc .b { font-weight: bold; }
.pintro { font-size: 8.8pt; color: #3c3c3c; margin: 4px 0 8px; }
.psum { font-weight: bold; color: #444; font-size: 10pt; margin: 4px 0 8px; }
.psec { background: #e8f1e9; color: #1b5e20; font-weight: bold; font-size: 10.5pt; padding: 2px 4px; margin-top: 8px; }
.ptab { width: 100%; border-collapse: collapse; table-layout: fixed; margin-bottom: 6px; }
.ptab th { background: #eef3ef; text-align: left; font-weight: bold; }
.ptab th, .ptab td { border: 0.6pt solid #969696; padding: 3px 4px; vertical-align: top; overflow-wrap: anywhere; }
.ptab tr { page-break-inside: avoid; }
.pdoc img.sig { max-height: 100%; max-width: 100%; display: block; }
.pnote { font-size: 8.6pt; color: #444; white-space: normal; }
.psig { display: flex; gap: 20px; margin-top: 10px; page-break-inside: avoid; }
.psig > div:first-child { width: 230px; }
.sigbox { height: 56px; border-bottom: 0.6pt solid #969696; }
.sigbox img { height: 100%; }
.phand { margin-top: 12px; page-break-inside: avoid; }
.phand .hl { display: flex; gap: 40px; border-top: 0.8pt solid #444; margin-top: 40px; padding-top: 2px; color: #444; font-size: 8pt; width: 60%; }
.pver { margin-top: 12px; background: #f6f9f6; border: 0.6pt solid #969696; padding: 6px 8px; font-size: 8.2pt; color: #444; page-break-inside: avoid; }
.pcode { font-size: 12pt; font-weight: bold; color: #000; }
.pfoot { margin-top: 10px; font-size: 7.4pt; color: #777; }
.pbreak { height: 0; page-break-after: always; break-after: page; }
@media print {
  body.pv-open > *:not(#pdfView) { display: none !important; }
  body.pv-open { padding: 0; background: #fff; }
  #pdfView { position: static; background: #fff; padding: 0; overflow: visible; }
  .pv-bar, .pv-hint { display: none !important; }
  .pdoc { box-shadow: none; margin: 0; width: auto; max-width: none; min-height: 0; padding: 0; zoom: 1 !important; }
}

/* Rechtliche Links auf der Anmeldeseite */
.auth-legal { margin-top: 10px; }
.auth-legal a { color: inherit; text-decoration: underline; }
