/* Der freie Modus verwendet die bestehende Tafel, Fußleiste und tk-fenster. */
.zdt-anordnung { border-top:1px solid #d4d7df; margin-top:12px; padding-top:12px; }
.zdt-anordnung h3 { margin:0 0 8px; font-size:18px; }
.zdt-layout-choice { display:flex; flex-wrap:wrap; gap:8px; margin:8px 0; }
.zdt-anordnung button,.zdt-anordnung select,.zdt-inspector button { min-height:44px; padding:8px 12px; border:1px solid #cfd4e0; border-radius:10px; background:#fff; color:#1c2230; font:inherit; }
.zdt-anordnung button[aria-pressed=true],.zdt-inspector button[aria-pressed=true] { background:#eaf3ff; border-color:#2563eb; }
.zdt-setting { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px; margin:8px 0; min-height:44px; }
.zdt-setting input { width:44px; height:44px; accent-color:#2563eb; }
.zdt-layout-note { color:#4b5263; font-size:14px; line-height:1.4; }
.zdt-add-panel { margin:8px 0 16px; }
.zdt-add-panel input[type="search"] { width:min(100%, 280px); padding:8px 12px; border:1px solid #cfd4e0; border-radius:10px; font:inherit; }
.zdt-module-results { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,150px),1fr)); gap:6px; max-height:200px; overflow:auto; }
.zdt-add-panel [role="status"]:empty { display:none; }
.zdt-number-on-board [data-zeile] .task:has([data-target-display]) { display:none!important; }
@font-face { font-family:"ZDT Inter"; src:url("/interaktiv/assets/fonts/inter-latin.woff2") format("woff2"); font-weight:100 900; font-display:swap; }
@font-face { font-family:"ZDT Young Serif"; src:url("/interaktiv/assets/fonts/young-serif-latin.woff2") format("woff2"); font-weight:400; font-display:swap; }
[data-zdt-font-family="rubik"] { --zdt-chosen-font:Rubik,sans-serif; }
[data-zdt-font-family="baloo"] { --zdt-chosen-font:"Baloo Tamma 2",sans-serif; }
[data-zdt-font-family="inter"] { --zdt-chosen-font:"ZDT Inter",sans-serif; }
[data-zdt-font-family="young-serif"] { --zdt-chosen-font:"ZDT Young Serif",serif; }
.zdt-board-actions { display:flex; align-items:center; justify-self:center; gap:8px; }
.zdt-board-actions[hidden] { display:none!important; }
.zdt-board-actions>button { display:grid; place-items:center; width:44px; height:44px; min-width:44px; padding:0; }
[data-zdt-add-direct] { font-size:26px; font-weight:700; line-height:1; }
[data-zdt-adjust] svg { width:24px; height:24px; }
[data-zdt-adjust][aria-pressed="true"] { background:#eaf3ff; color:#1d4ed8; border-color:#316ca9; }
html.zdt-free:not(.zdt-grund) [data-zeile] { z-index:80; }
html.zdt-free:not(.zdt-grund) .zdt-zeile [data-zdt-top-tools] {
  position:relative!important; inset:var(--zdt-tools-y,0px) auto auto var(--zdt-tools-x,0px)!important; z-index:1;
}
html.zdt-edit .zdt-tools-selected { outline:1px dashed #7c9ac8; outline-offset:2px; }
html .zdt-zeile [data-zdt-top-tools]>.zdt-top-grip { display:none!important; }
html.zdt-edit .zdt-zeile .zdt-tools-selected>.zdt-top-grip { display:block!important; left:calc(50% - 44px); top:100%; width:88px; height:24px; border:0; border-radius:14px; background:white; }
.zdt-extra-content { position:relative; display:grid; place-items:center; width:100%; height:100%; container-type:size; overflow:hidden; }
.zdt-extra-bordered[data-extra="module"]>.zdt-extra-content { width:calc(100% - 12px); height:calc(100% - 12px); margin:6px; border-radius:14px; background:#f4f5f9; }
.zdt-extra-content :is(input,textarea) { width:100%; height:100%; margin:0; padding:8px; border:0; border-radius:0; box-sizing:border-box; background:transparent; color:#1c2230; font-family:var(--zdt-chosen-font,inherit); }
.zdt-extra-content textarea { font-size:clamp(16px,calc(10cqw * var(--zdt-extra-font,1)),60px); text-align:center; resize:none; }
[data-extra="number"] { pointer-events:none; }
[data-extra="number"]>.zdt-extra-content { overflow:visible; }
.zdt-number-box { position:relative; isolation:isolate; display:grid; justify-items:center; gap:4px; width:max-content; max-width:100%; padding:8px 12px; box-sizing:border-box; border-radius:20px; pointer-events:auto; font-family:var(--zdt-chosen-font,Rubik,sans-serif); }
.zdt-number-title { font-size:clamp(12px,14cqh,24px); font-weight:800; line-height:1.1; text-align:center; }
.zdt-number-digits { position:relative; font-size:min(calc(64cqh * var(--zdt-extra-font,1)),calc((100cqw - 28px) / 3.15)); font-weight:800; line-height:1.12; font-variant-numeric:tabular-nums; }
.zdt-number-box:has(.zdt-number-title:not([hidden])) .zdt-number-digits { font-size:min(calc(49cqh * var(--zdt-extra-font,1)),calc((100cqw - 28px) / 3.15)); }
.zdt-number-mirror { display:block; visibility:hidden; min-width:1ch; padding-inline:.12em; }
html.zdt-free .zdt-element .zdt-number-digits input { position:absolute; inset:0; min-width:0!important; min-height:0!important; padding:0; font:inherit; font-variant-numeric:inherit; text-align:center; }
.zdt-extra-content iframe { position:absolute; top:0; left:0; width:100%; height:100%; border:0; transform-origin:0 0; }
.zdt-extra-content p { margin:12px; text-align:center; }
.zdt-inspector label[hidden] { display:none; }
html.zdt-edit.zdt-letztes .zdt-element[data-extra]:not(.zdt-shared-tools) .zdt-del { display:block; }
html.zdt-edit .zdt-element.zdt-shared-tools .zdt-del { display:none; }
html.zdt-free[data-raum-modul^=zahl-des-tages] .sheet { display:block!important; position:relative!important; min-height:0!important; overflow:visible!important; }
.zdt-element { position:absolute; min-width:0; min-height:0; }
html.zdt-free[data-raum-modul^=zahl-des-tages] .zdt-element>.card:not(.is-zoomed) { position:absolute!important; top:0; left:0; margin:0!important; max-width:none!important; max-height:none!important; min-width:0!important; min-height:0!important; overflow:visible!important; }
html.zdt-free .zdt-element>.card { --btn:var(--zdt-touch,44px); }
html.zdt-free .zdt-element .card-head { padding-right:calc(var(--zdt-touch,44px) + 8px)!important; }
html.zdt-free .zdt-element .card-btn { width:var(--zdt-touch,44px)!important; height:var(--zdt-touch,44px)!important; }
html.zdt-free .zdt-no-frame>.card { border:0!important; border-image:none!important; box-shadow:none!important; background:transparent!important; }
html.zdt-free .zdt-no-title>.card { grid-template-rows:minmax(0,1fr)!important; }
html.zdt-free .zdt-no-title>.card>.card-head { display:none!important; }
/* Beschriftungen Vorgänger/Nachfolger bleiben auch ohne Überschriften (Alex, 18.10.2026: „einige Sachen nicht sichtbar“). */
html.zdt-free .zdt-no-title .card-tools { display:none!important; }
html.zdt-free .zdt-no-title .line { background:transparent!important; }
.zdt-move,.zdt-resize,.zdt-del { display:none; position:absolute; z-index:10; width:44px; height:44px; padding:9px; border:1px solid #2563eb; border-radius:10px; background:#fff; color:#1d4ed8; touch-action:none; cursor:grab; }
.zdt-move { top:0; left:0; }
.zdt-resize { bottom:0; right:0; cursor:nwse-resize; }
.zdt-border-grip { display:none; }
html.zdt-edit .zdt-border-grip {
  --zdt-grip-out:6px;
  --zdt-grip-depth:18px;
  --zdt-grip-far:calc(100% - var(--zdt-grip-depth));
  display:block; position:absolute; z-index:9; cursor:ns-resize; touch-action:none;
  inset:calc(var(--zdt-ink-top,0px) - var(--zdt-grip-out)) calc(var(--zdt-ink-right,0px) - var(--zdt-grip-out))
        calc(var(--zdt-ink-bottom,0px) - var(--zdt-grip-out)) calc(var(--zdt-ink-left,0px) - var(--zdt-grip-out));
  clip-path:polygon(evenodd,0 0,100% 0,100% 100%,0 100%,0 0,
    var(--zdt-grip-depth) var(--zdt-grip-depth),var(--zdt-grip-depth) var(--zdt-grip-far),
    var(--zdt-grip-far) var(--zdt-grip-far),var(--zdt-grip-far) var(--zdt-grip-depth),
    var(--zdt-grip-depth) var(--zdt-grip-depth));
}
html.zdt-edit .zdt-element:not(.zdt-tight) .zdt-border-grip { --zdt-ink-top:0px; --zdt-ink-right:0px; --zdt-ink-bottom:0px; --zdt-ink-left:0px; }
html.zdt-edit .zdt-selected .zdt-border-grip::before {
  content:""; position:absolute; inset:3px; border:1px dashed #7c9ac8; border-radius:20px;
}
html.zdt-edit .zdt-primary>:is(.zdt-move,.zdt-resize),html.zdt-edit .zdt-primary .zdt-number-box>:is(.zdt-move,.zdt-resize) { display:block; }
html.zdt-edit .zdt-element,html.zdt-edit .zdt-number-box { touch-action:none; cursor:grab; }
/* Löschen-Griff (Alex, 20.10.2026) oben rechts. Dort stehen sonst Lupe, Häkchen und „Neu“; beim Anordnen braucht man sie nicht,
   sie bleiben an ihrem Platz, nur unsichtbar, damit nichts verdeckt wird und nichts springt. Letztes Element: kein Löschen. */
.zdt-del { top:0; right:0; cursor:pointer; touch-action:manipulation; }
html.zdt-edit .zdt-selected>.zdt-del { display:block; }
html.zdt-edit.zdt-letztes .zdt-del { display:none; }
/* Oberste Zeile mindestens so hoch wie der Löschen-Griff (Innenabstand 12 px + 36 px > 44 px). Ohne Überschrift war sie bei kleinen Karten
   nur 27 px hoch, beim Anordnen lag der Mülleimer dann über dem Zehnerfeld. Gilt immer, damit beim Umschalten nichts springt. */
html.zdt-free .zdt-element>.card:not(.is-zoomed)>:is(.card-head,.card-tools) { min-height:calc(36px / var(--zdt-scale,1))!important; }
.zdt-weg { position:fixed; z-index:150; bottom:68px; left:50%; transform:translateX(-50%); display:flex; align-items:center; flex-wrap:wrap; gap:8px 12px; width:max-content; max-width:calc(100vw - 24px); padding:10px 10px 10px 14px; border-radius:12px; background:#fff; box-shadow:0 8px 24px #1c223033; color:#1c2230; }
.zdt-weg[hidden] { display:none; }
.zdt-weg small { display:block; margin-top:2px; color:#55607a; font-size:13px; }
.zdt-weg button { min-height:44px; padding:8px 14px; border:1px solid #2563eb; border-radius:10px; background:#eaf3ff; color:#1d4ed8; font:inherit; font-weight:600; cursor:pointer; }
.zdt-weg :focus-visible { outline:3px solid #2563eb; outline-offset:2px; }
.zdt-guide { position:absolute; z-index:100; background:#2563eb; pointer-events:none; }
.zdt-guide[hidden],.zdt-inspector[hidden] { display:none; }
.zdt-guide-x { top:0; bottom:0; width:1px; }
.zdt-guide-y { left:0; right:0; height:1px; }
.zdt-inspector { position:fixed; z-index:150; bottom:68px; left:50%; transform:translateX(-50%); display:flex; align-items:center; flex-wrap:wrap; gap:8px; width:max-content; max-width:calc(100vw - 24px); padding:10px; border-radius:12px; background:#fff; box-shadow:0 8px 24px #1c223033; color:#1c2230; }
.zdt-inspector>b { max-width:240px; }
.zdt-inspector label { display:flex; align-items:center; gap:6px; }
.zdt-inspector input { width:120px; height:44px; accent-color:#2563eb; }
.zdt-inspector output { min-width:50px; font-variant-numeric:tabular-nums; }
.zdt-anordnung :focus-visible,.zdt-inspector :focus-visible,.zdt-element :focus-visible { outline:3px solid #2563eb; outline-offset:2px; }
@media (max-width:640px), (orientation:portrait) and (max-width:900px) {
  html.zdt-free[data-raum-modul^=zahl-des-tages] .app { height:auto!important; min-height:calc(100dvh - 68px)!important; overflow:visible!important; }
  html.zdt-free body { overflow-y:auto!important; }
  .zdt-inspector { bottom:68px; font-size:14px; }
}

html.zdt-free .zdt-element button:not(.zdt-move):not(.zdt-resize):not(.zdt-del),html.zdt-free .zdt-element input { min-width:var(--zdt-touch,44px)!important; min-height:var(--zdt-touch,44px)!important; }
html.zdt-free .zdt-element .step { width:var(--zdt-touch,44px)!important; height:var(--zdt-touch,44px)!important; }
html.zdt-free .zdt-element .wtile { font-size:max(var(--zdt-text),calc(20px * var(--zdt-font-factor)))!important; padding:0 10px; }
html.zdt-free .zdt-element .word-answer { font-size:var(--zdt-text)!important; min-height:var(--zdt-touch,44px)!important; }
html.zdt-free .zdt-element .card-head { min-height:var(--zdt-touch,44px)!important; }
html.zdt-free .zdt-element .nb { gap:6px; }
html.zdt-free .zdt-element .nb-field { gap:3px; }
html.zdt-free .zdt-element .mode-switch button { padding:4px 10px; }
.zdt-anordnung [data-zdt-listen] { display:inline-flex; align-items:center; gap:8px; }
.zdt-anordnung [data-zdt-listen] svg { width:20px; height:20px; }

html .gsr-lu .tk-fenster:has(.zdt-anordnung) { max-height:calc(100dvh - 100px)!important; overflow-y:auto!important; overscroll-behavior:contain; }
html .tk-fenster:has(.zdt-anordnung) .zdt-anordnung { grid-column:1/-1; grid-row:3; }
html .tk-fenster:has(.zdt-anordnung) .menu-title { grid-row:4; }
html .tk-fenster:has(.zdt-anordnung) .menu-list { grid-row:5; }
html .tk-fenster:has(.zdt-anordnung) .gsr-lu-allg,html .tk-fenster:has(.zdt-anordnung) .gsr-lu-fertig { grid-row:6; }
html .gsr-lu .tools .tk-fenster:has(.zdt-anordnung):not([hidden]) { position:fixed!important; left:12px!important; right:auto!important; top:auto!important; bottom:68px!important; max-width:calc(100vw - 24px)!important; margin:0!important; transform:none!important; }
html .gsr-lu .tools .tk-fenster:has(.zdt-anordnung):not([hidden]) { bottom:calc(var(--lu-h,100px) + 12px)!important; max-height:calc(100dvh - var(--lu-h,100px) - 36px)!important; }
html.zdt-free .zdt-element .build { grid-template-columns:var(--zdt-touch,44px) minmax(0,1fr)!important; gap:4px!important; }
html.zdt-free .zdt-element .mat { gap:0!important; } /* eine verbundene Stellenwerttafel (Alex, 20.11.2026) */
html.zdt-free .zdt-element .col-foot { gap:2px!important; padding:2px 0 4px!important; }
html.zdt-free .zdt-element .col-body { padding:2px!important; }
@media (max-width:640px), (orientation:portrait) and (max-width:900px) {
 html.zdt-free.raum-effizient.gsr-lu-app[data-raum-modul^=zahl-des-tages] { height:auto!important; overflow-y:auto!important; }
 html.zdt-free.raum-effizient.gsr-lu-app[data-raum-modul^=zahl-des-tages] body { height:auto!important; min-height:100dvh!important; overflow-y:auto!important; }
 html.zdt-free.raum-effizient.gsr-lu-app[data-raum-modul^=zahl-des-tages] .app:not(.tk) { height:auto!important; min-height:0!important; grid-template-rows:auto auto!important; }
}
html.zdt-free .zdt-compact-build .col-foot { flex-direction:var(--zdt-build-foot-flow,column)!important; align-items:center; justify-content:center; }
/* Lege (21.10.2026, Überlappung Plus/Minus): Richtung aus app.js fitBuildFoot (gemessene Spaltenbreite) in jeder Ansicht,
   auch in der Lupe; 8 px Abstand auf dem Bildschirm. Tippfläche ist der Knopf selbst (mindestens 44 px): Die alte, mitgezoomte
   Erweiterung um 6 px lag bei großem Maßstab über dem Nachbarknopf (Tipp auf den Rand von − traf +). */
html[data-raum-modul^=zahl-des-tages] .card.card-build .col-foot { flex-direction:var(--zdt-build-foot-flow,row)!important; align-items:center; justify-content:center; gap:calc(8px / var(--zdt-scale,var(--zk,1)))!important; }
html[data-raum-modul^=zahl-des-tages] .card.card-build .step::after { inset:0; }
html.zdt-free .zdt-element[data-element=build] .step { font-size:calc(22px / var(--zdt-scale,1))!important; }

html.zdt-free.raum-effizient[data-raum-modul^=zahl-des-tages] .sheet { max-height:none!important; }

/* Gezeichneter Rahmen (border-image 24px) wächst sonst mit dem Kartenmaßstab: bei Faktor 1,5 wurde die Ecke 37 px groß und lag über der Überschrift (Alex, 18.10.2026, iPad). Rahmen und Abstand bleiben auf dem Bildschirm gleich. */
html.zdt-free .zdt-element>.card:not(.is-zoomed) { padding:calc(14px / var(--zdt-scale,1)) calc(18px / var(--zdt-scale,1)) calc(10px / var(--zdt-scale,1)) calc(18px / var(--zdt-scale,1))!important; /* Eckenabstand 02.11.2026: gemalter Rahmen hat 24-px-Ecken */ gap:4px!important; border-image-width:calc(24px / var(--zdt-scale,1))!important; }
html.zdt-free .zdt-element .card-head { margin:0!important; gap:6px; flex-wrap:wrap; }
html.zdt-free .zdt-element .card-sub,html.zdt-free .zdt-element .card-icon { display:none!important; }
html.zdt-free .zdt-element .card-title { flex:1 1 auto; max-width:none!important; }
html.zdt-free .zdt-element .word-modes { display:flex; flex:none; margin:0!important; gap:4px; }
html.zdt-free .zdt-element .word { gap:8px!important; }
html.zdt-free .zdt-element .house-floors { grid-template-columns:repeat(var(--zdt-house-cols,1),minmax(0,1fr)); grid-template-rows:repeat(var(--zdt-house-rows,6),minmax(0,1fr)); }
html.zdt-free .zdt-element .house-bar { grid-template-columns:repeat(2,var(--zdt-touch,44px))!important; grid-template-rows:none!important; grid-auto-flow:row!important; grid-auto-rows:minmax(var(--zdt-touch,44px),1fr)!important; }
html.zdt-free .zdt-element .field:not(.is-hundred) { --cell:var(--zdt-touch,44px)!important; }
html.zdt-free .zdt-field-stacked .tenframe { width:calc(var(--zdt-touch) * 5)!important; height:calc(var(--zdt-touch) * 4.3)!important; }
html.zdt-free .zdt-field-stacked .tenframe-cells { grid-template-columns:repeat(5,minmax(0,1fr))!important; grid-template-rows:repeat(2,minmax(0,1fr)) .3fr repeat(2,minmax(0,1fr))!important; }
html.zdt-free .zdt-field-stacked .row-picks { height:calc(var(--zdt-touch) * 4.3)!important; grid-template-rows:repeat(2,minmax(0,1fr)) .3fr repeat(2,minmax(0,1fr))!important; }
html.zdt-free.raum-effizient[data-raum-modul^=zahl-des-tages] .zdt-element>.card>.build,
html.zdt-free.raum-effizient[data-raum-modul^=zahl-des-tages] .zdt-element>.card>.word,
html.zdt-free.raum-effizient[data-raum-modul^=zahl-des-tages] .zdt-element>.card>.house-wrap,
html.zdt-free.raum-effizient[data-raum-modul^=zahl-des-tages] .zdt-element>.card>.field-wrap { height:auto!important; min-height:0!important; }
html.zdt-free.raum-effizient[data-raum-modul^=zahl-des-tages] .zdt-element>.card:not(.is-zoomed) { grid-template-rows:auto minmax(0,1fr)!important; }
html.zdt-free.raum-effizient[data-raum-modul^=zahl-des-tages] .zdt-no-title>.card:not(.is-zoomed) { grid-template-rows:minmax(0,1fr)!important; }
html.zdt-free .zdt-element .house-bar { grid-template-columns:repeat(var(--zdt-house-bar-cols,2),var(--zdt-touch,44px))!important; }
/* Die Ziffern leiten Klicks an den Zahlknopf weiter; ihr Schrift-Hitbereich darf keine Griffe überdecken. */
html.zdt-free [data-target-display] .digit { pointer-events:none; }
/* 15.10.2026 Sichtbarkeitsregel: Ergebniszeichen liegt im Rahmenmodus neben der Lupe (die anderen Kopfknöpfe sind dort ausgeblendet),
   der Kopf hält dafür dauerhaft Platz frei – nichts im Kopf wird verdeckt, kein Layoutsprung beim Prüfen. */
html.zdt-free .zdt-element .card-mark { z-index:8; right:calc(8px + var(--btn) * 1.45 + 6px)!important; }
html.zdt-free .zdt-element .card:has(.card-mark) .card-head { padding-right:calc(var(--zdt-touch,44px) * 2.6 + 18px)!important; }
/* Bausteinspalte so breit wie ihre Bausteine, sonst schieben sie sich übereinander und in die Stellenwerttafel. */
html.zdt-free .zdt-element .build { grid-template-columns:minmax(var(--zdt-touch,44px),max-content) minmax(0,1fr)!important; }
html.zdt-free .zdt-element .build:not([data-mode=draw]) { grid-template-rows:minmax(0,1fr)!important; }
html.zdt-free .zdt-element .palette { grid-auto-flow:row!important; grid-auto-columns:auto!important; grid-auto-rows:minmax(0,1fr)!important; }
/* Hunderterfeld im Rahmen: Kästchenbreite und -höhe getrennt (aus frei.js), damit kein toter Streifen bleibt. */
html.zdt-free .zdt-element .field.is-hundred .tenframe { width:calc(var(--cell-w,var(--cell)) * 10.35)!important; height:calc(var(--cell-h,var(--cell)) * 10.35)!important; }
html.zdt-free .zdt-element .field.is-hundred .row-picks { height:calc(var(--cell-h,var(--cell)) * 10.35)!important; }
html.zdt-free .zdt-element .card-title { hyphens:manual; overflow-wrap:normal; }
/* 100 Kreise passen nicht mit 44-px-Mindestmaß in eine Karte; Größe kommt aus --cell-w/--cell-h (wie im Ursprungslayout, dort 18–34 px). */
html.zdt-free .zdt-element .field.is-hundred button.cell,html.zdt-free .zdt-element .field.is-hundred button.row-pick { min-width:0!important; min-height:0!important; }
/* Tote Fläche unter den Kästen: Die Arbeitsfläche reicht bis an die untere Leiste (nicht auf schmalen Bildschirmen, dort scrollt die Seite). */
@media (min-width:901px), (orientation:landscape) and (min-width:641px) {
 html.zdt-free[data-raum-modul^=zahl-des-tages] .app:not(.tk) { grid-template-rows:auto minmax(0,1fr)!important; padding-bottom:12px!important; }
}
/* Der Platzhalter für die Werkzeugknöpfe (float, Höhe in ungezoomten Pixeln) bläht den Kopf bei starker Vergrößerung auf; hier reserviert padding-right den Platz. */
html.zdt-free .zdt-element .card-head::before { display:none!important; }
/* Viele Karten in der Grundform (ab etwa 12, passt nicht auf den Bildschirm): Seite scrollt wie im Hochformat. */
html.zdt-free.zdt-scroll[data-raum-modul^=zahl-des-tages] .app { height:auto!important; min-height:calc(100dvh - 68px)!important; overflow:visible!important; padding-bottom:calc(var(--lu-h,56px) + 12px)!important; }
html.zdt-free.zdt-scroll body { overflow-y:auto!important; }
html.zdt-free.zdt-scroll.raum-effizient.gsr-lu-app[data-raum-modul^=zahl-des-tages] { height:auto!important; overflow-y:auto!important; }
html.zdt-free.zdt-scroll.raum-effizient.gsr-lu-app[data-raum-modul^=zahl-des-tages] body { height:auto!important; min-height:100dvh!important; overflow-y:auto!important; }
html.zdt-free.zdt-scroll.raum-effizient.gsr-lu-app[data-raum-modul^=zahl-des-tages] .app:not(.tk) { height:auto!important; min-height:0!important; grid-template-rows:auto auto!important; }
/* Zähl in Schritten: Wächst die Schrift beim Einpassen, deckte das Etikett („−10“) den Sprungbogen fast ganz zu. Bogen unter das Etikett. */
html.zdt-free .zdt-element .st-hop { height:auto!important; align-content:end; }
html.zdt-free .zdt-element .st-hop b { background:transparent!important; }
html.zdt-free .zdt-element .st-hop svg { position:static!important; display:block; width:76%!important; height:calc(var(--zdt-touch,44px) * .4)!important; }
/* Geld: app.js schrumpft die Münzleiste bis 62 %, damit sie in eine Reihe passt; im Rahmen kommt der Zoom noch dazu (Münzen 14 px).
   Hier darf die Leiste umbrechen, das Einpassen (fitPass) regelt den Rest. */
html.zdt-free .zdt-element .money-tray { --k:1!important; }

/* ===== 16.10.2026 abends, Alex' vier Wünsche ===== */
/* 1. Kopf als Raster (Alex: „Titel und Knöpfe dürfen sich nie überschneiden“). Spalte 1 Titel samt Umschaltern (bricht um),
   Spalte 2 Knopfleiste. Das Ergebniszeichen steht in der Knopfleiste: auf dem Haken-Knopf, wenn er sichtbar ist, sonst auf
   eigenem, immer freigehaltenem Platz links der Lupe (kein Sprung beim Prüfen). Nichts liegt mehr absolut über dem Titel. */
html[data-raum-modul^=zahl-des-tages] .card[data-task].card { grid-template-columns:minmax(0,1fr) auto !important; column-gap:8px !important; }
html[data-raum-modul^=zahl-des-tages] .card[data-task].card > * { grid-column:1 / -1; }
html[data-raum-modul^=zahl-des-tages] .card[data-task].card > .card-head.card-head { grid-column:1 !important; grid-row:1 !important; min-width:0 !important; margin-right:0 !important; padding-left:0 !important; padding-right:0 !important; }
html[data-raum-modul^=zahl-des-tages] .card[data-task].card > .card-head.card-head::before { content:none !important; display:none !important; }
html[data-raum-modul^=zahl-des-tages] .card[data-task].card-compare.is-zoomed > .card-head.card-head { padding-top:0 !important; }
html[data-raum-modul^=zahl-des-tages] .card[data-task] .card-title { overflow-wrap:break-word; }
/* Zahlenhaus-Kopf ist ein Raster mit Symbolspalte. Ist das Symbol ausgeblendet (frei, schmal), rutschte der Titel in die
   30-px-Symbolspalte und brach in Silben („Zah len ha us“). Symbolspalte jetzt nur so breit wie das Symbol, Titel immer daneben. */
html[data-raum-modul^=zahl-des-tages] .card-house > .card-head.card-head { grid-template-columns:auto minmax(0,1fr); column-gap:0; }
html[data-raum-modul^=zahl-des-tages] .card-house > .card-head > .card-icon { margin-right:10px; }
html[data-raum-modul^=zahl-des-tages] .card-house > .card-head > :is(.card-title,.card-sub) { grid-column:2; }
html[data-raum-modul^=zahl-des-tages] .card[data-task].card > .card-tools.card-tools { position:relative !important; inset:auto !important; z-index:auto; grid-column:2 !important; grid-row:1 !important; align-self:start; display:grid !important; grid-auto-flow:column; grid-auto-columns:max-content; align-items:center; gap:var(--btn-gap,4px); }
html[data-raum-modul^=zahl-des-tages] .card-tools > .card-mark.card-mark { position:relative !important; inset:auto !important; z-index:2; grid-area:1 / 1 !important; place-self:center; display:grid !important; visibility:hidden; margin:0 !important; width:calc(var(--btn) * .82) !important; height:calc(var(--btn) * .82) !important; }
html[data-raum-modul^=zahl-des-tages] .card-tools > .card-check { grid-area:1 / 1; }
html[data-raum-modul^=zahl-des-tages] .card:is(.is-right,.is-wrong,.is-open) .card-tools > .card-mark.card-mark { visibility:visible; }
/* Im Rahmen sind alle Kopfknöpfe so groß wie die Tippfläche (44 px auf dem Bildschirm), das Zeichen wächst nicht mit der Karte. */
html.zdt-free .zdt-element :is(.card-head,.card-tools,.card-mark) { --btn:var(--zdt-touch,44px) !important; }
/* Lupe: Kopfknöpfe etwa 56 px auf dem Bildschirm statt mit der Karte bis 3,5-fach vergrößert (--zk setzt fitZoom in app.js). */
html[data-raum-modul^=zahl-des-tages] .card.is-zoomed :is(.card-head,.card-tools,.card-mark) { --btn:calc(56px / var(--zk,1)) !important; --btn-gap:calc(6px / var(--zk,1)) !important; }
html[data-raum-modul^=zahl-des-tages] .card.is-zoomed .card-tools button { min-width:0 !important; min-height:0 !important; }
/* Handy (bis 640 px): Lupe-Knöpfe 44 px, Titel höchstens 4,6 vw. Sonst bleibt neben drei 56-px-Knöpfen zu wenig Platz und
   „Stellenwerttafel“ bricht in Silben (gemessen 390 × 844: Titel 41 px, Spalte 143 px). */
@media (max-width: 640px) {
  html[data-raum-modul^=zahl-des-tages] .card.is-zoomed :is(.card-head,.card-tools,.card-mark) { --btn:calc(44px / var(--zk,1)) !important; }
  html[data-raum-modul^=zahl-des-tages] .card.is-zoomed .card-title { font-size:calc(4.6vw / var(--zk,1)) !important; }
}

/* 2. Zahlen gleich groß (Alex: „Zahlen immer gleich groß, auch in den Lösungen“): gegebene Zahl wie die Zahlen in den Feldern.
   Im Rahmen gleicht frei.js (scale) die Größe aus; diese Werte gelten in der Lupe. */
html[data-raum-modul^=zahl-des-tages] .card :is(.place-num, .place .op, .qsum-num, .nb-center) { font-size:clamp(1.2rem, 3.1vh, 1.65rem); }
html[data-raum-modul^=zahl-des-tages] .card .steps-row:not(.is-long) b.st-box { font-size:clamp(1.2rem, 3.1vh, 1.65rem); }

/* 3. Zahlwort nur mit Bausteinen (Alex: Handschrift entfernen). Mit einer einzigen Art entfällt der Umschalter ganz. */
html[data-raum-modul^=zahl-des-tages] .word-modes { display:none !important; }

/* 4. Hunderterfeld in der Lupe mittig und raumfüllend: Kästchengröße aus der freien Fläche (Feld 11,45 Kästchen breit, 10,35 hoch).
   Die 44-px-Mindestgröße aus raum.css machte die Kästchen größer als das Raster, das Feld rutschte nach rechts unten. */
html[data-raum-modul^=zahl-des-tages] .card-field.is-zoomed .field-wrap { container-type:size; display:grid; place-items:center; }
/* Hochformat/Handy: raum.css gibt .raum-mobile-grafik feste 240–400 px Höhe; in der Lupe nimmt das Feld die ganze freie Höhe. */
html[data-raum-modul^=zahl-des-tages] .card-field.is-zoomed .field-wrap.field-wrap { height:auto !important; min-height:0 !important; max-height:none !important; align-self:stretch; }
html[data-raum-modul^=zahl-des-tages] .card-field.is-zoomed .field.is-hundred { --cell:min(calc(100cqh / 10.6), calc(100cqw / 11.9)) !important; }
html[data-raum-modul^=zahl-des-tages] .card-field.is-zoomed .field.is-hundred :is(.cell, .row-pick) { min-width:0 !important; min-height:0 !important; }
/* Hundertertafel (K8, 17.10.2026): Eingabe und „?“ sitzen in der Zelle und wachsen mit ihr (Zoom). Das Tippflächen-Mindestmaß
   (Z. 44, raum.css) machte sie größer als die Zelle; die Einpassung meldete „zu voll“ und schrumpfte die Karte bis Zoom 0,12
   (Zellen 8 px, Knopftexte 1,5 px, „?“ über den Feldern). frei.js nimmt die Zellen auch beim Inline-Mindestmaß aus. */
html.zdt-free .zdt-element .card-chart .ch-cell > :is(button,input):not(.zdt-move) { min-width:0!important; min-height:0!important; }
/* Vergleichen: neue Vergleichszahl auch ohne Lupe (Alex, 18.10.2026: „kleinen Würfel oder ein Neu-Zeichen, um mehrere Zahlen vergleichen zu können“).
   Bisher blendete layout.css den Knopf außerhalb der Lupe aus. Rund und so groß wie die Lupe, nur das Symbol. */
html[data-raum-modul^=zahl-des-tages] .card-compare:not(.is-zoomed) .card-tools [data-cmp-new] { display:grid!important; place-items:center; width:var(--btn,44px)!important; height:var(--btn,44px)!important; min-width:0!important; min-height:0!important; padding:0!important; border:0!important; border-radius:50%!important; background:#f0f1f6!important; color:#1c2230; cursor:pointer; }
html[data-raum-modul^=zahl-des-tages] .card-compare:not(.is-zoomed) .card-tools [data-cmp-new] > svg { width:68%!important; height:68%!important; margin:0!important; }
html[data-raum-modul^=zahl-des-tages] .card-compare:not(.is-zoomed) .card-tools [data-cmp-new] > span { display:none!important; }
html[data-raum-modul^=zahl-des-tages] .card-compare:not(.is-zoomed) .card-tools [data-cmp-new]:focus-visible { outline:3px solid #2563eb; outline-offset:2px; }
html.zdt-auge-platz[data-raum-modul^=zahl-des-tages] .sheet { margin-bottom:64px!important; }
/* Ohne Überschrift (Alex, 18.10.2026): Die Knopfleiste (Lupe, Neu) belegte die einzige Rasterzeile; der Zahlenstrahl rutschte in eine 0-px-Zeile, beim Vergleichen lag „Neu“ über der Zahl.
   Knöpfe bekommen eine eigene schmale Zeile, der Inhalt steht darunter. */
html.zdt-free.raum-effizient[data-raum-modul^=zahl-des-tages] .zdt-no-title>.card:not(.is-zoomed),
html.zdt-free[data-raum-modul^=zahl-des-tages] .zdt-no-title>.card:not(.is-zoomed) { grid-template-rows:auto minmax(0,1fr)!important; }
html.zdt-free[data-raum-modul^=zahl-des-tages] .zdt-no-title>.card:not(.is-zoomed)>.card-tools { grid-row:1!important; justify-self:end; }
html.zdt-free[data-raum-modul^=zahl-des-tages] .zdt-no-title>.card:not(.is-zoomed)>:not(.card-head):not(.card-tools):not(.card-mark) { grid-row:2!important; min-height:0; }
/* Die Inhalte behalten beim Anordnen und Sperren dieselben Innenabstände. */
html.zdt-free[data-raum-modul^=zahl-des-tages] .zdt-no-title>.card:not(.is-zoomed) {
  grid-template-rows:minmax(0,1fr)!important;
  padding:calc(12px / var(--zdt-scale,1)) calc(28px / var(--zdt-scale,1))!important;
}
html.zdt-free[data-raum-modul^=zahl-des-tages] .zdt-no-title>.card[data-task].card:not(.is-zoomed)>.card-tools.card-tools {
  position:absolute!important;
  inset:calc(8px / var(--zdt-scale,1)) calc(5px / var(--zdt-scale,1)) auto auto!important;
  grid-area:auto!important;
  z-index:2;
}
/* Ergebniszeichen belegen den Seitenabstand, damit die Aufgabe beim Prüfen mittig bleibt. */
html.zdt-free[data-raum-modul^=zahl-des-tages] .zdt-no-title>.card:not(.is-zoomed)>.card-tools>.card-mark.card-mark {
  position:absolute!important;
  inset:calc(6px / var(--zdt-scale,1)) 0 auto auto!important;
  grid-area:auto!important;
  width:calc(20px / var(--zdt-scale,1))!important;
  height:calc(20px / var(--zdt-scale,1))!important;
}
html.zdt-free[data-raum-modul^=zahl-des-tages] .zdt-no-title>.card-compare:not(.is-zoomed)>.card-tools {
  padding-inline-end:calc(24px / var(--zdt-scale,1));
}
html.zdt-free[data-raum-modul^=zahl-des-tages] .zdt-no-title>.card:not(.is-zoomed)>:not(.card-head):not(.card-tools):not(.card-mark) {
  grid-row:1!important;
}
html.zdt-free:not(.zdt-grund)[data-raum-modul^=zahl-des-tages] .zdt-no-title>.card.card-build[data-task]:not(.is-zoomed) {
  grid-template-rows:minmax(0,1fr)!important;
}
html.zdt-free[data-raum-modul^=zahl-des-tages] .zdt-no-title>.card-chart:not(.is-zoomed)>.chart-wrap {
  grid-template-rows:minmax(0,1fr);
}
html.zdt-free[data-raum-modul^=zahl-des-tages] .zdt-no-title>.card-word:not(.is-zoomed)>.word[data-mode=tiles] {
  grid-template-rows:auto auto;
  align-content:safe center;
}

html.zdt-free[data-raum-modul^=zahl-des-tages] .zdt-no-title>.card:not(.is-zoomed) :is(.round-row,.calc-row) {
  grid-template-columns:max-content minmax(0,130px);
}

/* Querformat: Bühne so hoch wie das wirklich sichtbare Fenster; passt trotzdem etwas nicht, darf die Seite scrollen (Alex, 18.10.2026: „ich kann nicht runter scrollen“). raum.css sperrte mit overflow:hidden. */
@media (min-width:641px) and (orientation:landscape), (min-width:901px) {
  html.zdt-free.raum-effizient[data-raum-modul^=zahl-des-tages]:not(.zdt-scroll) .app { height:min(100dvh, var(--zdt-vh, 100dvh))!important; }
  html.zdt-free.raum-effizient.gsr-lu-an.gsr-lu-app[data-raum-modul^=zahl-des-tages]:not(.zdt-scroll) .app { height:calc(min(100dvh, var(--zdt-vh, 100dvh)) - var(--lu-h, 0px))!important; }
  html.zdt-free.raum-effizient[data-raum-modul^=zahl-des-tages]:not(.is-zoom), html.zdt-free.raum-effizient[data-raum-modul^=zahl-des-tages]:not(.is-zoom) body { overflow-x:hidden!important; overflow-y:auto!important; }
}

/* Optionale Gesamtansicht; dieselben Karten, nur proportional eingepasst. */
html.zdt-screen.zdt-free.raum-effizient.gsr-lu-app[data-raum-modul^=zahl-des-tages],
html.zdt-screen.zdt-free.raum-effizient.gsr-lu-app[data-raum-modul^=zahl-des-tages] body { height:var(--zdt-vh)!important; min-height:0!important; overflow:hidden!important; }
html.zdt-screen.zdt-free.raum-effizient.gsr-lu-app[data-raum-modul^=zahl-des-tages] .app:not(.tk) { height:var(--zdt-vh)!important; min-height:0!important; overflow:hidden!important; grid-template-rows:auto minmax(0,1fr)!important; }
html.zdt-screen.zdt-free[data-raum-modul^=zahl-des-tages] .sheet { min-height:0!important; margin-bottom:0!important; }

/* 21.10.2026: Dieselben Inhaltsgrenzen gelten auch in der aus dem Rahmen gelösten Lupe. */
html[data-raum-modul^=zahl-des-tages] .card-digits.is-zoomed .dg-cell { min-width:0!important; }
html[data-raum-modul^=zahl-des-tages] .card-steps.is-zoomed .st-hop { height:auto!important; align-content:end; }
html[data-raum-modul^=zahl-des-tages] .card-steps.is-zoomed .st-hop b { background:transparent!important; }
html[data-raum-modul^=zahl-des-tages] .card-steps.is-zoomed .st-hop svg { position:static!important; display:block; width:76%!important; height:calc(18px / var(--zk,1))!important; }
html[data-raum-modul^=zahl-des-tages] .card-chart.is-zoomed .chart-wrap { container-type:size; width:100%; height:100%; }
html[data-raum-modul^=zahl-des-tages] .card-chart.is-zoomed .chart { --cs:min(calc(100cqw / var(--n)),calc(100cqh / var(--n))); grid-auto-rows:max(var(--cs),calc(92px / var(--zk,1))); }
html[data-raum-modul^=zahl-des-tages] .card-chart.is-zoomed .ch-cell.is-ask { grid-template-rows:minmax(0,1fr) calc(44px / var(--zk,1)); }
html[data-raum-modul^=zahl-des-tages] .card-chart.is-zoomed .ch-cell > :is(input,button) { min-width:0!important; min-height:0!important; }
html[data-raum-modul^=zahl-des-tages] .card-chart.is-zoomed .ch-help { height:100%; }

html[data-raum-modul^=zahl-des-tages] [data-zdt-screen-zoom] { height:44px!important; min-height:44px!important; width:100%; }
html[data-raum-modul^=zahl-des-tages] [data-zdt-screen-choice][hidden] { display:none!important; }

/* Zahlen dürfen keine benachbarten Tippflächen mit ihrer Schrift-Linebox überdecken. */
html[data-raum-modul^=zahl-des-tages] .cmp-num { pointer-events:none; }
html[data-raum-modul^=zahl-des-tages] .card-chart.is-zoomed .ch-cell { font-size:max(18px,calc(var(--cs) * .32))!important; }
html[data-raum-modul^=zahl-des-tages] .card-chart.is-zoomed .ch-cell.is-target { padding:0; pointer-events:none; }

/* Textschalter folgen derselben Größe wie ihre Tippfläche, auch in kleinen Rahmen. */
html.zdt-free .zdt-element :is(.mode-switch,.word-modes) button { font-size:calc(var(--zdt-touch,44px) * .32)!important; line-height:1.2; }
/* Die sichtbare Fahne und der Strahl müssen innerhalb der Tippfläche bleiben. */
html[data-raum-modul^=zahl-des-tages] .card.card-line > .line { min-height:calc(var(--track) + var(--pin) + 12px)!important; }

/* Die neue Leiste versetzt das Fenster nach body: dort am Viewport statt am alten Kopf verankern. */
html.tkl-an #task-menu.tk-fenster:not([hidden]) {
  position: fixed !important;
  z-index: 160 !important;
  inset: 12px auto auto 12px !important;
  max-height: calc(100dvh - var(--tk-leiste-h, 68px) - 36px) !important;
  margin: 0 !important;
  transform: none !important;
}

/* Kartenrahmen außerhalb des Kartenzooms zeichnen; Borderplatz und Einpassmaße bleiben unverändert. */
html.zdt-free[data-raum-modul^=zahl-des-tages] .zdt-element:has(>.card:not(.is-zoomed)):not(.zdt-no-frame) {
  border-radius:var(--zdt-frame-radius,24px);
  background:var(--card,#fff);
  box-shadow:var(--zdt-frame-shadow,var(--shadow));
}
html.zdt-painted { --zdt-frame-shadow:0 5px 12px -9px #71595180; }
html.zdt-free[data-raum-modul^=zahl-des-tages] .zdt-element:has(>.card:not(.is-zoomed)):not(.zdt-no-frame)::before {
  content:"";
  position:absolute;
  inset:0;
  box-sizing:border-box;
  border:2px solid var(--zdt-frame-color,var(--ink,#1c2230));
  border-radius:inherit;
  pointer-events:none;
  z-index:1;
}
html.zdt-free[data-raum-modul^=zahl-des-tages] .zdt-element:not(.zdt-no-frame)>.card:not(.is-zoomed) {
  border-color:transparent!important;
  border-image:none!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}

html.zdt-free[data-raum-modul^=zahl-des-tages] .zdt-element.zdt-no-frame>.card:not(.is-zoomed) {
  border:0!important;
  box-shadow:none!important;
  background:transparent!important;
}
html.zdt-free.zdt-halloween[data-raum-modul^=zahl-des-tages] .zdt-element.zdt-no-frame>.card:not(.is-zoomed) {
  background:#f6f0fc!important;
  border-radius:18px;
}

/* Derselbe gezeichnete Rahmen wie im Klassenraum, in Bildschirmgröße um das skalierte Element. */
html.zdt-free:not(.zdt-grund)[data-raum-modul^=zahl-des-tages] :is(.zdt-element:has(>.card:not(.is-zoomed)):not(.zdt-no-frame),.zdt-extra-bordered) {
  border-radius:20px;
  background:none;
  box-shadow:var(--zdt-frame-shadow,var(--shadow));
  isolation:isolate;
}
html.zdt-free:not(.zdt-grund)[data-raum-modul^=zahl-des-tages] :is(.zdt-element:has(>.card:not(.is-zoomed)):not(.zdt-no-frame),.zdt-extra-bordered,.zdt-number-framed .zdt-number-box)::before {
  content:"";
  position:absolute;
  inset:0;
  box-sizing:border-box;
  border:2px solid transparent;
  border-image:var(--zdt-kartenrahmen,var(--frame)) 34 fill / 24px / 0 stretch;
  border-radius:inherit;
  pointer-events:none;
  z-index:-1;
}
.zdt-element:has(>.card.is-right) { --zdt-kartenrahmen:var(--frame-ok); }
.zdt-element:has(>.card.is-wrong) { --zdt-kartenrahmen:var(--frame-warn); }
.zdt-element:has(>.card.is-open) { --zdt-kartenrahmen:var(--frame-open); }
html.zdt-free:not(.zdt-grund,.zdt-edit) :is(.zdt-selected:not([data-extra="number"]),.zdt-selected .zdt-number-box) { outline:2px solid #316ca9; outline-offset:2px; }
html.zdt-edit .zdt-element .zdt-move { top:-16px; left:calc(50% - 44px); width:88px; height:24px; border:0; border-radius:14px; background:none; }
html.zdt-edit .zdt-move svg { display:none; }
html.zdt-edit .zdt-move::after { content:""; position:absolute; left:18px; top:9px; width:52px; height:6px; border-radius:3px; background:var(--ink); opacity:.26; }
html.zdt-edit .zdt-move:is(:hover,:focus-visible)::after { opacity:.7; }
html.zdt-edit .zdt-element .zdt-resize { z-index:8; width:46px; height:46px; border:0; border-radius:0 0 20px 0; background:none; clip-path:polygon(100% 0,100% 100%,0 100%); }
html.zdt-edit .zdt-element .zdt-resize:is(:hover,:focus-visible) { outline:0; background:linear-gradient(135deg,transparent 50%,#316ca9 50%,#316ca9 calc(50% + 2px),transparent calc(50% + 2px)); }
html.zdt-free:not(.zdt-grund)[data-raum-modul^=zahl-des-tages] .zdt-tight:has(>.card:not(.is-zoomed)):not(.zdt-no-frame) { box-shadow:none; }
html.zdt-free:not(.zdt-grund)[data-raum-modul^=zahl-des-tages] .zdt-tight.zdt-no-frame>.card:not(.is-zoomed) { background:transparent!important; }
html.zdt-free:not(.zdt-grund)[data-raum-modul^=zahl-des-tages] .zdt-tight:has(>.card:not(.is-zoomed)):not(.zdt-no-frame)::before {
  inset:var(--zdt-ink-top,0px) var(--zdt-ink-right,0px) var(--zdt-ink-bottom,0px) var(--zdt-ink-left,0px);
  box-shadow:var(--zdt-frame-shadow,var(--shadow));
}
html.zdt-edit .zdt-element.zdt-tight .zdt-move { top:calc(var(--zdt-ink-top,0px) - 16px); left:calc((100% + var(--zdt-ink-left,0px) - var(--zdt-ink-right,0px)) / 2 - 44px); }
html.zdt-edit .zdt-tight .zdt-resize { right:var(--zdt-ink-right,0px); bottom:var(--zdt-ink-bottom,0px); }
html.zdt-free:not(.zdt-grund,.zdt-edit) .zdt-tight.zdt-selected { outline:none; }
.zdt-modul-aktionen { display:grid; gap:8px; }
.zdt-modul-aktionen button { min-height:44px; padding:8px 12px; border:1px solid #cbd5df; border-radius:12px; background:white; color:#263443; font:inherit; text-align:left; cursor:pointer; }
.zdt-modul-aktionen button[aria-pressed="true"] { background:#eef3f8; border-color:#9baec1; }
.zdt-modul-aktionen button:disabled { opacity:.5; cursor:default; }
.zdt-modul-aktionen label { display:grid; gap:5px; margin-top:4px; }
.zdt-modul-aktionen .zdt-number-setting { grid-template-columns:1fr minmax(64px,96px); align-items:center; }
.zdt-number-setting input { width:100%; min-height:44px; box-sizing:border-box; border:1px solid #cbd5df; border-radius:10px; padding:6px 8px; font:inherit; color:inherit; text-align:center; }
.zdt-modul-aktionen select { min-height:44px; width:100%; border:1px solid #cbd5df; border-radius:10px; padding:6px 8px; background:#fff; color:inherit; font:inherit; }
.parity button[role="radio"] { display:flex; align-items:center; justify-content:flex-start; padding-inline:clamp(8px,5%,24px); gap:.55em; text-align:left; }
.parity button[role="radio"]::before { content:""; flex:none; box-sizing:border-box; width:.75em; height:.75em; border:.09em solid currentColor; border-radius:50%; }
.parity button[aria-checked="true"]::before { background:radial-gradient(circle,currentColor 0 42%,transparent 46%); }
.parity button[aria-checked="true"] { border-color:#f59e0b; background:#fff7e6; color:#7a4b00; }
.card-parity.is-right .parity button[aria-checked="true"] { border-color:var(--ok); background:#f0fdf4; color:#11632f; }
.card-parity.is-wrong .parity button[aria-checked="true"] { border-color:var(--warn); background:#fff7ed; color:#9a3412; }
html.zdt-free.zdt-grund .zdt-element .tick-label { font-size:var(--zdt-line-font,calc(36px / var(--zdt-scale,1)))!important; }
html.zdt-free:not(.zdt-grund)[data-raum-modul^=zahl-des-tages] .card.card-line:not(.is-zoomed)>.line {
  --track:clamp(34px,calc(var(--zdt-line-height,160px) * .26),calc(100px / var(--zdt-scale,1)));
  --pin:min(40px,calc(36px / var(--zdt-scale,1)));
  min-height:calc(var(--track) + var(--pin) + 12px)!important;
}
html.zdt-free:not(.zdt-grund)[data-raum-modul^=zahl-des-tages] .zdt-element .card.card-line:not(.is-zoomed)>.card-head.card-head {
  height:auto!important; min-height:var(--zdt-touch,44px)!important;
}
html.zdt-free:not(.zdt-grund)[data-raum-modul^=zahl-des-tages] .zdt-no-title .card.card-line:not(.is-zoomed)>.card-head.card-head {
  display:none!important;
}
html.zdt-free:not(.zdt-grund)[data-raum-modul^=zahl-des-tages] .card.card-line:not(.is-zoomed) .tick-label {
  bottom:auto;
  top:calc(100% - var(--track) + var(--line-label-gap,17px));
  font-size:var(--line-label-size,1rem);
}
/* Vorrat über der Tafel, Zehner liegend (Alex, 20.11.2026) */
html.zdt-free .zdt-element .build[data-mode=lay] { grid-template-columns:minmax(0,1fr)!important; grid-template-rows:auto minmax(0,1fr)!important; }
html.zdt-free .zdt-element .build[data-mode=lay] .palette { grid-auto-flow:column!important; grid-auto-columns:minmax(0,1fr)!important; grid-auto-rows:auto!important; }
