/* Lehrzeug Vokabelblatt – werkzeugeigenes Design. Gemeinsames Design: /kern/kern.css */

/* =====================================================================
   Gemeinsame Bausteine (wie Losomat und Notenblick)
   ===================================================================== */
.hero-compact { padding: 44px 0 24px; }
.panel-title { margin: 0; font-size: 1.15rem; }
.class-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.more summary { cursor: pointer; font-weight: 500; font-size: 14px; color: var(--ink-2); padding: 4px 0; }
.more[open] { display: grid; gap: 12px; }
.opt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; align-items: start; }
kbd { font-family: var(--mono); font-size: .85em; padding: 1px 6px; border-radius: 6px; border: 1px solid var(--line-2); border-bottom-width: 2px; background: var(--surface); color: var(--ink); }
.dlg-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.import-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px; }
.import-grid textarea { min-height: 280px; font-size: 15px; line-height: 1.55; }
.import-preview { margin: 0; padding: 8px 10px 8px 40px; max-height: 280px; min-height: 120px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); font-size: 14px; }
.import-preview li { padding: 1px 0; }
.dlg-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.role-grid { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.role-grid .check { font-size: 14px; }
.nb-sec { border: 0; border-top: 1px solid var(--line); margin: 0; padding: 14px 0 0; display: grid; gap: 10px; min-width: 0; }
.nb-sec-title { font-weight: 700; font-size: 1rem; padding: 0; margin-bottom: 4px; }
details.nb-sec summary { font-weight: 700; font-size: 1rem; color: var(--ink); }
.gi { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 6px; padding: 6px 6px 6px 10px; border-radius: 12px; background: var(--surface-2); border: 1.5px solid var(--line-2); border-left: 6px solid var(--gc, #0A7F68); }
.gi label { font-weight: 700; font-size: 15px; min-width: 2.2ch; }
.gi-ctl { display: flex; align-items: center; gap: 2px; justify-content: flex-end; }
.gi input { width: 3.2em; text-align: center; font-weight: 700; padding: 6px 2px; border-radius: 8px; border: 1.5px solid var(--line-2); background: var(--surface); }
.gi button { width: 26px; height: 26px; border-radius: 8px; border: 0; background: transparent; color: var(--ink-2); font-weight: 700; font-size: 16px; }
.gi button:hover { background: var(--sunken); color: var(--ink); }
.teacher-hints { display: grid; gap: 8px; }
.teacher-hints:empty { display: none; }
.th { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; font-size: 13.5px; background: var(--yellow-soft); color: var(--yellow-ink); }
.th.is-red { background: var(--coral-soft); color: var(--coral-ink); }
.th.is-ok { background: var(--teal-soft); color: var(--teal-ink); }
.th .i { margin-top: 2px; flex: none; }
.th b { font-weight: 700; }
.task-list, .work-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.key-rows { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.key-rows .gi input { width: 4em; }
.work-list li { display: flex; align-items: center; gap: 8px; justify-content: space-between; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); font-size: 14px; }
.work-list li.is-current { border-color: var(--teal); background: var(--teal-soft); }
.work-list .wl-meta { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.work-list .wl-meta small { color: var(--ink-3); margin-left: 6px; }
.work-list .wl-btns { display: flex; gap: 4px; flex: none; }

/* =====================================================================
   Vokabelblatt
   ===================================================================== */
@font-face { font-family: "Lehrzeug Serif"; font-weight: 400; font-style: normal; font-display: block; src: url(assets/LehrzeugSerif-Regular.woff) format("woff"); }
@font-face { font-family: "Lehrzeug Serif"; font-weight: 700; font-style: normal; font-display: block; src: url(assets/LehrzeugSerif-Bold.woff) format("woff"); }
@font-face { font-family: "Lehrzeug Serif"; font-weight: 400; font-style: italic; font-display: block; src: url(assets/LehrzeugSerif-Italic.woff) format("woff"); }
@font-face { font-family: "Lehrzeug Serif"; font-weight: 700; font-style: italic; font-display: block; src: url(assets/LehrzeugSerif-BoldItalic.woff) format("woff"); }

.vb-grid { display: grid; grid-template-columns: minmax(340px, 450px) minmax(0, 1fr); gap: 20px; align-items: start; }
.vb-input { padding: 20px; display: grid; gap: 14px; min-width: 0; }
.vb-input-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.vb-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); }
.vb-tplbar .field-label { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--teal-ink); }
.vb-tplbar .field-label .i { width: 18px; height: 18px; }
.vb-tplbar-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.vb-tplbar-row .select-wrap { flex: 1 1 200px; min-width: 0; }
.vb-tplbar-row select { background: var(--surface); }
.vb-tplbar .hint { color: var(--ink-2); }
.nb-sec-title .count { margin-left: 6px; vertical-align: 1px; }
.vb-input .opt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.vb-input .vb-opt3 { grid-template-columns: minmax(0, 1.3fr) minmax(0, .8fr) minmax(0, .9fr); gap: 12px; }
.vb-span2 { grid-column: span 2; }
.vb-sub summary { cursor: pointer; font-weight: 500; font-size: 14px; color: var(--ink-2); padding: 4px 0; }
.vb-sub[open] { display: grid; gap: 12px; }
.vb-logo-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.vb-logo-prev { width: 120px; height: 56px; border-radius: 10px; border: 1.5px dashed var(--line-2); background: var(--surface-2); display: grid; place-items: center; color: var(--ink-3); font-size: 12px; overflow: hidden; }
.vb-logo-prev img { max-width: 100%; max-height: 100%; display: block; }
.vb-save-row { display: flex; gap: 8px; align-items: stretch; }
.vb-save-row .input { flex: 1; min-width: 0; padding: 8px 12px; font-size: 15px; }
.work-list .wl-start { font-size: 12px; color: var(--teal-ink); font-weight: 500; margin-left: 6px; }

/* Eingabe-Raster */
.vb-editor { max-height: 430px; overflow: auto; border: 1.5px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface-2); }
.vb-edit { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.vb-edit th { position: sticky; top: 0; z-index: 1; background: var(--sunken); text-align: left; font-size: 12.5px; font-weight: 500; color: var(--ink-2); padding: 7px 8px; border-bottom: 1px solid var(--line-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vb-edit th.n, .vb-edit td.n { width: 34px; text-align: right; color: var(--ink-3); font-size: 12px; padding-right: 6px; font-variant-numeric: tabular-nums; }
.vb-edit th.x, .vb-edit td.x { width: 34px; padding: 0; }
.vb-edit td { border-bottom: 1px solid var(--line); padding: 0; }
.vb-edit tr:last-child td { border-bottom: 0; }
.vb-edit td + td:not(.x) { border-left: 1px solid var(--line); }
.vb-edit input { width: 100%; border: 0; background: transparent; padding: 7px 8px; font-size: 15px; border-radius: 0; min-width: 0; }
.vb-edit input:focus { outline: none; background: var(--surface); box-shadow: inset 0 0 0 2px var(--teal); }
.vb-edit tr.is-empty input::placeholder { color: var(--ink-3); }
.vb-edit .del { width: 30px; height: 30px; border: 0; background: transparent; color: var(--ink-3); border-radius: 8px; display: grid; place-items: center; opacity: 0; }
.vb-edit tr:hover .del, .vb-edit .del:focus-visible { opacity: 1; }
.vb-edit .del:hover { background: var(--coral-soft); color: var(--coral-ink); }
.vb-edit .del .i { width: 15px; height: 15px; }

.vb-key-rows { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.vb-key-rows.many { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.vb-key-rows .gi { grid-template-columns: auto 1fr; }
.vb-key-rows .gi small { grid-column: 1 / -1; color: var(--ink-3); font-size: 12px; line-height: 1.3; }
.vb-key-rows .gi .val { font-weight: 700; text-align: right; font-size: 14px; }
.vb-fb-list { gap: 8px 14px; }
.vb-fb-list .check { flex: 1 1 100%; }

/* Vorschau */
.vb-main { position: sticky; top: 76px; padding: 0; overflow: hidden; min-width: 0; }
.vb-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.vb-status { margin: 0; color: var(--ink-2); font-size: 14px; font-weight: 500; flex: 1 1 180px; }
.vb-status.is-warn { color: var(--coral-ink); }
.vb-preview { background: var(--sunken); max-height: calc(100vh - 210px); min-height: 420px; overflow: auto; padding: 20px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.vb-page-wrap { position: relative; flex: none; }
.vb-page-tag { font-size: 12px; color: var(--ink-3); margin: 0 0 4px; font-weight: 500; }
.vb-print-hint { padding: 12px 20px 16px; }
.vb-tips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 20px; }
.vb-tip { padding: 22px 24px; }
.vb-tip h3 { margin: 0 0 10px; font-size: 1.1rem; }
.vb-tip p, .vb-tip li { color: var(--ink-2); font-size: 14.5px; }
.vb-tip p { margin: 0 0 10px; }
.vb-tip ol { margin: 0 0 10px; padding-left: 20px; display: grid; gap: 6px; }
.vb-dlg { width: min(880px, calc(100% - 24px)); }
.vb-dlg-body { padding: 22px 24px 24px; display: grid; gap: 14px; }
.vb-dlg.is-drop .import-grid textarea { border-color: var(--teal); background: var(--teal-soft); }
.import-preview .pv-b { color: var(--ink-3); }
.vb-measure { position: absolute; left: -10000px; top: 0; visibility: hidden; pointer-events: none; }
.print-area { display: none; }

@media (max-width: 1100px) {
  .vb-grid { grid-template-columns: minmax(0, 1fr); }
  .vb-main { position: static; }
  .vb-preview { max-height: 80vh; }
}
@media (max-width: 760px) {
  .vb-tips { grid-template-columns: minmax(0, 1fr); }
  .vb-input .vb-opt3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .vb-opt3 > .field:first-child { grid-column: 1 / -1; }
  .vb-span2 { grid-column: 1 / -1; }
  .vb-key-rows, .vb-key-rows.many { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .import-grid { grid-template-columns: minmax(0, 1fr); }
  .import-grid textarea { min-height: 160px; }
  .vb-preview { padding: 12px; }
  .vb-bar .btn-lg { flex: 1 1 100%; }
  .vb-edit .del { opacity: 1; }
}

/* ---------- Das A4-Blatt ---------- */
.sheet {
  width: 210mm; height: 297mm; background: #fff; color: #000; overflow: hidden; position: relative;
  padding: 11mm 12mm 10mm 22mm; transform-origin: top left; box-shadow: 0 2px 14px rgba(7, 27, 74, .18);
  font-family: "Lehrzeug Serif", "Liberation Serif", "Times New Roman", Times, serif; font-size: 11pt; line-height: 1.2;
  --rh: 11mm; --fs: 13pt; --lw: .6pt; --lwb: 1.6pt;
  -webkit-font-smoothing: auto; color-scheme: light;
}
.sheet * { box-sizing: border-box; }
.s-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 6mm; border-bottom: var(--lw) solid #000; padding-bottom: 1.2mm; min-height: 6mm; }
.s-brand { display: flex; align-items: center; gap: 3mm; min-width: 0; font-size: 10.5pt; }
.s-brand img { max-height: 11mm; max-width: 45mm; display: block; }
.s-brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.s-top { display: flex; justify-content: flex-end; font-size: 11.5pt; white-space: nowrap; }
.s-top span { padding: 0 2.2mm; border-left: 1.4pt solid #000; line-height: 1; }
.s-top span:first-child { border-left: 0; }
.s-top span:last-child { padding-right: 0; }
.s-student { width: 100%; border-collapse: collapse; margin-top: 4mm; table-layout: fixed; }
.s-student td { border: var(--lw) solid #000; height: 6.2mm; padding: 0 1.6mm; font-size: 11pt; vertical-align: middle; }
.s-student td.l { font-variant: small-caps; width: 22%; font-size: 10.5pt; letter-spacing: .2pt; }
.s-title { text-align: center; font-size: 17pt; margin: 6mm 0 2mm; }
.s-title b { font-weight: 700; }
.s-title .sep { padding: 0 1.6mm; }
.s-title .grp { font-size: 12pt; border: var(--lw) solid #000; padding: .4mm 2mm; margin-left: 3mm; vertical-align: middle; }
.s-instr { text-align: center; font-style: italic; font-size: 9.6pt; margin-bottom: 3mm; }
.s-instr .cl { font-weight: 700; }
.s-instr .tm { font-style: normal; white-space: nowrap; }
.s-cont { display: grid; grid-template-columns: auto 1fr auto; gap: 4mm; align-items: end; font-size: 10.5pt; border-bottom: var(--lw) solid #000; padding-bottom: 1.4mm; margin-bottom: 4mm; }
.s-cont .nm { display: flex; gap: 2mm; align-items: flex-end; }
.s-cont .nm i { display: inline-block; width: 55mm; border-bottom: var(--lw) solid #000; height: 4mm; }
.s-cont .mid { text-align: center; font-weight: 700; }
.s-main { width: 100%; border-collapse: collapse; table-layout: fixed; }
.s-main th, .s-main td { border: var(--lw) solid #000; padding: 0 1.4mm; vertical-align: top; }
.s-main thead th { text-align: left; font-weight: 700; font-size: 11.5pt; padding-top: 1mm; padding-bottom: 1mm; line-height: 1.05; }
.s-main thead tr.sub th { font-size: 5.5pt; font-weight: 400; text-align: center; height: 3.4mm; padding: 0; vertical-align: middle; border-bottom: var(--lwb) solid #000; }
.s-main thead tr.sub th.blank { font-size: 1pt; }
.s-main td { height: var(--rh); font-size: var(--fs); padding-top: .9mm; overflow-wrap: anywhere; }
.s-main tr.blk td { border-top: var(--lwb) solid #000; }
.s-main .num { text-align: right; font-size: 8pt; color: #444; padding: 1.2mm 1mm 0 0; }
.s-main th.num { font-size: 8pt; }
.s-main .ans { color: #555; font-style: italic; }
.s-main .gans { color: #555; font-style: italic; font-size: .8em; }
.s-main .f { padding: 0; border-right: .5pt dashed #000; }
.s-main .f.d { border-left: .5pt dashed #000; }
.s-main tr > .f:last-child { border-right: var(--lw) solid #000; }
.s-main tr.zus td { font-size: 9.5pt; }
.s-main tr.zus td.zt { font-style: italic; }
.s-bottom { display: flex; justify-content: space-between; align-items: flex-start; gap: 6mm; }
.s-res { border-collapse: collapse; margin-top: 4.5mm; width: 80mm; table-layout: fixed; }
.s-res td { border: var(--lw) solid #000; height: 6.4mm; padding: .6mm 1.6mm; font-size: 11pt; vertical-align: top; }
.s-res td.l { width: 44%; font-weight: 700; }
.s-res td.v { text-align: center; }
.s-res td.v small { font-size: 8pt; color: #444; }
.s-res tr.sg td.l { font-weight: 400; font-size: 10pt; }
.s-f { border: var(--lw) solid #000; border-top: 2.6pt double #000; height: 9mm; position: relative; margin-top: 1.6mm; min-width: 14mm; }
.s-f span { position: absolute; right: 1.4mm; bottom: .4mm; font-size: 16pt; }
.s-legend { margin-top: 2.4mm; font-size: 8pt; color: #333; font-style: italic; }
.s-fb { margin-top: 4mm; border: var(--lw) solid #000; padding: 1.6mm 2.4mm 2mm; }
.s-fb .cap { font-size: 8.5pt; font-weight: 700; margin-bottom: 1mm; }
.s-fb ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 6mm; }
.s-fb li { font-size: 9pt; padding: .5mm 0 .5mm 5mm; position: relative; break-inside: avoid; }
.s-fb li::before { content: ""; position: absolute; left: 0; top: 1.1mm; width: 2.8mm; height: 2.8mm; border: .6pt solid #000; }
.s-fb .lines { margin-top: 1.5mm; }
.s-fb .lines i { display: block; height: 7mm; border-bottom: .5pt solid #000; }
.s-key { margin-top: 4mm; }
.s-key .cap { font-size: 8.5pt; font-weight: 700; margin-bottom: .8mm; }
.s-key table { border-collapse: collapse; width: 100%; table-layout: fixed; }
.s-key td { border: .5pt solid #000; text-align: center; font-size: 8.6pt; padding: .5mm .3mm; line-height: 1.15; }
.s-key tr:first-child td { font-weight: 700; }
.s-key td.h { width: 15mm; text-align: left; padding-left: 1.2mm; font-weight: 700; }
.s-key.many td { font-size: 7.2pt; }
.s-foot { position: absolute; left: 22mm; right: 12mm; bottom: 4.5mm; display: flex; justify-content: space-between; font-size: 7.5pt; color: #666; font-family: "LZ Poppins", Helvetica, Arial, sans-serif; }
.s-sol { position: absolute; top: 3.5mm; left: 22mm; font: 700 8pt "LZ Poppins", Helvetica, Arial, sans-serif; color: #fff; background: #444; padding: .6mm 2.4mm; border-radius: 1mm; letter-spacing: .5pt; }

/* ---------- Druck ---------- */
@page { size: A4; margin: 0; }
@media print {
  html, body { background: #fff !important; }
  body > *:not(.print-area) { display: none !important; }
  .print-area { display: block !important; }
  .print-area .sheet { box-shadow: none; transform: none !important; break-after: page; page-break-after: always; }
  .print-area .sheet:last-child { break-after: auto; page-break-after: auto; }
  .print-area .vb-a5 { position: relative; display: flex; width: 297mm; height: 209.5mm; overflow: hidden; break-after: page; page-break-after: always; }
  .print-area .vb-a5:last-child { break-after: auto; page-break-after: auto; }
  .print-area .vb-a5-slot { width: 148.5mm; height: 209.5mm; overflow: hidden; flex: none; }
  .print-area .vb-a5-slot .sheet { transform: scale(.7071) !important; transform-origin: 0 0; break-after: auto; page-break-after: auto; }
  .print-area .vb-a5::after { content: ""; position: absolute; left: 148.5mm; top: 5mm; bottom: 5mm; border-left: .3mm dashed #8E9AB0; }
}

/* Spaltenköpfe, Zusatzzeilen */
.vb-edit th { vertical-align: bottom; }
.vb-hin { width: 100%; min-width: 0; border: 1.5px dashed var(--line-2); border-radius: 8px; padding: 5px 8px; font: inherit; font-weight: 700; font-size: 13px; background: var(--surface); color: var(--ink); }
.vb-hin:hover { border-color: var(--teal); }
.vb-hin:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-style: solid; }
.vb-hs { display: block; font-weight: 500; font-size: 11px; color: var(--ink-2); margin-top: 2px; }
.vb-exlist { display: grid; gap: 10px; margin-bottom: 10px; }
.vb-ex { display: grid; gap: 6px; padding: 10px; border: 1.5px solid var(--line-2); border-radius: 12px; background: var(--surface-2); }
.vb-ex-top { display: flex; gap: 6px; align-items: center; }
.vb-ex-top > .input { flex: 1; min-width: 0; }
.vb-ex-p { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--ink-2); }
.vb-ex-p .input { width: 70px; }
.vb-ex-l { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); }
.vb-exquick { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.seg label[hidden], .field[hidden] { display: none !important; }
.s-main tr.zus td.zl { font-weight: 700; font-style: normal; }
.s-main tr.zus b.zl { font-weight: 700; }
.s-main tr.zus td.xp { text-align: right; font-size: 9pt; color: #222; vertical-align: bottom; padding: 0 1.4mm 1mm 0; }
.s-main tr.zus .xpt { float: right; font-size: 9pt; font-style: normal; color: #222; margin-top: 4mm; }
.vb-edit th .vb-hin { border: 1.5px dashed var(--line-2); background: var(--surface); }
