/* Reise-App · light only, in the style of Koralle: system font with rounded headings, neutral grey,
   white cards, one strong ocean blue, watercolours for places. */
:root {
  --bg: #f3f4f7;
  --card: #ffffff;
  --card-2: #f3f4f7;
  --ink: #17181c;
  --ink-2: #5e616d;
  --muted: #9b9da8;
  --line: #ebecf0;
  --accent: #1f7ae0;
  --accent-2: #4aaef6;
  --accent-soft: #e8f1fd;
  --accent-ink: #1667c4;
  --danger: #e0412b;
  --good: #1a9e5c;
  --c-foto: #2f86f0;
  --c-essen: #ff6a55;
  --c-cafe: #f0a21a;
  --c-bar: #8b5cf6;
  --c-sehens: #34a853;
  --c-natur: #14b8a6;
  --c-shop: #ec4899;
  --c-stay: #17181c;
  --radius: 26px;
  --shadow: 0 1px 2px rgba(20, 20, 30, 0.04), 0 8px 24px rgba(20, 20, 30, 0.06);
  --shadow-s: 0 1px 2px rgba(20, 20, 30, 0.05), 0 4px 14px rgba(20, 20, 30, 0.1);
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, sans-serif;
  --font-round: ui-rounded, 'SF Pro Rounded', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --tabbar: calc(64px + var(--safe-bottom));
  color-scheme: light only;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.4; -webkit-font-smoothing: antialiased; }
body { overflow: hidden; overscroll-behavior: none; }
#root { height: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
button:disabled { opacity: 0.45; cursor: default; }
input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { margin: 0; font-family: var(--font-round); letter-spacing: -0.01em; text-wrap: balance; }
p { margin: 0; }
.ic { flex: none; display: block; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ic.f { fill: currentColor; stroke: none; }
.pad { padding-left: max(18px, env(safe-area-inset-left, 0px)); padding-right: max(18px, env(safe-area-inset-right, 0px)); }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }
.center { text-align: center; }
.accent { color: var(--accent); }
.boot { height: 100%; display: grid; place-items: center; }

/* ---------- app frame ---------- */
.app { position: relative; height: 100%; max-width: 560px; margin: 0 auto; overflow: hidden; background: var(--bg); }
@media (min-width: 600px) { .app { box-shadow: 0 0 0 1px var(--line), 0 30px 80px rgba(30, 50, 80, 0.12); } body { background: #e9eef4; } }
.screen { position: absolute; inset: 0 0 var(--tabbar) 0; background: var(--bg); z-index: 30; }
.screen-scroll { height: 100%; overflow-y: auto; overscroll-behavior: contain; padding-bottom: 32px; -webkit-overflow-scrolling: touch; }
.page-head { padding-top: calc(var(--safe-top) + 22px); padding-bottom: 16px; }
.page-head h1 { font-size: 30px; font-weight: 700; }
.page-head p { color: var(--ink-2); margin-top: 3px; }
.card { background: var(--card); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); margin-bottom: 14px; }
.card-title { font-size: 17px; font-weight: 700; margin-bottom: 12px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 26px 0 12px; }
.sec { font-size: 21px; font-weight: 700; }
.list { display: grid; gap: 8px; }
.list > *, .sh-list > *, .results > * { min-width: 0; }
.hint { color: var(--muted); font-size: 13.5px; margin-top: 8px; line-height: 1.45; }
.hint.top { margin: 0 0 12px; }
.empty { display: grid; justify-items: start; gap: 8px; padding: 16px; border-radius: 20px; background: var(--card-2); color: var(--ink-2); line-height: 1.45; font-size: 14.5px; }
.empty b { color: var(--ink); }
.empty > .ic { color: var(--muted); }
.list-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.list-row > span { display: flex; flex-direction: column; }
.list-row small { color: var(--muted); font-size: 13.5px; }
.pill { display: inline-flex; align-items: center; padding: 5px 11px; border-radius: 999px; font-size: 13.5px; font-weight: 600; background: var(--card-2); color: var(--ink-2); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 20px; border-radius: 16px; font-weight: 600; font-size: 16px; text-decoration: none; transition: transform 0.12s; }
.btn:active:not(:disabled) { transform: scale(0.98); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 16px rgba(31, 122, 224, 0.28); }
.btn-soft { background: var(--accent-soft); color: var(--accent-ink); }
.btn-ghost { background: var(--card); color: var(--ink-2); border: 1px solid var(--line); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-done { background: #e7f6ee; color: var(--good); }
.btn-block { width: 100%; margin-top: 12px; }
.btn-sm { height: 38px; padding: 0 14px; font-size: 14.5px; border-radius: 12px; }
.btn-sm .ic { width: 17px; height: 17px; }
.round { width: 44px; height: 44px; border-radius: 50%; background: var(--card); box-shadow: var(--shadow-s); display: grid; place-items: center; flex: none; }
.icon-btn { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 12px; color: var(--muted); flex: none; }
.link { color: var(--accent-ink); font-weight: 600; text-decoration: none; }
.link.danger { color: var(--danger); }
.center-link { display: block; margin: 16px auto 0; }
.ghost-btn { display: inline-flex; align-items: center; gap: 4px; padding: 6px 2px; font-weight: 600; font-size: 14.5px; color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.ghost-btn .ic { width: 17px; height: 17px; }
.pill-btn { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 15px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-weight: 600; font-size: 14px; white-space: nowrap; }
.pill-btn .ic { width: 17px; height: 17px; }
.pill-btn.on { color: var(--c-essen); border-color: #ffd3cc; background: #fff4f2; }

/* ---------- category tiles ---------- */
.ct { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; color: #fff; background-size: cover; background-position: center; font-weight: 700; }
.ct .ic { width: 20px; height: 20px; }
.ct.sm { width: 30px; height: 30px; border-radius: 9px; }
.ct.sm .ic { width: 16px; height: 16px; }
.ct.big { width: 60px; height: 60px; border-radius: 18px; }
.ct.big .ic { width: 30px; height: 30px; }
.ct.thumb { background-color: var(--card-2); }

/* ---------- rows ---------- */
.row { width: 100%; display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 20px; background: var(--card); text-align: left; box-shadow: var(--shadow); }
.row.cur { outline: 2px solid var(--accent); }
.row.indent { margin-left: 22px; width: calc(100% - 22px); }
.row-hit { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; text-align: left; }
.row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; text-align: left; }
.row-main b { font-weight: 600; font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-main small { font-size: 13px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.hh { display: inline-flex; color: var(--c-essen); }
.hh .ic { width: 14px; height: 14px; }
.hh .ic + .ic { margin-left: -4px; }
.src-tag { font-size: 11px; font-weight: 700; letter-spacing: 0.03em; color: var(--muted); }
.tag-ok { font-size: 11.5px; font-weight: 700; color: var(--good); }
.count { font-weight: 700; font-size: 14.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }

/* ---------- map screen ---------- */
.karte { position: absolute; inset: 0; }
.map { position: absolute; inset: 0; background: #c6e1f4; }
.map-error { position: absolute; top: 45%; left: 0; right: 0; text-align: center; color: var(--ink-2); padding: 0 30px; }
.maplibregl-ctrl-attrib { font-size: 10px; }
.maplibregl-ctrl-bottom-right { bottom: calc(var(--tabbar) + var(--sheet-h, 240px)); }
.map-top { position: absolute; inset: 0 0 auto; z-index: 10; padding-top: calc(var(--safe-top) + 10px); background: linear-gradient(var(--bg) 0%, rgba(243, 244, 247, 0.86) 60%, rgba(243, 244, 247, 0)); pointer-events: none; }
.map-top > * { pointer-events: auto; }
.top-row { display: flex; gap: 10px; align-items: center; }
.trip-pill { flex: 1; min-width: 0; display: flex; align-items: center; gap: 11px; padding: 7px 14px 7px 7px; border-radius: 20px; background: var(--card); box-shadow: var(--shadow-s); text-align: left; }
.tp-thumb { width: 42px; height: 42px; border-radius: 13px; flex: none; display: grid; place-items: center; background-size: cover; background-position: center; }
.tp-globe { background: var(--accent-soft); color: var(--accent); }
.tp-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tp-txt b { font-family: var(--font-round); font-size: 16.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tp-txt small { font-size: 13px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tp-chev { color: var(--muted); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-top: 12px; padding-bottom: 6px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips.wrap { flex-wrap: wrap; overflow: visible; padding: 0; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 15px 0 6px; border-radius: 999px; background: var(--card); box-shadow: var(--shadow-s); font-weight: 600; font-size: 14px; white-space: nowrap; flex: none; }
.chip .ct { width: 30px; height: 30px; border-radius: 10px; }
.chip .ct .ic { width: 16px; height: 16px; }
.chip .ct-all { background: var(--card-2); color: var(--ink); }
.chip.on { background: var(--accent); color: #fff; }
.chip.on .ct-all { background: rgba(255, 255, 255, 0.22); color: #fff; }
.gh-row { display: flex; justify-content: flex-end; padding-top: 6px; }
.gh { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; background: #fff6e0; color: #9a6a00; font-size: 12.5px; font-weight: 600; box-shadow: var(--shadow-s); }
.gh .ic { width: 16px; height: 16px; }
.fab-near { position: absolute; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(var(--tabbar) + var(--sheet-h, 240px) + 12px); z-index: 12; transition: bottom 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); }
.fab-near.on { background: var(--accent); color: #fff; }

/* map markers */
.pin { border: 0; background: none; padding: 0; cursor: pointer; }
.pin-b { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50% 50% 50% 5px; transform: translateY(-7px) rotate(-45deg); background: var(--c); border: 2.5px solid #fff; box-shadow: 0 4px 10px rgba(20, 40, 55, 0.25); transition: transform 0.2s; }
.pin-b > * { transform: rotate(45deg); color: #fff; }
.pin-b b { font-size: 14px; font-weight: 700; font-family: var(--font-round); }
.pin.sel .pin-b { transform: translateY(-12px) rotate(-45deg) scale(1.22); }
.pin.visited .pin-b { opacity: 0.55; }
.pin-label { position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%); white-space: nowrap; background: var(--card); padding: 5px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; box-shadow: var(--shadow-s); display: none; color: var(--ink); }
.pin.sel .pin-label { display: block; }
.pin.stay .pin-b { border-radius: 12px; transform: none; background: var(--c-stay); }
.pin.stay .pin-b > * { transform: none; }
.me { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); border: 3px solid #fff; box-shadow: 0 0 0 7px rgba(31, 122, 224, 0.22); padding: 0; }

/* sheet over the map */
.sheet { position: absolute; left: 0; right: 0; bottom: var(--tabbar); height: var(--sheet-h, 240px); background: var(--card); border-radius: 28px 28px 0 0; box-shadow: 0 -8px 30px rgba(20, 30, 50, 0.1); z-index: 20; display: flex; flex-direction: column; transition: height 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); }
.sheet.drag, .sheet.drag ~ .fab-near { transition: none; }
.handle { height: 26px; flex: none; width: 100%; display: grid; place-items: center; cursor: grab; touch-action: none; }
.handle span { width: 40px; height: 5px; border-radius: 3px; background: #dedee4; }
.sheet-inner { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding-bottom: 20px; scrollbar-width: none; }
.sheet-inner::-webkit-scrollbar { display: none; }
.sh-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding-bottom: 10px; }
.sh-head h2 { font-size: 22px; font-weight: 700; }
.sh-head p { font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.daytabs { overflow-x: auto; scrollbar-width: none; position: sticky; top: 0; background: var(--card); z-index: 2; padding-bottom: 10px; }
.daytabs::-webkit-scrollbar { display: none; }
.dt-in { display: flex; gap: 6px; width: max-content; }
.dt { height: 34px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-size: 13.5px; font-weight: 600; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.dt i { font-style: normal; color: var(--muted); font-size: 12px; }
.dt.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.dt.on i { color: inherit; opacity: 0.75; }
.sh-list { display: grid; gap: 6px; }
.sh-list .row { box-shadow: none; background: var(--card-2); }
.day-sum { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13.5px; color: var(--ink-2); margin: 2px 0 6px; }
.day-sum span { display: inline-flex; align-items: center; gap: 6px; }
.day-sum .ic { width: 16px; height: 16px; }
.tl { display: grid; margin-top: 6px; }
.tl-row { display: flex; align-items: center; gap: 12px; padding: 6px 0; }
.as-btn { padding: 0; }
.num { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; color: #fff; flex: none; font-family: var(--font-round); }
.num.stay { background: var(--c-stay); border-radius: 10px; }
.num.stay .ic { width: 17px; height: 17px; }
.tl-tools { display: flex; flex: none; }
.tl-tools .icon-btn { width: 32px; height: 32px; }
.tl-tools .ic { width: 17px; height: 17px; }
.tl-leg { display: flex; align-items: center; gap: 7px; margin-left: 15px; padding: 4px 0 4px 26px; border-left: 2px dotted #dcdde3; font-size: 12.5px; color: var(--ink-2); }
.tl-leg .ic { width: 15px; height: 15px; margin-left: -6px; }

/* spot detail */
.back-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.sd-hero { position: relative; height: 160px; border-radius: 22px; background: color-mix(in srgb, var(--c) 14%, #fff); display: grid; place-items: center; overflow: hidden; margin-bottom: 14px; }
.sd-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sd-hero.flat { height: 96px; }
.sd-name { font-size: 24px; font-weight: 700; }
.sd-meta { color: var(--ink-2); font-size: 14px; margin-top: 3px; }
.sd-desc { margin-top: 10px; line-height: 1.5; white-space: pre-wrap; }
.sd-likes { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 14px 0 6px; }
.likes { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ink-2); font-weight: 500; }
.likes.both { color: var(--c-essen); font-weight: 600; }
.likes .ic { width: 16px; height: 16px; }
.sd-rows { margin-top: 8px; border-radius: 18px; background: var(--card-2); padding: 2px 14px; }
.sd-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.sd-row:last-child { border-bottom: 0; }
.sd-row > .ic { color: var(--ink-2); }
.sd-row > span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sd-row b { font-weight: 600; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; }
.sd-row small { color: var(--ink-2); font-size: 13px; }
.sd-row select { font: 600 14px var(--font); color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 10px; height: 36px; padding: 0 8px; max-width: 130px; }

/* ---------- modal sheets ---------- */
.sheet-wrap { position: fixed; inset: 0; z-index: 100; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(15, 15, 25, 0.38); opacity: 0; transition: opacity 0.24s; }
.sheet-wrap.shown .sheet-backdrop, .sheet-backdrop.show { opacity: 1; }
.msheet { position: absolute; left: 0; right: 0; bottom: 0; margin: 0 auto; max-width: 560px; background: var(--card); border-radius: 30px 30px 0 0; max-height: calc(100% - var(--safe-top) - 24px); display: flex; flex-direction: column; transform: translateY(100%); transition: transform 0.28s cubic-bezier(0.2, 0.85, 0.25, 1); }
.msheet.tall { height: calc(100% - var(--safe-top) - 24px); }
.sheet-wrap.shown .msheet { transform: translateY(0); }
.sheet-handle { width: 40px; height: 5px; border-radius: 3px; background: #dedee4; margin: 9px auto 0; flex: none; }
.msheet-head { display: flex; justify-content: space-between; align-items: center; padding: 8px 14px 8px 20px; flex: none; }
.msheet-head h2 { font-size: 20px; font-weight: 700; }
.msheet-body { overflow-y: auto; padding: 4px 20px calc(24px + var(--safe-bottom)); flex: 1; }
.ms-group { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 14px 4px 0; }
.dialog-wrap { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 24px; }
.dialog { position: relative; background: var(--card); border-radius: 24px; padding: 22px; width: min(360px, 100%); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2); }
.dialog h3 { font-size: 19px; font-weight: 700; }
.dialog p { color: var(--ink-2); margin-top: 8px; line-height: 1.45; }
.dialog-actions { display: flex; gap: 10px; margin-top: 18px; }
.dialog-actions .btn { flex: 1; height: 46px; }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 14px; min-width: 0; }
.field > span { font-size: 14px; color: var(--ink-2); font-weight: 600; }
.field-hint { color: var(--muted); font-size: 12.5px; }
.field-input { display: flex; align-items: center; gap: 8px; background: var(--card-2); border-radius: 14px; padding: 0 14px; min-height: 50px; border: 1.5px solid transparent; transition: border-color 0.15s; min-width: 0; }
.field-input:focus-within { border-color: var(--accent); background: #fff; }
.field-input input { flex: 1; min-width: 0; width: 100%; border: 0; background: none; outline: none; height: 48px; font-size: 16.5px; }
.field-input > .ic { color: var(--muted); }
textarea { width: 100%; border: 1.5px solid transparent; background: var(--card-2); border-radius: 16px; padding: 13px 14px; resize: none; outline: none; font-size: 16.5px; line-height: 1.45; }
textarea:focus { border-color: var(--accent); background: #fff; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 10px; }
.grid-code { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 0 10px; }
.segmented { display: flex; background: var(--card-2); border-radius: 12px; padding: 3px; }
.segmented button { flex: 1 1 0; min-width: 0; height: 36px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.segmented button.active { background: var(--card); color: var(--ink); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08); }
.cat-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-opt { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 12px 0 5px; border-radius: 999px; background: var(--card-2); font-size: 14px; font-weight: 600; border: 1.5px solid transparent; }
.cat-opt.active { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }
.psearch .results { display: grid; gap: 4px; margin-top: 10px; }
.result { display: flex; align-items: center; gap: 12px; padding: 10px 8px; border-radius: 14px; text-align: left; width: 100%; }
.result:hover { background: var(--card-2); }
.result-ic { width: 36px; height: 36px; border-radius: 11px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.place-line { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; background: var(--card-2); margin-bottom: 14px; }
.photo-preview { position: relative; }
.photo-preview img { width: 100%; max-height: 220px; object-fit: cover; border-radius: 18px; display: block; }
.photo-remove { position: absolute; top: 8px; right: 8px; background: rgba(0, 0, 0, 0.5); color: #fff; }
.file-btn { align-self: flex-start; cursor: pointer; }
.spinner { width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid var(--line); border-top-color: var(--accent); animation: spin 0.8s linear infinite; display: inline-block; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Reisen ---------- */
.rhero { background: linear-gradient(160deg, var(--accent) 0%, var(--accent-2) 100%); color: #fff; padding-top: calc(var(--safe-top) + 18px); padding-bottom: 58px; border-radius: 0 0 34px 34px; margin-bottom: -42px; }
.rhero-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.rh-hello { font-size: 16px; opacity: 0.88; }
.rh-name { font-family: var(--font-round); font-size: 28px; font-weight: 700; line-height: 1.15; }
.avatars { display: flex; }
.av { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 700; border: 3px solid rgba(255, 255, 255, 0.55); background: rgba(255, 255, 255, 0.24); color: #fff; font-family: var(--font-round); }
.av.a2 { margin-left: -12px; background: rgba(255, 255, 255, 0.36); }
.count-card { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border-radius: 26px; background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.26); color: #fff; text-align: left; }
.cc-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cc-cap { font-size: 14.5px; opacity: 0.9; }
.cc-big { font-family: var(--font-round); font-size: 54px; font-weight: 750; line-height: 1.05; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.cc-big.small { font-size: 30px; padding: 4px 0; }
.cc-big small { font-size: 18px; font-weight: 500; opacity: 0.85; margin-left: 6px; letter-spacing: 0; }
.cc-sub { font-size: 14px; opacity: 0.9; }
.cc-ring { width: 66px; height: 66px; border-radius: 50%; background: rgba(255, 255, 255, 0.2); display: grid; place-items: center; flex: none; }
.cc-ring .ic { transform: rotate(45deg); }
.rbody { position: relative; z-index: 1; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tile { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 14px 12px; border-radius: 22px; background: var(--card); text-align: left; box-shadow: var(--shadow); min-width: 0; }
.tile .ct { margin-bottom: 12px; }
.tile small { font-size: 12.5px; color: var(--muted); }
.tile b { font-family: var(--font-round); font-size: 16px; font-weight: 700; }
.hero { position: relative; display: block; width: 100%; height: 230px; border-radius: 26px; overflow: hidden; background: var(--card); text-align: left; box-shadow: var(--shadow); }
.hero-img, .wish-img { position: absolute; inset: 0; background-size: cover; background-position: center; }
.fallback { background: linear-gradient(150deg, #cfe5f6, #e9f3fb 55%, #fdf2ea); }
.hero-badge { position: absolute; top: 14px; right: 14px; height: 30px; padding: 0 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(6px); font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; }
.hero-txt { position: absolute; left: 0; right: 0; bottom: 0; padding: 44px 18px 16px; background: linear-gradient(rgba(255, 255, 255, 0), #fff 62%); display: flex; flex-direction: column; gap: 2px; }
.hero-txt b { font-family: var(--font-round); font-size: 22px; font-weight: 700; }
.hero-txt small { color: var(--ink-2); font-size: 14px; }
.hscroll { overflow-x: auto; scrollbar-width: none; }
.hscroll::-webkit-scrollbar { display: none; }
.hs-in { display: flex; gap: 12px; width: max-content; padding-bottom: 6px; }
.wish { width: 190px; height: 180px; position: relative; border-radius: 22px; overflow: hidden; background: var(--card); text-align: left; box-shadow: var(--shadow); flex: none; }
.wish-txt { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 12px; background: linear-gradient(rgba(255, 255, 255, 0), #fff 60%); display: flex; flex-direction: column; }
.wish-txt b { font-family: var(--font-round); font-size: 17px; font-weight: 700; }
.wish-txt small { font-size: 13px; color: var(--ink-2); }
.wish.add { display: grid; place-items: center; align-content: center; gap: 8px; color: var(--ink-2); font-weight: 600; background: transparent; border: 1.5px dashed #d6d7de; box-shadow: none; width: 150px; }

/* trip detail */
.detail { position: absolute; inset: 0; background: var(--bg); z-index: 40; display: flex; flex-direction: column; animation: slideIn 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes slideIn { from { transform: translateX(28px); opacity: 0.4; } to { transform: none; opacity: 1; } }
.td-bar { position: absolute; top: 0; left: 0; right: 0; padding-top: calc(var(--safe-top) + 10px); padding-bottom: 16px; display: flex; align-items: center; justify-content: space-between; z-index: 3; background: linear-gradient(rgba(243, 244, 247, 0.9) 40%, rgba(243, 244, 247, 0)); }
.td-tools { display: flex; align-items: center; gap: 10px; }
.status-chip { height: 30px; padding: 0 12px; border-radius: 999px; background: var(--card); box-shadow: var(--shadow-s); font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; }
.td-scroll { flex: 1; overflow-y: auto; padding-bottom: 36px; }
.td-hero { height: 290px; background-size: cover; background-position: center; -webkit-mask-image: linear-gradient(#000 62%, transparent); mask-image: linear-gradient(#000 62%, transparent); }
.td-head { margin-top: -40px; position: relative; }
.td-head h1 { font-size: 30px; font-weight: 700; }
.td-head p { color: var(--ink-2); margin-top: 4px; }
.flights { display: grid; gap: 12px; }
.flight { position: relative; display: block; width: 100%; height: 166px; border-radius: 24px; overflow: hidden; background: var(--card); box-shadow: var(--shadow); text-align: left; }
.fl-l, .fl-r { position: absolute; inset: 0; background-size: cover; }
.fl-l { clip-path: polygon(0 0, 55% 0, 45% 100%, 0 100%); background-position: 30% 40%; }
.fl-r { clip-path: polygon(55% 0, 100% 0, 100% 100%, 45% 100%); background-position: 70% 40%; }
.fl-veil { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255, 255, 255, 0.82) 0%, rgba(255, 255, 255, 0.25) 38%, rgba(255, 255, 255, 0.25) 62%, rgba(255, 255, 255, 0.82) 100%); }
.fl-c { position: absolute; inset: 0; padding: 16px 20px 40px; display: flex; flex-direction: column; justify-content: space-between; }
.fl-row { display: flex; justify-content: space-between; align-items: center; }
.fl-row.s { font-size: 13.5px; color: var(--ink-2); font-weight: 500; }
.fl-row.big b { font-family: var(--font-round); font-size: 32px; font-weight: 750; }
.fl-plane { width: 40px; height: 40px; border-radius: 50%; background: var(--card); display: grid; place-items: center; color: var(--accent); box-shadow: var(--shadow-s); }
.fl-plane .ic { transform: rotate(90deg); }
.fl-foot { position: absolute; left: 0; right: 0; bottom: 0; height: 34px; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--card); font-size: 12.5px; font-weight: 600; color: var(--ink-2); white-space: nowrap; overflow: hidden; }
.check { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px; border-radius: 16px; background: var(--card); box-shadow: var(--shadow); }
.check-hit { flex: 1; display: flex; align-items: center; gap: 12px; text-align: left; padding: 6px 0; font-size: 15px; }
.cbx { width: 24px; height: 24px; border-radius: 8px; border: 1.8px solid #d3d3da; display: grid; place-items: center; flex: none; color: transparent; }
.cbx .ic { width: 15px; height: 15px; stroke-width: 2.6; }
.check.on .cbx { background: var(--accent); border-color: var(--accent); color: #fff; }
.check.on .check-hit > span:last-child { color: var(--muted); text-decoration: line-through; }
.todo-add { display: flex; gap: 8px; align-items: center; }
.todo-add .field-input { flex: 1; min-height: 44px; }
.todo-add input { height: 42px; }
.note-box { background: var(--card); box-shadow: var(--shadow); }
.td-actions { margin-top: 26px; }

/* ---------- Inbox ---------- */
.inbox-add { display: grid; gap: 10px; }
.inbox-add .btn-block { margin-top: 2px; }
.howto { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 20px; background: var(--accent-soft); line-height: 1.45; font-size: 14px; color: var(--ink-2); }
.howto b { color: var(--ink); }
.howto .ct { background: var(--accent); }
.imps { display: grid; gap: 12px; margin-top: 16px; }
.imp { border-radius: 22px; background: var(--card); padding: 14px; box-shadow: var(--shadow); }
.imp-head { display: flex; gap: 12px; }
.imp-thumb { width: 52px; height: 64px; border-radius: 14px; flex: none; display: grid; place-items: center; color: #fff; background: linear-gradient(150deg, #25263a, #3b3f63); }
.imp-meta { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.imp-meta small { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.imp-meta b { font-size: 15.5px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.imp-actions { display: flex; gap: 8px; align-items: center; margin-top: 12px; flex-wrap: wrap; }
.imp-actions .icon-btn { margin-left: auto; }

/* ---------- Wir ---------- */
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.stat { padding: 14px 16px; border-radius: 20px; background: var(--card); box-shadow: var(--shadow); }
.stat b { display: block; font-family: var(--font-round); font-size: 30px; font-weight: 750; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat small { font-size: 13px; color: var(--ink-2); }
.soon { display: flex; gap: 12px; align-items: flex-start; line-height: 1.45; }
.soon p { color: var(--ink-2); font-size: 14px; margin-top: 3px; }

/* ---------- login ---------- */
.login { height: 100%; overflow-y: auto; max-width: 440px; margin: 0 auto; padding: calc(var(--safe-top) + 40px) 20px calc(30px + var(--safe-bottom)); }
.login-hero { text-align: center; padding: 30px 0; }
.login-hero h1 { margin-top: 18px; font-size: 30px; font-weight: 700; }
.login-hero p { color: var(--ink-2); margin-top: 6px; font-size: 17px; }
.logo-mark { width: 88px; height: 88px; border-radius: 26px; margin: 0 auto; overflow: hidden; box-shadow: 0 12px 30px rgba(31, 122, 224, 0.3); background: var(--accent); }
.logo-mark img { width: 100%; height: 100%; display: block; }

/* ---------- tabbar & toasts ---------- */
.tabbar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 50; display: grid; grid-template-columns: repeat(4, 1fr); height: var(--tabbar); background: rgba(255, 255, 255, 0.94); backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px); border-top: 1px solid var(--line); padding: 6px max(8px, env(safe-area-inset-right, 0px)) var(--safe-bottom) max(8px, env(safe-area-inset-left, 0px)); }
.tabbar button { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: #a6a8b2; font-size: 11.5px; font-weight: 600; }
.tabbar button.active { color: var(--accent); }
.tabbar button.active .ic { stroke-width: 2.1; }
.badge { position: absolute; top: 2px; left: calc(50% + 6px); min-width: 18px; height: 18px; border-radius: 9px; background: var(--c-essen); color: #fff; font-size: 11px; font-weight: 700; font-style: normal; display: grid; place-items: center; padding: 0 5px; }
.toasts { position: fixed; top: calc(var(--safe-top) + 12px); left: 16px; right: 16px; z-index: 200; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.toast { max-width: 440px; background: rgba(23, 24, 28, 0.94); color: #fff; padding: 12px 18px; border-radius: 16px; font-size: 15px; font-weight: 550; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); animation: toast-in 0.25s ease-out; text-align: center; }
.toast-success { background: var(--accent); }
.toast-error { background: #b3261e; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-10px); } }

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