/* Lehrzeug Auftragsblatt – werkzeugeigenes Design. Gemeinsames Design: /kern/kern.css */
.ab-tplbar { display: grid; gap: 8px; padding: 12px 14px; border-radius: 14px; background: var(--teal-soft); border: 1px solid color-mix(in srgb, var(--teal) 30%, transparent); }
.ab-tplbar .field-label { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--teal-ink); }
.ab-tplbar .field-label .i { width: 18px; height: 18px; }
.ab-tplbar-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ab-tplbar-row .select-wrap { flex: 1 1 200px; min-width: 0; }
.ab-tplbar select { background: var(--surface); }
.ab-save-row { display: flex; gap: 8px; }
.ab-save-row .input { flex: 1; min-width: 0; }
.ab-art span .i { width: 18px; height: 18px; }
.lz-sec-title .i { width: 18px; height: 18px; color: var(--teal-ink); }

/* Aufträge im Editor */
.ab-tasks { display: grid; gap: 10px; }
.ab-zone { border: 1.5px dashed var(--line-2); border-radius: 14px; padding: 8px; display: grid; gap: 6px; transition: border-color .15s, background-color .15s; }
.ab-zone.is-over { border-color: var(--teal); background: var(--teal-soft); }
.ab-zone-t { margin: 2px 4px 2px; display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13.5px; color: var(--ink-2); }
.ab-zone-t span { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--navy, #071B4A); color: #fff; font-size: 12px; }
.ab-drop-hint { margin: 0 4px 2px; font-size: 12.5px; color: var(--ink-3); min-height: 0; }
.ab-drop-hint:empty { display: none; }
.ab-task { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; gap: 6px; align-items: start; padding: 8px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); position: relative; }
.ab-task.is-drag { opacity: .45; }
.ab-task.ab-drop-before::before { content: ""; position: absolute; left: 6px; right: 6px; top: -5px; height: 3px; border-radius: 3px; background: var(--teal); }
.ab-grip { cursor: grab; color: var(--ink-3); padding: 6px 0 0; touch-action: none; }
.ab-grip .i { width: 18px; height: 18px; }
.ab-num { font-weight: 700; font-size: 13px; color: var(--teal-ink); padding-top: 7px; min-width: 1.2em; text-align: right; }
.ab-task-body { display: grid; gap: 6px; min-width: 0; }
.ab-text { min-height: 0; resize: none; padding: 6px 8px; font-size: 14px; line-height: 1.4; border-radius: 9px; overflow: hidden; }
.ab-task-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.ab-task-opts .select-wrap { flex: 0 1 auto; }
.ab-task-opts select { width: auto; padding: 5px 30px 5px 9px; font-size: 13px; }
.ab-task-opts .select-wrap::after { right: 12px; }
.ab-o { flex: 1 1 160px; padding: 5px 9px; font-size: 13px; }
.ab-task-btns { display: flex; flex-direction: column; gap: 2px; }

/* Bausteine */
.ab-lib { border-top: 1px solid var(--line); padding-top: 8px; }
.ab-lib > summary { list-style: none; display: flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 700; font-size: 14.5px; color: var(--teal-ink); padding: 6px 4px; border-radius: 10px; }
.ab-lib > summary::-webkit-details-marker { display: none; }
.ab-lib > summary .i { width: 18px; height: 18px; }
.ab-lib > summary:hover { background: var(--teal-soft); }
.ab-lib[open] { display: grid; gap: 8px; }
.ab-lib-list { display: grid; gap: 6px; max-height: 420px; overflow: auto; padding-right: 4px; }
.ab-lib-t { margin: 6px 0 0; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); }
.ab-lib-grp { display: grid; gap: 5px; }
.ab-chip { display: flex; align-items: flex-start; gap: 8px; text-align: left; padding: 7px 10px; border-radius: 10px; border: 1.5px solid var(--line-2); background: var(--surface-2); font: inherit; font-size: 13.5px; line-height: 1.35; color: var(--ink); cursor: grab; }
.ab-chip:hover { border-color: var(--teal); background: var(--teal-soft); }
.ab-chip .i { width: 16px; height: 16px; flex: none; margin-top: 1px; color: var(--teal-ink); }

/* Das Blatt (Bildschirm und Druck) */
.ab-page { padding: 34px 40px 26px; font-family: var(--font); font-size: 10.5pt; line-height: 1.45; color: #071B4A; }
.ab-top { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; margin: 0 0 10px; }
.ab-top-t { min-width: 0; flex: 1; }
.ab-page h1 { font-size: 1.7em; margin: 0 0 2px; letter-spacing: -.01em; line-height: 1.2; }
.ab-meta { margin: 0 0 6px; color: #5B6372; font-size: .92em; }
.ab-media { display: flex; gap: 8px; align-items: flex-start; margin: 6px 0 0; padding: 8px 12px; border-radius: 10px; background: #E1F7F1; }
.ab-media .i { width: 1.3em; height: 1.3em; flex: none; color: #0A7F68; margin-top: 1px; }
.ab-media small { color: #3D4B66; font-size: .9em; }
.ab-ph-empty { color: #8E9AB0; font-style: italic; font-weight: 500; }
.ab-qr { flex: none; width: 30mm; text-align: center; }
.ab-qr svg { width: 100%; height: auto; display: block; }
.ab-qr small { display: block; font-size: 7.5pt; color: #3D4B66; font-weight: 700; margin-top: 1mm; }
.ab-abgabe { display: flex; gap: 6px; align-items: center; margin: 0 0 8px; font-size: .88em; color: #3D4B66; }
.ab-abgabe .i { width: 1.1em; height: 1.1em; color: #2E7CF6; flex: none; }
.ab-phase { display: flex; align-items: center; gap: 8px; font-size: 1.05em; margin: 14px 0 6px; padding-bottom: 3px; border-bottom: 1.5px solid #071B4A; }
.ab-phase span { display: inline-grid; place-items: center; width: 1.55em; height: 1.55em; border-radius: 50%; background: #071B4A; color: #fff; font-size: .8em; }
.ab-list { margin: 0; padding-left: 1.6em; display: grid; gap: 10px; }
.ab-list > li { padding-left: 2px; }
.ab-list > li::marker { font-weight: 700; color: #0A7F68; }
.ab-q { margin: 0 0 3px; font-weight: 500; }
.ab-lines i { display: block; height: 1.95em; border-bottom: 1px solid #9AA6B8; }
.ab-box { border: 1.2px solid #9AA6B8; border-radius: 6px; margin-top: 4px; }
.ab-h2 { height: 18mm; } .ab-h3 { height: 26mm; } .ab-h4 { height: 34mm; } .ab-h5 { height: 42mm; } .ab-h6 { height: 50mm; } .ab-h8 { height: 66mm; } .ab-h10 { height: 82mm; } .ab-h12 { height: 98mm; }
.ab-table { width: 100%; border-collapse: collapse; margin-top: 4px; }
.ab-table th { text-align: left; font-size: .85em; background: #EEF2F6; padding: 3px 6px; border: 1px solid #9AA6B8; }
.ab-table td { border: 1px solid #9AA6B8; height: 2.1em; padding: 2px 6px; font-weight: 500; }
.ab-check { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 4px; }
.ab-check li { display: flex; gap: 10px; align-items: baseline; }
.ab-rf { display: inline-flex; gap: 4px; flex: none; }
.ab-rf i { display: inline-grid; place-items: center; width: 1.25em; height: 1.25em; border: 1.2px solid #071B4A; border-radius: 3px; font-style: normal; font-size: .75em; color: #8E9AB0; }
.ab-stars { font-size: 1.6em; letter-spacing: .12em; color: #F5A623; line-height: 1.2; }

/* Infozettel für die Vertretung */
.ab-kick { margin: 0 0 2px; font-size: .8em; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #0A7F68; }
.ab-info-top { display: flex; gap: 18px; align-items: flex-start; margin-top: 10px; }
.ab-steps { flex: 1; margin: 0; padding-left: 1.4em; display: grid; gap: 10px; font-size: 1.05em; }
.ab-url { font-family: var(--mono); font-size: .85em; color: #3D4B66; word-break: break-all; }
.ab-note { margin-top: 14px; padding: 10px 14px; border: 1.5px solid #071B4A; border-radius: 10px; }
.ab-thanks { margin-top: 16px; font-weight: 700; }

/* Druck */
.ab-print { width: 210mm; padding: 14mm 16mm 16mm; background: #fff; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.ab-print .ab-page { padding: 0; }
@media (max-width: 600px) { .ab-page { padding: 20px 16px; } .ab-top { flex-direction: column-reverse; } .ab-qr { width: 90px; } }
