@font-face { font-family: "Fraunces"; src: url("fonts/fraunces-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("fonts/fraunces-latin-wght-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("fonts/outfit-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --paper: #f4eee2; --card: #fbf7ee; --ink: #26211c; --soft: #7d7265; --faint: #b9ad9b; --line: #ded3bf;
  --accent: #a34a2c; --accent-ink: #fff7ee; --star: #c98d1f; --ok: #56784f; --warn: #a34a2c; --shadow: 60 40 20;
  --top: var(--safe-area-inset-top, env(safe-area-inset-top, 0px));
  --bottom: var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px));
  --serif: "Fraunces", "Noto Serif", Georgia, serif;
  --sans: "Outfit", system-ui, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #1b1916; --card: #24211d; --ink: #ebe3d4; --soft: #a3978a; --faint: #5f574d; --line: #37322b;
    --accent: #dd8a66; --accent-ink: #1b1916; --star: #e2ad45; --ok: #8db88a; --warn: #dd8a66; --shadow: 0 0 0; }
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--paper); color: var(--ink); font: 400 16px/1.55 var(--sans); -webkit-tap-highlight-color: transparent; overscroll-behavior-y: none; -webkit-font-smoothing: antialiased; }
/* Papierkorn: liegt fest über der Seite und scrollt nicht mit */
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 5; opacity: .05; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"); }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
.ic { width: 22px; height: 22px; flex: none; }
#app { max-width: 620px; margin: 0 auto; min-height: 100dvh; padding: calc(var(--top) + 14px) 20px calc(var(--bottom) + 120px); }

/* Einblenden beim Wechsel der Ansicht */
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
#app.enter .rise { animation: rise .55s var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms); }

.status { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--soft); min-height: 24px; letter-spacing: .01em; }
.status button { all: unset; cursor: pointer; display: flex; align-items: center; gap: 8px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); flex: none; }
.dot.ok { background: var(--ok); animation: breathe 3.2s ease-in-out infinite; } .dot.warn { background: var(--warn); }
.dot.busy { background: var(--star); animation: breathe .9s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .35; transform: scale(.8); } }
.saved { margin-left: auto; }
.eyebrow { font: 500 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--soft); }

/* Heute */
.day { display: grid; grid-template-columns: auto 1fr auto; align-items: end; gap: 14px; margin: 18px 0 34px; }
.day .num { all: unset; cursor: pointer; font: 300 84px/.8 var(--serif); letter-spacing: -.04em; font-variant-numeric: lining-nums; }
.day .meta { padding-bottom: 4px; min-width: 0; }
.day .wd { display: block; font: 500 24px/1.1 var(--serif); letter-spacing: -.01em; }
.day .mo { display: block; color: var(--soft); font-size: 14px; margin-top: 4px; }
.day .mo b { color: var(--accent); font-weight: 500; }
.arrows { display: flex; padding-bottom: 2px; }
.icon { all: unset; cursor: pointer; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--soft); flex: none; transition: transform .25s var(--ease), background .25s; }
.icon:active { transform: scale(.9); background: var(--line); } .icon[disabled] { opacity: .25; pointer-events: none; }

.block { margin-bottom: 30px; }
.label { display: block; font: 500 19px/1.3 var(--serif); letter-spacing: -.01em; margin-bottom: 10px; }
.label.old { color: var(--soft); font-style: italic; }
.qn { display: block; font: 500 11px/1 var(--sans); letter-spacing: .14em; color: var(--accent); margin-bottom: 8px; font-variant-numeric: tabular-nums; }

.stars { display: flex; gap: 2px; margin-left: -8px; }
.stars button { all: unset; cursor: pointer; width: 50px; height: 50px; display: grid; place-items: center; transition: transform .35s var(--spring); }
.stars button:active { transform: scale(.82); }
.st { width: 36px; height: 36px; fill: none; stroke: var(--faint); stroke-width: 1.3; stroke-linejoin: round; transition: fill .25s, stroke .25s; }
.on .st { fill: var(--star); stroke: var(--star); }
.starword { color: var(--soft); font: italic 400 15px var(--serif); min-height: 23px; }

/* Schreibfelder: keine Kästen, nur eine Randlinie wie im Notizbuch */
textarea { width: 100%; display: block; resize: none; overflow: hidden; background: none; border: 0; border-left: 2px solid var(--line); border-radius: 0;
  padding: 2px 0 2px 16px; min-height: 60px; outline: none; font: 400 17px/1.65 var(--sans); transition: border-color .3s var(--ease); }
textarea::placeholder { color: var(--faint); }
textarea:focus { border-left-color: var(--accent); }
textarea.free { min-height: 196px; border-left: 0; padding: 0; line-height: 28px; background-image: linear-gradient(to bottom, transparent 27px, var(--line) 27px); background-size: 100% 28px; }
textarea.q { min-height: 0; font-size: 16px; line-height: 1.45; }
input[type=text], input[type=password], input[type=url], input[type=time] { width: 100%; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; outline: none; transition: border-color .3s; }
input:focus { border-color: var(--accent); }

.photos { columns: 2; column-gap: 10px; }
.photos > * { break-inside: avoid; margin-bottom: 10px; width: 100%; border-radius: 14px; display: block; }
.ph { all: unset; cursor: pointer; position: relative; box-sizing: border-box; box-shadow: 0 10px 24px -14px rgb(var(--shadow) / .45); transition: transform .3s var(--ease); }
.ph:active { transform: scale(.98); } .ph img { width: 100%; height: auto; display: block; border-radius: 14px; }
.ph .snd { position: absolute; left: 8px; bottom: 8px; display: flex; align-items: center; gap: 4px; padding: 4px 9px 4px 6px; border-radius: 14px; background: rgb(18 16 14 / .62); color: #f4eee2; font-size: 12px; font-variant-numeric: tabular-nums; }
.ph .snd .ic { width: 16px; height: 16px; }
.closed { display: inline-flex; align-items: center; gap: 6px; color: var(--soft); font-size: 14px; min-height: 44px; } .closed .ic { width: 16px; height: 16px; }
.unlock { margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--line); } .unlock p { margin: 0 0 14px; color: var(--soft); font-size: 15px; } .unlock .btn.quiet { padding-left: 0; }
.stars.ro { margin-left: -2px; gap: 4px; } .stars.ro .st { width: 30px; height: 30px; }
.past h4 { font: 500 11px/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin: 26px 0 6px; }
.past p { margin: 0 0 6px; white-space: pre-wrap; font: 400 18px/1.6 var(--serif); max-width: 65ch; }
.past .au { margin-top: 10px; } .past .au .qn { margin-bottom: 6px; }
.photos .missing { aspect-ratio: 4/3; background: linear-gradient(100deg, var(--line) 40%, var(--card) 50%, var(--line) 60%) 0 0 / 300% 100%; animation: shimmer 1.6s linear infinite; }
@keyframes shimmer { to { background-position: -150% 0; } }
.photos label { aspect-ratio: 4/3; border: 1.5px dashed var(--faint); color: var(--soft); display: grid; place-items: center; place-content: center; gap: 4px; font-size: 13px; cursor: pointer; transition: transform .25s var(--ease); }
.photos label:active { transform: scale(.98); }
.photos input { display: none; }

.btn { border: 1px solid var(--line); background: var(--card); border-radius: 14px; padding: 10px 16px; min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: transform .25s var(--ease); }
.btn:active { transform: scale(.97) translateY(1px); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 500; }
.btn.quiet { border-color: transparent; background: none; color: var(--soft); padding-inline: 8px; }
.btn.wide { width: 100%; }
.row { display: flex; gap: 10px; align-items: center; } .row > .grow { flex: 1; min-width: 0; }
.stack > * + * { margin-top: 12px; }
.hint { color: var(--soft); font-size: 14px; margin: 8px 0 0; }
.hint.err { color: var(--warn); }
.field label { display: block; font-size: 13px; color: var(--soft); margin-bottom: 6px; }

.page-title { font: 400 44px/1 var(--serif); letter-spacing: -.03em; margin: 22px 0 28px; }
h2 { font: 500 21px/1.3 var(--serif); letter-spacing: -.01em; margin: 0 0 14px; }
.set { border-top: 1px solid var(--line); padding: 24px 0 26px; }

/* Rückblick, Vorhaben, Notizen */
.review { padding: 18px 18px 6px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 18px 36px -24px rgb(var(--shadow) / .4); }
.rv { padding: 12px 0 14px; border-top: 1px solid var(--line); } .rv:first-of-type { border-top: 0; padding-top: 2px; }
.rv p { margin: 0 0 10px; font-size: 17px; line-height: 1.4; } .rv p small { color: var(--soft); font-size: 13px; margin-left: 4px; }
.rv .link { margin-top: 4px; }
.tri { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.tri button { all: unset; cursor: pointer; text-align: center; min-height: 44px; border-radius: 12px; border: 1px solid var(--line); font-size: 15px; box-sizing: border-box; transition: transform .3s var(--spring), background .25s, color .25s, border-color .25s; }
.tri button:active { transform: scale(.94); }
.tri button.on { color: var(--accent-ink); font-weight: 500; border-color: transparent; }
.tri .on.yes { background: var(--ok); } .tri .on.partly { background: var(--star); color: #26211c; } .tri .on.no { background: var(--accent); }
.note { margin-top: 20px; } .note .qn { margin: 0; } .note .row { margin-bottom: 4px; }
.icon.sm { width: 36px; height: 36px; } .icon.sm .ic { width: 18px; height: 18px; }
.block > .link { margin-top: 8px; }
select { width: 100%; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font: inherit; color: inherit; outline: none; }
.goal { padding: 10px 0; border-bottom: 1px solid var(--line); } .goal b { display: block; font-weight: 500; } .goal span { font-size: 13px; color: var(--soft); }
.goal.ended b { color: var(--soft); text-decoration: line-through; }
.pbar { display: flex; gap: 3px; height: 12px; margin-top: 12px; } .pbar i { border-radius: 4px; min-width: 6px; }
.pbar .yes, .dots .yes, .plans .yes span { background: var(--ok); } .pbar .partly, .dots .partly { background: var(--star); } .pbar .no, .dots .no { background: var(--accent); } .pbar .open { background: var(--line); }
.pkey { margin: 8px 0 0; font-size: 14px; color: var(--soft); } .pkey b { color: var(--ink); font-weight: 500; }
.grow2 { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.dots { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; max-width: 120px; } .dots i { width: 10px; height: 10px; border-radius: 50%; }
.plans { list-style: none; margin: 0 0 6px; padding: 0; } .plans li { display: flex; gap: 10px; align-items: baseline; justify-content: space-between; padding: 5px 0; border-bottom: 1px dotted var(--line); font: 400 16px/1.5 var(--serif); }
.plans span { font: 500 11px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--soft); white-space: nowrap; padding: 2px 8px; border-radius: 10px; background: none; }
.plans .yes span { color: #fff; } .plans .partly span { background: var(--star); color: #26211c; } .plans .no span { border: 1px solid var(--accent); color: var(--accent); }

.au { margin-bottom: 14px; } .au audio { width: 100%; height: 44px; display: block; border-radius: 22px; }
.btn.recording .ic { animation: breathe 1.2s ease-in-out infinite; } #recTime { font-variant-numeric: tabular-nums; }
label.btn { cursor: pointer; }

/* Statusleiste: Inhalt soll beim Scrollen nicht unter Uhr und Akku durchlaufen */
body::after { content: ""; position: fixed; top: 0; left: 0; right: 0; height: var(--top); background: var(--paper); z-index: 6; pointer-events: none; }

/* Themenspeicher und Festhalten */
.fab { all: unset; cursor: pointer; position: fixed; z-index: 6; right: max(20px, calc(50% - 290px)); bottom: calc(var(--bottom) + 88px); width: 58px; height: 58px; border-radius: 22px; display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink); box-shadow: inset 0 1px 0 rgb(255 255 255 / .18), 0 16px 30px -14px rgb(var(--shadow) / .7); transition: transform .35s var(--spring); }
.fab:active { transform: scale(.9) rotate(45deg); } .fab .ic { width: 26px; height: 26px; }
.chips { display: flex; gap: 8px; overflow-x: auto; margin: 22px -20px 6px; padding: 2px 20px 8px; scrollbar-width: none; } .chips::-webkit-scrollbar { display: none; }
.chips button { all: unset; cursor: pointer; flex: none; padding: 0 14px; min-height: 40px; display: flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 20px; font-size: 14px; transition: transform .25s var(--ease), background .25s, color .25s; }
.chips button:active { transform: scale(.95); } .chips button small { color: var(--soft); font-size: 12px; font-variant-numeric: tabular-nums; }
.chips button.on { background: var(--ink); color: var(--paper); border-color: var(--ink); } .chips button.on small { color: inherit; opacity: .7; }
.chips.small { margin: 10px 0 0; padding: 0; flex-wrap: wrap; overflow: visible; } .chips.small button { min-height: 34px; padding: 0 12px; }
.idea { padding: 14px 0; border-bottom: 1px solid var(--line); }
.idea > button { all: unset; cursor: pointer; display: block; width: 100%; transition: transform .25s var(--ease); } .idea > button:active { transform: scale(.985); }
.idea p { margin: 0 0 4px; font: 400 18px/1.45 var(--serif); white-space: pre-wrap; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.idea span { font-size: 13px; color: var(--soft); } .idea audio { width: 100%; height: 44px; margin-top: 10px; display: block; }
.idea .mark { color: var(--accent); font-weight: 500; }
input[type=search] { width: 100%; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; outline: none; -webkit-appearance: none; appearance: none; }
.trow { all: unset; cursor: pointer; box-sizing: border-box; width: 100%; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 10px; min-height: 58px; border-bottom: 1px solid var(--line); transition: transform .25s var(--ease); }
.trow:active { transform: scale(.985); } .trow span { font: 400 19px var(--serif); } .trow small { color: var(--soft); font-size: 14px; font-variant-numeric: tabular-nums; } .trow .ic { color: var(--faint); width: 18px; height: 18px; }
.tcard { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 22px 20px; margin: 4px 0 6px; box-shadow: 0 22px 40px -26px rgb(var(--shadow) / .5); }
.tcard p { margin: 0; font: 400 22px/1.4 var(--serif); white-space: pre-wrap; } .tcard audio { width: 100%; height: 44px; margin-top: 14px; display: block; }
.tri [data-act=tridone]:active, .tri [data-act=trikeep]:active { background: var(--line); }
.yrow, .mrow { all: unset; cursor: pointer; box-sizing: border-box; width: 100%; display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 12px; transition: transform .25s var(--ease); }
.yrow:active, .mrow:active { transform: scale(.985); }
.yrow { margin-top: 30px; padding: 6px 0 10px; border-bottom: 1px solid var(--ink); } .yrow b { font: 300 44px/1 var(--serif); letter-spacing: -.03em; font-variant-numeric: lining-nums; }
.mrow { min-height: 54px; border-bottom: 1px solid var(--line); align-items: center; } .mrow span { font: 500 20px var(--serif); }
.yrow small, .mrow small { color: var(--soft); font-size: 13px; text-align: right; font-variant-numeric: tabular-nums; }
.yrow .ic, .mrow .ic { width: 18px; height: 18px; color: var(--faint); align-self: center; transition: transform .35s var(--ease); } .yrow.open .ic, .mrow.open .ic { transform: rotate(90deg); }
mark { background: color-mix(in srgb, var(--star) 35%, transparent); color: inherit; border-radius: 3px; padding: 0 2px; }
.back { all: unset; cursor: pointer; display: block; box-sizing: border-box; width: 100%; padding: 12px 0 12px 16px; border-left: 2px solid var(--star); margin-top: 8px; transition: transform .25s var(--ease); }
.back:active { transform: scale(.985); } .back b { display: block; font: 500 17px var(--serif); margin-bottom: 4px; }
.back p { margin: 2px 0 0; color: var(--soft); font-size: 15px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.locline { margin: -22px 0 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; } .locline:empty { display: none; } .locline .hint { width: 100%; margin: 0; }
.rday header small { font: 400 13px var(--sans); color: var(--soft); }
.mapwrap { position: relative; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: color-mix(in srgb, var(--card) 70%, var(--paper)); }
#map { display: block; width: 100%; height: min(58dvh, 520px); touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
#map .land { fill: color-mix(in srgb, var(--soft) 26%, var(--paper)); stroke: var(--paper); stroke-width: .7px; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
#dots g { cursor: pointer; } #dots circle { fill: var(--accent); stroke: var(--paper); } #dots .sel circle { fill: var(--ink); }
#dots .n { fill: var(--accent-ink); font-family: var(--sans); font-weight: 600; pointer-events: none; } #dots .sel .n { fill: var(--paper); }
#dots .lab { fill: var(--ink); font-family: var(--sans); font-weight: 500; paint-order: stroke; stroke: var(--paper); stroke-linejoin: round; pointer-events: none; }
.mapbtns { position: absolute; right: 10px; bottom: 10px; display: flex; gap: 6px; }
.mapbtns button { all: unset; cursor: pointer; min-width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; background: color-mix(in srgb, var(--card) 88%, transparent); border: 1px solid var(--line); font-size: 14px; box-sizing: border-box; transition: transform .25s var(--ease); }
.mapbtns button:active { transform: scale(.92); } .mapbtns .wide { padding: 0 14px; }
.row.lab { align-items: flex-start; } .row.lab .label, .row.lab h4 { margin-bottom: 8px; } .row.lab .icon.sm, .row.lab .sharepill { margin-top: -6px; }
.sharepill { all: unset; cursor: pointer; flex: none; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px 0 11px; border-radius: 17px;
  border: 1.5px solid var(--accent); color: var(--accent); font: 500 14px/1 var(--sans); letter-spacing: .01em; position: relative; transition: transform .25s var(--ease); }
.sharepill::after { content: ""; position: absolute; inset: -6px -4px; } /* größere Tippfläche */
.sharepill .ic { width: 17px; height: 17px; } .sharepill:active { transform: scale(.94); }
.sharepill.done { border-color: transparent; background: var(--line); color: var(--soft); }
.recv { position: relative; padding: 14px 16px 14px 18px; margin: 0 0 14px; border-radius: 16px; background: color-mix(in srgb, var(--star) 10%, var(--card)); border: 1px solid color-mix(in srgb, var(--star) 30%, var(--line)); }
.recv::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 3px; background: var(--star); }
.recv .qn { color: color-mix(in srgb, var(--star) 70%, var(--ink)); margin-bottom: 6px; }
.recv h4 { font: 500 11px/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--soft); margin: 8px 0 4px; }
.recv p { margin: 0 0 6px; white-space: pre-wrap; font: 400 17px/1.55 var(--serif); } .recv .rnote { font-style: italic; }
.recv .rph { margin-top: 8px; max-width: 100%; } .recv .rph img { width: 100%; max-height: 340px; object-fit: cover; border-radius: 12px; display: block; }
.recv audio { width: 100%; height: 44px; margin-top: 8px; display: block; }
.recv.inreport { break-inside: avoid; margin-top: 12px; }
.sharepic { width: 100%; max-height: 220px; object-fit: cover; border-radius: 12px; display: block; margin-top: 6px; }
#sheet:empty { display: none; }
#sheet { position: fixed; inset: 0; z-index: 8; display: grid; align-items: end; }
.backdrop { position: absolute; inset: 0; background: rgb(18 16 14 / .45); animation: fade .3s both; } @keyframes fade { from { opacity: 0; } }
.panel { position: relative; width: 100%; max-width: 620px; margin: 0 auto; max-height: 92dvh; overflow: auto; background: var(--paper); border-radius: 26px 26px 0 0; padding: 22px 20px calc(var(--bottom) + 22px);
  box-shadow: 0 -20px 50px -20px rgb(var(--shadow) / .5); animation: sheet .45s var(--ease) both; } @keyframes sheet { from { transform: translateY(40%); opacity: 0; } }
.panel .field { margin-top: 16px; } .panel > .btn, .panel > .au { margin-top: 12px; }
textarea.boxed { border: 1px solid var(--line); border-radius: 14px; background: var(--card); padding: 12px 14px; min-height: 96px; } textarea.boxed:focus { border-color: var(--accent); }
.tri.seg { grid-template-columns: 1fr 1fr 1.5fr; } .tri.seg button { font-size: 14px; } .tri.seg button.on { background: var(--ink); color: var(--paper); }

/* Verlauf */
.pulse { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: end; margin-bottom: 8px; }
.pulse .big { font: 300 60px/.85 var(--serif); letter-spacing: -.04em; font-variant-numeric: lining-nums tabular-nums; }
.pulse .big small { display: block; font: 400 13px/1.3 var(--sans); letter-spacing: 0; color: var(--soft); margin-top: 10px; }
.trend { display: flex; align-items: flex-end; gap: 3px; height: 64px; }
.trend i { flex: 1; background: var(--star); border-radius: 2px; min-height: 3px; transform-origin: bottom; }
#app.enter .trend i { animation: growbar .7s var(--ease) both; animation-delay: calc(var(--i) * 14ms); }
@keyframes growbar { from { transform: scaleY(0); } }
.trend i.none { background: var(--line); }
.month { display: flex; align-items: baseline; gap: 10px; margin: 38px 0 4px; }
.month h2 { margin: 0; flex: 1; font-size: 24px; } .month h2 span { color: var(--soft); font-weight: 300; }
.link { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-size: 14px; font-weight: 500; min-height: 44px; transition: transform .25s var(--ease); }
.link:active { transform: scale(.96); } .link .ic { width: 18px; height: 18px; }
.item { all: unset; cursor: pointer; display: grid; grid-template-columns: 46px 1fr auto; gap: 14px; width: 100%; padding: 16px 0; border-bottom: 1px solid var(--line); box-sizing: border-box; transition: transform .25s var(--ease); }
.item:active { transform: scale(.985); }
.item .dn b { display: block; font: 400 30px/1 var(--serif); letter-spacing: -.02em; font-variant-numeric: lining-nums; }
.item .dn span { font-size: 12px; color: var(--soft); text-transform: uppercase; letter-spacing: .08em; }
.item .body { min-width: 0; }
.mini { display: flex; gap: 1px; margin-bottom: 4px; } .mini .st { width: 13px; height: 13px; stroke-width: 1.6; }
.item p { margin: 0; color: var(--soft); font-size: 15px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; }
.empty { padding: 40px 0; max-width: 30ch; } .empty b { display: block; font: 400 26px/1.2 var(--serif); margin-bottom: 8px; } .empty span { color: var(--soft); }

.switch { appearance: none; width: 50px; height: 30px; border-radius: 15px; background: var(--line); position: relative; flex: none; margin: 0; cursor: pointer; transition: background .3s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--card); transition: transform .4s var(--spring); box-shadow: 0 2px 5px rgb(var(--shadow) / .2); }
.switch:checked { background: var(--accent); } .switch:checked::after { transform: translateX(20px); }

/* Schwebende Navigation */
nav { position: fixed; left: 50%; bottom: calc(var(--bottom) + 14px); transform: translateX(-50%); z-index: 6; display: flex; gap: 4px; padding: 6px;
  background: color-mix(in srgb, var(--card) 84%, transparent); backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border: 1px solid color-mix(in srgb, var(--line) 80%, transparent); border-radius: 26px;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .12), 0 18px 40px -18px rgb(var(--shadow) / .5); }
nav button { all: unset; cursor: pointer; display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 14px; border-radius: 20px; color: var(--soft); font-size: 14px; font-weight: 500; transition: transform .3s var(--ease), background .3s, color .3s; }
nav button:active { transform: scale(.94); }
nav button span { display: none; }
nav button.on { background: var(--ink); color: var(--paper); } nav button.on span { display: inline; }

/* Überlagerungen */
#overlay:empty { display: none; }
#overlay { position: fixed; inset: 0; z-index: 10; background: var(--paper); display: grid; align-items: end; padding: calc(var(--top) + 24px) 28px calc(var(--bottom) + 56px); overflow: auto; }
#overlay.viewer { background: #12100e; padding: 0; place-items: center; }
#overlay.viewer > img { max-width: 100%; max-height: 100dvh; object-fit: contain; }
.viewerbar span { color: #f4eee2; font-size: 13px; align-self: center; }
.photos .camtile { all: unset; cursor: pointer; box-sizing: border-box; width: 100%; aspect-ratio: 4/3; border-radius: 14px; margin-bottom: 10px; display: grid; place-items: center; place-content: center; gap: 2px; text-align: center;
  background: var(--ink); color: var(--paper); font-size: 14px; font-weight: 500; transition: transform .25s var(--ease); break-inside: avoid; }
.photos .camtile:active { transform: scale(.97); } .photos .camtile .ic { width: 28px; height: 28px; } .photos .camtile small { font-size: 11px; font-weight: 400; opacity: .7; line-height: 1.35; }
#overlay.cam video { width: 100%; height: 100dvh; object-fit: cover; background: #12100e; } #overlay.cam video.mirror { transform: scaleX(-1); }
#overlay.cam::after { content: ""; position: fixed; inset: 0; background: #fff; opacity: 0; pointer-events: none; transition: opacity .25s; } #overlay.cam.flash::after { opacity: .7; transition: none; }
.camfoot { justify-items: center; padding-bottom: calc(var(--bottom) + 26px); } .camfoot p { font-size: 14px; opacity: 1; min-height: 20px; }
#shutter { all: unset; cursor: pointer; width: 80px; height: 80px; border-radius: 50%; border: 4px solid #f4eee2; display: grid; place-items: center; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; transition: transform .3s var(--spring); }
#shutter i { width: 62px; height: 62px; border-radius: 50%; background: #f4eee2; transition: transform .3s var(--spring), background .2s, border-radius .3s; }
#shutter:active { transform: scale(.94); } #shutter.rec { transform: scale(1.12); border-color: #d9603a; } #shutter.rec i { background: #d9603a; transform: scale(.55); border-radius: 12px; animation: breathe 1.1s ease-in-out infinite; }
.viewerfoot { position: fixed; left: 0; right: 0; bottom: 0; padding: 40px 14px calc(var(--bottom) + 14px); display: grid; gap: 10px; background: linear-gradient(to top, rgb(18 16 14 / .88) 55%, transparent); color: #f4eee2; text-align: center; }
.viewerfoot p { margin: 0; font-size: 13px; opacity: .8; } .viewerfoot audio { width: 100%; height: 44px; }
.viewerfoot button { all: unset; cursor: pointer; box-sizing: border-box; min-height: 44px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 22px; border: 1px solid rgb(244 238 226 / .3); font-size: 14px; transition: transform .25s var(--ease); }
.viewerfoot button:active { transform: scale(.96); } .viewerfoot button[disabled] { opacity: .3; pointer-events: none; }
.viewerfoot .go { background: #f4eee2; color: #26211c; border-color: transparent; font-weight: 500; } .viewerfoot .recording .ic { animation: breathe 1.2s ease-in-out infinite; }
.viewerbar { position: fixed; top: var(--top); left: 0; right: 0; display: flex; justify-content: space-between; padding: 10px; }
.viewerbar button { all: unset; cursor: pointer; color: #f4eee2; background: rgb(18 16 14 / .6); border: 1px solid rgb(244 238 226 / .15); border-radius: 22px; min-height: 44px; padding: 0 16px; display: grid; place-items: center; font-size: 14px; }
.gate { width: 100%; max-width: 360px; animation: rise .6s var(--ease) both; }
.gate h1 { font: 300 64px/.95 var(--serif); letter-spacing: -.04em; margin: 12px 0 36px; }
.gate form { margin-top: 14px; } .gate input { font-size: 20px; letter-spacing: .3em; margin-bottom: 10px; }
.gate #gateErr { min-height: 21px; }

/* Monatsbericht */
.rbar { display: flex; align-items: center; gap: 4px; margin: 6px -10px 10px; }
.rbar .btn { margin-left: auto; }
.cover h1 { font: 300 68px/.9 var(--serif); letter-spacing: -.045em; margin: 14px 0 0; }
.cover h1 span { display: block; font: italic 300 30px/1.2 var(--serif); letter-spacing: -.01em; color: var(--accent); margin-top: 14px; }
.stats { display: grid; grid-template-columns: 1.4fr 1fr; gap: 0 24px; margin: 34px 0 30px; border-top: 1px solid var(--ink); }
.stat { padding: 14px 0 12px; border-bottom: 1px solid var(--line); }
.stat b { display: block; font: 400 34px/1 var(--serif); letter-spacing: -.02em; font-variant-numeric: lining-nums tabular-nums; }
.stat b small { font: 400 14px var(--sans); color: var(--soft); letter-spacing: 0; }
.stat span { font-size: 13px; color: var(--soft); }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin-top: 12px; }
.cal .h { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--soft); text-align: center; padding-bottom: 2px; }
.cal .c { aspect-ratio: 1; border-radius: 9px; display: grid; place-items: center; font: 400 14px var(--sans); font-variant-numeric: tabular-nums; color: var(--faint); border: 1px solid var(--line); }
.cal .c.w { color: var(--ink); border-color: var(--soft); }
.c[class*=' s'] { color: #26211c; }
.c.s1 { background: color-mix(in srgb, var(--star) 16%, var(--paper)); border-color: transparent; }
.c.s2 { background: color-mix(in srgb, var(--star) 32%, var(--paper)); border-color: transparent; }
.c.s3 { background: color-mix(in srgb, var(--star) 52%, var(--paper)); border-color: transparent; }
.c.s4 { background: color-mix(in srgb, var(--star) 74%, var(--paper)); border-color: transparent; }
.c.s5 { background: var(--star); border-color: transparent; color: #26211c; font-weight: 600; }
.legend { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--soft); margin-top: 10px; }
.legend i { width: 14px; height: 14px; border-radius: 4px; }
.sub { margin: 34px 0 0; }
.curve { width: 100%; height: auto; display: block; margin-top: 10px; overflow: visible; }
.curve .grid { stroke: var(--line); stroke-width: 1; } .curve .ln { fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.curve .ar { fill: color-mix(in srgb, var(--accent) 12%, transparent); } .curve circle { fill: var(--paper); stroke: var(--accent); stroke-width: 1.6; }
.curve text { font: 10px var(--sans); fill: var(--soft); }
.best { margin: 12px 0 0; padding: 0; list-style: none; }
.best li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.best b { font: 400 24px/1.1 var(--serif); } .best p { margin: 0; font: italic 400 16px/1.45 var(--serif); }
.rday { margin-top: 44px; }
.rday header { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: end; border-bottom: 1px solid var(--ink); padding-bottom: 10px; margin-bottom: 16px; }
.rday header b { font: 300 52px/.8 var(--serif); letter-spacing: -.04em; font-variant-numeric: lining-nums; }
.rday header span { font: 500 17px/1.1 var(--serif); }
.rday h4 { font: 500 11px/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin: 16px 0 4px; }
.rday p { margin: 0 0 6px; white-space: pre-wrap; font: 400 16px/1.6 var(--serif); max-width: 65ch; }
.rday .rphotos { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 8px; margin-top: 14px; }
.rph { all: unset; cursor: pointer; position: relative; display: block; min-width: 0; transition: transform .25s var(--ease); } .rph:active { transform: scale(.98); }
.rph .snd { position: absolute; left: 6px; bottom: 6px; display: flex; align-items: center; gap: 4px; padding: 3px 8px 3px 5px; border-radius: 12px; background: rgb(18 16 14 / .62); color: #f4eee2; font: 12px var(--sans); font-variant-numeric: tabular-nums; }
.rph .snd .ic { width: 15px; height: 15px; }
.rday .rphotos img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 8px; display: block; }
.rday .rphotos .rph:first-child { grid-row: span 2; } .rday .rphotos .rph:first-child img { aspect-ratio: auto; height: 100%; }
.rday .au { margin: 8px 0 0; }
.rday .rphotos.n1 { grid-template-columns: 1fr; max-width: 70%; } .rday .rphotos.n1 img { aspect-ratio: 3/2; }
.colophon { margin-top: 48px; font-size: 12px; color: var(--soft); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

@page { size: A4; margin: 18mm 17mm; }
@media print {
  :root { --paper: #fff; --card: #fff; --ink: #1d1a17; --soft: #6b6258; --faint: #a79c8c; --line: #d9d0c0; --accent: #a34a2c; --star: #c98d1f; }
  body::before, body::after, nav, .fab, #sheet, .status, .noprint, #overlay { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  #app { max-width: none; padding: 0; min-height: 0; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .cover { break-after: page; } .cover h1 { font-size: 72pt; } .cal { gap: 1.6mm; }
  .overview { display: grid; grid-template-columns: 1.15fr 1fr; gap: 12mm; align-items: start; } .overview .side .sub:first-child { margin-top: 0; }
  .sub { break-inside: avoid; }
  .rday:first-of-type { margin-top: 0; }
  .rph .snd { display: none; } .sharepill { display: none; }
  .rday header, .rday h4 { break-after: avoid; } .review { box-shadow: none; } .rday .rphotos, .best li, .stat { break-inside: avoid; }
  .rday p { orphans: 3; widows: 3; font-size: 11.5pt; }
}
