/* Steinkamp Immobilien — Objektverwaltung Beta — Stylesheet */

:root {
  --primary: #1F3A5F; --accent: #2E75B6;
  --ok: #2E7D32; --warn: #E65100; --err: #B71C1C;
  --muted: #6B7280; --bg: #F2F4F7; --bg-alt: #E7EEF6;
  --border: #E5E7EB; --text: #1F2937;
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.5;
}
a { color: var(--accent); }

/* ===== TOPBAR ===== */
.topbar {
  background: var(--primary); color: #fff; padding: 12px 24px;
  display: flex; align-items: center; gap: 16px; position: sticky; top: 0; z-index: 50;
  box-shadow: var(--shadow);
}
.logo { font-weight: 700; font-size: 16px; }
.logo span { color: #6FB3E0; font-weight: 400; margin-left: 6px; }
.topbar nav { display: flex; gap: 4px; margin-left: 24px; }
.topbar nav a {
  color: rgba(255,255,255,0.85); text-decoration: none;
  padding: 6px 12px; border-radius: 6px; font-size: 13px;
}
.topbar nav a:hover { background: rgba(255,255,255,0.1); }
.topbar nav a.active { background: rgba(255,255,255,0.15); color: #fff; }
.topbar .right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.search {
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px; padding: 6px 12px; color: #fff; font-size: 13px; width: 280px; outline: none;
}
.search::placeholder { color: rgba(255,255,255,0.6); }
.avatar {
  width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 13px;
}

/* ===== LAYOUT ===== */
.container { max-width: 1400px; margin: 0 auto; padding: 24px; }
.breadcrumbs { font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.breadcrumbs a { text-decoration: none; }

.page-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; gap: 16px; flex-wrap: wrap; }
.page-head h1 { font-size: 20px; color: var(--primary); margin-bottom: 4px; }
.page-head .sub { font-size: 13px; color: var(--muted); }
.page-actions { display: flex; gap: 8px; }

.card {
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  box-shadow: var(--shadow);
}

/* ===== BUTTONS ===== */
.btn {
  border: 1px solid var(--border); background: #fff; color: var(--text);
  padding: 8px 14px; border-radius: 8px; font-size: 13px; font-weight: 500;
  cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  text-decoration: none;
}
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-danger { background: var(--err); color: #fff; border-color: var(--err); }
.btn-sm { padding: 5px 10px; font-size: 12px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ===== OBJ HEADER ===== */
.obj-header {
  background: #fff; border-radius: 12px; padding: 24px;
  box-shadow: var(--shadow); margin-bottom: 16px;
}
.obj-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.obj-title h1 { font-size: 22px; color: var(--primary); margin-bottom: 4px; }
.obj-meta { color: var(--muted); font-size: 13px; }
.obj-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ===== KPIs ===== */
.kpi-row, .kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 20px; }
.kpis { margin-top: 0; margin-bottom: 16px; }
.kpi {
  background: var(--bg-alt); border-radius: 10px; padding: 14px;
  border: 1px solid var(--border);
}
.kpis .kpi { background: #fff; }
.kpi-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; }
.kpi-value { font-size: 22px; font-weight: 700; color: var(--primary); margin-top: 4px; }
.kpi-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.kpi.alert .kpi-value { color: var(--err); }
.kpi.warn .kpi-value { color: var(--warn); }
.kpi.ok .kpi-value { color: var(--ok); }

.progress-bar {
  height: 8px; background: var(--bg-alt); border-radius: 4px; overflow: hidden;
  margin-top: 12px;
}
.progress-bar > div { height: 100%; background: linear-gradient(90deg, var(--accent), var(--ok)); }

/* ===== TIMELINE ===== */
.timeline-wrap {
  background: #fff; border-radius: 12px; padding: 24px;
  box-shadow: var(--shadow); margin-bottom: 16px;
}
.timeline-title { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 16px; }
.timeline { display: flex; align-items: center; gap: 0; }
.ph { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.ph-dot {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--bg-alt); color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px; border: 2px solid var(--border);
}
.ph-label { font-size: 11px; color: var(--muted); text-align: center; }
.ph.done .ph-dot { background: var(--ok); color: #fff; border-color: var(--ok); }
.ph.done .ph-label { color: var(--ok); font-weight: 600; }
.ph.current .ph-dot { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(46,117,182,0.2); }
.ph.current .ph-label { color: var(--accent); font-weight: 700; }
.ph-line { flex: 0.4; height: 2px; background: var(--border); margin-top: 16px; align-self: flex-start; }
.ph-line.done { background: var(--ok); }

/* ===== TABS ===== */
.tabs { background: #fff; border-radius: 12px; box-shadow: var(--shadow); }
.tab-headers { display: flex; border-bottom: 1px solid var(--border); overflow-x: auto; }
.tab-header {
  padding: 14px 20px; font-size: 13px; font-weight: 500; color: var(--muted);
  cursor: pointer; border-bottom: 2px solid transparent;
  white-space: nowrap; display: flex; align-items: center; gap: 8px;
}
.tab-header:hover { color: var(--primary); }
.tab-header.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }
.tab-header .badge {
  background: var(--err); color: #fff;
  border-radius: 999px; padding: 1px 7px; font-size: 11px; font-weight: 700;
}
.tab-header .badge.warn { background: var(--warn); }
.tab-header .badge.ok { background: var(--ok); }
.tab-header .badge.muted { background: var(--muted); }
.tab-content { padding: 24px; display: none; }
.tab-content.active { display: block; }

/* ===== SECTIONS ===== */
.sec-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; flex-wrap: wrap; gap: 8px; }
.sec-head h2 { font-size: 16px; color: var(--primary); }

.docs-controls { display: flex; gap: 8px; margin-bottom: 16px; align-items: center; flex-wrap: wrap; }
.filter-pill {
  padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 500;
  border: 1px solid var(--border); background: #fff; cursor: pointer;
}
.filter-pill:hover { border-color: var(--accent); }
.filter-pill.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ===== DOC LIST ===== */
.doc-list { display: flex; flex-direction: column; gap: 8px; }
.doc-item {
  display: grid; grid-template-columns: 28px 1fr auto auto auto;
  gap: 12px; align-items: center;
  padding: 12px 16px; border: 1px solid var(--border); border-radius: 10px;
  background: #fff; cursor: pointer;
  transition: all 0.15s;
}
.doc-item:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateX(2px); }
.doc-icon {
  width: 28px; height: 28px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center; font-size: 14px;
}
.doc-icon.pdf { background: #FFEBEE; color: var(--err); }
.doc-icon.img { background: #E3F2FD; color: var(--accent); }
.doc-icon.missing { background: #FFE0E0; color: var(--err); }
.doc-icon.ok { background: #DCEDC8; color: var(--ok); }
.doc-info .doc-name { font-weight: 600; font-size: 13px; }
.doc-info .doc-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.doc-resp { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }

/* ===== STATUS BADGES ===== */
.status-badge {
  padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.3px; white-space: nowrap;
  display: inline-block;
}
.status-vorhanden { background: #DCEDC8; color: #1B5E20; }
.status-fehlt    { background: #FFCDD2; color: #B71C1C; }
.status-beantragt{ background: #FFE0B2; color: #E65100; }
.status-wieder   { background: #FFF59D; color: #F57F17; }
.status-nichterf { background: #E0E0E0; color: #424242; }
.status-unklar   { background: #F8BBD0; color: #AD1457; }

/* ===== ICONS / CHIPS ===== */
.icon-btn {
  width: 28px; height: 28px; border-radius: 6px; border: 1px solid var(--border);
  background: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; color: var(--muted); text-decoration: none;
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }
.person-chip {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--bg-alt); border-radius: 999px; padding: 1px 8px 1px 1px;
  font-size: 11px;
}
.person-chip .av {
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent); color: #fff;
  font-size: 9px; display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.person-chip.ext .av { background: var(--warn); }

/* ===== TASKS ===== */
.task-card {
  background: #fff; border-radius: 8px; padding: 10px 12px;
  margin-bottom: 8px; border: 1px solid var(--border);
  box-shadow: var(--shadow); cursor: pointer;
  border-left: 3px solid var(--accent);
}
.task-card:hover { border-color: var(--accent); }
.task-card.high { border-left-color: var(--err); }
.task-card.med  { border-left-color: var(--warn); }
.task-card.low  { border-left-color: var(--muted); }
.task-title { font-weight: 600; font-size: 13px; margin-bottom: 4px; }
.task-meta { font-size: 11px; color: var(--muted); display: flex; justify-content: space-between; align-items: center; margin-top: 6px; gap: 8px; }
.task-meta .deadline.overdue { color: var(--err); font-weight: 600; }

.kanban { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.kcol { background: var(--bg); border-radius: 10px; padding: 12px; min-height: 200px; border: 1px solid var(--border); }
.kcol h4 {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--muted); margin-bottom: 12px; font-weight: 700;
  display: flex; justify-content: space-between; align-items: center;
}
.kcol h4 .count {
  background: #fff; border-radius: 999px; padding: 1px 7px; font-size: 10px;
  border: 1px solid var(--border); color: var(--text);
}

/* ===== QUICK BAR ===== */
.quickbar-compact {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  background: #fff; border-radius: 10px; box-shadow: var(--shadow);
  padding: 8px 12px; margin-bottom: 16px;
}
.qb-btn {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 6px 12px; border-radius: 6px;
  border: 1px solid var(--border); background: var(--bg);
  font-size: 12px; font-weight: 500; color: var(--primary);
  cursor: pointer; transition: all 0.15s; white-space: nowrap;
}
.qb-btn:hover { border-color: var(--accent); color: var(--accent); }
.qb-btn.primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.qb-btn.primary:hover { background: var(--accent); border-color: var(--accent); }
.qb-spacer { flex: 1; }

/* ===== HINTS ===== */
.empty-hint {
  background: var(--bg-alt); border: 1px dashed var(--border);
  border-radius: 10px; padding: 20px; text-align: center;
  color: var(--muted); font-size: 13px;
}
.hint {
  background: #FFF3E0; border-left: 3px solid var(--warn); border-radius: 6px;
  padding: 10px 14px; font-size: 12px; color: #E65100; margin-bottom: 12px;
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
}
.hint.ok { background: #E8F5E9; border-left-color: var(--ok); color: #1B5E20; }
.hint.info { background: #E3F2FD; border-left-color: var(--accent); color: #0D47A1; }

/* ===== REQ CARDS ===== */
.req-card {
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  padding: 14px; margin-bottom: 8px; cursor: pointer;
  display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center;
}
.req-card:hover { border-color: var(--accent); }
.req-card .recipient { font-size: 12px; color: var(--muted); }
.req-card .subject { font-weight: 600; margin: 4px 0; }

/* ===== HISTORY ===== */
.history-item {
  display: grid; grid-template-columns: 130px 1fr; gap: 16px;
  padding: 10px 0; border-bottom: 1px solid var(--border);
}
.history-item:last-child { border: none; }
.history-time { font-size: 12px; color: var(--muted); }
.history-text { font-size: 13px; }
.history-text strong { color: var(--primary); }

/* ===== TABLE (Liste) ===== */
.doctable { background: #fff; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.doctable table { width: 100%; border-collapse: collapse; font-size: 13px; }
.doctable th {
  background: var(--bg-alt); text-align: left; padding: 10px 12px;
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--primary); font-weight: 700; border-bottom: 1px solid var(--border);
}
.doctable td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.doctable tr:last-child td { border-bottom: none; }
.doctable tr:hover td { background: var(--bg); cursor: pointer; }
.objref { font-weight: 600; color: var(--primary); }
.objref-sub { color: var(--muted); font-size: 11px; }

/* ===== DRAWER ===== */
.drawer-mask {
  position: fixed; inset: 0; background: rgba(31,58,95,0.45);
  opacity: 0; pointer-events: none; transition: opacity 0.2s;
  z-index: 100;
}
.drawer-mask.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 720px; max-width: 95vw;
  background: #fff; box-shadow: -8px 0 24px rgba(0,0,0,0.12);
  transform: translateX(100%); transition: transform 0.25s ease;
  z-index: 101; display: flex; flex-direction: column;
}
.drawer.open { transform: translateX(0); }
.drawer-head {
  padding: 18px 22px; border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff;
}
.drawer-head h2 { font-size: 17px; }
.drawer-head .crumb { font-size: 11px; opacity: 0.85; margin-bottom: 4px; }
.drawer-head .closebtn {
  width: 32px; height: 32px; border-radius: 8px;
  background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.3);
  color: #fff; cursor: pointer; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.drawer-head .closebtn:hover { background: rgba(255,255,255,0.25); }
.drawer-body { padding: 22px; overflow-y: auto; flex: 1; }
.drawer-foot {
  padding: 14px 22px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; gap: 8px; background: var(--bg);
}

/* ===== STATUS FLOW ===== */
.status-flow { display: flex; align-items: center; gap: 0; margin: 8px 0 16px 0; }
.sf-step { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.sf-dot {
  width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; border: 2px solid var(--border); background: #fff;
  color: var(--muted);
}
.sf-step.done .sf-dot { background: var(--ok); color: #fff; border-color: var(--ok); }
.sf-step.current .sf-dot { background: var(--warn); color: #fff; border-color: var(--warn); box-shadow: 0 0 0 4px rgba(230,81,0,0.18); }
.sf-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.4px; color: var(--muted); font-weight: 600; }
.sf-step.done .sf-label { color: var(--ok); }
.sf-step.current .sf-label { color: var(--warn); }
.sf-line { flex: 0.5; height: 2px; background: var(--border); margin-top: 12px; align-self: flex-start; }
.sf-line.done { background: var(--ok); }

.meta-row {
  display: grid; grid-template-columns: 130px 1fr; gap: 8px;
  padding: 8px 0; border-bottom: 1px solid var(--bg-alt); font-size: 13px;
}
.meta-row:last-child { border-bottom: none; }
.meta-row .lbl { color: var(--muted); font-size: 12px; }
.meta-row .val { font-weight: 500; }

.sub-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: 10px;
  padding: 14px; margin-bottom: 12px;
}
.sub-card h3 {
  font-size: 11px; color: var(--muted); text-transform: uppercase;
  letter-spacing: 0.5px; margin-bottom: 10px; font-weight: 700;
  display: flex; justify-content: space-between; align-items: center;
}

/* ===== FORMS ===== */
.form-row { display: grid; grid-template-columns: 130px 1fr; gap: 12px; align-items: center; margin-bottom: 12px; }
.form-row label { font-size: 13px; color: var(--muted); }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; border: 1px solid var(--border); border-radius: 6px; padding: 8px 10px;
  font-family: inherit; font-size: 13px; outline: none;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { border-color: var(--accent); }
.form-row textarea { resize: vertical; min-height: 140px; line-height: 1.5; }

.template-pick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 16px; }
.template-card {
  border: 1px solid var(--border); border-radius: 8px; padding: 10px; cursor: pointer;
  font-size: 12px;
}
.template-card:hover { border-color: var(--accent); }
.template-card.active { border-color: var(--accent); background: var(--bg-alt); }
.template-card .name { font-weight: 700; color: var(--primary); margin-bottom: 2px; }
.template-card .desc { color: var(--muted); }

.deadline.overdue { color: var(--err); font-weight: 700; }
.deadline.soon { color: var(--warn); font-weight: 600; }

/* ===== ACTIVITY (im Dokument-Drawer) ===== */
.activity { position: relative; padding-left: 18px; }
.activity::before {
  content: ""; position: absolute; left: 5px; top: 4px; bottom: 4px;
  width: 2px; background: var(--bg-alt);
}
.act-item { position: relative; padding-bottom: 14px; }
.act-item::before {
  content: ""; position: absolute; left: -16px; top: 4px;
  width: 10px; height: 10px; border-radius: 50%; background: var(--accent);
  border: 2px solid #fff; box-shadow: 0 0 0 1px var(--accent);
}
.act-item.system::before { background: var(--muted); box-shadow: 0 0 0 1px var(--muted); }
.act-item.warn::before { background: var(--warn); box-shadow: 0 0 0 1px var(--warn); }
.act-item.ok::before { background: var(--ok); box-shadow: 0 0 0 1px var(--ok); }
.act-time { font-size: 11px; color: var(--muted); }
.act-text { font-size: 13px; }
.act-text strong { color: var(--primary); }

/* ===== TOAST ===== */
#toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: #fff;
  padding: 10px 18px; border-radius: 8px; font-size: 13px;
  box-shadow: var(--shadow-lg); z-index: 200;
  opacity: 0; transition: opacity 0.2s; pointer-events: none;
}
#toast.show { opacity: 1; }
#toast.error { background: var(--err); }

/* ===== RESPONSIVE ===== */
@media (max-width: 800px) {
  .kpi-row, .kpis { grid-template-columns: repeat(2, 1fr); }
  .kanban { grid-template-columns: 1fr; }
  .timeline { flex-wrap: wrap; }
  .quickbar-compact { gap: 4px; }
  .drawer { width: 100vw; }
  .form-row { grid-template-columns: 1fr; gap: 4px; }
  .doc-item { grid-template-columns: 28px 1fr; row-gap: 6px; }
  .doc-item > *:nth-child(n+3) { grid-column: 2; }
}

/* Bereich-Switcher */
.bereich-switcher {
  display: flex;
  gap: 2px;
  background: rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 3px;
  margin: 0 16px;
}
.bereich-btn {
  padding: 5px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: all 0.15s;
}
.bereich-btn:hover { color: #fff; background: rgba(255,255,255,0.1); }
.bereich-btn.active { color: #1a1a2e; background: #fff; }
.inbox-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 8px; background: #E65100; color: #fff;
  font-size: 10px; font-weight: 700; margin-left: 4px;
}
.bereich-btn.active .inbox-badge { background: #E65100; color: #fff; }

/* Dokument-Gruppen */
.doc-group { margin-bottom: 8px; }
.doc-group-head {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; cursor: pointer; user-select: none;
  font-size: 13px; font-weight: 600; color: var(--primary);
  border-radius: 6px; background: #f8f9fb;
}
.doc-group-head:hover { background: #f0f1f4; }
.doc-group-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 10px; background: #e2e4e9; color: var(--primary);
  font-size: 11px; font-weight: 700;
}
.doc-group[open] > .doc-group-head { margin-bottom: 4px; }
.doc-preview-frame { width: 100%; height: 300px; border: none; border-radius: 8px; background: #f8f9fb; }

/* Cockpit 2-Column Layout */
.cockpit-layout { display: grid; grid-template-columns: 300px 1fr; gap: 16px; align-items: start; }
.cockpit-sidebar { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 16px; }
.cockpit-main { min-width: 0; }
@media (max-width: 900px) { .cockpit-layout { grid-template-columns: 1fr; } .cockpit-sidebar { position: static; } }

/* Sidebar Cards */
.sidebar-card { background: #fff; border-radius: 10px; box-shadow: 0 1px 3px rgba(0,0,0,0.06); overflow: hidden; }
.sc-heading { font-size: 11px; color: #9ca3af; text-transform: uppercase; letter-spacing: 0.5px; padding: 12px 14px 0; font-weight: 700; margin: 0; }
.sc-content { padding: 10px 14px 14px; }
.info-row { display: flex; justify-content: space-between; padding: 4px 0; font-size: 13px; border-bottom: 1px solid #f9fafb; }
.info-row .lbl { color: #9ca3af; }
.info-row .val { font-weight: 500; }
.more-toggle-btn { width: 100%; margin-top: 8px; padding: 5px; border: 1px solid #e5e7eb; border-radius: 6px; background: #f8f9fb; font-size: 11px; color: #6b7280; cursor: pointer; font-weight: 500; }
.more-toggle-btn:hover { background: #f0f1f4; }

/* Kontakt in Sidebar */
.kontakt-detail summary { display: flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; padding: 4px 0; }
.kontakt-detail summary::-webkit-details-marker { display: none; }
.kontakt-avatar { width: 30px; height: 30px; border-radius: 50%; background: #2E75B6; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; flex-shrink: 0; }
.kontakt-name { font-size: 13px; font-weight: 600; }
.kontakt-role { font-size: 11px; color: #9ca3af; }
.kontakt-links { padding: 6px 0 0 38px; }
.contact-link { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #2E75B6; text-decoration: none; padding: 2px 0; }
.contact-link:hover { text-decoration: underline; }

/* KPI Mini */
.kpi-mini { display: flex; justify-content: space-between; padding: 5px 0; font-size: 13px; border-bottom: 1px solid #f9fafb; }
.kpi-mini .val { font-weight: 600; }
.progress-bar-sm { width: 100%; height: 6px; border-radius: 3px; background: #e5e7eb; margin-top: 8px; overflow: hidden; }
.progress-fill-sm { height: 100%; border-radius: 3px; background: #2E7D32; }

/* Stepper */
.stepper { display: flex; align-items: center; gap: 0; margin-bottom: 12px; background: #fff; border-radius: 10px; padding: 12px 16px; box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
.step { display: flex; align-items: center; gap: 6px; cursor: pointer; padding: 4px 6px; border-radius: 6px; transition: background 0.15s; }
.step:hover { background: #f0f4ff; }
.step-dot { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; border: 2px solid #d1d5db; color: #9ca3af; background: #fff; flex-shrink: 0; }
.step.done .step-dot { background: #2E7D32; border-color: #2E7D32; color: #fff; }
.step.current .step-dot { background: #2E75B6; border-color: #2E75B6; color: #fff; font-size: 13px; }
.step-label { font-size: 11px; font-weight: 500; color: #6b7280; white-space: nowrap; }
.step.current .step-label { color: var(--primary); font-weight: 700; }
.step.done .step-label { color: #2E7D32; }
.step-line { flex: 1; height: 2px; background: #d1d5db; min-width: 12px; margin: 0 2px; }
.step-line.done { background: #2E7D32; }
@media (max-width: 900px) {
  .step-label { display: none; }
  .step.current .step-label, .step.next .step-label { display: block; }
  .step-dot { width: 24px; height: 24px; font-size: 10px; }
  .step-line { min-width: 6px; }
  .stepper { padding: 8px 10px; }
}
@media (max-width: 600px) { .step.next .step-label { display: none; } }

/* Propstack Compare */
.ps-compare-row { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid #f5f5f5; font-size: 13px; }
.ps-label { color: #9ca3af; min-width: 90px; font-size: 12px; }
.ps-val { flex: 1; font-weight: 500; }
.ps-apply-btn { padding: 2px 8px; border: 1px solid #2E75B6; border-radius: 4px; background: #EBF5FF; color: #2E75B6; font-size: 11px; font-weight: 600; cursor: pointer; }
.ps-apply-btn:hover { background: #2E75B6; color: #fff; }
.ps-match { color: #2E7D32; font-size: 12px; }

/* ===== DOC SUB-TABS (Intern / Exposé) ===== */
.doc-subtabs {
  display: inline-flex;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 3px;
  margin-bottom: 20px;
  gap: 2px;
}
.doc-subtab {
  padding: 7px 18px;
  font-size: 13px;
  font-weight: 500;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}
.doc-subtab:hover { color: var(--primary); background: rgba(0,0,0,0.03); }
.doc-subtab.active {
  background: #fff;
  color: var(--accent);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.badge-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
.doc-subtab:not(.active) .badge-sm { background: var(--muted); }
.expose-toggle {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: #fff;
  opacity: 0.4;
  transition: all 0.15s ease;
  cursor: pointer;
  font-size: 14px;
}
.expose-toggle:hover { opacity: 0.7; border-color: var(--accent); }
.expose-toggle.on {
  opacity: 1;
  background: #EBF5FF;
  border-color: var(--accent);
  color: var(--accent);
}
.expose-doc { border-left: 3px solid var(--accent); }
