/* ══════════════════════════════════════════════════════════
   Trustomat Kunden-App — Styles
   Design-Tokens aus den bestehenden Embeds (vertraege_LIVE.html),
   damit App und Webflow-Embeds gleich aussehen. Mobil-first.
   ══════════════════════════════════════════════════════════ */
:root {
  --bg: #f3f5f8;
  --card-bg: #ffffff;
  --card-soft: #f8f9fa;
  --card-border: #e9edf2;
  --ink: #1a1a1a;
  --muted: #6b7280;
  --muted-soft: #9ca3af;
  --accent: #10b981;
  --accent-dark: #059669;
  --brand: #1a7aff;
  --brand-dark: #1568e0;
  --navy: #0a1628;
  --navy-2: #0d1b3e;
  --warn-bg: #fff3e0;
  --warn-ink: #e65c00;
  --bad-bg: #fce4ec;
  --bad-ink: #c62828;
  --ok-bg: #e8f5e9;
  --ok-ink: #2e7d32;
  --radius: 14px;
  --radius-sm: 10px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --appbar-h: 54px;
  --bottomnav-h: 62px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  font-family: var(--font);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.45;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
  touch-action: pan-x pan-y;   /* Scrollen ja, Pinch-Zoom nein → statisches App-Layout */
}
[hidden] { display: none !important; }
button { font-family: inherit; }
a { color: var(--brand); }

/* ── Buttons (geteilt) ─────────────────────────────────── */
.btn-primary {
  background: var(--brand); color: #fff; border: none; cursor: pointer;
  font-size: 15px; font-weight: 700;
  padding: 13px 18px; border-radius: var(--radius-sm); transition: background .15s;
}
.btn-primary:hover { background: var(--brand-dark); }
.btn-primary:disabled { opacity: .6; cursor: default; }
.btn-secondary {
  background: #fff; color: var(--muted); border: 1px solid #ddd; cursor: pointer;
  font-size: 14px; font-weight: 600; padding: 12px 16px; border-radius: var(--radius-sm);
}
.btn-block { display: block; width: 100%; }
.link-btn {
  background: none; border: none; color: var(--brand);
  font-size: 14px; font-weight: 600; cursor: pointer; padding: 6px;
}
.form-msg { font-size: 13px; margin-top: 12px; text-align: center; min-height: 18px; }
.form-msg.ok  { color: var(--ok-ink); }
.form-msg.bad { color: var(--bad-ink); }

/* ── T-Logo ────────────────────────────────────────────── */
.tmark { width: 1em; height: 1em; display: inline-block; vertical-align: -0.18em; }

/* ══════════════════ LOGIN ══════════════════ */
.login {
  min-height: 100dvh;
  background:
    radial-gradient(120% 80% at 50% -10%, #14315e 0%, var(--navy) 55%);
  display: flex; align-items: center; justify-content: center;
  padding: calc(24px + var(--safe-top)) 22px calc(24px + var(--safe-bottom));
}
.login-card {
  width: 100%; max-width: 380px;
  background: #fff; border-radius: 20px;
  padding: 30px 24px 22px;
  box-shadow: 0 24px 70px rgba(0,0,0,.45);
}
.login-brand {
  display: flex; align-items: center; gap: 9px;
  font-size: 22px; font-weight: 800; color: var(--navy);
  margin-bottom: 22px;
}
.login-brand .tmark { font-size: 30px; color: var(--navy); }
.login h1 { margin: 0 0 6px; font-size: 22px; color: var(--navy); }
.login-sub { margin: 0 0 22px; font-size: 14px; color: var(--muted); }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 5px; }
.field input, .field select {
  width: 100%; box-sizing: border-box; padding: 12px 13px;
  border: 1px solid #d8dde5; border-radius: var(--radius-sm);
  font-size: 16px; font-family: inherit; background: #fff; color: var(--ink);
  text-align: left;
}
/* type="date" zeigt seinen Wert auf Mobile sonst zentriert → linksbündig erzwingen */
.field input[type="date"] { text-align: left; }
input[type="date"]::-webkit-date-and-time-value { text-align: left; }
.field input:focus, .field select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(26,122,255,.12); }
.login form .btn-primary { margin-top: 6px; }
.login-link { display: block; text-align: center; margin-top: 16px; font-size: 13px; font-weight: 600; text-decoration: none; }
.login-foot { text-align: center; margin-top: 6px; border-top: 1px solid #eef0f3; padding-top: 10px; }
.login-legal { text-align: center; margin-top: 10px; font-size: 12px; color: var(--muted-soft); }
.login-legal a { color: var(--muted-soft); text-decoration: none; }
.login-legal a:hover { text-decoration: underline; }

/* ══════════════════ RECHTLICHES ══════════════════ */
.legal-note { background: var(--warn-bg); color: var(--warn-ink); font-size: 12px; padding: 9px 12px; border-radius: 8px; margin-bottom: 14px; line-height: 1.45; }
.legal-doc { font-size: 14px; color: var(--muted); line-height: 1.6; }
.legal-doc h3 { font-size: 14px; color: var(--navy); margin: 18px 0 4px; }
.legal-doc p { margin: 0 0 4px; }
.legal-doc a { color: var(--brand); }

/* ══════════════════ APP-SHELL ══════════════════ */
.app { min-height: 100dvh; }
.appbar {
  position: sticky; top: 0; z-index: 50;
  height: calc(var(--appbar-h) + var(--safe-top));
  padding: var(--safe-top) 14px 0;
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(1.6) blur(10px);
  border-bottom: 1px solid var(--card-border);
}
.appbar-brand { display: inline-flex; align-items: center; gap: 7px; font-size: 17px; font-weight: 800; color: var(--navy); }
.appbar-brand .tmark { font-size: 22px; color: var(--navy); }
.appbar-spacer { flex: 1; }
.appbar-demo {
  font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  color: var(--warn-ink); background: var(--warn-bg); padding: 3px 8px; border-radius: 20px;
}
.appbar-logout {
  background: none; border: none; cursor: pointer;
  font-size: 20px; color: var(--muted); padding: 6px 8px; line-height: 1; border-radius: 8px;
}
.appbar-logout:hover { background: #f0f2f5; color: var(--ink); }

.view-root {
  padding: 16px 14px calc(var(--bottomnav-h) + var(--safe-bottom) + 18px);
  max-width: 640px; margin: 0 auto;
}

/* ── Bottom-Navigation ── */
.bottomnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  height: calc(var(--bottomnav-h) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  display: flex; background: #fff; border-top: 1px solid var(--card-border);
  box-shadow: 0 -2px 16px rgba(10,22,40,.06);
}
.nav-item {
  flex: 1; background: none; border: none; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--muted-soft); font-size: 11px; font-weight: 600; padding: 6px 2px;
}
.nav-item .ic { font-size: 21px; line-height: 1; filter: grayscale(.4); opacity: .75; }
.nav-item.active { color: var(--brand); }
.nav-item.active .ic { filter: none; opacity: 1; }

/* ══════════════════ HOME ══════════════════ */
.greeting { margin: 4px 2px 16px; }
.greeting h1 { margin: 0 0 2px; font-size: 23px; color: var(--navy); }
.greeting p { margin: 0; font-size: 14px; color: var(--muted); }

.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.stat {
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 15px 16px; min-width: 0;
}
.stat .stat-ico { font-size: 19px; }
.stat .stat-val { font-size: 26px; font-weight: 800; color: var(--navy); margin-top: 6px; line-height: 1.1; }
.stat .stat-lbl { font-size: 12px; color: var(--muted); margin-top: 3px; }
.stat.is-link { cursor: pointer; transition: box-shadow .15s, border-color .15s; }
.stat.is-link:hover { border-color: var(--brand); box-shadow: 0 6px 18px rgba(26,122,255,.1); }
.stat.accent { background: linear-gradient(135deg, #0d1b3e, #14315e); border-color: transparent; color: #fff; }
.stat.accent .stat-val { color: #fff; }
.stat.accent .stat-lbl { color: #b8c6e0; }

.home-section-title { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin: 20px 2px 10px; }
.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.quick {
  display: flex; align-items: center; gap: 11px; text-align: left;
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 14px; cursor: pointer; font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.quick:hover { border-color: var(--brand); box-shadow: 0 6px 18px rgba(26,122,255,.1); }
.quick .q-ico { font-size: 22px; flex-shrink: 0; }
.quick .q-t { display: block; font-size: 14px; font-weight: 700; color: var(--ink); }
.quick .q-s { display: block; font-size: 11px; color: var(--muted-soft); margin-top: 1px; }
.quick.soon { opacity: .72; }
.quick .q-soon { font-size: 9px; font-weight: 800; color: var(--warn-ink); background: var(--warn-bg); padding: 1px 6px; border-radius: 10px; margin-left: auto; align-self: center; }

/* ══════════════════ VERTRÄGE / KARTEN ══════════════════ */
.list-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 2px 2px 12px; }
.list-head h1 { margin: 0; font-size: 22px; color: var(--navy); }
.lh-right { display: flex; align-items: center; gap: 10px; }
.count { font-size: 12px; color: var(--muted-soft); font-weight: 600; }
.btn-add { background: var(--brand); color: #fff; border: none; border-radius: 9px; padding: 8px 13px; font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.btn-add:hover { background: var(--brand-dark); }
.section-title { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin: 4px 2px 8px; }
.reject-note { font-size: 12px; color: var(--bad-ink); margin-top: 8px; }
.pending-note { font-size: 11px; color: var(--muted-soft); margin-top: 8px; }
.req { color: var(--bad-ink); font-weight: 700; }
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.filter-bar select {
  flex: 1 1 150px; min-width: 140px; padding: 10px 12px;
  border: 1px solid #d8dde5; border-radius: var(--radius-sm);
  font-size: 14px; background: #fff; font-family: inherit; color: var(--ink);
}

.card {
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 15px 16px; margin-bottom: 11px; position: relative;
}
.card-clickable { cursor: pointer; transition: box-shadow .15s, border-color .15s, transform .05s; }
.card-clickable:hover { border-color: var(--brand); box-shadow: 0 6px 18px rgba(26,122,255,.12); }
.card-clickable:active { transform: scale(.997); }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 10px; }
.card-head-left { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.title-row { min-width: 0; flex: 1; }
.vnr { font-weight: 700; font-size: 15px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gesellschaft { font-size: 12px; color: var(--muted); margin-top: 2px; font-weight: 600; }
.status-pill { font-size: 11px; font-weight: 700; padding: 4px 11px; border-radius: 20px; white-space: nowrap; flex-shrink: 0; }
.status-aktiv { background: var(--ok-bg); color: var(--ok-ink); }
.status-inaktiv { background: var(--bad-bg); color: var(--bad-ink); }
.status-other, .status-pruefung { background: var(--warn-bg); color: var(--warn-ink); }
.status-abgelehnt { background: var(--bad-bg); color: var(--bad-ink); }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; font-size: 13px; }
.info-grid .lbl { color: var(--muted-soft); }
.info-grid strong { color: var(--ink); }
.card-hint { font-size: 11px; color: var(--brand); font-weight: 600; margin-top: 10px; }

/* ── Zustände ── */
.empty, .loading, .err { color: var(--muted-soft); font-size: 14px; text-align: center; padding: 40px 12px; }
.err { color: var(--bad-ink); }
.empty .big { font-size: 34px; display: block; margin-bottom: 10px; }
.skeleton { background: linear-gradient(90deg,#eef1f5 25%,#e3e8ef 37%,#eef1f5 63%); background-size: 400% 100%; animation: sk 1.3s ease infinite; border-radius: var(--radius); height: 96px; margin-bottom: 11px; }
@keyframes sk { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

/* ══════════════════ MODAL ══════════════════ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(10,22,40,.42);
  display: flex; align-items: flex-end; justify-content: center;
  padding: 0; overflow-y: auto;
  animation: fade .15s ease;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: #fff; border-radius: 18px 18px 0 0; width: 100%; max-width: 560px;
  padding: 20px 18px calc(20px + var(--safe-bottom));
  box-shadow: 0 -10px 50px rgba(10,22,40,.4);
  animation: slideup .2s ease;
}
@keyframes slideup { from { transform: translateY(24px); } to { transform: translateY(0); } }
.vd-head { display: flex; align-items: center; gap: 13px; padding-bottom: 16px; border-bottom: 1px solid #eef0f3; }
.vd-head .title-row { flex: 1; }
.vd-head .vnr { font-size: 17px; }
.vd-close { background: none; border: none; cursor: pointer; font-size: 26px; color: var(--muted-soft); line-height: 1; padding: 0 0 0 8px; }
.vd-close:hover { color: var(--ink); }
.vd-section-label { font-size: 11px; font-weight: 700; color: var(--muted-soft); text-transform: uppercase; letter-spacing: .04em; margin: 18px 0 9px; }
.vd-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px 18px; }
.vd-detail-grid .lbl { color: var(--muted-soft); display: block; font-size: 11px; margin-bottom: 1px; }
.vd-detail-grid strong { color: var(--ink); font-size: 14px; }
.vd-leistungen { background: var(--card-soft); border-radius: var(--radius-sm); padding: 12px 14px; font-size: 13px; color: var(--muted); line-height: 1.5; }
.vd-services { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.vd-service-btn {
  display: flex; align-items: center; gap: 9px;
  background: #fff; border: 1px solid #e2e8f0; border-radius: var(--radius-sm); padding: 13px;
  cursor: pointer; font-family: inherit; text-align: left; transition: border-color .15s, background .15s;
}
.vd-service-btn:hover { border-color: var(--brand); background: #f5f9ff; }
.vd-service-btn .ico { font-size: 17px; flex-shrink: 0; }
.vd-service-btn .t { font-weight: 600; font-size: 13px; color: var(--ink); }
.vd-service-btn.danger:hover { border-color: var(--bad-ink); background: #fff5f7; }

@media (min-width: 560px) {
  .modal-overlay { align-items: center; padding: 24px; }
  .modal { border-radius: 18px; animation: fade .15s ease; }
}
@media (max-width: 340px) {
  .info-grid, .vd-detail-grid, .stat-grid, .quick-grid, .vd-services { grid-template-columns: 1fr; }
}

/* ══════════════════ DOKUMENTE ══════════════════ */
.chip-bar { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 12px; -webkit-overflow-scrolling: touch; }
.chip { flex: none; background: #fff; border: 1px solid var(--card-border); border-radius: 20px; padding: 7px 13px; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; white-space: nowrap; }
.chip.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip-n { opacity: .7; font-weight: 700; }
.doc-row { display: flex; align-items: center; gap: 12px; background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 9px; }
.doc-ic { font-size: 24px; flex: none; }
.doc-main { flex: 1; min-width: 0; }
.doc-cat { display: inline-block; font-size: 10px; font-weight: 700; color: var(--brand); background: #eaf2ff; padding: 1px 7px; border-radius: 10px; margin-bottom: 3px; }
.doc-cat.sonst { color: var(--muted); background: #eef1f5; }
.doc-name { font-size: 14px; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-meta { font-size: 11px; color: var(--muted-soft); margin-top: 1px; }
.doc-dl { flex: none; background: #f0f5ff; border: none; color: var(--brand); font-size: 18px; width: 40px; height: 40px; border-radius: 10px; cursor: pointer; }
.doc-dl:hover { background: #e0ebff; }

/* ══════════════════ SCHÄDEN-TRACKER ══════════════════ */
.sd-card { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 15px 16px; margin-bottom: 12px; }
.sd-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.sd-betreff { font-weight: 700; font-size: 15px; color: var(--ink); }
.sd-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.sd-nr { font-size: 11px; font-weight: 700; color: var(--muted); background: #eef1f5; padding: 3px 9px; border-radius: 8px; white-space: nowrap; }
.stepper { display: flex; margin-top: 16px; }
.step { flex: 1; text-align: center; position: relative; font-size: 10px; color: var(--muted-soft); }
.step .dot { width: 14px; height: 14px; border-radius: 50%; background: #d8dde5; display: block; margin: 0 auto 6px; position: relative; z-index: 1; }
.step.done .dot { background: var(--accent); }
.step.current .dot { background: var(--brand); box-shadow: 0 0 0 4px rgba(26,122,255,.18); }
.step.done, .step.current { color: var(--ink); font-weight: 600; }
.step:not(:first-child)::before { content: ''; position: absolute; top: 6px; left: -50%; width: 100%; height: 2px; background: #e3e8ef; z-index: 0; }
.step.done:not(:first-child)::before { background: var(--accent); }

/* ══════════════════ STAMMDATEN-FORM ══════════════════ */
.sd-form { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 16px; }
.sd-form .btn-primary { margin-top: 6px; }
.field input[readonly] { background: #f3f5f8; color: var(--muted); cursor: not-allowed; }
.ro-hint { font-size: 10px; color: var(--muted-soft); font-weight: 500; margin-left: 6px; }

/* ══════════════════ MEHR-HUB ══════════════════ */
.hub-row { display: flex; align-items: center; gap: 13px; width: 100%; text-align: left; font-family: inherit; background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 15px; margin-bottom: 10px; cursor: pointer; }
.hub-row:hover { border-color: var(--brand); }
.hub-row.soon { opacity: .7; cursor: default; }
.hub-ic { font-size: 22px; flex: none; }
.hub-txt { display: flex; flex-direction: column; min-width: 0; }
.hub-t { font-size: 15px; font-weight: 700; color: var(--ink); }
.hub-s { font-size: 12px; color: var(--muted-soft); }
.hub-arrow { margin-left: auto; color: var(--muted-soft); font-size: 22px; }
.hub-soon { margin-left: auto; font-size: 10px; font-weight: 800; color: var(--warn-ink); background: var(--warn-bg); padding: 2px 8px; border-radius: 10px; }

/* ══════════════════ TOAST ══════════════════ */
.toast { position: fixed; left: 50%; bottom: calc(var(--bottomnav-h) + var(--safe-bottom) + 14px); transform: translateX(-50%); background: var(--navy); color: #fff; padding: 11px 16px; border-radius: 10px; font-size: 13px; font-weight: 600; box-shadow: 0 8px 30px rgba(10,22,40,.4); z-index: 10000; max-width: 90%; text-align: center; }
.toast.bad { background: var(--bad-ink); }

/* ══════════════════ ONBOARDING ══════════════════ */
.ob-overlay { position: fixed; inset: 0; z-index: 20000; background: radial-gradient(120% 80% at 50% -10%, #14315e 0%, var(--navy) 60%); display: flex; align-items: center; justify-content: center; padding: calc(18px + var(--safe-top)) 16px calc(18px + var(--safe-bottom)); }
.ob-card { width: 100%; max-width: 460px; max-height: 92dvh; overflow-y: auto; background: #fff; border-radius: 20px; padding: 24px 22px; box-shadow: 0 24px 70px rgba(0,0,0,.5); position: relative; -webkit-overflow-scrolling: touch; }
.ob-intro { text-align: center; }
.ob-skip { position: absolute; top: 14px; right: 16px; background: none; border: none; color: var(--muted-soft); font-size: 13px; font-weight: 600; cursor: pointer; }
.ob-slide { padding: 28px 6px 8px; }
.ob-ic { font-size: 56px; line-height: 1; margin-bottom: 16px; }
.ob-intro h2 { margin: 0 0 8px; font-size: 22px; color: var(--navy); }
.ob-intro p { margin: 0 auto; max-width: 320px; font-size: 15px; color: var(--muted); line-height: 1.5; }
.ob-dots { display: flex; gap: 7px; justify-content: center; margin: 22px 0; }
.ob-dots span { width: 7px; height: 7px; border-radius: 50%; background: #d8dde5; transition: width .2s, background .2s; }
.ob-dots span.on { width: 20px; border-radius: 4px; background: var(--brand); }
.ob-actions { display: flex; gap: 10px; align-items: center; }
.ob-actions > * { flex: 1; }
.ob-setup-head h2 { margin: 0 0 5px; font-size: 21px; color: var(--navy); }
.ob-setup-head p { margin: 0 0 16px; font-size: 13px; color: var(--muted); }
.ob-steps { margin-bottom: 16px; }
.ob-step { border: 1px solid var(--card-border); border-radius: var(--radius); margin-bottom: 10px; overflow: hidden; }
.ob-step.ob-done { border-color: #cdeccd; }
.ob-step-head { display: flex; align-items: center; gap: 12px; width: 100%; background: #fff; border: none; padding: 14px; cursor: pointer; font-family: inherit; text-align: left; }
.ob-num { flex: none; width: 26px; height: 26px; border-radius: 50%; background: #eef1f5; color: var(--muted); font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.ob-done .ob-num { background: var(--ok-bg); color: var(--ok-ink); }
.ob-step-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ob-step-t { font-size: 15px; font-weight: 700; color: var(--ink); }
.ob-step-s { font-size: 12px; color: var(--muted-soft); }
.ob-caret { color: var(--muted-soft); font-size: 16px; }
.ob-step-body { padding: 2px 14px 16px; }
.ob-hint { font-size: 11px; color: var(--muted-soft); margin: 10px 0 0; line-height: 1.45; }
.ob-added { background: var(--ok-bg); color: var(--ok-ink); font-size: 13px; font-weight: 700; padding: 9px 12px; border-radius: 8px; margin-bottom: 12px; }
.ob-vm-text { font-size: 14px; color: var(--muted); line-height: 1.5; margin: 2px 0 14px; }
.ob-vm-done { background: var(--ok-bg); color: var(--ok-ink); font-size: 14px; font-weight: 600; padding: 14px; border-radius: 10px; }
.ob-setup-actions { margin-top: 4px; }

/* ══════════════════ MEIN ANSPRECHPARTNER ══════════════════ */
.ap-card { background: linear-gradient(135deg, #0d1b3e, #14315e); color: #fff; border-radius: var(--radius); padding: 26px 20px; text-align: center; margin-bottom: 16px; }
.ap-photo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin: 0 auto 12px; display: block; border: 3px solid rgba(255,255,255,.25); }
.ap-initials { display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.14); color: #fff; font-size: 36px; font-weight: 800; }
.ap-name { font-size: 21px; font-weight: 800; }
.ap-role { font-size: 13px; color: #b8c6e0; margin-top: 3px; }
.ap-reg { font-size: 11px; color: #8ea3c7; margin-top: 6px; }
.ap-contact { margin-top: 14px; display: flex; flex-direction: column; gap: 7px; align-items: center; }
.ap-row { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #dce4f2; word-break: break-all; }
.ap-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ap-btn { display: flex; align-items: center; justify-content: center; gap: 8px; background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius-sm); padding: 14px 10px; font-size: 14px; font-weight: 700; color: var(--ink); text-decoration: none; cursor: pointer; font-family: inherit; }
.ap-btn:hover { border-color: var(--brand); }
.ap-btn .ap-bic { font-size: 17px; }
.ap-wa { background: #25d366; border-color: #25d366; color: #fff; }
.ap-wa:hover { background: #1ebe5b; border-color: #1ebe5b; }
.ap-hint { font-size: 11px; color: var(--muted-soft); text-align: center; margin: 12px 4px 0; line-height: 1.45; }

/* Home-Banner „Dein Ansprechpartner" */
.home-advisor { display: flex; align-items: center; gap: 13px; width: 100%; text-align: left; font-family: inherit; background: linear-gradient(135deg, #0d1b3e, #14315e); color: #fff; border: none; border-radius: var(--radius); padding: 13px 16px; margin-bottom: 18px; cursor: pointer; }
.home-advisor .ha-photo { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: none; border: 2px solid rgba(255,255,255,.25); }
.home-advisor .ha-initials { display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.16); color: #fff; font-size: 18px; font-weight: 800; }
.home-advisor .ha-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.home-advisor .ha-label { font-size: 11px; color: #b8c6e0; }
.home-advisor .ha-name { font-size: 15px; font-weight: 800; }
.home-advisor .ha-arrow { color: #b8c6e0; font-size: 22px; }

@media (max-width: 340px) { .ap-actions { grid-template-columns: 1fr; } }

/* ══════════════════ KI-ASSISTENT ══════════════════ */
.ki-disclaimer { font-size: 12px; color: var(--muted); background: #f6f8fb; border: 1px solid #e3e9f2; border-radius: 10px; padding: 9px 12px; margin-bottom: 12px; }
.ki-chat { display: flex; flex-direction: column; gap: 9px; min-height: 200px; max-height: 52vh; overflow-y: auto; padding: 4px; }
.ki-msg { display: flex; }
.ki-msg.ki-u { justify-content: flex-end; }
.ki-bubble { max-width: 84%; padding: 10px 13px; border-radius: 14px; font-size: 14px; line-height: 1.45; }
.ki-u .ki-bubble { background: var(--brand); color: #fff; border-bottom-right-radius: 4px; }
.ki-a .ki-bubble { background: var(--card-bg); border: 1px solid var(--card-border); color: var(--ink); border-bottom-left-radius: 4px; }
.ki-typing { letter-spacing: 2px; color: var(--muted-soft); }
.ki-input { display: flex; gap: 8px; margin-top: 12px; position: sticky; bottom: 0; }
.ki-input input { flex: 1; min-width: 0; padding: 12px 14px; border: 1px solid #d8dde5; border-radius: 22px; font-size: 15px; background: #fff; }
.ki-input .btn-primary { border-radius: 50%; width: 46px; height: 46px; padding: 0; flex: none; font-size: 18px; }

/* ══════════════════ LEBENSEREIGNISSE ══════════════════ */
.le-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.le-card { display: flex; flex-direction: column; align-items: center; gap: 6px; background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 16px 10px; cursor: pointer; font-family: inherit; }
.le-card:hover { border-color: var(--brand); box-shadow: 0 6px 18px rgba(26,122,255,.1); }
.le-ic { font-size: 28px; }
.le-t { font-size: 13px; font-weight: 700; color: var(--ink); text-align: center; }
