/* Ansicht „Mein Tag“ (js/ansichten/meintag.js) · rOSe, Doc 21 · Präfix mt-.
   MOBILE FIRST: Grundlage ist 375 px, eine Hand, Daumenzone unten. Der Rechner ist die Erweiterung (Container Query unten).
   Nur Variablen aus dashboard.css, keine Schatten, keine Verläufe. Fließtext 16px, Nebentext ab 13.5px, Ziele ≥ 44 px. */

/* Spalte als Flexbox (nicht Grid): Bei Grid wäre der Rasterbereich der Bezugsrahmen der klebenden Daumenleiste,
   sie könnte dann nicht über der Tab-Leiste kleben (B3/B4 J). */
.mt { display: flex; flex-direction: column; gap: 22px; max-width: 1120px; font-size: 16px; line-height: 1.45; }
.mt > * { min-width: 0; }

/* ── Kopf: Datum, Gruß, Rolle und Abteilungen ── */
.mt-kopf { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 14px 24px; padding-top: 4px; }
.mt-gruss { min-width: 0; }
.mt-datum { margin: 0 0 6px; font-size: 15px; color: var(--mut); }
.mt-kopf h1 { margin: 0; font: 300 clamp(30px, 9cqi, 46px)/1.05 var(--serif); letter-spacing: -.005em; overflow-wrap: anywhere; }
.mt-kopf h1 b { font-weight: 800; }
.mt-chips { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.mt-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 12px; border: 1px solid var(--linie2); border-radius: var(--r2); font-size: 14px; white-space: nowrap; }
.mt-chip i { width: 10px; height: 10px; border-radius: var(--r1); background: var(--kf-tief, var(--kf, var(--mut))); flex: none; }
.mt-chip.mt-rolle { background: var(--fg); color: var(--bg); border-color: var(--fg); font-weight: 600; }
.mt-band { margin: 0; flex-wrap: wrap; font-size: 15px; }

/* ── Große Knöpfe (Daumenzone und Kopf) ── */
.mt-knoepfe { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mt-gross { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 16px; border: 1px solid var(--linie-ui); border-radius: var(--r2); background: transparent; color: var(--fg); font: 600 17px/1.1 var(--sans); cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; transition: background var(--t-1) var(--ease), transform var(--t-1) var(--ease); }
.mt-gross svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; flex: none; }
.mt-gross.mt-erfassen { background: var(--aktion-hg); color: var(--aktion-text); border-color: var(--aktion-hg); }  /* Hauptknopf */
@media (hover: hover) { .mt-gross:hover { background: var(--flaeche2); } }
@media (hover: hover) { .mt-gross.mt-erfassen:hover { background: color-mix(in srgb, var(--aktion-hg) 88%, var(--aktion-text)); } }
.mt-gross:active { transform: scale(.98); }
.mt-gross:focus-visible { outline: var(--fokus-breite) solid var(--fokus); outline-offset: 3px; }

/* Daumenleiste: klebt über der unteren Navigation, bis die Seite zu Ende ist */
.mt-daumen { position: sticky; bottom: 0; z-index: 25; display: grid; gap: 6px; margin: 0 calc(-16px / var(--zoom, 1)); padding: 10px 16px 8px; background: var(--bg); border-top: 1px solid var(--linie); }
.mt-hinweis { margin: 0; text-align: center; font-size: 13.5px; color: var(--mut); }
.mt-knoepfe-kopf { display: none; }

/* ── Kachel „Heute zu tun“ ── */
.mt-kachel { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--r); padding: 14px 18px 16px; display: grid; gap: 6px; }
.mt-kachel h2 { margin: 0; font: 700 12px/1.2 var(--etikett-schrift); letter-spacing: calc(.14em * var(--sperrung)); text-transform: var(--etikett-schreibung); color: var(--mut); }
.mt-k-zahl { margin: 0; display: flex; align-items: center; gap: 16px; }
.mt-k-zahl b { font: 400 68px/.95 var(--serif); font-variant-numeric: tabular-nums lining-nums; }
.mt-k-text { display: grid; gap: 2px; font-size: 16px; font-weight: 600; min-width: 0; }
.mt-k-text small { font-size: 14px; font-weight: 400; color: var(--mut); }
/* Mit Überfälligem: ganze Kachel rot voll (Signalfarben 11.11.). Ohne: Zahl als volle gelbe Plakette, Kachel bleibt ruhig. */
.mt-kachel.mt-rot { background: var(--rot-voll); border-color: var(--rot-voll); color: var(--auf-rot); }
.mt-kachel.mt-rot :is(h2, b, .mt-k-text, .mt-k-text small) { color: var(--auf-rot); }
.mt-kachel.mt-rot b { font-weight: 700; }
.mt-kachel.mt-gelb .mt-k-zahl b { padding: 4px 12px 2px; border-radius: var(--r2); background: var(--gelb-voll); color: var(--auf-gelb); }
.mt-kachel.mt-null b { color: var(--ok); }

/* ── Abschnitte ── */
.mt-raster { display: grid; gap: 26px; }
.mt-spalte { display: grid; gap: 22px; align-content: start; min-width: 0; }
.mt-abschnitt { display: grid; gap: 10px; min-width: 0; }
.mt-abschnitt-kopf { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; }
.mt-abschnitt-kopf h2 { margin: 0; font: 400 24px/1.15 var(--serif); }
.mt-abschnitt-kopf h2:focus { outline: none; }
.mt-abschnitt-kopf h2:focus-visible { outline: var(--fokus-breite) solid var(--fokus); outline-offset: 3px; border-radius: var(--r1); }
.mt-abschnitt-kopf a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; font-size: 15px; color: var(--mut); text-underline-offset: 3px; }
@media (hover: hover) { .mt-abschnitt-kopf a:hover { color: var(--fg); } }
.mt-ruhig { margin: 0; padding: 14px 16px; border: 1px dashed var(--linie2); border-radius: var(--r); color: var(--mut); font-size: 15px; }
.mt-gut { margin: 0 0 4px; font-size: 15px; color: var(--ok); font-weight: 600; }
.mt-leer { padding: 26px 18px; }
.mt-leer p { font-size: 16px; color: var(--fg); }
.mt-k { min-height: 44px; height: auto; padding: 0 16px; font-size: 15px; border-radius: var(--r2); }
.mt-k svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }

/* Umschalter „Alle · Für mich · Für die Abteilung“ */
.mt-wer { display: flex; flex-wrap: wrap; gap: 6px; }
.mt-wer button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid var(--linie-ui); border-radius: var(--r2); background: transparent; font-size: 15px; white-space: nowrap; -webkit-tap-highlight-color: transparent; }
@media (hover: hover) { .mt-wer button:hover { border-color: var(--fg); } }
.mt-wer button[aria-pressed="true"] { background: var(--flaeche3); color: var(--fg); border-color: var(--fg); font-weight: 600; }
.mt-wer small { font-size: 13.5px; font-variant-numeric: tabular-nums; }

/* Gruppen nach Fälligkeit */
.mt-offen { display: grid; gap: 16px; }
.mt-gruppe { display: grid; gap: 6px; }
.mt-gruppe-kopf { display: flex; align-items: center; gap: 8px; margin: 0; font: 700 var(--fs-12)/1.2 var(--etikett-schrift); letter-spacing: calc(.12em * var(--sperrung)); text-transform: var(--etikett-schreibung); color: var(--mut); }
.mt-g-ueber .mt-gruppe-kopf { color: var(--rot); }
.mt-g-heute .mt-gruppe-kopf { color: var(--fg); }
.mt-anzahl { display: inline-grid; place-items: center; min-width: 24px; height: 22px; padding: 0 7px; border-radius: var(--r1); background: var(--flaeche2); color: var(--fg); font: 600 13px/1 var(--wert-schrift); letter-spacing: 0; font-variant-numeric: tabular-nums; }
.mt-g-ueber .mt-anzahl { background: var(--rot-voll); color: var(--auf-rot); font-weight: 700; }
/* B2 Signalfarben wie auf dem Start: Gruppenkopf mit 2-px-Linie im Ton (überfällig rot, heute gelb, Woche blau) */
.mt-gruppe-kopf { padding-bottom: 6px; border-bottom: 2px solid var(--linie2); }
.mt-g-ueber .mt-gruppe-kopf { border-bottom-color: var(--rot-voll); }
.mt-g-heute .mt-gruppe-kopf { border-bottom-color: var(--gelb-voll); }
.mt-g-heute .mt-anzahl { background: var(--gelb-voll); color: var(--auf-gelb); font-weight: 700; }
.mt-g-woche .mt-gruppe-kopf { border-bottom-color: var(--blau-voll); }
.mt-gruppe-kopf + .mt-liste { border-top: 0; }
/* Nachrichten-Feed (B2) zwischen „Heute“ und „Diese Woche“ */
.mt-feed { min-width: 0; }

/* Später, Heute erledigt (aufklappbar) */
.mt-klapp { border-top: 1px solid var(--linie); }
.mt-klapp > summary { list-style: none; display: flex; align-items: center; gap: 10px; min-height: 52px; cursor: pointer; font-size: 16px; font-weight: 600; border-radius: var(--r2); -webkit-tap-highlight-color: transparent; }
.mt-klapp > summary::-webkit-details-marker { display: none; }
.mt-klapp > summary::before { content: "›"; display: inline-block; width: 14px; font-size: 22px; line-height: 1; color: var(--mut); transition: transform var(--t-2) var(--ease); }
.mt-klapp[open] > summary::before { transform: rotate(90deg); }
.mt-klapp > summary:focus-visible { outline: var(--fokus-breite) solid var(--fokus); outline-offset: 2px; }
.mt-klapp > .mt-liste { padding-bottom: 8px; }
.mt-klapp-fertig { margin-top: 6px; }

/* ── Aufgaben-Zeile ── */
/* Richtung B: Zeilen mit 1px-Haarlinie statt einzelner Karten (dichter, mehr auf einen Blick) */
.mt-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--linie); }
.mt-zeile { position: relative; isolation: isolate; overflow: hidden; border-bottom: 1px solid var(--linie); }
.mt-vorne { position: relative; z-index: 1; display: grid; grid-template-columns: 48px minmax(0, 1fr) 44px; align-items: center; gap: 2px; min-height: 58px; padding: 4px 4px 4px 0; background: var(--bg); border: 0; touch-action: pan-y; transition: transform var(--t-2) var(--ease), background-color var(--t-1) var(--ease); }
.mt-fertig .mt-vorne { grid-template-columns: 48px minmax(0, 1fr); background: transparent; }
.mt-ueber .mt-vorne { border-left: 4px solid var(--rot-voll); }  /* überfällig: roter Strich links, dazu Text „überfällig“ in der Meta-Zeile */
.mt-laeuft .mt-vorne { opacity: .7; }

/* Haken: Trefferfläche 48 px, sichtbar 30 px, Rand mit genug Kontrast */
.mt-haken { position: relative; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.mt-haken input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.mt-haken span { display: grid; place-items: center; width: 30px; height: 30px; border: 2px solid var(--linie-ui); border-radius: 50%; background: var(--flaeche); transition: background var(--t-1) var(--ease), border-color var(--t-1) var(--ease); pointer-events: none; }
.mt-haken svg { width: 18px; height: 18px; fill: none; stroke: var(--auf-ok); stroke-width: 2.6; opacity: 0; }
@media (hover: hover) { .mt-haken:hover span { border-color: var(--fg); } }
@media (hover: hover) { .mt-haken:hover input:not(:checked) + span svg { opacity: .4; stroke: var(--fg); } }
.mt-haken input:checked + span { background: var(--ok-voll); border-color: var(--ok-voll); }
.mt-haken input:checked + span svg { opacity: 1; stroke: var(--auf-ok); }
.mt-haken input:focus-visible + span { outline: var(--fokus-breite) solid var(--fokus); outline-offset: 3px; }
.mt-haken input[aria-disabled="true"] { cursor: not-allowed; }
.mt-haken input[aria-disabled="true"] + span { opacity: .5; }

/* Text: Titel groß, Meta darunter */
.mt-text { all: unset; box-sizing: border-box; display: grid; gap: 4px; align-content: center; min-width: 0; min-height: 48px; padding: 6px 6px; border-radius: var(--r2); cursor: pointer; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.mt-text:focus-visible { outline: var(--fokus-breite) solid var(--fokus); outline-offset: 1px; }
.mt-titel { font-size: 16px; line-height: 1.35; font-weight: 500; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (hover: hover) { .mt-text:hover .mt-titel { text-decoration: underline; text-decoration-color: var(--linie2); text-underline-offset: 3px; } }
.mt-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 12px; font-size: 14px; line-height: 1.35; color: var(--mut); min-width: 0; }
.mt-meta .kat { font-size: 14px; white-space: normal; }
.mt-faellig.heute { color: var(--fg); font-weight: 600; }
/* Fälligkeit in der Zeile („seit 2 Tagen“, „heute“) als volle Plakette: rot = überfällig, gelb = heute */
.mt-faellig.rot, .mt-faellig.heute { padding: 1px 7px; border-radius: var(--r1); font-weight: 700; }
.mt-faellig.rot { background: var(--rot-voll); color: var(--auf-rot); }
.mt-wichtig { color: var(--gelb); font-weight: 600; }  /* B2: Rot bleibt überfällig, Fehler, Pflicht (J/U21) */
.mt-faellig.heute { background: var(--gelb-voll); color: var(--auf-gelb); }
.mt-fertig .mt-titel { text-decoration: line-through; color: var(--mut); }

/* Menü-Knopf „…“ */
.mt-mehr { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: var(--r2); background: transparent; color: var(--mut); -webkit-tap-highlight-color: transparent; }
.mt-mehr svg { width: 22px; height: 22px; fill: currentColor; stroke: none; }
@media (hover: hover) { .mt-mehr:hover { background: var(--flaeche2); color: var(--fg); } }
.mt-mehr:focus-visible { outline: var(--fokus-breite) solid var(--fokus); outline-offset: 0; }

/* Wischen: Fläche hinter der Zeile, rechts = erledigt (Grün), links = morgen (Blau) */
.mt-wisch { position: absolute; inset: 0; z-index: 0; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; background: var(--ok-hg); color: var(--ok); font-size: 16px; font-weight: 600; visibility: hidden; }
.mt-wisch span { display: inline-flex; align-items: center; gap: 8px; transition: transform var(--t-1) var(--ease); }
.mt-wisch svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; }
.mt-zeile.mt-wischt .mt-wisch, .mt-zeile.mt-weg .mt-wisch { visibility: visible; }
.mt-zeile[data-richtung="links"] .mt-wisch { background: var(--blau-hg); color: var(--blau); }
.mt-zeile[data-richtung="rechts"] .mt-wisch-r, .mt-zeile[data-richtung="links"] .mt-wisch-l { visibility: hidden; }
.mt-zeile.mt-bereit .mt-wisch, .mt-zeile.mt-weg .mt-wisch { background: var(--ok-voll); color: var(--auf-ok); }
.mt-zeile.mt-bereit[data-richtung="links"] .mt-wisch, .mt-zeile.mt-weg[data-richtung="links"] .mt-wisch { background: var(--blau-voll); color: var(--auf-blau); }
.mt-zeile.mt-bereit .mt-wisch span { transform: scale(1.1); }
.mt-zeile.mt-wischt .mt-vorne { transition: none; background: var(--flaeche); }
.mt-zeile.mt-weg .mt-vorne { transition: transform var(--t-2) var(--ease); }

/* Hinweis zu Gesten und Tasten */
.mt-tipp { margin: 2px 0 0; font-size: 13.5px; color: var(--mut); }
.mt-tipp kbd { font-size: var(--fs-12); }
.mt-nur-maus { display: none; }
@media (hover: hover) and (pointer: fine) { .mt-nur-touch { display: none; } .mt-nur-maus { display: inline; } }

/* ── Eingang Deiner Abteilung ── */
.mt-eg-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mt-eg { display: grid; gap: 8px; padding: 12px 14px 14px; background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--r); }
.mt-eg[data-art="problem"] { border-left: 4px solid var(--rot); }
.mt-eg.mt-laeuft { opacity: .7; }
.mt-eg-kopf { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 14px; color: var(--mut); }
.mt-eg-kopf .kat { font-size: 14px; }
.mt-art { display: inline-flex; align-items: center; min-height: 26px; padding: 0 9px; border-radius: var(--r2); border: 1px solid transparent; background: var(--flaeche2); color: var(--fg); font-size: 13.5px; font-weight: 600; }
.mt-art[data-art="aufgabe"] { background: var(--blau-hg); color: var(--blau); }
.mt-art[data-art="frage"] { border-color: var(--blau); color: var(--blau); background: transparent; }
.mt-art[data-art="problem"] { background: var(--rot-hg); color: var(--rot); }
.mt-art[data-art="bestellung"] { background: var(--gelb-hg); color: var(--gelb); }
.mt-art[data-art="bestand"] { border-color: var(--gelb); color: var(--gelb); background: transparent; }
.mt-art[data-art="idee"] { background: var(--ok-hg); color: var(--ok); }
.mt-art[data-art="verbesserung"] { border-color: var(--ok); color: var(--ok); background: transparent; }
.mt-eg-titel { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.mt-eg-text { margin: 0; font-size: 15px; color: var(--mut); overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mt-eg-tun { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mt-eg-tun .mt-k { width: 100%; }

/* ── Zuletzt von mir erfasst ── */
.mt-zl { list-style: none; margin: 0; padding: 0 4px; background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--r); }
.mt-zl > li + li { border-top: 1px solid var(--linie); }
.mt-zl-zeile { all: unset; box-sizing: border-box; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 9px 10px; border-radius: var(--r2); }
button.mt-zl-zeile { cursor: pointer; -webkit-tap-highlight-color: transparent; }
button.mt-zl-zeile:focus-visible { outline: var(--fokus-breite) solid var(--fokus); outline-offset: -2px; }
@media (hover: hover) { button.mt-zl-zeile:hover .mt-zl-titel { text-decoration: underline; text-decoration-color: var(--linie2); text-underline-offset: 3px; } }
.mt-zl-text { display: grid; gap: 2px; min-width: 0; }
.mt-zl-titel { font-size: 15.5px; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mt-zl-meta { font-size: 13.5px; color: var(--mut); }
.mt-status { display: inline-flex; align-items: center; min-height: 26px; padding: 0 9px; border-radius: var(--r2); background: var(--flaeche2); font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.mt-status.ok { background: var(--ok-hg); color: var(--ok); }
.mt-status.blau { background: var(--blau-hg); color: var(--blau); }
.mt-status.leer { background: transparent; border: 1px dashed var(--linie2); color: var(--mut); }

/* ── Zeilenmenü als Bottom Sheet (natives <dialog>) ── */
.mt-sheet { box-sizing: border-box; margin: auto 0 0; padding: 0; width: 100%; max-width: none; max-height: 88dvh; border: 0; border-top: 1px solid var(--linie2); border-radius: var(--r3) var(--r3) 0 0; background: var(--bg); color: var(--fg); overscroll-behavior: contain; animation: mt-hoch var(--t-3) var(--ease); }
.mt-sheet::backdrop { background: var(--schleier); }
@keyframes mt-hoch { from { transform: translateY(24px); opacity: 0; } }
.mt-sheet-innen { display: grid; gap: 12px; padding: 8px 16px calc(16px + env(safe-area-inset-bottom)); }
.mt-sheet-griff { justify-self: center; width: 40px; height: 4px; margin: 2px 0 2px; border-radius: 2px; background: var(--linie-ui); }
.mt-sheet-art { margin: 0; font: 700 12px/1.2 var(--etikett-schrift); letter-spacing: calc(.14em * var(--sperrung)); text-transform: var(--etikett-schreibung); color: var(--mut); }
.mt-sheet h2 { margin: -6px 0 2px; font: 400 23px/1.2 var(--serif); overflow-wrap: anywhere; }
.mt-sheet-knoepfe { display: grid; gap: 8px; }
.mt-sheet-knoepfe button { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 16px; border: 1px solid var(--linie-ui); border-radius: var(--r2); background: var(--flaeche); color: var(--fg); font-size: 16px; font-weight: 600; text-align: left; -webkit-tap-highlight-color: transparent; }
@media (hover: hover) { .mt-sheet-knoepfe button:hover { border-color: var(--fg); } }
.mt-sheet-knoepfe button:focus-visible { outline: var(--fokus-breite) solid var(--fokus); outline-offset: 2px; }
.mt-sheet-knoepfe svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; flex: none; }
.mt-sheet-knoepfe [data-aktion="mt-s-erledigen"] svg { stroke: var(--ok); stroke-width: 2.6; }
.mt-sheet-knoepfe small { margin-left: auto; font-size: 14px; font-weight: 400; color: var(--mut); }
.mt-sheet-knoepfe kbd { margin-left: 10px; }
.mt-sheet-knoepfe span + kbd { margin-left: auto; }
@media (hover: none) { .mt-sheet kbd { display: none; } }
.mt-sheet-zu { min-height: 52px; border: 0; border-radius: var(--r2); background: transparent; color: var(--fg); font-size: 16px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.mt-sheet-zu:focus-visible { outline: var(--fokus-breite) solid var(--fokus); outline-offset: 2px; }

/* ── Handy: Daumenleiste über der unteren Navigation (schwebender Erfassen-Knopf entfällt, rahmen.css) ── */
@media (max-width: 860px) {
  /* Erfassen ist der Hauptknopf in der Mitte der Tab-Leiste. Die Daumenleiste zeigt nur noch „Sprechen“ als Zweitknopf:
     ein Hauptknopf pro Bildschirm, und das Diktat ist sichtbar (nicht nur per langem Druck). */
  /* K.4: Die Leiste liegt im Inhalt (zoom: var(--zoom)), die Tab-Leiste nicht. Abstand deshalb durch --zoom teilen. */
  .mt-daumen { bottom: calc((var(--nav-unten) + env(safe-area-inset-bottom)) / var(--zoom, 1)); padding: 8px 16px; }
  .mt-knoepfe-daumen { grid-template-columns: 1fr; }
  .mt-knoepfe-daumen .mt-erfassen { display: none; }
  .mt-knoepfe-daumen .mt-gross { min-height: var(--ziel); }
  /* Daumenzone und Toast-Verschiebung entfallen seit Doc 44 H4 (Mein Tag ist die Startseite, keine Daumen-Knöpfe mehr) */
}

/* ── Rechner: Erfassen und Sprechen stehen in der oberen Leiste (B2, rahmen.css). Eigene Knöpfe und Daumenleiste aus. ── */
@media (min-width: 861px) {
  .mt-daumen, .mt-knoepfe-kopf { display: none; }
  .mt-sheet { margin: auto; width: min(440px, calc(100% - 32px)); border: 1px solid var(--linie2); border-radius: var(--r2); }
  .mt-sheet-griff { display: none; }
  .mt-sheet-innen { padding: 18px 20px 20px; }
}

/* Breiter Inhalt: zwei Spalten (Aufgaben | Eingang und Zuletzt) */
@container ansicht (min-width: 760px) {
  .mt-raster { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; align-items: start; }
  .mt-einspaltig .mt-raster { grid-template-columns: minmax(0, 760px); }
  .mt-kopf h1 { font-size: 44px; }
}
/* Sehr schmal (unter 360 px): Knöpfe im Eingang untereinander */
@container ansicht (max-width: 340px) {
  .mt-eg-tun { grid-template-columns: 1fr; }
  .mt-k-zahl b { font-size: 56px; }
}

/* ══════════════ Mobil (B3/B4, Spec J): 360/390 px, Ziele ≥ 48 px, Platz für HACCP ══════════════ */
/* HACCP-Block (.mt-haccp, meintag.js haccpHtml: K.modul('bausteine').heuteHtml({ nurMeine: true }), Karten aus baustein.css).
   Steht oben unter dem Pflicht-Band, nur wenn heute etwas zu messen ist. Nur Abstand und Breite; leer nimmt er keinen Platz. */
.mt-haccp { display: grid; gap: 10px; min-width: 0; }
.mt-haccp:empty { display: none; }
/* Lange Abteilungsnamen und Wörter brechen sauber statt seitlich zu rollen */
.mt-chip { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.mt-k-text, .mt-eg-kopf, .mt-meta { overflow-wrap: anywhere; hyphens: auto; }
@container ansicht (max-width: 600px) {
  /* Fokus-Karten volle Breite: Kachel, Eingang-Karten, Zuletzt-Liste, Nachrichten-Feed */
  .mt-kachel, .mt-eg, .mt-zl, .mt-feed, .mt-haccp, .mt-ruhig { width: 100%; justify-self: stretch; }
  .mt-kachel { padding: 14px 16px 16px; }
  /* Knöpfe ≥ 48 px (Ziel), Text bricht statt abzuschneiden */
  .mt .k.mt-k, .mt-band .k, .mt-wer button { min-height: var(--ziel); }
  .mt-eg-tun .mt-k { white-space: normal; text-align: center; line-height: 1.2; }
  .mt-wer button { flex: 1 1 auto; justify-content: center; }
  .mt-abschnitt-kopf h2 { font-size: 22px; overflow-wrap: anywhere; }
  .mt-abschnitt-kopf a { min-height: var(--ziel); }
  .mt-klapp > summary { min-height: var(--ziel); }
  .mt-zl-zeile { min-height: 64px; }
}
@media (pointer: coarse) { .mt .k.mt-k, .mt-band .k { min-height: var(--ziel); } }
/* Link „Eintrag ansehen“ unter einer Aufgabe mit Baustein-Eintrag (meintag.js) */
.mt-eintrag { grid-column: 2 / -1; padding: 0 0 6px; }

@media (prefers-reduced-motion: reduce) {
  .mt-vorne, .mt-gross, .mt-haken span, .mt-wisch span, .mt-klapp > summary::before { transition: none; }
  .mt-sheet { animation: none; }
}
@media print { .mt-daumen, .mt-knoepfe, .mt-mehr, .mt-tipp { display: none; } }

/* ══ Sonne 2 (js/Sonne2_Spezifikation.md) ══
   Nur unter :root.sonne, Dunkel bleibt unberührt. Mein Tag bleibt die Handy-Ansicht (Ziele >= 44/48 px bleiben),
   nur die Typografie wird ruhiger: Titel 22 px, Abschnitte 17 px, Etiketten 12/600 normal geschrieben. */
/* Farbkorrektur: Linie braucht 3:1, --gelb-voll auf Weiß nur 2,15:1 */
:root.sonne .mt-g-heute .mt-gruppe-kopf { border-bottom-color: var(--gelb); }
:root.sonne .mt-kopf h1 { font: 600 var(--titel-seite)/1.25 var(--sans); letter-spacing: -0.01em; }
:root.sonne .mt-datum { font-size: var(--fs-13); }
:root.sonne .mt-k-zahl b { font: 600 32px/1 var(--sans); letter-spacing: -0.02em; font-variant-numeric: tabular-nums lining-nums; }
:root.sonne .mt-kachel.mt-gelb .mt-k-zahl b { padding: 2px 10px; }
:root.sonne :is(.mt-kachel h2, .mt-gruppe-kopf, .mt-sheet-art) { font-size: var(--text-meta); line-height: 16px; font-weight: 600; }
:root.sonne .mt-gruppe-kopf { border-bottom-width: 1px; }
:root.sonne .mt-kachel { padding: 12px 14px 14px; }
:root.sonne .mt-abschnitt-kopf h2 { font: 600 var(--fs-17)/1.3 var(--sans); letter-spacing: -0.01em; }
:root.sonne .mt-sheet h2 { font: 600 18px/1.3 var(--sans); letter-spacing: -0.01em; }
:root.sonne .mt-titel { font-size: var(--fs-15); }
:root.sonne :is(.mt-meta, .mt-meta .kat, .mt-eg-kopf, .mt-eg-kopf .kat) { font-size: var(--fs-13); }
@media (pointer: fine) { :root.sonne .mt-chip { min-height: 28px; padding: 0 10px; font-size: var(--fs-13); } }
:root.sonne :is(.mt-art, .mt-status) { min-height: 22px; padding: 0 8px; font-size: 12.5px; }
:root.sonne .mt-eg { padding: 10px 12px; }
:root.sonne .mt-eg-titel { font-size: var(--fs-15); }
:root.sonne .mt-eg-text { font-size: var(--fs-14); }
