/* Gestaltung angelehnt an Apples Regeln: Inhalt vor Dekor, eine Akzentfarbe, gruppierte Listen, beschriftete Aktionen. */
:root {
  --bg: #111113; --seite: #18181b; --flaeche: #1c1c1e; --flaeche2: #2c2c2e; --linie: #333336; --text: #f5f5f7; --leise: #98989f;
  --akzent: #0a84ff; --akzent-text: #fff; --gut: #30d158; --warn: #ff9f0a; --rot: #ff453a; --schatten: 0 24px 70px #000a;
  --radius: 12px; color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root { --bg: #f2f2f7; --seite: #e9e9ef; --flaeche: #fff; --flaeche2: #ececf1; --linie: #dcdce1; --text: #1d1d1f; --leise: #6e6e73;
    --akzent: #007aff; --gut: #248a3d; --warn: #b25000; --rot: #d70015; --schatten: 0 24px 70px #0003; color-scheme: light; }
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100vh; }
body { background: var(--bg); color: var(--text); font: 15px/1.45 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  display: grid; grid-template-columns: 236px 1fr; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--akzent); outline-offset: 2px; }
h1 { font-size: 32px; font-weight: 700; letter-spacing: -.022em; margin: 0; line-height: 1.15; }
h2 { font-size: 19px; font-weight: 650; letter-spacing: -.01em; margin: 30px 2px 10px; display: flex; align-items: baseline; gap: 8px; }
h2 .zahl { font-weight: 400; color: var(--leise); font-size: 15px; }
h2 .aktion { margin-left: auto; font-size: 14px; font-weight: 400; color: var(--akzent); }
h3 { margin: 0 0 4px; font-size: 16px; font-weight: 650; }
.leise { color: var(--leise); }
.fehler { color: var(--rot); min-height: 1.3em; margin: 0; font-size: 14px; }
.verweis { color: var(--akzent); }
.verweis:hover { text-decoration: underline; }
[hidden] { display: none !important; }

/* Seitenleiste */
#nav { background: var(--seite); border-right: 1px solid var(--linie); padding: 20px 10px 14px; display: flex; flex-direction: column; gap: 1px; position: sticky; top: 0; height: 100vh; align-self: start; overflow-y: auto; box-sizing: border-box; }
.marke { font-weight: 700; font-size: 20px; letter-spacing: -.02em; padding: 2px 12px 16px; }
.nav-titel { font-size: 12px; font-weight: 600; color: var(--leise); padding: 18px 12px 5px; }
#nav a { display: flex; align-items: center; gap: 10px; padding: 7px 12px; border-radius: 8px; font-weight: 450; }
#nav a:hover { background: color-mix(in srgb, var(--text) 6%, transparent); }
#nav a.an { background: color-mix(in srgb, var(--text) 11%, transparent); font-weight: 600; }
#nav svg { width: 19px; height: 19px; fill: none; stroke: var(--akzent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
#nav b { margin-left: auto; font-size: 13px; font-weight: 400; color: var(--leise); }
#nav .unten { margin-top: auto; }
#nav a { flex: none; }
#nav a:focus-visible { outline-offset: -2px; }
.punkt { width: 8px; height: 8px; border-radius: 50%; background: var(--warn); margin-left: auto; flex: none; }
.nur-schmal { display: none !important; }

main { padding: 38px clamp(18px, 4vw, 52px) 90px; max-width: 1160px; width: 100%; min-width: 0; }
.kopf { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.kopf .unter { color: var(--leise); margin-top: 5px; max-width: 62ch; }
.kopf .rechts { margin-left: auto; display: flex; gap: 8px; align-items: center; }

/* Knöpfe: gefüllt = Hauptaktion, getönt = Nebenaktion, schlicht = Rückzug */
.knopf { border-radius: 9px; padding: 8px 15px; font-weight: 500; background: color-mix(in srgb, var(--akzent) 15%, transparent); color: var(--akzent); white-space: nowrap; }
.knopf:hover { background: color-mix(in srgb, var(--akzent) 23%, transparent); }
.knopf.haupt { background: var(--akzent); color: var(--akzent-text); font-weight: 600; }
.knopf.haupt:hover { filter: brightness(1.1); }
.knopf.still { background: none; color: var(--leise); }
.knopf.still:hover { color: var(--text); background: color-mix(in srgb, var(--text) 7%, transparent); }
.knopf.gefahr { background: color-mix(in srgb, var(--rot) 14%, transparent); color: var(--rot); }
.klein { font-size: 13px; border-radius: 7px; padding: 4px 10px; background: color-mix(in srgb, var(--text) 8%, transparent); color: var(--text); white-space: nowrap; }
.klein:hover { background: color-mix(in srgb, var(--text) 14%, transparent); }
.klein.blau { background: color-mix(in srgb, var(--akzent) 15%, transparent); color: var(--akzent); }
.klein.gefahr:hover { color: var(--rot); }
.teiler { display: inline-flex; background: color-mix(in srgb, var(--text) 8%, transparent); border-radius: 9px; padding: 2px; }
.teiler button { padding: 5px 12px; border-radius: 7px; font-size: 14px; min-width: 34px; }
.teiler button:hover { background: color-mix(in srgb, var(--text) 8%, transparent); }
.teiler button.an { background: var(--flaeche); box-shadow: 0 1px 3px #0003; font-weight: 600; }
@media (prefers-color-scheme: dark) { .teiler button.an { background: #636366; } }
.pillen { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.pille { border-radius: 99px; padding: 5px 13px; font-size: 14px; background: color-mix(in srgb, var(--text) 8%, transparent); white-space: nowrap; }
.pille:hover { background: color-mix(in srgb, var(--text) 14%, transparent); }
.pille.an { background: var(--akzent); color: var(--akzent-text); font-weight: 600; }
.pille i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.pille.aus { opacity: .45; text-decoration: line-through; }
.pille small { opacity: .7; margin-left: 5px; font-size: 13px; }

/* Eingabe */
.erfassen { display: flex; align-items: center; gap: 10px; background: var(--flaeche); border-radius: var(--radius); padding: 2px 8px 2px 14px; box-shadow: inset 0 0 0 1px var(--linie); transition: box-shadow .15s; }
.erfassen::before { content: "+"; color: var(--akzent); font-size: 22px; font-weight: 300; line-height: 1; }
.erfassen:focus-within { box-shadow: inset 0 0 0 2px var(--akzent); }
.erfassen input { flex: 1; background: none; border: 0; outline: 0; padding: 12px 0; font-size: 16px; min-width: 0; }
.erfassen input::placeholder { color: var(--leise); }
.erfassen kbd { font: 12px inherit; color: var(--leise); background: color-mix(in srgb, var(--text) 8%, transparent); border-radius: 5px; padding: 2px 7px; }
.tipp { font-size: 13px; color: var(--leise); margin: 7px 2px 0; }

/* Gruppierte Listen */
.spalten { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(290px, 1fr); gap: 30px; align-items: start; }
.liste, .karte { background: var(--flaeche); border-radius: var(--radius); }
.liste { display: flex; flex-direction: column; overflow: hidden; }
.karte { padding: 16px; }
.zeile { display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 14px; position: relative; min-height: 46px; transition: opacity .3s, transform .3s, background .12s; }
.zeile + .zeile::before { content: ""; position: absolute; top: 0; left: 48px; right: 0; border-top: 1px solid var(--linie); }
.zeile.ohne-haken + .zeile.ohne-haken::before { left: 14px; }
.zeile:hover { background: color-mix(in srgb, var(--text) 4%, var(--flaeche)); }
.haken { width: 22px; height: 22px; border-radius: 50%; border: 1.6px solid color-mix(in srgb, var(--leise) 75%, transparent); flex: none; display: grid; place-items: center; transition: background .18s, border-color .18s, transform .18s; }
.haken:hover { border-color: var(--akzent); background: color-mix(in srgb, var(--akzent) 16%, transparent); }
.haken.zu { background: var(--akzent); border-color: var(--akzent); transform: scale(1.08); }
.haken.zu::after { content: ""; width: 9px; height: 5px; border: solid #fff; border-width: 0 0 2px 2px; transform: rotate(-45deg) translate(1px, -1px); }
.zeile .inhalt { flex: 1; min-width: 0; cursor: pointer; }
.zeile .titel { overflow-wrap: anywhere; }
.zeile.erledigt .titel, .zeile.geht .titel { color: var(--leise); text-decoration: line-through; }
.zeile.geht { opacity: .3; transform: translateX(8px); }
.zeile .meta { font-size: 13px; color: var(--leise); display: flex; gap: 4px 12px; flex-wrap: wrap; margin-top: 1px; }
.zeile .meta i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 5px; }
.zeile .meta .spaet { color: var(--rot); }
.zeile.wichtig .titel::before { content: "!"; color: var(--rot); font-weight: 700; margin-right: 6px; }
.zeile .tun { display: flex; gap: 6px; align-items: center; flex: none; }
.zeile .tun select { background: color-mix(in srgb, var(--akzent) 15%, transparent); color: var(--akzent); border: 0; border-radius: 7px; padding: 5px 8px; font-size: 13px; max-width: 150px; }
.stern { font-size: 18px; color: color-mix(in srgb, var(--leise) 70%, transparent); width: 30px; height: 30px; border-radius: 8px; line-height: 1; }
.stern:hover { color: var(--warn); }
.stern.an { color: var(--warn); }
.pfeil { color: color-mix(in srgb, var(--leise) 60%, transparent); font-size: 18px; flex: none; line-height: 1; }
.leer { color: var(--leise); padding: 18px 16px; background: var(--flaeche); border-radius: var(--radius); }
details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
details > summary h2::before { content: "›"; display: inline-block; transition: transform .15s; color: var(--leise); font-weight: 400; }
details[open] > summary h2::before { transform: rotate(90deg); }
.hinweis { font-size: 14px; background: color-mix(in srgb, var(--warn) 13%, var(--flaeche)); border-radius: var(--radius); padding: 11px 14px; margin-bottom: 14px; }
.hinweis.neutral { background: var(--flaeche); color: var(--leise); }

/* Heute: die eine Aufgabe */
.held { border-radius: 16px; padding: 20px 22px; margin-bottom: 14px; background: var(--flaeche); }
.held-kopf { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; color: var(--akzent); }
.held.ruhig .held-kopf { color: var(--leise); }
.held-titel { font-size: 24px; font-weight: 700; letter-spacing: -.018em; line-height: 1.22; margin-top: 6px; overflow-wrap: anywhere; }
.held:not(.ruhig) .held-titel { cursor: pointer; }
.held.ruhig .held-titel { font-size: 19px; font-weight: 650; }
.held-meta { color: var(--leise); margin-top: 4px; }
.held-tun { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.held .knopf.haupt { padding-inline: 24px; }
.stand { margin-left: auto; display: flex; align-items: center; gap: 8px; color: var(--leise); font-weight: 400; }
.punkte { display: flex; gap: 5px; }
.punkte i { width: 9px; height: 9px; border-radius: 50%; background: color-mix(in srgb, var(--text) 16%, transparent); }
.punkte i.voll { background: var(--gut); }

/* Erste Schritte */
.schritte { padding: 6px 0 4px; margin-top: 22px; }
.schritte .oben { display: flex; align-items: baseline; gap: 10px; padding: 10px 16px 6px; }
.schritte .oben span { color: var(--leise); font-size: 13px; }
.schritte .oben button { margin-left: auto; color: var(--leise); font-size: 13px; }
.schritt { display: flex; gap: 12px; align-items: center; padding: 9px 16px; }
.schritt:hover { background: color-mix(in srgb, var(--text) 4%, transparent); }
.schritt .nr { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 600; flex: none; background: color-mix(in srgb, var(--akzent) 16%, transparent); color: var(--akzent); }
.schritt.fertig .nr { background: var(--gut); color: #fff; }
.schritt.fertig b { color: var(--leise); font-weight: 400; text-decoration: line-through; }
.schritt div { flex: 1; min-width: 0; }
.schritt b { display: block; font-weight: 600; }
.schritt small { color: var(--leise); font-size: 13px; }

/* Tagesplan und Woche */
.plan { position: relative; margin-top: 4px; }
.plan .stunde { height: 46px; border-top: 1px solid var(--linie); font-size: 11.5px; color: var(--leise); padding: 3px 0 0 2px; }
.termin { position: absolute; left: 44px; right: 4px; border-radius: 6px; background: color-mix(in srgb, var(--akzent) 22%, var(--flaeche)); border-left: 3px solid var(--akzent);
  padding: 2px 8px; font-size: 13px; overflow: hidden; line-height: 1.3; text-align: left; display: block; }
.termin b { font-weight: 600; display: block; overflow: hidden; text-overflow: ellipsis; }
.termin small { color: var(--leise); display: block; font-size: 11.5px; }
.termin.aufgabe { background: color-mix(in srgb, var(--gut) 18%, var(--flaeche)); border-left-color: var(--gut); }
.jetzt { position: absolute; left: 38px; right: 0; height: 2px; background: var(--rot); border-radius: 2px; pointer-events: none; z-index: 2; }
.jetzt::before { content: ""; position: absolute; left: -4px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--rot); }
.plan .schatten { position: absolute; left: 44px; right: 4px; border-radius: 6px; border: 1.5px dashed var(--akzent); pointer-events: none; font-size: 12px; padding: 2px 8px; color: var(--akzent); }
.ganztags { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
.ganztags div { font-size: 13px; padding: 4px 10px; border-radius: 6px; background: color-mix(in srgb, var(--akzent) 16%, transparent); }
.woche { background: var(--flaeche); border-radius: var(--radius); overflow: hidden; }
.wkopf, .wganz, .wkoerper { display: grid; grid-template-columns: 46px repeat(7, minmax(0, 1fr)); }
.wkopf > div { padding: 10px 6px 8px; text-align: center; font-size: 13px; color: var(--leise); }
.wkopf b { display: inline-grid; place-items: center; min-width: 28px; height: 28px; border-radius: 50%; font-size: 16px; font-weight: 600; color: var(--text); margin-left: 3px; }
.wkopf .heute { color: var(--akzent); }
.wkopf .heute b { background: var(--akzent); color: #fff; }
.wganz { border-top: 1px solid var(--linie); }
.wganz > div { padding: 4px 3px; min-height: 30px; display: flex; flex-direction: column; gap: 3px; border-left: 1px solid var(--linie); min-width: 0; }
.wganz > div:first-child { border-left: 0; font-size: 10.5px; color: var(--leise); padding: 7px 4px; }
.wchip { font-size: 12px; padding: 2px 6px; border-radius: 5px; background: color-mix(in srgb, var(--akzent) 20%, transparent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left; }
.wchip.aufgabe { background: none; box-shadow: inset 0 0 0 1px var(--linie); color: var(--leise); }
.wchip.aufgabe:hover { color: var(--text); }
.wkoerper { border-top: 1px solid var(--linie); }
.wzeiten div { font-size: 11px; color: var(--leise); text-align: right; padding: 2px 6px 0 0; }
.wtag { position: relative; border-left: 1px solid var(--linie); background-image: linear-gradient(var(--linie) 1px, transparent 1px); }
.wtag.heute { background-color: color-mix(in srgb, var(--akzent) 5%, transparent); }
.wtag .termin { left: 2px; right: 2px; padding: 2px 5px; font-size: 12px; }
.wtag .jetzt { left: 0; }
.wtag.frei { cursor: copy; }
.agenda { display: none; }
.uhr { color: var(--leise); font-size: 13px; width: 92px; flex: none; font-variant-numeric: tabular-nums; }

/* Post */
.mail { padding: 11px 14px; position: relative; }
.mail + .mail::before { content: ""; position: absolute; top: 0; left: 14px; right: 0; border-top: 1px solid var(--linie); }
.mail .mailkopf { display: block; width: 100%; text-align: left; }
.mail .mailkopf:hover .betreff { color: var(--akzent); }
.mail .von { display: flex; gap: 8px; }
.mail.neu .von span { font-weight: 600; }
.mail.neu .von span::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--akzent); margin-right: 7px; }
.mail:not(.neu) .betreff { color: var(--leise); }
.mail .betreff { overflow-wrap: anywhere; }
.fz.hoch .schnell { margin-top: 4px; }
.fz.hoch > input { border-bottom: 1px solid var(--linie); padding-bottom: 8px; }
button:disabled { opacity: .55; cursor: progress; }
.mail .von time { margin-left: auto; font-weight: 400; color: var(--leise); font-size: 13px; white-space: nowrap; }
.mail .knoepfe { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; align-items: center; }
.mail .knoepfe span { font-size: 13px; color: var(--leise); margin-left: 6px; }

/* Blatt: mittig am PC, von unten am Handy */
#blatt { position: fixed; inset: 0; background: #0008; display: grid; place-items: center; z-index: 20; padding: 20px; }
#blatt .innen { width: min(540px, 100%); max-height: min(760px, 100%); background: var(--bg); border-radius: 16px; overflow: auto; box-shadow: var(--schatten); display: flex; flex-direction: column; gap: 16px; padding: 0 18px 20px; animation: rein .18s ease-out; }
@keyframes rein { from { transform: translateY(14px); opacity: 0; } }
.blattkopf { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; position: sticky; top: 0; background: var(--bg); padding: 14px 0 10px; z-index: 1; }
.blattkopf b { font-weight: 600; }
.blattkopf button { color: var(--akzent); font-size: 16px; justify-self: start; }
.blattkopf button:last-child { justify-self: end; font-weight: 600; }
#blatt textarea.titel { font-size: 21px; font-weight: 700; letter-spacing: -.015em; border: 0; background: none; outline: 0; resize: none; width: 100%; padding: 0 2px; line-height: 1.25; }
.schnell { display: flex; gap: 6px; flex-wrap: wrap; }
.formular { background: var(--flaeche); border-radius: var(--radius); overflow: hidden; }
.fz { display: flex; align-items: center; gap: 12px; padding: 4px 14px; min-height: 44px; position: relative; }
.fz + .fz::before { content: ""; position: absolute; top: 0; left: 14px; right: 0; border-top: 1px solid var(--linie); }
.fz > span { flex: none; }
.fz > span small { display: block; color: var(--leise); font-size: 12px; }
.fz input, .fz select { flex: 1; min-width: 0; background: none; border: 0; outline: 0; text-align: right; color: var(--leise); padding: 6px 0; text-align-last: right; }
.fz input:focus, .fz select:focus { color: var(--text); }
.fz input[type=checkbox] { flex: none; margin-left: auto; width: 20px; height: 20px; accent-color: var(--akzent); }
.fz.hoch { flex-direction: column; align-items: stretch; gap: 4px; padding: 10px 14px; }
.fz.hoch textarea, .fz.hoch input { background: none; border: 0; outline: 0; resize: vertical; min-height: 72px; width: 100%; padding: 0; text-align: left; color: var(--text); }
.fz.hoch input { min-height: 0; text-align-last: left; padding: 4px 0; }
.fz.wert > :last-child { margin-left: auto; color: var(--leise); text-align: right; }
.unterzeile { font-size: 13px; color: var(--leise); margin: -8px 14px 0; }
.feld { background: var(--flaeche); box-shadow: inset 0 0 0 1px var(--linie); border: 0; border-radius: 9px; padding: 8px 12px; outline: 0; width: 100%; }
.feld:focus { box-shadow: inset 0 0 0 2px var(--akzent); }

#meldung { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%); background: var(--flaeche2); color: var(--text); padding: 10px 18px; border-radius: 99px; font-size: 14px; z-index: 30; box-shadow: var(--schatten); max-width: 90vw; }
#meldung button { margin-left: 12px; font-weight: 600; color: var(--akzent); }

/* Einstellungen, Fokus, Sammlung */
.schmal { max-width: 720px; }
.raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; align-items: start; }
.sz { display: flex; align-items: center; gap: 12px; padding: 10px 14px; min-height: 48px; position: relative; }
.sz + .sz::before { content: ""; position: absolute; top: 0; left: 14px; right: 0; border-top: 1px solid var(--linie); }
.sz .text { flex: 1; min-width: 0; }
.sz .text small { display: block; color: var(--leise); font-size: 13px; }
.sz .wert { color: var(--leise); display: flex; align-items: center; gap: 7px; white-space: nowrap; font-size: 14px; }
.sz .wert i { width: 9px; height: 9px; border-radius: 50%; background: var(--leise); }
.sz .wert.gut i { background: var(--gut); }
.sz .wert.warn { color: var(--warn); } .sz .wert.warn i { background: var(--warn); }
a.sz:hover, button.sz:hover { background: color-mix(in srgb, var(--text) 4%, transparent); }
button.sz { width: 100%; text-align: left; }
.befehl { font: 13px ui-monospace, "Cascadia Mono", Consolas, monospace; background: var(--bg); border-radius: 8px; padding: 9px 11px; overflow-wrap: anywhere; user-select: all; margin-top: 8px; }
.balken { display: flex; align-items: flex-end; gap: 5px; height: 110px; margin: 14px 0 6px; }
.balken .saeule { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 1px; height: 100%; }
.balken .saeule div { background: var(--akzent); border-radius: 3px; min-height: 2px; }
.balken .saeule div.arbeit { background: var(--leise); }
.achse { display: flex; gap: 5px; font-size: 11px; color: var(--leise); }
.achse span { flex: 1; text-align: center; }
.kennzahlen { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 8px; }
.kennzahlen div b { display: block; font-size: 24px; font-weight: 700; letter-spacing: -.02em; color: var(--text); }
.kennzahlen div { font-size: 13px; color: var(--leise); }
.fortschritt { height: 5px; border-radius: 9px; background: var(--flaeche2); overflow: hidden; margin: 6px 0; }
.fortschritt i { display: block; height: 100%; background: var(--gut); }
.ablauf { display: grid; gap: 10px; counter-reset: n; margin: 6px 0 0; padding: 0; list-style: none; }
.ablauf li { counter-increment: n; display: flex; gap: 12px; }
.ablauf li::before { content: counter(n); width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 600; flex: none; background: color-mix(in srgb, var(--akzent) 16%, transparent); color: var(--akzent); }
.bewegung { display: flex; gap: 18px; align-items: flex-start; }
.bewegung .links { flex: 1; min-width: 0; }
.bewegung a.held-titel { display: block; color: inherit; text-decoration: none; }
.bewegung .bild { flex: none; width: 168px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; background: var(--flaeche2); }
.bewegung .held-tun { align-items: center; }
.wochen { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin: 14px 0 6px; }
.wochen i { aspect-ratio: 1; max-height: 34px; border-radius: 7px; background: var(--flaeche2); }
.wochen i.voll { background: var(--gut); }
.wochen i.kommt { opacity: .35; }
.wochen i.heute { box-shadow: inset 0 0 0 2px var(--akzent); }
@media (max-width: 620px) { .bewegung { flex-direction: column-reverse; } .bewegung .bild { width: 100%; } }
kbd { font: 12.5px inherit; background: color-mix(in srgb, var(--text) 10%, transparent); border-radius: 5px; padding: 1px 6px; }

/* Anmeldung */
body.anmelden { display: grid; grid-template-columns: 1fr; place-items: center; }
body.anmelden form { display: grid; gap: 12px; width: min(340px, 90vw); background: var(--flaeche); padding: 30px 26px; border-radius: 18px; box-shadow: var(--schatten); }
body.anmelden .marke { padding: 0; font-size: 24px; }
body.anmelden p.leise { margin: -6px 0 6px; }
body.anmelden input, body.anmelden button { padding: 12px 14px; border-radius: 10px; border: 0; background: var(--bg); font-size: 16px; outline: 0; }
body.anmelden input:focus { box-shadow: inset 0 0 0 2px var(--akzent); }
body.anmelden button { background: var(--akzent); color: var(--akzent-text); font-weight: 600; }

@media (max-width: 860px) {
  body { grid-template-columns: 1fr; padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
  #nav { position: fixed; bottom: 0; left: 0; right: 0; top: auto; height: auto; flex-direction: row; justify-content: space-around; border-right: 0; border-top: 1px solid var(--linie);
    background: color-mix(in srgb, var(--seite) 88%, transparent); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); padding: 5px 4px calc(5px + env(safe-area-inset-bottom)); z-index: 10; }
  #nav .marke, .nur-breit { display: none !important; }
  .nur-schmal { display: flex !important; }
  #nav a { flex-direction: column; gap: 2px; font-size: 10.5px; padding: 5px 10px; position: relative; color: var(--leise); font-weight: 500; }
  #nav a svg { stroke: currentColor; width: 23px; height: 23px; }
  #nav a.an, #nav a:hover { background: none; color: var(--akzent); }
  #nav b { display: none; }
  #nav .punkt { position: absolute; top: 3px; right: 10px; }
  main { padding: 22px 16px 40px; }
  h1 { font-size: 28px; }
  .spalten { grid-template-columns: 1fr; gap: 6px; }
  .erfassen kbd { display: none; }
  .held { padding: 16px 16px 16px; } .held-titel { font-size: 21px; }
  .woche { display: none; } .agenda { display: block; }
  #blatt { padding: 0; place-items: end center; }
  #blatt .innen { width: 100%; max-height: 92%; border-radius: 16px 16px 0 0; padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
  .zeile { flex-wrap: wrap; }
  .zeile .inhalt { flex-basis: 0; }
  .zeile .tun:has(.klein, select) { order: 3; width: 100%; padding-left: 34px; }
  .zeile.ohne-haken .tun:has(.klein) { padding-left: 0; }
  .kopf .rechts { margin-left: 0; flex-wrap: wrap; }
}

.fz.hoch .schnell { align-items: center; }

/* Post: Suche, Ordnermarke, Newsletter */
.kopfknoepfe { display: inline-flex; gap: 6px; margin-left: auto; }
.ordnermarke { font-size: 11px; color: var(--leise); border: 1px solid var(--linie); border-radius: 5px; padding: 0 5px; margin-left: 8px; white-space: nowrap; }
.nl { display: flex; align-items: center; gap: 12px; padding: 10px 14px; position: relative; }
.nl + .nl::before { content: ""; position: absolute; top: 0; left: 14px; right: 0; border-top: 1px solid var(--linie); }
.nl input { width: 20px; height: 20px; flex: none; accent-color: var(--akzent); }
.nl .wer { flex: 1; min-width: 0; }
.nl .wer b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nl .wer small { display: block; color: var(--leise); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.knopf:disabled { cursor: default; }

/* Verträge */
.sz.vz { width: 100%; text-align: left; }
.sz.vz.aus .text { color: var(--leise); text-decoration: line-through; }
.sz .wert.frist { font-weight: 600; }
.sz .wert.frist.rot { color: var(--rot); }
.sz .wert.frist.gelb { color: #ff9f0a; }
#blatt .innen > * { flex-shrink: 0; }

/* Fixkosten: Kennzahlen und Aufteilung */
.kennzahlen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 4px; }
.kz { background: var(--flaeche); border-radius: var(--radius); padding: 13px 15px; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.kz small { color: var(--leise); font-size: 13px; }
.kz b { font-size: 25px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kz span { color: var(--leise); font-size: 13px; }
.kz.warn b { color: #ff9f0a; }
.anteile { display: grid; gap: 9px; }
.anteile > div { display: grid; grid-template-columns: minmax(120px, 210px) 1fr 96px; gap: 12px; align-items: center; font-size: 14px; }
.anteile i { height: 8px; border-radius: 4px; background: color-mix(in srgb, var(--text) 8%, transparent); overflow: hidden; display: block; }
.anteile u { display: block; height: 100%; border-radius: 4px; background: var(--akzent); }
.anteile b { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
a.klein { display: inline-block; }
@media (max-width: 760px) {
  .kennzahlen { grid-template-columns: 1fr 1fr; }
  .kz b { font-size: 21px; }
  .anteile > div { grid-template-columns: 1fr 84px; }
  .anteile i { grid-column: 1 / -1; grid-row: 2; }
}
