/* Feed und Kalender wie in der Mac-App (FeedView.swift, KalenderView.swift, Seite.swift). Farben nur über die
   Variablen aus tokens.css (erzeugt aus design/tokens.json). */

/* ---------------------------------------------------------------- Seite: Kopf mit Linie, Inhalt scrollt darunter */
#inhalt:has(> .mk-seite) { display: flex; flex-direction: column; overflow: hidden; }
.mk-seite { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.mk-kopf { flex: none; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--linie); }
.mk-zeichen { flex: none; width: 32px; height: 32px; border-radius: 9px; background: var(--flaeche2); color: var(--akzent-text); display: grid; place-items: center; }
.mk-zeichen svg { width: 16px; height: 16px; stroke-width: 2; }
.mk-titel { flex: 1; min-width: 0; }
.mk-titel h1 { margin: 0; font-size: 18px; font-weight: 560; letter-spacing: -.3px; line-height: 1.2; }
.mk-titel .unter { font-size: 12.5px; font-weight: 460; color: var(--text3); margin-top: 2px; font-variant-numeric: tabular-nums; }
.mk-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior-y: contain; -webkit-overflow-scrolling: touch; }
.mk-knoepfe { flex: none; display: flex; align-items: center; gap: 6px; }
.mk-sym { width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center; color: var(--text2); flex: none; }
.mk-sym:hover:not(:disabled) { background: var(--flaeche2); color: var(--text); }
.mk-sym:disabled { opacity: .5; cursor: default; }
.mk-sym svg { width: 15px; height: 15px; }
.mk-sym.dreht svg { animation: mk-dreh .8s linear infinite; }
.mk-chip { font-size: 11.5px; font-weight: 540; color: var(--text2); padding: 4px 9px; border-radius: 999px; border: 1px solid var(--linie); }
.mk-chip.an { background: var(--flaeche2); border-color: transparent; color: var(--text); }
.mk-dreh { display: inline-block; flex: none; width: 11px; height: 11px; border-radius: 50%; border: 1.6px solid var(--text3); border-top-color: transparent; animation: mk-dreh .8s linear infinite; }
@keyframes mk-dreh { to { transform: rotate(360deg); } }
.mk-laedt { display: grid; place-items: center; padding: 60px 0; }
.mk-laedt .mk-dreh { width: 16px; height: 16px; }
.mk-hinweis { display: flex; align-items: flex-start; gap: 10px; margin-top: 16px; padding: 11px 14px; border-radius: 10px; background: var(--flaeche); border: 1px solid var(--linie); font-size: 12.5px; font-weight: 460; color: var(--text2); }
.mk-hinweis svg { width: 12px; height: 12px; color: var(--text3); flex: none; margin-top: 3px; }
.mk-leer { font-size: 12.5px; font-weight: 440; color: var(--text3); }
.mk-leer.gross { font-size: 13px; padding-top: 28px; }
.mk-leer.sp { padding: 0 22px 8px; }
.mk-leer.sp.oben { padding: 22px; }
.mk-leer.mitte { flex: 1; display: grid; place-items: center; text-align: center; padding: 40px; font-size: 13px; }
.versal.akzent { color: var(--akzent-text); }

/* Rechte Spalte: Kopf gleich hoch wie der Seitenkopf */
.mk-sp-kopf { height: 72px; display: flex; align-items: center; gap: 10px; padding: 0 22px; border-bottom: 1px solid var(--linie); }
.mk-sp-kopf > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mk-sp-kopf b { font-size: 19px; font-weight: 560; letter-spacing: -.3px; line-height: 1.2; }
.mk-sp-kopf span { font-size: 12.5px; font-weight: 460; color: var(--text3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.mk-sp { padding-bottom: 28px; }
.mk-abschnitt { display: flex; align-items: center; gap: 7px; padding: 22px 22px 12px; }
.mk-abschnitt i { width: 5px; height: 5px; border-radius: 50%; background: var(--akzent-text); }
.mk-abschnitt span { font-size: 9.5px; font-weight: 640; letter-spacing: 1.1px; text-transform: uppercase; font-stretch: 120%; color: var(--text3); }
.mk-abschnitt em { margin-left: auto; font-style: normal; font-size: 11px; font-weight: 560; color: var(--text3); font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- Schiene (SchienenZeile): Uhr, Knoten, Inhalt */
.mk-schiene { --k: 4px; display: grid; grid-template-columns: 58px 22px minmax(0, 1fr); }
.mk-schiene.fd { --k: 10px; }
.mk-schiene .s-uhr { text-align: right; padding: calc(var(--k) - 1px) 8px 0 0; font-size: 10.5px; font-weight: 560; color: var(--text3); font-variant-numeric: tabular-nums; }
.mk-schiene .s-knoten { position: relative; }
.mk-schiene .s-knoten::before, .mk-schiene .s-knoten::after { content: ""; position: absolute; left: 10.5px; width: 1px; background: var(--linie); }
.mk-schiene .s-knoten::before { top: 0; height: calc(var(--k) + 5px); }
.mk-schiene .s-knoten::after { top: calc(var(--k) + 5px); bottom: 0; }
.mk-schiene.erste .s-knoten::before, .mk-schiene.letzte .s-knoten::after { display: none; }
.mk-schiene .s-inhalt { min-width: 0; padding: 0 20px 20px 10px; }

/* Feed */
.fd-inhalt { padding: 0 16px 36px; }
.fd-tag { display: flex; align-items: baseline; gap: 10px; padding-top: 30px; }
.fd-tag b { font-size: 17px; font-weight: 600; letter-spacing: -.3px; }
.fd-tag span { font-size: 12.5px; font-weight: 460; color: var(--text3); white-space: nowrap; }
.fd-tag em { margin-left: auto; font-style: normal; font-size: 11.5px; font-weight: 520; color: var(--text3); font-variant-numeric: tabular-nums; text-align: right; }
.fd-liste { padding-top: 14px; }
.mk-schiene.fd .s-knoten i { position: absolute; top: 0; left: 1px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; z-index: 1;
  color: var(--f); background: color-mix(in srgb, var(--f) 16%, var(--grund)); }
.mk-schiene.fd .s-knoten svg { width: 11px; height: 11px; stroke-width: 2.4; }
.fd-karte { display: flex; flex-direction: column; gap: 3px; width: 100%; text-align: left; margin-top: -8px; padding: 8px 10px; border-radius: 10px; }
.fd-karte.klick { cursor: pointer; }
.fd-karte.klick:hover { background: var(--flaeche); }
.fd-art { font-size: 9px; font-weight: 680; letter-spacing: 1.2px; text-transform: uppercase; font-stretch: 125%; color: var(--f); }
.fd-titel { font-size: 14px; font-weight: 560; color: var(--text); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fd-zeile { font-size: 12px; font-weight: 460; color: var(--text3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fd-zeile.zwei { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.fd-punkte { list-style: none; margin: 3px 0 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.fd-punkte li { position: relative; padding-left: 11px; font-size: 13px; font-weight: 460; color: var(--text2); line-height: 1.4; }
.fd-punkte li::before { content: ""; position: absolute; left: 0; top: .55em; width: 3.5px; height: 3.5px; border-radius: 50%; background: var(--text3); }
.fd-block { padding-top: 20px; }
.fd-block .versal { font-size: 9.5px; margin-bottom: 10px; }
.fd-block-karte { background: var(--flaeche); border: 1px solid var(--linie); border-radius: 12px; padding: 12px 0 0; }
.fd-block-karte .mk-leer { padding: 0 16px 12px; }

/* Terminzeile (TerminZeile) */
.mk-schiene.tz .s-knoten i { position: absolute; top: calc(var(--k) + 1px); left: 7px; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--text2); background: var(--grund); z-index: 1; }
.mk-schiene.tz.vorbei .s-knoten i { border-color: color-mix(in srgb, var(--text3) 50%, transparent); }
.mk-schiene.tz.laeuft .s-knoten i { left: 6.5px; top: calc(var(--k) + .5px); width: 9px; height: 9px; border: 0; background: var(--akzent); box-shadow: 0 0 0 2px var(--grund); }
.mk-schiene.tz.laeuft .s-uhr { color: var(--akzent-text); }
.mk-schiene.tz .s-inhalt { display: flex; flex-direction: column; gap: 3px; }
.tz-titel { font-size: 13px; font-weight: 560; color: var(--text); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tz.vorbei .tz-titel { color: var(--text3); }
.tz-wer { font-size: 11.5px; font-weight: 460; color: var(--text3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tz-status { padding-top: 2px; }
.mk-vorb { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 580; color: var(--akzent-text); padding: 3.5px 8px; border-radius: 999px; background: color-mix(in srgb, var(--akzent) 12%, transparent); }
.mk-vorb:hover { background: color-mix(in srgb, var(--akzent) 18%, transparent); }
.mk-vorb svg { width: 11px; height: 11px; stroke-width: 2; }
.mk-still { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 460; color: var(--text3); }
.mk-still .mk-dreh { width: 9px; height: 9px; border-width: 1.4px; }

/* Vorbereitung im Blatt (VorbereitungsBlatt) */
.mk-vblatt { display: flex; flex-direction: column; gap: 10px; padding-top: 4px; }
.mk-vblatt .versal { font-size: 9.5px; }
.mk-vblatt h2 { margin: 0; font-size: 18px; font-weight: 560; letter-spacing: -.3px; }
.mk-vblatt .unter { font-size: 12px; font-weight: 480; color: var(--text3); }
.mk-vblatt hr { border: 0; border-top: 1px solid var(--linie); margin: 4px 0; width: 100%; }
.mk-vblatt .md { font-size: 13.5px; line-height: 1.5; }

/* ---------------------------------------------------------------- Kalender: Wochenraster */
.kl-raster { flex: 1; min-height: 0; display: flex; flex-direction: column; position: relative; }
.kl-uhrspalte { width: 48px; flex: none; }
.kl-kopfzeile { flex: none; display: flex; padding: 10px 16px 10px 0; }
.kl-tagkopf { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 6px; }
.kl-tagkopf span { font-size: 10px; font-weight: 640; letter-spacing: 1px; text-transform: uppercase; font-stretch: 120%; color: var(--text3); }
.kl-tagkopf b { font-size: 15px; font-weight: 520; min-width: 26px; height: 26px; border-radius: 13px; display: grid; place-items: center; font-variant-numeric: tabular-nums; }
.kl-tagkopf.heute span { color: var(--akzent-text); }
.kl-tagkopf.heute b { background: var(--akzent); color: var(--auf-akzent); font-weight: 640; }
.kl-ganztags { flex: none; display: flex; align-items: flex-start; padding: 0 16px 8px 0; }
.kl-ganztags .kl-uhrspalte { font-size: 9.5px; font-weight: 520; color: var(--text3); text-align: center; padding-top: 3px; }
.kl-ganztags > div { flex: 1; min-width: 0; padding: 0 2px; display: flex; flex-direction: column; gap: 3px; }
.kl-ganz { width: 100%; text-align: left; font-size: 11px; font-weight: 540; color: var(--text2); background: var(--flaeche2); border-radius: 5px; padding: 3px 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kl-ganz:hover { color: var(--text); }
.kl-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior-y: contain; border-top: 1px solid var(--linie); padding: 10px 16px 24px 0; }
.kl-gitter { position: relative; }
.kl-uhren span { position: absolute; left: 0; width: 40px; text-align: right; transform: translateY(-6px); font-size: 10px; font-weight: 520; color: var(--text3); font-variant-numeric: tabular-nums; }
.kl-linien { position: absolute; inset: 0 0 0 48px; pointer-events: none; }
.kl-linien i { position: absolute; left: 0; right: 0; height: 1px; background: var(--linie); }
.kl-tage { position: absolute; inset: 0 0 0 48px; display: flex; }
.kl-tag { flex: 1; min-width: 0; position: relative; border-left: 1px solid var(--linie); }
.kl-tag.heute { background: color-mix(in srgb, var(--akzent) 3.5%, transparent); }
.kl-platz { position: absolute; }
.kl-block { width: 100%; height: 100%; display: flex; flex-direction: column; gap: 1px; text-align: left; overflow: hidden; position: relative;
  padding: 4px 6px 4px 9px; border-radius: 6px; background: color-mix(in srgb, var(--akzent) 10%, transparent); }
.kl-block::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--akzent); }
.kl-block:hover { background: color-mix(in srgb, var(--akzent) 16%, transparent); }
.kl-block.leise, .kl-block.abgesagt { background: var(--flaeche); }
.kl-block.leise::before, .kl-block.abgesagt::before { background: color-mix(in srgb, var(--text3) 50%, transparent); }
.kl-block.leise { box-shadow: inset 0 0 0 1px var(--linie); }
.kl-block.an { background: color-mix(in srgb, var(--akzent) 22%, transparent); box-shadow: inset 0 0 0 1px var(--akzent); }
.kl-block.vorbei { opacity: .55; }
.kb-zeile { display: flex; align-items: center; gap: 4px; min-width: 0; }
.kb-uhr { flex: none; font-size: 10px; font-weight: 560; color: var(--text3); font-variant-numeric: tabular-nums; }
.kb-platz { flex: 1; }
.kb-doc { flex: none; display: grid; color: var(--akzent-text); }
.kb-doc svg { width: 10px; height: 10px; stroke-width: 2.2; }
.kb-zeile .mk-dreh { width: 8px; height: 8px; border-width: 1.3px; }
.kb-titel { font-weight: 580; color: var(--text); line-height: 1.25; overflow: hidden; }
.kb-titel.klein { font-size: 11px; white-space: nowrap; text-overflow: ellipsis; min-width: 0; }
.kb-titel.gross { font-size: 11.5px; display: -webkit-box; -webkit-line-clamp: var(--n); -webkit-box-orient: vertical; }
.kb-titel.ab { text-decoration: line-through; color: var(--text3); }
.kb-wer { font-size: 10.5px; font-weight: 460; color: var(--text3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kl-jetzt { position: absolute; left: -4px; right: 0; height: 7px; pointer-events: none; z-index: 2; }
.kl-jetzt i { position: absolute; left: 0; top: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--signal); }
.kl-jetzt::after { content: ""; position: absolute; left: 6px; right: 0; top: 2.5px; height: 2px; background: var(--signal); }
.kl-laedt { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.kl-laedt .mk-dreh { width: 16px; height: 16px; }

/* Handy: Tagesleiste über dem Tagesraster */
.kl-tagesleiste { flex: none; display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; padding: 8px 8px; border-bottom: 1px solid var(--linie); }
.kl-tagesleiste button { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0 5px; border-radius: 10px; }
.kl-tagesleiste button.an { background: var(--flaeche2); }
.kl-tagesleiste span { font-size: 9.5px; font-weight: 640; letter-spacing: .8px; text-transform: uppercase; font-stretch: 120%; color: var(--text3); }
.kl-tagesleiste b { font-size: 15px; font-weight: 540; width: 28px; height: 28px; border-radius: 14px; display: grid; place-items: center; font-variant-numeric: tabular-nums; }
.kl-tagesleiste .heute span { color: var(--akzent-text); }
.kl-tagesleiste .heute b { background: var(--akzent); color: var(--auf-akzent); font-weight: 640; }
.kl-tagesleiste em { display: flex; gap: 2px; height: 4px; }
.kl-tagesleiste em i { width: 4px; height: 4px; border-radius: 50%; background: var(--text3); }
.kl-seite.mobil .kl-ganztags { padding: 8px 12px 8px 0; }
.kl-seite.mobil .kl-scroll { border-top: 0; padding-right: 12px; }
.kl-seite.mobil .kl-tagesleiste + .kl-raster .kl-ganztags + .kl-scroll { border-top: 1px solid var(--linie); }

/* Rechte Spalte: Als Nächstes */
.kl-naechste { padding-top: 8px; }
.kl-n { display: flex; align-items: flex-start; gap: 12px; width: 100%; text-align: left; padding: 10px 22px; }
.kl-n:hover { background: color-mix(in srgb, var(--flaeche2) 60%, transparent); }
.kl-n-zeit { width: 78px; flex: none; font-size: 10.5px; font-weight: 560; color: var(--text3); font-variant-numeric: tabular-nums; padding-top: 2px; }
.kl-n-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.kl-n-text b { font-size: 13px; font-weight: 560; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kl-marke { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 500; color: var(--text3); }
.kl-marke.akz { color: var(--akzent-text); }
.kl-marke svg { width: 11px; height: 11px; stroke-width: 2; }

/* Termin-Detail (TerminDetail), in der Spalte und im Blatt */
.td { display: flex; flex-direction: column; gap: 14px; padding: 22px; }
.kl-blatt .td { padding: 4px 0 0; }
.td-kopf { display: flex; flex-direction: column; gap: 6px; }
.td-kopf h2 { margin: 0; font-size: 17px; font-weight: 580; letter-spacing: -.2px; line-height: 1.25; }
.td-kopf h2.ab { text-decoration: line-through; }
.td-zeit { font-size: 12px; font-weight: 500; color: var(--text3); font-variant-numeric: tabular-nums; }
.td-zeile { display: flex; align-items: flex-start; gap: 8px; }
.td-zeile svg { width: 13px; height: 13px; flex: none; color: var(--text3); margin: 2px 1.5px 0; }
.td-zeile span { font-size: 12.5px; font-weight: 480; color: var(--text2); user-select: text; }
.td-linie { border: 0; border-top: 1px solid var(--linie); margin: 2px 0; width: 100%; }
.td-vorb { display: flex; flex-direction: column; gap: 10px; }
.td-vorb-kopf { display: flex; align-items: center; justify-content: space-between; min-height: 28px; }
.td-vorb-kopf .versal { font-size: 9.5px; }
.td-vorb .md { font-size: 13px; line-height: 1.5; user-select: text; }
.td-vorb .md h3, .mk-vblatt .md h3 { font-size: 13.5px; font-weight: 640; margin: 10px 0 3px; }
.td-laeuft { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 460; color: var(--text2); }
.td-laeuft .mk-dreh { width: 13px; height: 13px; }
.td-still { font-size: 12.5px; font-weight: 460; color: var(--text3); }
.td-start { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.td-jetzt { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: var(--akzent); color: var(--auf-akzent); font-size: 12.5px; font-weight: 600; }
.td-jetzt svg { width: 12px; height: 12px; stroke-width: 2; }
.td-klein { font-size: 11px; font-weight: 460; color: var(--text3); }
.td-schalter { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px; margin-top: 6px; border-radius: 12px; background: var(--flaeche); border: 1px solid var(--linie); }
.td-schalter.schaltet > :not(.td-menue) { opacity: .6; }
.td-glocke { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; color: var(--akzent-text); background: color-mix(in srgb, var(--akzent) 14%, transparent); }
.td-schalter.aus .td-glocke { color: var(--text3); background: var(--flaeche2); }
.td-glocke svg { width: 14px; height: 14px; stroke-width: 2; }
.td-schalter-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.td-schalter-text b { font-size: 13px; font-weight: 580; }
.td-schalter-text span { font-size: 11.5px; font-weight: 460; color: var(--text3); }
.td-ein, .td-aus { flex: none; font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 999px; }
.td-ein { color: var(--akzent-text); background: color-mix(in srgb, var(--akzent) 12%, transparent); }
.td-aus { color: var(--text2); background: var(--flaeche2); display: inline-flex; align-items: center; gap: 5px; }
.td-aus svg { width: 10px; height: 10px; stroke-width: 2.6; transition: transform .15s; }
.td-aus.offen svg { transform: rotate(180deg); }
.td-ein:disabled, .td-aus:disabled { cursor: default; }
.td-menue { position: absolute; right: 0; top: calc(100% + 6px); z-index: 5; width: min(330px, calc(100vw - 48px)); display: flex; flex-direction: column; gap: 2px;
  padding: 8px; border-radius: 12px; background: var(--grund); border: 1px solid var(--linie); box-shadow: 0 16px 40px var(--schatten-karte); animation: hinweis-rein .15s ease-out; }
.td-menue > .versal { font-size: 9px; padding: 4px 10px 6px; }
.td-m { display: flex; align-items: flex-start; gap: 10px; width: 100%; text-align: left; padding: 8px 10px; border-radius: 8px; }
.td-m:hover { background: var(--flaeche2); }
.td-m > svg { width: 13px; height: 13px; flex: none; color: var(--text2); margin: 2px 2.5px 0; }
.td-m > span { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.td-m b, .td-wort-los { font-size: 13px; font-weight: 560; color: var(--text); text-align: left; }
.td-wort-los:disabled { color: var(--text3); cursor: default; }
.td-m em { font-style: normal; font-size: 11.5px; font-weight: 460; color: var(--text3); }
.td-wort { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.td-wort input { width: 120px; padding: 3px 7px; border-radius: 6px; border: 1px solid var(--linie); background: transparent; font-size: 12px; font-weight: 560; outline: none; }
.td-wort input:focus { border-color: var(--akzent-text); }

/* Handy: Titel und Knöpfe in einer Zeile, die leise Zeile darunter über die ganze Breite */
@media (max-width: 899px) {
  .mk-kopf { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "t k" "u u"; align-items: center; gap: 2px 10px; padding: 12px 16px 10px; }
  .mk-zeichen { display: none; }
  .mk-titel { display: contents; }
  .mk-titel h1 { grid-area: t; font-size: 20px; }
  .mk-titel .unter { grid-area: u; margin-top: 0; }
  .mk-knoepfe { grid-area: k; gap: 4px; }
  .mk-sym { width: 34px; height: 34px; }
  .mk-chip { padding: 6px 11px; font-size: 12.5px; }
}

/* ---------------------------------------------------------------- Desktop: Maße wie in der Mac-App */
@media (min-width: 900px) {
  .mk-kopf { height: var(--m-kopf-web); padding: 0 var(--m-kopf-x); gap: 13px; }
  .mk-zeichen { width: 36px; height: 36px; border-radius: 10px; }
  .mk-titel h1 { font-size: var(--s-seiten-titel-groesse); font-weight: var(--s-seiten-titel-gewicht); letter-spacing: var(--s-seiten-titel-laufweite); }
  .mk-titel .unter { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mk-sp-kopf { height: var(--m-kopf-web); }
  .fd-inhalt { max-width: 900px; margin: 0 auto; padding: 0 40px 48px; }
  .fd-tag { padding-top: 36px; }
  .fd-block { padding-top: 24px; }
}

/* Im Blatt schwebt „Schließen“ rechts oben; Blockfluss statt Flex, damit Titel und Text daneben die volle Breite nutzen */
.kl-blatt .td, .mk-vblatt { display: block; }
.kl-blatt .td > * + * { margin-top: 14px; }
.kl-blatt .td-kopf > * + *, .mk-vblatt > * + * { margin-top: 8px; }
.kl-blatt .td-kopf { display: block; }
