/* Lehrzeug Terminplaner – werkzeugeigenes Design. Gemeinsames Design: /kern/kern.css */
.tp-form { display: grid; gap: 10px; }
.tp-warn { margin-bottom: 10px; }
.tp-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 10px; font-size: 13px; color: var(--ink-2); }
.tp-l::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.tp-l.ka::before { background: #F2604F; } .tp-l.test::before { background: #2E7CF6; } .tp-l.gfs::before { background: #9B59FF; } .tp-l.sonst::before { background: #8E9AB0; }
.tp-l.frei::before { background: repeating-linear-gradient(45deg, #DDE4EC 0 3px, #F7F9FC 3px 6px); border: 1px solid #CCD6E1; }
.tp-cal { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; margin-bottom: 20px; }
.tp-mt { margin: 0 0 4px; font-weight: 700; }
.tp-wd, .tp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.tp-wd span { font-size: 11px; color: var(--ink-3); text-align: center; }
.tp-d { min-height: 46px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); padding: 2px 3px; text-align: left; display: flex; flex-direction: column; gap: 1px; font-size: 12px; overflow: hidden; }
button.tp-d:hover { border-color: var(--teal); }
.tp-d b { font-weight: 500; font-size: 11.5px; color: var(--ink-2); }
.tp-d.is-empty { border: 0; background: none; }
.tp-d.is-free { background: repeating-linear-gradient(45deg, var(--sunken) 0 4px, var(--surface-2) 4px 8px); }
.tp-d.is-out { opacity: .45; }
.tp-d.is-today { box-shadow: inset 0 0 0 2px var(--blue); }
.tp-top { grid-template-columns: 64px 1fr 1fr; }
.tp-d.is-warn { border: 2px solid var(--yellow); background: var(--yellow-soft); }
.tp-d.is-bad { border: 2px solid #F2604F; background: var(--coral-soft); }
.tp-e { display: block; font-style: normal; font-size: 10.5px; font-weight: 500; line-height: 1.25; padding: 0 3px; border-radius: 3px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tp-e.ka { background: #D9483A; } .tp-e.test { background: #1F66D6; } .tp-e.gfs { background: #7B3FE0; } .tp-e.sonst { background: #5B6372; }
.gb-h3 { margin: 0 0 10px; font-size: 1rem; }
.tp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.tp-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); }
.tp-list li.is-bad { border-color: #F2604F; background: var(--coral-soft); }
.tp-list li.is-warn { border-color: var(--yellow); background: var(--yellow-soft); }
.tp-list .tp-e { display: inline-block; font-size: 11.5px; padding: 1px 7px; border-radius: 99px; }
.tp-ld { min-width: 120px; font-variant-numeric: tabular-nums; font-size: 14px; }
.tp-list small { color: var(--ink-3); }
.tp-list em { flex-basis: 100%; font-style: normal; font-size: 13px; color: var(--coral-ink); }
.tp-list li.is-warn em { color: var(--yellow-ink); }
.tp-act { margin-left: auto; display: flex; }
.tp-empty { color: var(--ink-3); }
.tpp { width: 297mm; min-height: 209mm; padding: 9mm 10mm; font-family: var(--font); color: #071B4A; background: #fff; break-after: page; page-break-after: always; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.tpp:last-child { break-after: auto; page-break-after: auto; }
.tpp-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: .5mm solid #071B4A; margin-bottom: 4mm; }
.tpp-head h1 { margin: 0 0 1mm; font-size: 16pt; }
.tpp-head p { margin: 0; color: #5B6372; font-size: 9pt; }
.tpp-cal { grid-template-columns: repeat(3, 1fr); gap: 4mm 7mm; margin: 0; }
.tpp-cal.m4 { grid-template-columns: repeat(4, 1fr); gap: 3mm 5mm; }
.tpp-cal .tp-d { min-height: 11mm; font-size: 7.5pt; border-radius: 1mm; padding: .4mm .6mm; }
.tpp-cal.m4 .tp-d { min-height: 8mm; font-size: 6.5pt; }
.tpp-cal .tp-e { font-size: 7pt; padding: 0 .6mm; }
.tpp-cal.m4 .tp-e { font-size: 6pt; }
.tpp-cal .tp-mt { font-size: 10.5pt; margin-bottom: 1mm; }
.tpp-cal .tp-wd span { font-size: 7pt; }
.tpp-leg { display: flex; flex-wrap: wrap; gap: 1mm 4mm; margin: 4mm 0 0; font-size: 8pt; color: #3D4B66; }
.tpp-list h2 { margin: 0 0 4mm; font-size: 14pt; }
.tpp-list table { width: 100%; border-collapse: collapse; font-size: 10pt; }
.tpp-list th { text-align: left; border-bottom: .4mm solid #071B4A; padding: 1.5mm; }
.tpp-list td { border-bottom: .2mm solid #CCD6E1; padding: 1.5mm; }
.tpp-foot { margin-top: 6mm; font-size: 8pt; color: #8E9AB0; text-align: right; }
