/* Lehrzeug Sitzplan – werkzeugeigenes Design. Gemeinsames Design: /kern/kern.css */
.sp-grid { grid-template-columns: 340px minmax(0, 1fr); }
.sp-planbar { display: flex; align-items: center; gap: 8px; }
.sp-planbar .panel-title { flex: none; }
.sp-planpick { flex: 1; min-width: 0; }
.sp-planpick select { padding: 6px 30px 6px 10px; font-size: 13.5px; }
.sp-main { display: grid; gap: 14px; }
.sp-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.zw-spacer { flex: 1; }
.sp-tablebar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 10px 12px; border-radius: 12px; background: var(--blue-soft); }
.sp-room-wrap { background: var(--sunken); border-radius: 18px; padding: 14px; overflow: auto; }
.sp-room { position: relative; width: 100%; min-width: 560px; background: #FFFFFF; border-radius: 12px; box-shadow: inset 0 0 0 2px var(--line-2); background-image: linear-gradient(#EEF2F6 1px, transparent 1px), linear-gradient(90deg, #EEF2F6 1px, transparent 1px); background-size: 5% 7.14%; }
.sp-room.is-tables { box-shadow: inset 0 0 0 2px var(--blue); }
.sp-board { position: absolute; left: 25%; right: 25%; top: 1.4%; height: 6%; border-radius: 8px; background: #0B5B49; color: #E1F7F1; display: grid; place-items: center; font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.sp-room[data-front="unten"] .sp-board { top: auto; bottom: 1.4%; }
.sp-tables { position: absolute; inset: 0; }
.sp-table { position: absolute; display: grid; gap: 3px; padding: 3px; border-radius: 9px; background: #E8C99B; box-shadow: 0 2px 0 #C9A16B, 0 6px 12px -8px rgba(7, 27, 74, .5); touch-action: none; }
.sp-table.is-pult { background: #0D2A66; display: grid; place-items: center; box-shadow: 0 2px 0 #071B4A; }
.sp-pult { color: #fff; font-weight: 700; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.sp-room.is-tables .sp-table { cursor: grab; outline: 2px dashed rgba(46, 124, 246, .5); outline-offset: 2px; }
.sp-room.is-tables .sp-table.is-sel { outline: 3px solid var(--blue); }
.sp-room.is-tables .sp-seat { pointer-events: none; }
.sp-seat { position: relative; min-width: 0; min-height: 0; border: 0; border-radius: 6px; background: rgba(255, 255, 255, .78); color: #071B4A; font-size: clamp(9px, 1.05vw, 13px); font-weight: 500; line-height: 1.15; padding: 2px 3px; display: grid; place-items: center; text-align: center; overflow: hidden; touch-action: none; cursor: grab; }
.sp-seat:not(.is-taken) { cursor: pointer; background: rgba(255, 255, 255, .42); }
.sp-seat .sp-n { overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; word-break: break-word; hyphens: auto; }
.sp-free { color: #8A6A3D; font-size: .85em; font-weight: 400; }
.sp-seat.is-taken { background: #FFFFFF; box-shadow: 0 1px 2px rgba(7, 27, 74, .2); }
.sp-seat.is-sel, .sp-chip.is-sel { outline: 3px solid var(--blue); outline-offset: 1px; }
.sp-seat.is-over { outline: 3px solid var(--teal); background: var(--teal-soft); }
.sp-seat.is-locked { box-shadow: inset 0 0 0 2px #0A7F68; }
.sp-lock { position: absolute; right: 2px; top: 2px; width: 10px; height: 10px; color: #0A7F68; }
.sp-note-dot { position: absolute; left: 3px; top: -2px; color: #F2604F; font-size: 16px; line-height: 1; }
.sp-tact { position: absolute; top: -40px; right: 0; display: flex; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 2px; box-shadow: var(--shadow-2); z-index: 2; }
.sp-pool-wrap { display: grid; gap: 8px; }
.sp-pool-title { margin: 0; font-weight: 700; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sp-pool-title .hint { font-weight: 400; }
.sp-pool { display: flex; flex-wrap: wrap; gap: 6px; min-height: 52px; padding: 10px; border: 2px dashed var(--line-2); border-radius: 14px; background: var(--surface-2); }
.sp-chip { border: 1px solid var(--line-2); background: var(--surface); border-radius: 99px; padding: 6px 12px; font-size: 14px; font-weight: 500; cursor: grab; touch-action: none; }
.sp-chip:hover { border-color: var(--teal); }
.sp-ghost { position: fixed; z-index: 900; pointer-events: none; transform: translate(-50%, -120%); background: #071B4A; color: #fff; padding: 6px 12px; border-radius: 99px; font-weight: 500; font-size: 14px; box-shadow: 0 12px 26px -10px rgba(0, 0, 0, .6); white-space: nowrap; }
body.sp-dragging, body.sp-dragging * { cursor: grabbing !important; user-select: none; }
.sp-selected { padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--blue); background: var(--blue-soft); display: grid; gap: 10px; }
.sp-sel-head { margin: 0; display: flex; justify-content: space-between; align-items: center; }
.sp-print-opts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.sp-print-opts .btn-primary { margin-left: auto; }

/* Druck: A4 quer */
.spp-sheet { width: 297mm; height: 209mm; padding: 10mm 15mm 8mm; display: flex; flex-direction: column; gap: 4mm; font-family: var(--font); color: #071B4A; background: #fff; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.spp-head { display: flex; align-items: baseline; justify-content: space-between; gap: 6mm; border-bottom: .5mm solid #071B4A; padding-bottom: 2mm; }
.spp-head h1 { margin: 0; font-size: 18pt; letter-spacing: -.01em; }
.spp-head p { margin: 0; font-size: 9pt; color: #5B6372; }
.spp-room { position: relative; margin: 0 auto; border: .4mm solid #9AA6B8; border-radius: 3mm; }
.spp-board { position: absolute; left: 25%; right: 25%; top: 1.5%; height: 5.5%; border-radius: 1.5mm; background: #0B5B49; color: #fff; display: grid; place-items: center; font-size: 9pt; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.spp-room[data-front="unten"] .spp-board { top: auto; bottom: 1.5%; }
.spp-tables { position: absolute; inset: 0; }
.spp-t { position: absolute; display: grid; gap: .6mm; padding: .6mm; border-radius: 1.5mm; background: #F1DDBD; border: .3mm solid #C9A16B; }
.spp-t.is-pult { background: #0D2A66; color: #fff; place-items: center; font-size: 8pt; font-weight: 700; text-transform: uppercase; }
.spp-s { background: #fff; border-radius: 1mm; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; overflow: hidden; padding: .3mm; }
.spp-s b { font-size: 9pt; line-height: 1.1; font-weight: 500; word-break: break-word; }
.spp-s small { font-size: 6.5pt; color: #5B6372; line-height: 1.05; }
.spp-foot { margin: auto 0 0; font-size: 8pt; color: #5B6372; text-align: right; }
@media (max-width: 980px) { .sp-grid { grid-template-columns: minmax(0, 1fr); } }
