/* Lehrzeug Stundenplan-Bastler – werkzeugeigenes Design. Gemeinsames Design: /kern/kern.css */

/* ---------- Seitenleiste */
.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-checks { display: grid; gap: 6px; }
.sp-st-spiel { font-family: "Comic Sans MS", "Comic Neue", "Chalkboard SE", "Chalkboard", "Segoe Print", var(--font); }
.sp-st-futur { text-transform: uppercase; letter-spacing: .08em; font-size: 12.5px !important; }
.sp-breaks li { flex-wrap: wrap; gap: 6px; font-size: 13.5px; }
.sp-breaks label { display: inline-flex; align-items: center; gap: 4px; }
.sp-breaks .input, .sp-times .input { padding: 4px 6px; font-size: 13.5px; border-radius: 8px; width: 4.2em; }
.sp-breaks .sp-bl { flex: 1; min-width: 7em; width: auto; }
.sp-breaks .icon-btn { margin-left: auto; }
.sp-manual summary { font-size: 14px; }
.sp-manual > * + * { margin-top: 8px; }
.sp-times { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px 14px; }
.sp-times .input { width: auto; flex: 1; min-width: 0; }
.sp-times.is-off { opacity: .55; }
.sp-trow { display: flex; align-items: center; gap: 6px; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.sp-trow > span { width: 1.6em; color: var(--ink-3); }

.sp-subjects { display: grid; gap: 6px; }
.sp-subj { border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.sp-subj[open] { background: var(--surface); box-shadow: 0 6px 18px -14px rgba(7, 27, 74, .5); }
.sp-subj summary { display: flex; align-items: center; gap: 8px; padding: 5px 6px 5px 10px; cursor: pointer; list-style: none; }
.sp-subj summary::-webkit-details-marker { display: none; }
.sp-subj summary b { flex: 1; min-width: 0; font-weight: 500; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-subj summary small { color: var(--ink-3); font-size: 12px; font-variant-numeric: tabular-nums; }
.sp-dot { width: 12px; height: 12px; border-radius: 4px; background: var(--c, #ccc); flex: none; }
.sp-se { width: 1.3em; text-align: center; }
.sp-sbtn { display: flex; }
.sp-sbtn .icon-btn:disabled { opacity: .3; }
.sp-sbody { padding: 4px 12px 12px; display: grid; gap: 10px; }
.sp-sbody .field-label { display: grid; gap: 5px; }
.sp-emo { display: grid; gap: 6px; }
.sp-emo-in { width: 5em; font-size: 18px !important; }
.sp-emo-list { display: flex; flex-wrap: wrap; gap: 2px; }
.sp-emo-b { width: 32px; height: 32px; border: 1px solid transparent; border-radius: 8px; background: none; font-size: 18px; line-height: 1; padding: 0; cursor: pointer; }
.sp-emo-b:hover, .sp-emo-b:focus-visible { background: var(--sunken); border-color: var(--line-2); }
.sp-sw { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.sp-swb { width: 26px; height: 26px; border-radius: 8px; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--line-2); background: var(--c); cursor: pointer; padding: 0; }
.sp-swb:hover { transform: scale(1.1); }
.sp-sw input[type="color"] { width: 40px; height: 30px; padding: 0 2px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--surface); cursor: pointer; }
.sp-addrow { display: flex; gap: 6px; }
.sp-addrow .input { flex: 1; min-width: 0; }
.sp-presets { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.sp-presets .hint { width: 100%; margin: 0; }
.sp-pre { border: 1px dashed var(--line-2); background: var(--surface); border-radius: 99px; padding: 3px 10px; font-size: 12.5px; color: var(--ink-2); cursor: pointer; }
.sp-pre:hover { border-style: solid; border-color: var(--teal); color: var(--teal-ink); }

/* ---------- Hauptbereich */
.sp-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-bottom: 10px; }
.sp-tools .seg span .i { width: 16px; height: 16px; }
.sp-toolhint { margin: 0; flex: 1; min-width: 220px; }
.sp-brushes { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.sp-brush { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 7px; border-radius: 99px; border: 1.5px solid var(--line-2); background: var(--surface); color: var(--ink); font: inherit; font-size: 13.5px; font-weight: 500; cursor: pointer; }
.sp-brush i { width: 12px; height: 12px; border-radius: 50%; background: var(--c); flex: none; }
.sp-brush small { color: var(--ink-3); font-size: 11.5px; font-weight: 400; }
.sp-brush small:empty { display: none; }
.sp-brush:hover { border-color: var(--c); }
.sp-brush.is-on { border-color: var(--c); background: color-mix(in srgb, var(--c) 16%, var(--surface)); box-shadow: 0 0 0 2px color-mix(in srgb, var(--c) 45%, transparent); }
.sp-sample-note { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.sp-sample-note p { flex: 1; min-width: 220px; margin: 0; }
.sp-stage { display: grid; justify-items: center; }
.sp-sum { margin: 12px 0 0; }

/* Papier (Bildschirm-Vorschau) */
.sp-paper { position: relative; width: 100%; aspect-ratio: 297 / 210; background: #fff; border-radius: 6px; box-shadow: 0 16px 40px -24px rgba(7, 27, 74, .55), 0 0 0 1px rgba(7, 27, 74, .06); padding: 2.6%; color: #071B4A; }
.sp-paper.fmt-a4h { aspect-ratio: 210 / 297; max-width: 560px; }
.sp-paper.is-cut::after { content: ""; position: absolute; inset: 1.1%; border: 1.5px dashed #8E9AB0; border-radius: 4px; pointer-events: none; }
.sp-scissors { position: absolute; top: 1.1%; left: 6%; transform: translateY(-50%); background: #fff; color: #5B6372; padding: 0 4px; line-height: 0; z-index: 1; }
.sp-scissors .i { width: 16px; height: 16px; transform: rotate(-90deg); }
.sp-copy { container-type: inline-size; width: 100%; height: 100%; }
.sp-paper .sps-c { cursor: pointer; }
.sp-paper.tool-paint .sps-c { cursor: crosshair; }
.sp-paper.tool-erase .sps-c { cursor: not-allowed; }
.sp-paper.tool-erase .sps-c.has:hover { opacity: .45; }
.sp-paper button.sps-c { font: inherit; color: inherit; -webkit-user-select: none; user-select: none; touch-action: manipulation; }
.sp-paper button.sps-c.is-empty:hover { border-color: #0A7F68; background: #F0FBF8; }
.sp-paper button.sps-c:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; z-index: 2; }

/* ---------- Blatt (gemeinsam für Bildschirm und Druck) */
.sps { --s-ink: #071B4A; --s-mut: #5B6372; --s-line: #CCD6E1; height: 100%; display: flex; flex-direction: column; gap: .7em; font-family: var(--font); color: var(--s-ink); font-size: 1.32cqw; line-height: 1.2; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.sps.fmt-a4h { font-size: 1.8cqw; }
.sps.fmt-a5 { font-size: 1.42cqw; }
.sps.fmt-a6 { font-size: 1.6cqw; gap: .5em; }
.sps-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1em; flex-wrap: wrap; }
.sps-title { margin: 0; font-size: 2.4em; font-weight: 700; letter-spacing: -.02em; line-height: 1.05; }
.sps-sub { margin: .2em 0 0; color: var(--s-mut); font-size: 1.1em; }
.sps-k { margin: 0 0 .2em; }
.sps-owner { margin: 0; color: var(--s-mut); font-size: 1em; white-space: nowrap; }
.sps-line { display: inline-block; width: 13em; border-bottom: 1px solid var(--s-ink); margin-left: .3em; }
.sps-grid { flex: 1; min-height: 0; display: grid; grid-template-columns: 4.4em repeat(var(--days, 5), minmax(0, 1fr)); gap: .32em; }
.sps-dh { display: grid; place-items: center; padding: .38em .2em; border-radius: .5em; background: #071B4A; color: #fff; font-weight: 700; font-size: 1.02em; }
.sps-tc { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .1em; text-align: center; min-height: 0; overflow: hidden; }
.sps-tn { font-weight: 700; font-size: 1.15em; }
.sps-tt { display: flex; flex-direction: column; font-size: .72em; color: var(--s-mut); font-variant-numeric: tabular-nums; line-height: 1.15; }
.sps-c { position: relative; min-height: 0; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .08em; text-align: center; padding: .2em .35em; border-radius: .5em; border: 1px solid var(--s-line); background: #fff; }
.sps-c.has { background: color-mix(in srgb, var(--c) 24%, #fff); border-color: color-mix(in srgb, var(--c) 62%, #fff); box-shadow: inset .3em 0 0 var(--c); }
.sps-c.split { flex-direction: row; align-items: stretch; padding: 0; gap: 0; background: #fff; box-shadow: none; }
.sps-half { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .05em; padding: .2em .25em; background: color-mix(in srgb, var(--c) 24%, #fff); font-size: .86em; }
.sps-half + .sps-half { border-left: 1px dashed rgba(7, 27, 74, .35); }
.sps-e { font-size: 1.3em; line-height: 1.05; }
.sps-n { font-weight: 700; font-size: 1em; line-height: 1.1; max-width: 100%; overflow-wrap: anywhere; hyphens: auto; }
.sps-m { font-size: .74em; color: #3D4B66; line-height: 1.15; }
.sps-note { position: absolute; top: .2em; right: .25em; font-size: .62em; font-weight: 700; line-height: 1.35; padding: 0 .45em; border-radius: 99px; background: #fff; box-shadow: 0 0 0 1px rgba(7, 27, 74, .25); color: #071B4A; white-space: nowrap; max-width: 70%; overflow: hidden; text-overflow: ellipsis; }
.sps-c.split .sps-note { top: auto; right: auto; bottom: .15em; left: 50%; transform: translateX(-50%); }
.sps.st-futur .sps-note { right: 1em; }
.sps-br { display: flex; align-items: center; gap: .6em; font-size: .74em; color: var(--s-mut); min-height: 0; overflow: hidden; }
.sps-br::before, .sps-br::after { content: ""; flex: 1; border-top: 1px dashed #B8C2CF; }
.sps-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 1em; }
.sps-leg { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .15em 1.1em; font-size: .74em; color: #3D4B66; }
.sps-leg li { display: inline-flex; align-items: center; gap: .35em; }
.sps-leg i { width: .8em; height: .8em; border-radius: .2em; background: var(--c); }
.sps-leg b { color: var(--s-ink); }
.sps-credit { font-size: .62em; color: #8E9AB0; white-space: nowrap; margin-left: auto; }
.sps.fmt-a6 .sps-tt { font-size: .66em; }
.sps.fmt-a6 .sps-m { font-size: .68em; }
.sps.fmt-a6 .sps-grid { grid-template-columns: 3.6em repeat(var(--days, 5), minmax(0, 1fr)); gap: .25em; }

/* Farben */
.sps.cm-pastell .sps-c.has, .sps.cm-pastell .sps-half { background: color-mix(in srgb, var(--c) 12%, #fff); border-color: color-mix(in srgb, var(--c) 38%, #fff); box-shadow: inset .3em 0 0 color-mix(in srgb, var(--c) 55%, #fff); }
.sps.cm-pastell .sps-c.split { box-shadow: none; }
.sps.cm-pastell .sps-dh { background: #E6ECF4; color: #071B4A; }
.sps.cm-sw .sps-c.has, .sps.cm-sw .sps-half { background: #fff; border-color: #071B4A; box-shadow: none; }
.sps.cm-sw .sps-c.split { border-color: #071B4A; }
.sps.cm-sw .sps-dh { background: #fff; color: #071B4A; border: 1.5px solid #071B4A; }
.sps.cm-sw .sps-e { filter: grayscale(1); }
.sps.cm-sw .sps-leg i { background: none; border: 1px solid #071B4A; }

/* Stil: spielerisch */
.sps.st-spiel { font-family: "Comic Sans MS", "Comic Neue", "Chalkboard SE", "Chalkboard", "Marker Felt", "Segoe Print", var(--font); background: radial-gradient(#E3E9F0 .08em, transparent .1em) 0 0 / 1.3em 1.3em; border-radius: .8em; }
.sps.st-spiel .sps-title { color: #F2604F; text-shadow: .06em .06em 0 #F5A623; letter-spacing: 0; font-size: 2.6em; }
.sps.st-spiel .sps-star { display: inline-block; margin-right: .25em; font-size: .8em; transform: rotate(-12deg); text-shadow: none; }
.sps.st-spiel .sps-dh { border-radius: 1em; transform: rotate(-1.2deg); box-shadow: 0 .12em 0 rgba(7, 27, 74, .18); }
.sps.st-spiel .sps-dh:nth-child(odd) { transform: rotate(1.2deg); }
.sps.st-spiel .sps-dh.d1 { background: #F2604F; } .sps.st-spiel .sps-dh.d2 { background: #F5A623; } .sps.st-spiel .sps-dh.d3 { background: #12C7A3; }
.sps.st-spiel .sps-dh.d4 { background: #2E7CF6; } .sps.st-spiel .sps-dh.d5 { background: #9B59FF; } .sps.st-spiel .sps-dh.d6 { background: #EC4F8F; }
.sps.st-spiel .sps-tn { display: grid; place-items: center; width: 1.9em; height: 1.9em; border-radius: 50%; background: #FFC93C; color: #071B4A; }
.sps.st-spiel .sps-c { border-radius: 1em; border-width: 2px; }
.sps.st-spiel .sps-c.has { border-color: var(--c); box-shadow: none; }
.sps.st-spiel .sps-c.is-empty { border-style: dashed; background: rgba(255, 255, 255, .7); }
.sps.st-spiel.cm-pastell .sps-c.has { border-color: color-mix(in srgb, var(--c) 55%, #fff); }
.sps.st-spiel.cm-pastell .sps-dh { color: #fff; }
.sps.st-spiel.cm-sw .sps-title { color: #071B4A; text-shadow: none; }
.sps.st-spiel.cm-sw .sps-dh { background: #fff !important; color: #071B4A; }
.sps.st-spiel.cm-sw .sps-tn { background: #fff; border: 1.5px solid #071B4A; }
.sps.st-spiel.cm-sw .sps-c.has { border-color: #071B4A; }

/* Stil: futuristisch */
.sps.st-futur { --mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Consolas, "Roboto Mono", "DejaVu Sans Mono", monospace; background: linear-gradient(rgba(46, 124, 246, .07) 1px, transparent 1px) 0 0 / 1.4em 1.4em, linear-gradient(90deg, rgba(46, 124, 246, .07) 1px, transparent 1px) 0 0 / 1.4em 1.4em, #F8FAFD; padding: .9em; }
.sps.st-futur .sps-k { font-family: var(--mono); font-size: .9em; text-transform: uppercase; letter-spacing: .22em; color: #0A7F68; }
.sps.st-futur .sps-k::before { content: "// "; color: #9B59FF; }
.sps.st-futur .sps-title { text-transform: uppercase; letter-spacing: .1em; font-size: 2.3em; background: linear-gradient(90deg, #0A7F68, #2E7CF6 55%, #9B59FF); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sps.st-futur .sps-owner { font-family: var(--mono); text-transform: uppercase; letter-spacing: .1em; font-size: .85em; }
.sps.st-futur .sps-dh { border-radius: 0; background: #071B4A; color: #5FF0D2; text-transform: uppercase; letter-spacing: .2em; font-size: .88em; clip-path: polygon(0 0, calc(100% - .7em) 0, 100% .7em, 100% 100%, 0 100%); }
.sps.st-futur .sps-tn { font-family: var(--mono); font-size: 1.25em; color: #2E7CF6; }
.sps.st-futur .sps-tt { font-family: var(--mono); }
.sps.st-futur .sps-c { border-radius: 0; clip-path: polygon(0 0, calc(100% - .75em) 0, 100% .75em, 100% 100%, .75em 100%, 0 calc(100% - .75em)); border: 0; background: rgba(255, 255, 255, .85); box-shadow: inset 0 0 0 1px #CCD6E1; }
.sps.st-futur .sps-c.has { background: linear-gradient(135deg, color-mix(in srgb, var(--c) 30%, #fff), color-mix(in srgb, var(--c) 9%, #fff)); box-shadow: inset .28em 0 0 var(--c); }
.sps.st-futur .sps-half { background: linear-gradient(135deg, color-mix(in srgb, var(--c) 30%, #fff), color-mix(in srgb, var(--c) 9%, #fff)); }
.sps.st-futur .sps-n { text-transform: uppercase; letter-spacing: .06em; font-size: .92em; }
.sps.st-futur .sps-m, .sps.st-futur .sps-note { font-family: var(--mono); }
.sps.st-futur .sps-br { font-family: var(--mono); text-transform: uppercase; letter-spacing: .14em; }
.sps.st-futur .sps-br::before, .sps.st-futur .sps-br::after { border-top: 1px solid rgba(46, 124, 246, .35); }
.sps.st-futur.cm-pastell .sps-c.has, .sps.st-futur.cm-pastell .sps-half { background: color-mix(in srgb, var(--c) 12%, #fff); box-shadow: inset .28em 0 0 color-mix(in srgb, var(--c) 60%, #fff); }
.sps.st-futur.cm-pastell .sps-dh { background: #E6ECF4; color: #071B4A; }
.sps.st-futur.cm-sw { background: #fff; }
.sps.st-futur.cm-sw .sps-title { background: none; color: #071B4A; }
.sps.st-futur.cm-sw .sps-c.has, .sps.st-futur.cm-sw .sps-half { background: #fff; box-shadow: inset 0 0 0 1.5px #071B4A; }
.sps.st-futur.cm-sw .sps-dh { background: #071B4A; color: #fff; border: 0; }
.sps.st-futur.cm-sw .sps-tn { color: #071B4A; }

/* ---------- Druck */
.spp { position: relative; background: #fff; display: grid; }
.spp-a4q { width: 297mm; height: 209mm; padding: 10mm; }
.spp-a4h { width: 210mm; height: 296mm; padding: 10mm; }
.spp-a5 { width: 210mm; height: 296mm; grid-template-rows: 1fr 1fr; }
.spp-a6 { width: 297mm; height: 209mm; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.spp-slot { position: relative; min-height: 0; min-width: 0; }
.spp-a5 .spp-slot { padding: 8mm 9mm; }
.spp-a6 .spp-slot { padding: 6mm 6.5mm; }
.spp.is-cut .spp-slot::after { content: ""; position: absolute; inset: 0; border: .3mm dashed #8E9AB0; pointer-events: none; }
.spp-a4q.is-cut .spp-slot::after, .spp-a4h.is-cut .spp-slot::after { inset: -5mm; border-radius: 2mm; }
.spp-a5.is-cut .spp-slot::after { inset: 2.5mm; }
.spp-a6.is-cut .spp-slot::after { inset: 2mm; }
.spp .sp-scissors { top: 0; left: 8%; transform: translateY(-50%); }
.spp-a4q .sp-scissors, .spp-a4h .sp-scissors { top: -5mm; }
.spp-a5 .sp-scissors { top: 2.5mm; }
.spp-a6 .sp-scissors { top: 2mm; }
.spp .sp-scissors .i { width: 4.5mm; height: 4.5mm; }
.spp .sp-copy { height: 100%; }

.sp2-grid .lz-side .lz-sec:first-of-type { border-top: 1px solid var(--line); padding-top: 14px; }
.sp2-grid .lz-sec > p.field-label { margin: 0 0 -4px; }
@media (max-width: 1080px) {
  .sp2-main.sticky { position: static; }
  .sp2-main { order: -1; }
}
@media (max-width: 600px) {
  .sp-stage { overflow-x: auto; justify-items: start; }
  .sp-paper { min-width: 560px; }
  .sp-paper.fmt-a4h { min-width: 420px; }
}
