/* Gestaltung der interaktiven Bausteine + Druck */

/* ---------- Allgemein: Badges, Formulare ---------- */
.badge { display: inline-block; font-size: 12px; font-weight: 600; padding: 1px 8px; border-radius: 999px; background: var(--soft); color: var(--muted); border: 1px solid var(--line); white-space: nowrap; }
.badge.t-chat { background: var(--c0-soft); color: var(--c0); border-color: transparent; }
.badge.t-auto { background: var(--teal-soft); color: var(--teal); border-color: transparent; }
.badge.t-agent { background: var(--violet-soft); color: var(--violet); border-color: transparent; }
.badge.b-lokal, .badge.b-ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.badge.b-warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.form-grid { display: grid; gap: 10px; }
.form-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: end; }
.form-row > .form-l { flex: 1 1 140px; }
.form-l { display: flex; flex-direction: column; gap: 3px; font-size: 14.5px; }
.form-l input, .form-l textarea, .form-l select, .num-in { padding: 7px 10px; border: 1px solid var(--line); border-radius: 7px; background: var(--card); min-width: 0; max-width: 100%; }
.form-l textarea { resize: vertical; }
.form-l input.short { max-width: 130px; }
.num-in { width: 80px; }
.form-check { display: flex; gap: 8px; align-items: flex-start; font-size: 14.5px; }
.form-check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--ok); }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13.5px; color: var(--muted); margin: 6px 0; }
.legend span::before { content: ""; display: inline-block; width: 14px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: 0; }
.lg-art::before { background: var(--c0-soft); border: 2px solid var(--c0); }
.lg-ev::before { background: var(--c1-soft); border: 2px solid var(--c1); border-radius: 6px !important; }
.lg-ideal::before { background: transparent; border-top: 2px dashed var(--muted); height: 0 !important; }
.lg-real::before { background: var(--brand); height: 3px !important; }
.bad-t { color: var(--bad); font-weight: 600; }

/* ---------- SCRUM-Zyklus ---------- */
.cycle-wrap { overflow-x: auto; }
.cycle-svg { width: 100%; min-width: 520px; max-width: 860px; height: auto; display: block; margin: 0 auto; user-select: none; }
.cy-link { fill: none; stroke: var(--muted); stroke-width: 2.2; }
.cy-link.dash { stroke-dasharray: 7 6; }
.cy-arrowhead { fill: var(--muted); }
.cy-daily { fill: none; stroke: var(--c1); stroke-width: 2.5; stroke-dasharray: 5 4; }
.cy-label { font-size: 13px; fill: var(--muted); font-style: italic; }
.cy-center { font-size: 26px; font-weight: 700; fill: var(--ink); }
.cy-center-sub { font-size: 15px; fill: var(--muted); }
.cy-node { cursor: pointer; }
.cy-node rect { stroke-width: 2.5; transition: transform .15s; }
.cy-node.art rect { fill: var(--c0-soft); stroke: var(--c0); }
.cy-node.ev rect { fill: var(--c1-soft); stroke: var(--c1); }
.cy-node text { font-size: 15.5px; font-weight: 650; fill: var(--ink); }
.cy-node:hover rect, .cy-node:focus rect { stroke-width: 4; }
.cy-node:focus { outline: none; }
.cy-node.cur rect { stroke: var(--brand); stroke-width: 4.5; }
.cy-check, .cy-check-t { opacity: 0; }
.cy-node.seen .cy-check { opacity: 1; fill: var(--ok); }
.cy-node.seen .cy-check-t { opacity: 1; fill: #fff; font-size: 12px; font-weight: 700; }
.cy-chips .btn.ok-chip { border-color: var(--ok); color: var(--ok); }
.cy-panel { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; min-height: 90px; }
.cy-h { font-weight: 700; font-size: 17px; display: flex; gap: 8px; align-items: center; }
.cy-kind { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; padding: 1px 7px; border-radius: 5px; }
.cy-kind.ev { background: var(--c1-soft); color: var(--c1); }
.cy-kind.art { background: var(--c0-soft); color: var(--c0); }
.cy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; font-size: 14.5px; }
.cy-grid > div { background: var(--soft); border-radius: 8px; padding: 8px 10px; }

/* ---------- Zuordnen (Drag & Drop) ---------- */
.dd-pool { display: flex; flex-wrap: wrap; gap: 8px; min-height: 54px; padding: 10px; border: 2px dashed var(--line); border-radius: 10px; margin: 8px 0 12px; background: var(--card); }
.dd-zones { display: grid; gap: 10px; }
.dd-zone { border: 2px solid var(--line); border-radius: 10px; background: var(--card); padding: 8px; min-height: 120px; transition: border-color .15s, background .15s; }
.dd-zone-h { margin-bottom: 6px; }
.dd-body { display: flex; flex-direction: column; gap: 6px; }
[data-drop].over { border-color: var(--brand) !important; background: var(--brand-soft) !important; }
.picking [data-drop] { border-style: dashed; border-color: var(--brand-line); cursor: pointer; }
.chip { background: var(--card); border: 1.5px solid var(--line); border-radius: 8px; padding: 6px 11px; cursor: grab; font-size: 14.5px; box-shadow: 0 1px 2px rgba(0,0,0,.06); touch-action: none; user-select: none; }
.chip:hover { border-color: var(--brand-line); }
.chip.picked, [data-chip].picked { outline: 3px solid var(--brand); outline-offset: 1px; }
.chip.dragging, [data-chip].dragging { opacity: .35; }
.ghost { box-shadow: 0 10px 26px rgba(0,0,0,.25); transform: rotate(-2deg); opacity: .95; }
.chip.right { border-color: var(--ok); background: var(--ok-soft); cursor: default; }
.chip.wrong { border-color: var(--bad); background: var(--bad-soft); }
@media (max-width: 700px) { .dd-zones { grid-template-columns: 1fr !important; } .dd-zone { min-height: 70px; } .cy-grid { grid-template-columns: 1fr; } }

/* ---------- Wasserfall-Vergleich ---------- */
.wf-rows { overflow-x: auto; margin: 10px 0; }
.wf-row { display: grid; grid-template-columns: 96px repeat(8, minmax(74px, 1fr)); gap: 4px; margin: 4px 0; min-width: 720px; }
.wf-lbl { font-weight: 700; font-size: 14px; display: flex; align-items: center; }
.wf-cell { border-radius: 6px; padding: 5px 6px; font-size: 12.5px; line-height: 1.3; min-height: 56px; display: flex; flex-direction: column; border: 2px solid transparent; transition: all .2s; }
.wf-cell small { display: block; color: var(--muted); font-size: 11px; }
.wf-w { font-size: 10.5px; font-weight: 700; color: var(--muted); }
.wf-p0 { background: #dbe7f7; } .wf-p1 { background: #d2e1f5; } .wf-p2, .wf-p3, .wf-p4, .wf-p5 { background: #c6d9f2; } .wf-p6 { background: #b9d0ee; }
.wf-cell:last-child.wf-p6 { background: #a9c4ea; }
.sc-p { background: var(--brand-soft); }
.wf-cell.hit { border-color: var(--ok); background: var(--ok-soft); }
.wf-cell.hit-bad { border-color: var(--bad); background: var(--bad-soft); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .wf-cell[class*="wf-p"] { background: #1f2d44; } }
:root[data-theme="dark"] .wf-cell[class*="wf-p"] { background: #1f2d44; }
:root[data-theme="dark"] .wf-cell.hit-bad, :root[data-theme="dark"] .wf-cell.hit-bad { background: var(--bad-soft); }

/* ---------- Planning Poker ---------- */
.pk-top { display: flex; justify-content: space-between; }
.story-card { background: #fffdf4; color: #2b2410; border: 1px solid #e9dfb8; border-radius: 6px; padding: 12px 14px; box-shadow: 2px 3px 0 #e9dfb8; font-size: 15px; }
.story-card.mini { margin: 8px 0 12px; }
.story-card .sc-title { font-size: 16px; line-height: 1.5; }
.story-card .ph { color: #a89f80; }
.story-card .sc-top { display: flex; gap: 8px; align-items: center; font-size: 12.5px; font-weight: 700; color: #7a6c3a; margin-bottom: 6px; }
.story-card .sc-top span:first-child { flex: 1; }
.sc-sp { background: #2b2410; color: #fffdf4; border-radius: 50%; min-width: 38px; height: 38px; display: grid; place-items: center; font-size: 13px; }
.sc-prio { border-radius: 4px; padding: 0 6px; }
.sc-prio.p-hoch { background: #fcd9d4; color: #8a2433; } .sc-prio.p-mittel { background: #fdeac0; color: #7a5a10; } .sc-prio.p-niedrig { background: #dcefe2; color: #1e6b41; }
.sc-ak-h { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: #7a6c3a; margin-top: 10px; font-weight: 700; }
.sc-ak { list-style: none; padding: 0 !important; margin: 4px 0 0 !important; font-size: 14.5px; }
.pk-table { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; padding: 14px; background: #3d5a4c; border-radius: 60px; margin: 6px 0 12px; }
.pk-seat { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.pk-name { font-size: 12.5px; color: #e6f3ea; font-weight: 600; }
.pk-card { width: 50px; height: 70px; border-radius: 7px; background: #fff; color: #182230; display: grid; place-items: center; font-weight: 800; font-size: 20px; box-shadow: 0 3px 6px rgba(0,0,0,.25); }
.pk-card.back { background: repeating-linear-gradient(45deg, #303338, #303338 6px, #4a4e55 6px, #4a4e55 12px); }
.pk-card.empty { background: transparent; border: 2px dashed #b9dcc7; color: #b9dcc7; box-shadow: none; }
.pk-seat.me .pk-name { color: #ffd43b; }
.pk-deck { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.pk-pick { width: 48px; height: 64px; border-radius: 7px; border: 2px solid var(--line); background: var(--card); font-weight: 800; font-size: 18px; cursor: pointer; }
.pk-pick:hover { border-color: var(--brand); transform: translateY(-3px); }
.pk-pick.on { background: var(--brand); color: #fff; border-color: var(--brand); transform: translateY(-6px); }

/* ---------- Kanban ---------- */
.kb-board { display: grid; grid-template-columns: repeat(4, minmax(150px, 1fr)); gap: 8px; overflow-x: auto; }
.kb-col { background: var(--soft); border: 2px solid transparent; border-radius: 10px; padding: 8px; min-height: 180px; display: flex; flex-direction: column; gap: 6px; }
.kb-col.full { border-color: var(--warn-line); }
.kb-h { display: flex; justify-content: space-between; font-size: 14px; }
.kb-wip { font-size: 12px; background: var(--card); border-radius: 999px; padding: 0 8px; color: var(--muted); }
.kb-wip.at { background: var(--warn-soft); color: var(--warn); font-weight: 700; }
.kb-card { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--c1); border-radius: 6px; padding: 7px 9px; font-size: 14px; cursor: grab; touch-action: none; user-select: none; }
.kb-who { font-size: 12px; color: var(--muted); }
.kb-mv { display: flex; justify-content: space-between; margin-top: 4px; }
.kb-arrow { border: 1px solid var(--line); background: var(--soft); border-radius: 5px; padding: 0 10px; cursor: pointer; font-size: 14px; }
.kb-mv .kb-arrow:only-child:last-child { margin-left: auto; }
@media (max-width: 700px) { .kb-board { grid-template-columns: repeat(4, 150px); } }

/* ---------- Sprint-Simulation ---------- */
.sp-ctrl { display: grid; gap: 6px; margin-bottom: 8px; }
.sp-l { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 14.5px; }
.sp-l input[type=range] { flex: 1 1 160px; accent-color: var(--brand); }
.sp-cap { margin: 6px 0 10px; }
.sp-capbar { height: 14px; background: var(--soft); border-radius: 7px; overflow: hidden; border: 1px solid var(--line); }
.sp-capfill { height: 100%; background: var(--c0); transition: width .3s; }
.sp-capfill.good { background: var(--ok); }
.sp-capfill.over { background: var(--bad); }
.sp-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sp-cols.locked-sim { opacity: .65; pointer-events: none; }
.sp-col { border: 2px solid var(--line); border-radius: 10px; padding: 8px; background: var(--card); min-height: 160px; display: flex; flex-direction: column; gap: 5px; }
.sp-col.sprint { border-color: var(--brand-line); background: var(--brand-soft); }
.sp-h { margin-bottom: 2px; }
.sp-story { display: flex; gap: 8px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 7px; padding: 6px 8px; font-size: 14px; cursor: grab; touch-action: none; user-select: none; }
.sp-prio { font-size: 11.5px; color: var(--muted); font-weight: 700; min-width: 22px; }
.sp-t { flex: 1; }
.sp-pts { background: var(--ink); color: var(--card); font-weight: 700; border-radius: 50%; width: 26px; height: 26px; display: grid; place-items: center; font-size: 12.5px; flex-shrink: 0; }
.sp-empty { color: var(--muted); font-size: 14px; text-align: center; padding: 24px 0; border: 2px dashed var(--brand-line); border-radius: 8px; }
.sp-sim h4 { margin: 14px 0 4px; }
.sp-chart { max-width: 560px; }
.bd-svg { width: 100%; height: auto; background: var(--card); border: 1px solid var(--line); border-radius: 8px; }
.bd-grid { stroke: var(--line); }
.bd-tick { font-size: 12px; fill: var(--muted); }
.bd-ideal { stroke: var(--muted); stroke-width: 2; stroke-dasharray: 6 5; }
.bd-real { fill: none; stroke: var(--brand); stroke-width: 3; }
.bd-pt { fill: var(--brand); }
.sp-log { font-size: 14px; padding-left: 22px !important; }
@media (max-width: 640px) { .sp-cols { grid-template-columns: 1fr; } }

/* ---------- Story-Checker ---------- */
.checks { list-style: none; padding: 0 !important; margin: 10px 0 !important; font-size: 14px; }
.checks li { padding: 3px 0; }
.ck-bad { color: var(--bad-ink); } .ck-warn { color: var(--warn); }

/* ---------- Einordnen / Abstimmen ---------- */
.eo-list { display: grid; gap: 10px; margin: 8px 0; }
.eo-item { border: 1px solid var(--line); border-radius: 10px; background: var(--card); padding: 10px 14px; }
.eo-t { margin-bottom: 6px; }
.eo-n { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--soft); font-size: 12.5px; font-weight: 700; margin-right: 4px; }
.eo-opts { display: flex; gap: 6px; flex-wrap: wrap; }
.eo-btn.on { background: var(--ink); color: var(--card); border-color: var(--ink); }
.eo-btn.right { box-shadow: 0 0 0 3px var(--ok); }
.eo-btn.wrong { box-shadow: 0 0 0 3px var(--bad); }

/* ---------- Tool-Finder ---------- */
.tf-filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; }
.tf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; margin-top: 6px; align-items: start; }
.tf-card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; }
.tf-card > summary { cursor: pointer; padding: 10px 12px; list-style: none; display: grid; gap: 5px; }
.tf-card > summary::-webkit-details-marker { display: none; }
.tf-card[open] { border-color: var(--brand-line); box-shadow: var(--shadow); }
.tf-h { display: flex; justify-content: space-between; gap: 8px; font-size: 16px; }
.tf-badges { display: flex; flex-wrap: wrap; gap: 4px; }
.tf-more { padding: 0 12px 10px; font-size: 14px; border-top: 1px solid var(--line); }
.tf-more p { margin: 6px 0; }

/* ---------- Prompt-Log ---------- */
.pl-list { display: grid; gap: 8px; margin-top: 8px; }
.pl-entry { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; }
.pl-meta { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-bottom: 4px; }
.pl-del { margin-left: auto; border: 0; background: none; cursor: pointer; font-size: 15px; }

/* ---------- Wochenplan ---------- */
.wp-top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.wp-top .btns { margin: 0; }
.wp-list { display: grid; gap: 6px; margin-top: 8px; }
.wp-row { border: 1px solid var(--line); border-left: 5px solid var(--c0); border-radius: 8px; background: var(--card); }
.wp-row.s0 { border-left-color: var(--violet); }
.wp-row.cr { border-left-color: var(--bad); }
.wp-row.last { border-left-color: var(--ok); }
.wp-row > summary { cursor: pointer; padding: 8px 12px; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; list-style: none; }
.wp-row > summary::-webkit-details-marker { display: none; }
.wp-nr { font-weight: 800; min-width: 70px; }
.wp-week { font-size: 12.5px; color: var(--muted); min-width: 62px; }
.wp-ziel { flex: 1; }
.wp-flag { font-size: 16px; }
.wp-body { padding: 0 14px 10px; font-size: 14.5px; }
.wp-body p { margin: 5px 0; }
.lk-only { background: var(--brand-soft); border-radius: 6px; padding: 4px 8px; }

/* ---------- Woche ---------- */
.wk-row { display: grid; grid-template-columns: 130px 1fr; gap: 10px; align-items: center; margin: 6px 0; }
.wk-l { display: flex; flex-direction: column; font-size: 14px; }
.wk-l small { color: var(--muted); }
.wk-bar { display: flex; gap: 3px; min-width: 0; }
.wk-b { flex-basis: 0; min-width: 0; border: 0; border-radius: 6px; padding: 6px 4px; font-size: 12.5px; line-height: 1.2; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; color: #182230; }
.wk-b span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.wk-b small { opacity: .75; }
.wk-ev { background: #fbd3b4; } .wk-work { background: #cfe3f5; } .wk-ref { background: #e0d4f7; } .wk-log { background: #cfeedd; }
.wk-b:hover { filter: brightness(.95); outline: 2px solid var(--ink); }
@media (max-width: 560px) { .wk-row { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- Beispielprojekte ---------- */
.pj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 10px; align-items: start; }
.pj-card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; }
.pj-card[open] { grid-column: 1 / -1; border-color: var(--brand-line); }
.pj-card > summary { cursor: pointer; padding: 10px 12px; list-style: none; display: grid; gap: 4px; }
.pj-card > summary::-webkit-details-marker { display: none; }
.pj-h { display: flex; gap: 8px; align-items: center; font-size: 16px; }
.pj-h b { flex: 1; }
.pj-ico { font-size: 22px; }
.pj-more { padding: 0 14px 12px; border-top: 1px solid var(--line); }
.pj-tab td:last-child, .pj-tab th:last-child { text-align: center; }

/* ---------- Agent-Ablauf ---------- */
.ag-meta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.ag-lane { list-style: none; padding: 0 !important; margin: 0 !important; display: flex; gap: 4px; flex-wrap: wrap; }
.ag-step button { border: 1px solid var(--line); background: var(--card); border-radius: 8px; padding: 5px 9px; cursor: pointer; display: flex; flex-direction: column; align-items: flex-start; font-size: 13.5px; line-height: 1.25; }
.ag-step.du button { border-left: 4px solid var(--c1); }
.ag-step.ki button { border-left: 4px solid var(--violet); }
.ag-step.past button { opacity: .7; }
.ag-step.cur button { background: var(--ink); color: var(--card); opacity: 1; }
.ag-who { font-size: 11px; font-weight: 700; }
.ag-detail { display: grid; grid-template-columns: 2fr 1fr; gap: 10px; margin-top: 10px; }
.ag-term { background: #182230; color: #e8eaf0; border-radius: 8px; padding: 12px 14px; font-family: var(--mono); font-size: 14px; min-height: 96px; }
.ag-term code { background: #2b3547; color: #ffd8a8; }
.ag-files { display: flex; flex-direction: column; gap: 4px; }
.ag-file { font-family: var(--mono); font-size: 13px; padding: 4px 8px; border-radius: 6px; background: var(--soft); border: 1px solid var(--line); }
.ag-file.hot { background: var(--violet-soft); border-color: var(--violet); font-weight: 700; }
@media (max-width: 640px) { .ag-detail { grid-template-columns: 1fr; } .ag-files { flex-direction: row; flex-wrap: wrap; } }

/* ---------- Druckvorlagen ---------- */
.print-sheet { background: #fff; color: #182230; border: 1px solid var(--line); border-radius: 8px; padding: 16px 18px; }
.print-sheet .muted { color: #647084; }
.print-sheet table.simple th { background: #f1f3f6; }
.print-sheet table.simple th, .print-sheet table.simple td { border-color: #d5d9e0; }
.ps-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; border-bottom: 2px solid #182230; padding-bottom: 6px; margin-bottom: 10px; font-size: 15px; }
.ps-head span { color: #647084; font-size: 13.5px; }
.ps-foot { margin-top: 12px; }
.lines { height: 64px; background: repeating-linear-gradient(transparent, transparent 31px, #c9cfd8 31px, #c9cfd8 32px); }
.retro-grid { display: grid; gap: 8px; }
.retro-col { border: 1.5px solid #c9cfd8; border-radius: 8px; padding: 8px; min-height: 260px; display: flex; flex-direction: column; }
.retro-space { flex: 1; }
.tpl-field { border-bottom: 1px solid #9aa1b2; min-height: 30px; margin: 4px 0 10px; }
.tpl-box { border: 1.5px solid #c9cfd8; border-radius: 8px; padding: 8px 10px; min-height: 70px; margin: 6px 0; }
.tpl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tpl-check { list-style: none; padding: 0 !important; }
.tpl-check li::before { content: "☐ "; font-size: 18px; }
.tpl-tab { width: 100%; }
.tpl-tab td { height: 30px; }

/* ---------- Lehrkraft: Checkliste, Kolloquium, Rubrik ---------- */
.cl-list { list-style: none; padding: 0 !important; }
.cl-list li { display: flex; gap: 8px; align-items: flex-start; padding: 4px 0; border-bottom: 1px dotted #d5d9e0; }
.cl-list input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--ok); flex-shrink: 0; }
.ko-out { display: grid; gap: 8px; margin: 10px 0; }
.ko-q { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: 8px; padding: 8px 12px; display: grid; gap: 4px; }
.ko-q .badge { justify-self: start; }
.ko-timer { font-size: 30px; font-weight: 800; font-family: var(--mono); text-align: center; }
.ko-timer.end { color: var(--bad); }
.rb-tab { font-size: 13.5px; min-width: 760px; }
.rb-tab td:first-child { font-weight: 600; min-width: 160px; }
.rb-cat th { background: var(--brand-soft) !important; text-align: left; }
.print-sheet .rb-cat th { background: #eef2f8 !important; }
.rb-edit { display: block; min-height: 1.4em; border-radius: 4px; padding: 1px 3px; }
.rb-edit:hover, .rb-edit:focus { background: #fffbe6; outline: 1px dashed #e0a526; }
.rb-sheet { font-size: 13px; }
.rb-sheet td, .rb-sheet th { padding: 3px 4px !important; text-align: center !important; }
.rb-vert { vertical-align: bottom !important; height: 150px; }
.rb-vert span { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; font-weight: 600; font-size: 12px; }
.rb-sheet td.c0, .rb-sheet th.c0 { background: #fdf0ea; } .rb-sheet td.c1, .rb-sheet th.c1 { background: #eaf2fb; }
.rb-sheet td.c2, .rb-sheet th.c2 { background: #f1ecfb; } .rb-sheet td.c3, .rb-sheet th.c3 { background: #e9f6ee; }
.rb-sel { padding: 2px; border: 1px solid #c9cfd8; border-radius: 4px; background: #fff; color: #182230; }
.rb-name { width: 70px; padding: 3px 5px; border: 1px solid #c9cfd8; border-radius: 4px; background: #fff; color: #182230; }
.rb-res { font-weight: 800; font-family: var(--mono); }
.np-row { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; }

/* ---------- Druck ---------- */
.print-only { display: none; }
@media print {
  @page { margin: 14mm 12mm; }
  :root { --bg: #fff; --card: #fff; --card-2: #fff; --ink: #000; --muted: #444; --line: #bbb; --soft: #f2f2f2; }
  body { background: #fff; color: #000; font-size: 11pt; }
  header.site-head { padding: 0 0 10px; border-bottom: 1px solid #999; }
  .school-logo { flex-basis: 120px; width: 120px; }
  .school-logo img { filter: none !important; }
  h1 { font-size: 20pt; margin: 6px 0; }
  nav#navigation, .intro, .pager, .no-print, .done-row, .goal, .toasts, .lk-banner, .btns, .cy-chips, .tf-filters { display: none !important; }
  main { padding: 0; max-width: none; }
  .layout { display: block; }
  .article { border: 0; }
  .article-head, .content { padding: 10px 0; background: #fff; }
  section.example, .box, .merksatz { break-inside: avoid; }
  .widget { border: 0; padding: 0; background: #fff; }
  details { break-inside: avoid; }
  details > :not(summary) { display: block !important; }
  details.fold, .tf-card, .pj-card, .wp-row { border: 1px solid #bbb; }
  .quiz { break-inside: avoid; }
  .print-sheet { border: 0; padding: 0; }
  .site-footer { font-size: 8.5pt; }
  .print-only { display: block; }
  /* Nur einen Block drucken */
  body.print-one * { visibility: hidden; }
  body.print-one .print-target, body.print-one .print-target * { visibility: visible; }
  body.print-one .print-target { position: absolute; left: 0; top: 0; width: 100%; }
  body.print-one header.site-head, body.print-one .article-head, body.print-one footer.site-footer { display: none; }
  .rb-sheet td.c0, .rb-sheet td.c1, .rb-sheet td.c2, .rb-sheet td.c3 { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .retro-col { min-height: 380px; }
  .cycle-svg { min-width: 0; }
}

/* ---------- Prompt-Karten ---------- */
.pr-card { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--violet); border-radius: 0 8px 8px 0; padding: 10px 14px; margin: 10px 0; }
.pr-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.pr-text { white-space: pre-wrap; font-family: var(--mono); font-size: 13.5px; background: var(--soft); border-radius: 6px; padding: 8px 10px; margin: 6px 0; }

/* ---------- Woche: Arbeit zu Hause ---------- */
.wk-home { background: repeating-linear-gradient(135deg, transparent, transparent 8px, rgba(15, 118, 110, .06) 8px, rgba(15, 118, 110, .06) 16px); border-radius: 8px; padding: 4px 0; }
.wk-home .wk-l b { color: var(--teal); }
.wk-b.wk-home { background: #bfe8e1; }
.wk-b.wk-async { background: #e6e7e9; }
.lg-wk.ev::before { background: #fbd3b4; } .lg-wk.work::before { background: #cfe3f5; } .lg-wk.home::before { background: #bfe8e1; }
.lg-wk.async::before { background: #e6e7e9; } .lg-wk.ref::before { background: #e0d4f7; } .lg-wk.log::before { background: #cfeedd; }

/* ---------- Definition of Fun ---------- */
.dof-pick { display: flex; flex-direction: column; gap: 5px; }
.dof-grp { font-size: 12px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }
.dof-chip { text-align: left; border: 1px solid var(--line); background: var(--card); border-radius: 8px; padding: 6px 10px; font-size: 14px; cursor: pointer; }
.dof-chip:hover { border-color: var(--brand-line); }
.dof-chip.on { border-color: #db2777; background: #fdf2f8; color: #831843; }
.dof-chip.on::before { content: "✓ "; font-weight: 700; }
.dof-list { list-style: none; padding: 0 !important; }
.dof-list li { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px dotted #d5d9e0; }
.dof-baro { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; }
.dof-col { display: flex; flex-direction: column; align-items: center; gap: 3px; width: 62px; }
.dof-col select { width: 60px; padding: 2px; border: 1px solid var(--line); border-radius: 5px; background: var(--card); }
.dof-bar-wrap { height: 110px; width: 34px; background: var(--soft); border-radius: 6px; display: flex; align-items: flex-end; overflow: hidden; }
.dof-bar { width: 100%; background: #db2777; color: #fff; font-size: 11px; font-weight: 700; text-align: center; transition: height .3s; }
.dof-bar.low { background: var(--bad); }
.dof-warn { flex-basis: 100%; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .dof-chip.on { background: #3a1830; color: #fbcfe8; } }
:root[data-theme="dark"] .dof-chip.on { background: #3a1830; color: #fbcfe8; }

/* ---------- Beispielprojekt „Turmbau“ ---------- */
.bsp-team { background: var(--card-2); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-bottom: 12px; }
.bsp-team-h { display: flex; gap: 12px; align-items: center; }
.bsp-logo { font-size: 30px; }
.bsp-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 6px; margin-top: 10px; }
.bsp-p { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 6px 9px; font-size: 14.5px; }
.bsp-nav { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 12px; }
.bsp-head { margin-bottom: 8px; }
.bsp-goal { font-size: 17px; margin-top: 4px; }
.bsp-ziel { display: inline-block; font-size: 12.5px; font-weight: 600; padding: 1px 9px; border-radius: 999px; margin-left: 6px; vertical-align: 2px; }
.bsp-ziel.ok { background: var(--ok-soft); color: var(--ok); }
.bsp-ziel.part { background: var(--warn-soft); color: var(--warn); }
.bsp-vis { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 10px 0; }
.bsp-fig { margin: 0; }
.bsp-fig figcaption { text-align: center; margin-top: 3px; }
.bsp-game { width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--line); display: block; }
.bsp-noburn { height: 100%; min-height: 140px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 16px; border: 2px dashed var(--line); border-radius: 8px; color: var(--muted); }
.bsp-tabs { display: flex; flex-wrap: wrap; gap: 2px; border-bottom: 2px solid var(--line); margin-top: 14px; }
.bsp-tab { border: 0; background: none; color: var(--muted); padding: 8px 12px; font-size: 15px; cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; font-weight: 500; }
.bsp-tab:hover { color: var(--ink); }
.bsp-tab.on { color: var(--ink); border-bottom-color: var(--brand); font-weight: 700; }
.bsp-pane { padding: 6px 2px 4px; }
.bsp-pane h4 { margin: 14px 0 6px; }
.bsp-sb tr.ok td:last-child { color: var(--ok); font-weight: 600; }
.bsp-sb tr.nok td:last-child, .bsp-sb tr.x td:last-child { color: var(--warn); font-weight: 600; }
.bsp-sb td:last-child { white-space: nowrap; }
.bsp-week { list-style: none; padding: 0 !important; margin: 0 !important; display: grid; gap: 8px; }
.bsp-week li { margin: 0 !important; padding: 0 !important; display: grid; grid-template-columns: 190px 1fr; gap: 10px; align-items: start; }
.bsp-seg { font-size: 13.5px; font-weight: 600; padding: 4px 9px; border-radius: 6px; }
.bsp-seg.school { background: #cfe3f5; color: #1e3a5f; }
.bsp-seg.home { background: #bfe8e1; color: #134e4a; }
.bsp-async { display: grid; gap: 6px; }
.bsp-msg { background: var(--card-2); border: 1px solid var(--line); border-radius: 10px 10px 10px 2px; padding: 6px 10px; font-size: 14.5px; }
.bsp-retro { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.bsp-retro > div { background: var(--card-2); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
.bsp-retro p { margin: 4px 0 0; font-size: 14.5px; }
.bsp-low { color: var(--bad); font-weight: 600; }
.bsp-git { font-family: var(--mono); font-size: 13px; background: var(--card-2); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; display: grid; gap: 3px; overflow-x: auto; }
.bsp-git code { background: none; padding: 0; color: var(--warn); }
.bsp-where { display: inline-block; min-width: 92px; font-size: 12px; font-family: inherit; padding: 0 6px; border-radius: 4px; }
.bsp-where.school { background: #cfe3f5; color: #1e3a5f; }
.bsp-where.home { background: #bfe8e1; color: #134e4a; }
.bsp-prompt { border-left: 4px solid var(--ok); background: var(--card-2); padding: 8px 12px; border-radius: 0 8px 8px 0; }
.bsp-prompt.kritisch { border-left-color: var(--warn-line); }
.bsp-prompt p { margin: 4px 0; font-size: 14.5px; }
.bsp-code { font-family: var(--mono); font-size: 13.5px; line-height: 1.45; background: #1e2127; color: #e6e7e9; border-radius: 8px; padding: 12px 14px; overflow-x: auto; white-space: pre; }
.bsp-q { margin-top: 14px; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; background: var(--card); }
.bsp-q summary { cursor: pointer; }
.bsp-a { margin-top: 8px; }
.bsp-pager { justify-content: flex-start; margin-top: 14px; }
.bsp-bar-plan { fill: var(--line); }
.bsp-bar-done { fill: var(--brand); }
.lg-plan::before { background: var(--line); }
.lg-done::before { background: var(--brand); }
.bsp-st { font-weight: 600; white-space: nowrap; font-size: 13.5px; }
.bsp-st.ok { color: var(--ok); } .bsp-st.x { color: var(--bad); } .bsp-st.open { color: var(--muted); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .bsp-seg.school { background: #1b2a40; color: #cfe3f5; } :root:not([data-theme="light"]) .bsp-seg.home { background: #12302c; color: #bfe8e1; } }
:root[data-theme="dark"] .bsp-seg.school { background: #1b2a40; color: #cfe3f5; }
:root[data-theme="dark"] .bsp-seg.home { background: #12302c; color: #bfe8e1; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .bsp-where.school { background: #1b2a40; color: #cfe3f5; } :root:not([data-theme="light"]) .bsp-where.home { background: #12302c; color: #bfe8e1; } }
:root[data-theme="dark"] .bsp-where.school { background: #1b2a40; color: #cfe3f5; }
:root[data-theme="dark"] .bsp-where.home { background: #12302c; color: #bfe8e1; }
@media (max-width: 800px) {
  .bsp-vis, .bsp-retro { grid-template-columns: 1fr; }
  .bsp-week li { grid-template-columns: 1fr; gap: 3px; }
  .bsp-seg { justify-self: start; }
  .bsp-nav .btn.small { padding: 4px 8px; font-size: 13.5px; }
  .bsp-tab { padding: 7px 8px; font-size: 14px; }
}
@media print {
  .bsp-nav, .bsp-tabs, .bsp-pager { display: none !important; }
  .bsp-code { background: #fff; color: #000; border: 1px solid #bbb; white-space: pre-wrap; }
  .bsp-q[open] .bsp-a, .bsp-q .bsp-a { display: block; }
}

/* ---------- Planspiel „Scrum-Stadt“ ---------- */
.ps-plan td.ps-t { color: var(--muted); font-variant-numeric: tabular-nums; width: 60px; }
.ps-plan tr.ps-sprint td:nth-child(2) { color: var(--c1); }
.ps-plan tr.ps-rev td:nth-child(2), .ps-plan tr.ps-plan td:nth-child(2) { color: var(--c0); }
.pt-box { background: var(--card); border: 2px solid var(--line); border-radius: 12px; padding: 16px; text-align: center; }
.pt-box[data-typ="sprint"] { border-color: var(--c1); }
.pt-box[data-typ="plan"], .pt-box[data-typ="rev"], .pt-box[data-typ="retro"] { border-color: var(--c0); }
.pt-phase { font-size: 20px; font-weight: 700; }
.pt-time { font-size: clamp(56px, 14vw, 120px); font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.1; margin: 4px 0; }
.pt-bar { height: 10px; background: var(--soft); border-radius: 99px; overflow: hidden; }
.pt-bar span { display: block; height: 100%; width: 0; background: var(--brand); transition: width .25s linear; }
.pt-next { margin-top: 8px; color: var(--muted); }
.pt-ctl { justify-content: center; }
.pt-hint { text-align: left; background: var(--brand-soft); border-radius: 8px; padding: 8px 10px; margin-top: 6px; }
.pt-box.done { border-color: var(--bad); animation: pt-blink 1s ease-in-out 3; }
.pt-box.done .pt-time { color: var(--bad); }
@keyframes pt-blink { 50% { background: var(--bad-soft); } }
.pt-box:fullscreen { display: flex; flex-direction: column; justify-content: center; padding: 5vh 6vw; background: var(--card); }
.pt-box:fullscreen .pt-phase { font-size: 5vh; }
.pt-box:fullscreen .pt-time { font-size: 28vh; }
.pt-box:fullscreen .pt-next, .pt-box:fullscreen .pt-hint { font-size: 2.6vh; }
.pt-list { columns: 2; font-size: 14px; margin: 6px 0; }
.pt-list li.on { font-weight: 700; color: var(--c1); }
.ps-sheet { background: #fff; color: #000; border: 1px solid var(--line); border-radius: 8px; padding: 12px; margin-top: 6px; overflow-x: auto; }
.ps-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ps-cards.two { grid-template-columns: repeat(2, 1fr); }
.ps-card { border: 1.5px dashed #777; border-radius: 6px; padding: 8px 10px; font-size: 13.5px; break-inside: avoid; page-break-inside: avoid; }
.ps-card b { font-size: 15px; }
.ps-card ul, .ps-card ol { margin: 4px 0 0; padding-left: 18px; }
.ps-card p { margin: 4px 0; }
.ps-card-h { display: flex; justify-content: space-between; font-size: 12px; color: #555; }
.ps-est { font-size: 11.5px; color: #555; margin-top: 6px; }
.ps-card.cr { border-color: #b91c1c; background: #fef2f2; }
.ps-card.rules, .ps-card.vision { margin-top: 8px; border-style: solid; }
.ps-board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.ps-board > div { border: 1.5px solid #333; border-radius: 6px; min-height: 260px; padding: 6px 8px; font-weight: 700; }
@media (max-width: 800px) { .ps-cards, .ps-cards.two { grid-template-columns: 1fr; } .pt-list { columns: 1; } }
@media print {
  .ps-sheet { border: 0; padding: 0; }
  .ps-cards { grid-template-columns: repeat(3, 1fr) !important; }
  .ps-cards.two { grid-template-columns: repeat(2, 1fr) !important; }
  .ps-card.cr { background: #fff; }
}

/* ---------- Lernstand sichern ---------- */
.sync-code { font-family: var(--mono); font-size: 30px; font-weight: 800; letter-spacing: .12em; background: var(--soft); border-radius: 10px; padding: 10px 16px; display: inline-block; margin: 4px 0 8px; user-select: all; }
.sync-row { display: flex; gap: 8px; flex-wrap: wrap; }
.sync-input { font-family: var(--mono); font-size: 17px; letter-spacing: .08em; padding: 7px 10px; border: 1px solid var(--brand-line); border-radius: 7px; background: var(--card); color: var(--ink); width: 170px; text-transform: uppercase; }
.sync-msg { margin-top: 12px; font-size: 14.5px; }
.sync-msg.ok { color: var(--ok); font-weight: 600; } .sync-msg.err { color: var(--bad); font-weight: 600; }
#syncBtn.on-sync { border-color: var(--ok); }

/* ---------- Git ---------- */
.gg-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 4px 0; }
.gg-svg { display: block; font-family: var(--mono); }
.gg-lane { stroke: var(--line); stroke-dasharray: 2 5; }
.gg-edge { fill: none; stroke-width: 3; }
.gg-edge.dim, .gg-c.dim { opacity: .18; }
.gg-c.new circle { animation: gg-pop .5s ease-out; transform-box: fill-box; transform-origin: center; }
@keyframes gg-pop { 0% { transform: scale(.2); } 70% { transform: scale(1.25); } 100% { transform: scale(1); } }
.gg-who { font-size: 11px; font-weight: 700; fill: #fff; pointer-events: none; }
.gg-ref text { font-size: 12.5px; font-weight: 700; }
.gg-ref.remote rect { stroke-dasharray: 3 2; }
.gg-tag rect { fill: #fde68a; stroke: #a16207; } .gg-tag text { font-size: 10px; font-weight: 700; fill: #713f12; }
.gg-term { font-family: var(--mono); font-size: 13px; background: #1e2127; color: #d1fae5; border-radius: 8px; padding: 8px 12px; margin: 8px 0 0; white-space: pre-wrap; min-height: 1.5em; }
.gg-info { min-height: 1.4em; margin-top: 6px; }
.gg-layout { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 12px; align-items: start; }
.gg-ctl { display: grid; gap: 8px; background: var(--card-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
.gg-row { display: flex; gap: 6px; flex-wrap: wrap; }
.gg-row .btn { flex: 1 1 auto; justify-content: center; }
.gg-in, .gg-sel { flex: 1 1 100%; padding: 6px 8px; border: 1px solid var(--brand-line); border-radius: 6px; background: var(--card); color: var(--ink); font: inherit; font-size: 14px; }
.gg-tasks li { margin: 4px 0; } .gg-tasks li.ok { color: var(--ok); }
.gt-head { margin-bottom: 6px; font-size: 17px; }
.gt-views { margin: 6px 0; }
.gt-txt p { margin: 8px 0; }
.gt-cmds { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.gt-pr { border: 1px solid var(--line); border-left: 4px solid #7e22ce; border-radius: 0 8px 8px 0; background: var(--card-2); padding: 8px 12px; margin: 8px 0; }
.kf-story { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.kf-side { background: var(--card-2); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-size: 14.5px; }
.kf-file { font-family: var(--mono); margin: 6px 0 2px; }
.kf-ta { width: 100%; font-family: var(--mono); font-size: 13.5px; line-height: 1.45; background: #1e2127; color: #e6e7e9; border-radius: 8px; padding: 10px 12px; border: 1px solid var(--line); resize: vertical; }
.rv-pr { border: 1px solid var(--line); border-left: 4px solid #7e22ce; border-radius: 0 8px 8px 0; background: var(--card-2); padding: 8px 12px; display: grid; gap: 4px; }
.rv-diff { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; font-family: var(--mono); font-size: 13px; }
.rv-line { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 6px; padding: 1px 6px; border-bottom: 1px solid var(--line); }
.rv-line:last-child { border-bottom: 0; }
.rv-line.tadd { background: #e9f9ee; } .rv-line.tdel { background: #fdecec; }
.rv-line.right { box-shadow: inset 4px 0 0 var(--ok); } .rv-line.wrong { box-shadow: inset 4px 0 0 var(--bad); }
.rv-n { color: var(--muted); text-align: right; font-size: 11.5px; }
.rv-code { white-space: pre; overflow-x: auto; background: none; padding: 0; color: var(--ink); }
.rv-sel { font-size: 12.5px; padding: 2px 4px; border: 1px solid var(--brand-line); border-radius: 5px; background: var(--card); color: var(--ink); max-width: 210px; }
.rv-why { grid-column: 2 / -1; font-family: var(--font, inherit); padding: 2px 0 6px; color: var(--ink); }
.rv-model { margin-top: 8px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .rv-line.tadd { background: #13291b; } :root:not([data-theme="light"]) .rv-line.tdel { background: #351818; } }
:root[data-theme="dark"] .rv-line.tadd { background: #13291b; } :root[data-theme="dark"] .rv-line.tdel { background: #351818; }
@media (max-width: 800px) {
  .gg-layout, .kf-story { grid-template-columns: 1fr; }
  .rv-line { grid-template-columns: 26px minmax(0, 1fr); }
  .rv-sel { grid-column: 2; max-width: 100%; margin-bottom: 4px; }
}

/* ---------- Peer-Feedback ---------- */
.pf-names { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-bottom: 8px; }
.pf-names input { width: 100%; }
.pf-tab select { font-size: 13px; padding: 3px; border: 1px solid var(--brand-line); border-radius: 5px; background: var(--card); color: var(--ink); }
.pf-tab td, .pf-tab th { vertical-align: middle; }
.pf-text { border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; margin: 8px 0; display: grid; gap: 6px; background: var(--card); }
.pf-text textarea { width: 100%; }
.pf-sheet { display: none; }
@media print { body.print-one .pf-sheet.print-target { display: block; } }
