* { box-sizing: border-box; }
body { margin: 0; background: #e9e9e9; font-family: "DejaVu Sans", Verdana, Arial, sans-serif; color: #323232; }

.toolbar { position: sticky; top: 0; z-index: 10; background: #ffffff; border-bottom: 1px solid #d0d0d0; padding: 10px 16px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center; }
.toolbar button { font: inherit; font-size: 14px; padding: 9px 16px; border-radius: 4px; border: 1px solid #7a1f2b; background: #ffffff; color: #7a1f2b; cursor: pointer; }
.toolbar button.primary { background: #7a1f2b; color: #ffffff; }
.toolbar button:disabled { opacity: .5; cursor: wait; }
#status { flex-basis: 100%; text-align: center; font-size: 13px; min-height: 18px; }
#status.err { color: #b00020; }
#status.ok { color: #1b6e2d; font-weight: bold; }

.stage { padding: 20px 0 30px; }
.scaler { width: 794px; margin: 0 auto; transform-origin: top left; }

/* A4 bei 96 dpi: 794 x 1123 px */
.page { position: relative; width: 794px; height: 1123px; background: #ffffff; padding: 44px 57px 0 57px; font-size: 14.5px; line-height: 1.3; box-shadow: 0 2px 10px rgba(0,0,0,.25); overflow: hidden; }
.page::before { content: ""; position: absolute; left: 97px; top: 300px; width: 600px; height: 552px; background: url("logo.jpg") center / contain no-repeat; opacity: .09; pointer-events: none; }
.page > * { position: relative; }

h1 { font-size: 23px; text-align: center; margin: 0 0 14px; color: #000000; }
h2 { font-size: 18px; text-align: center; margin: 0 0 26px; color: #000000; }
h3 { font-size: 15px; margin: 30px 0 8px; color: #000000; }

table.data { width: 100%; border-collapse: collapse; }
table.data td { border-bottom: 1px solid #cccccc; padding: 0; height: 40px; vertical-align: middle; }
table.data td.l { width: 32%; color: #666666; }
table.data td.l .req, .small .req { color: #b00020; }
table.data td.v { font-weight: bold; }

input.f { width: 100%; height: 30px; border: 0; border-radius: 3px; padding: 0 6px; margin-left: -6px; font: inherit; font-weight: bold; color: #323232; background: rgba(122, 31, 43, .06); outline: none; }
input.f:focus { background: rgba(122, 31, 43, .13); }
input.f::placeholder { font-weight: normal; color: #9a9a9a; }
input.f.bad { background: rgba(176, 0, 32, .14); }

.small { font-size: 11px; line-height: 1.5; color: #555555; text-align: justify; margin: 0 0 8px; }
label.check { display: flex; gap: 9px; align-items: flex-start; cursor: pointer; }
label.check input { flex: none; width: 15px; height: 15px; margin: 1px 0 0; accent-color: #7a1f2b; }
label.check.bad { color: #b00020; }
.small a { color: inherit; }

table.sign { width: 100%; border-collapse: collapse; margin-top: 44px; }
table.sign td { padding: 0; vertical-align: bottom; }
table.sign td.line { border-bottom: 1px solid #333333; height: 78px; }
table.sign td.w30 { width: 30%; }
table.sign td.w20 { width: 20%; }
table.sign td.gap { width: 4%; }
table.sign td.cap { font-size: 9px; color: #666666; padding-top: 3px; height: auto; vertical-align: top; }
table.sign input.f { font-weight: normal; margin-left: 0; }
#sig { display: block; width: 100%; height: 76px; touch-action: none; cursor: crosshair; background: rgba(122, 31, 43, .06); border-radius: 3px; }
#sig.bad { background: rgba(176, 0, 32, .14); }

.foot { position: absolute !important; left: 0; right: 0; bottom: 30px; text-align: center; font-size: 9px; color: #888888; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.links { text-align: center; font-size: 13px; margin: 22px 12px 6px; }
.links a { color: #7a1f2b; margin: 0 10px; white-space: nowrap; }
.hinweis { text-align: center; font-size: 12px; color: #666666; max-width: 760px; margin: 0 auto; padding: 0 12px; }

/* Nur beim Erzeugen des PDFs: Eingabehilfen ausblenden */
.capture .val { font-weight: bold; }
.capture table.sign .val { font-weight: normal; }
.capture .box { flex: none; display: inline-block; width: 13px; height: 13px; border: 1px solid #333333; margin-top: 2px; font-size: 11px; line-height: 11px; text-align: center; color: #000000; }
.capture #sig { background: transparent; }
.capture .req { display: none; }
