/* Druckversion der Übungsprüfungen (Pipo 1.12.): Arbeitsblatt zum Ausfüllen auf Papier, auf Wunsch mit Lösungsblatt.
   #pdruck existiert nur während dem Drucken (pruefung-druck.js). Ruhig und schlicht: schwarz auf weiss, Lösungen in Rot. */
#pdruck{display:none}
@media print{
  html:has(body.pdruck-an),body.pdruck-an{height:auto!important;overflow:visible!important}
  body.pdruck-an{background:#fff!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}
  body.pdruck-an>*:not(#pdruck){display:none!important}
  body.pdruck-an #pdruck{display:block}
}
#pdruck{--ink:#24211d;--muted:#6e675d;--line:#d9d2c6;--karo:#e4ded4;--rot:#b8432f;
  color:var(--ink);background:#fff;white-space:normal;text-align:left;font:11pt/1.45 "Atkinson Hyperlegible","Segoe UI",system-ui,sans-serif}
#pdruck *{box-sizing:border-box}
/* Seitenrand über eine Tabelle (Kopf- und Fussabstand wiederholt sich auf jeder Seite), damit der Browser
   am Rand kein Datum und keine Adresse druckt */
#pdruck .dr-frame{width:100%;border-collapse:collapse;table-layout:fixed}
#pdruck .dr-frame>thead>tr>td,#pdruck .dr-frame>tfoot>tr>td,#pdruck .dr-frame>tbody>tr>td{padding:0}
#pdruck .dr-top{height:15mm}#pdruck .dr-bot{height:18mm}
#pdruck .dr-blatt{padding:0 17mm}
#pdruck .dr-blatt+.dr-blatt{break-before:page}
#pdruck .dr-fuss{position:fixed;left:17mm;right:17mm;bottom:8mm;display:flex;justify-content:space-between;align-items:baseline;gap:10px;padding-top:6px;border-top:1px solid var(--line);font-size:8pt;color:var(--muted);letter-spacing:.04em}
#pdruck .dr-fuss b{font-family:Georgia,serif;font-weight:500;font-size:9.5pt;color:var(--ink);letter-spacing:0}
#pdruck .dr-fuss b i{color:var(--rot)}

/* Kopf */
#pdruck .dr-kopf{display:flex;justify-content:space-between;align-items:flex-end;gap:14px;padding-bottom:10px;margin-bottom:4px;border-bottom:1.5px solid var(--ink)}
#pdruck .dr-meta{font-size:8.5pt;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);margin:0 0 3px}
#pdruck .dr-meta .dr-st{letter-spacing:.05em;color:var(--ink)}
#pdruck .dr-meta .dr-st i{font-style:normal;color:var(--line)}
#pdruck h1{font:800 21pt/1.1 "Bricolage Grotesque","Segoe UI",system-ui,sans-serif;margin:0}
#pdruck .dr-loes{display:inline-block;margin-left:10px;padding:2px 9px;border:1.5px solid var(--rot);border-radius:99px;color:var(--rot);font:700 9pt/1.4 "Atkinson Hyperlegible",sans-serif;letter-spacing:.08em;text-transform:uppercase;vertical-align:5px}
#pdruck .dr-thema{margin:3px 0 0;color:var(--muted);font-size:10pt}
#pdruck .dr-tot{text-align:right;font-size:9pt;color:var(--muted);white-space:nowrap}
#pdruck .dr-tot b{display:block;font:800 15pt/1.1 "Bricolage Grotesque",sans-serif;color:var(--ink)}
#pdruck .dr-felder{display:flex;gap:9mm;margin:10px 0 2px;font-size:10pt;color:var(--muted)}
#pdruck .dr-felder span{display:flex;align-items:flex-end;gap:6px}
#pdruck .dr-felder span::after{content:"";display:block;border-bottom:1px solid var(--ink);height:1.2em}
#pdruck .dr-felder .dr-name{flex:1}#pdruck .dr-felder .dr-name::after{flex:1;min-width:50mm}
#pdruck .dr-felder .dr-pk::after{width:28mm}#pdruck .dr-felder .dr-nt::after{width:16mm}

/* Aufgaben */
#pdruck .dr-a{padding:13px 0 12px;border-bottom:1px solid var(--line);break-inside:avoid}
#pdruck .dr-a:last-child{border-bottom:0}
#pdruck .dr-lese{border:1px solid #999;border-radius:6px;padding:6px 10px;margin:0 0 8px;font-size:10.5pt;line-height:1.45}
#pdruck .dr-ah{display:flex;align-items:baseline;gap:10px;margin-bottom:9px}
#pdruck .dr-n{flex:none;display:inline-grid;place-items:center;width:22px;height:22px;border:1.5px solid var(--ink);border-radius:50%;font:700 10pt/1 "Atkinson Hyperlegible",sans-serif;transform:translateY(-1px)}
#pdruck .dr-ah h2{flex:1;margin:0;font:700 11.5pt/1.35 "Atkinson Hyperlegible",sans-serif}
#pdruck .dr-pt{flex:none;font-size:9pt;color:var(--muted);white-space:nowrap}
#pdruck .dr-pt span{display:inline-block;width:12mm;border-bottom:1px solid var(--muted);margin-right:3px}
#pdruck .dr-body{padding-left:32px;font-family:Andika,"Atkinson Hyperlegible",sans-serif;font-size:11.5pt}
#pdruck .dr-hint{margin:6px 0 0;font:9pt "Atkinson Hyperlegible",sans-serif;color:var(--muted)}
#pdruck .dr-l{color:var(--rot);font-weight:700}

/* Schreiblinie */
#pdruck .dr-line{display:inline-block;min-width:26mm;border-bottom:1px solid var(--ink);padding:0 4px;line-height:1.3;text-align:center;vertical-align:bottom}
#pdruck .dr-line:empty::before{content:"\00a0"}

/* Karo-Raster (schriftliche Verfahren) */
#pdruck .dr-karo{border-collapse:collapse;margin:2px 0;font:600 13pt/1 Andika,"Atkinson Hyperlegible",sans-serif}
#pdruck .dr-karo td{width:7.5mm;height:7.5mm;padding:0;text-align:center;vertical-align:middle;border:.5px solid var(--karo)}
#pdruck table.dr-karo tr.dr-sm>td{height:5mm!important;font-size:8.5pt}
#pdruck .dr-karo td.dr-u{border-bottom:2px solid var(--ink)}
#pdruck .dr-karo td.dr-ob{border-top:2px solid var(--ink)}
#pdruck .dr-karo td.dr-op{font-weight:700}
#pdruck .dr-karo .dr-hd td{height:5mm;font:700 7.5pt "Atkinson Hyperlegible",sans-serif;color:var(--muted);border:0}

/* Rechnungen, Zahlenstrahl, Fragen */
#pdruck .dr-rech{display:grid;grid-template-columns:repeat(var(--sp,1),minmax(0,1fr));gap:9px 10mm}
#pdruck .dr-rech>div{display:flex;align-items:flex-end;gap:6px;white-space:nowrap}
#pdruck .dr-zs svg{display:block;width:100%;max-width:150mm;height:auto;stroke:var(--ink);stroke-width:1.6;fill:none}
#pdruck .dr-zs .pax{stroke-width:2.2}#pdruck .dr-zs .pmaj{stroke-width:2}
#pdruck .dr-zs text{fill:var(--ink);stroke:none;font:700 15px "Atkinson Hyperlegible",sans-serif;text-anchor:middle}
#pdruck .dr-zs .parr path{fill:var(--ink);stroke:none}
#pdruck .dr-qa{width:100%;border-collapse:collapse}
#pdruck .dr-qa td{padding:6px 10px 6px 0;vertical-align:bottom}
#pdruck .dr-qa td:first-child{width:46%}
#pdruck .dr-qa .dr-line{display:block;text-align:left;min-width:0}

/* Lückentext */
#pdruck .dr-lt{line-height:2.25}
#pdruck .dr-gap{display:inline-block;border-bottom:1px solid var(--ink);line-height:1.25;text-align:center;padding:0 3px}
#pdruck .dr-gap:empty::before{content:"\00a0"}
#pdruck .dr-gw{white-space:nowrap}
#pdruck .dr-bank{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 9px;padding:7px 9px;border:1px dashed var(--line);border-radius:8px;font-size:10.5pt}
#pdruck .dr-bank span{padding:1px 8px;border:1px solid var(--line);border-radius:6px}

/* Wortgitter */
#pdruck .dr-wg{display:flex;gap:9mm;align-items:flex-start}
#pdruck .dr-wgt{border-collapse:collapse;font:700 11pt/1 "Atkinson Hyperlegible",sans-serif}
#pdruck .dr-wgt td{width:7mm;height:7mm;text-align:center;border:.5px solid var(--karo);padding:0}
#pdruck .dr-wgt td.dr-hit{background:#f3d9d2;color:var(--rot)}
#pdruck .dr-wl{margin:0;padding:0;list-style:none;font-size:11pt;columns:1}
#pdruck .dr-wl li{padding:2px 0 2px 18px;position:relative}
#pdruck .dr-wl li::before{content:"";position:absolute;left:0;top:7px;width:10px;height:10px;border:1px solid var(--ink);border-radius:2px}

/* Sortieren */
#pdruck .dr-sort{width:100%;border-collapse:collapse;table-layout:fixed}
#pdruck .dr-sort th{font:700 10pt "Atkinson Hyperlegible",sans-serif;text-align:left;padding:4px 6px;border-bottom:1.5px solid var(--ink)}
#pdruck .dr-sort td{height:8.5mm;padding:0 6px;border-bottom:1px solid var(--line);vertical-align:bottom}
#pdruck .dr-sort th+th,#pdruck .dr-sort td+td{border-left:1px solid var(--line)}

/* Reihenfolge */
#pdruck .dr-teile{display:flex;flex-wrap:wrap;gap:7px}
#pdruck .dr-teile.dr-col{flex-direction:column;align-items:flex-start}
#pdruck .dr-teile span{display:inline-flex;align-items:center;gap:7px;padding:3px 9px;border:1px solid var(--line);border-radius:6px}
#pdruck .dr-box{display:inline-grid;place-items:center;width:6mm;height:6mm;border:1px solid var(--ink);border-radius:2px;font:700 10pt/1 Andika,sans-serif;flex:none}
#pdruck .dr-satz{display:block;margin-top:12px;border-bottom:1px solid var(--ink);min-height:8mm;padding:0 2px 2px;line-height:1.4}
#pdruck .dr-satz+.dr-satz{margin-top:4px}

/* Auswahl */
#pdruck .dr-mc+.dr-mc{margin-top:10px}
#pdruck .dr-mc p{margin:0 0 4px}
#pdruck .dr-mc small{display:block;font:9pt "Atkinson Hyperlegible",sans-serif;color:var(--muted);margin:-2px 0 4px}
#pdruck .dr-opts{display:flex;flex-wrap:wrap;gap:5px 9mm}
#pdruck .dr-opts span{display:inline-flex;align-items:center;gap:7px}
#pdruck .dr-o{flex:none;width:4.2mm;height:4.2mm;border:1.2px solid var(--ink);border-radius:50%;display:inline-grid;place-items:center}
#pdruck .dr-o.dr-q{border-radius:2px}
#pdruck .dr-o.dr-on::after{content:"";width:2.2mm;height:2.2mm;border-radius:inherit;background:var(--rot)}
#pdruck .dr-opts .dr-on+b{color:var(--rot)}

/* Richtig / falsch */
#pdruck .dr-rf{width:100%;border-collapse:collapse}
#pdruck .dr-rf th{font:700 8.5pt "Atkinson Hyperlegible",sans-serif;color:var(--muted);text-align:center;width:16mm;padding:0 0 3px}
#pdruck .dr-rf td{padding:5px 0;border-top:1px solid var(--line)}
#pdruck .dr-rf td+td{text-align:center}

/* Paare */
#pdruck .dr-paare{display:grid;grid-template-columns:1fr 1fr;gap:0 10mm}
#pdruck .dr-paare ul{margin:0;padding:0;list-style:none}
#pdruck .dr-paare li{display:flex;align-items:center;gap:8px;padding:4px 0;border-bottom:1px solid var(--line)}
#pdruck .dr-paare li b{flex:none;width:6mm;font-family:"Atkinson Hyperlegible",sans-serif}
#pdruck .dr-paare li .dr-box{margin-left:auto}
.pdrw .kbtn{flex:1}
#pdruck .dr-bild{display:block;max-width:100%;max-height:9.5cm;margin:0 auto 8px}
