/* Lehrzeug Kanban – werkzeugeigenes Design. Gemeinsames Design: /kern/kern.css */
.kb-card { padding: 16px; }
.kb-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 14px; }
.kb-boardsel select { min-width: 240px; font-weight: 700; }
.kb-tools { display: flex; flex-wrap: wrap; gap: 6px; }
.kb-help { margin: 12px 2px 0; font-size: 13px; color: var(--ink-3); }
.kb-stage { position: relative; }
.kb-stagehead { display: none; }
.kb-stage.is-fs, .kb-stage.is-full { display: flex; flex-direction: column; gap: 14px; padding: 22px 26px; background: var(--bg); overflow: auto; }
.kb-stage.is-full { position: fixed; inset: 0; z-index: 90; }
.kb-stage.is-fs .kb-stagehead, .kb-stage.is-full .kb-stagehead { display: flex; align-items: center; justify-content: space-between; font-size: 26px; }
.kb-x { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line-2); background: var(--surface); color: var(--ink); cursor: pointer; }
.kb-x .i { width: 22px; height: 22px; }
.kb-stage.is-fs .kb-board, .kb-stage.is-full .kb-board { flex: 1; }
.kb-stage.is-fs .kb-ct, .kb-stage.is-full .kb-ct { font-size: 19px; }
.kb-stage.is-fs .kb-colh h3, .kb-stage.is-full .kb-colh h3 { font-size: 20px; }
.kb-board { display: grid; gap: 12px; grid-template-columns: repeat(var(--kb-n, 4), minmax(200px, 1fr)); overflow-x: auto; padding-bottom: 4px; }
.kb-n2 { --kb-n: 2; } .kb-n3 { --kb-n: 3; } .kb-n4 { --kb-n: 4; } .kb-n5 { --kb-n: 5; } .kb-n6 { --kb-n: 6; }
@media (max-width: 720px) { .kb-board { grid-template-columns: repeat(var(--kb-n, 4), minmax(220px, 82vw)); scroll-snap-type: x mandatory; } .kb-col { scroll-snap-align: start; } }
.kb-col { display: flex; flex-direction: column; min-height: 320px; padding: 10px; border-radius: 16px; background: var(--surface-2); border: 1.5px solid var(--line); }
.kb-col.is-done { background: color-mix(in srgb, var(--teal-soft) 60%, var(--surface-2)); }
.kb-colh { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 2px 4px 10px; }
.kb-colh h3 { margin: 0; font-size: 15px; line-height: 1.25; }
.kb-cnt { flex: none; padding: 2px 9px; border-radius: 99px; background: var(--surface); border: 1.5px solid var(--line-2); font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.kb-cnt.is-full { border-color: var(--orange, #E8890C); color: var(--orange-ink, #A35A00); }
.kb-cnt.is-over { border-color: var(--coral, #E5533D); background: var(--coral-soft, #FFE3DE); color: var(--coral-ink, #B5302A); }
.kb-list { flex: 1; display: flex; flex-direction: column; gap: 8px; min-height: 60px; }
.kb-c { position: relative; display: grid; gap: 4px; padding: 10px 12px 10px 16px; border-radius: 12px; background: var(--surface); border: 1.5px solid var(--line-2); box-shadow: var(--shadow-1); cursor: grab; touch-action: manipulation; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.kb-c.is-armed { box-shadow: 0 0 0 3px var(--teal), var(--shadow-2); transform: scale(1.02); }
.kb-c:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.kb-c.is-dragging { opacity: .35; }
.kb-cc { position: absolute; left: 0; top: 8px; bottom: 8px; width: 5px; border-radius: 0 4px 4px 0; }
.kb-c0 { background: #2E7CF6; } .kb-c1 { background: #16A06A; } .kb-c2 { background: #E8890C; } .kb-c3 { background: #7C5CD6; } .kb-c4 { background: #E5533D; } .kb-c5 { background: #5B6372; }
.kb-ct { margin: 0; font-size: 14.5px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.kb-cm { display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 0; font-size: 12.5px; color: var(--ink-3); }
.kb-cm span { display: inline-flex; align-items: center; gap: 4px; }
.kb-cm .i { width: 14px; height: 14px; }
.kb-due.is-late { color: var(--coral-ink, #B5302A); font-weight: 700; }
.kb-cmv { display: flex; justify-content: flex-end; gap: 4px; margin-top: 2px; }
.kb-mv { display: grid; place-items: center; width: 30px; height: 26px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--ink-2); cursor: pointer; }
.kb-mv .i { width: 16px; height: 16px; }
.kb-mv:disabled { opacity: .3; cursor: default; }
.kb-mv:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
@media (hover: hover) { .kb-cmv { position: absolute; right: 6px; bottom: 6px; margin: 0; padding: 2px; border-radius: 10px; background: var(--surface); opacity: 0; transition: opacity .15s; } .kb-c:hover .kb-cmv, .kb-c:focus-within .kb-cmv { opacity: 1; } }
.kb-ghost { position: fixed; z-index: 95; pointer-events: none; box-shadow: var(--shadow-2); cursor: grabbing; }
.kb-ph { border: 2px dashed var(--teal); border-radius: 12px; background: var(--teal-soft); }
.kb-add { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 8px; padding: 8px; border-radius: 10px; border: 1.5px dashed var(--line-2); background: transparent; color: var(--ink-2); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.kb-add .i { width: 16px; height: 16px; }
.kb-add:hover { border-color: var(--teal); color: var(--teal-ink); }
.kb-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 10px; }
.kb-colors { display: flex; gap: 8px; }
.kb-colors label { position: relative; }
.kb-colors input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.kb-sw { display: block; width: 32px; height: 32px; border-radius: 50%; border: 3px solid var(--surface); box-shadow: 0 0 0 1.5px var(--line-2); cursor: pointer; }
.kb-colors input:checked + .kb-sw { box-shadow: 0 0 0 3px var(--ink); }
.kb-colors input:focus-visible + .kb-sw { outline: 3px solid var(--focus); outline-offset: 3px; }
.kb-tpls { display: grid; gap: 6px; }
.kb-tpls label { position: relative; }
.kb-tpls input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.kb-tpls span { display: grid; gap: 1px; padding: 9px 12px; border-radius: 12px; border: 1.5px solid var(--line-2); background: var(--surface-2); cursor: pointer; }
.kb-tpls b { font-size: 14px; } .kb-tpls small { font-size: 12px; color: var(--ink-3); }
.kb-tpls input:checked + span { border-color: var(--teal); background: var(--teal-soft); box-shadow: inset 0 0 0 1px var(--teal); }
.kb-tpls input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.kb-collist { display: grid; gap: 8px; margin: 0 0 10px; }
.kb-colrow { display: grid; grid-template-columns: minmax(0, 1fr) 100px auto auto; gap: 6px; align-items: center; }
.kb-wip { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-3); }
.kb-printopts { display: grid; gap: 8px; }
.kb-po { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line-2); background: var(--surface-2); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.kb-po > .i { width: 24px; height: 24px; color: var(--teal-ink); flex: none; }
.kb-po span { display: grid; gap: 1px; } .kb-po small { font-size: 12.5px; color: var(--ink-3); }
.kb-po:hover { border-color: var(--teal); }
.kb-info { margin: 26px 0 18px; }
.kb-h2 { margin: 0 0 12px; font-size: 22px; }
.kb-infogrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 900px) { .kb-infogrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .kb-infogrid { grid-template-columns: minmax(0, 1fr); } }
.kb-ibox { padding: 18px 20px; }
.kb-ibox h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 16.5px; }
.kb-ibox h3 .i { width: 20px; height: 20px; color: var(--teal-ink); }
.kb-ibox p, .kb-ibox li { font-size: 14.5px; color: var(--ink-2); line-height: 1.5; }
.kb-ibox p { margin: 0 0 6px; }
.kb-ibox ol, .kb-ibox ul { margin: 0; padding-left: 20px; display: grid; gap: 4px; }

/* ================================================================ Druck */
.kb-pboard { padding: 10mm 10mm 14mm; font-family: var(--font); color: #071B4A; }
.kb-pboard h1 { margin: 0 0 4mm; font-size: 18pt; }
.kb-pcols { display: grid; gap: 4mm; grid-template-columns: repeat(var(--kb-n, 4), minmax(0, 1fr)); }
.kb-pcols section { padding: 3mm; border: .4mm solid #071B4A; border-radius: 3mm; min-height: 150mm; }
.kb-pcols h2 { margin: 0 0 3mm; padding-bottom: 1.5mm; border-bottom: .4mm solid #071B4A; font-size: 11pt; }
.kb-pcols h2 small { font-size: 7.5pt; font-weight: 600; color: #5B6372; }
.kb-pc { display: grid; gap: .6mm; margin: 0 0 2mm; padding: 2mm 2.5mm; border: .3mm solid #9AA6B8; border-left: 1.6mm solid; border-radius: 1.6mm; font-size: 9pt; break-inside: avoid; }
.kb-pc small { font-size: 7.6pt; color: #5B6372; }
.kb-pb0 { border-left-color: #2E7CF6; } .kb-pb1 { border-left-color: #16A06A; } .kb-pb2 { border-left-color: #E8890C; } .kb-pb3 { border-left-color: #7C5CD6; } .kb-pb4 { border-left-color: #E5533D; } .kb-pb5 { border-left-color: #5B6372; }
.kb-psign { display: grid; place-content: center; justify-items: center; gap: 6mm; height: 190mm; padding: 10mm; font-family: var(--font); color: #071B4A; break-after: page; page-break-after: always; }
.kb-psign span { padding: 10mm 18mm; border: 1.6mm solid #071B4A; border-radius: 8mm; font-size: 58pt; font-weight: 800; text-align: center; line-height: 1.1; }
.kb-psign small { font-size: 18pt; font-weight: 600; color: #3D4B66; }
.kb-pkpage { padding: 8mm; font-family: var(--font); color: #071B4A; break-after: page; page-break-after: always; }
.kb-pkgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 92mm; border-left: .35mm dashed #8E9AB0; border-top: .35mm dashed #8E9AB0; }
.kb-pk { position: relative; display: flex; flex-direction: column; gap: 4mm; padding: 9mm 5mm 5mm; border-right: .35mm dashed #8E9AB0; border-bottom: .35mm dashed #8E9AB0; }
.kb-pkh { position: absolute; left: 5mm; right: 5mm; top: 4mm; height: 0; border-top: 2.2mm solid #C9D2DE; border-radius: 2mm; }
.kb-pkb0 .kb-pkh { border-top-color: #2E7CF6; } .kb-pkb1 .kb-pkh { border-top-color: #16A06A; } .kb-pkb2 .kb-pkh { border-top-color: #E8890C; } .kb-pkb3 .kb-pkh { border-top-color: #7C5CD6; } .kb-pkb4 .kb-pkh { border-top-color: #E5533D; } .kb-pkb5 .kb-pkh { border-top-color: #5B6372; }
.kb-pk b { font-size: 14pt; line-height: 1.25; }
.kb-pk i { display: block; height: 9mm; border-bottom: .3mm solid #9AA6B8; }
.kb-pkf { margin-top: auto; display: grid; gap: 2mm; font-size: 8.5pt; color: #3D4B66; }
.kb-pkf span { padding-bottom: 1mm; border-bottom: .3mm solid #C9D2DE; }
