/* Heimathafen - die App zum Ausprobieren (Aussehen). Stand: 12. November 2026
   Nachbildung der App 0.8.3 nach lib/stil.dart und lib/bausteine.dart:
   Papier, Haarlinien, Abhakkreis, Muenzen - keine Kaesten. Die Farben kommen
   aus stil.css (hell/dunkel, .tag/.nacht), alle Masse haengen an der
   Schriftgroesse des Geraets (em), damit Handy und Tablet mitwachsen. */

.demo-geraet { container-type: inline-size; margin-inline: auto; }
.demo-geraet.handy { height: clamp(600px, 80svh, 50rem); aspect-ratio: 9 / 18.6; max-width: 100%; width: auto; padding: .5rem; border-radius: 2.6rem; }
.demo-geraet.tablet { width: 100%; aspect-ratio: 16 / 10.4; max-height: 82svh; padding: .6rem; border-radius: 1.7rem; }
.dm { position: relative; display: flex; flex-direction: column; height: 100%; overflow: hidden; background: var(--grund); color: var(--tinte); border-radius: 2.1rem; font: 400 clamp(13.5px, 3.8cqw, 17px)/1.3 var(--sans); transition: background-color .6s, color .6s; -webkit-tap-highlight-color: transparent; }
/* Lesbar bleibt es immer: nie kleiner als 13,5 px. Wird das Tablet schmal,
   rueckt der Inhalt zusammen (siehe die @container-Regeln), statt zu schrumpfen. */
.tablet .dm { border-radius: 1.15rem; font-size: clamp(13.5px, 1.48cqw, 16px); }
.dm button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; text-align: left; border-radius: .5em; }
.dm :focus-visible { outline: 2px solid var(--akzent); outline-offset: 2px; }
.dm svg { width: 1.5em; height: 1.5em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.dm h2, .dm h3, .dm h4, .dm p, .dm ul { margin: 0; padding: 0; list-style: none; }
.dm-unsichtbar { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.dm-serif { font: 600 1.7em/1.15 var(--serif); letter-spacing: -.012em; }

/* Seite und Wechsel: weich einblenden, ein Hauch nach oben (Fade-Forwards) */
/* Seite und Szenenband rollen gemeinsam: Das Band steht am Ende der Seite
   (bei kurzem Inhalt am unteren Rand), wie in der App seit 0.8.4. */
.dm-rolle { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.dm-rolle::-webkit-scrollbar { display: none; }
.dm-seite { flex: 1 0 auto; padding: 0 1.4em 1em; outline: none; }
.tablet .dm-seite { padding: 0 2.4em 1em; }
.dm-inhalt.neu { animation: dm-kommt .34s cubic-bezier(.2, .7, .2, 1) both; }
.dm-inhalt.neu.vor { animation-name: dm-von-rechts; }
.dm-inhalt.neu.rueck { animation-name: dm-von-links; }
@keyframes dm-kommt { from { opacity: 0; transform: translateY(.7em); } }
@keyframes dm-von-rechts { from { opacity: 0; transform: translateX(2em); } }
@keyframes dm-von-links { from { opacity: 0; transform: translateX(-2em); } }

.dm-kopf { display: flex; align-items: center; gap: .6em; padding: 2.2em 0 .7em; position: sticky; top: 0; z-index: 2; background: linear-gradient(var(--grund) 82%, transparent); transition: background .6s; }
.tablet .dm-kopf { padding-top: 1.4em; }
.dm-kopf h2 { margin-right: auto; }
.dm-zurueck { display: grid; place-items: center; width: 2.4em; height: 2.4em; margin-left: -.6em; border-radius: 50%; }
.dm-zurueck:hover, .dm-blaettern button:hover { background: var(--flaeche-leise); }
.dm-profil { display: grid; place-items: center; width: 2.5em; height: 2.5em; border-radius: 50%; color: #fff; font-weight: 600; flex: none; }
.dm-punkt { display: inline-block; width: .55em; height: .55em; border-radius: 50%; flex: none; margin-right: .45em; }
.dm-punkt.alle { background: var(--akzent); }
.dm-ring { display: inline-block; width: .6em; height: .6em; border-radius: 50%; border: 1.5px solid var(--tinte-leise); margin-right: .45em; flex: none; }
.dm-muenzen { display: inline-flex; align-items: center; gap: .3em; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--tinte); }
.dm-muenze { display: inline-block; width: .95em; height: .95em; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #F2CD7A, var(--muenze) 60%); box-shadow: inset 0 0 0 1px var(--muenze-rand); flex: none; }
.dm-flug { position: absolute; z-index: 6; pointer-events: none; font-size: 1.1em; box-shadow: inset 0 0 0 1px var(--muenze-rand), 0 .2em .5em #0003; }

.dm-abschnitt { display: flex; align-items: baseline; gap: .45em; margin: 1.3em 0 .25em; font: 600 1.2em/1.25 var(--sans); }
.dm-abschnitt > span { font-weight: 400; font-size: .85em; color: var(--tinte-leise); }
.dm-abschnitt .dm-text { margin-left: auto; font-size: .82em; }
.dm-klein { margin: 1.1em 0 .2em; font-weight: 600; font-size: .9em; color: var(--tinte-leise); }
.dm-leise, .dm-fuss { color: var(--tinte-leise); }
.dm-fuss { margin-top: 1.2em; font-size: .88em; }
.dm-leer { color: var(--tinte-leise); padding: .8em 0; }
.dm-leer.gross { padding: 3em 0; text-align: center; }
.dm-zeilen > li { border-top: 1px solid var(--linie); }
.dm-zeilen > li:first-child { border-top: 0; }
.dm-text { color: var(--akzent-text); font-weight: 600; padding: .5em .2em !important; }
.dm-text:hover { text-decoration: underline; text-underline-offset: .2em; }
.dm-text:disabled { color: var(--tinte-leise); opacity: .5; cursor: default; text-decoration: none; }
.dm-knopf { display: inline-flex !important; align-items: center; gap: .5em; min-height: 2.9em; padding: 0 1.1em !important; border-radius: .7em !important; background: var(--akzent) !important; color: var(--auf-akzent) !important; font-weight: 600 !important; transition: transform .2s, filter .2s; }
.dm-knopf:hover { filter: brightness(1.08); }
.dm-knopf:active { transform: scale(.97); }
.dm-knopf svg { width: 1.25em; height: 1.25em; }
.dm-knopfzeile { display: flex; align-items: center; gap: 1em; margin: .9em 0 .4em !important; }

/* Leisten: unten am Handy, oben am Tablet - der aktive Punkt als zarte Pille */
.dm-nav.unten { display: flex; justify-content: space-around; padding: .55em .3em 1.1em; background: var(--flaeche); border-top: 1px solid var(--linie); transition: background-color .6s; }
.dm-nav.unten button { display: grid; justify-items: center; gap: .25em; min-width: 4.2em; font-size: .78em; color: var(--tinte-leise); }
.dm-nav.unten i { display: grid; place-items: center; width: 4.4em; height: 2.3em; border-radius: 1.2em; transition: background-color .25s; }
.dm-nav.unten button:hover i { background: var(--flaeche-leise); }
.dm-nav [aria-current] { color: var(--tinte); font-weight: 600; }
.dm-nav.unten [aria-current] i { background: var(--akzent-zart); color: var(--akzent); }
.dm-nav.oben { display: flex; align-items: center; gap: .7em; padding: .7em 1.2em; background: var(--flaeche); border-bottom: 1px solid var(--linie); transition: background-color .6s; }
.dm-siegel { width: 2.5em !important; height: 2.5em !important; stroke: none !important; }
.dm-haus { font: 600 1.35em/1 var(--serif); margin-right: .6em; white-space: nowrap; }
.dm-navliste { display: flex; gap: .1em; margin-right: auto; min-width: 0; }
.dm-nav.oben button { display: flex; align-items: center; gap: .45em; padding: .6em .8em; border-radius: 1.4em; color: var(--tinte-leise); transition: background-color .25s; }
.dm-nav.oben button:hover { background: var(--flaeche-leise); }
.dm-nav.oben [aria-current] { background: var(--akzent-zart); }
.dm-nav.oben [aria-current] svg { color: var(--akzent); }
.dm-leute { display: flex; gap: .4em; flex: none; }
@container (max-width: 899px) {
  .dm-haus { display: none; }
  .dm-nav.oben button:not([aria-current]) span { display: none; }
  .dm-nav.oben button { padding: .6em .7em; }
  .dm-leute .dm-profil:not(.ich) { display: none; }
}
.dm-leute .dm-profil { width: 2.3em; height: 2.3em; }
.dm-leute .ich { box-shadow: 0 0 0 2px var(--flaeche), 0 0 0 4px var(--akzent); }

/* Szenenband am Ende der Seite */
.dm-band { flex: none; height: 4.6em; margin-top: .6em; }
.tablet .dm-band { height: 6em; }
/* Eigene Seiten (Kochbuch, Rezept) haben in der App kein Szenenband */
.dm.ohne-band .dm-band { display: none; }

/* Start */
.dm-datum { font-weight: 600; font-size: .92em; color: var(--tinte-leise); padding-top: .9em; }
.dm-uhr { font: 600 3.9em/1.05 var(--anzeige); letter-spacing: -.02em; font-variant-numeric: lining-nums tabular-nums; }
.dm-gruss { font-size: 1.25em; margin-top: .2em !important; }
.dm-spruch { font-style: italic; color: var(--tinte-leise); font-size: .92em; margin-top: .25em !important; }
.dm-termin { display: flex; align-items: baseline; gap: 1em; padding: .75em 0; }
.dm-termin.vorbei { opacity: .5; }
.dm-zeit { width: 3.1em; flex: none; font-weight: 600; font-size: .92em; color: var(--tinte-leise); font-variant-numeric: tabular-nums; }
.dm-was { flex: 1; min-width: 0; font-weight: 500; font-size: 1.1em; }
.dm-wer { display: inline-flex; align-items: center; color: var(--tinte-leise); font-size: .92em; }
.dm-blick { margin-top: .9em !important; }
.dm-blick button { display: flex; gap: 1em; width: 100%; padding: .8em 0; border-radius: .4em; }
.dm-blick button:hover b { color: var(--akzent-text); }
.dm-blick svg { color: var(--tinte-leise); margin-top: .1em; }
.dm-blick span { display: grid; gap: .1em; }
.dm-blick small { font-weight: 600; font-size: .86em; color: var(--tinte-leise); }
.dm-blick b { font-weight: 500; font-size: 1.12em; transition: color .2s; }
.dm-blick em { font-style: normal; color: var(--tinte-leise); font-size: .95em; }
.dm-mieze { display: grid; grid-template-columns: 3.4em 1fr; gap: 1em; align-items: end; margin-top: .6em; padding: 1em 0 .4em; border-top: 1px solid var(--linie); }
.dm-mieze img { width: 3.4em; height: auto; }
.dm-mieze b { font: 600 1.35em/1 var(--serif); }
.dm-mieze b + span { margin-left: .45em; color: var(--tinte-leise); font-size: .92em; }
.dm-mieze small { color: var(--tinte-leise); font-size: .86em; }
.dm-balken { height: .3em; margin: .5em 0 .35em; border-radius: .15em; background: var(--flaeche-leise); overflow: hidden; }
.dm-balken i { display: block; height: 100%; border-radius: inherit; background: var(--gut); transition: width 1s cubic-bezier(.2, .7, .2, 1); }
.tablet .dm-start { display: grid; grid-template-columns: 1fr 1fr; column-gap: 2.4em; padding-top: 1.2em; }
.tablet .dm-s1, .tablet .dm-s4, .tablet .dm-s5 { grid-column: 1 / -1; }
.tablet .dm-s2 .dm-abschnitt, .tablet .dm-s3 .dm-abschnitt { margin-top: .6em; }
.tablet .dm-blick { margin-top: 0 !important; }
.dm-familie { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8em 2em; padding: .4em 0; }
@container (min-width: 900px) {
  .tablet .dm-start { grid-template-columns: 30fr 36fr 30fr; column-gap: 3em; }
  .tablet .dm-s1 { grid-column: auto; }
  .dm-familie { grid-template-columns: repeat(4, 1fr); }
}
.dm-familie li { display: flex; align-items: center; gap: .8em; }
.dm-familie b { font-weight: 500; font-size: 1.15em; margin-right: auto; }

/* Kalender */
.dm-leiste-oben { display: flex; align-items: center; justify-content: space-between; gap: .5em; padding: .2em 0 .5em; }
.dm-leiste-oben > b { font-size: 1.05em; }
.dm-blaettern { display: flex; align-items: center; gap: .1em; }
.dm-blaettern button:not(.dm-text) { display: grid; place-items: center; width: 2.6em; height: 2.6em; border-radius: 50%; }
.dm-blaettern button:disabled { opacity: .3; cursor: default; }
.dm-woche { touch-action: pan-y; }
.dm-tag { padding: .7em 0 .5em; border-top: 1px solid var(--linie); }
.dm-tag h4 { display: flex; align-items: baseline; gap: .5em; font: 600 1em/1.3 var(--sans); color: var(--tinte-leise); }
.dm-tag h4 span { font-weight: 400; font-size: .88em; }
.dm-tag h4 em { font-style: normal; font-size: .85em; color: var(--akzent-text); }
.dm-tag h4 i { margin-left: auto; font-style: normal; font-weight: 400; font-size: .88em; opacity: .7; }
.dm-tag.heute h4 b { color: var(--akzent-text); }
.dm-tag li { display: flex; align-items: center; padding: .38em 0; }
.dm-tag .dm-was { font-size: 1em; }
.dm-tag .aufg .dm-was { font-weight: 400; color: var(--tinte-leise); }
.dm-tag .dm-wer { font-size: .85em; }
.dm-tag .kurz { display: none; }
@container (min-width: 900px) {
  .tablet .dm-tag .kurz { display: inline; }
  .tablet .dm-tag .lang, .tablet .dm-tag .dm-wer { display: none; }
  .tablet .dm-woche { display: grid; grid-template-columns: repeat(7, 1fr); min-height: 78%; }
  .tablet .dm-tag { border-top: 0; border-left: 1px solid var(--linie); padding: .2em .7em; }
  .tablet .dm-tag:first-child { border-left: 0; padding-left: 0; }
  .tablet .dm-tag h4 { flex-wrap: wrap; padding-bottom: .5em; }
  .tablet .dm-tag.heute { background: linear-gradient(var(--akzent-zart), transparent 70%); }
  .tablet .dm-tag li { flex-wrap: wrap; align-items: baseline; }
  .tablet .dm-tag .dm-zeit { width: 100%; font-size: .82em; }
  .tablet .dm-tag .aufg .dm-zeit { display: none; }
}

/* Aufgaben */
.dm-konten { display: flex; gap: 1.6em; padding: .1em 0 .6em !important; color: var(--tinte-leise); }
.dm-konten li { display: flex; align-items: center; gap: .1em; }
.dm-konten .dm-muenzen { margin-left: .45em; }
.dm-konten .plus .dm-muenzen { animation: dm-plus .7s cubic-bezier(.2, .7, .2, 1); }
@keyframes dm-plus { 35% { transform: scale(1.35); } }
.dm-reiter { display: flex; gap: 1.6em; border-bottom: 1px solid var(--linie); margin: 0 -1.4em; padding: 0 1.4em; }
.tablet .dm-reiter { margin: 0; padding: 0; }
.dm-reiter button { position: relative; padding: .8em .1em; border-radius: .3em .3em 0 0; font-weight: 600; font-size: 1.05em; color: var(--tinte-leise); }
.dm-reiter button span { font-weight: 400; font-size: .85em; }
.dm-reiter [aria-selected="true"] { color: var(--tinte); }
.dm-reiter [aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--akzent); }
.dm-aufgabe { display: grid; grid-template-columns: 2.2em 1fr; gap: .8em; padding: .8em 0; transition: opacity .5s .5s; }
.dm-aufgabe > div { display: grid; gap: .12em; }
.dm-aufgabe b { font-weight: 500; font-size: 1.15em; transition: color .3s; }
.dm-aufgabe em { font-style: normal; color: var(--tinte-leise); }
.dm-aufgabe small { display: flex; align-items: center; gap: .8em; color: var(--tinte-leise); font-size: .9em; }
.dm-abhak { position: relative; display: block; width: 2.2em; height: 2.2em; border: .14em solid color-mix(in srgb, var(--tinte-leise) 55%, transparent) !important; border-radius: 50% !important; transition: background-color .25s, border-color .25s; flex: none; }
button.dm-abhak::before { content: ""; position: absolute; inset: -.5em; }
button.dm-abhak:hover, .dm-kauf button:hover .dm-abhak { border-color: var(--gut) !important; }
.dm-abhak svg { position: absolute; inset: 0; margin: auto; width: 64%; height: 64%; stroke: var(--grund); stroke-width: 3; stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset .32s .08s cubic-bezier(.2, .7, .2, 1); }
.fertig .dm-abhak { background: var(--gut); border-color: var(--gut) !important; }
.fertig .dm-abhak svg { stroke-dashoffset: 0; }
.eben .dm-abhak { animation: dm-huepf .45s cubic-bezier(.2, .7, .2, 1); }
@keyframes dm-huepf { 40% { transform: scale(1.2); } }
.dm-aufgabe.fertig b { color: var(--tinte-leise); text-decoration: line-through; text-decoration-color: color-mix(in srgb, currentColor 50%, transparent); }
.dm-aufgabe.eben { opacity: .35; }

/* Einkauf */
.dm-eingabe { display: flex; align-items: center; gap: .6em; margin: .2em 0 .4em; padding: 0 .6em 0 1em; background: var(--flaeche); border: 1px solid var(--linie-fest); border-radius: .75em; transition: border-color .2s, box-shadow .2s, background-color .6s; }
.dm-eingabe:focus-within { border-color: var(--akzent); box-shadow: 0 0 0 .2em var(--akzent-zart); }
.dm-eingabe svg { color: var(--tinte-leise); width: 1.3em; height: 1.3em; }
.dm .dm-eingabe input { flex: 1; min-width: 0; min-height: 3em; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; outline: none; color: var(--tinte); font: 400 max(16px, 1.05em)/1.2 var(--sans); }
/* Einkauf: Kacheln nach Gaengen, wie die App seit 0.8.4 */
.dm-kaufzahl { margin: .5em 0 0; }
.dm-waren { display: grid; grid-template-columns: repeat(auto-fill, minmax(5.6em, 1fr)); gap: .5em; padding: .3em 0 .2em; }
.dm-kachel { min-width: 0; }
.dm .dm-kachel button { display: grid; justify-items: center; align-content: start; gap: .2em; width: 100%; height: 100%; min-height: 6.6em; padding: .7em .3em .5em; border-radius: .8em; text-align: center; background: color-mix(in srgb, var(--ton) 13%, var(--flaeche)); transition: transform .18s, opacity .35s, background-color .6s; }
.nacht .dm .dm-kachel button, .dm.nacht .dm-kachel button { background: color-mix(in srgb, var(--ton) 22%, var(--flaeche)); }
.dm .dm-kachel button:hover { transform: translateY(-.12em); }
.dm .dm-kachel button:active { transform: scale(.96); }
.dm-kachel img { width: 2.7em; height: 2.7em; object-fit: contain; }
.dm-buchstabe { display: grid; place-items: center; height: 1.35em; font: 400 2em/1 var(--serif); font-style: normal; color: var(--ton); }
.dm-kachel b { max-width: 100%; font-weight: 600; line-height: 1.2; overflow-wrap: anywhere; hyphens: auto; }
.dm-kachel small { min-height: 1.25em; font-size: 1em; line-height: 1.25; color: var(--tinte-leise); }
.dm-kachel.blass button { opacity: .6; }
.dm-kachel.blass b { text-decoration: line-through; text-decoration-color: color-mix(in srgb, currentColor 50%, transparent); }
.dm-kachel.neu { animation: dm-kommt .4s both; }
.dm-kachel.eben button { opacity: .15; transform: scale(.9); }
.dm .dm-klapp { display: flex; align-items: baseline; gap: .45em; padding: .2em 0; font: inherit; }
.dm-klapp span { font-weight: 400; font-size: .85em; color: var(--tinte-leise); }
.dm-klapp svg { align-self: center; width: .9em; height: .9em; color: var(--tinte-leise); transition: transform .25s; }
.dm-klapp[aria-expanded="true"] svg { transform: rotate(180deg); }

/* Essen, Kochbuch, Rezept */
.dm-essen { display: grid; grid-template-columns: 7.2em 1fr; gap: .8em; padding: .85em 0; align-items: baseline; }
.dm-essen b { font-weight: 600; }
.dm-essen span { font-size: 1.08em; }
.dm-essen i { font-style: normal; color: var(--tinte-leise); opacity: .7; }
.dm-essen.heute b { color: var(--akzent-text); }
.blitz { animation: dm-blitz 2.2s ease-out; }
@keyframes dm-blitz { 0%, 35% { background: var(--akzent-zart); box-shadow: -.7em 0 0 var(--akzent-zart), .7em 0 0 var(--akzent-zart); } }
.dm-rezepte { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2em 1em; padding-top: .3em !important; }
.dm-rezepte button { display: grid; gap: .1em; width: 100%; }
.dm-rezepte b { font-weight: 600; margin-top: .5em; }
.dm-rezepte small { color: var(--tinte-leise); }
/* Der Buchdeckel ist ein echter Gegenstand - der darf ein Kasten sein */
.dm-deckel { display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: .8em; box-shadow: inset 0 0 0 .4em #ffffff14, inset 0 0 0 .46em #ffffff2e; transition: transform .3s cubic-bezier(.2, .7, .2, 1); }
.dm-rezepte button:hover .dm-deckel { transform: translateY(-.2em) scale(1.02); }
.dm-deckel i { font: 600 2.6em/1 var(--serif); font-style: normal; color: #fffffff0; }
/* Rezept wie in der App (RezeptAnsicht): EINE Spalte, hoechstens 720 px,
   oben der Deckel als flacher Streifen, darunter Titel, Zutaten, Zubereitung.
   Am breiten Tablet stehen Zutaten und Zubereitung nebeneinander - unter dem Streifen. */
.dm-rezept { max-width: 720px; margin-inline: auto; padding-bottom: 1.5em; }
.dm-deckel.gross { aspect-ratio: 16 / 6; max-height: 9.5em; width: 100%; border-radius: 1em; }
.dm-deckel.gross i { font-size: 4em; }
.dm-rezept > h3 { margin-top: .8em !important; }
.dm-zutaten li { padding: .55em 0; }
.dm-text-absatz { line-height: 1.5; }
@container (min-width: 760px) {
  .tablet .dm-rezept-teile { display: grid; grid-template-columns: 35fr 65fr; column-gap: 2.4em; }
}
.tablet .dm-rezepte { grid-template-columns: repeat(auto-fill, minmax(10em, 1fr)); gap: 1.6em; }

/* Schule */
.dm-wessen { display: flex; align-items: center; font-weight: 600; padding-bottom: .2em !important; }
.dm-schnitt { display: flex; align-items: center; justify-content: space-between; gap: 1em; padding: .2em 0 .8em; }
.dm-schnitt b { display: block; font: 600 2.5em/1.1 var(--anzeige); color: var(--gut-text); font-variant-numeric: lining-nums tabular-nums; }
.dm-schnitt small { color: var(--tinte-leise); font-size: .9em; }
.dm-fach { display: flex; align-items: center; justify-content: space-between; padding: .7em 0; }
.dm-fach b { display: block; font-weight: 600; }
.dm-fach small { color: var(--tinte-leise); word-spacing: .35em; }
.dm-fach small .arbeit { font-weight: 600; color: var(--tinte); }
.dm-note { font: 600 1.7em/1 var(--anzeige); font-variant-numeric: lining-nums tabular-nums; }
.dm-note.gut { color: var(--gut-text); }
.dm-plan { width: 100%; border-collapse: collapse; margin-top: .8em; font-size: .92em; }
.dm-plan th, .dm-plan td { padding: .75em .3em; border-top: 1px solid var(--linie); text-align: left; font-weight: 400; }
.dm-plan thead th { border-top: 0; color: var(--tinte-leise); font-weight: 600; font-size: .9em; padding-bottom: .5em; }
.dm-plan tbody th { color: var(--tinte-leise); width: 1.6em; }
.dm-plan .heute { background: var(--akzent-zart); }

/* Mehr */
.dm-kacheln { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6em; padding-top: .6em !important; }
.dm-kacheln button { display: grid; justify-items: center; gap: .6em; width: 100%; padding: 1.4em .4em; border-radius: 1em; transition: background-color .25s; }
.dm-kacheln button:hover { background: var(--flaeche-leise); }
.dm-kacheln svg { width: 2em; height: 2em; color: var(--akzent); }

/* Blatt von unten (ein Dialog darf ein Kasten sein) */
.dm-blatt { position: absolute; inset: 0; z-index: 8; display: flex; align-items: flex-end; justify-content: center; background: #0a182266; animation: dm-dunkelt .25s both; }
.dm-blatt[hidden] { display: none; }
.dm-blatt-innen { width: 100%; max-width: 34em; max-height: 88%; overflow-y: auto; padding: 1.5em 1.5em 1.2em; background: var(--flaeche); border-radius: 1.4em 1.4em 0 0; box-shadow: 0 -1em 3em #0003; animation: dm-blatt .34s cubic-bezier(.2, .7, .2, 1) both; }
.tablet .dm-blatt { align-items: center; }
.tablet .dm-blatt-innen { border-radius: 1.4em; }
@keyframes dm-dunkelt { from { background: #0a182200; } }
@keyframes dm-blatt { from { transform: translateY(40%); opacity: 0; } }
.dm-wahl button { display: grid; grid-template-columns: 7em 1fr; gap: .8em; width: 100%; padding: .8em .3em; }
.dm-wahl button:hover { background: var(--flaeche-leise); }
.dm-wahl b { font-weight: 600; }
.dm-wahl span { color: var(--tinte-leise); }
.dm-chips, .dm-ziffern { display: flex; flex-wrap: wrap; gap: .5em; margin-bottom: .6em; }
.dm-chips button { padding: .55em 1em; border-radius: 1.3em; background: var(--flaeche-leise); transition: background-color .2s, color .2s; }
.dm-ziffern button { width: 3em; height: 3em; border-radius: 50%; background: var(--flaeche-leise); text-align: center; font: 600 1.25em/1 var(--anzeige); transition: background-color .2s, color .2s, transform .2s; }
.dm-ziffern button:active { transform: scale(.94); }
.dm-chips [aria-pressed="true"], .dm-ziffern [aria-pressed="true"] { background: var(--akzent); color: var(--auf-akzent); }

/* Meldung unten und der vorfuehrende Finger */
.dm-toast { position: absolute; left: 50%; bottom: 7.2em; z-index: 9; max-width: 86%; padding: .7em 1.1em; border-radius: .8em; background: var(--tinte); color: var(--grund); font-size: .92em; text-align: center; opacity: 0; transform: translate(-50%, .8em); transition: opacity .3s, transform .3s; pointer-events: none; }
.tablet .dm-toast { bottom: 24%; }
.dm-toast.da { opacity: 1; transform: translate(-50%, 0); }
.dm-finger { position: absolute; left: -1.5em; top: -1.5em; z-index: 10; width: 3em; height: 3em; border-radius: 50%; background: color-mix(in srgb, var(--akzent) 26%, transparent); box-shadow: inset 0 0 0 .14em color-mix(in srgb, var(--akzent) 70%, transparent); opacity: 0; pointer-events: none; transform: translate(50cqw, 60cqw); transition: transform .75s cubic-bezier(.4, 0, .2, 1), opacity .3s; }
.dm-finger.da { opacity: 1; }
.dm-finger::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--akzent); opacity: 0; transform: scale(.4); transition: transform .26s, opacity .26s; }
.dm-finger.tippt::after { opacity: .45; transform: scale(.75); }

@media (prefers-reduced-motion: reduce) {
  .dm-finger { display: none; }
}
