/* LMB Mobile CI — M1.2 Design-System (Spec: Design-Agent 2026-07-02)
   Off-White-Grund, weiße 8px-Karten, Navy nur Header/Drawer, Blau = Aktion,
   Gold NUR Logo + Drawer-Aktivbalken, Semantik nur für Status. */

:root {
  --navy-900: #0A1E3C; --navy-800: #10294E; --navy-700: #1A3A6B; --navy-100: #E4EAF3;
  --blue-600: #2563EB; --blue-700: #1D4ED8; --blue-100: #E7EFFC;
  --gold-400: #D4AF5E; --gold-600: #9A7B2E;
  --bg: #F5F7FA; --surface: #FFFFFF; --surface-sub: #EEF2F7;
  --border: #E3E8EF; --border-strong: #D7DEE8;
  --text-900: #16233A; --text-600: #5B6B84; --text-400: #8A97AB;
  --on-navy: #FFFFFF; --on-navy-dim: rgba(255,255,255,0.72);
  --ok-text: #157F3C; --ok-dot: #22A05A; --ok-bg: #E9F6EE;
  --warn-text: #9A6700; --warn-dot: #E0A63C; --warn-bg: #FBF3DE;
  --danger-text: #B3362B; --danger-dot: #DC4C41; --danger-bg: #FBECEA;
  --info-text: #2458C5; --info-dot: #2563EB; --info-bg: #E7EFFC;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  --r: 8px; --r-badge: 6px;
  --shadow-1: 0 1px 2px rgba(16,24,40,0.06);
  --shadow-2: 0 12px 32px rgba(10,30,60,0.24);
  --h-header: 92px; --h-row: 52px; --h-row-2: 64px; --h-btn: 48px;
  --gutter: 16px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font: 400 16px/22px var(--font);
  background: var(--bg); color: var(--text-900);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.drawer-open { overflow: hidden; }
a { color: var(--blue-600); text-decoration: none; }
button { font: inherit; border: 0; background: none; padding: 0; cursor: pointer; color: inherit; }
button:focus-visible, a:focus-visible { outline: 3px solid rgba(37,99,235,0.3); outline-offset: 2px; }
[hidden] { display: none !important; }

/* ---------- App-Header ---------- */
.app-header {
  position: sticky; top: 0; z-index: 40;
  background: linear-gradient(105deg, #FED996 0%, #FDD994 20%, #F4C97F 40%, #E9B969 60%, #DFAE5A 82%, #E0AD5A 100%);
  color: var(--navy-900);
  padding-top: env(safe-area-inset-top);
  box-shadow: 0 1px 0 rgba(154,123,46,0.2);
}
.app-header-inner { height: var(--h-header); display: flex; align-items: center; gap: 12px; padding: 0 12px 0 8px; }
.icon-btn {
  width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 50%; color: inherit; flex: none;
}
.icon-btn:active { background: rgba(10,30,60,0.1); }
.icon-btn svg { width: 24px; height: 24px; }
.on-light .icon-btn { color: var(--text-600); }
.on-light .icon-btn:active { background: var(--surface-sub); }
.logo-plate {
  display: grid; place-items: center; flex: none;
  background: var(--navy-700); border-radius: 8px;
  color: var(--gold-400);
  font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
  font-weight: 700; letter-spacing: 0.04em;
}
.logo-plate--sm { width: 28px; height: 28px; font-size: 11px; }
.logo-plate--md { width: 40px; height: 40px; font-size: 15px; }
.logo-plate--lg { width: 64px; height: 64px; font-size: 24px; background: var(--navy-900); border-radius: 12px; }
.brand-mark { display: block; object-fit: cover; flex: none; clip-path: inset(1.5% round 24%); }
.brand-mark--header { width: 54px; height: 54px; margin-right: 2px; filter: drop-shadow(0 8px 12px rgba(78,48,0,0.2)); }
.brand-mark--drawer { width: 54px; height: 54px; }
.brand-mark--login { width: 96px; height: 96px; filter: drop-shadow(0 14px 24px rgba(10,30,60,0.22)); }
.header-title { min-width: 0; flex: 1; }
.header-title .t1 { font-size: 20px; font-weight: 700; line-height: 24px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.header-title .t2 { font-size: 14px; font-weight: 500; line-height: 18px; color: rgba(10,30,60,0.72); }
.header-title .t1.single { font-size: 17px; }
.conn-dot { width: 8px; height: 8px; border-radius: 50%; margin: 0 16px 0 8px; flex: none; }
.conn-dot.ok { background: var(--ok-dot); } .conn-dot.bad { background: var(--danger-dot); }

/* ---------- Drawer ---------- */
.scrim {
  position: fixed; inset: 0; z-index: 50; background: rgba(10,30,60,0.5);
  opacity: 0; pointer-events: none; transition: opacity 0.2s ease;
}
.drawer {
  position: fixed; z-index: 51; top: 0; bottom: 0; left: 0;
  width: min(84vw, 320px);
  background: var(--navy-900); color: var(--on-navy);
  box-shadow: var(--shadow-2);
  transform: translateX(-102%); transition: transform 0.24s cubic-bezier(0.32,0.72,0,1);
  display: flex; flex-direction: column;
  padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom);
}
body.drawer-open .scrim { opacity: 1; pointer-events: auto; }
body.drawer-open .drawer { transform: translateX(0); }
.drawer-head { min-height: 88px; display: flex; align-items: center; gap: 12px; padding: 10px 8px 10px 16px; }
.drawer-head .name { font-size: 17px; font-weight: 600; line-height: 21px; }
.drawer-head .sub { font-size: 12px; font-weight: 500; color: var(--on-navy-dim); }
.drawer-head .spacer { flex: 1; }
.drawer-sep { height: 1px; background: rgba(255,255,255,0.12); margin: 0 16px; }
.drawer-nav { padding: 8px; display: grid; gap: 2px; }
.drawer-item {
  display: flex; align-items: center; gap: 12px;
  height: 48px; padding: 0 16px; border-radius: var(--r);
  font-size: 16px; font-weight: 500; color: var(--on-navy);
  position: relative; text-align: left; width: 100%;
}
.drawer-item > svg { width: 22px; height: 22px; flex: none; }
.drawer-item svg { width: 22px; height: 22px; flex: none; }
.drawer-item:active { background: var(--navy-800); }
.drawer-item.active { background: var(--navy-700); }
.drawer-item.active::before {
  content: ""; position: absolute; left: -8px; top: 8px; bottom: 8px;
  width: 3px; background: var(--gold-400);
}
.drawer-item.dim { color: var(--on-navy-dim); }
.drawer-foot {
  margin-top: auto; height: 56px; background: var(--navy-800);
  display: flex; align-items: center; gap: 10px; padding: 0 12px;
}
.drawer-foot .status { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: var(--on-navy-dim); flex: 1; }
.drawer-foot .status .dot { width: 8px; height: 8px; border-radius: 50%; }
.drawer-foot .ver { font-size: 12px; color: rgba(255,255,255,0.4); }
.spin svg { animation: lmb-spin 1s linear infinite; }
@keyframes lmb-spin { to { transform: rotate(360deg); } }

/* ---------- Seiten-Layout ---------- */
.page { padding: 16px var(--gutter) calc(24px + env(safe-area-inset-bottom)); max-width: 640px; margin: 0 auto; }
.page:focus { outline: none; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin: 24px 0 8px; min-height: 28px;
}
.section-head:first-child { margin-top: 0; }
.section-head h2 { margin: 0; font-size: 16px; font-weight: 600; line-height: 22px; }
.section-head .count { min-width: 28px; min-height: 28px; padding: 4px 9px; display: inline-grid; place-items: center; border-radius: 999px; font-size: 13px; font-weight: 700; color: #A86D08; background: #FFF2DB; }
.section-head .count.warn { color: var(--warn-text); }
.section-head.today h2 { color: var(--blue-600); }

/* ---------- Karten & Zeilen ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); box-shadow: var(--shadow-1);
}
.card.pad { padding: 16px; }
.card + .card { margin-top: 12px; }
.card-title { margin: 0; font-size: 17px; font-weight: 600; line-height: 22px; }
.card-sub { margin: 4px 0 0; font-size: 14px; line-height: 19px; color: var(--text-600); }
.row {
  display: flex; align-items: center; gap: 10px;
  min-height: var(--h-row); padding: 8px 16px;
  border-top: 1px solid var(--border);
  width: 100%; text-align: left; color: inherit;
}
.card .row:first-child, .card .rows > .row:first-child { border-top: 0; }
.row:active { background: var(--surface-sub); }
.row .time { flex: none; width: 44px; font-size: 15px; font-weight: 600; color: var(--text-900); }
.row .main { flex: 1; min-width: 0; }
.row .main .l1 { font-size: 16px; font-weight: 500; line-height: 21px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .main .l2 { font-size: 13px; line-height: 17px; color: var(--text-600); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .chev { flex: none; color: var(--text-400); } .row .chev svg { width: 20px; height: 20px; display: block; }
.row svg.chev { width: 20px; height: 20px; flex: none; color: var(--text-400); }
.row-meta { flex: none; font-size: 13px; color: var(--text-400); white-space: nowrap; }
.row .ext { flex: none; width: 44px; height: 44px; display: grid; place-items: center; color: var(--blue-600); margin: -8px -6px; }
.row .ext svg { width: 20px; height: 20px; }
.row.past .time, .row.past .main .l1 { color: var(--text-400); }
.row.next { border-left: 3px solid #C68A20; background: linear-gradient(90deg, #FFF9EF, #FFFFFF 58%); }
.row.next .time { color: #A86D08; }
.row-2 { min-height: var(--h-row-2); }
.stat { flex: none; display: grid; place-items: center; width: 20px; }
.stat svg { width: 18px; height: 18px; }
.stat .dot, .dot-i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.ok { color: var(--ok-dot); } .warn-c { color: var(--warn-dot); }
.bg-ok { background: var(--ok-dot); } .bg-warn { background: var(--warn-dot); }
.bg-danger { background: var(--danger-dot); } .bg-info { background: var(--info-dot); } .bg-neutral { background: var(--text-400); }

.bullet-row { display: flex; gap: 10px; padding: 10px 16px; border-top: 1px solid var(--border); min-height: 52px; align-items: flex-start; }
.card .bullet-row:first-child { border-top: 0; }
.bullet-row .b { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--text-400); margin-top: 8px; }
.bullet-row .txt { font-size: 15px; line-height: 20px; }
.bullet-row .meta { font-size: 12px; line-height: 16px; color: var(--text-400); margin-top: 2px; }

.badge {
  display: inline-flex; align-items: center; height: 22px; padding: 0 8px;
  border-radius: var(--r-badge); font-size: 12px; font-weight: 600;
}
.badge.ok { background: var(--ok-bg); color: var(--ok-text); }
.badge.warn { background: var(--warn-bg); color: var(--warn-text); }
.badge.danger { background: var(--danger-bg); color: var(--danger-text); }
.badge.info { background: var(--info-bg); color: var(--info-text); }

.link-row {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-size: 15px; font-weight: 600; color: var(--blue-600);
}
.link-row svg { width: 20px; height: 20px; }

.btn-primary {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: var(--h-btn);
  background: linear-gradient(110deg, #082A55, #0A1E3C); color: #F2C76E;
  border-radius: var(--r); font-size: 16px; font-weight: 600;
}
.btn-primary:active { background: #06182F; }
.btn-primary[disabled] { background: var(--surface-sub); color: var(--text-400); }
.btn-text { color: var(--blue-600); font-size: 15px; font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }
.btn-primary svg { width: 18px; height: 18px; }
.btn-inline { width: auto; min-width: 160px; padding: 0 18px; gap: 8px; }

/* ---------- Login ---------- */
.login-wrap { min-height: 100dvh; padding: calc(96px + env(safe-area-inset-top)) 24px 24px; background: var(--bg); }
.login-brand { display: grid; justify-items: center; gap: 12px; margin-bottom: 32px; }
.login-brand h1 { margin: 0; font-size: 28px; font-weight: 700; line-height: 34px; color: var(--text-900); }
.login-brand p { margin: -4px 0 0; font-size: 14px; font-weight: 500; color: var(--text-600); }
.login-card { max-width: 400px; margin: 0 auto; padding: 24px; }
.field { display: block; margin-bottom: 16px; }
.field span { display: block; font-size: 14px; font-weight: 500; color: var(--text-600); margin-bottom: 6px; }
.field input {
  width: 100%; height: 48px; padding: 0 14px;
  font: 400 16px/1 var(--font); color: var(--text-900);
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--r);
}
.field input:focus { outline: none; border-color: var(--blue-600); box-shadow: 0 0 0 3px var(--blue-100); }
.login-error {
  display: none; background: var(--danger-bg); color: var(--danger-text);
  border-radius: var(--r); padding: 12px; font-size: 14px; margin-bottom: 16px;
}
.login-error.show { display: block; }
.login-note { margin: 14px 0 0; text-align: center; color: var(--text-400); font-size: 12px; line-height: 17px; }

/* ---------- Zustaende ---------- */
.skeleton { border-radius: 6px; background: var(--surface-sub); position: relative; overflow: hidden; }
.skeleton::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, #F7FAFD, transparent);
  animation: lmb-shimmer 1.2s infinite;
}
@keyframes lmb-shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.empty { display: grid; justify-items: center; gap: 6px; padding: 28px 16px; text-align: center; }
.empty svg { width: 32px; height: 32px; color: var(--text-400); }
.empty .h { font-size: 15px; font-weight: 600; color: var(--text-900); }
.empty .s { font-size: 14px; color: var(--text-600); }
.loading-stack { display: grid; gap: 16px; padding-top: 12px; }
.loading-line { width: 48%; height: 24px; }
.loading-card { width: 100%; height: 180px; }
.loading-card.short { height: 110px; }
.error-box {
  display: flex; align-items: center; gap: 10px;
  background: var(--danger-bg); border: 1px solid #F0C7C2; border-radius: var(--r);
  padding: 12px 16px; color: var(--danger-text); font-size: 15px;
}
.error-box svg { width: 20px; height: 20px; flex: none; }
.partial-warning { margin-bottom: 16px; }
.mac-hint {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; margin-top: 16px;
  font-size: 13px; color: var(--text-400); text-align: center;
}
.mac-hint svg { width: 16px; height: 16px; }
.briefing-markdown { color: var(--text-600); }
.briefing-markdown h3 { margin: 18px 0 6px; color: var(--text-900); font-size: 16px; line-height: 22px; }
.briefing-markdown p { margin: 0 0 8px; }
.briefing-markdown ul { margin: 4px 0 10px; padding-left: 20px; }
.briefing-markdown li { margin: 0 0 5px; }

/* Detail-Uebersicht */
.kv-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.kv-top .who { font-size: 16px; font-weight: 500; }
.detail-body { font-size: 16px; line-height: 24px; }
.detail-body p { margin: 0 0 8px; } .detail-body p:last-child { margin: 0; }
.detail-body ul { margin: 4px 0; padding-left: 20px; } .detail-body li { margin-bottom: 4px; }

/* ---------- M1.2 Mobile-Shell ---------- */
.page-intro { margin: 4px 0 20px; }
.page-intro h1, .welcome h1 { margin: 0; font-size: 30px; line-height: 36px; letter-spacing: 0; }
.page-intro p, .welcome > p:last-child { margin: 6px 0 0; color: var(--text-600); font-size: 15px; }
.welcome { padding: 10px 2px 18px; }
.welcome-kicker { margin: 0 0 4px; color: #A86D08; font-size: 13px; font-weight: 750; text-transform: uppercase; letter-spacing: 0.08em; }

.next-action { border-left: 3px solid var(--blue-600); padding: 16px; background: linear-gradient(135deg, #fff 0%, #f7faff 100%); }
.next-action-top { display: flex; align-items: center; justify-content: space-between; color: var(--blue-600); font-size: 12px; font-weight: 700; text-transform: uppercase; }
.next-action-top svg { width: 20px; height: 20px; color: #B8790A; }
.next-action-body { display: flex; gap: 12px; align-items: flex-start; margin: 16px 0 12px; }
.action-icon { width: 42px; height: 42px; display: grid; place-items: center; flex: none; border-radius: 50%; background: var(--blue-100); color: var(--blue-600); }
.action-icon svg { width: 21px; height: 21px; }
.action-copy { min-width: 0; }
.action-copy h2 { margin: 0; font-size: 19px; line-height: 25px; }
.action-copy p { margin: 4px 0 0; color: var(--text-600); font-size: 14px; line-height: 19px; }
.action-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 0 0 14px 54px; color: var(--text-600); font-size: 13px; }
.action-meta span { display: inline-flex; align-items: center; gap: 5px; }
.action-meta svg { width: 16px; height: 16px; }

.customer-list { overflow: hidden; }
.customer-row { width: 100%; min-height: 88px; display: flex; align-items: center; gap: 10px; padding: 12px 14px; text-align: left; border-top: 1px solid var(--border); }
.customer-row:first-child { border-top: 0; }
.customer-row:active { background: var(--surface-sub); }
.health-ring { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--surface-sub); }
.health-ring span { width: 10px; height: 10px; border-radius: 50%; }
.health-ring.ok span { background: var(--ok-dot); }
.health-ring.warn span { background: var(--warn-dot); }
.health-ring.danger span { background: var(--danger-dot); }
.customer-main { flex: 1; min-width: 0; display: grid; }
.customer-name { font-size: 16px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.customer-contact { font-size: 13px; color: var(--text-600); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.customer-meta { margin-top: 4px; font-size: 12px; color: var(--text-400); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.customer-side { display: grid; justify-items: end; gap: 6px; flex: none; }
.customer-side small { font-size: 11px; color: var(--text-400); }
.customer-row > svg { width: 18px; height: 18px; flex: none; color: var(--text-400); }

.back-link { display: inline-flex; min-height: 44px; align-items: center; gap: 6px; color: var(--blue-600); font-size: 14px; font-weight: 600; margin: -10px 0 4px; }
.back-link svg { width: 18px; height: 18px; }
.customer-hero { padding: 16px; display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.customer-hero h1 { margin: 3px 0 1px; font-size: 23px; line-height: 29px; }
.customer-hero p { margin: 0; color: var(--text-600); font-size: 14px; }
.customer-eyebrow { color: var(--blue-600); font-size: 12px; font-weight: 650; }
.detail-tabs { position: sticky; top: calc(var(--h-header) + env(safe-area-inset-top)); z-index: 20; margin: 12px calc(var(--gutter) * -1) 4px; padding: 8px var(--gutter); display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; background: rgba(245,247,250,0.96); backdrop-filter: blur(12px); }
.detail-tabs button { min-height: 40px; border-radius: var(--r); color: var(--text-600); font-size: 13px; font-weight: 600; }
.detail-tabs button.active { background: var(--navy-900); color: #fff; }

.metrics-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.metric { min-height: 74px; padding: 12px; border: 1px solid var(--border); border-radius: var(--r); background: var(--surface); }
.metric span { display: block; color: var(--text-600); font-size: 12px; }
.metric strong { display: block; margin-top: 4px; font-size: 18px; font-weight: 650; text-transform: capitalize; }
.metric.good { border-color: #b9dfc8; background: linear-gradient(145deg, #fff, var(--ok-bg)); }
.metric.warn { border-color: #ecd59e; background: linear-gradient(145deg, #fff, var(--warn-bg)); }
.focus-card { padding: 16px; border-left: 3px solid var(--warn-dot); }
.focus-card p { margin: 0; font-size: 16px; line-height: 23px; }
.key-values { overflow: hidden; }
.key-values > div { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; padding: 13px 16px; border-top: 1px solid var(--border); }
.key-values > div:first-child { border-top: 0; }
.key-values span { color: var(--text-600); font-size: 13px; }
.key-values strong { font-size: 15px; font-weight: 600; line-height: 20px; overflow-wrap: anywhere; }

.briefing-placeholder { padding: 24px 18px; text-align: center; }
.briefing-placeholder h2 { margin: 8px 0 6px; font-size: 19px; }
.briefing-placeholder p { margin: 0 auto 18px; max-width: 36ch; color: var(--text-600); font-size: 14px; line-height: 20px; }
.briefing-placeholder h3 { margin: 18px 0 4px; text-align: left; font-size: 15px; }
.briefing-placeholder ul, .briefing-placeholder > p { text-align: left; }
.briefing-placeholder ul { margin: 4px 0; padding-left: 20px; font-size: 15px; line-height: 22px; }
.briefing-icon { width: 44px; height: 44px; margin: 0 auto; display: grid; place-items: center; border-radius: 50%; background: var(--blue-100); color: var(--blue-600); }
.briefing-icon svg { width: 23px; height: 23px; }
.briefing-ready-head { display: flex; align-items: flex-start; justify-content: space-between; text-align: left; }
.briefing-ready-head h2 { margin-top: 6px; }
.briefing-ready-head > svg { width: 24px; height: 24px; color: var(--blue-600); }

.timeline { padding: 8px 16px; }
.timeline-item { display: grid; grid-template-columns: 14px 1fr; gap: 8px; padding: 12px 0; border-top: 1px solid var(--border); }
.timeline-item:first-child { border-top: 0; }
.timeline-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--blue-600); margin-top: 5px; }
.timeline-date { font-size: 12px; color: var(--text-600); font-weight: 600; }
.timeline-item p { margin: 3px 0 0; font-size: 15px; line-height: 21px; }

.week-list { display: grid; gap: 10px; }
.week-day { border: 1px solid var(--border); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.week-day > header { min-height: 48px; padding: 8px 14px; display: flex; justify-content: space-between; align-items: center; background: var(--surface-sub); }
.week-day > header div { display: flex; align-items: baseline; gap: 7px; }
.week-day > header strong { font-size: 15px; }
.week-day > header span { color: var(--text-600); font-size: 12px; }
.week-day.today { border-color: #9fc0f8; }
.week-day.today > header { background: var(--blue-100); }
.week-meeting { display: grid; grid-template-columns: 52px 1fr; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--border); }
.week-time { font-size: 14px; font-weight: 650; color: var(--blue-600); }
.week-main { min-width: 0; display: grid; }
.week-main strong { font-size: 15px; }
.week-main > span { color: var(--text-600); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.review { margin-top: 5px; display: inline-flex; align-items: center; gap: 5px; font-size: 12px; }
.review svg { width: 14px; height: 14px; }
.review.ok { color: var(--ok-text); } .review.warn { color: var(--warn-text); } .review.neutral { color: var(--text-400); }
.day-empty { padding: 14px; color: var(--text-400); font-size: 13px; }

.task-list { overflow: hidden; }
.task-row { display: grid; grid-template-columns: 26px 1fr; gap: 10px; padding: 14px 16px; border-top: 1px solid var(--border); }
.task-row:first-child { border-top: 0; }
.task-marker { width: 7px; height: 7px; margin-top: 7px; border-radius: 50%; background: var(--blue-600); }
/* M1.4: Abhak-Checkbox + Erledigt-Zustand (optimistic, bis zum Refresh) */
.task-check { flex: none; width: 24px; height: 24px; border: 2px solid var(--blue-600); border-radius: 50%; background: transparent; padding: 0; cursor: pointer; position: relative; }
.bullet-row .task-check { margin-top: -2px; margin-right: 2px; }
.task-check:disabled { opacity: 0.6; }
[data-commitment-row].done .task-check { background: var(--blue-600); }
[data-commitment-row].done .task-check::after { content: ''; position: absolute; left: 6px; top: 3px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(42deg); }
[data-commitment-row].done strong, [data-commitment-row].done .txt { text-decoration: line-through; color: var(--text-400); }
[data-commitment-row].done .badge, [data-commitment-row].done .meta, [data-commitment-row].done .task-due { opacity: 0.55; }
.task-row strong { display: block; font-size: 15px; line-height: 21px; }
.task-row > div > div { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.task-due { color: var(--text-400); font-size: 12px; }
.b.task { background: var(--blue-600); }
.empty.compact { padding: 18px 12px; }

.toast { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 80; transform: translate(-50%, 18px); opacity: 0; pointer-events: none; background: var(--navy-900); color: #fff; border-radius: var(--r); padding: 10px 14px; box-shadow: var(--shadow-2); font-size: 13px; white-space: nowrap; transition: 0.2s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast .toast-action { margin-left: 12px; background: none; border: 0; padding: 0; color: var(--gold-400); font-size: 13px; font-weight: 650; cursor: pointer; }

.settings-list { overflow: hidden; }
.settings-row { display: flex; align-items: center; gap: 12px; min-height: 72px; padding: 12px 14px; border-top: 1px solid var(--border); }
.settings-row:first-child { border-top: 0; }
.settings-row > div { flex: 1; min-width: 0; }
.settings-row strong { display: block; font-size: 15px; line-height: 20px; }
.settings-row p { margin: 2px 0 0; color: var(--text-600); font-size: 13px; line-height: 18px; }
.settings-icon { width: 38px; height: 38px; display: grid; place-items: center; flex: none; border-radius: 50%; background: var(--surface-sub); color: var(--navy-700); }
.settings-icon.ok-bg { color: var(--ok-text); background: var(--ok-bg); }
.settings-icon svg { width: 20px; height: 20px; }
.security-note { display: flex; align-items: flex-start; gap: 9px; margin-top: 10px; padding: 12px 14px; border-radius: var(--r); background: var(--blue-100); color: var(--info-text); font-size: 13px; line-height: 18px; }
.security-note svg { width: 18px; height: 18px; flex: none; }
.btn-small { min-height: 36px; padding: 0 10px; border: 1px solid var(--border-strong); border-radius: var(--r); color: var(--blue-600); font-size: 12px; font-weight: 650; flex: none; }
.btn-small svg { width: 16px; height: 16px; }
.btn-secondary { width: 100%; min-height: 48px; margin-top: 24px; display: flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--border-strong); border-radius: var(--r); background: var(--surface); font-weight: 600; }
.btn-secondary svg { width: 18px; height: 18px; }
.danger-action { color: var(--danger-text); border-color: #efc4bf; }

@media (max-width: 370px) {
  :root { --gutter: 12px; }
  .customer-side { display: none; }
  .action-meta { margin-left: 0; }
}

@media (min-width: 600px) {
  .page { padding-top: 24px; }
}

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

/* ---------- M1.6 Mobile-Jarvis Chat ---------- */
/* FAB: Gold-Emblem unten mittig (Leons Referenz), auf allen Ansichten. */
.jarvis-fab {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(14px + env(safe-area-inset-bottom));
  width: 58px; height: 58px; border-radius: 50%;
  border: 2px solid var(--gold-400);
  background: radial-gradient(circle at 30% 25%, var(--navy-800), var(--navy-900));
  color: var(--gold-400); display: grid; place-items: center; z-index: 40;
  box-shadow: 0 4px 18px rgba(212,175,94,0.45), 0 2px 8px rgba(10,30,60,0.35);
}
.jarvis-fab svg { width: 30px; height: 30px; }
.jarvis-fab:active { transform: translateX(-50%) scale(0.94); }
body.chat-open .jarvis-fab, body.drawer-open .jarvis-fab { display: none; }
body:not(.chat-open) .page { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }

/* Chat-Layout: Liste scrollt intern, Composer bleibt unten stehen. */
body.chat-open { overflow: hidden; }
body.chat-open .page {
  display: flex; flex-direction: column;
  height: calc(100dvh - var(--h-header));
  padding: 0 var(--gutter) 0; overflow: hidden;
}
.chat-top { display: flex; justify-content: flex-end; padding: 10px 0 6px; flex: none; }
.chat-list {
  flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch;
  display: flex; flex-direction: column; gap: 10px; padding: 4px 0 12px;
}
.chat-row { display: flex; }
.chat-row.user { justify-content: flex-end; }
.chat-bubble {
  max-width: 86%; border-radius: 16px; padding: 10px 14px;
  font-size: 15px; line-height: 21px;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-1);
}
.chat-bubble.user { background: var(--blue-600); border-color: var(--blue-600); color: #fff; border-bottom-right-radius: 6px; white-space: pre-wrap; }
.chat-bubble.assistant { border-bottom-left-radius: 6px; }
.chat-bubble.error { background: var(--danger-bg); border-color: #F0C7C2; color: var(--danger-text); display: flex; gap: 8px; align-items: flex-start; }
.chat-bubble.error svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.chat-meta { margin-top: 6px; font-size: 12px; color: var(--text-400); }
.chat-chip {
  margin-top: 8px; display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px;
  background: var(--info-bg); color: var(--info-text);
}
.chat-chip svg { width: 14px; height: 14px; }
.chat-markdown p { margin: 0 0 6px; }
.chat-markdown p:last-child { margin-bottom: 0; }
.chat-markdown ul { margin: 4px 0 6px; padding-left: 18px; }
.chat-markdown li { margin: 0 0 4px; }
.chat-markdown h3 { margin: 8px 0 4px; font-size: 15px; line-height: 20px; }
.chat-intro { text-align: center; padding: 44px 20px 20px; color: var(--text-600); display: grid; gap: 8px; justify-items: center; }
.chat-intro-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, var(--navy-800), var(--navy-900));
  border: 2px solid var(--gold-400); display: grid; place-items: center;
}
.chat-intro-icon svg { width: 34px; height: 34px; color: var(--gold-400); }
.chat-intro h2 { margin: 4px 0 0; font-size: 18px; color: var(--text-900); }
.chat-intro p { margin: 0; font-size: 14px; line-height: 20px; }
.chat-intro .chat-privacy { font-size: 12px; color: var(--text-400); }
.chat-bubble.typing { display: inline-flex; gap: 5px; padding: 14px 16px; }
.chat-bubble.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--text-400); animation: chat-blink 1.2s infinite ease-in-out; }
.chat-bubble.typing span:nth-child(2) { animation-delay: .2s; }
.chat-bubble.typing span:nth-child(3) { animation-delay: .4s; }
@keyframes chat-blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.chat-composer {
  flex: none; display: flex; gap: 8px; align-items: flex-end;
  padding: 8px 0 calc(10px + env(safe-area-inset-bottom));
}
.chat-composer textarea {
  flex: 1; resize: none; border: 1px solid var(--border-strong); border-radius: 22px;
  padding: 11px 16px; font: inherit; font-size: 15px; line-height: 20px;
  max-height: 120px; background: var(--surface); color: var(--text-900);
}
.chat-composer textarea:focus { outline: none; border-color: var(--blue-600); }
.chat-send {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 30% 25%, var(--navy-800), var(--navy-900));
  border: 1.5px solid var(--gold-400); color: var(--gold-400);
  display: grid; place-items: center;
}
.chat-send:disabled { opacity: 0.45; }
.chat-send svg { width: 20px; height: 20px; }
.chat-bubble.user.uncertain { opacity: 0.8; border: 1px dashed rgba(255,255,255,0.7); }
.chat-uncertain { margin-top: 5px; font-size: 11px; font-weight: 600; color: rgba(255,255,255,0.85); }
