/* Mukunzi – Design
   Schwarz · Rot · Gold (Deutschland) trifft Blau · Gelb · Grün (Ruanda).
   Gold/Gelb steckt in beiden Flaggen – es ist die verbindende Farbe in der Mitte. */

@font-face { font-family: "Fraunces"; src: url(/fonts/fraunces.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Jakarta"; src: url(/fonts/jakarta.woff2) format("woff2"); font-weight: 200 800; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Jakarta"; src: url(/fonts/jakarta-ext.woff2) format("woff2"); font-weight: 200 800; font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  /* Flaggenfarben */
  --de-black: #17140f;
  --de-red: #dd2a2a;
  --gold: #f5c400;
  --rw-blue: #00a1de;
  --rw-green: #20603d;
  --shared: #e0a800;

  --bg: #f7f3ea;
  --surface: #fffdf8;
  --surface-2: #f0e9da;
  --text: #17140f;
  --muted: #6e665a;
  --line: #e7dfcd;
  --link: #0079a8;
  --ok: #20603d;
  --love: #dd2a2a;
  --love-soft: #fbe3df;
  --gold-soft: #fff1bf;
  --gold-ink: #7a5a00;
  --btn: #17140f;
  --btn-text: #fffdf8;
  --shadow: 0 1px 1px rgba(40, 30, 10, .04), 0 8px 24px -8px rgba(40, 30, 10, .14);
  --shadow-lg: 0 20px 50px -18px rgba(23, 20, 15, .45);
  --radius: 22px;
  --tab-h: 52px;
  --tab-pad: max(calc(env(safe-area-inset-bottom) - 20px), 6px);
  --ribbon-black: #17140f;
  --ribbon: linear-gradient(90deg, var(--ribbon-black) 0 20%, var(--de-red) 20% 40%, var(--gold) 40% 60%, var(--rw-blue) 60% 80%, var(--rw-green) 80% 100%);
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Jakarta", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1113;
    --surface: #171b1e;
    --surface-2: #21272b;
    --text: #f4efe6;
    --muted: #9ba3a7;
    --line: #2a3136;
    --link: #4cc3f0;
    --ok: #3fae74;
    --love: #ff5a52;
    --love-soft: #3a1d1c;
    --gold-soft: #3a3010;
    --gold-ink: #f5c400;
    --btn: #f5c400;
    --ribbon-black: #4a4540;
    --btn-text: #17140f;
    --shadow: 0 1px 1px rgba(0, 0, 0, .3), 0 8px 24px -8px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
/* Kein overflow: hidden an html/body: Das würde auf dem iPhone alles abschneiden, was iOS als „außerhalb“
   meldet (unten ~60px). Das Dokument scrollt trotzdem nicht, weil #app fest positioniert ist. */
html, body { margin: 0; background: var(--bg); color: var(--text); height: 100%; overscroll-behavior: none; }
html { background: var(--surface); }
/* App-Hülle: Das Dokument selbst scrollt nie, nur der Inhaltsbereich (.scroll). Die Tab-Leiste ist ein normales
   Element darunter statt „position: fixed“ – so kann sie auf dem iPhone beim Scrollen nicht mehr wandern. */
#app { position: fixed; inset: 0; height: var(--app-h, auto); display: flex; flex-direction: column; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior-y: contain; -webkit-overflow-scrolling: touch; }
body { font: 16px/1.45 var(--sans); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--link); }
h1, h2, h3, .display { font-family: var(--display); font-optical-sizing: auto; letter-spacing: -.01em; }
.ribbon { height: 5px; background: var(--ribbon); }

.splash { display: grid; place-items: center; height: 100dvh; }
.splash svg { width: 84px; height: 84px; animation: spin 14s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.view { max-width: 640px; margin: 0 auto; padding: calc(env(safe-area-inset-top) + 14px) 16px calc(var(--tab-h) + var(--tab-pad) + 24px); }
.view.flush { padding-top: 0; }
.topbar { display: flex; align-items: center; gap: 10px; min-height: 52px; margin-bottom: 12px; }
.topbar h1 { font-size: 32px; font-weight: 600; margin: 0; flex: 1; line-height: 1.1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.icon-btn { width: 42px; height: 42px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); display: inline-grid; place-items: center; flex: none; color: var(--text); text-decoration: none; }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn.glass { background: rgba(255, 255, 255, .18); border-color: rgba(255, 255, 255, .28); color: #fff; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; margin-bottom: 14px; }
.card-title { font-family: var(--display); font-size: 19px; font-weight: 600; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.section-title { font-size: 12px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .09em; margin: 26px 4px 10px; display: flex; align-items: center; gap: 8px; }
.section-title::before { content: ""; width: 14px; height: 3px; border-radius: 3px; background: var(--ribbon); flex: none; }
.section-title .spacer { flex: 1; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.empty { text-align: center; color: var(--muted); padding: 30px 16px; }
.empty .big { font-size: 42px; display: block; margin-bottom: 8px; }
.empty b { color: var(--text); display: block; font-family: var(--display); font-size: 19px; margin-bottom: 2px; }

/* ---------- Start: Hero ---------- */
.hero { position: relative; margin: 0 -16px 16px; min-height: 380px; color: #fff; border-radius: 0 0 34px 34px; overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-lg); isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -2; background: linear-gradient(155deg, #0a7fb0 0%, #11687a 45%, #20603d 100%); }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; display: block; animation: kenburns 30s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.12) translate(-1%, -1%); } }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 10, 8, .45) 0%, rgba(10, 10, 8, 0) 32%, rgba(10, 10, 8, .15) 55%, rgba(10, 10, 8, .78) 100%); }
.hero .sun { position: absolute; z-index: -1; right: -60px; top: -40px; width: 260px; height: 260px; opacity: .95; }
.hero.has-photo .sun { width: 120px; height: 120px; right: 16px; top: auto; bottom: 120px; opacity: 0; }
.hero-top { display: flex; align-items: flex-start; gap: 10px; padding: calc(env(safe-area-inset-top) + 18px) 20px 0; }
.hero-top .greet { flex: 1; text-shadow: 0 1px 12px rgba(0, 0, 0, .25); }
.hero-date { font-size: 14px; opacity: .9; font-weight: 600; }
.hero-greet { font-size: 30px; font-weight: 600; margin: 2px 0 0; line-height: 1.1; }
.hero-count { margin-top: auto; padding: 0 20px 18px; text-shadow: 0 1px 16px rgba(0, 0, 0, .35); }
.hero-count .label { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .9; }
.hero-count .num { font-family: var(--display); font-size: 76px; font-weight: 700; line-height: .95; letter-spacing: -.03em; margin-top: 6px; }
.hero-count .num small { font-family: var(--sans); font-size: 20px; font-weight: 700; margin-left: 8px; letter-spacing: 0; }
.hero-count .what { font-weight: 700; font-size: 17px; margin-top: 8px; }
.hero-count .when { font-size: 14px; opacity: .92; }
.hero-count .plan { margin-top: 12px; border: 0; background: var(--gold); color: var(--de-black); font-weight: 800; border-radius: 14px; padding: 10px 16px; }
.journey { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 12px; font-weight: 700; opacity: .95; }
.journey .track { flex: 1; height: 6px; border-radius: 9px; background: rgba(255, 255, 255, .28); position: relative; }
.journey .track > div { position: absolute; inset: 0 auto 0 0; border-radius: 9px; background: linear-gradient(90deg, var(--rw-blue), var(--gold)); }
.journey .track > div::after { content: "❤"; position: absolute; right: -8px; top: 50%; transform: translateY(-52%); font-size: 15px; color: #fff; text-shadow: 0 0 8px rgba(221, 42, 42, .8); }
.potd { position: absolute; right: 14px; top: calc(env(safe-area-inset-top) + 72px); border: 0; border-radius: 999px; padding: 6px 11px 6px 9px; font-size: 12px; font-weight: 700;
  color: #fff; background: rgba(0, 0, 0, .28); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); display: flex; gap: 6px; align-items: center; }
.hero .ribbon { position: absolute; left: 0; right: 0; bottom: 0; }

/* Grüße */
.nudge-main { width: 100%; border: 0; border-radius: 18px; padding: 15px; font-size: 18px; font-weight: 800; background: var(--love); color: #fff;
  display: flex; align-items: center; justify-content: center; gap: 10px; box-shadow: 0 10px 24px -10px rgba(221, 42, 42, .7); transition: transform .12s; }
.nudge-main:active { transform: scale(.97); }
.nudge-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 10px; }
.nudge-row button { border: 1px solid var(--line); background: var(--surface-2); border-radius: 14px; height: 48px; font-size: 22px; transition: transform .12s; }
.nudge-row button:active { transform: scale(.9); }
.nudge-last { margin-top: 12px; font-size: 14px; color: var(--muted); text-align: center; }
.heart-pop { position: fixed; pointer-events: none; font-size: 34px; animation: rise 1.1s ease-out forwards; z-index: 99; }
@keyframes rise { to { transform: translateY(-170px) scale(1.6); opacity: 0; } }

.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 4px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 14px; text-decoration: none; color: var(--text); display: flex; gap: 12px; align-items: center; }
.stat .ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; flex: none; }
.stat .ic svg { width: 22px; height: 22px; }
.stat .n { font-family: var(--display); font-size: 28px; font-weight: 700; line-height: 1; }
.stat .t { font-size: 12px; color: var(--muted); font-weight: 600; margin-top: 2px; }
.ic.blue { background: color-mix(in srgb, var(--rw-blue) 16%, transparent); color: var(--rw-blue); }
.ic.green { background: color-mix(in srgb, var(--rw-green) 18%, transparent); color: var(--ok); }
.ic.red { background: var(--love-soft); color: var(--love); }
.ic.gold { background: var(--gold-soft); color: var(--gold-ink); }

.memory { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; }
.memory::-webkit-scrollbar { display: none; }
.memory button { flex: none; width: 150px; height: 190px; border: 0; padding: 0; border-radius: 20px; overflow: hidden; position: relative; scroll-snap-align: start; box-shadow: var(--shadow); background: var(--surface-2); }
.memory img { width: 100%; height: 100%; object-fit: cover; display: block; }
.memory span { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px 10px 8px; color: #fff; font-size: 12px; font-weight: 700; text-align: left; background: linear-gradient(transparent, rgba(0, 0, 0, .7)); }

/* ---------- Zeilen ---------- */
.rows { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); min-height: 58px; }
.row:last-child { border-bottom: 0; }
.row .main { flex: 1; min-width: 0; }
.row .title { overflow-wrap: anywhere; font-weight: 600; }
.row .meta { font-size: 13px; color: var(--muted); margin-top: 2px; }
.row.done .title { text-decoration: line-through; color: var(--muted); font-weight: 500; }
.row.tap, .row .tap { cursor: pointer; }
.row .chev { color: var(--muted); }
.check { width: 28px; height: 28px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--muted) 70%, transparent); background: transparent; flex: none; display: grid; place-items: center; padding: 0; transition: background .15s, border-color .15s, transform .15s; }
.check:active { transform: scale(.85); }
.check.on { background: var(--ok); border-color: var(--ok); }
.check.on::after { content: ""; width: 7px; height: 13px; border: solid #fff; border-width: 0 3px 3px 0; transform: translateY(-2px) rotate(45deg); }
.qty { background: var(--gold-soft); color: var(--gold-ink); border-radius: 8px; padding: 2px 8px; font-size: 13px; font-weight: 700; flex: none; }
.avatar { width: 26px; height: 26px; border-radius: 50%; color: #fff; font-size: 12px; font-weight: 800; display: inline-grid; place-items: center; flex: none; }
.avatars { display: inline-flex; }
.avatars .avatar + .avatar { margin-left: -8px; box-shadow: 0 0 0 2px var(--surface); }
.badge { display: inline-block; font-size: 11px; font-weight: 800; padding: 1px 7px; border-radius: 999px; background: var(--love-soft); color: var(--love); text-transform: uppercase; letter-spacing: .04em; }

.list-card { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--text); }
.list-card .emoji { font-size: 26px; width: 50px; height: 50px; display: grid; place-items: center; background: var(--surface-2); border-radius: 16px; flex: none; }
.list-card .name { font-weight: 700; font-size: 17px; }
.progress { height: 6px; background: var(--surface-2); border-radius: 99px; overflow: hidden; margin-top: 8px; }
.progress > div { height: 100%; background: linear-gradient(90deg, var(--rw-green), var(--gold)); border-radius: 99px; }

/* ---------- Eingaben ---------- */
.addbar { display: flex; gap: 8px; margin-bottom: 12px; position: sticky; top: calc(env(safe-area-inset-top) + 6px); z-index: 5; }
.addbar input { flex: 1; min-width: 0; box-shadow: var(--shadow); }
input[type=text], input[type=password], input[type=date], input[type=time], select, textarea {
  width: 100%; border: 1px solid var(--line); background: var(--surface); border-radius: 16px; padding: 12px 14px; font-size: 16px; outline: none; -webkit-appearance: none; appearance: none; min-height: 50px; }
input[type=date], input[type=time] { display: block; }
select { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
input:focus, select:focus, textarea:focus { border-color: var(--rw-blue); box-shadow: 0 0 0 4px color-mix(in srgb, var(--rw-blue) 18%, transparent); }
textarea { min-height: 84px; resize: vertical; }
.btn { border: 0; border-radius: 16px; padding: 12px 18px; font-weight: 800; background: var(--btn); color: var(--btn-text); min-height: 50px; text-decoration: none; display: inline-grid; place-items: center; }
.btn.secondary { background: var(--surface-2); color: var(--text); }
.btn.gold { background: var(--gold); color: var(--de-black); }
.btn.danger { background: transparent; color: var(--love); }
.btn.block { width: 100%; }
.btn:disabled { opacity: .5; }
.btn-add { width: 50px; padding: 0; font-size: 26px; line-height: 1; flex: none; background: var(--gold); color: var(--de-black); }
.link-btn { border: 0; background: none; color: var(--link); font-weight: 700; padding: 4px; font-size: 13px; text-transform: none; letter-spacing: 0; }

.chips { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 14px; }
.chip { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 7px 13px; font-size: 14px; font-weight: 600; }
.chip.on { background: var(--btn); color: var(--btn-text); border-color: var(--btn); }
.chip.add { color: var(--link); border-style: dashed; }

.seg { display: flex; background: var(--surface-2); border-radius: 16px; padding: 4px; gap: 4px; }
.seg button, .seg a { flex: 1; border: 0; background: transparent; border-radius: 12px; padding: 9px 6px; font-size: 14px; font-weight: 700; color: var(--muted); text-align: center; text-decoration: none; }
.seg .on { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.seg.big { margin-bottom: 14px; }
.seg.big a, .seg.big button { padding: 11px 6px; font-size: 15px; }

.field { margin-bottom: 14px; }
.field > label, .field > div > label { display: block; font-size: 12px; color: var(--muted); margin: 0 0 6px 4px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 4px; }
.switch { position: relative; width: 52px; height: 32px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch span { position: absolute; inset: 0; background: var(--line); border-radius: 99px; transition: .2s; }
.switch span::before { content: ""; position: absolute; width: 26px; height: 26px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
.switch input:checked + span { background: var(--ok); }
.switch input:checked + span::before { transform: translateX(20px); }

/* ---------- Tab-Balken ---------- */
.tabbar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; justify-content: space-around;
  background: color-mix(in srgb, var(--surface) 84%, transparent); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  border-top: 1px solid var(--line); padding-bottom: var(--tab-pad); }
.tabbar a { flex: 1; max-width: 120px; height: var(--tab-h); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  text-decoration: none; color: var(--muted); font-size: 11px; font-weight: 700; position: relative; }
.tabbar a svg { width: 24px; height: 24px; transition: transform .2s; }
.tabbar a.on { color: var(--text); }
.tabbar a.on svg { transform: translateY(-1px); }
.tabbar a.on::before { content: ""; position: absolute; top: 0; left: 50%; width: 30px; height: 4px; transform: translateX(-50%); border-radius: 0 0 6px 6px; background: var(--ribbon); }
.tabbar .dot { position: absolute; top: 8px; left: calc(50% + 7px); min-width: 18px; height: 18px; border-radius: 99px; background: var(--love); color: #fff; font-size: 10px; font-weight: 800; display: grid; place-items: center; padding: 0 5px; border: 2px solid var(--surface); }

.fab { position: absolute; right: max(16px, calc(50% - 304px)); bottom: calc(var(--tab-h) + var(--tab-pad) + 16px); z-index: 15;
  width: 60px; height: 60px; border-radius: 22px; border: 0; background: var(--gold); color: var(--de-black); font-size: 32px; font-weight: 400;
  box-shadow: 0 12px 28px -8px rgba(160, 120, 0, .65); display: grid; place-items: center; cursor: pointer; }
.fab:active { transform: scale(.94); }
.fab input { display: none; }

/* ---------- Sheet ---------- */
.backdrop { position: fixed; inset: 0; background: rgba(14, 12, 8, .45); z-index: 40; opacity: 0; transition: opacity .2s; }
.backdrop.show { opacity: 1; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; max-width: 640px; margin: 0 auto; background: var(--bg); border-radius: 28px 28px 0 0; max-height: 92dvh; overflow-y: auto;
  -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 8px 18px calc(env(safe-area-inset-bottom) + 20px); transform: translateY(100%); transition: transform .28s cubic-bezier(.2, .8, .2, 1); }
.sheet.show { transform: none; }
.sheet .grab { width: 42px; height: 5px; border-radius: 9px; background: var(--line); margin: 4px auto 14px; }
.sheet .sheet-x { position: absolute; top: 10px; right: 12px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--surface-2); color: var(--muted);
  font-size: 22px; line-height: 1; display: grid; place-items: center; cursor: pointer; z-index: 2; }
.sheet h3 { padding-right: 40px; }
.sheet h3 { margin: 0 0 16px; font-size: 24px; font-weight: 600; }
.sheet .actions { display: flex; gap: 8px; margin-top: 18px; }
.sheet .actions .btn { flex: 1; }

/* ---------- Kalender ---------- */
.cal-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.cal-head .title { flex: 1; font-family: var(--display); font-weight: 600; font-size: 22px; text-align: center; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px; }
.cal-grid .dow { text-align: center; font-size: 11px; color: var(--muted); font-weight: 800; padding: 4px 0 6px; text-transform: uppercase; letter-spacing: .05em; }
.cal-day { aspect-ratio: 1 / 1.05; border: 0; background: transparent; border-radius: 14px; display: flex; flex-direction: column; align-items: center; padding: 5px 0 0; font-size: 15px; }
.cal-day.other { color: var(--muted); opacity: .4; }
.cal-day .d { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; font-weight: 700; }
.cal-day.today .d { background: var(--love); color: #fff; }
.cal-day.sel { background: var(--surface-2); }
.cal-day.meet { background: var(--gold-soft); }
.cal-day.meet.sel { box-shadow: inset 0 0 0 2px var(--gold); }
.cal-day .dots { display: flex; gap: 3px; margin-top: 3px; }
.cal-day .dots i { width: 6px; height: 6px; border-radius: 50%; display: block; }
.ev-bar { width: 4px; align-self: stretch; border-radius: 4px; flex: none; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; font-weight: 600; color: var(--muted); margin: 12px 4px 0; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }

/* ---------- Momente / Galerie ---------- */
.month-head { font-family: var(--display); font-size: 20px; font-weight: 600; margin: 22px 2px 10px; display: flex; align-items: baseline; gap: 8px; }
.month-head small { font-family: var(--sans); font-size: 12px; color: var(--muted); font-weight: 700; }
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; border-radius: 18px; overflow: hidden; }
.pgrid button { border: 0; padding: 0; aspect-ratio: 1; background: var(--surface-2); position: relative; overflow: hidden; }
.pgrid.lead button:first-child { grid-column: span 2; grid-row: span 2; }
.pgrid img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s, opacity .4s; opacity: 0; }
.pgrid img.ld { opacity: 1; }
.pgrid button:active img { transform: scale(.96); }
.pgrid .fav { position: absolute; right: 6px; top: 5px; font-size: 14px; color: #fff; text-shadow: 0 1px 4px rgba(0, 0, 0, .6); }
.upload-bar { position: fixed; left: 50%; top: calc(env(safe-area-inset-top) + 10px); transform: translateX(-50%); z-index: 50; background: var(--btn); color: var(--btn-text);
  border-radius: 999px; padding: 9px 16px; font-size: 14px; font-weight: 700; box-shadow: var(--shadow-lg); display: flex; gap: 10px; align-items: center; }
.upload-bar .bar { width: 80px; height: 5px; background: rgba(255, 255, 255, .25); border-radius: 9px; overflow: hidden; }
.upload-bar .bar div { height: 100%; background: var(--gold); transition: width .3s; }

.lightbox { position: fixed; inset: 0; z-index: 38; background: #000; color: #fff; display: flex; flex-direction: column; touch-action: pan-y; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.lightbox .lb-top, .lightbox .lb-bottom { position: absolute; left: 0; right: 0; z-index: 2; padding: 12px 16px; display: flex; align-items: center; gap: 10px; }
.lightbox .lb-top { top: 0; padding-top: calc(env(safe-area-inset-top) + 10px); background: linear-gradient(rgba(0, 0, 0, .55), transparent); }
.lightbox .lb-bottom { bottom: 0; padding-bottom: calc(env(safe-area-inset-bottom) + 14px); background: linear-gradient(transparent, rgba(0, 0, 0, .75)); flex-direction: column; align-items: stretch; }
.lightbox .lb-stage { flex: 1; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.lightbox .lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; transition: transform .25s; user-select: none; -webkit-user-drag: none; }
.lightbox .cap { font-family: var(--display); font-size: 20px; font-weight: 600; }
.lightbox .sub { font-size: 13px; opacity: .8; }
.lightbox .lb-actions { display: flex; gap: 8px; margin-top: 10px; }
.lightbox .lb-actions button { flex: 1; border: 0; border-radius: 14px; height: 44px; background: rgba(255, 255, 255, .14); color: #fff; font-weight: 700; font-size: 14px; }
.lightbox .lb-actions button.on { background: var(--love); }
.lightbox .count { flex: 1; text-align: center; font-weight: 700; font-size: 14px; opacity: .85; }
.lightbox .nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; border: 0; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .15); color: #fff; display: none; place-items: center; }
.lightbox .nav svg { width: 22px; height: 22px; }
@media (hover: hover) { .lightbox .nav { display: grid; } }

/* ---------- Login ---------- */
.auth-wrap { min-height: 100dvh; position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center;
  background: linear-gradient(160deg, #0a7fb0 0%, #11687a 50%, #20603d 100%); }
.auth-wrap .sun { flex: none; margin-top: calc(env(safe-area-inset-top) + 56px); width: min(150px, 22vh); height: min(150px, 22vh); animation: spin 60s linear infinite; }
.auth-wrap .brand { text-align: center; color: #fff; margin: 14px 0 28px; }
.auth-wrap .brand h1 { font-size: 44px; margin: 0; font-weight: 700; }
.auth-wrap .brand p { margin: 4px 24px 0; opacity: .9; }
.auth-lang { position: absolute; top: calc(env(safe-area-inset-top) + 14px); right: 14px; z-index: 2; }
.auth-lang .seg { background: rgba(0, 0, 0, .2); }
.auth-lang .seg button { color: rgba(255, 255, 255, .8); padding: 6px 12px; }
.auth-lang .seg .on { background: #fff; color: var(--de-black); }
.auth-card { position: relative; margin-top: auto !important; background: var(--bg); border-radius: 30px 30px 0 0; padding: 24px 20px calc(env(safe-area-inset-bottom) + 28px); max-width: 520px; width: 100%; margin: 0 auto; }
.auth-card .ribbon { position: absolute; top: 0; left: 30px; right: 30px; border-radius: 0 0 6px 6px; }
.auth-card .lead { color: var(--muted); margin: 6px 0 18px; text-align: center; }
.error { color: var(--love); font-size: 14px; margin: 6px 4px; min-height: 1em; font-weight: 600; }

.code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; background: var(--surface-2); border-radius: 12px; padding: 10px 12px; word-break: break-all; }
.steps { padding-left: 20px; margin: 8px 0; }
.steps li { margin-bottom: 6px; }
details { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 6px; }
details summary { cursor: pointer; font-weight: 700; padding: 6px 0; }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatches button { width: 38px; height: 38px; border-radius: 50%; border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--line); }
.swatches button.on { box-shadow: 0 0 0 3px var(--text); }
.setting-row { display: flex; align-items: center; gap: 12px; padding: 4px 0; }
.setting-row .grow { flex: 1; }

#toast { position: fixed; left: 50%; bottom: calc(var(--tab-h) + var(--tab-pad) + 22px); transform: translate(-50%, 20px); background: var(--de-black); color: #fff;
  padding: 11px 18px; border-radius: 16px; font-size: 14px; font-weight: 600; opacity: 0; pointer-events: none; transition: .25s; z-index: 60; max-width: calc(100% - 32px); text-align: center; box-shadow: var(--shadow-lg); }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
.offline { background: var(--gold); color: var(--de-black); text-align: center; font-size: 13px; font-weight: 700; padding: calc(env(safe-area-inset-top) + 4px) 8px 4px; flex: none; z-index: 30; }
.foot { text-align: center; color: var(--muted); font-size: 13px; margin-top: 18px; }
.foot .ribbon { width: 60px; margin: 0 auto 10px; border-radius: 4px; }

/* ---------- Geld ---------- */
.balance { position: relative; overflow: hidden; border-radius: 26px; padding: 22px 20px 26px; margin-bottom: 14px; color: #fff; isolation: isolate; box-shadow: var(--shadow-lg);
  background: linear-gradient(155deg, #0a7fb0 0%, #11687a 50%, #20603d 100%); }
.balance.bal-neg { background: linear-gradient(155deg, #3a2a1f 0%, #7a1f1f 55%, #dd2a2a 100%); }
.balance .sun { position: absolute; right: -50px; top: -50px; width: 190px; height: 190px; z-index: -1; opacity: .9; }
.balance .label { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; opacity: .92; }
.balance .big { font-family: var(--display); font-size: 52px; font-weight: 700; line-height: 1.05; margin-top: 6px; letter-spacing: -.02em; }
.balance .sub { opacity: .9; margin-top: 4px; }
.balance .settle-btn { margin-top: 14px; border: 0; background: var(--gold); color: var(--de-black); font-weight: 800; border-radius: 14px; padding: 10px 16px; }
.balance .ribbon { position: absolute; left: 0; right: 0; bottom: 0; }
.month-total { font-family: var(--display); font-size: 36px; font-weight: 700; text-align: center; margin: 2px 0 12px; }
.catbars { display: flex; flex-direction: column; gap: 10px; }
.catbar { display: flex; gap: 10px; align-items: center; }
.catbar .e { font-size: 20px; width: 28px; text-align: center; }
.catbar .grow { flex: 1; min-width: 0; }
.catbar .lbl { display: flex; justify-content: space-between; font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.catbar .track { height: 8px; border-radius: 9px; background: var(--surface-2); overflow: hidden; }
.catbar .track div { height: 100%; border-radius: 9px; }
.cat-ic { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; font-size: 20px; flex: none; }
.amt-col { text-align: right; flex: none; }
.amt-col .a { font-weight: 800; }
.amt-col .d { font-size: 12.5px; font-weight: 700; margin-top: 2px; }
.pos { color: var(--ok); }
.neg { color: var(--love); }
.money-mini { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.money-mini .ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; flex: none; }
.money-mini .ic svg { width: 22px; height: 22px; }
.money-mini .amt { font-family: var(--display); font-size: 24px; font-weight: 700; }
.money-mini .chev { color: var(--muted); }
.amount-field { display: flex; align-items: baseline; justify-content: center; gap: 8px; margin: 0 0 16px; padding: 10px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.amount-field input { border: 0 !important; box-shadow: none !important; background: transparent; font-family: var(--display); font-size: 44px; font-weight: 700; text-align: right; width: 60%; padding: 0; min-height: 0; }
.amount-field span { font-family: var(--display); font-size: 30px; font-weight: 600; color: var(--muted); }
.preview { text-align: center; font-weight: 700; color: var(--muted); margin: -4px 0 14px; display: flex; gap: 8px; justify-content: center; align-items: center; }
@media (max-width: 380px) { .tabbar a { font-size: 10px; } .tabbar a svg { width: 22px; height: 22px; } }

/* ---------- Wir-Übersicht ---------- */
.hub { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hub-tile { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); padding: 16px 14px; text-decoration: none; color: var(--text);
  display: flex; flex-direction: column; gap: 3px; min-height: 128px; overflow: hidden; }
.hub-tile::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--ribbon); opacity: 0; transition: opacity .2s; }
.hub-tile:active::after { opacity: 1; }
.hub-emo { font-size: 30px; margin-bottom: auto; }
.hub-tile b { font-family: var(--display); font-size: 18px; font-weight: 600; margin-top: 10px; }
.hub-tile small { color: var(--muted); font-size: 12.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hub-moods { letter-spacing: 1px; }
.hub-dot { position: absolute; top: 14px; right: 14px; width: 10px; height: 10px; border-radius: 50%; background: var(--love); box-shadow: 0 0 0 3px var(--love-soft); }
.badge.gold { background: var(--gold-soft); color: var(--gold-ink); }

/* ---------- Besondere Tage ---------- */
.special-strip { display: flex; gap: 8px; overflow-x: auto; margin: -2px -16px 14px; padding: 0 16px 2px; scrollbar-width: none; }
.special-strip::-webkit-scrollbar { display: none; }
.sp-chip { flex: none; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); background: var(--surface); border-radius: 18px; padding: 9px 14px 9px 10px; text-align: left; box-shadow: var(--shadow); }
.sp-chip .e { font-size: 24px; }
.sp-chip b { display: block; font-size: 14px; }
.sp-chip small { color: var(--muted); font-weight: 600; font-size: 12px; }
.sp-chip.today { background: var(--gold); border-color: var(--gold); color: var(--de-black); }
.sp-chip.today small { color: var(--de-black); }
.together-card { position: relative; overflow: hidden; isolation: isolate; border-radius: 26px; padding: 22px 20px 26px; margin-bottom: 14px; color: #fff; box-shadow: var(--shadow-lg);
  background: linear-gradient(155deg, #0a7fb0 0%, #11687a 50%, #20603d 100%); }
.together-card .sun { position: absolute; right: -40px; top: -40px; width: 170px; height: 170px; z-index: -1; }
.together-card .label { font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; opacity: .92; }
.together-card .big { font-family: var(--display); font-size: 36px; font-weight: 700; margin-top: 6px; line-height: 1.1; }
.together-card .ribbon { position: absolute; left: 0; right: 0; bottom: 0; }

/* ---------- Frage des Tages ---------- */
.q-card { background: linear-gradient(180deg, var(--gold-soft), var(--surface) 70%); }
.q-label { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-ink); }
.q-text { font-family: var(--display); font-size: 22px; font-weight: 600; line-height: 1.25; margin: 6px 0 12px; }
.bubble { background: var(--surface-2); border-radius: 18px 18px 18px 6px; padding: 10px 14px; margin-top: 8px; overflow-wrap: anywhere; }
.bubble.mine { background: color-mix(in srgb, var(--rw-blue) 14%, var(--surface)); border-radius: 18px 18px 6px 18px; }
.bubble .who { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; color: var(--muted); margin-bottom: 4px; }
.bubble .who .avatar { width: 20px; height: 20px; font-size: 10px; }

/* ---------- Stimmung ---------- */
.mood-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.mood-row button { height: 54px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface-2); font-size: 28px; transition: transform .12s; filter: grayscale(.35); }
.mood-row button.on { background: var(--gold-soft); border-color: var(--gold); filter: none; transform: scale(1.06); box-shadow: 0 6px 16px -8px rgba(160, 120, 0, .6); }
.mood-row button:active { transform: scale(.92); }
.mood-note { display: flex; gap: 8px; margin-top: 10px; }
.mood-note .btn { min-height: 50px; width: 54px; padding: 0; }
.mood-partner { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 14px; }
.mood-line { margin-bottom: 14px; }
.mood-who { display: flex; align-items: center; gap: 8px; font-weight: 700; margin-bottom: 6px; }
.mood-who b { margin-left: auto; font-size: 20px; }
.mood-dots { display: grid; grid-template-columns: repeat(15, 1fr); gap: 3px; }
.mood-dots i { aspect-ratio: 1; border-radius: 6px; display: grid; place-items: center; font-style: normal; font-size: 11px; background: var(--surface-2); }
.mood-dots i.m1 { background: #f6c1bd; } .mood-dots i.m2 { background: #f9dcb5; } .mood-dots i.m3 { background: #f1e7c4; }
.mood-dots i.m4 { background: #cfe8d6; } .mood-dots i.m5 { background: #a9dcbc; }
@media (prefers-color-scheme: dark) {
  .mood-dots i.m1 { background: #5a2624; } .mood-dots i.m2 { background: #5a4020; } .mood-dots i.m3 { background: #4a4428; }
  .mood-dots i.m4 { background: #24452f; } .mood-dots i.m5 { background: #1f5a36; }
}

/* ---------- Wochenenden ---------- */
.trip-box { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 12px; margin-bottom: 10px; }
.trip-h { font-weight: 800; margin-bottom: 8px; }
.grid3 { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 6px; }
.grid3 label { display: block; font-size: 11px; color: var(--muted); font-weight: 800; text-transform: uppercase; letter-spacing: .05em; margin: 0 0 4px 4px; }
.grid3 input { padding: 10px 8px; font-size: 15px; }
.tally { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tally-col { background: var(--surface-2); border-radius: 18px; padding: 12px; text-align: center; }
.tally-col .avatar { width: 34px; height: 34px; font-size: 15px; }
.tally-name { font-weight: 700; margin-top: 4px; }
.tally-n { font-family: var(--display); font-size: 40px; font-weight: 700; line-height: 1.1; }
.tally-marks { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; min-height: 26px; margin-top: 4px; }
.tm { display: inline-flex; gap: 3px; position: relative; height: 24px; align-items: stretch; }
.tm i { width: 3px; border-radius: 2px; background: currentColor; }
.tm.five::after { content: ""; position: absolute; left: -3px; right: -3px; top: 50%; height: 3px; border-radius: 2px; background: currentColor; transform: rotate(-28deg); }
.turn { text-align: center; font-weight: 700; margin-top: 12px; }
.wk-top { display: flex; align-items: center; gap: 12px; }
.wk-date { width: 50px; height: 54px; border-radius: 14px; background: var(--gold-soft); color: var(--gold-ink); display: flex; flex-direction: column; align-items: center; justify-content: center; flex: none; }
.wk-date b { font-family: var(--display); font-size: 22px; line-height: 1; }
.wk-date span { font-size: 11px; font-weight: 800; text-transform: uppercase; }
.wk-title { font-weight: 700; font-size: 16px; }
.wk-who { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.leg { display: flex; gap: 10px; margin-top: 6px; font-size: 14px; }
.leg-l { width: 22px; text-align: center; font-weight: 800; color: var(--muted); flex: none; }
.wk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.wk-past { border: 1px solid var(--line); background: var(--surface); border-radius: 20px; padding: 0; overflow: hidden; text-align: left; box-shadow: var(--shadow); }
.wk-cover { aspect-ratio: 4 / 3; background: var(--surface-2); display: grid; place-items: center; font-size: 32px; }
.wk-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wk-meta { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 2px; }

/* ---------- Ideen ---------- */
.dice { font-size: 18px; min-height: 58px; box-shadow: 0 12px 28px -12px rgba(160, 120, 0, .7); }
.ideas { display: flex; flex-direction: column; gap: 10px; }
.idea { display: flex; align-items: stretch; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; }
.idea.both { border-color: var(--love); box-shadow: 0 0 0 1px var(--love), var(--shadow); }
.idea.done { opacity: .6; }
.idea-main { flex: 1; min-width: 0; border: 0; background: none; text-align: left; display: flex; gap: 12px; align-items: center; padding: 12px 14px; }
.idea-emo { font-size: 26px; flex: none; }
.idea-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.idea-txt b { font-weight: 700; overflow-wrap: anywhere; }
.idea-txt small { color: var(--muted); font-size: 13px; }
.idea-txt .badge { align-self: flex-start; }
.idea-link { display: grid; place-items: center; width: 40px; text-decoration: none; font-weight: 800; color: var(--link); }
.idea-like { border: 0; border-left: 1px solid var(--line); background: var(--surface-2); width: 62px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  font-size: 22px; color: var(--muted); }
.idea-like.on { color: var(--love); background: var(--love-soft); }
.idea-like .avatar { width: 18px; height: 18px; font-size: 9px; }
.dice-result { text-align: center; padding: 10px 0 4px; }
.dice-emo { font-size: 64px; margin: 8px 0 4px; }
.dice-title { font-family: var(--display); font-size: 28px; font-weight: 700; line-height: 1.15; min-height: 1.2em; }
.dice-result.landed .dice-emo { animation: pop .5s; }
@keyframes pop { 40% { transform: scale(1.35) rotate(-8deg); } }

/* ---------- Filme & Serien ---------- */
.mini-btn { border: 1px solid var(--line); background: var(--surface-2); border-radius: 12px; padding: 7px 10px; font-size: 13px; font-weight: 800; flex: none; }
.mini-btn.gold { background: var(--gold); border-color: var(--gold); color: var(--de-black); font-size: 16px; padding: 5px 9px; }
.stars { color: var(--gold-ink); letter-spacing: 1px; }
.rate { display: flex; gap: 6px; }
.rate button { border: 0; background: none; font-size: 32px; color: var(--gold); padding: 0 2px; }
.party-banner { position: fixed; left: 12px; right: 12px; bottom: calc(var(--tab-h) + var(--tab-pad) + 12px); z-index: 30; max-width: 616px; margin: 0 auto;
  display: flex; align-items: center; gap: 10px; background: var(--de-black); color: #fff; padding: 10px 10px 10px 16px; border-radius: 20px; box-shadow: var(--shadow-lg); font-weight: 700; }
.party-banner span { flex: 1; font-size: 14px; }
.party-banner .btn { min-height: 42px; padding: 8px 14px; }
.party-banner .btn.secondary { background: rgba(255, 255, 255, .15); color: #fff; }
.party-overlay { position: fixed; inset: 0; z-index: 55; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: #fff; text-align: center; padding: 24px;
  background: radial-gradient(circle at 50% 40%, #11687a, #0e1113 70%); }
.party-title { font-family: var(--display); font-size: 26px; font-weight: 700; }
.party-num { font-family: var(--display); font-size: 120px; font-weight: 800; line-height: 1; min-height: 1em; color: var(--gold); }
.party-hint { opacity: .85; }
.party-overlay .btn.secondary { background: rgba(255, 255, 255, .15); color: #fff; margin-top: 20px; }

/* ---------- Wetter ---------- */
.wx-card { padding: 16px; }
.wx-main { display: flex; align-items: center; gap: 14px; }
.wx-big { display: flex; align-items: center; gap: 6px; font-size: 40px; flex: none; }
.wx-big span { font-family: var(--display); font-size: 40px; font-weight: 700; }
.wx-txt { display: flex; flex-direction: column; min-width: 0; }
.wx-txt b { font-size: 16px; }
.wx-txt small { color: var(--muted); font-size: 13px; font-weight: 600; }
.wx-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 13px; font-weight: 700; color: var(--muted); }
.wx-cta { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; font: inherit; color: var(--text); }
.wx-cta .wx-emo { font-size: 30px; }
.wx-cta span:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
.wx-cta small { color: var(--muted); font-size: 13px; }
.search-res { margin-bottom: 14px; }
.search-res .row { min-height: 52px; }
.pl-pos { font-weight: 700; color: var(--ok); margin: 0 4px 12px; min-height: 1em; }

/* ---------- Sprachnachrichten ---------- */
.rec { display: flex; align-items: center; gap: 12px; }
.rec .btn { min-height: 44px; padding: 8px 14px; }
.rec-info { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.rec-info small { color: var(--muted); font-size: 12px; font-weight: 600; }
.rec-info #rec-time { font-family: var(--display); font-size: 26px; font-weight: 700; line-height: 1.1; }
.rec-btn { width: 60px; height: 60px; border-radius: 50%; border: 0; background: var(--love); color: #fff; font-size: 26px; flex: none; display: grid; place-items: center;
  box-shadow: 0 10px 22px -10px rgba(221, 42, 42, .8); transition: transform .12s; }
.rec-btn:active { transform: scale(.92); }
.rec-btn.on { animation: recpulse 1.4s infinite; }
.rec-sq { width: 20px; height: 20px; border-radius: 5px; background: #fff; }
@keyframes recpulse { 0% { box-shadow: 0 0 0 0 rgba(221, 42, 42, .55); } 70% { box-shadow: 0 0 0 16px rgba(221, 42, 42, 0); } 100% { box-shadow: 0 0 0 0 rgba(221, 42, 42, 0); } }
.rec-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--love); margin-left: 4px; vertical-align: middle; animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .2; } }
.play-btn { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--btn); color: var(--btn-text); font-size: 15px; flex: none; display: grid; place-items: center; }
.play-btn.on { background: var(--gold); color: var(--de-black); }
.voice-list { margin-top: 12px; border-top: 1px solid var(--line); }
.voice-list .row { padding: 10px 0; }
.voice-row.fresh .play-btn { background: var(--love); color: #fff; }
.wave { display: flex; align-items: center; gap: 3px; height: 22px; }
.wave i { width: 3px; border-radius: 2px; background: color-mix(in srgb, var(--muted) 55%, transparent); }
.wave i:nth-child(3n) { height: 70%; } .wave i:nth-child(3n+1) { height: 40%; } .wave i:nth-child(3n+2) { height: 95%; } .wave i:nth-child(5n) { height: 55%; }
.neu { color: var(--love); }

/* ---------- Karte ---------- */
.map { height: 56vh; min-height: 300px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--surface-2); z-index: 1; }
.leaflet-container { font: inherit; }
.pin-wrap { background: none; border: 0; }
.pin { width: 36px; height: 36px; border-radius: 50% 50% 50% 6px; transform: rotate(-45deg); display: grid; place-items: center; box-shadow: 0 4px 10px rgba(0, 0, 0, .3); border: 2px solid #fff; }
.pin > * { transform: rotate(45deg); }
.pin.visited { background: var(--de-red); color: #fff; font-size: 16px; }
.pin.wish { background: var(--gold); font-size: 15px; }
.pin.visited, .pin.wish { line-height: 1; }
.pin.home { width: 40px; height: 40px; border-radius: 50%; transform: none; background: var(--c, #00a1de); font-size: 20px; }
.pin { font-style: normal; }
.pin-photo { width: 46px; height: 46px; border-radius: 14px; overflow: hidden; border: 3px solid #fff; box-shadow: 0 4px 12px rgba(0, 0, 0, .35); position: relative; background: #ddd; }
.pin-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pin-photo span { position: absolute; right: 2px; bottom: 2px; background: var(--de-black); color: #fff; font-size: 10px; font-weight: 800; border-radius: 8px; padding: 0 5px; }
.km-tip { background: var(--de-black); color: #fff; border: 0; border-radius: 999px; font-weight: 800; padding: 3px 10px; box-shadow: none; }
.km-tip::before { display: none; }

/* ---------- Jahresrückblick ---------- */
.year-card { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); background: linear-gradient(120deg, var(--gold-soft), var(--surface)); }
.year-card .sun { width: 46px; height: 46px; flex: none; }
.year-card div { flex: 1; display: flex; flex-direction: column; }
.year-card small { color: var(--muted); font-size: 13px; }
.year-hero { position: relative; overflow: hidden; isolation: isolate; border-radius: 28px; padding: 28px 22px 32px; margin-bottom: 14px; color: #fff; box-shadow: var(--shadow-lg);
  background: linear-gradient(160deg, #17140f 0%, #6b1d1d 38%, #0a7fb0 72%, #20603d 100%); }
.year-hero .sun { position: absolute; right: -50px; top: -50px; width: 220px; height: 220px; z-index: -1; opacity: .95; animation: spin 80s linear infinite; }
.year-hero .label { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; opacity: .9; }
.year-hero .big { font-family: var(--display); font-size: 54px; font-weight: 700; line-height: 1; margin-top: 8px; }
.year-hero .sub { margin-top: 10px; opacity: .92; max-width: 26ch; }
.year-hero .ribbon { position: absolute; left: 0; right: 0; bottom: 0; }
.year-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.ys { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 14px; display: flex; flex-direction: column; }
.ys span { font-size: 22px; }
.ys b { font-family: var(--display); font-size: 30px; font-weight: 700; line-height: 1.1; margin-top: 4px; }
.ys small { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.fav-block + .fav-block { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.fav-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 16px; }
.fav-grid, .pick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; border-radius: 16px; overflow: hidden; }
.fav-grid button, .pick-grid button { border: 0; padding: 0; aspect-ratio: 1; background: var(--surface-2); position: relative; overflow: hidden; }
.fav-grid img, .pick-grid img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pick-grid button .pk { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border-radius: 50%; border: 2px solid #fff; background: rgba(0, 0, 0, .25); }
.pick-grid button.on img { opacity: .75; }
.pick-grid button.on .pk { background: var(--love); }
.pick-grid button.on .pk::after { content: "♥"; color: #fff; font-size: 13px; display: grid; place-items: center; height: 100%; }
.pick-count { font-weight: 800; margin: 0 4px 8px; color: var(--muted); }
.month-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.month-tile { position: relative; aspect-ratio: 1; border: 0; padding: 0; border-radius: 16px; overflow: hidden; background: var(--surface-2); }
.month-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.month-tile span { position: absolute; left: 8px; bottom: 6px; color: #fff; font-weight: 800; font-size: 13px; text-shadow: 0 1px 6px rgba(0, 0, 0, .6); text-transform: capitalize; }
.month-tile.empty span { color: var(--muted); text-shadow: none; }

a.chip { text-decoration: none; color: var(--text); }
a.chip.on { color: var(--btn-text); }

/* ---------- Unterwegs-Modus ---------- */
.hero-count .trip-go { margin-top: 12px; background: rgba(255, 255, 255, .2); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.hero-count .plan { margin-right: 8px; }
.trip-card { position: relative; border-radius: 24px; padding: 16px; margin-bottom: 14px; color: #fff; overflow: hidden; box-shadow: var(--shadow-lg);
  background: linear-gradient(150deg, #0a7fb0, #20603d); }
.trip-card.mine { background: linear-gradient(150deg, #17140f, #3a2a1f); }
.trip-card .avatar { box-shadow: 0 0 0 2px rgba(255, 255, 255, .7); }
.trip-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.trip-top .muted { color: rgba(255, 255, 255, .8); }
.trip-eta { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: 10px; }
.trip-eta small { display: block; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.trip-eta b { font-family: var(--display); font-size: 48px; line-height: 1; }
.trip-in { font-weight: 800; font-size: 16px; padding-bottom: 6px; }
.trip-bar { position: relative; height: 6px; border-radius: 9px; background: rgba(255, 255, 255, .25); margin: 16px 6px 6px; }
.trip-bar > div { height: 100%; border-radius: 9px; background: var(--ribbon); }
.trip-bar > span { position: absolute; top: 50%; transform: translate(-50%, -55%); font-size: 20px; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .4)); }
.trip-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chip-s { font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 999px; background: rgba(255, 255, 255, .18); }
.chip-s.warn { background: var(--gold); color: var(--de-black); }
.chip-s.ok { background: rgba(63, 174, 116, .5); }
.trip-card .small.muted { color: rgba(255, 255, 255, .78); }
.trip-card .link-btn { color: #fff; text-decoration: underline; padding: 0; }
.trip-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.trip-card .mini-btn { background: rgba(255, 255, 255, .15); border-color: rgba(255, 255, 255, .25); color: #fff; }
.trip-card .btn.secondary { background: rgba(255, 255, 255, .15); color: #fff; }

/* ---------- Musik ---------- */
.songs { display: flex; flex-direction: column; gap: 10px; }
.song { display: flex; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 12px; box-shadow: var(--shadow); }
.card .song { border: 0; box-shadow: none; padding: 0; background: none; }
.song-cover { border-radius: 12px; object-fit: cover; flex: none; background: var(--surface-2); }
.song-cover.ph { display: grid; place-items: center; font-size: 22px; }
.song-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.song-main b { overflow-wrap: anywhere; }
.song-main small { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.song-note { font-family: var(--display); font-style: italic; margin-top: 4px; }
.song-meta { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); margin-top: 4px; }
.song-meta .avatar { width: 20px; height: 20px; font-size: 10px; }
.song-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.song-actions a.mini-btn { text-decoration: none; color: var(--text); }
.mini-btn.liked { color: var(--love); background: var(--love-soft); border-color: var(--love-soft); }
.sp-embed { width: 100%; border: 0; border-radius: 14px; display: block; }
#player-dock { position: fixed; left: 10px; right: 10px; bottom: calc(var(--tab-h) + var(--tab-pad) + 10px); z-index: 35; max-width: 620px; margin: 0 auto;
  border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-lg); background: #121212; }
#player-dock iframe { width: 100%; border: 0; display: block; }
#player-dock.yt iframe { aspect-ratio: 16 / 9; height: auto; }
#player-dock .dock-close { position: absolute; top: 6px; right: 6px; z-index: 2; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .6); color: #fff; font-size: 13px; }

/* Kacheln: lange Wörter (z. B. „Sprachnachrichten“) umbrechen */
.hub > * { min-width: 0; }
.hub-tile b { font-size: clamp(15px, 4.3vw, 18px); line-height: 1.15; overflow-wrap: anywhere; hyphens: auto; -webkit-hyphens: auto; }
.waiting-card { text-align: center; }
.waiting-card .big { font-size: 40px; display: block; margin-bottom: 6px; }
.waiting-card p { margin: 6px 0 12px; color: var(--muted); }
.idea-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.idea-chips button { border: 1px solid var(--line); background: var(--surface-2); border-radius: 999px; padding: 6px 12px; font-size: 14px; font-weight: 600; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-media .row { padding: 10px 0; }

/* ---------- Kennenlern-Spiel ---------- */
.kq-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 8px 0 2px; }
.kq-cat { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.kq-type { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: 2px 8px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--gold-ink); }
.kq-hint { font-size: 13px; font-weight: 700; color: var(--gold-ink); margin: -6px 0 12px; }
.kq-ans { display: flex; gap: 10px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 10px 12px; margin-top: 8px; }
.kq-ans.mine { background: color-mix(in srgb, var(--rw-blue) 10%, var(--surface)); }
.kq-ans > div { display: flex; flex-direction: column; min-width: 0; }
.kq-ans small { font-size: 11.5px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.kq-ans span { overflow-wrap: anywhere; font-weight: 600; }
.kq-ans em { font-family: var(--display); font-size: 14px; color: var(--muted); margin-top: 2px; }
.kq-ans.locked span { color: var(--muted); font-weight: 600; }
.kq-reveal { display: flex; flex-direction: column; }
.kq-wait { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; color: var(--muted); margin: 10px 4px 4px; }
.kq-rate { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); }
.kq-rate-btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 8px 0 10px; }
.kq-rate-btns button { border: 1px solid var(--line); background: var(--surface); border-radius: 14px; padding: 10px 4px; font-weight: 800; font-size: 14px; }
.kq-rate-btns button.on.right { background: color-mix(in srgb, var(--ok) 18%, var(--surface)); border-color: var(--ok); }
.kq-rate-btns button.on.close { background: var(--gold-soft); border-color: var(--gold); }
.kq-rate-btns button.on.wrong { background: var(--love-soft); border-color: var(--love); }
.kq-result { margin-top: 12px; text-align: center; font-family: var(--display); font-size: 22px; font-weight: 700; padding: 10px; border-radius: 16px; }
.kq-result.right { background: color-mix(in srgb, var(--ok) 15%, var(--surface)); color: var(--ok); }
.kq-result.close { background: var(--gold-soft); color: var(--gold-ink); }
.kq-result.wrong { background: var(--love-soft); color: var(--love); }
.kq-comments { margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.kq-c { display: flex; gap: 8px; align-items: flex-start; }
.kq-c .avatar { width: 24px; height: 24px; font-size: 11px; margin-top: 4px; }
.kq-c-body { background: var(--surface); border: 1px solid var(--line); border-radius: 14px 14px 14px 4px; padding: 7px 11px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; min-width: 0; flex: 1; }
.kq-c.mine .kq-c-body { background: color-mix(in srgb, var(--rw-blue) 10%, var(--surface)); }
.kq-c.rating .kq-c-body { border-color: var(--gold); }
.kq-c-body span { overflow-wrap: anywhere; }
.kq-c-body small { width: 100%; font-size: 11px; color: var(--muted); }
.kq-c-del { border: 0; background: none; color: var(--muted); font-size: 12px; padding: 6px; }
.kq-c-new { display: flex; gap: 8px; }
.kq-c-new .btn { width: 50px; padding: 0; flex: none; }
.play-btn.small { width: 32px; height: 32px; font-size: 12px; }
.rec-btn.small { width: 44px; height: 44px; font-size: 18px; }
.kq-actions { display: flex; gap: 8px; margin-top: 14px; }
.kq-actions .btn { flex: 1; font-size: 14px; }
.kq-actions .wa { background: #25d366; color: #fff; }
.kq-score { margin-top: 14px; display: flex; flex-direction: column; gap: 4px; }
.kq-score.big { margin-top: 0; }
.kq-score-row { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; }
.kq-score-row .grow { flex: 1; }
.kq-bar { height: 6px; border-radius: 9px; background: var(--surface-2); overflow: hidden; margin: 2px 0 8px 32px; }
.kq-bar div { height: 100%; border-radius: 9px; background: linear-gradient(90deg, var(--rw-green), var(--gold)); }
.kq-row { display: block; text-decoration: none; color: var(--text); }
.kq-row-q { font-family: var(--display); font-size: 17px; font-weight: 600; margin: 4px 0 8px; }
.kq-mini { display: flex; gap: 8px; align-items: center; font-size: 14px; margin-top: 4px; }
.kq-mini .avatar { width: 22px; height: 22px; font-size: 10px; flex: none; }
.kq-mini span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kq-badge { font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.kq-badge.right { background: color-mix(in srgb, var(--ok) 18%, transparent); color: var(--ok); }
.kq-badge.close { background: var(--gold-soft); color: var(--gold-ink); }
.kq-badge.wrong { background: var(--love-soft); color: var(--love); }

/* ---------- Schmale Android-Bildschirme (320–360 px) ---------- */
.topbar > div, .topbar > h1 { min-width: 0; }
.grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.btn { white-space: normal; line-height: 1.2; text-align: center; }
.push-hint { display: flex; gap: 12px; align-items: center; }
.push-hint .grow { flex: 1; min-width: 0; }
.push-hint .btn { flex: none; padding: 10px 14px; min-height: 44px; }
.cal-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); padding: 6px; }
.cal-day { min-width: 0; padding-left: 0; padding-right: 0; }
.cal-day .d { width: min(30px, 100%); height: auto; aspect-ratio: 1; }
.mood-row { gap: 6px; }
.mood-row button { min-width: 0; font-size: clamp(22px, 7vw, 28px); }
.card-title { flex-wrap: wrap; row-gap: 4px; }
.trip-actions .mini-btn { flex: 1 1 auto; }
@media (max-width: 360px) {
  .view { padding-left: 12px; padding-right: 12px; }
  .hero { margin-left: -12px; margin-right: -12px; }
  .card { padding: 14px; }
  .topbar h1 { font-size: 28px; }
  .hero-count .num { font-size: 64px; }
  .nudge-row { gap: 6px; }
  .stats { gap: 8px; }
  .stat { padding: 12px; gap: 8px; }
  .stat .ic { width: 38px; height: 38px; }
  .kq-rate-btns button { font-size: 13px; padding: 10px 2px; }
}
.push-hint .grow b { overflow-wrap: anywhere; hyphens: auto; -webkit-hyphens: auto; }
@media (max-width: 360px) {
  .special-strip, .memory { margin-left: -12px; margin-right: -12px; padding-left: 12px; padding-right: 12px; }
}
@media (max-width: 340px) { .push-hint > .stat { display: none; } }
/* Dunkelmodus: helle OSM-Karte abdunkeln */
@media (prefers-color-scheme: dark) { .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.85) contrast(.9) saturate(.8); } }

/* ---------- Standort teilen ---------- */
.mini-map { height: 170px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); z-index: 1; }
.mini-map.big { height: 260px; }
.loc-meta { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 12.5px; font-weight: 600; color: var(--muted); margin-top: 8px; }
.loc-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.loc-row b { flex: 1; min-width: 0; }
.loc-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(63, 174, 116, .6); animation: locpulse 2s infinite; flex: none; }
@keyframes locpulse { 70% { box-shadow: 0 0 0 10px rgba(63, 174, 116, 0); } 100% { box-shadow: 0 0 0 0 rgba(63, 174, 116, 0); } }
.acc-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 8px; }
.acc-table th, .acc-table td { text-align: left; padding: 6px 4px; border-bottom: 1px solid var(--line); vertical-align: top; }
.acc-table th { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.seg[data-seg="locdur"] button { white-space: nowrap; font-size: 13px; padding: 9px 2px; }

/* Version, Neuigkeiten, Live-Standort */
.hero-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.hero-acts .plan, .hero-count .hero-acts .plan { margin: 0; }
.hero-acts .plan, a.plan { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; font-size: 15px; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 0 rgba(61, 220, 132, .7); animation: livePulse 1.8s infinite; flex: none; }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(61, 220, 132, .7); } 70% { box-shadow: 0 0 0 9px rgba(61, 220, 132, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); } }
.pin.live { width: 38px; height: 38px; border-radius: 50%; transform: none; background: var(--c, #00a1de); color: #fff; font-weight: 800; font-size: 16px; animation: pinPulse 2s infinite; }
@keyframes pinPulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--c, #00a1de) 60%, transparent); } 70% { box-shadow: 0 0 0 14px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.news h3 { margin-bottom: 4px; }
.news ul { list-style: none; padding: 0; margin: 14px 0 18px; display: grid; gap: 12px; }
.news li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.35; }
.news li .ic { font-size: 22px; width: 30px; text-align: center; flex: none; }
.ver-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.ver-row:last-of-type { border-bottom: 0; }
.ver-ok { color: var(--ok); font-weight: 700; }
.ver-old { color: var(--love); font-weight: 700; }

/* ---------- Klassische Leiste (wie bis Version 1.7 / PR 10) ----------
   Auf dem iPhone die Standard-Variante: Die Seite scrollt normal, die Leiste ist unten fest verankert.
   So nutzt iOS die volle Bildschirmhöhe. Umschaltbar in den Einstellungen („Navigationsleiste“). */
html.classic, html.classic body { height: auto; overflow: visible; background: var(--bg); overscroll-behavior-y: none; }
html.classic body { min-height: 100dvh; overflow-x: clip; }
html.classic #app { position: static; display: block; overflow: visible; height: auto; }
html.classic .scroll { overflow: visible; min-height: 0; }
html.classic { --tab-pad: env(safe-area-inset-bottom); }
html.classic .tabbar { position: fixed; left: 0; right: 0; bottom: 0; transform: translateZ(0); }
html.classic .fab { position: fixed; }
html.classic .offline { position: sticky; top: 0; }

/* ---------- Wochenend-Tagebuch & Wunschliste ---------- */
.diary-entry { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; margin-bottom: 8px; }
.diary-who { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.diary-who .avatar { width: 26px; height: 26px; font-size: 12px; }
.diary-text { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.45; }
.mini-btn.on { background: var(--ok); border-color: var(--ok); color: #fff; }
.nav-adj { display: flex; align-items: center; gap: 8px; flex: none; }
.nav-adj b { min-width: 34px; text-align: center; font-variant-numeric: tabular-nums; }
