/* Reisemappe - stylesheet v3: white by day, black at night, Arts & Travel feel (black, white, one red) */

@font-face { font-family: "Josefin Sans"; src: url("fonts/josefin-sans-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Josefin Sans"; src: url("fonts/josefin-sans-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Josefin Sans"; src: url("fonts/josefin-sans-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root, :root[data-theme="light"] {
  --bg: #ffffff;
  --bg-2: #f4f4f3;
  --bg-3: #ebebea;
  --card: #ffffff;
  --ink: #111111;
  --ink-2: #333333;
  --muted: #6b6b6b;
  --faint: #9a9a9a;
  --line: #e8e8e6;
  --line-2: #d2d2cf;
  --accent: #e0232a;
  --accent-soft: #fdeceb;
  --btn-bg: #111111;
  --btn-fg: #ffffff;
  --ok: #157a3c;
  --ok-soft: #e7f4ec;
  --warn: #a95c00;
  --warn-soft: #fcf1e1;
  --bad: #c81e1e;
  --bad-soft: #fdecec;
  --info: #1f55c9;
  --info-soft: #e9effc;
  --bubble-me: #111111;
  --bubble-me-fg: #ffffff;
  --bubble-other: #f1f1f0;
  --overlay: rgba(0, 0, 0, .38);
  --shadow: 0 1px 2px rgba(0, 0, 0, .04);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, .16);
  --t-transfer: #3a6bb5; --t-museum: #8a5a2e; --t-fuehrung: #237a4b; --t-konzert: #7a3c9e; --t-essen: #b8700a; --t-hotel: #111111; --t-flug: #0e7490; --t-other: #6b6b6b;
}

:root[data-theme="dark"] {
  --bg: #000000;
  --bg-2: #141414;
  --bg-3: #1f1f1f;
  --card: #0d0d0d;
  --ink: #f4f4f4;
  --ink-2: #d6d6d6;
  --muted: #a3a3a3;
  --faint: #6f6f6f;
  --line: #242424;
  --line-2: #3a3a3a;
  --accent: #ff4b52;
  --accent-soft: #2b0f10;
  --btn-bg: #f4f4f4;
  --btn-fg: #000000;
  --ok: #4fd18a;
  --ok-soft: #0e2618;
  --warn: #f5b845;
  --warn-soft: #2a1f08;
  --bad: #ff6b6b;
  --bad-soft: #2e1111;
  --info: #72a7ff;
  --info-soft: #0f1c33;
  --bubble-me: #f4f4f4;
  --bubble-me-fg: #000000;
  --bubble-other: #1c1c1c;
  --overlay: rgba(0, 0, 0, .62);
  --shadow: none;
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, .7);
  --t-transfer: #7aa7f0; --t-museum: #d19a66; --t-fuehrung: #5fcf8d; --t-konzert: #c38cf0; --t-essen: #f2b24c; --t-hotel: #f4f4f4; --t-flug: #4cc4de; --t-other: #a3a3a3;
}

:root {
  --radius: 14px;
  --radius-s: 10px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --head: "Josefin Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --tabbar-h: 60px;
  --topbar-h: 56px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { height: 100%; -webkit-text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; min-height: 100%; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.45; overscroll-behavior-y: none; -webkit-font-smoothing: antialiased; }
body.noscroll { overflow: hidden; }
a { color: var(--ink); text-decoration: none; }
button { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; }
p { margin: 0 0 10px; }
small { font-size: 13px; color: var(--muted); }
hr { border: 0; border-top: 1px solid var(--line); }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 13px; }
.ok { color: var(--ok); }
.warn { color: var(--warn); }
.bad { color: var(--bad); }
.accent { color: var(--accent); }
.center { text-align: center; }
.pad { padding: 14px 16px; }
.spacer { flex: 1; }
.pre { white-space: pre-wrap; word-break: break-word; }
.mono { font-variant-numeric: tabular-nums; }
.unread { font-weight: 600; }
.grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 12px; }
.grid2 > * { min-width: 0; }
input.input[type="date"], input.input[type="time"], input.input[type="datetime-local"] { min-width: 0; max-width: 100%; display: block; }
.head-font { font-family: var(--head); }

/* ---- Boot ---- */
.boot { min-height: 100vh; display: grid; place-items: center; }
.boot-pin { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--line-2); border-top-color: var(--ink); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Layout ---- */
.app { min-height: 100vh; padding-bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 84px); }
.app.notabs { padding-bottom: 24px; }
.page { min-height: 100vh; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 6px; min-height: calc(var(--topbar-h) + var(--safe-top)); padding: calc(var(--safe-top) + 6px) 10px 6px 14px; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--line); }
.topbar.back { padding-left: 4px; }
.topbar-title { flex: 1; min-width: 0; }
.topbar .title { font-family: var(--head); font-size: 20px; font-weight: 600; line-height: 1.15; padding-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: .005em; }
.topbar .subtitle { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-right { display: flex; gap: 2px; align-items: center; }
.iconbtn { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border: 0; border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; position: relative; flex: 0 0 auto; }
.iconbtn:active { background: var(--bg-2); }
.iconbtn .dotbadge { position: absolute; top: 7px; right: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); border: 2px solid var(--bg); }
.content { padding: 14px 16px 28px; max-width: 760px; margin: 0 auto; }
.content.flush { padding: 0; }

.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; justify-content: space-around; padding: 6px 4px calc(var(--safe-bottom) + 4px); background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-top: 1px solid var(--line); }
.tab { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; flex: 1; padding: 5px 0 3px; font-size: 11px; font-weight: 500; color: var(--faint); letter-spacing: .01em; }
.tab.active { color: var(--ink); font-weight: 600; }
.tab.active::before { content: ""; position: absolute; top: -7px; width: 22px; height: 3px; border-radius: 0 0 3px 3px; background: var(--accent); }
.tab-ico { position: relative; display: inline-flex; }
.tab-badge { position: absolute; top: -4px; right: -10px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--accent); color: #fff; font-size: 10.5px; font-weight: 700; display: grid; place-items: center; }

/* ---- Hero (Today) ---- */
.hero { padding: 6px 2px 14px; }
.hero h1 { font-family: var(--head); font-size: 27px; line-height: 1.12; font-weight: 600; letter-spacing: .005em; padding-top: 4px; }
.hero .hero-sub { color: var(--muted); font-size: 14px; margin-top: 4px; }
.hero .hero-date { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 14px; font-weight: 600; }
.hero .hero-date em { font-style: normal; font-weight: 500; color: var(--muted); }
.sim-banner { display: flex; align-items: center; gap: 8px; background: var(--info-soft); color: var(--info); border-radius: var(--radius-s); padding: 8px 12px; font-size: 13px; margin-bottom: 12px; }

/* ---- Cards, rows, sections ---- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px; margin: 0 0 12px; }
.card.nopad { padding: 0; overflow: hidden; }
.card.inner { box-shadow: none; margin-top: 8px; }
.card.tappable { cursor: pointer; }
.card.tappable:active { background: var(--bg-2); }
.card.flat { background: var(--bg-2); border-color: transparent; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 0 10px; }
.card.nopad .card-h { padding: 14px 16px 8px; }
.card-h h3 { font-family: var(--head); font-size: 12.5px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); font-weight: 600; padding-top: 2px; }
.card.muted { color: var(--muted); }
.section { margin: 20px 0 12px; }
.section:first-child { margin-top: 6px; }
.section-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 2px 9px; }
.section-h h4 { font-family: var(--head); font-size: 12.5px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); font-weight: 600; padding-top: 2px; display: flex; align-items: center; gap: 8px; }
.section-r { display: flex; align-items: center; gap: 12px; }
.section-h h4 em { font-style: normal; font-family: var(--font); letter-spacing: 0; font-size: 12px; font-weight: 700; color: var(--ink); background: var(--bg-2); border-radius: 999px; padding: 1px 8px; }
.row { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--line); color: inherit; }
.card.nopad > .row:last-child, .list > .row:last-child, .card.nopad > a.row:last-child { border-bottom: 0; }
.row.tappable { cursor: pointer; }
.row.tappable:active, a.row:active { background: var(--bg-2); }
.row-ico { color: var(--ink); display: inline-flex; flex: 0 0 auto; }
.row-body { flex: 1; min-width: 0; }
.row-title { font-weight: 500; }
.row-title.small { font-weight: 400; font-size: 15px; }
.row-title.muted { color: var(--muted); }
.row-sub { font-size: 13px; color: var(--muted); margin-top: 1px; }
.row-right { flex: 0 0 auto; color: var(--muted); font-size: 14px; }
.row-chev { color: var(--faint); flex: 0 0 auto; }
.badge { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.kv { display: grid; grid-template-columns: 116px 1fr; gap: 6px 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.kv:first-of-type { border-top: 0; }
.kv .k { font-size: 12.5px; color: var(--muted); padding-top: 2px; }
.kv .v { white-space: pre-wrap; word-break: break-word; }
.divider { border: 0; border-top: 1px solid var(--line); margin: 10px 0; }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty h4 { color: var(--ink); margin: 12px 0 6px; font-size: 17px; }
.empty .btn { margin-top: 12px; }
.spinner { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 24px; color: var(--muted); }
.spin { width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid var(--line-2); border-top-color: var(--ink); animation: spin .9s linear infinite; }
.errorbox { display: flex; gap: 10px; align-items: center; background: var(--bad-soft); color: var(--bad); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 12px; }
.errorbox div { flex: 1; font-size: 14px; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 6px; color: inherit; }
.tile:active { background: var(--bg-2); }
.tile-n { font-family: var(--head); font-size: 28px; line-height: 1; font-weight: 600; display: flex; align-items: center; height: 30px; padding-top: 4px; }
.tile-n.warn { color: var(--warn); }
.tile-n.accent { color: var(--accent); }
.tile-l { font-size: 12.5px; color: var(--muted); }

/* ---- Chips ---- */
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 500; background: var(--bg-2); color: var(--ink-2); white-space: nowrap; line-height: 1.5; }
.chip.ok { background: var(--ok-soft); color: var(--ok); }
.chip.warn { background: var(--warn-soft); color: var(--warn); }
.chip.bad { background: var(--bad-soft); color: var(--bad); }
.chip.info { background: var(--info-soft); color: var(--info); }
.chip.accent { background: var(--accent); color: #fff; }
.chip.line { background: transparent; border: 1px solid var(--line-2); }
.chip.off { opacity: .55; }
.chip.tappable { cursor: pointer; }
.status-chip { background: color-mix(in srgb, var(--chip) 14%, transparent); color: var(--chip); }
.pill { padding: 2px 8px; border-radius: 6px; font-size: 12px; background: var(--bg-2); }
.mini { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); }
.mini.team .avatar { margin-left: -5px; border: 1.5px solid var(--card); }
.mini.team .avatar:first-child { margin-left: 0; }
.mini.eigen { color: var(--ink); font-weight: 700; }
.mini.now { color: #fff; background: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 10px; padding: 1px 6px; border-radius: 4px; }
.mini.here { color: var(--ok); font-weight: 600; }

/* ---- Buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 46px; padding: 10px 18px; border-radius: 10px; border: 1px solid transparent; font-weight: 600; font-size: 15px; letter-spacing: .01em; cursor: pointer; background: var(--btn-bg); color: var(--btn-fg); text-decoration: none; }
.btn:active { transform: translateY(1px); opacity: .9; }
.btn:disabled { opacity: .45; cursor: default; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn.soft { background: var(--bg-2); color: var(--ink); }
.btn.danger { background: transparent; color: var(--bad); border-color: color-mix(in srgb, var(--bad) 35%, transparent); }
.btn.go { background: var(--ok); color: #fff; }
:root[data-theme="dark"] .btn.go { color: #00150a; }
.btn.info { background: var(--info-soft); color: var(--info); }
.btn.small { min-height: 36px; padding: 6px 13px; font-size: 13.5px; border-radius: 9px; }
.btn.big { min-height: 56px; font-size: 17px; border-radius: 12px; }
.btn.block { width: 100%; }
.btnrow { display: flex; gap: 10px; justify-content: flex-end; margin-top: 14px; }
.btnrow.wrap { flex-wrap: wrap; justify-content: flex-start; }
.btnrow.stretch > .btn { flex: 1; }
.linkbtn { background: none; border: 0; padding: 4px 6px; color: var(--ink); font-size: 13.5px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.linkbtn.muted { color: var(--muted); font-weight: 500; }
.formbar { position: sticky; bottom: calc(var(--tabbar-h) + var(--safe-bottom)); display: flex; gap: 10px; align-items: center; padding: 12px 0 6px; background: linear-gradient(to top, var(--bg) 72%, transparent); z-index: 4; }

/* ---- Action bar (call, WhatsApp, map, mail, copy) ---- */
.actionbar { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 2px; }
.action { display: inline-flex; flex-direction: column; align-items: center; gap: 5px; min-width: 68px; padding: 9px 6px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-size: 11.5px; font-weight: 600; cursor: pointer; }
.action:active { background: var(--bg-2); }
.actionbar.compact { margin: 0; gap: 4px; flex-wrap: nowrap; }
.actionbar.compact .action { flex-direction: row; min-width: 0; width: 38px; height: 38px; padding: 0; border-radius: 50%; justify-content: center; background: var(--bg-2); border-color: transparent; }
.actionbar.compact .action span { display: none; }

/* ---- Avatars, people ---- */
.avatar { display: inline-grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: var(--bg-3); color: var(--ink); font-weight: 700; overflow: hidden; letter-spacing: .02em; position: relative; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-stack { display: flex; align-items: center; flex-wrap: wrap; gap: 2px; }
.avatar-stack .avatar { border: 2px solid var(--card); margin-left: -8px; }
.avatar-stack .avatar:first-child { margin-left: 0; }
.avatar-wrap { position: relative; display: inline-flex; flex: 0 0 auto; }
.avatar-wrap .state-dot { position: absolute; right: -1px; bottom: -1px; width: 13px; height: 13px; border-radius: 50%; border: 2px solid var(--card); background: var(--faint); }
.state-dot.da { background: var(--ok); }
.state-dot.unterwegs { background: var(--info); }
.state-dot.faellig { background: var(--warn); }
.state-dot.spaet { background: var(--bad); }
.person-row { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); }
.person-row:first-child { border-top: 0; }
.card.nopad .person-row { padding: 12px 16px; border-top: 0; border-bottom: 1px solid var(--line); }
.card.nopad .person-row:last-child { border-bottom: 0; }
.person-row.inactive { opacity: .55; }
.pr-b { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pr-b strong { font-weight: 600; }
.pr-b small { display: block; }
.pr-actions { display: flex; align-items: center; gap: 2px; }

/* ---- Programme: days and items ---- */
.filterbar { margin: 2px 0 14px; }
.filterbar.scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.filterbar.scroll::-webkit-scrollbar { display: none; }
.filterbar.scroll .segmented { width: max-content; min-width: 100%; }
.segmented { display: flex; background: var(--bg-2); border-radius: 11px; padding: 3px; gap: 2px; }
.segmented button { flex: 1; border: 0; background: transparent; padding: 8px 11px; border-radius: 9px; font-size: 13.5px; font-weight: 500; color: var(--muted); white-space: nowrap; cursor: pointer; }
.segmented button.on { background: var(--card); color: var(--ink); font-weight: 600; box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
:root[data-theme="dark"] .segmented button.on { background: var(--bg-3); }
.segmented button em { font-style: normal; opacity: .7; font-size: 12px; }
.segmented.tabs { margin-bottom: 14px; }
.tag { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; }
.tag.today { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.tag-h { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px 14px; border: 0; background: transparent; cursor: pointer; color: var(--ink); }
.tag-date { display: flex; flex-direction: column; align-items: center; min-width: 56px; padding: 7px 4px 5px; border-radius: 10px; background: var(--bg-2); }
.tag.today .tag-date { background: var(--ink); color: var(--bg); }
.tag-date .wd { font-size: 10.5px; text-transform: uppercase; letter-spacing: .12em; font-weight: 600; font-family: var(--head); }
.tag-date .dt { font-family: var(--head); font-size: 16px; font-weight: 700; white-space: nowrap; line-height: 1.2; padding-top: 2px; }
.tag-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tag-name { font-weight: 600; }
.tag-sub { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.today-pill { font-style: normal; font-size: 10px; text-transform: uppercase; letter-spacing: .1em; background: var(--accent); color: #fff; padding: 2px 6px; border-radius: 4px; margin-left: 6px; vertical-align: middle; font-weight: 700; }
.tag-chev { color: var(--faint); transition: transform .2s; }
.tag-chev.rot { transform: rotate(90deg); }
.tag-body { border-top: 1px solid var(--line); }
.tag-note { display: flex; gap: 6px; align-items: flex-start; font-size: 13px; color: var(--muted); padding: 10px 16px 0; }
.tag-actions { display: flex; gap: 8px; padding: 10px 14px 12px; }
.punkt-row { display: flex; gap: 10px; padding: 13px 14px 13px 12px; border-bottom: 1px solid var(--line); color: inherit; position: relative; }
.punkt-row:last-child { border-bottom: 0; }
.punkt-row:active { background: var(--bg-2); }
.punkt-row.past { opacity: .5; }
.punkt-row.current { background: color-mix(in srgb, var(--accent) 6%, var(--card)); }
.punkt-row.current::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent); }
.punkt-row.eigen .pr-title span { font-weight: 600; }
.pr-time { display: flex; flex-direction: column; align-items: flex-end; min-width: 50px; font-variant-numeric: tabular-nums; }
.pr-time .t { font-weight: 700; font-size: 14px; }
.pr-time .t.soft { font-weight: 600; font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; text-align: right; }
.pr-time .d { font-size: 11px; color: var(--muted); }
.pr-line { display: flex; flex-direction: column; align-items: center; width: 12px; }
.pr-line .dot { width: 9px; height: 9px; border-radius: 50%; margin-top: 6px; }
.pr-body { flex: 1; min-width: 0; }
.pr-title { display: flex; align-items: flex-start; gap: 7px; font-size: 15.5px; line-height: 1.3; }
.pr-title .typ-ico { margin-top: 1px; flex: 0 0 auto; }
.pr-sub { font-size: 13px; color: var(--muted); margin: 2px 0 0 25px; }
.pr-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 5px 0 0 25px; }
.typ-ico { display: inline-flex; }
.now-card { border-color: var(--accent); }

/* ---- Item detail ---- */
.punkt-head { display: flex; align-items: flex-start; gap: 12px; padding: 4px 2px 14px; }
.punkt-head .typ-ico { margin-top: 2px; }
.ph-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ph-typ { font-family: var(--head); font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: var(--typ, var(--muted)); font-weight: 700; padding-top: 2px; }
.ph-zeit { display: flex; align-items: center; gap: 6px; font-size: 15px; }
.status-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.ort-name { font-weight: 600; font-size: 16px; }
.note-line { display: flex; gap: 6px; align-items: flex-start; font-size: 13.5px; color: var(--muted); margin: 6px 0; }
.note-line.ok { color: var(--ok); }
.note-line.warn { color: var(--warn); }
.note { border-left: 3px solid var(--line-2); padding: 7px 11px; margin: 8px 0; border-radius: 4px; background: var(--bg-2); }
.note.lead { border-color: var(--accent); }
.note.guide { border-color: var(--t-fuehrung); }
.note.fahrer { border-color: var(--t-transfer); }
.note-h { display: flex; align-items: center; gap: 5px; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 4px; font-weight: 700; }
.transfer-route { display: flex; align-items: stretch; gap: 8px; }
.tr-stop { flex: 1; display: flex; flex-direction: column; gap: 2px; padding: 10px; background: var(--bg-2); border-radius: 10px; }
.tr-stop .lbl { font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; }
.tr-stop small { color: var(--muted); }
.tr-arrow { display: grid; place-items: center; color: var(--faint); }
.thumb { max-height: 220px; border-radius: 8px; margin-top: 6px; }
.list .row { padding: 10px 0; }
.gast-head { display: flex; gap: 14px; align-items: center; padding: 6px 2px 12px; }
.gh-name { font-family: var(--head); font-size: 22px; font-weight: 600; line-height: 1.2; padding-top: 3px; }
.ort-foto { border-radius: 10px; margin-bottom: 10px; max-height: 220px; width: 100%; object-fit: cover; }

/* ---- Check-in ---- */
.einsatz { border: 1.5px solid var(--ink); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; background: var(--card); }
.einsatz.da { border-color: var(--ok); }
.einsatz-top { display: flex; align-items: flex-start; gap: 12px; }
.einsatz-when { font-family: var(--head); font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); font-weight: 700; padding-top: 2px; }
.einsatz-title { font-size: 18px; font-weight: 600; line-height: 1.25; margin-top: 3px; }
.einsatz-place { font-size: 14px; color: var(--muted); margin-top: 3px; display: flex; align-items: center; gap: 5px; }
.einsatz-count { margin-left: auto; text-align: right; font-variant-numeric: tabular-nums; }
.einsatz-count b { display: block; font-family: var(--head); font-size: 22px; font-weight: 700; line-height: 1; padding-top: 3px; }
.einsatz-count span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.einsatz .btnrow { margin-top: 14px; }
.einsatz-done { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--ok-soft); color: var(--ok); font-weight: 600; }
.einsatz-done .spacer + .linkbtn { color: var(--ok); }
.geo-line { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); margin-top: 12px; }
.geo-line .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 60%, transparent); animation: pulse 1.8s infinite; flex: 0 0 auto; }
.geo-line .pulse.off { background: var(--faint); animation: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 55%, transparent); } 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.status-item { padding: 12px 16px; border-bottom: 1px solid var(--line); }
.status-item:last-child { border-bottom: 0; }
.status-item-h { display: flex; align-items: baseline; gap: 10px; color: inherit; }
.status-item-h .t { font-weight: 700; font-variant-numeric: tabular-nums; min-width: 44px; }
.status-item-h .n { flex: 1; min-width: 0; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.status-people { display: flex; flex-direction: column; gap: 8px; margin: 10px 0 2px 54px; }
.status-person { display: flex; align-items: center; gap: 10px; }
.status-person .sp-b { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.status-person .sp-b strong { font-weight: 600; font-size: 14.5px; }
.status-person .sp-b small { font-size: 12.5px; }
.state-text.da { color: var(--ok); }
.state-text.unterwegs { color: var(--info); }
.state-text.faellig { color: var(--warn); }
.state-text.spaet { color: var(--bad); font-weight: 600; }

/* ---- Hotels / rooms ---- */
.hotel-card { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.hotel-stats { display: flex; flex-direction: column; gap: 2px; font-size: 12.5px; color: var(--muted); text-align: right; white-space: nowrap; }
.hotel-stats b { font-family: var(--head); font-size: 19px; color: var(--ink); }
.zimmer-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.zimmer-row:last-child { border-bottom: 0; }
.zimmer-row.in { background: var(--ok-soft); }
.zimmer-nr { min-width: 50px; height: 40px; border-radius: 9px; border: 1px dashed var(--line-2); background: var(--card); font-family: var(--head); font-weight: 700; font-size: 16px; color: var(--ink); padding: 3px 6px 0; }
.zimmer-body { flex: 1; min-width: 0; }
.zb-top { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.zb-person { display: inline-flex; align-items: center; gap: 5px; font-weight: 500; }
.zb-sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.zimmer-checks { display: flex; gap: 6px; }
.chk { width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--line-2); background: var(--card); color: transparent; display: grid; place-items: center; cursor: pointer; flex: 0 0 auto; }
.chk.on { background: var(--ok); border-color: var(--ok); color: #fff; }
.chk.key.on { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chk.big { width: 30px; height: 30px; }

/* ---- Flights ---- */
.flug-h { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: 0; background: transparent; padding: 12px 14px; cursor: pointer; color: var(--ink); }
.flug-zeit { font-family: var(--head); font-size: 18px; font-weight: 700; min-width: 52px; padding-top: 3px; }
.flug-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.flug-body small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.flug-pax { display: inline-flex; align-items: center; gap: 3px; font-size: 13px; color: var(--muted); }
.flug-body-open { border-top: 1px solid var(--line); padding: 8px 14px 12px; }
.pax-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.pax-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mini-select { width: auto; min-height: 36px; padding: 4px 30px 4px 10px; font-size: 13px; }

/* ---- Comments ---- */
.kommentare { margin: 20px 0; }
.klist { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.kitem { display: flex; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.kitem.reply { background: var(--bg-2); border-color: transparent; padding: 9px 10px; }
.kitem.done .ktext { text-decoration: line-through; color: var(--muted); }
.kitem.art-problem { border-left: 3px solid var(--bad); }
.kitem.art-aufgabe { border-left: 3px solid var(--warn); }
.kbody { flex: 1; min-width: 0; }
.khead { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 13px; }
.khead strong { font-weight: 600; }
.ktext { margin: 4px 0; font-size: 15px; }
.kfoto img { max-height: 260px; border-radius: 10px; margin-top: 6px; }
.kdatei { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; margin-top: 4px; }
.kactions { display: flex; gap: 4px; margin-top: 4px; }
.kreplies { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.replyhint { font-size: 13px; color: var(--muted); padding: 0 4px 6px; }
.composer-extra { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; }

/* ---- Composer (comments + chat): [photo] [text] [mic] [send] ---- */
.composer { display: flex; align-items: flex-end; gap: 8px; }
.composer .cbtn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--bg-2); color: var(--ink); display: grid; place-items: center; cursor: pointer; flex: 0 0 auto; position: relative; }
.composer .cbtn:active { background: var(--bg-3); }
.composer .cbtn.send { background: var(--btn-bg); color: var(--btn-fg); }
.composer .cbtn.send:disabled { opacity: .35; }
.composer .cbtn.mic.on { background: var(--accent); color: #fff; animation: micpulse 1.4s ease-in-out infinite; }
.composer .cbtn.mic.busy { background: var(--bg-3); }
@keyframes micpulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 45%, transparent); } 50% { box-shadow: 0 0 0 8px transparent; } }
.composer .cfield { flex: 1; min-width: 0; position: relative; }
.composer textarea { width: 100%; min-height: 44px; max-height: 180px; padding: 11px 14px; border: 1px solid var(--line-2); border-radius: 22px; background: var(--card); color: var(--ink); font: inherit; font-size: 16px; line-height: 1.35; resize: none; display: block; }
.composer textarea:focus { outline: none; border-color: var(--ink); }
.composer .clang { position: absolute; right: 8px; bottom: 9px; font-size: 10px; font-weight: 700; letter-spacing: .06em; color: var(--muted); background: var(--bg-2); border: 0; border-radius: 6px; padding: 3px 5px; cursor: pointer; }
.dictate-hint { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--accent); padding: 0 6px 6px; }
.dictate-hint .rec { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .2; } }
.composer-foto { position: relative; display: inline-block; margin: 0 0 8px 52px; }
.composer-foto img { max-height: 120px; border-radius: 10px; }
.composer-foto .iconbtn { position: absolute; top: -8px; right: -8px; width: 28px; height: 28px; background: var(--btn-bg); color: var(--btn-fg); }

/* ---- Chat ---- */
.chat-fab { position: fixed; right: 16px; bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 16px); z-index: 35; width: 58px; height: 58px; border-radius: 50%; border: 0; background: var(--btn-bg); color: var(--btn-fg); display: grid; place-items: center; box-shadow: var(--shadow-lg); cursor: pointer; transition: transform .22s ease, opacity .22s ease; }
.chat-fab:active { transform: scale(.95); }
.chat-fab.away { transform: translateY(110px); opacity: 0; pointer-events: none; }
.chat-fab .fab-badge { position: absolute; top: -3px; right: -3px; min-width: 21px; height: 21px; padding: 0 5px; border-radius: 11px; background: var(--accent); color: #fff; font-size: 11.5px; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--bg); }
.chat-sheet-bg { position: fixed; inset: 0; z-index: 60; background: var(--overlay); display: flex; align-items: flex-end; justify-content: flex-end; animation: fade .18s ease-out; }
.chat-sheet { width: 100%; height: calc(100% - var(--safe-top) - 24px); background: var(--bg); border-radius: 18px 18px 0 0; display: flex; flex-direction: column; overflow: hidden; animation: up .24s ease-out; }
.chat-page { display: flex; flex-direction: column; height: 100vh; height: 100dvh; background: var(--bg); }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 12px 10px 10px 16px; border-bottom: 1px solid var(--line); }
.chat-head .ch-t { flex: 1; min-width: 0; }
.chat-head .ch-t b { display: block; font-family: var(--head); font-size: 19px; font-weight: 600; padding-top: 3px; }
.chat-head .ch-t small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-list { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 12px 12px 6px; display: flex; flex-direction: column; gap: 3px; }
.chat-day { align-self: center; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--bg-2); border-radius: 999px; padding: 3px 10px; margin: 12px 0 8px; }
.msg { display: flex; align-items: flex-end; gap: 8px; max-width: 86%; }
.msg.me { align-self: flex-end; flex-direction: row-reverse; }
.msg .msg-av { width: 30px; flex: 0 0 30px; }
.msg-col { display: flex; flex-direction: column; min-width: 0; }
.msg.me .msg-col { align-items: flex-end; }
.msg-name { font-size: 12px; color: var(--muted); font-weight: 600; margin: 8px 0 3px 12px; }
.msg-name i { font-style: normal; font-weight: 500; }
.bubble { background: var(--bubble-other); color: var(--ink); border-radius: 18px; padding: 8px 13px 7px; font-size: 15.5px; line-height: 1.38; white-space: pre-wrap; word-break: break-word; }
.msg.me .bubble { background: var(--bubble-me); color: var(--bubble-me-fg); }
.msg.cont .bubble { border-top-left-radius: 8px; }
.msg.me.cont .bubble { border-top-left-radius: 18px; border-top-right-radius: 8px; }
.bubble img { border-radius: 12px; margin: 3px -7px 4px; max-width: calc(100% + 14px); max-height: 320px; }
.bubble .mention { font-weight: 700; }
.msg-time { font-size: 11px; color: var(--faint); margin: 2px 8px 4px; }
.sysmsg { align-self: center; display: flex; align-items: center; gap: 7px; max-width: 92%; font-size: 13px; color: var(--ink-2); background: var(--bg-2); border-radius: 12px; padding: 7px 12px; margin: 6px 0; text-align: left; }
.sysmsg.checkin { background: var(--ok-soft); color: var(--ok); font-weight: 500; }
.sysmsg.unterwegs { background: var(--info-soft); color: var(--info); }
.sysmsg.flug { background: var(--bg-2); }
.sysmsg time { color: var(--faint); font-size: 11.5px; margin-left: 4px; white-space: nowrap; }
.chat-more { align-self: center; margin: 4px 0 8px; }
.chat-foot { border-top: 1px solid var(--line); padding: 10px 10px calc(10px + var(--safe-bottom)); background: var(--bg); }
.chat-empty { margin: auto; text-align: center; color: var(--muted); padding: 30px 24px; }
.chat-empty h4 { color: var(--ink); font-size: 17px; margin: 10px 0 6px; }

/* ---- Forms ---- */
.field { display: flex; flex-direction: column; gap: 6px; margin: 0 0 13px; }
.field .label, .label { font-size: 12.5px; color: var(--muted); font-weight: 600; letter-spacing: .01em; }
.field .hint { font-size: 12px; color: var(--muted); }
.field .ferr { font-size: 12.5px; color: var(--bad); }
.input { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--card); color: var(--ink); font: inherit; font-size: 16px; appearance: none; -webkit-appearance: none; }
textarea.input { resize: vertical; line-height: 1.4; }
select.input { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
.input:focus { outline: 2px solid var(--ink); outline-offset: -1px; }
.input::placeholder, textarea::placeholder { color: var(--faint); }
.searchrow { position: relative; display: flex; align-items: center; margin-bottom: 12px; }
.searchrow .ico { position: absolute; left: 13px; color: var(--muted); pointer-events: none; }
.searchrow .input { padding-left: 40px; border-radius: 12px; background: var(--bg-2); border-color: transparent; }
.searchrow.sticky { position: sticky; top: calc(var(--topbar-h) + var(--safe-top) + 6px); z-index: 5; background: var(--bg); padding: 4px 0; }
.pickbtn { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 48px; padding: 8px 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--card); color: var(--ink); text-align: left; cursor: pointer; }
.pickbtn small { display: block; color: var(--muted); }
.toggle { display: flex; align-items: center; gap: 12px; padding: 9px 0; cursor: pointer; }
.toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.toggle .track { position: relative; width: 50px; height: 30px; border-radius: 15px; background: var(--line-2); transition: background .2s; flex: 0 0 auto; }
.toggle .knob { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
.toggle input:checked + .track { background: var(--ok); }
.toggle input:checked + .track .knob { transform: translateX(20px); }
.toggle .tlabel { display: flex; flex-direction: column; }
.toggle .tlabel small { font-size: 12.5px; }
.checkbox { display: flex; align-items: center; gap: 10px; padding: 9px 0; cursor: pointer; border-bottom: 1px solid var(--line); }
.checkbox:last-child { border-bottom: 0; }
.checkbox.small { padding: 0; border: 0; font-size: 13px; }
.checkbox input { position: absolute; opacity: 0; width: 0; height: 0; }
.checkbox .box { width: 24px; height: 24px; border-radius: 7px; border: 1.5px solid var(--line-2); display: grid; place-items: center; color: transparent; flex: 0 0 auto; background: var(--card); }
.checkbox.small .box { width: 20px; height: 20px; }
.checkbox input:checked + .box { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.clabel { display: flex; flex-direction: column; }
.multipick { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; margin-bottom: 12px; background: var(--card); }
.multipick-actions { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.multipick-actions .muted { margin-left: auto; }
.multipick-list { max-height: 260px; overflow-y: auto; }
.fotopicker { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.fotopicker img, .fp-empty { width: 84px; height: 84px; border-radius: 12px; object-fit: cover; background: var(--bg-2); color: var(--muted); display: grid; place-items: center; }
.fotopicker.round img, .fotopicker.round .fp-empty { border-radius: 50%; }
.fp-actions { display: flex; flex-direction: column; gap: 6px; }
.rolle-hint { font-size: 13px; color: var(--muted); margin: -6px 0 12px; }
.invite-link { font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; word-break: break-all; background: var(--bg-2); padding: 10px; border-radius: 8px; margin: 8px 0; }
.details summary { cursor: pointer; font-size: 14px; font-weight: 600; margin-top: 8px; }
.theme-pick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 4px 0 6px; }
.theme-opt { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--card); color: var(--ink); cursor: pointer; text-align: left; }
.theme-opt.on { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.theme-opt small { display: block; font-size: 12px; }
.coords { font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; color: var(--muted); }

/* ---- Sheet ---- */
.sheet-backdrop { position: fixed; inset: 0; z-index: 50; background: var(--overlay); display: flex; align-items: flex-end; justify-content: center; animation: fade .18s ease-out; }
@keyframes fade { from { opacity: 0; } }
.sheet { width: 100%; max-width: 640px; max-height: 88vh; background: var(--bg); border-radius: 18px 18px 0 0; padding: 6px 16px calc(16px + var(--safe-bottom)); display: flex; flex-direction: column; animation: up .22s ease-out; }
@keyframes up { from { transform: translateY(40px); opacity: .6; } }
.sheet.tall { height: 88vh; }
.sheet-grip { width: 40px; height: 4px; border-radius: 2px; background: var(--line-2); margin: 4px auto 8px; }
.sheet-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.sheet-h h3 { font-family: var(--head); font-size: 20px; padding-top: 3px; }
.sheet-body { overflow-y: auto; -webkit-overflow-scrolling: touch; flex: 1; padding-bottom: 8px; }

/* ---- Toast ---- */
.toast { position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 16px); transform: translateX(-50%); z-index: 80; background: var(--btn-bg); color: var(--btn-fg); padding: 11px 16px; border-radius: 12px; font-size: 14px; font-weight: 500; box-shadow: var(--shadow-lg); max-width: 92vw; display: flex; align-items: center; gap: 12px; animation: up .2s ease-out; }
.toast.fehler { background: var(--bad); color: #fff; }
.toast.ok { }
.toast button { background: none; border: 0; color: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; padding: 0; }

/* ---- Login ---- */
.login-screen { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: calc(var(--safe-top) + 24px) 22px 32px; background: var(--bg); }
.login-card { width: 100%; max-width: 380px; }
.login-brand { text-align: center; margin-bottom: 28px; }
.login-brand .pin { width: 64px; height: 64px; border-radius: 16px; margin: 0 auto 16px; }
.login-brand h1 { font-family: var(--head); font-size: 34px; font-weight: 600; letter-spacing: .01em; padding-top: 4px; }
.login-brand p { color: var(--muted); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; font-family: var(--head); font-weight: 600; margin-top: 6px; }
.login-brand p b { color: var(--accent); font-weight: 700; }
.login-error { background: var(--bad-soft); color: var(--bad); border-radius: 10px; padding: 10px 12px; font-size: 14px; margin-bottom: 14px; }
.login-hint { font-size: 13px; color: var(--muted); text-align: center; margin: 18px 0 0; }

/* ---- Onboarding ---- */
.onboarding { min-height: 100vh; padding: calc(var(--safe-top) + 30px) 18px 40px; max-width: 520px; margin: 0 auto; }
.ob-head { text-align: center; margin-bottom: 20px; }
.ob-head .pin { width: 64px; height: 64px; border-radius: 16px; margin: 0 auto 14px; }
.ob-head h1 { font-family: var(--head); font-size: 28px; padding-top: 4px; }
.ob-head p { color: var(--muted); }
.ob-steps { display: flex; justify-content: center; gap: 8px; margin-top: 12px; }
.ob-steps span { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; background: var(--bg-2); color: var(--muted); }
.ob-steps span.on { background: var(--ink); color: var(--bg); }
.ob-steps span.done { background: var(--ok); color: #fff; }
.ob-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 18px; }
.ob-card h2 { font-family: var(--head); font-size: 22px; margin-bottom: 10px; padding-top: 3px; }
.ob-list { padding-left: 20px; margin: 0 0 8px; }
.ob-list li { margin: 8px 0; }
.inline-ico { display: inline-flex; vertical-align: middle; color: #1a73e8; }
.perm-row { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.perm-row:first-of-type { border-top: 0; }
.perm-row .pr-ico { width: 40px; height: 40px; border-radius: 12px; background: var(--bg-2); display: grid; place-items: center; flex: 0 0 auto; }
.perm-row .pr-t { flex: 1; min-width: 0; }
.perm-row .pr-t strong { display: block; }
.perm-row .pr-t small { display: block; margin-top: 2px; }

/* ---- Tablet ---- */
@media (min-width: 700px) {
  .content { padding: 20px 24px 40px; }
  .tiles { grid-template-columns: repeat(4, 1fr); }
  .tabbar { justify-content: center; gap: 40px; }
  .tab { flex: 0 0 90px; }
  .actionbar .action { min-width: 84px; }
  .chat-sheet { width: 440px; height: min(760px, calc(100% - 40px)); margin: 0 20px 20px 0; border-radius: 18px; border: 1px solid var(--line); }
  .chat-sheet-bg { align-items: flex-end; }
  .hero h1 { font-size: 32px; }
}

/* ---- Composer extras ---- */
.composer .cfield.has-lang textarea { padding-right: 46px; }
.mention-row { display: flex; gap: 6px; overflow-x: auto; padding: 0 0 8px 52px; scrollbar-width: none; }
.mention-row::-webkit-scrollbar { display: none; }
.composer-wrap { width: 100%; }
.kommentare .composer-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; }

/* ---- Check: attendance, cars, notes ---- */
.ck-pick { margin: -6px -16px 12px; }
.ck-day { display: flex; align-items: center; gap: 2px; padding: 0 8px; font-size: 13.5px; color: var(--muted); }
.ck-day > span { flex: 1; min-width: 0; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ck-day b { color: var(--ink); font-weight: 700; }
.ck-day em { font-style: normal; }
.ck-day .iconbtn { width: 36px; height: 36px; }
.ck-day .iconbtn:disabled { opacity: .22; cursor: default; }
.ck-chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 16px 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.ck-chips::-webkit-scrollbar { display: none; }
.ck-chip { flex: 0 0 auto; max-width: 230px; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 7px 12px 8px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--card); color: var(--ink); text-align: left; cursor: pointer; font: inherit; }
.ck-chip .t { display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--muted); }
.ck-chip .c { display: inline-flex; align-items: center; gap: 1px; color: var(--ok); }
.ck-chip .n { font-size: 14px; font-weight: 500; max-width: 206px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ck-chip.on { background: var(--btn-bg); color: var(--btn-fg); border-color: var(--btn-bg); }
.ck-chip.on .t, .ck-chip.on .c { color: inherit; opacity: .8; }
.ck-head { display: flex; align-items: flex-start; gap: 12px; padding: 2px 2px 14px; color: inherit; }
.ck-head .typ-ico { margin-top: 2px; }
.ck-head-b { flex: 1; min-width: 0; }
.ck-when { font-family: var(--head); font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: var(--typ, var(--muted)); font-weight: 700; padding-top: 2px; }
.ck-title { font-size: 20px; font-weight: 600; line-height: 1.25; margin-top: 2px; }
.ck-ort { font-size: 14px; color: var(--muted); margin-top: 3px; display: flex; align-items: center; gap: 5px; }
.ck-counts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
.ck-count { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 11px 4px 9px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; font: inherit; }
.ck-count b { font-family: var(--head); font-size: 27px; line-height: 1; font-weight: 700; padding-top: 4px; font-variant-numeric: tabular-nums; }
.ck-count span { font-size: 12px; color: var(--muted); }
.ck-count.da b { color: var(--ok); }
.ck-count.nicht b { color: var(--bad); }
.ck-count.on { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.ck-all { margin: 0 0 14px; }
.ck-all-n { font-weight: 500; opacity: .85; font-size: 13.5px; margin-left: 2px; }
.ck-allhere { display: flex; align-items: center; gap: 8px; padding: 11px 13px; margin: 0 0 14px; border-radius: 12px; background: var(--ok-soft); color: var(--ok); font-weight: 600; font-size: 14px; }
.ck-filterhint { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin: -4px 2px 10px; }
.ck-gr { margin-top: 4px; }
.ck-list { margin-bottom: 14px; }
.ck-row { border-bottom: 1px solid var(--line); }
.ck-row:last-child { border-bottom: 0; }
.ck-row.open { background: var(--bg-2); }
.ck-main { display: flex; align-items: center; gap: 8px; padding: 7px 10px 7px 12px; }
.ck-who { flex: 1; min-width: 0; display: flex; align-items: center; gap: 11px; border: 0; background: none; padding: 3px 0; text-align: left; cursor: pointer; color: inherit; font: inherit; }
.ck-name { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ck-name strong { font-weight: 600; font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ck-name small { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ck-row.nicht .ck-name strong { color: var(--muted); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--bad) 55%, transparent); }
.ck-car { display: inline-flex; align-items: center; gap: 3px; vertical-align: -2px; }
.ck-btns { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.ck-btn { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--line-2); background: var(--card); color: var(--faint); display: grid; place-items: center; cursor: pointer; padding: 0; transition: background .12s, color .12s, border-color .12s, transform .08s; }
.ck-btn.no { width: 40px; height: 40px; }
.ck-btn:active { transform: scale(.9); }
.ck-btn.yes.on { background: var(--ok); border-color: var(--ok); color: #fff; }
.ck-btn.no.on { background: var(--bad); border-color: var(--bad); color: #fff; }
.ck-more { padding: 0 14px 12px 61px; }
.ck-more .actionbar { margin-top: 2px; }
.ck-more .btnrow { margin-top: 8px; }
.ck-reasons { margin: 4px 0 14px; gap: 8px; }
.ck-reasons .chip { font: inherit; font-size: 14px; padding: 7px 13px; border: 1px solid var(--line-2); cursor: pointer; }
.ck-reasons .chip.accent { border-color: var(--accent); }
.ck-link { display: flex; align-items: center; gap: 12px; color: inherit; border-color: var(--ink); }
.ck-link:active { background: var(--bg-2); }
.ck-link-ico { width: 42px; height: 42px; border-radius: 12px; background: var(--btn-bg); color: var(--btn-fg); display: grid; place-items: center; flex: 0 0 auto; }

.car { padding: 13px 14px 12px; }
.car.unterwegs { border-color: var(--info); box-shadow: 0 0 0 1px var(--info); }
.car.angekommen { border-color: color-mix(in srgb, var(--ok) 55%, var(--line)); }
.car-h { display: flex; align-items: flex-start; gap: 11px; }
.car-ico { width: 40px; height: 40px; border-radius: 11px; background: var(--bg-2); color: var(--t-transfer); display: grid; place-items: center; flex: 0 0 auto; }
.car-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.car-t strong { font-weight: 600; font-size: 16px; line-height: 1.3; }
.car-t small { font-size: 13px; }
.car-driver { display: flex; align-items: center; gap: 6px; margin: 10px 0 0; padding-top: 10px; border-top: 1px solid var(--line); min-height: 48px; }
.car-driver-n { flex: 1; min-width: 0; font-size: 14px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.car-driver-n strong { font-weight: 600; color: var(--ink); }
.car-driver .iconbtn { width: 38px; height: 38px; }
.car-pax { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 2px; }
.pax-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px 3px 3px; border-radius: 999px; background: var(--bg-2); border: 0; font: inherit; font-size: 13.5px; font-weight: 500; color: var(--ink); max-width: 100%; }
.pax-chip.tappable { cursor: pointer; border: 1px dashed var(--line-2); background: var(--card); }
.pax-chip .avatar { font-size: 9px !important; }
.car-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 11px; }
.ck-nocar { padding: 12px 14px; }
.ck-nocar-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ck-nocar-h .ok { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; }
.ck-nocar-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.ck-assign .checkbox { gap: 10px; }
.ck-assign .clabel small { font-size: 12.5px; }
.ck-assign .clabel small.warn { color: var(--warn); }
.ck-carpick { width: 100%; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; font: inherit; color: inherit; }
.ck-carpick:last-child { border-bottom: 0; }
.ck-carpick:disabled { opacity: .55; cursor: default; }

.sysmsg .ico { flex: 0 0 auto; }
.sysmsg.gast { background: var(--warn-soft); color: var(--warn); font-weight: 500; }
.sysmsg.wagen { background: var(--info-soft); color: var(--info); }
.sysmsg.mail { background: var(--bg-2); }

/* ---- Where is everyone ---- */
.map-box { position: relative; height: 46vh; min-height: 260px; max-height: 460px; margin: -2px -16px 8px; background: var(--bg-2); overflow: hidden; z-index: 0; }
.map-box > .spinner { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.map-fail { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--muted); font-size: 14px; }
.map-note { margin: 0 2px 12px; }
.map-box .leaflet-container { font: inherit; background: var(--bg-2); }
:root[data-theme="dark"] .map-box .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.92) contrast(.88) saturate(.7); }
.map-box .leaflet-control-attribution { font-size: 10px; background: color-mix(in srgb, var(--bg) 80%, transparent); color: var(--muted); }
.map-box .leaflet-control-attribution a { color: var(--muted); }
.map-box .leaflet-bar a { background: var(--card); color: var(--ink); border-color: var(--line); }
.map-person { background: none; border: 0; }
.map-person .mp-av { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; background: var(--ink); color: var(--bg); font-weight: 700; font-size: 15px; border: 3px solid var(--bg); box-shadow: 0 2px 8px rgba(0, 0, 0, .35); }
.map-person .mp-av img { width: 100%; height: 100%; object-fit: cover; }
.map-person.me .mp-av { border-color: var(--info); }
.map-person.alt .mp-av { opacity: .55; filter: grayscale(1); }
.map-person .mp-l { position: absolute; top: 46px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 11.5px; font-weight: 700; color: var(--ink); background: color-mix(in srgb, var(--bg) 88%, transparent); padding: 1px 6px; border-radius: 6px; box-shadow: 0 1px 3px rgba(0, 0, 0, .18); }
.map-person .mp-l small { font-weight: 500; color: var(--muted); font-size: 10.5px; }
.map-ort { background: none; border: 0; }
.map-ort .mo-dot { position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); border: 2px solid var(--bg); box-shadow: 0 1px 4px rgba(0, 0, 0, .3); }
.map-ort .mo-l { position: absolute; left: 10px; top: -10px; white-space: nowrap; font-size: 11px; font-weight: 600; color: var(--ink-2); background: color-mix(in srgb, var(--bg) 85%, transparent); padding: 1px 5px; border-radius: 5px; }
.map-acc { color: var(--info); }
.person-row.wo { align-items: center; }
.person-row.wo.fokus { background: var(--bg-2); }
.wo-who { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; border: 0; background: none; padding: 0; text-align: left; color: inherit; font: inherit; cursor: pointer; }
.wo-who:disabled { cursor: default; }
.wo-who .pr-b small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.person-row.wo .pr-actions .iconbtn { width: 38px; height: 38px; }
.ask-card { border-color: var(--ink); }
.ask-h { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.ask-h .pr-ico { width: 38px; height: 38px; border-radius: 11px; background: var(--bg-2); display: grid; place-items: center; flex: 0 0 auto; }
.ask-card .btnrow { margin-top: 10px; }

/* ---- Emails ---- */
.mail-status { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: -2px 2px 12px; }
.mail-status > * { display: inline-flex; align-items: center; gap: 5px; }
.mail-row { display: flex; gap: 10px; padding: 12px 16px 12px 12px; border-bottom: 1px solid var(--line); color: inherit; }
.mail-row:last-child { border-bottom: 0; }
.mail-row:active { background: var(--bg-2); }
.mail-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 7px; flex: 0 0 auto; background: transparent; }
.mail-row.neu .mail-dot { background: var(--accent); }
.mail-row.done { opacity: .6; }
.mail-b { flex: 1; min-width: 0; }
.mail-top { display: flex; align-items: baseline; gap: 8px; }
.mail-top strong { flex: 1; min-width: 0; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mail-row.neu .mail-top strong, .mail-row.neu .mail-subj { font-weight: 700; }
.mail-top time { font-size: 12px; color: var(--muted); flex: 0 0 auto; font-variant-numeric: tabular-nums; }
.mail-subj { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mail-ex { font-size: 13px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 1px; }
.mail-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.mail-chips .chip { font-size: 11.5px; padding: 1px 8px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.mail-head { display: flex; flex-direction: column; gap: 2px; }
.mail-head strong { font-size: 16px; }
.mail-head small { word-break: break-word; }
.mail-text { font-size: 14.5px; line-height: 1.5; }
.claude-card { border-color: color-mix(in srgb, var(--info) 45%, var(--line)); }
.claude-card .card-h h3 { display: inline-flex; align-items: center; gap: 6px; }
.vorschlag-card { border-color: var(--warn); box-shadow: 0 0 0 1px var(--warn); }
.vorschlag-card.uebernommen, .vorschlag-card.verworfen { border-color: var(--line); box-shadow: none; }
.anhang { padding-left: 0; padding-right: 0; }
.ico.spinning { animation: spin 1s linear infinite; }

@media (max-width: 699px) {
  .tiles > :last-child:nth-child(odd) { grid-column: span 2; }
}
