/* ═══════════════════════════════════════════════════════════════════════════
   rockefellow.css  –  v0.7  –  Design Variante B
   Alle Klassen aus rockefellow_preview_b2.html + rockefellow_elements.html
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── RESET + BASE ────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
}
a { text-decoration: none; color: inherit; }
button { font-family: inherit; }

/* ─── CUSTOM PROPERTIES ───────────────────────────────────────────────── */
:root {
  /* Hintergrund-Palette */
  --cream:         #F5EFE6;
  --cream-mid:     #EDE4D8;
  --cream-dark:    #E0D5C5;
  --surface:       #FDFAF6;
  --white:         #FFFFFF;

  /* Text */
  --ink:           #1A1208;
  --ink-soft:      #5C4F3A;
  --ink-muted:     #9C8E7A;
  --ink-faint:     #C4B9A8;

  /* Gold – sparsam einsetzen */
  --gold:          #C9A84C;
  --gold-soft:     #F5EDD6;
  --gold-dark:     #A8872E;

  /* Pastel-Karten */
  --card-coral:    #F4B8B0;
  --card-peach:    #F5D0A9;
  --card-lavender: #C8C0E8;
  --card-sage:     #B8D8C8;
  --card-sky:      #B8D4E8;
  --card-rose:     #E8C0C8;
  --card-mint:     #C0E8D8;
  --card-lemon:    #EEE8B0;

  /* Semantik */
  --pos:   #1E6B3A;
  --neg:   #B52B1E;
  --warn:  #B86A00;

  /* Layout */
  --sidebar-w:   72px;
  --r-panel-w:   290px;

  /* Border-Radius */
  --r-pill:  50px;
  --r-card:  18px;
  --r-sm:    10px;

  /* Schatten */
  --shadow-xs: 0 1px 3px rgba(26,18,8,0.06);
  --shadow-sm: 0 2px 8px rgba(26,18,8,0.07), 0 4px 16px rgba(26,18,8,0.04);
  --shadow-md: 0 4px 16px rgba(26,18,8,0.09), 0 8px 32px rgba(26,18,8,0.05);
}

/* ─── APP SHELL ───────────────────────────────────────────────────────── */
.app-shell {
  display: flex;
  flex-direction: row;
  min-height: 100vh;
}
.app-main {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: flex;
  min-height: 100vh;
}
.content-col {
  flex: 1;
  padding: 32px 28px;
  min-width: 0;
}

/* ─── SIDEBAR ─────────────────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  background: var(--surface);
  position: fixed; top: 0; left: 0; bottom: 0;
  display: flex; flex-direction: column;
  align-items: center; padding: 18px 0;
  border-right: 1px solid var(--cream-mid);
  z-index: 100;
}
.sb-logo {
  width: 40px; height: 40px;
  background: var(--ink); border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px; cursor: pointer;
  text-decoration: none;
}
.sb-logo svg { color: var(--gold); }

.sb-nav {
  display: flex; flex-direction: column;
  align-items: center; gap: 4px; flex: 1;
}
.sb-btn {
  width: 44px; height: 44px; border-radius: 13px;
  border: none; background: transparent;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-muted); cursor: pointer;
  transition: all 0.18s; position: relative;
  text-decoration: none;
}
.sb-btn:hover  { background: var(--cream); color: var(--ink); }
.sb-btn.active { background: var(--ink); color: var(--surface); box-shadow: 0 3px 10px rgba(26,18,8,0.18); }

.sb-badge {
  position: absolute; top: 7px; right: 7px;
  width: 7px; height: 7px; border-radius: 50%;
  background: #E85D5D; border: 1.5px solid var(--surface);
}
.sb-divider { width: 28px; height: 1px; background: var(--cream-mid); margin: 6px 0; }
.sb-bottom  { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.sb-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--card-peach) 0%, var(--card-coral) 100%);
  display: flex; align-items: center; justify-content: center;
  font: 700 0.75rem/1 'DM Sans'; color: var(--ink);
  cursor: pointer; border: 2px solid var(--cream);
  box-shadow: var(--shadow-xs);
}

/* ─── RIGHT PANEL ─────────────────────────────────────────────────────── */
.right-panel {
  width: var(--r-panel-w); flex-shrink: 0;
  background: var(--surface);
  border-left: 1px solid var(--cream-mid);
  padding: 24px 20px;
  overflow-y: auto;
  position: sticky; top: 0; height: 100vh;
}
.rp-section   { margin-bottom: 24px; }
.rp-label {
  font: 600 0.68rem/1 'DM Sans'; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--ink-muted); margin-bottom: 12px;
  display: flex; align-items: center; justify-content: space-between;
}
.rp-action {
  font: 600 0.68rem/1 'DM Sans'; color: var(--gold);
  background: var(--gold-soft); padding: 2px 8px;
  border-radius: var(--r-pill); cursor: pointer; text-decoration: none;
}
.rp-divider   { height: 1px; background: var(--cream-mid); margin: 20px 0; }

/* Depot-Karte im rechten Panel */
.rp-depot-card {
  background: var(--card-peach); border-radius: var(--r-card);
  padding: 18px; margin-bottom: 0;
}
.rp-depot-label { font: 500 0.62rem/1 'DM Sans'; text-transform: uppercase; letter-spacing: 0.07em; color: rgba(26,18,8,0.45); margin-bottom: 5px; }
.rp-depot-val   { font: 700 1.7rem/1 'Fraunces'; color: var(--ink); letter-spacing: -0.02em; }
.rp-depot-change { font: 600 0.75rem/1 'DM Mono'; margin-top: 5px; }
.rp-depot-change.pos { color: var(--pos); }
.rp-depot-change.neg { color: var(--neg); }
.rp-depot-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 8px; margin-top: 14px;
  padding-top: 12px; border-top: 1px solid rgba(26,18,8,0.1);
}
.rp-mini-label { font: 400 0.62rem/1 'DM Sans'; color: rgba(26,18,8,0.45); margin-bottom: 3px; }
.rp-mini-val   { font: 600 0.82rem/1 'DM Mono'; color: var(--ink); }

/* Queue-Items im rechten Panel */
.queue-item {
  background: var(--cream); border-radius: var(--r-sm);
  padding: 11px 13px; margin-bottom: 7px;
  border: 1.5px solid transparent; transition: border-color 0.15s;
  display: block; text-decoration: none;
}
.queue-item:hover    { border-color: var(--cream-dark); }
.queue-item.urgent   { background: #FEF5F4; border-color: #F4D0CC; }
.qi-top    { display: flex; align-items: center; gap: 7px; }
.qi-name   { font: 600 0.82rem/1 'DM Sans'; color: var(--ink); flex: 1; }
.qi-time   { font: 400 0.67rem/1 'DM Sans'; color: var(--ink-muted); }
.qi-reason { font: 400 0.7rem/1 'DM Sans'; color: var(--ink-soft); margin-top: 4px; padding-left: 16px; }

/* ─── PAGE HEADER ─────────────────────────────────────────────────────── */
.page-head     { margin-bottom: 24px; }
.page-eyebrow  { font: 400 0.78rem/1 'DM Sans'; color: var(--ink-muted); margin-bottom: 5px; display: flex; align-items: center; gap: 8px; }
.page-title    { font: 500 2rem/1.1 'Fraunces'; color: var(--ink); letter-spacing: -0.02em; }
.page-title em { font-style: italic; color: var(--gold); }
.page-title-row { display: flex; align-items: center; justify-content: space-between; }

/* ─── SECTION LABEL ───────────────────────────────────────────────────── */
.sec-label {
  font: 500 0.68rem/1 'DM Sans'; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--ink-muted); margin-bottom: 13px;
}

/* ─── FILTER CHIPS ────────────────────────────────────────────────────── */
.filter-row { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 26px; }
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 14px; border-radius: var(--r-pill);
  border: 1.5px solid var(--cream-dark); background: var(--surface);
  font: 500 0.78rem/1 'DM Sans'; color: var(--ink-soft);
  cursor: pointer; transition: all 0.18s; white-space: nowrap; user-select: none;
}
.chip:hover  { border-color: var(--ink-soft); color: var(--ink); background: var(--cream); }
.chip.active { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.chip svg    { width: 12px; height: 12px; }
.chip .dot   { width: 7px; height: 7px; border-radius: 50%; }

/* ─── BENTO GRID ──────────────────────────────────────────────────────── */
.bento-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 13px; margin-bottom: 28px;
}
.bento-card {
  border-radius: var(--r-card); padding: 18px;
  min-height: 150px; display: flex; flex-direction: column;
  justify-content: space-between; cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative; overflow: hidden;
}
.bento-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.bento-card.c-coral    { background: var(--card-coral); }
.bento-card.c-peach    { background: var(--card-peach); }
.bento-card.c-lavender { background: var(--card-lavender); }
.bento-card.c-sage     { background: var(--card-sage); }
.bento-card.c-sky      { background: var(--card-sky); }
.bento-card.c-mint     { background: var(--card-mint); }
.bento-card.c-lemon    { background: var(--card-lemon); }
.bento-card.c-rose     { background: var(--card-rose); }

.bc-top  { display: flex; justify-content: space-between; align-items: flex-start; }
.bc-tag  {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(255,255,255,0.52); border-radius: var(--r-pill);
  padding: 4px 10px; font: 500 0.67rem/1 'DM Sans'; color: var(--ink);
}
.bc-val  {
  font: 500 0.75rem/1 'DM Mono'; color: var(--ink);
  background: rgba(255,255,255,0.52); padding: 4px 9px;
  border-radius: var(--r-pill);
}
.bc-name { font: 700 1.05rem/1.2 'Fraunces'; color: var(--ink); margin: 10px 0 3px; letter-spacing: -0.01em; }
.bc-meta { font: 400 0.7rem/1 'DM Sans'; color: rgba(26,18,8,0.5); }
.bc-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.bc-perf {
  font: 600 0.73rem/1 'DM Mono'; padding: 3px 8px;
  border-radius: var(--r-pill); background: rgba(255,255,255,0.52);
}
.bc-perf.pos { color: var(--pos); }
.bc-perf.neg { color: var(--neg); }
.bc-role {
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(255,255,255,0.55); display: flex;
  align-items: center; justify-content: center;
  font: 700 0.55rem/1 'DM Sans'; color: var(--ink);
}

/* ─── LIST ROWS (Instrumenten-Liste) ─────────────────────────────────── */
.list-item {
  background: var(--surface); border-radius: var(--r-card);
  border: 1.5px solid transparent;
  margin-bottom: 8px; cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  overflow: hidden;
}
.list-item:hover { border-color: var(--cream-dark); }
.list-item.open  { border-color: var(--cream-dark); border-bottom-left-radius: 0; border-bottom-right-radius: 0; margin-bottom: 0; }
.list-item.alarm { border-color: #F4D0CC; background: #FEF7F6; }

.list-row {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 16px;
}
.list-role-bar  { width: 4px; height: 32px; border-radius: 4px; flex-shrink: 0; }
.list-name-col  { flex: 1; min-width: 0; }
.list-name      { font: 600 0.875rem/1 'DM Sans'; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-isin      { font: 400 0.68rem/1 'DM Mono'; color: var(--ink-muted); margin-top: 2px; }
.list-val-col   { text-align: right; min-width: 90px; flex-shrink: 0; }
.list-val       { font: 500 0.82rem/1 'DM Mono'; color: var(--ink); }
.list-pct       { font: 400 0.68rem/1 'DM Sans'; color: var(--ink-muted); margin-top: 2px; }

.star-btn {
  background: none; border: none; cursor: pointer; padding: 3px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; opacity: 0.7; transition: opacity 0.15s;
}
.star-btn:hover { opacity: 1; }

/* Accordion */
.list-expand { display: none; padding: 0 16px 16px; border-top: 1.5px solid var(--cream-mid); }
.list-expand.open { display: block; }
.expand-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; padding-top: 14px; }
.ex-section-label { font: 500 0.62rem/1 'DM Sans'; text-transform: uppercase; letter-spacing: 0.07em; color: var(--ink-muted); margin-bottom: 7px; }
.ex-kv            { margin-bottom: 7px; }
.ex-kv-label      { font: 400 0.68rem/1 'DM Sans'; color: var(--ink-muted); }
.ex-kv-val        { font: 500 0.8rem/1 'DM Mono'; color: var(--ink); margin-top: 1px; }
.thesis-text      { font: 400 0.78rem/1.6 'DM Sans'; color: var(--ink-soft); font-style: italic; }

/* Copy-Chips */
.copy-chips { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 10px; }
.copy-chip {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--cream); border: 1.5px solid var(--cream-dark);
  border-radius: var(--r-sm); padding: 3px 8px; cursor: pointer;
  font: 500 0.72rem/1 'DM Mono'; color: var(--ink-soft);
  transition: border-color 0.15s;
}
.copy-chip:hover     { border-color: var(--gold); }
.copy-chip-label     { font: 500 0.58rem/1 'DM Sans'; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-muted); }

/* Tranchen-Tabelle (List + Detail) */
.positions-table { width: 100%; border-collapse: collapse; margin-top: 4px; }
.positions-table th { font: 500 0.6rem/1 'DM Sans'; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-muted); padding: 5px 6px; text-align: left; border-bottom: 1px solid var(--cream-dark); }
.positions-table td { padding: 6px 6px; font: 400 0.78rem/1 'DM Mono'; color: var(--ink); border-bottom: 1px solid var(--cream-mid); }
.positions-table tr:last-child td { border-bottom: none; }

/* Notiz-Textarea (List-Accordion + Detail) */
.note-area {
  width: 100%; border: 1.5px solid var(--cream-dark);
  border-radius: var(--r-sm); padding: 8px 10px;
  font: 400 0.78rem/1.5 'DM Sans'; color: var(--ink);
  background: var(--cream); resize: none; min-height: 54px;
  margin-top: 4px;
}
.note-area:focus      { outline: none; border-color: var(--gold); background: var(--white); }
.note-area::placeholder { color: var(--ink-faint); }

.save-btn {
  margin-top: 7px; border: 1.5px solid var(--cream-dark);
  background: none; border-radius: var(--r-pill);
  padding: 5px 14px; font: 500 0.73rem/1 'DM Sans';
  color: var(--ink-soft); cursor: pointer; transition: all 0.15s;
}
.save-btn:hover { border-color: var(--ink-soft); color: var(--ink); }

/* ─── DETAIL PAGE ─────────────────────────────────────────────────────── */
.back-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: none; cursor: pointer;
  font: 500 0.78rem/1 'DM Sans'; color: var(--ink-muted);
  padding: 0; margin-bottom: 20px; transition: color 0.15s;
}
.back-btn:hover { color: var(--ink); }

.detail-hero        { display: flex; align-items: flex-start; gap: 0; margin-bottom: 24px; }
.detail-hero-color  { width: 6px; align-self: stretch; border-radius: 4px; margin-right: 16px; flex-shrink: 0; }
.detail-hero-title  { font: 500 2.2rem/1.1 'Fraunces'; color: var(--ink); letter-spacing: -0.02em; }
.detail-hero-isin   { font: 400 0.8rem/1 'DM Mono'; color: var(--ink-muted); margin-top: 5px; }
.detail-pills       { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.detail-pill {
  display: inline-flex; align-items: center;
  padding: 4px 11px; border-radius: var(--r-pill);
  font: 500 0.72rem/1 'DM Sans';
  background: var(--cream-mid); color: var(--ink-soft);
}

.detail-kpi-strip { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-bottom: 24px; }
.detail-kpi       { background: var(--surface); border: 1.5px solid var(--cream-mid); border-radius: var(--r-card); padding: 16px; }
.dkpi-label       { font: 500 0.62rem/1 'DM Sans'; text-transform: uppercase; letter-spacing: 0.07em; color: var(--ink-muted); margin-bottom: 7px; }
.dkpi-val         { font: 700 1.15rem/1 'Fraunces'; color: var(--ink); }
.dkpi-sub         { font: 400 0.7rem/1 'DM Mono'; color: var(--ink-muted); margin-top: 4px; }
.dkpi-val.pos { color: var(--pos); }
.dkpi-val.neg { color: var(--neg); }

.detail-grid         { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 16px; }
.detail-card         { background: var(--surface); border: 1.5px solid var(--cream-mid); border-radius: var(--r-card); padding: 20px; margin-bottom: 16px; }
.detail-card-label   { font: 600 0.72rem/1 'DM Sans'; text-transform: uppercase; letter-spacing: 0.07em; color: var(--ink-muted); margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1.5px solid var(--cream-mid); }

.kv-grid      { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.kv-item-label { font: 400 0.68rem/1 'DM Sans'; color: var(--ink-muted); }
.kv-item-val   { font: 500 0.82rem/1 'DM Mono'; color: var(--ink); margin-top: 2px; }

.decisions-empty {
  padding: 24px; text-align: center;
  font: 400 0.8rem/1.5 'DM Sans'; color: var(--ink-faint);
  background: var(--cream); border-radius: var(--r-sm);
}

/* ─── COCKPIT ─────────────────────────────────────────────────────────── */
.kpi-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; margin-bottom: 24px; }
.kpi-card { background: var(--surface); border: 1.5px solid var(--cream-mid); border-radius: var(--r-card); padding: 18px; }
.kpi-label { font: 500 0.62rem/1 'DM Sans'; text-transform: uppercase; letter-spacing: 0.07em; color: var(--ink-muted); margin-bottom: 8px; }
.kpi-val   { font: 700 1.5rem/1 'Fraunces'; color: var(--ink); }
.kpi-sub   { font: 400 0.73rem/1 'DM Sans'; margin-top: 5px; }
.kpi-sub.pos  { color: var(--pos); }
.kpi-sub.neg  { color: var(--neg); }
.kpi-sub.warn { color: var(--warn); }

/* Dark Depot-Hero (Cockpit oben) */
.depot-hero {
  background: var(--ink); border-radius: var(--r-card);
  padding: 24px; margin-bottom: 24px; position: relative; overflow: hidden;
}
.depot-hero::before {
  content: ''; position: absolute;
  top: -40px; right: -30px; width: 130px; height: 130px;
  border-radius: var(--r-card); transform: rotate(20deg);
  background: rgba(201,168,76,0.12); pointer-events: none;
}
.depot-hero::after {
  content: ''; position: absolute;
  bottom: -30px; left: -20px; width: 100px; height: 100px;
  border-radius: var(--r-card); transform: rotate(-15deg);
  background: rgba(201,168,76,0.07); pointer-events: none;
}
.dh-label      { font: 400 0.72rem/1 'DM Sans'; color: rgba(253,250,246,0.45); margin-bottom: 6px; }
.dh-val        { font: 700 2.2rem/1 'Fraunces'; color: var(--surface); letter-spacing: -0.02em; }
.dh-change     { font: 500 0.78rem/1 'DM Mono'; color: #6BCF8A; margin-top: 6px; }
.dh-change.neg { color: #F87171; }
.dh-stats      { display: flex; margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(253,250,246,0.1); }
.dh-stat       { flex: 1; text-align: center; }
.dh-stat + .dh-stat { border-left: 1px solid rgba(253,250,246,0.1); }
.dh-stat-val   { font: 600 0.95rem/1 'DM Mono'; color: var(--surface); }
.dh-stat-label { font: 400 0.63rem/1 'DM Sans'; color: rgba(253,250,246,0.4); margin-top: 3px; }

/* ─── FAT BARS (unified, alle Allokations-Balken) ─────────────────────── */
.fat-bar-row   { margin-bottom: 10px; }
.fat-bar-hdr   { display: flex; justify-content: space-between; margin-bottom: 5px; font: 500 0.78rem/1 'DM Sans'; color: var(--ink-soft); }
.fat-bar-hdr span:last-child { font-family: 'DM Mono'; color: var(--ink); }
.fat-bar-track { height: 20px; background: var(--cream-mid); border-radius: 8px; overflow: hidden; }
.fat-bar-fill  {
  height: 100%; border-radius: 8px;
  display: flex; align-items: center; padding-left: 8px;
  font: 600 0.6rem/1 'DM Sans'; color: rgba(26,18,8,0.55);
  transition: width 0.5s ease; white-space: nowrap;
}

/* ─── REVIEW PAGE ─────────────────────────────────────────────────────── */
.review-card { background: var(--surface); border: 1.5px solid var(--cream-mid); border-radius: var(--r-card); padding: 20px; margin-bottom: 12px; transition: border-color 0.15s; }
.review-card.urgent { border-color: #F4B8B0; background: #FEF7F6; }

.rc-head   { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.urgency-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.urgency-dot.red   { background: #E85D5D; box-shadow: 0 0 7px rgba(232,93,93,0.4); }
.urgency-dot.amber { background: #F59E0B; }
.urgency-dot.grey  { background: var(--ink-muted); }
.rc-name   { font: 700 1rem/1 'Fraunces'; color: var(--ink); flex: 1; }
.rc-time   { font: 400 0.68rem/1 'DM Sans'; color: var(--ink-muted); }
.rc-reason { font: 400 0.73rem/1 'DM Sans'; color: var(--ink-soft); margin-bottom: 14px; padding-left: 17px; }

.rc-stats  { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; background: var(--cream); border-radius: var(--r-sm); padding: 12px; margin-bottom: 14px; }
.rcs-label { font: 500 0.6rem/1 'DM Sans'; text-transform: uppercase; letter-spacing: 0.07em; color: var(--ink-muted); }
.rcs-val   { font: 600 0.88rem/1 'DM Mono'; color: var(--ink); margin-top: 4px; }
.rcs-val.pos { color: var(--pos); }
.rcs-val.neg { color: var(--neg); }

.action-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.action-chip {
  border: 1.5px solid var(--cream-dark); background: var(--surface);
  border-radius: var(--r-pill); padding: 5px 12px;
  font: 500 0.73rem/1 'DM Sans'; color: var(--ink-soft);
  cursor: pointer; transition: all 0.15s;
}
.action-chip:hover         { border-color: var(--ink); color: var(--ink); background: var(--cream); }
.action-chip.selected      { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.action-chip.muted         { color: var(--ink-muted); }

.decide-row { display: flex; gap: 8px; align-items: flex-end; }
.decide-btn {
  background: var(--ink); color: var(--surface);
  border: none; border-radius: var(--r-pill);
  padding: 10px 20px; font: 600 0.8rem/1 'DM Sans';
  cursor: pointer; white-space: nowrap; transition: opacity 0.15s;
}
.decide-btn:hover { opacity: 0.8; }

.rc-collapsed { display: flex; align-items: center; gap: 8px; }
.open-btn {
  background: none; border: 1.5px solid var(--cream-dark);
  border-radius: var(--r-pill); padding: 4px 12px;
  font: 500 0.73rem/1 'DM Sans'; color: var(--ink-soft);
  cursor: pointer; transition: all 0.15s;
}
.open-btn:hover { border-color: var(--ink-soft); color: var(--ink); }

/* ─── BADGES ──────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center;
  padding: 3px 9px; border-radius: var(--r-pill);
  font: 600 0.67rem/1.4 'DM Sans'; white-space: nowrap; flex-shrink: 0;
}
.badge-core      { background: #DBEAFE; color: #1D4ED8; }
.badge-growth    { background: #DCFCE7; color: #15803D; }
.badge-moonshot  { background: #F3E8FF; color: #7E22CE; }
.badge-review    { background: var(--gold-soft); color: var(--gold-dark); }
.badge-active    { background: #DCFCE7; color: #15803D; }
.badge-paused    { background: #FEF9C3; color: #854D0E; }
.badge-watchlist { background: #EFF6FF; color: #1D4ED8; }
.badge-candidate { background: var(--cream-mid); color: var(--ink-soft); }

/* ─── DECISION LOG ────────────────────────────────────────────────────── */
.decision-entry { padding: 14px 16px; border-radius: var(--r-sm); border: 1.5px solid var(--cream-mid); background: var(--surface); margin-bottom: 8px; }
.de-header      { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.de-action      { font: 600 0.82rem/1 'DM Sans'; color: var(--ink); }
.de-date        { font: 400 0.7rem/1 'DM Sans'; color: var(--ink-muted); margin-left: auto; }
.de-note        { font: 400 0.78rem/1.5 'DM Sans'; color: var(--ink-soft); font-style: italic; }

.decision-badge    { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: var(--r-pill); font: 600 0.67rem/1 'DM Sans'; }
.db-halten         { background: #EFF6FF;       color: #2563EB; }
.db-nachkaufen     { background: #DCFCE7;       color: #15803D; }
.db-verkaufen      { background: #FEF5F4;       color: var(--neg); }
.db-sl-anpassen    { background: #FFFBEB;       color: #854D0E; }
.db-beobachten     { background: var(--cream-mid); color: var(--ink-soft); }

/* ─── FORM ELEMENTS ───────────────────────────────────────────────────── */
.form-group  { margin-bottom: 16px; }
.form-label  { display: block; font: 500 0.7rem/1 'DM Sans'; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }
.form-input  { width: 100%; padding: 10px 14px; border: 1.5px solid var(--cream-dark); border-radius: var(--r-sm); background: var(--cream); font: 400 0.88rem/1 'DM Sans'; color: var(--ink); transition: border-color 0.2s, background 0.2s; }
.form-input:focus        { outline: none; border-color: var(--gold); background: var(--white); }
.form-input::placeholder { color: var(--ink-faint); }
.form-input.error        { border-color: #D97070; background: #FDF5F5; }
.form-input.success      { border-color: #70B88A; }
.form-hint               { font: 400 0.7rem/1 'DM Sans'; color: var(--ink-muted); margin-top: 5px; }
.form-hint.error         { color: var(--neg); }
.form-hint.success       { color: var(--pos); }

.form-select {
  width: 100%; padding: 10px 32px 10px 14px;
  border: 1.5px solid var(--cream-dark); border-radius: var(--r-sm);
  background: var(--cream) url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%239C8E7A' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 12px center;
  font: 400 0.88rem/1 'DM Sans'; color: var(--ink);
  appearance: none; cursor: pointer;
}
.form-select:focus { outline: none; border-color: var(--gold); }

textarea.form-input { resize: vertical; min-height: 80px; line-height: 1.5; }

/* Tag-Editor */
.tag-container        { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px; background: var(--cream); border: 1.5px solid var(--cream-dark); border-radius: var(--r-sm); min-height: 42px; cursor: text; }
.tag-container:focus-within { border-color: var(--gold); background: var(--white); }
.tag-item             { display: inline-flex; align-items: center; gap: 5px; background: var(--surface); border: 1.5px solid var(--cream-dark); border-radius: var(--r-pill); padding: 3px 8px 3px 10px; font: 500 0.75rem/1 'DM Sans'; color: var(--ink-soft); }
.tag-remove           { width: 14px; height: 14px; border-radius: 50%; border: none; background: var(--cream-mid); color: var(--ink-muted); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 0.65rem; line-height: 1; }
.tag-remove:hover     { background: var(--card-coral); color: var(--neg); }
.tag-input-ghost      { border: none; outline: none; background: transparent; font: 400 0.82rem/1 'DM Sans'; color: var(--ink); min-width: 80px; }

/* Typeahead */
.typeahead-wrap       { position: relative; }
.typeahead-dropdown   { position: absolute; top: calc(100% + 4px); left: 0; right: 0; background: var(--surface); border: 1.5px solid var(--cream-dark); border-radius: var(--r-card); box-shadow: 0 8px 24px rgba(26,18,8,0.1); z-index: 50; overflow: hidden; display: none; }
.typeahead-dropdown.open { display: block; }
.ta-item              { padding: 10px 14px; cursor: pointer; display: flex; gap: 12px; align-items: center; border-bottom: 1px solid var(--cream-mid); transition: background 0.12s; }
.ta-item:last-child   { border-bottom: none; }
.ta-item:hover, .ta-item.selected { background: var(--cream); }
.ta-isin              { font: 400 0.72rem/1 'DM Mono'; color: var(--ink-muted); }
.ta-name              { font: 600 0.85rem/1 'DM Sans'; color: var(--ink); }
.ta-exchange          { font: 400 0.7rem/1 'DM Sans'; color: var(--ink-muted); margin-left: auto; }

/* ─── ALERTS / BANNERS ────────────────────────────────────────────────── */
.alert        { display: flex; gap: 10px; padding: 12px 14px; border-radius: var(--r-sm); margin-bottom: 10px; }
.alert-icon   { width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px; }
.alert-body   { flex: 1; }
.alert-title  { font: 600 0.82rem/1 'DM Sans'; margin-bottom: 3px; }
.alert-text   { font: 400 0.75rem/1.4 'DM Sans'; }
.alert.info    { background: #EFF6FF; border: 1.5px solid #BFDBFE; }
.alert.info    .alert-title { color: #1D4ED8; }
.alert.info    .alert-text  { color: #3B82F6; }
.alert.warn    { background: #FFFBEB; border: 1.5px solid #FDE68A; }
.alert.warn    .alert-title { color: #92400E; }
.alert.warn    .alert-text  { color: var(--warn); }
.alert.error   { background: #FEF5F4; border: 1.5px solid #F4B8B0; }
.alert.error   .alert-title { color: var(--neg); }
.alert.error   .alert-text  { color: #B52B1E; }
.alert.success { background: #F0FDF4; border: 1.5px solid #BBF7D0; }
.alert.success .alert-title { color: #15803D; }
.alert.success .alert-text  { color: var(--pos); }

/* ─── DEPOT-ABGLEICH ──────────────────────────────────────────────────── */
.steps        { display: flex; align-items: center; margin-bottom: 28px; }
.step         { display: flex; align-items: center; gap: 8px; flex: 1; }
.step:last-child { flex: none; }
.step-dot     { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font: 600 0.75rem/1 'DM Sans'; flex-shrink: 0; }
.step-dot.done    { background: var(--ink);      color: var(--surface); }
.step-dot.active  { background: var(--gold);     color: var(--ink); }
.step-dot.waiting { background: var(--cream-mid); color: var(--ink-muted); }
.step-label       { font: 500 0.78rem/1 'DM Sans'; }
.step-label.done    { color: var(--ink-soft); }
.step-label.active  { color: var(--ink); font-weight: 600; }
.step-label.waiting { color: var(--ink-muted); }
.step-line        { flex: 1; height: 2px; background: var(--cream-dark); margin: 0 8px; }
.step-line.done   { background: var(--ink); }

.upload-zone        { border: 2px dashed var(--cream-dark); border-radius: var(--r-card); padding: 40px 24px; text-align: center; cursor: pointer; transition: all 0.2s; background: var(--surface); }
.upload-zone:hover,
.upload-zone.drag-over { border-color: var(--gold); background: var(--gold-soft); }
.upload-icon        { width: 44px; height: 44px; background: var(--cream-mid); border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; color: var(--ink-muted); }
.upload-title       { font: 600 0.9rem/1 'DM Sans'; color: var(--ink); margin-bottom: 5px; }
.upload-sub         { font: 400 0.75rem/1.4 'DM Sans'; color: var(--ink-muted); }
.upload-sub strong  { color: var(--gold-dark); cursor: pointer; }

.diff-table          { width: 100%; border-collapse: collapse; }
.diff-table th       { font: 500 0.62rem/1 'DM Sans'; text-transform: uppercase; letter-spacing: 0.07em; color: var(--ink-muted); padding: 8px 12px; text-align: left; border-bottom: 1.5px solid var(--cream-dark); background: var(--cream); }
.diff-table td       { padding: 10px 12px; font: 400 0.8rem/1 'DM Sans'; border-bottom: 1px solid var(--cream-mid); vertical-align: middle; }
.diff-table tr:last-child td { border-bottom: none; }
.diff-warn td        { background: #FFFBEB; }
.diff-new  td        { background: #FEF5F4; }
.diff-miss td        { background: #F0F4FF; }
.diff-badge          { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: var(--r-pill); font: 600 0.65rem/1 'DM Sans'; }
.db-match  { background: #DCFCE7; color: #15803D; }
.db-warn   { background: #FEF9C3; color: #854D0E; }
.db-new    { background: #FEE2E2; color: #B91C1C; }
.db-miss   { background: #DBEAFE; color: #1D4ED8; }
.diff-val-row { display: flex; flex-direction: column; gap: 2px; }
.diff-val-old { font: 400 0.72rem/1 'DM Mono'; color: var(--ink-muted); text-decoration: line-through; }
.diff-val-new { font: 600 0.8rem/1 'DM Mono'; color: var(--ink); }

/* ─── ORDERBUCH / SL-TRACKER ──────────────────────────────────────────── */
.sl-row     { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--surface); border-radius: var(--r-sm); border: 1.5px solid var(--cream-mid); margin-bottom: 7px; }
.sl-row.crit { background: #FEF5F4; border-color: #F4D0CC; }
.sl-row.warn { background: #FFFBEB; border-color: #FDE68A; }
.sl-puffer  { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: var(--r-pill); font: 600 0.72rem/1 'DM Mono'; }
.sl-crit    { background: #FEF5F4; color: var(--neg); }
.sl-warn    { background: #FFFBEB; color: var(--warn); }
.sl-ok      { background: #F0FDF4; color: var(--pos); }

/* ─── EINSTELLUNGEN ───────────────────────────────────────────────────── */
.settings-section   { margin-bottom: 24px; }
.settings-label     { font: 600 0.68rem/1 'DM Sans'; text-transform: uppercase; letter-spacing: 0.09em; color: var(--ink-muted); margin-bottom: 10px; }
.settings-row       { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: var(--surface); border: 1.5px solid var(--cream-mid); border-radius: var(--r-sm); margin-bottom: 6px; }
.settings-row-title { font: 500 0.85rem/1 'DM Sans'; color: var(--ink); }
.settings-row-sub   { font: 400 0.72rem/1 'DM Sans'; color: var(--ink-muted); margin-top: 2px; }
.toggle             { width: 40px; height: 22px; border-radius: var(--r-pill); background: var(--cream-dark); position: relative; cursor: pointer; transition: background 0.2s; flex-shrink: 0; border: none; }
.toggle::after      { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); transition: left 0.2s; }
.toggle.on          { background: var(--ink); }
.toggle.on::after   { left: 21px; }

/* ─── MODAL ───────────────────────────────────────────────────────────── */
.modal-backdrop   { position: fixed; inset: 0; background: rgba(26,18,8,0.4); backdrop-filter: blur(3px); z-index: 200; display: none; align-items: center; justify-content: center; }
.modal-backdrop.open { display: flex; }
.modal-box        { background: var(--surface); border-radius: 24px; padding: 32px; max-width: 420px; width: 90%; box-shadow: 0 20px 60px rgba(26,18,8,0.18); }
.modal-icon       { width: 52px; height: 52px; border-radius: var(--r-card); margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; }
.modal-icon.warn    { background: #FFFBEB; color: #D97706; }
.modal-icon.danger  { background: #FEF5F4; color: var(--neg); }
.modal-icon.success { background: #F0FDF4; color: var(--pos); }
.modal-title      { font: 700 1.15rem/1.2 'Fraunces'; color: var(--ink); text-align: center; margin-bottom: 8px; }
.modal-body       { font: 400 0.82rem/1.55 'DM Sans'; color: var(--ink-muted); text-align: center; margin-bottom: 24px; }
.modal-actions    { display: flex; gap: 8px; }
.modal-actions .btn-primary { flex: 1; justify-content: center; }
.modal-actions .btn-ghost   { flex: 1; justify-content: center; }

/* ─── EMPTY STATES ────────────────────────────────────────────────────── */
.empty-state  { padding: 48px 24px; text-align: center; }
.empty-icon   { font-size: 2.4rem; margin-bottom: 12px; }
.empty-title  { font: 500 1rem/1.2 'Fraunces'; color: var(--ink); margin-bottom: 6px; }
.empty-text   { font: 400 0.8rem/1.5 'DM Sans'; color: var(--ink-muted); max-width: 280px; margin: 0 auto 18px; }

/* ─── SKELETON / LOADING ──────────────────────────────────────────────── */
@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position:  400px 0; }
}
.skeleton {
  background: linear-gradient(90deg, var(--cream-mid) 0%, var(--cream) 50%, var(--cream-mid) 100%);
  background-size: 800px;
  animation: shimmer 1.4s infinite;
  border-radius: 6px;
}
.skel-text-lg { height: 20px; width: 60%; margin-bottom: 8px; }
.skel-text-md { height: 14px; width: 40%; margin-bottom: 6px; }
.skel-text-sm { height: 11px; width: 25%; }
.skel-bar     { height: 20px; border-radius: 8px; margin-bottom: 10px; }
.skel-row     { display: flex; align-items: center; gap: 12px; padding: 13px 16px; background: var(--surface); border-radius: var(--r-card); border: 1.5px solid var(--cream-mid); margin-bottom: 8px; }
.skel-circle  { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.skel-card    { background: var(--surface); border: 1.5px solid var(--cream-mid); border-radius: var(--r-card); padding: 18px; }

/* ─── BUTTONS ─────────────────────────────────────────────────────────── */
.btn-primary {
  background: var(--ink); color: var(--surface);
  border: none; border-radius: var(--r-pill);
  padding: 9px 20px; font: 600 0.82rem/1 'DM Sans';
  cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  transition: opacity 0.15s, transform 0.1s;
}
.btn-primary:hover  { opacity: 0.85; }
.btn-primary:active { transform: scale(0.99); }
.btn-ghost {
  background: none; border: 1.5px solid var(--cream-dark);
  border-radius: var(--r-pill); padding: 8px 18px;
  font: 500 0.82rem/1 'DM Sans'; color: var(--ink-soft);
  cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  transition: all 0.15s;
}
.btn-ghost:hover  { border-color: var(--ink-soft); color: var(--ink); background: var(--cream); }
.btn-danger {
  background: none; border: 1.5px solid #F4B8B0;
  border-radius: var(--r-pill); padding: 8px 18px;
  font: 500 0.82rem/1 'DM Sans'; color: var(--neg); cursor: pointer;
  transition: background 0.15s;
}
.btn-danger:hover { background: #FEF5F4; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ─── LOGIN ───────────────────────────────────────────────────────────── */
.login-screen {
  min-height: 100vh; display: flex;
  align-items: center; justify-content: center;
  background: var(--cream); position: relative; overflow: hidden;
}
.login-bg-shape            { position: absolute; border-radius: var(--r-card); pointer-events: none; }
.login-bg-shape.s1         { width: 320px; height: 320px; top: -80px; right: -60px; background: var(--card-peach); opacity: 0.5; transform: rotate(15deg); }
.login-bg-shape.s2         { width: 220px; height: 220px; bottom: -40px; left: -50px; background: var(--card-lavender); opacity: 0.4; transform: rotate(-10deg); }
.login-bg-shape.s3         { width: 160px; height: 160px; bottom: 100px; right: 80px; background: var(--card-sage); opacity: 0.35; transform: rotate(25deg); }
.login-card                { background: var(--surface); border-radius: 28px; padding: 48px 44px; width: 420px; box-shadow: var(--shadow-md); position: relative; z-index: 1; }
.login-brand               { display: flex; align-items: center; gap: 12px; margin-bottom: 36px; }
.login-brand-icon          { width: 44px; height: 44px; background: var(--ink); border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.login-brand-icon svg      { color: var(--gold); }
.login-brand-name          { font: 700 1.1rem/1 'DM Sans'; color: var(--ink); letter-spacing: 0.04em; }
.login-brand-tag           { font: 400 0.72rem/1 'DM Sans'; color: var(--ink-muted); margin-top: 2px; }
.login-headline            { font: 300 2.1rem/1.15 'Fraunces'; color: var(--ink); margin-bottom: 6px; letter-spacing: -0.02em; }
.login-headline em         { font-style: italic; color: var(--gold); }
.login-sub                 { font: 400 0.85rem/1 'DM Sans'; color: var(--ink-muted); margin-bottom: 32px; }
.login-btn                 { width: 100%; padding: 13px; background: var(--ink); color: var(--surface); border: none; border-radius: var(--r-pill); font: 600 0.9rem/1 'DM Sans'; cursor: pointer; margin-top: 8px; transition: opacity 0.2s, transform 0.1s; }
.login-btn:hover           { opacity: 0.85; }
.login-btn:active          { transform: scale(0.99); }
.login-error               { font: 400 0.8rem/1 'DM Sans'; color: var(--neg); background: #FEF5F4; border: 1px solid #F4B8B0; border-radius: var(--r-sm); padding: 8px 12px; margin-bottom: 12px; }
.login-meta                { text-align: center; margin-top: 20px; font: 400 0.75rem/1 'DM Sans'; color: var(--ink-muted); }

/* ─── TOAST ───────────────────────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(60px);
  background: var(--ink); color: var(--surface);
  padding: 10px 20px; border-radius: var(--r-pill);
  font: 500 0.8rem/1 'DM Sans'; z-index: 999;
  transition: transform 0.3s; pointer-events: none;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ─── UTILS ───────────────────────────────────────────────────────────── */
.flex-row   { display: flex; align-items: center; }
.gap-6      { gap: 6px; }
.gap-8      { gap: 8px; }
.gap-12     { gap: 12px; }
.gap-16     { gap: 16px; }
.ml-auto    { margin-left: auto; }
.mt-4       { margin-top: 4px; }
.mt-8       { margin-top: 8px; }
.mt-12      { margin-top: 12px; }
.mt-16      { margin-top: 16px; }
.mt-24      { margin-top: 24px; }
.mb-8       { margin-bottom: 8px; }
.mb-16      { margin-bottom: 16px; }
.mb-24      { margin-bottom: 24px; }
.text-muted { color: var(--ink-muted); font-size: 0.78rem; }
.text-mono  { font-family: 'DM Mono', monospace; }
.text-pos   { color: var(--pos); }
.text-neg   { color: var(--neg); }
.text-warn  { color: var(--warn); }
.w-full     { width: 100%; }
