/* Demo „Rechnungseingang“: ergänzt kit.css */

.dk-notice { margin-bottom: 20px; }
.toast { width: max-content; max-width: calc(100vw - 32px); text-align: center; }
.dk-notice p { margin: 0; }
.dk-notice strong { color: var(--ink); font-weight: 500; }

/* ---------- App-Rahmen ---------- */
.dk-app { background: var(--sheet); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; overflow: clip; box-shadow: var(--shadow-sm); }
.dk-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 18px 22px 12px; }
.dk-title .eyebrow { color: var(--ink); }
.dk-sub-title { margin: 4px 0 0; font-size: 12px; color: var(--ink-3); }
.dk-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.dk-tools [hidden] { display: none; }

.dk-tabs { padding: 0 22px; }
.dk-tab { display: inline-flex; align-items: center; gap: 8px; }
.dk-n { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--paper-2); color: var(--ink-2); font-family: var(--mono); font-size: 11px; transition: background-color .2s, color .2s; }
.dk-tab[aria-selected="true"] .dk-n { background: var(--ink); color: var(--paper); }

/* ---------- Belegliste ---------- */
.dk-docs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; padding: 16px 22px 18px; border-bottom: 1px solid var(--line); background: var(--paper); min-height: 150px; }
.dk-empty { grid-column: 1 / -1; margin: 0; align-self: center; text-align: center; color: var(--ink-3); font-size: 14px; }
.dk-doc { display: grid; align-content: start; gap: 6px; min-width: 0; padding: 12px; border: 1px solid var(--line-soft); border-radius: 14px; background: var(--white); color: inherit; font: inherit; text-align: left; cursor: pointer; transition: border-color .2s, box-shadow .2s, transform .3s var(--ease); }
.dk-doc:hover { border-color: rgba(18, 18, 17, 0.35); transform: translateY(-1px); }
.dk-doc[aria-current="true"] { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink), var(--shadow-sm); }
.dk-doc.is-gone { opacity: .62; }
.dk-doc.is-gone .dk-doc-name { text-decoration: line-through; text-decoration-color: var(--ink-3); }
.dk-doc-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.dk-thumb { position: relative; flex-shrink: 0; display: grid; align-content: start; gap: 3px; width: 22px; height: 28px; padding: 7px 4px 0; border: 1px solid var(--line); border-radius: 3px; background: #fff; overflow: hidden; }
.dk-thumb::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--tc, var(--ink)); }
.dk-thumb i { display: block; height: 2px; border-radius: 2px; background: var(--line); }
.dk-thumb i:nth-child(2) { width: 70%; }
.dk-thumb i:nth-child(3) { width: 45%; margin-left: auto; }
.t-hel { --tc: #1f3b5c; }
.t-lum { --tc: #2b6f68; }
.t-vah { --tc: #3a3460; }
.t-lin { --tc: #7a6a5a; }
.t-oko { --tc: #e2a800; }
.dk-doc-file { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
.dk-doc-name { min-height: 2.5em; font-size: 14px; font-weight: 500; line-height: 1.25; letter-spacing: -0.01em; }
.dk-doc-name.is-unread { color: var(--ink-3); font-weight: 400; }
.dk-doc-meta { display: flex; flex-wrap: wrap; gap: 2px 8px; font-size: 12px; color: var(--ink-3); }
.dk-doc-amt { font-family: var(--mono); font-size: 11.5px; color: var(--ink); }
.dk-doc-status .badge { height: 22px; padding: 0 8px; font-size: 11.5px; }
.dk-reading .spinner { width: 10px; height: 10px; border-width: 1.5px; }

/* ---------- Arbeitsfläche ---------- */
.dk-work { display: grid; grid-template-columns: minmax(0, 1fr) 410px; }
.dk-viewer { container-type: inline-size; position: relative; min-width: 0; padding: 20px 28px 32px; background-color: var(--paper-2); background-image: radial-gradient(rgba(18, 18, 17, 0.07) 1px, transparent 1px); background-size: 18px 18px; }
.dk-viewer-inner { position: sticky; top: 84px; }
.dk-viewer-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; max-width: 720px; margin: 0 auto 12px; font-size: 12px; color: var(--ink-2); }
.dk-viewer-bar .mono { color: var(--ink); }
.dk-viewer-tip { max-width: 720px; margin: 14px auto 0; font-size: 12.5px; color: var(--ink-2); text-align: center; }
.dk-sheet { position: relative; max-width: 720px; margin: 0 auto; }
.dk-switch, .dk-swipe, .dk-where { display: none; }
.dk-top-r { display: inline-flex; align-items: center; gap: 6px; }
.dk-tapinfo[hidden] { display: none; }
.dk-panel { min-width: 0; padding: 22px 22px 26px; border-left: 1px solid var(--line); background: var(--sheet); }

/* ---------- Markierung, Scan ---------- */
.dk-mark { position: absolute; left: 0; top: 0; width: 0; height: 0; z-index: 4; border: 2px solid var(--signal); border-radius: 5px; background: rgba(255, 90, 31, 0.07); box-shadow: 0 0 0 4px rgba(255, 90, 31, 0.13); opacity: 0; pointer-events: none; transition: left .35s var(--ease), top .35s var(--ease), width .35s var(--ease), height .35s var(--ease), opacity .2s; }
.dk-mark.is-on { opacity: 1; }
.dk-mark span { position: absolute; left: -2px; bottom: calc(100% + 5px); padding: 5px 7px; border-radius: 5px; background: var(--ink); color: var(--paper); font: 500 11px/1 var(--mono); white-space: nowrap; }
.dk-mark.is-below span { bottom: auto; top: calc(100% + 5px); }
.dk-mark.is-none { border-style: dashed; border-color: var(--err); background: rgba(179, 38, 30, 0.03); box-shadow: none; }
.dk-mark.is-none span { top: 10px; bottom: auto; left: 10px; background: var(--err); }

.dk-ghost { position: absolute; z-index: 3; border: 1px solid var(--signal); border-radius: 4px; background: rgba(255, 90, 31, 0.1); opacity: 0; pointer-events: none; animation: dk-ghost 1.1s var(--ease) both; }
@keyframes dk-ghost { 0% { opacity: 0; transform: scale(1.12); } 25% { opacity: 1; transform: none; } 100% { opacity: 0; } }

.dk-sheet.is-reading .pp { filter: saturate(.8); }
.dk-scan { position: absolute; inset: 0; z-index: 5; overflow: hidden; border-radius: 3px; pointer-events: none; background: rgba(243, 242, 238, 0.12); }
.dk-scan::before { content: ""; position: absolute; left: 0; right: 0; top: -28%; height: 28%; background: linear-gradient(180deg, rgba(255, 90, 31, 0) 0%, rgba(255, 90, 31, 0.07) 70%, rgba(255, 90, 31, 0.2) 100%); border-bottom: 2px solid var(--signal); box-shadow: 0 10px 24px -6px rgba(255, 90, 31, 0.5); animation: dk-scan 1.45s cubic-bezier(.55, .05, .45, .95) infinite; }
@keyframes dk-scan { from { top: -28%; } to { top: 100%; } }

/* ---------- Felder ---------- */
.dk-panel-head { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-bottom: 18px; }
.dk-panel-head .eyebrow { margin-bottom: 6px; }
.dk-panel-head .h3 { overflow-wrap: anywhere; }
.dk-head-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.dk-head-badges:empty { display: none; }
.dk-panel-head > .spinner, .dk-panel-head > .badge { position: absolute; }
.dk-panel { position: relative; }
.dk-panel-head > .spinner { top: 26px; right: 22px; }
.dk-panel-head > .badge { top: 22px; right: 22px; }
.dk-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.dk-field { min-width: 0; }
.dk-field.span2 { grid-column: 1 / -1; }
.dk-field-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 5px; }
.dk-field-top label { font-size: 12.5px; font-weight: 500; color: var(--ink-2); }
.dk-conf { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11px; color: var(--ink-3); white-space: nowrap; }
.dk-conf i { position: relative; width: 24px; height: 4px; border-radius: 99px; background: rgba(18, 18, 17, 0.1); overflow: hidden; }
.dk-conf i::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: var(--c); border-radius: inherit; background: currentColor; }
.dk-conf[data-l="hi"] { color: var(--ok); }
.dk-conf[data-l="mid"] { color: var(--warn); }
.dk-conf[data-l="lo"], .dk-conf[data-l="none"] { color: var(--err); }
.dk-conf[data-l="man"] { color: var(--ink-2); }
.dk-in { height: 40px; padding: 0 12px; font-size: 14.5px; }
.dk-in.is-num { font-family: var(--mono); font-size: 13.5px; text-align: right; }
.dk-in.is-iban { font-family: var(--mono); font-size: 13px; }
.dk-in[readonly] { background: var(--paper); color: var(--ink-2); }
.dk-in::placeholder { color: var(--err); opacity: .8; font-size: 13px; }
.dk-field.is-unsure .dk-in { border-color: var(--warn); background: #fffaf0; box-shadow: 0 0 0 3px var(--warn-soft); }
.dk-field.is-empty .dk-in:not([readonly]) { border-color: var(--err); border-style: dashed; }
.dk-field.is-linked .dk-in, .dk-field:hover .dk-in:not(:focus) { border-color: var(--signal); }
.dk-in:focus { border-color: var(--signal); box-shadow: 0 0 0 4px var(--signal-soft); }
.dk-hint { margin-top: 4px; font-size: 12px; line-height: 1.4; color: var(--ink-3); }
.dk-hint:empty { display: none; }
.dk-mini { display: inline-flex; align-items: center; height: 24px; margin-left: 4px; padding: 0 9px; border: 1px solid rgba(18, 18, 17, 0.2); border-radius: 99px; background: var(--white); font-size: 12px; font-weight: 500; cursor: pointer; vertical-align: middle; }
.dk-mini:hover { border-color: var(--ink); }

.dk-skel .dk-field i { display: block; width: 42%; height: 10px; margin: 4px 0 9px; border-radius: 4px; background: var(--paper-2); }
.dk-skel .dk-field b { display: block; height: 40px; border-radius: 12px; background: linear-gradient(90deg, var(--paper-2) 0%, #f7f6f2 50%, var(--paper-2) 100%); background-size: 200% 100%; animation: dk-shimmer 1.2s linear infinite; }
@keyframes dk-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.dk-empty-panel { padding: 20px; border: 1px dashed var(--line); border-radius: 16px; background: var(--white); }
.dk-empty-panel p { margin: 0 0 16px; font-size: 14.5px; color: var(--ink-2); }

/* ---------- Prüfungen ---------- */
.dk-checks-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 22px 0 8px; padding-top: 18px; border-top: 1px solid var(--line); }
.dk-sub { margin: 0; font-size: 15px; font-weight: 500; letter-spacing: -0.01em; }
.dk-checks { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.dk-check { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; padding: 8px 10px; border-radius: 10px; }
.dk-check.is-err { background: var(--err-soft); }
.dk-check.is-warn { background: var(--warn-soft); }
.dk-ico { display: grid; place-items: center; width: 20px; height: 20px; margin-top: 1px; border-radius: 99px; }
.dk-ico svg { width: 14px; height: 14px; }
.is-ok .dk-ico { background: var(--ok-soft); color: var(--ok); }
.is-err .dk-ico { background: var(--err); color: #fff; }
.is-warn .dk-ico { background: #f5a524; color: var(--ink); }
.is-info .dk-ico { background: var(--paper-2); color: var(--ink-2); }
.dk-check-t { margin: 0; font-size: 13.5px; font-weight: 500; }
.dk-check-x { margin: 1px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--ink-2); }
.is-ok .dk-check-x { color: var(--ink-3); }
.dk-ack { margin-top: 8px; font-size: 13px; color: var(--ink); }

.dk-actions { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.dk-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.dk-act-hint { margin: 10px 0 0; font-size: 13px; color: var(--ink-3); }
.dk-state { display: flex; align-items: flex-start; gap: 8px; margin: 0 0 12px; font-size: 14px; color: var(--ink-2); }
.dk-state svg { flex-shrink: 0; width: 18px; height: 18px; margin-top: 2px; }
.dk-state.ok svg { color: var(--ok); }
.dk-log { margin-top: 18px; font-size: 13px; color: var(--ink-2); }
.dk-log summary { width: fit-content; font-weight: 500; cursor: pointer; border-radius: 4px; }
.dk-log ol { display: grid; gap: 6px; margin: 10px 0 0; padding: 0 0 0 12px; border-left: 1px solid var(--line); list-style: none; }
.dk-log li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 8px; }
.dk-log .mono { color: var(--ink-3); font-size: 12px; }

/* ---------- Buchungsstapel ---------- */
.dk-stapel { margin-top: 56px; }
.dk-stapel-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 24px; margin-bottom: 18px; }
.dk-stapel-head .eyebrow { margin-bottom: 10px; }
.dk-stapel-text { max-width: 62ch; margin: 10px 0 0; font-size: 15px; }
.dk-stapel-empty { padding: 22px; border: 1px dashed var(--line); border-radius: var(--radius); background: var(--sheet); font-size: 14px; color: var(--ink-3); }
.dk-stapel-empty p { margin: 0; }
.dk-table td { white-space: nowrap; }
.dk-table tfoot td { border-top: 1px solid var(--line); background: var(--paper); font-weight: 500; }

/* ---------- Papier: gemeinsame Teile ---------- */
.pp { position: relative; overflow: hidden; padding: 6.5% 7% 5.5%; border-radius: 3px; background: #fff; color: #1f1f1d; font-family: Arial, "Helvetica Neue", Helvetica, sans-serif; font-size: clamp(11px, 1.72cqi, 12.4px); line-height: 1.42; box-shadow: 0 1px 2px rgba(18, 18, 17, 0.08), 0 24px 48px -28px rgba(18, 18, 17, 0.45); }
.pp h3 { margin: 0; }
.pp-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 2em; }
.pp-to { margin-top: 2.6em; line-height: 1.45; }
.pp-from { max-width: 28em; margin-bottom: .6em; overflow: hidden; color: #6a6a66; font-size: .72em; text-decoration: underline; text-underline-offset: .2em; text-overflow: ellipsis; white-space: nowrap; }
.pp-meta { margin-top: 2.4em; border-collapse: collapse; font-size: .92em; }
.pp-meta th { padding: .12em 1.6em .12em 0; color: #6a6a66; font-weight: 400; text-align: left; white-space: nowrap; }
.pp-meta td { padding: .12em 0; font-weight: 600; text-align: right; white-space: nowrap; }
.pp-p { margin: 1.2em 0 .6em; }
.pp-items { width: 100%; margin-top: 1em; border-collapse: collapse; font-size: .92em; }
.pp-items th { padding: .4em .6em .4em 0; border-bottom: 1px solid #1f1f1d; font-weight: 600; text-align: left; white-space: nowrap; }
.pp-items td { padding: .42em .6em .42em 0; border-bottom: 1px solid #e3e1dc; vertical-align: top; }
.pp-items th:last-child, .pp-items td:last-child { padding-right: 0; }
.pp-items .r { text-align: right; }
.pp-items .nw { white-space: nowrap; }
.pp-sum { min-width: 46%; margin: 1.2em 0 0 auto; border-collapse: collapse; }
.pp-sum td { padding: .25em 0; }
.pp-sum td:last-child { padding-left: 2em; text-align: right; white-space: nowrap; }
.pp-sum .tot td { padding-top: .45em; border-top: 1.5px solid #1f1f1d; font-weight: 700; }
.pp-terms { margin: 1.6em 0 0; font-size: .92em; }
.pp-foot { display: flex; justify-content: space-between; gap: 2em; margin-top: 2.4em; padding-top: .9em; border-top: 1px solid #e3e1dc; color: #6a6a66; font-size: .74em; line-height: 1.5; }
.pp-foot > div:last-child { text-align: right; }
.pp [data-src] { cursor: pointer; }

.pp-stamp { position: absolute; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: .15em; padding: .45em 1.1em .5em; border: .2em solid rgba(38, 66, 168, 0.7); border-radius: .35em; color: rgba(38, 66, 168, 0.78); font-family: "Courier New", Courier, monospace; line-height: 1.1; text-transform: uppercase; transform: rotate(-8deg); mix-blend-mode: multiply; pointer-events: none; }
.pp-stamp b { font-size: 1.35em; letter-spacing: .18em; }
.pp-stamp span { font-size: 1.1em; font-weight: 700; letter-spacing: .06em; }
.pp-stamp small { font-size: .72em; letter-spacing: .1em; }
.pp-water { position: absolute; inset: 0; z-index: 0; display: grid; place-items: center; color: rgba(179, 54, 26, 0.07); font-size: 9em; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; transform: rotate(-24deg); pointer-events: none; }

/* Kabelkontor Hellmers: klassischer Großhandel */
.hel-band { position: absolute; top: 0; left: 0; right: 0; height: .7em; background: #1f3b5c; }
.hel-logo { display: flex; flex-direction: column; line-height: 1; color: #1f3b5c; }
.hel-logo b { font-size: 2.2em; font-weight: 800; letter-spacing: -.01em; text-transform: uppercase; }
.hel-logo span { margin-top: .2em; font-size: 1.3em; font-weight: 700; letter-spacing: .5em; text-transform: uppercase; }
.hel-logo small { margin-top: .8em; color: #5b6977; font-size: .7em; letter-spacing: .02em; }
.hel-addr { color: #5b6977; font-size: .8em; line-height: 1.5; text-align: right; }
.hel-title { margin-top: 1.8em !important; color: #1f3b5c; font-size: 1.6em; font-weight: 700; }
.hel-title em { margin-left: .3em; color: #b3361a; font-size: .6em; font-style: normal; font-weight: 400; }
.pp--hel .pp-items th { padding-left: .5em; border-bottom: 0; background: #e9eef3; color: #1f3b5c; }
.pp--hel .pp-items td:first-child { padding-left: .5em; }
.pp--hel .pp-sum .tot td { border-top-color: #1f3b5c; color: #1f3b5c; }
.st-hel { top: 17%; right: 34%; }

/* Lumora: modern, ruhig */
.pp--lum { font-family: var(--font); }
.lum-logo { display: grid; grid-template-columns: auto auto; align-items: center; column-gap: .55em; }
.lum-logo i { grid-row: span 2; width: 1.9em; height: 1.9em; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff1c4, #f2b43c 58%, #d98c1f); }
.lum-logo span { font-size: 2.1em; font-weight: 500; letter-spacing: -.05em; line-height: 1; }
.lum-logo small { grid-column: 2; color: #777; font-size: .7em; }
.lum-addr { color: #777; font-size: .78em; text-align: right; }
.lum-meta { display: grid; grid-template-columns: repeat(2, auto); gap: .8em 2.2em; margin-top: 2.6em; }
.lum-meta small { display: block; color: #858580; font-size: .7em; letter-spacing: .08em; text-transform: uppercase; }
.lum-meta b { font-weight: 500; }
.lum-title { margin: 1.4em 0 .2em !important; font-size: 2.2em; font-weight: 400; letter-spacing: -.04em; }
.pp--lum .pp-items th { border-bottom-color: #2b6f68; color: #2b6f68; font-weight: 500; }
.pp--lum .pp-sum .tot td { border-top-color: #2b6f68; color: #2b6f68; }
.lum-sumwrap { position: relative; }
.st-lum { top: -1.5em; right: 1%; transform: rotate(-11deg); }

/* Vahlkamp: Seitenleiste */
.pp--vah { display: grid; grid-template-columns: 30% minmax(0, 1fr); padding: 0; }
.vah-side { padding: 2.6em 1.4em; background: #2f2b4a; color: #e8e5f5; line-height: 1.5; overflow-wrap: break-word; }
.vah-side p { margin: 1.4em 0 0; }
.vah-logo b { display: block; color: #fff; font-size: 1.9em; font-weight: 700; letter-spacing: -.02em; }
.vah-logo span { display: block; margin-top: .3em; color: #c9c3ea; font-size: .85em; }
.vah-main { position: relative; min-width: 0; padding: 2.4em 2.6em 2.2em; }
.vah-main .pp-to { margin-top: 3.2em; }
.vah-title { margin: 1.8em 0 .2em !important; color: #2f2b4a; font-size: 1.5em; font-weight: 700; }
.vah-meta { margin-top: .6em; }
.vah-meta td { font-weight: 400; text-align: left; white-space: normal; }
.pp--vah .pp-items { margin-top: 1.4em; }
.pp--vah .pp-items th { border-bottom-color: #2f2b4a; }
.st-vah { top: 6%; right: 7%; transform: rotate(6deg); }

/* Fachverlag Lindqvist: Serifenschrift */
.pp--lin { color: #2a2522; font-family: Georgia, "Times New Roman", serif; }
.lin-top { padding-bottom: 1.2em; border-bottom: 1px solid #2a2522; text-align: center; }
.lin-logo span { display: block; color: #7a6a5a; font-size: .85em; letter-spacing: .4em; text-transform: uppercase; }
.lin-logo b { display: block; font-size: 2.5em; font-style: italic; font-weight: 400; line-height: 1.1; }
.lin-logo small { display: block; margin-top: .5em; color: #7a6a5a; font-size: .72em; letter-spacing: .04em; }
.lin-mid .pp-to { margin-top: 2em; }
.lin-mid .pp-meta { margin-top: 2em; }
.lin-intro { margin-top: 2em; }
.pp--lin .pp-items th { border-bottom-color: #2a2522; font-style: italic; font-weight: 400; }
.lin-foot { flex-direction: column; gap: .3em; text-align: center; }
.lin-foot > div:last-child { text-align: center; }

/* Okonek: einfache Vorlage, Schreibmaschinenanmutung */
.pp--oko { color: #222; font-family: var(--mono); font-size: clamp(11px, 1.6cqi, 11.6px); }
.oko-top { padding-left: 1em; border-left: .6em solid #e2a800; }
.oko-logo b { display: block; font-family: "Arial Black", Arial, sans-serif; font-size: 2.1em; font-weight: 900; letter-spacing: .04em; line-height: 1; }
.oko-logo span { display: block; margin-top: .25em; font-family: Arial, sans-serif; font-size: .85em; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.oko-addr { margin-top: .8em; color: #555; font-family: Arial, sans-serif; font-size: .75em; }
.oko-head { margin-top: 2.2em; }
.oko-head h3 { margin: 0 0 .4em; font-size: 1.3em; font-weight: 700; }
.oko-head p { margin: 0; }
.pp--oko .pp-items th { border-bottom: 1px dashed #222; }
.pp--oko .pp-items td { border-bottom: 1px dashed #d4d2cc; }

/* Kleingedrucktes nie unter 11 px */
.pp-from, .pp-foot, .pp-stamp small, .hel-logo small, .hel-addr, .lum-logo small, .lum-addr, .lum-meta small, .vah-side, .vah-logo span, .lin-logo small, .oko-addr, .oko-logo span { font-size: 11px; }

/* ---------- Responsiv ---------- */
@media (max-width: 1180px) {
  .dk-docs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .dk-work { grid-template-columns: minmax(0, 1fr); }
  .dk-viewer-inner { position: static; }
  .dk-panel { border-left: 0; border-top: 1px solid var(--line); }
  .dk-viewer-tip { display: none; }
}
@media (max-width: 640px) {
  .dk-head { padding: 16px 16px 12px; }
  .dk-tabs { padding: 0 8px; }
  .dk-docs { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 14px 16px 16px; gap: 8px; }
  .dk-doc { padding: 10px; }
  .dk-viewer { padding: 14px 12px 18px; }
  .dk-panel { padding: 18px 16px 22px; }
  .dk-panel-head > .spinner { right: 16px; }
  .dk-panel-head > .badge { right: 16px; top: 18px; }
  .dk-stapel { margin-top: 40px; }
  .dk-stapel-head .btn { width: 100%; }
  .dk-field-top { flex-wrap: wrap; gap: 2px 8px; }
  .dk-conf i { display: none; }
  .pp-row { gap: 1em; }
  .pp-foot { flex-direction: column; gap: .4em; }
  .pp-foot > div:last-child { text-align: left; }
  .lin-foot > div:last-child { text-align: center; }
}
/* Handy: Beleg in fester Lesebreite, Umschalter Beleg | Felder */
@media (max-width: 700px) {
  .dk-switch { position: sticky; top: 64px; z-index: 6; display: flex; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--line); background: rgba(251, 250, 248, 0.94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); scroll-margin-top: 64px; }
  .dk-switch [role="tab"] { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: 99px; background: var(--white); color: var(--ink-2); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; }
  .dk-switch [aria-selected="true"] { border-color: var(--ink); background: var(--ink); color: var(--paper); }
  .dk-sw-n { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--err); color: #fff; font-family: var(--mono); font-size: 11px; }
  .dk-sw-n[hidden] { display: none; }
  .dk-work { scroll-margin-top: 64px; }
  .dk-work[data-view="beleg"] .dk-panel { display: none; }
  .dk-work[data-view="felder"] .dk-viewer { display: none; }
  .dk-panel { border-top: 0; }
  .dk-viewer { padding: 12px 0 18px; }
  .dk-viewer-bar { margin: 0 16px 8px; }
  .dk-swipe { display: flex; gap: 8px; align-items: flex-start; margin: 0 16px 10px; font-size: 12.5px; line-height: 1.45; color: var(--ink-2); }
  .dk-swipe svg { flex-shrink: 0; width: 18px; height: 16px; margin-top: 1px; color: var(--ink-3); }
  .dk-scroll { display: flex; overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; padding: 6px 0 14px 16px; scroll-padding: 0 16px; }
  .dk-scroll::after { content: ""; flex: 0 0 16px; }
  .dk-scroll:focus-visible { outline-offset: -2px; }
  .dk-sheet { flex: 0 0 600px; width: 600px; max-width: none; margin: 0; }
  .pp { font-size: 13px; }
  .pp--oko { font-size: 12.5px; }
  .dk-tapinfo { position: sticky; bottom: 12px; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); box-shadow: var(--shadow-sm); }
  .dk-tapinfo p { display: grid; gap: 1px; min-width: 0; margin: 0; font-size: 13px; }
  .dk-tapinfo p span { overflow: hidden; color: var(--ink-2); font-family: var(--mono); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
  .dk-tapinfo .btn { flex-shrink: 0; }
  .dk-where { display: inline-grid; place-items: center; width: 28px; height: 28px; margin: -4px -4px -4px 0; padding: 0; border: 1px solid rgba(18, 18, 17, 0.15); border-radius: 99px; background: var(--white); color: var(--ink-2); cursor: pointer; }
  .dk-where svg { width: 14px; height: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .dk-scan::before { display: none; }
  .dk-mark { transition: none; }
}
