/* EMS app prototype screens. Uses the tokens from ems.css. */
html[data-theme="ems"] body { background: var(--band); }
.appbar { --bg: var(--navy); background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 20; }
.appbar-in { max-width: 1100px; margin: 0 auto; height: 58px; padding: 0 20px; display: flex; align-items: center; gap: 18px; }
.appbar a { color: var(--navy-2); text-decoration: none; font-size: 14.5px; }
.appbar .ttl { font-weight: 600; font-size: 15.5px; }
.appbar .cnt { color: var(--navy-3); font-size: 14.5px; }
.appbar .clock { margin-left: auto; font-variant-numeric: tabular-nums; font-weight: 600; font-size: 17px; padding: 4px 10px; border-radius: 4px; background: rgba(255,255,255,.08); }
.appbar .clock.low { background: #B4372F; }
.progress { height: 4px; background: rgba(255,255,255,.12); }
.progress i { display: block; height: 100%; background: var(--mint); transition: width .3s; }
.stage { max-width: 1100px; margin: 0 auto; padding: 28px 20px 60px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 22px 24px; }
.panel + .panel { margin-top: 16px; }
.instr { color: var(--ink-2); font-size: 15.5px; }

/* Schlauchfiguren */
.views { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.view { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 12px 12px 6px; text-align: center; }
.view p { font-size: 13.5px; color: var(--muted); }
.view svg { width: 100%; max-width: 320px; display: block; margin: 0 auto; }
.cube .edge { stroke: #8B95A6; stroke-width: 1.3; }
.cube polyline { fill: none; stroke-linejoin: round; }
.cube .t-h { stroke: #fff; stroke-linecap: butt; }
.cube .t-o { stroke: #2A3550; stroke-linecap: round; }
.cube .t-l { stroke: #56658A; stroke-linecap: round; }
.choices { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.choices button { font: inherit; font-size: 15.5px; min-height: 52px; border: 1.5px solid var(--line); background: var(--surface); border-radius: 6px; cursor: pointer; color: var(--ink); display: flex; gap: 8px; align-items: center; justify-content: center; }
.choices button b { color: var(--muted); }
.choices button:hover:not(:disabled) { border-color: var(--blue); }
.choices button.ok { border-color: var(--teal); background: var(--teal-soft); }
.choices button.no { border-color: var(--wrong); background: #FBEDEC; }
.choices button:disabled { cursor: default; }
/* [hidden] must win over display rules (the old answer line stayed visible on the next task) */
.e-run [hidden] { display: none !important; }
.after { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; margin-top: 16px; }
.after .msg { font-weight: 600; }
.after .msg.ok { color: var(--teal); } .after .msg.no { color: var(--wrong); }
.after label { display: flex; gap: 10px; align-items: center; font-size: 14.5px; color: var(--ink-2); }
.after input[type=range] { width: 180px; accent-color: var(--blue); }
.after .btn { margin-left: auto; }
@media (max-width: 700px) {
  .views { gap: 8px; } .view { padding: 8px 6px 4px; }
  .choices { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .after .btn { margin-left: 0; width: 100%; }
}

/* Konzentriert arbeiten */
.rule { font-family: var(--f-read); font-size: 19px; margin-top: 6px; }
.rule-ex { display: flex; gap: 22px; margin-top: 12px; align-items: center; flex-wrap: wrap; font-size: 13.5px; color: var(--muted); }
.rule-ex span { display: inline-flex; align-items: center; gap: 6px; }
.sheet { display: grid; grid-template-columns: repeat(40, minmax(0, 1fr)); gap: 2px 0; margin-top: 16px; user-select: none; }
.sg { appearance: none; border: 0; background: none; padding: 0; cursor: pointer; position: relative; border-radius: 3px; }
.sg svg, .rule-ex svg { display: block; width: 100%; max-width: 22px; margin: 0 auto; }
.rule-ex svg { width: 18px; }
.sg svg line, .rule-ex svg line { stroke: var(--ink); stroke-width: 1.6; }
.sg svg text, .rule-ex svg text { font-family: var(--f-ui); font-size: 17px; fill: var(--ink); }
.sg:hover { background: var(--band); }
.sg.on::after { content: ""; position: absolute; left: 15%; right: 15%; top: 50%; height: 2px; background: var(--blue); transform: rotate(-55deg); }
.sg.r-miss { background: #FBEDEC; } .sg.r-wrong { background: #FBEDEC; outline: 1.5px solid var(--wrong); } .sg.r-hit { background: var(--teal-soft); }
.sg.r-out { opacity: .35; }
.rowno { display: none; }
@media (max-width: 900px) { .sheet { grid-template-columns: repeat(20, minmax(0, 1fr)); } }
.res { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.res div { border-top: 2px solid var(--ink); padding-top: 8px; }
.res b { display: block; font-family: var(--f-read); font-size: 28px; }
.res span { font-size: 14px; color: var(--ink-2); }
@media (max-width: 700px) { .res { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.bar2 { display: flex; gap: 12px; align-items: center; justify-content: space-between; margin-top: 16px; flex-wrap: wrap; }
.appbar .cnt, .appbar .ttl { white-space: nowrap; }
@media (max-width: 560px) { .appbar-in { gap: 12px; padding: 0 14px; } .appbar .ttl { overflow: hidden; text-overflow: ellipsis; min-width: 0; } .appbar a { display: none; } }
.rule-ex .y { color: var(--teal); font-weight: 600; } .rule-ex .n { color: var(--wrong); }

/* Muster zuordnen */
.pat .ms { fill: none; stroke: var(--ink); stroke-width: .09; stroke-linecap: round; }
.pat .mf { fill: var(--ink); }
.pat .mframe { fill: none; stroke: var(--line); stroke-width: .06; }
.pat .hit { fill: none; stroke: var(--teal); stroke-width: .14; }
.pat .diff { fill: rgba(180,55,47,.14); stroke: var(--wrong); stroke-width: .08; }
.muster { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px; margin-top: 16px; align-items: start; }
.muster .big { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 14px; }
.muster .big svg { width: 100%; display: block; }
.mopts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.mopts button { appearance: none; background: var(--surface); border: 1.5px solid var(--line); border-radius: 6px; padding: 8px 8px 4px; cursor: pointer; font: inherit; color: var(--muted); font-weight: 700; }
.mopts button svg { width: 100%; display: block; }
.mopts button:hover:not(:disabled) { border-color: var(--blue); }
.mopts button.ok { border-color: var(--teal); background: var(--teal-soft); }
.mopts button.no { border-color: var(--wrong); background: #FBEDEC; }
@media (max-width: 760px) { .muster { grid-template-columns: 1fr; } }

/* Figuren lernen */
.fig .fw { fill: #fff; } .fig .fb { fill: var(--ink); }
.fig .fo { stroke: var(--ink); stroke-width: 1.4; stroke-linecap: square; }
.fig .fi { stroke: var(--ink); stroke-width: .7; }
.fig .fl { font-family: var(--f-ui); font-size: 6px; font-weight: 700; fill: var(--ink-2); }
.figs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.figs div { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 10px; }
.figs svg { width: 100%; display: block; }
@media (max-width: 760px) { .figs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.one { max-width: 420px; margin: 16px auto 0; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 18px; }
.one svg { width: 100%; display: block; }
.phase { display: flex; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.phase span { font-size: 13.5px; padding: 3px 10px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); }
.phase span.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.miss { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; margin-top: 14px; }
.miss div { border: 1px solid var(--line); border-radius: 6px; padding: 8px; font-size: 13px; color: var(--ink-2); text-align: center; }
.miss svg { width: 100%; display: block; margin-bottom: 4px; }
.fig .fo { stroke-linecap: square; } .fig rect { shape-rendering: crispEdges; }

/* Fakten lernen */
.pgroup { margin-top: 18px; }
.pgroup h3 { font-size: 16px; color: var(--muted); font-family: var(--f-ui); font-weight: 600; margin-bottom: 6px; }
.ptab { width: 100%; table-layout: fixed; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; font-size: 15.5px; }
.ptab td { padding: 9px 14px; border-top: 1px solid var(--line-soft); }
.ptab tr:first-child td { border-top: 0; }
.ptab td:first-child { width: 22%; } .ptab td:last-child { width: 30%; }
@media (max-width: 700px) { .ptab td { display: block; border: 0; padding: 2px 12px; } .ptab tr { display: block; padding: 8px 0; border-top: 1px solid var(--line-soft); } .ptab tr:first-child { border-top: 0; } }
.fopts { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.fopts button { font: inherit; text-align: left; padding: 11px 14px; border: 1.5px solid var(--line); background: var(--surface); border-radius: 6px; cursor: pointer; color: var(--ink); display: flex; gap: 12px; }
.fopts button b { color: var(--muted); }
.fopts button:hover { border-color: var(--blue); }
.fmiss { margin: 14px 0 0; padding-left: 20px; color: var(--ink-2); display: flex; flex-direction: column; gap: 6px; }
.fmiss b { color: var(--teal); }

/* multiple-choice task groups (Quantitative Probleme, Diagramme und Tabellen) */
.mc { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 20px 22px; max-width: 760px; }
.mc .q-stem { font-family: var(--f-read); font-size: 17.5px; line-height: 1.6; }
.mc .q-ask { font-family: var(--f-read); font-size: 17.5px; font-weight: 600; margin-top: 14px; }
.mc .mc-opts { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.mc .mc-opts button { font: inherit; text-align: left; padding: 10px 14px; border: 1.5px solid var(--line); background: var(--surface); border-radius: 6px; cursor: pointer; color: var(--ink); display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: baseline; font-size: 16px; line-height: 1.5; }
.mc .mc-opts button > b { color: var(--muted); }
.mc .mc-opts button:hover:not(:disabled) { border-color: var(--blue); }
.mc .mc-opts button.sel { border-color: var(--blue); background: var(--blue-soft, #E9EDF8); }
.mc .mc-opts button.ok { border-color: var(--teal); background: var(--teal-soft); }
.mc .mc-opts button.no { border-color: var(--wrong); background: #FBEDEC; }
.mc .mc-opts button:disabled { cursor: default; color: var(--ink); }
.mc .mc-opts .why { display: block; grid-column: 2; font-size: 14px; color: var(--ink-2); margin-top: 2px; }
.mc .mc-expl { margin-top: 14px; padding: 12px 14px; background: var(--band); border-radius: 6px; font-size: 15px; color: var(--ink-2); }
.mc .mc-expl b { color: var(--ink); }
.mc-nav { display: flex; gap: 10px; align-items: center; justify-content: space-between; margin-top: 14px; max-width: 760px; flex-wrap: wrap; }
.mc-dots { display: flex; flex-wrap: wrap; gap: 4px; }
.mc-dots button { width: 28px; height: 28px; border-radius: 4px; border: 1px solid var(--line); background: var(--surface); font: inherit; font-size: 12.5px; cursor: pointer; color: var(--ink-2); }
.mc-dots button.done { background: var(--navy, #142039); color: #fff; border-color: var(--navy, #142039); }
.mc-dots button.cur { outline: 2px solid var(--mint, #7FD3C3); outline-offset: 1px; }
.mc-review { display: flex; flex-direction: column; gap: 14px; }
.mc-review .mc { max-width: none; }
/* formulas */
.qf { display: inline-flex; flex-direction: column; vertical-align: middle; text-align: center; margin: 0 2px; line-height: 1.25; font-size: .95em; }
.qf > span:first-child { border-bottom: 1.2px solid currentColor; padding: 0 3px 1px; }
.qf > span:last-child { padding: 1px 3px 0; }
.qr { display: inline-flex; align-items: center; white-space: nowrap; }
.qr > span { border-top: 1.2px solid currentColor; padding: 2px 2px 0; margin-left: 1px; }
.qr .qi { font-size: .62em; margin-right: -3px; align-self: flex-start; }
.qtab { border-collapse: collapse; margin: 12px 0 4px; font-family: var(--f-ui); font-size: 15px; font-variant-numeric: tabular-nums; }
.qtab th, .qtab td { border: 1px solid var(--line); padding: 5px 10px; text-align: center; }
.qtab th { text-align: left; font-weight: 600; background: var(--band); }
/* charts and tables */
.dg-fig { margin: 14px 0 4px; }
.dg-svg { width: 100%; max-width: 560px; display: block; font-family: var(--f-ui); }
@media (max-width: 560px) { .dg-fig { overflow-x: auto; -webkit-overflow-scrolling: touch; } .dg-fig .dg-svg { min-width: 470px; } }
.dg-grid { stroke: #E4E9EF; stroke-width: 1; }
.dg-ax { stroke: var(--ink); stroke-width: 1.4; }
.dg-t { font-size: 14px; fill: var(--ink-2); }
.dg-l { font-size: 14.5px; fill: var(--ink); font-weight: 600; }
.dg-v { font-size: 14px; fill: var(--ink); font-weight: 600; }
.dg-v.inv { fill: #fff; }
.dg-leg { display: flex; flex-wrap: wrap; gap: 6px 18px; font-family: var(--f-ui); font-size: 13.5px; color: var(--ink-2); margin-top: 6px; }
.dg-leg span { display: inline-flex; align-items: center; gap: 6px; }
.dg-leg .sw { width: 14px; height: 14px; border-radius: 2px; display: inline-block; }
.dg-tabw { overflow-x: auto; margin: 14px 0 4px; }
.dg-tab { border-collapse: collapse; font-family: var(--f-ui); font-size: 14.5px; font-variant-numeric: tabular-nums; min-width: 100%; }
.dg-tab th, .dg-tab td { border: 1px solid var(--line); padding: 6px 9px; text-align: right; }
.dg-tab thead th { background: var(--band); text-align: center; font-weight: 600; font-size: 13.5px; hyphens: auto; }
.dg-tab tbody th { text-align: left; font-weight: 600; white-space: nowrap; }

/* Figuren lernen (outline figures) */
.fig path.fo { fill: none; stroke: #142039; stroke-width: 1.7; stroke-linejoin: round; }
.fig path.fi { fill: none; stroke: #142039; stroke-width: 1.3; stroke-linecap: round; }
.fig text.fl { font-family: var(--f-ui); font-size: 10px; font-weight: 700; fill: #142039; }

/* Objekte im Raum */
.obj { width: 100%; max-width: 300px; display: block; margin: 0 auto; }
.obj .ob-edge { stroke: #142039; stroke-width: 1.5; }
.obj .ob-back { stroke: #93A1BC; stroke-width: 1.1; stroke-dasharray: 4 3; }
.obj .ob-face { fill: rgba(127, 211, 195, .07); }
.obj .ob-shadow { fill: rgba(20, 32, 57, .16); }
.ob-moves { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 14px; font-size: 14px; color: var(--ink-2); }
.ob-moves span { background: var(--surface); border: 1px solid var(--line-soft); border-radius: 6px; padding: 6px 8px; text-align: center; }
.ob-moves b { display: block; font-size: 20px; color: var(--ink); }
@media (max-width: 700px) { .ob-moves { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* written groups: statements and the text next to the tasks */
.q-st { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-family: var(--f-read); font-size: 16.5px; }
.q-st b { font-family: var(--f-ui); color: var(--ink); margin-right: 4px; }
.tv { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.tv-text { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 18px 22px; font-family: var(--f-read); font-size: 16px; line-height: 1.65; max-height: calc(100vh - 170px); overflow-y: auto; position: sticky; top: 130px; }
.tv-text h3 { font-size: 18px; margin-bottom: 8px; }
.tv-text p + p { margin-top: 10px; }
@media (max-width: 960px) { .tv { grid-template-columns: 1fr; } .tv-text { position: static; max-height: none; } }

/* phone: wide tables scroll sideways instead of breaking every header into syllables */
@media (max-width: 560px) { .dg-tab { min-width: 540px; } .dg-tab th { hyphens: manual; } }
/* waiting while the figures are built */
.e-wait { display: flex; align-items: center; gap: 14px; }
.e-wait .spin { width: 22px; height: 22px; flex: none; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--teal); animation: e-spin .8s linear infinite; }
@keyframes e-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .e-wait .spin { animation-duration: 2.4s; } }
/* chosen but not yet solved (runs with the solutions at the end) */
.choices button.sel, .mopts button.sel { border-color: var(--blue); background: var(--blue-soft, #E9EDF8); }
.ob-rev .views { margin-top: 6px; }
/* highlighter and ruling out answers */
.mc-tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; font-size: 13.5px; color: var(--muted); }
.mc-tools .btn { flex: none; }
mark.hl { background: #FFE58A; color: inherit; border-radius: 2px; padding: 0 1px; cursor: pointer; }
.mc .mc-opts button { position: relative; padding-right: 46px; }
.mc .mc-opts button .x { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: var(--muted); font-size: 15px; }
.mc .mc-opts button .x:hover { background: var(--sunken); color: var(--ink); }
.mc .mc-opts button.x-out > span:not(.x), .mc .mc-opts button.x-out > b { text-decoration: line-through; opacity: .45; }
.mc .mc-opts button.x-out .x { color: var(--wrong); }
@media (max-width: 760px) {
  .has-sel #hlbtn { position: fixed; right: 16px; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); z-index: 40; background: #FFE58A; border-color: #E0C24F; color: var(--ink); box-shadow: 0 4px 14px rgba(20, 30, 50, .25); padding: 10px 18px; font-size: 16px; }
}

/* printable Testsimulation (print.js): on screen a preview of the sheets, in print one part at a time */
.p-bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 20px; }
.p-doc { font-family: var(--f-read); color: var(--ink); font-size: 15px; line-height: 1.45; }
.p-part { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 28px 32px; margin-bottom: 24px; }
.p-cover h1 { font-size: 34px; margin: 4px 0 0; } .p-cover h2 { font-size: 24px; margin: 0 0 14px; color: var(--blue); } .p-cover p { margin: 8px 0; max-width: 70ch; }
.p-cover > p:first-child { font-family: var(--f-ui); font-weight: 700; color: var(--muted); }
.p-group { margin-top: 26px; }
.p-gh { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; border-bottom: 2px solid var(--ink); padding-bottom: 4px; margin-bottom: 8px; }
.p-gh h2 { font-size: 21px; margin: 0; } .p-gh span { font-family: var(--f-ui); font-size: 14px; font-weight: 600; white-space: nowrap; }
.p-instr { font-family: var(--f-ui); font-size: 13.5px; color: var(--ink-2); margin: 0 0 12px; max-width: 80ch; }
.p-task { display: grid; grid-template-columns: 28px 1fr; gap: 6px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); break-inside: avoid; }
.p-task p { margin: 0 0 6px; } .p-task .q-ask { font-weight: 600; } .p-task .q-st { font-size: 15px; margin: 4px 0 6px; }
.p-n { font-family: var(--f-ui); font-size: 14px; }
.p-opts { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.p-opts b { font-family: var(--f-ui); display: inline-block; width: 18px; }
.p-mus { grid-template-columns: 28px 52% 1fr; align-items: start; }
.p-big svg { width: 100%; display: block; }
.p-mopts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.p-mopts div { text-align: center; font-family: var(--f-ui); font-size: 12px; } .p-mopts svg { width: 100%; display: block; }
.p-obj .p-opts { flex-direction: row; flex-wrap: wrap; gap: 4px 18px; }
.p-cubes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 460px; } .p-cubes svg { width: 100%; display: block; }
.p-figs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; } .p-figs > div { border: 1px solid var(--line); border-radius: 4px; padding: 6px; break-inside: avoid; }
.p-figs svg { width: 100%; display: block; } .p-recall > div { position: relative; } .p-recall .p-n { position: absolute; left: 6px; top: 4px; font-size: 12px; }
.p-ptab { width: 100%; border-collapse: collapse; margin: 0 0 10px; font-size: 14px; break-inside: avoid; } .p-ptab td { border-bottom: 1px solid var(--line-soft); padding: 4px 6px; vertical-align: top; }
.p-text { margin: 14px 0 6px; break-inside: auto; } .p-text h3 { font-size: 18px; margin: 0 0 6px; } .p-text p { margin: 0 0 8px; text-align: justify; hyphens: auto; }
.p-fig { max-width: 560px; margin: 6px 0; } .p-fig svg, .p-fig table { max-width: 100%; }
.p-sheet { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px 22px; }
.p-col h3 { font-family: var(--f-ui); font-size: 12px; margin: 0 0 4px; min-height: 2.4em; }
.p-row { display: grid; grid-template-columns: 22px repeat(5, 1fr); gap: 3px; font-family: var(--f-ui); font-size: 12px; align-items: center; margin-bottom: 3px; }
.p-row span { border: 1px solid var(--ink-2); border-radius: 3px; text-align: center; line-height: 17px; color: var(--muted); }
.p-konz { display: grid; grid-template-columns: repeat(40, 1fr); gap: 1px 0; margin-top: 10px; }
.p-konz svg { display: block; width: 100%; } .p-konz svg line { stroke: #000; stroke-width: 1.6; } .p-konz svg text { font-family: var(--f-ui); font-size: 17px; }
.p-konz.key span.t { background: #CDEFE7; }
.p-keys .p-key { break-inside: avoid; } .p-key h3, .p-h3 { font-family: var(--f-ui); font-size: 14px; margin: 14px 0 2px; } .p-key p { margin: 0; font-family: var(--f-ui); font-size: 13.5px; }
.p-expl { font-size: 13.5px; padding-left: 26px; margin: 4px 0 0; } .p-expl li { margin-bottom: 4px; break-inside: avoid; }

@media print {
  @page { size: A4; margin: 13mm 12mm; }
  html, body { background: #fff !important; }
  #hdr, #tabbar, #toast, .no-print { display: none !important; }
  .page, .content, #app { padding: 0 !important; margin: 0 !important; max-width: none !important; }
  .p-doc { font-size: 10.5pt; line-height: 1.38; }
  .p-part { border: 0; padding: 0; margin: 0; break-after: page; }
  html[data-print] .p-part { display: none; }
  html[data-print="a"] .p-part[data-part="a"], html[data-print="b"] .p-part[data-part="b"], html[data-print="s"] .p-part[data-part="s"],
  html[data-print="k"] .p-part[data-part="k"], html[data-print="l"] .p-part[data-part="l"] { display: block; }
  .p-cover { break-after: page; padding-top: 30mm; }
  .p-group { break-before: page; margin-top: 0; }
  .p-task { padding: 5pt 0; }
  .p-part[data-part="k"] .p-konz { gap: 0; width: 126mm; margin: 6pt auto 0; }
  .p-part[data-part="k"] .rule { font-size: 12pt; } .p-part[data-part="k"] .p-instr { margin-bottom: 4pt; }
}

/* after a round: your answers against the solutions, and the error trainer */
.e-retry { background: var(--teal-soft); border: 1px solid var(--teal); border-radius: 6px; padding: 14px 18px; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; justify-content: space-between; }
.e-retry p { margin: 0; max-width: 60ch; }
.e-rev h3 { font-size: 15px; margin: 16px 0 8px; font-family: var(--f-ui); }
.e-rev-sum { display: flex; gap: 10px; margin: 0; font-family: var(--f-ui); font-weight: 700; }
.e-rev-sum span { padding: 4px 10px; border-radius: 4px; }
.e-rev-sum .ok { background: #DDF3EC; color: #0B6B5C; } .e-rev-sum .no { background: #FBE3E1; color: #A3271B; }
.e-revtab { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.e-revtab th { text-align: left; font-size: 12.5px; color: var(--muted); font-weight: 600; padding: 4px 8px; border-bottom: 1px solid var(--line); }
.e-revtab td { padding: 7px 8px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.e-revtab td.no { color: #A3271B; text-decoration: line-through; text-decoration-thickness: 1px; }
.e-revtab td.ok { color: #0B6B5C; font-weight: 700; }
.e-revok { margin: 0; padding-left: 18px; font-size: 14.5px; color: var(--ink-2); } .e-revok li { margin-bottom: 3px; } .e-revok b { color: #0B6B5C; }
.miss.rv > div { border-width: 2px; } .miss.rv > div.ok { border-color: #9AD9C8; } .miss.rv > div.no { border-color: #E9A39B; }
.miss.rv > div span { display: block; font-size: 13px; margin-top: 4px; }
.ptab tr.focus td { background: #FFF4C2; }
@media (max-width: 560px) { .e-revtab thead { display: none; } .e-revtab tr { display: block; border-bottom: 1px solid var(--line-soft); padding: 6px 0; } .e-revtab td { display: inline; border: 0; padding: 0 6px 0 0; } .e-revtab td:first-child { display: block; } }
.obj.bw .ob-face { fill: none; } .obj.bw .ob-edge { stroke: #111; }
img.obj3d { height: auto; aspect-ratio: 1; } .p-cubes img { width: 100%; height: auto; display: block; }
/* Konzentriert arbeiten: symbols as in the 2026 sample (dark shape, white mark) */
.ksym .k-s { fill: var(--ink); }
.sg svg.ksym, .rule-ex svg.ksym { max-width: 20px; }
.p-konz svg.ksym .k-s { fill: #000; }
