/* Lehrzeug Tagesplaner – Post-its für den Schultag. Gemeinsames Design: /kern/kern.css */
.tp { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 18px; align-items: start; }
.tp-side { position: sticky; top: 78px; padding: 18px; display: grid; gap: 12px; max-height: calc(100vh - 96px); overflow: auto; }
.tp-side-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.tp-side-head h2 { margin: 0; font-size: 1.35rem; letter-spacing: -.01em; }
.tp-kick { margin: 0; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.tp-add { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--navy, #071B4A); color: #fff; cursor: pointer; flex: none; }
.tp-add .i { width: 20px; height: 20px; }
.tp-cats { display: flex; flex-wrap: wrap; gap: 5px; }
.tp-cat { padding: 4px 10px; border-radius: 99px; border: 1.5px solid var(--line-2); background: var(--surface); font-size: 12.5px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.tp-cat.is-on { border-color: var(--ink); color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.tp-howto { margin: 0; }
.tp-vlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tp-v { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 4px; padding: 10px 30px 10px 6px; border-radius: 14px; color: #1F2633; box-shadow: 0 2px 0 rgba(0, 0, 0, .06), 0 6px 14px -10px rgba(7, 27, 74, .45); transition: transform .12s; }
.tp-v.is-armed { outline: 3px solid var(--ink); outline-offset: 2px; transform: rotate(-1deg); }
.tp-v-t { display: grid; gap: 1px; text-align: left; background: none; border: 0; padding: 0; color: inherit; cursor: pointer; min-width: 0; }
.tp-v-t b { font-size: 14.5px; }
.tp-v-t small { font-size: 12px; opacity: .75; }
.tp-tag { justify-self: start; margin-top: 4px; padding: 2px 7px; border-radius: 99px; background: rgba(255, 255, 255, .7); font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; }
.tp-v-x { position: absolute; top: 4px; right: 4px; display: grid; place-items: center; width: 22px; height: 22px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .5); color: #1F2633; cursor: pointer; opacity: 0; }
.tp-v:hover .tp-v-x, .tp-v-x:focus-visible { opacity: 1; }
.tp-v-x .i { width: 12px; height: 12px; }
.tp-grip { display: grid; place-items: center; width: 26px; height: 34px; color: rgba(31, 38, 51, .45); cursor: grab; touch-action: none; flex: none; }
.tp-grip .i { width: 16px; height: 16px; }
.tp-empty { color: var(--ink-3); font-size: 14px; }
.tp-vbtns { margin: 0; }
.tp-privacy { display: flex; gap: 8px; margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--sunken); color: var(--ink-3); font-size: 12.5px; line-height: 1.45; }
.tp-privacy .i { width: 16px; height: 16px; flex: none; margin-top: 2px; }
/* Farben der Post-its: Papier bleibt hell, auch in der dunklen Ansicht */
.c-gelb { background: #F7E28E; } .c-orange { background: #F9CC95; } .c-blau { background: #BEE0EB; } .c-koralle { background: #F4B9A2; } .c-lila { background: #D9C9EE; } .c-gruen { background: #C7E8CE; }
.tp-cat.c-gelb, .tp-cat.c-orange, .tp-cat.c-blau, .tp-cat.c-koralle, .tp-cat.c-lila, .tp-cat.c-gruen { color: #1F2633; border-color: transparent; }
.tp-cat.is-on.c-gelb, .tp-cat.is-on.c-orange, .tp-cat.is-on.c-blau, .tp-cat.is-on.c-koralle, .tp-cat.is-on.c-lila, .tp-cat.is-on.c-gruen { border-color: #1F2633; box-shadow: inset 0 0 0 1px #1F2633; }

.tp-main { padding: 16px 18px 18px; min-width: 0; }
.tp-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.tp-tabs { margin: 0; }
.tp-week { display: flex; align-items: center; gap: 6px; }
.tp-kw { color: var(--ink-3); font-size: 13.5px; font-weight: 600; margin-left: 4px; }
.tp-days { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.tp-days button { border: 0; background: none; padding: 10px 4px; font-weight: 600; color: var(--ink-3); border-bottom: 3px solid transparent; cursor: pointer; }
.tp-days button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.tp-days button.is-today::after { content: " •"; color: var(--teal); }
.tp-dayhead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 10px; margin-bottom: 12px; }
.tp-dayhead h2 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -.02em; }
.tp-daysub { margin: 0; color: var(--ink-3); font-size: 14px; }
.tp-slots { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tp-slot { display: grid; grid-template-columns: 180px minmax(0, 1fr); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--surface); }
.tp-slot-l { display: grid; align-content: center; gap: 1px; padding: 10px 14px; background: var(--sunken); border-right: 1px solid var(--line); }
.tp-slot-l b { font-size: 17px; letter-spacing: -.01em; }
.tp-slot-l small { color: var(--teal-ink); font-size: 12.5px; }
.tp-time-l { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.tp-slot.t-pause .tp-slot-l { background: color-mix(in srgb, #C7E8CE 55%, var(--surface)); }
.tp-slot.t-aufsicht .tp-slot-l { background: color-mix(in srgb, #F7E28E 50%, var(--surface)); }
.tp-slot.t-vor .tp-slot-l, .tp-slot.t-nach .tp-slot-l { background: color-mix(in srgb, #BEE0EB 45%, var(--surface)); }
.tp-slot.is-free .tp-slot-l b { color: var(--ink-3); font-weight: 600; }
.tp-drop { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 10px; min-height: 58px; transition: background .12s; }
.tp-drop.is-over { background: var(--teal-soft); box-shadow: inset 0 0 0 2px var(--teal); }
.is-arming .tp-drop { cursor: copy; }
.is-arming .tp-drop:hover { background: var(--teal-soft); }
.tp-plus { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; padding: 6px 14px; border-radius: 10px; border: 1.5px dashed color-mix(in srgb, var(--ink-3) 55%, transparent); background: none; color: var(--ink-3); font-size: 12.5px; cursor: pointer; }
.tp-plus:hover, .is-arming .tp-plus { border-color: var(--teal); color: var(--teal-ink); background: var(--teal-soft); }
.tp-plus .i { width: 15px; height: 15px; }
.tp-note { display: inline-grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; max-width: 340px; padding: 6px 6px 6px 2px; border-radius: 10px; color: #1F2633; box-shadow: 0 1px 0 rgba(0, 0, 0, .08), 0 6px 12px -10px rgba(7, 27, 74, .6); }
.tp-note .tp-grip { height: 28px; width: 20px; }
.tp-note-t { display: grid; text-align: left; background: none; border: 0; padding: 0 4px; color: inherit; cursor: pointer; min-width: 0; }
.tp-note-t b { font-size: 13.5px; overflow-wrap: anywhere; }
.tp-note-t small { font-size: 11.5px; opacity: .75; overflow-wrap: anywhere; }
.tp-note-b { display: flex; gap: 3px; }
.tp-nb { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .65); color: #1F2633; cursor: pointer; }
.tp-nb .i { width: 13px; height: 13px; }
.tp-nb[aria-pressed="true"] { background: #1F2633; color: #fff; }
.tp-note.is-done { opacity: .6; }
.tp-note.is-done .tp-note-t b { text-decoration: line-through; }
.tp-note.is-small { max-width: 100%; width: 100%; }
.tp-note.is-small .tp-note-t b { font-size: 12.5px; }
.tp-ghost { position: fixed; left: 0; top: 0; z-index: 2000; pointer-events: none; opacity: .92; box-shadow: 0 18px 30px -12px rgba(7, 27, 74, .55); }
.is-src { opacity: .35; }
body.tp-dragging, body.tp-dragging * { cursor: grabbing !important; user-select: none; -webkit-user-select: none; }
/* Woche */
.tp-weekgrid { display: grid; grid-template-columns: repeat(5, minmax(150px, 1fr)); gap: 8px; overflow-x: auto; padding-bottom: 6px; }
.tp-col { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); min-width: 0; }
.tp-col h3 { margin: 0; padding: 10px 12px; background: var(--navy, #071B4A); color: #fff; font-size: 14px; }
.tp-col.is-today h3 { background: var(--teal); }
.tp-wslot { border-top: 1px solid var(--line); }
.tp-wl { margin: 0; padding: 5px 9px 0; display: grid; }
.tp-wl b { font-size: 12.5px; }
.tp-wl small { font-size: 11px; color: var(--teal-ink); }
.tp-wslot.t-pause { background: color-mix(in srgb, #C7E8CE 30%, var(--surface)); }
.tp-wslot.is-free .tp-wl b { color: var(--ink-3); font-weight: 500; }
.tp-wslot .tp-drop { min-height: 40px; padding: 5px 7px 7px; gap: 5px; }
.tp-wslot .tp-plus { min-height: 28px; padding: 2px 10px; width: 100%; }
/* Stundenplan */
.tp-planhead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.tp-planhead p { margin: 0; color: var(--ink-2); max-width: 46em; }
.tp-planwrap { overflow-x: auto; }
.tp-plan { border-collapse: collapse; width: 100%; min-width: 980px; font-size: 13px; }
.tp-plan th { text-align: left; padding: 6px; font-size: 12px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; }
.tp-plan td { padding: 4px; border-top: 1px solid var(--line); vertical-align: top; }
.tp-plan td:first-child { display: grid; gap: 4px; min-width: 150px; }
.tp-plan .input.sm, .tp-plan select.sm { padding: 5px 7px; font-size: 13px; width: 100%; }
.tp-time { width: 74px; } .tp-time .input { margin-bottom: 4px; }
.tp-cell { min-width: 120px; }
.tp-cell2 { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: 4px; }
.tp-cell.is-na { color: var(--ink-3); text-align: center; vertical-align: middle; }
.tp-plan tr.t-pause td { background: color-mix(in srgb, #C7E8CE 25%, transparent); }
.tp-acts { white-space: nowrap; }
.tp-out { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.tp-phone .tp-qr { display: grid; place-items: center; margin: 6px auto 10px; width: min(300px, 80vw); padding: 10px; background: #fff; border-radius: 14px; box-shadow: 0 0 0 1px var(--line); }
.tp-phone .tp-qr svg { width: 100%; height: auto; }
.tp-qrtext { max-height: 160px; overflow: auto; margin: 0 0 10px; padding: 10px; border-radius: 10px; background: var(--sunken); font-size: 12px; white-space: pre-wrap; }
@media (max-width: 1000px) {
  .tp { grid-template-columns: minmax(0, 1fr); }
  .tp-side { position: static; max-height: none; }
  .tp-vlist { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
}
@media (max-width: 640px) {
  .tp-slot { grid-template-columns: minmax(0, 1fr); }
  .tp-slot-l { border-right: 0; border-bottom: 1px solid var(--line); padding: 8px 12px; }
  .tp-days button { font-size: 12.5px; }
  .tp-main { padding: 12px; }
  .tp-out .btn { flex: 1 1 140px; }
}
/* Druck: Tag (A4 hoch) und Woche (A4 quer) */
.tp-print { width: 210mm; min-height: 296mm; padding: 14mm 14mm 18mm; box-sizing: border-box; font-family: var(--font); color: #1F2633; background: #fff; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.tp-print .tp-pk { margin: 0; font-size: 8pt; letter-spacing: .12em; text-transform: uppercase; color: #5B6372; font-weight: 700; }
.tp-print h1 { margin: 0 0 5mm; font-size: 20pt; }
.tp-pt { width: 100%; border-collapse: separate; border-spacing: 0 1.6mm; }
.tp-pt th { width: 44mm; text-align: left; vertical-align: top; padding: 2mm 3mm; background: #EEF1F4; border-radius: 2mm 0 0 2mm; }
.tp-pt th span { display: block; font-size: 6.5pt; letter-spacing: .1em; text-transform: uppercase; color: #5B6372; }
.tp-pt th b { display: block; font-size: 11pt; }
.tp-pt th small { display: block; font-size: 8pt; color: #08735E; }
.tp-pt td { padding: 1.5mm 3mm; border: .3mm solid #DDE4EC; border-left: 0; border-radius: 0 2mm 2mm 0; vertical-align: top; }
.tp-pt tr.t-pause th { background: #E3F2E6; } .tp-pt tr.t-aufsicht th { background: #FBF0C7; }
.tp-pt tr.is-free th b { color: #8E9AB0; font-weight: 500; }
.tp-pn { display: inline-flex; align-items: center; gap: 1.5mm; margin: .8mm 1.5mm .8mm 0; padding: 1mm 2.5mm 1mm 1.5mm; border-radius: 1.5mm; font-size: 9.5pt; }
.tp-pn i { display: inline-block; width: 3mm; height: 3mm; border: .35mm solid #1F2633; border-radius: .6mm; background: #fff; flex: none; }
.tp-pn small { font-size: 8pt; opacity: .75; }
.tp-pn.is-done { text-decoration: line-through; opacity: .6; }
.tp-pline { display: block; height: 5mm; border-bottom: .25mm dotted #B8C2CF; }
.tp-print-w { width: 297mm; min-height: 209mm; padding: 10mm 10mm 14mm; }
.tp-print-w h1 { font-size: 16pt; margin-bottom: 3mm; }
.tp-pw { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2.5mm; }
.tp-pw-col h2 { margin: 0 0 1.5mm; padding: 1.5mm 2mm; background: #071B4A; color: #fff; border-radius: 1.5mm; font-size: 9.5pt; }
.tp-pw-s { padding: 1mm 1.5mm 1.2mm; border-bottom: .25mm solid #DDE4EC; min-height: 8mm; }
.tp-pw-s b { font-size: 8pt; display: block; }
.tp-pw-s small { font-size: 7pt; color: #08735E; display: block; }
.tp-pw-s.t-pause { background: #EEF7F0; }
.tp-pw-s.is-free b { color: #8E9AB0; font-weight: 500; }
.tp-pw-s .tp-pn { display: flex; font-size: 7.5pt; margin: .6mm 0 0; padding: .6mm 1.5mm; }
.tp-pw-s .tp-pn i { width: 2.4mm; height: 2.4mm; }
/* Woche: schmale Spalten */
.tp.is-woche { grid-template-columns: 250px minmax(0, 1fr); }
.tp-col h3 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
.tp-note-t b, .tp-note-t small { overflow-wrap: break-word; hyphens: auto; }
.tp-note.is-small { grid-template-columns: auto minmax(0, 1fr); row-gap: 2px; padding: 4px 4px 4px 0; }
.tp-note.is-small .tp-note-t small { display: none; }
.tp-note.is-small .tp-note-b { grid-column: 1 / -1; justify-self: end; }
.tp-note.is-small .tp-nb { width: 20px; height: 20px; }
.tp-note.is-small .tp-grip { width: 16px; }
@media (max-width: 1000px) { .tp.is-woche { grid-template-columns: minmax(0, 1fr); } }
