/* ============================================================
   Phase 10 · Hub + Vorlagen-CMS
   Phase-1-Apple-Look auf globalen Tokens (css/style.css)
   ============================================================ */

body[data-page="hub"],
body[data-page="vorlagen-cms"] {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
}
/* Phase 37: Sidebar persistent ab 1024px, Drawer für Mobile/Tablet — keine Bottom-Nav mehr */

/* ---------- Header (fix oben) ---------- */
.h-header {
  background: var(--bg-secondary);
  padding: 12px 20px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 90;
  height: 68px;
}

/* Header-Rechts: Live-Status + Uhrzeit + Logout */
.h-header-right {
  display: flex;
  align-items: center;
  gap: 14px;
}
.h-live {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-secondary);
}
.h-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sage);
  box-shadow: 0 0 0 0 rgba(52,199,89,0.5);
  animation: pulse-dot 2.4s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%   { box-shadow: 0 0 0 0 rgba(52,199,89,0.55); }
  60%  { box-shadow: 0 0 0 6px rgba(52,199,89,0); }
  100% { box-shadow: 0 0 0 0 rgba(52,199,89,0); }
}
.h-clock {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
@media (max-width: 540px) {
  .h-live, .h-clock { display: none; }
  .h-header { padding-right: 64px; }
  .h-header .h-logout { display: none; }
}
.h-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.h-header-photo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  /* Ruhiger Platzhalter, solange das Foto lädt — statt eines leeren Lochs */
  background: var(--surface-2, var(--surface-2));
}
/* Ohne Quelle gar nichts zeigen (kein Kaputt-Bild-Symbol) */
.h-header-photo:not([src]) { visibility: hidden; }
.h-header-text { min-width: 0; }
.h-header-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.h-header-sub {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.1;
}
.h-logout {
  background: transparent;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-button);
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  color: var(--text-primary);
  cursor: pointer;
  white-space: nowrap;
}

/* ---------- Main Content Container ---------- */
.h-main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* ---------- Hero ---------- */
.h-hero {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px 4px 8px;
}
.h-greet {
  font-size: clamp(26px, 6vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.15;
  margin: 0;
}
.h-stats-text {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}
.h-stats-text strong { color: var(--text-primary); font-weight: 600; }

/* ---------- Section Label ---------- */
.h-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin: 0 0 0 4px;
}
.h-label.muted { color: var(--text-secondary); }

/* ---------- KPI Cards ---------- */
.h-kpis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.h-kpi {
  --kpi-color: var(--accent-gold);
  background: var(--bg-secondary);
  border-radius: 16px;
  padding: 20px 18px;
  box-shadow: var(--shadow-card);
  border-top: 3px solid var(--kpi-color);
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.h-kpi-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--kpi-color) 13%, transparent);
  color: var(--kpi-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.h-kpi-icon svg { display: block; }
.h-kpi-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}
.h-kpi-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 4px;
}
.h-kpi-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.05;
  margin-bottom: 6px;
}
.h-skeleton {
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-2) 50%, var(--surface-2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s ease-in-out infinite;
  border-radius: 6px;
  display: inline-block;
  width: 60%;
  height: 32px;
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
@media (min-width: 720px) {
  .h-kpis { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Quick Actions ---------- */
.h-quick {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.h-quick a {
  background: var(--bg-secondary);
  border-radius: 16px;
  padding: 20px 14px;
  text-align: center;
  text-decoration: none;
  color: var(--text-primary);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-height: 76px;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.h-quick a:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.h-quick a:active { transform: scale(0.98); }
.h-quick .icon { font-size: 22px; line-height: 1; }
.h-quick .label { font-size: 13px; font-weight: 600; }
@media (min-width: 720px) {
  .h-quick { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Bereiche / Tiles ---------- */
.h-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.h-tile {
  background: var(--bg-secondary);
  border-radius: 16px;
  padding: 22px 18px;
  text-decoration: none;
  color: inherit;
  position: relative;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.h-tile:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.h-tile.disabled { opacity: 0.7; cursor: pointer; }
.h-tile .icon { font-size: 28px; line-height: 1; margin-bottom: 4px; }
.h-tile .titel {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}
.h-tile .desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.45;
  margin: 0;
}
.h-tile .badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 8px;
  border-radius: 999px;
  text-transform: uppercase;
}
.h-tile .badge.live { background: var(--dna-petrol-tint); color: var(--ok); }
.h-tile .badge.soon { background: var(--surface-2); color: var(--ink-muted); }
@media (min-width: 720px) {
  .h-tiles { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Vorlagen-Test-Cards ---------- */
.h-vorlagen-test {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.h-vorlage-card {
  background: var(--bg-secondary);
  border-radius: 16px;
  padding: 22px 20px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.h-vorlage-card .icon { font-size: 28px; }
.h-vorlage-card h3 { font-size: 16px; font-weight: 700; margin: 0; }
.h-vorlage-card p { font-size: 13px; color: var(--text-secondary); margin: 0; line-height: 1.5; }
.h-vorlage-card a {
  align-self: flex-start;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  padding: 8px 14px;
  border: 1px solid var(--text-primary);
  border-radius: var(--radius-button);
  transition: all 0.2s ease;
}
.h-vorlage-card a:hover { background: var(--text-primary); color: #fff; }
@media (min-width: 720px) { .h-vorlagen-test { grid-template-columns: 1fr 1fr; } }

/* ---------- Test-Empfehlungen ---------- */
.h-test-pair {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 600px) { .h-test-pair { grid-template-columns: 1fr 1fr; } }

/* ---------- Externe Tools (horizontal scroll Mobile) ---------- */
.h-tools {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 0 8px;
  scrollbar-width: none;
}
.h-tools::-webkit-scrollbar { display: none; }
.h-tools a {
  flex: 0 0 auto;
  min-width: 200px;
  scroll-snap-align: start;
  background: var(--bg-secondary);
  border-radius: 16px;
  padding: 18px 18px;
  box-shadow: var(--shadow-card);
  text-decoration: none;
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.h-tools a .icon { font-size: 22px; }
.h-tools a .titel { font-size: 14px; font-weight: 700; margin: 4px 0 0; }
.h-tools a .desc { font-size: 12px; color: var(--text-secondary); }
@media (min-width: 720px) {
  .h-tools {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow: visible;
  }
  .h-tools a { min-width: 0; }
}

/* ---------- Aktivität ---------- */
.h-feed {
  background: var(--bg-secondary);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.h-feed-row {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}
.h-feed-row:last-child { border-bottom: none; }
.h-feed-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.h-feed-dot-offen          { background: var(--ink-muted); }
.h-feed-dot-anrufwunsch    { background: var(--warn); }
.h-feed-dot-kontaktiert    { background: var(--marine); }
.h-feed-dot-kunde          { background: var(--sage); }
.h-feed-dot-kein_interesse { background: var(--err); }
.h-feed-main { flex: 1; min-width: 0; }
.h-feed-name { font-size: 15px; font-weight: 600; color: var(--text-primary); }
.h-feed-meta { font-size: 12px; color: var(--text-secondary); display: flex; gap: 8px; flex-wrap: wrap; margin-top: 2px; }
.h-feed-row .arrow { color: var(--text-secondary); }
.h-feed-all {
  display: block;
  text-align: right;
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-gold);
  text-decoration: none;
  border-top: 1px solid var(--border-light);
}

/* ---------- Systemstatus ---------- */
.h-status {
  background: var(--bg-secondary);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
}
.h-status-row {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}
.h-status-row:last-child { border-bottom: none; }
.h-status-row .name { color: var(--text-primary); font-weight: 500; }
.h-status-row .status { font-size: 13px; }
.h-status-row .status.ok { color: var(--ok); }
.h-status-row .status.fail { color: var(--err); }
.h-status-row .status.unknown { color: var(--text-secondary); }

/* ---------- Entwickler-Accordion ---------- */
.h-dev {
  background: var(--bg-secondary);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.h-dev summary {
  padding: 18px 20px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-secondary);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.h-dev summary::-webkit-details-marker { display: none; }
.h-dev summary::after {
  content: '+';
  font-size: 20px;
  font-weight: 300;
  color: var(--text-secondary);
}
.h-dev[open] summary::after { content: '−'; }
.h-dev-body {
  padding: 0 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.h-dev-block h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin: 0 0 6px;
}
.h-dev-block .v {
  font-family: 'SF Mono', Menlo, monospace;
  font-size: 12px;
  color: var(--text-primary);
  background: var(--bg-primary);
  padding: 8px 10px;
  border-radius: 6px;
  word-break: break-all;
}
.h-dev-block a {
  display: block;
  padding: 8px 10px;
  background: var(--bg-primary);
  border-radius: 6px;
  font-family: 'SF Mono', Menlo, monospace;
  font-size: 12px;
  color: var(--text-primary);
  text-decoration: none;
  margin-bottom: 4px;
  word-break: break-all;
}
.h-dev-block a:hover { background: var(--surface-2); }

/* ---------- Toast ---------- */
.h-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--text-primary);
  color: #fff;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  z-index: 200;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}
.h-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }


/* ============================================================
   Phase 11 · Hot Leads + Timeline + Kernmodule/Tools
   ============================================================ */

/* ---------- KPI Sub-Stats ---------- */
.h-kpi-sub {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
  margin-top: 8px;
  display: block;
}
.h-kpi-sub strong { color: var(--text-primary); font-weight: 600; }

/* ---------- Hot Leads ---------- */
.h-hotleads {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.h-lead {
  background: var(--bg-secondary);
  border-radius: 16px;
  padding: 18px 18px;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  gap: 14px;
  border-left: 3px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.h-lead:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.08);
}
.h-lead.anrufwunsch { border-left-color: var(--warn); }
.h-lead.interesse  { border-left-color: var(--accent-gold); }
.h-lead-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.h-lead.anrufwunsch .h-lead-dot { background: var(--warn); }
.h-lead.interesse  .h-lead-dot { background: var(--accent-gold); }
.h-lead-body {
  flex: 1;
  min-width: 0;
}
.h-lead-heat {
  font-size: 12px;
  margin-right: 4px;
  cursor: help;
  filter: saturate(1.4);
}
.h-lead-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.h-lead-meta {
  font-size: 12px;
  color: var(--text-secondary);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.h-lead-meta .label {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  font-size: 10px;
}
.h-lead-meta .label.anrufwunsch { color: var(--accent-hover); }
.h-lead-meta .label.interesse { color: var(--accent-hover); }
.h-lead-cta {
  background: var(--text-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-button);
  padding: 9px 14px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity 0.2s ease;
}
.h-lead-cta:hover { opacity: 0.88; }

.h-empty-positive {
  background: var(--bg-secondary);
  border-radius: 16px;
  padding: 24px 20px;
  box-shadow: var(--shadow-card);
  text-align: center;
  color: var(--text-secondary);
  font-size: 14px;
  border: 1px dashed var(--border-light);
}
.h-empty-positive strong { color: var(--text-primary); font-weight: 600; }

/* ---------- Bereiche-Hierarchie ---------- */
.h-tiles-core {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.h-tile-core {
  background: var(--bg-secondary);
  border-radius: 18px;
  padding: 28px 24px;
  text-decoration: none;
  color: inherit;
  position: relative;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.h-tile-core:hover { transform: translateY(-3px) scale(1.01); box-shadow: 0 16px 36px rgba(0,0,0,0.10); }
.h-tile-core .icon { font-size: 36px; line-height: 1; margin-bottom: 6px; }
.h-tile-core .titel { font-size: 19px; font-weight: 700; color: var(--text-primary); margin: 0; }
.h-tile-core .desc { font-size: 14px; color: var(--text-secondary); line-height: 1.5; margin: 0; }
.h-tile-core .badge.live {
  position: absolute;
  top: 18px;
  right: 18px;
  background: var(--dna-petrol-tint);
  color: var(--ok);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
}
@media (min-width: 720px) {
  .h-tiles-core { grid-template-columns: repeat(3, 1fr); }
}

.h-tiles-tools {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.h-tile-tool {
  background: var(--bg-secondary);
  border-radius: 14px;
  padding: 16px 12px;
  text-decoration: none;
  color: inherit;
  position: relative;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.h-tile-tool:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,0.08); }
.h-tile-tool.disabled { opacity: 0.65; cursor: pointer; }
.h-tile-tool .icon { font-size: 22px; }
.h-tile-tool .titel { font-size: 13px; font-weight: 600; color: var(--text-primary); margin: 0; }
.h-tile-tool .badge {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 3px 6px;
  border-radius: 999px;
  text-transform: uppercase;
  background: var(--surface-2);
  color: var(--ink-muted);
}

/* ---------- Activity Timeline (Linear-Stil) ---------- */
.h-timeline {
  background: var(--bg-secondary);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  padding: 8px 0;
}
.h-tl-row {
  display: grid;
  grid-template-columns: 64px 24px 1fr;
  align-items: flex-start;
  gap: 8px;
  padding: 12px 20px;
  text-decoration: none;
  color: inherit;
  position: relative;
  transition: background 0.15s ease;
}
.h-tl-row:hover { background: var(--bg-primary); }
.h-tl-time {
  font-size: 12px;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  padding-top: 1px;
}
.h-tl-axis {
  position: relative;
  align-self: stretch;
  display: flex;
  justify-content: center;
}
.h-tl-axis::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: -12px;
  left: 50%;
  width: 1px;
  background: var(--border-light);
  transform: translateX(-0.5px);
}
.h-tl-row:last-child .h-tl-axis::before { bottom: 0; }
.h-tl-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent-gold);
  margin-top: 4px;
  z-index: 1;
  box-shadow: 0 0 0 4px var(--bg-secondary);
}
.h-tl-dot.created  { background: var(--ink-muted); }
.h-tl-dot.opened   { background: var(--marine); }
.h-tl-dot.interest { background: var(--accent-gold); }
.h-tl-dot.call     { background: var(--warn); }
.h-tl-text {
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-secondary);
  padding-top: 1px;
}
.h-tl-text strong { color: var(--text-primary); font-weight: 600; }

.h-tl-all {
  display: block;
  text-align: right;
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-gold);
  text-decoration: none;
  border-top: 1px solid var(--border-light);
}

/* ---------- Mobile-Optimierungen ---------- */
@media (max-width: 540px) {
  .h-lead-cta { padding: 7px 11px; font-size: 12px; }
  .h-lead-wa { width: 32px; height: 32px; }
  .h-tl-row { grid-template-columns: 50px 20px 1fr; padding: 12px 16px; }
  .h-tl-time { font-size: 11px; }
}


/* ============================================================
   Vorlagen-CMS (vorlagen.html)
   ============================================================ */

.cms-intro {
  background: var(--bg-secondary);
  border-radius: 16px;
  padding: 20px 22px;
  box-shadow: var(--shadow-card);
}
.cms-intro h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.cms-intro p { font-size: 14px; color: var(--text-secondary); margin: 0; line-height: 1.5; }
.cms-intro .cms-hinweis { margin-top: 12px; padding: 12px 14px; border-left: 3px solid var(--accent-gold); background: rgba(200, 170, 34, .08); border-radius: 0 8px 8px 0; font-size: 13px; }

.cms-list { display: flex; flex-direction: column; gap: 12px; }

.cms-card {
  background: var(--bg-secondary);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.cms-card summary {
  padding: 18px 20px;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 14px;
}
.cms-card summary::-webkit-details-marker { display: none; }
.cms-card summary .icon { font-size: 24px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; }
.cms-card summary .icon.icon-svg { width: 28px; height: 28px; color: var(--editorial-marine, var(--marine)); }
.cms-card summary .icon.icon-svg svg { width: 100%; height: 100%; }
.cms-card summary .titel { font-size: 16px; font-weight: 700; flex: 1; }
.cms-card summary .slug { font-family: 'SF Mono', Menlo, monospace; font-size: 11px; color: var(--text-secondary); }
.cms-card summary::after {
  content: '+';
  font-size: 22px;
  font-weight: 300;
  color: var(--text-secondary);
  margin-left: 8px;
}
.cms-card[open] summary::after { content: '−'; }

.cms-body {
  padding: 0 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-top: 1px solid var(--border-light);
}
.cms-body label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  display: block;
  margin: 16px 0 6px;
}
.cms-body input,
.cms-body textarea {
  width: 100%;
  font-family: inherit;
  font-size: 14px;
  padding: 12px 14px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-button);
  background: var(--bg-primary);
  color: var(--text-primary);
  outline: none;
}
.cms-body input:focus,
.cms-body textarea:focus { border-color: var(--text-primary); }
.cms-body textarea { min-height: 80px; resize: vertical; }
.cms-img-preview {
  margin-top: 8px;
  width: 100%;
  max-width: 240px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--bg-primary);
}

.cms-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 540px) { .cms-row-2 { grid-template-columns: 1fr; } }

.cms-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  align-items: center;
}
.cms-save {
  background: var(--text-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-button);
  padding: 12px 22px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.cms-save:hover { opacity: 0.9; }
.cms-preview-link {
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  padding: 12px 18px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-button);
}
.cms-preview-link:hover { border-color: var(--text-primary); }

/* PHASE 13 - Hub Quick-Action, Funnel, Top-Empfehler */

.h-quick-single { display: block; }
.h-action-primary {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  text-decoration: none;
  color: var(--ink);
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.h-action-primary:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.04);
}
.h-action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--accent-bg);
  color: var(--accent-hover);
}
.h-action-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.h-action-title { font-size: 16px; font-weight: 600; color: var(--ink); }
.h-action-sub { font-size: 13px; color: var(--ink-muted); }
.h-action-arrow { color: var(--ink-soft); transition: transform var(--transition), color var(--transition); }
.h-action-primary:hover .h-action-arrow { color: var(--accent-hover); transform: translateX(2px); }

.h-funnel {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.h-funnel-row {
  display: grid;
  grid-template-columns: 110px 1fr 40px 44px;
  align-items: center;
  gap: 12px;
}
.h-funnel-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.h-funnel-track {
  height: 6px;
  background: var(--surface-2);
  border-radius: 3px;
  overflow: hidden;
}
.h-funnel-bar {
  height: 100%;
  background: var(--ink);
  border-radius: 3px;
  transition: width 600ms var(--ease);
}
.h-funnel-row.gold .h-funnel-bar { background: var(--accent); }
.h-funnel-count {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  text-align: right;
}
.h-funnel-pct {
  font-size: 12px;
  color: var(--ink-soft);
  text-align: right;
}

.h-promoters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.h-promoter {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  text-decoration: none;
  color: var(--ink);
  transition: border-color var(--transition), transform var(--transition);
}
.h-promoter:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}
.h-promoter-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
}
.h-promoter-gold   .h-promoter-rank { background: rgba(200,170,34, 0.18); color: var(--accent); }
.h-promoter-silber .h-promoter-rank { background: rgba(160, 160, 160, 0.18); color: var(--ink-muted); }
.h-promoter-bronze .h-promoter-rank { background: rgba(173, 116, 64, 0.18); color: var(--accent-hover); }
.h-promoter-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.h-promoter-name { font-size: 14px; font-weight: 600; color: var(--ink); }
.h-promoter-meta { font-size: 12px; color: var(--ink-muted); }

@media (max-width: 720px) {
  .h-promoters { grid-template-columns: 1fr; }
  .h-funnel-row { grid-template-columns: 90px 1fr 36px 40px; gap: 8px; }
}

/* ============================================================
   Phase 29 · Filter-Chips, Trend-Chart, NEU-Badge
   ============================================================ */

.h-filter-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.h-chip {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-light);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all .2s ease;
  font-family: inherit;
}
.h-chip:hover {
  border-color: var(--accent-gold);
  color: var(--text-primary);
}
.h-chip.active {
  background: var(--accent-gold);
  color: #fff;
  border-color: var(--accent-gold);
}

.h-chart-wrap {
  background: var(--bg-secondary);
  border-radius: 14px;
  padding: 20px 24px 16px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-light);
}
.h-chart-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 12px;
  flex-wrap: wrap;
}
.h-chart-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 18px;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.h-chart-meta {
  font-size: 11px;
  color: var(--text-secondary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.h-chart-canvas {
  position: relative;
  height: 280px;
}
.h-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
  font-size: 12px;
  color: var(--text-secondary);
}
.h-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.h-chart-legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.h-badge-new {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  background: var(--accent-gold);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  border-radius: 999px;
  vertical-align: middle;
  text-transform: uppercase;
}

@media (max-width: 720px) {
  .h-chart-canvas { height: 220px; }
  .h-chart-wrap { padding: 16px 16px 12px; }
}

/* ============================================================
   Phase 30 · Activity-Stream-Cards
   ============================================================ */

.h-activity-row {
  position: relative;
  display: grid;
  grid-template-columns: auto 40px 1fr;
  align-items: center;
  gap: 12px;
  padding: 14px 18px 14px 22px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-primary);
  text-decoration: none;
  transition: background .2s ease;
  overflow: hidden;
}
.h-activity-row:last-of-type { border-bottom: none; }
.h-activity-row:hover { background: var(--bg-primary); }

.h-activity-stripe {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--act-color, var(--accent-gold));
}

.h-activity-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  font-family: 'Inter', sans-serif;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.h-activity-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.h-activity-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.h-activity-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.h-activity-time {
  font-size: 11px;
  color: var(--text-secondary);
  letter-spacing: 0.03em;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.h-activity-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.h-activity-text {
  font-size: 13px;
  color: var(--text-secondary);
}
.h-activity-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px 3px 8px;
  background: color-mix(in srgb, var(--act-color) 12%, transparent);
  color: var(--act-color, var(--accent-gold));
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
  flex-shrink: 0;
}
.h-activity-pill i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--act-color, var(--accent-gold));
  display: inline-block;
}

@media (max-width: 540px) {
  .h-activity-row { grid-template-columns: auto 36px 1fr; gap: 10px; padding: 12px 14px 12px 18px; }
  .h-activity-avatar { width: 36px; height: 36px; font-size: 12px; }
  .h-activity-name { font-size: 13px; }
  .h-activity-bottom { flex-direction: column; align-items: flex-start; gap: 4px; }
}

/* ============================================================
   Phase 31 · 2-Spalten-Layout Desktop + Activity rechts permanent
   ============================================================ */

.h-main-grid {
  display: flex;
  flex-direction: column;
}

.h-col-main {
  display: flex;
  flex-direction: column;
  gap: 32px;
  min-width: 0;
}

.h-col-side {
  display: flex;
  flex-direction: column;
  margin-top: 32px;
}

@media (min-width: 1100px) {
  .h-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 64px;
    max-width: 1360px;
  }
  .h-col-side {
    margin-top: 0;
  }
  .h-side-activity {
    position: sticky;
    top: 88px;
    max-height: calc(100vh - 108px);
    overflow-y: auto;
    background: var(--bg-secondary);
    border-radius: 14px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-light);
    padding: 18px 16px 12px;
  }
  .h-side-activity .h-label {
    margin-bottom: 4px;
  }
  /* Timeline-Wrapper im Sidepanel braucht keinen extra Hintergrund */
  .h-side-activity .h-timeline {
    background: transparent;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 0;
  }
  /* Activity-Card-Overrides für engere rechte Spalte */
  .h-side-activity .h-activity-row {
    grid-template-columns: auto 36px 1fr;
    gap: 10px;
    padding: 12px 10px 12px 16px;
  }
  .h-side-activity .h-activity-avatar {
    width: 36px;
    height: 36px;
    font-size: 12px;
  }
  .h-side-activity .h-activity-name {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    font-size: 15px;
    letter-spacing: -0.005em;
    line-height: 1.25;
  }
  .h-side-activity .h-activity-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .h-side-activity .h-tl-all {
    margin-top: 8px;
  }
}

/* Auch in der schmalen Default-Card den Namen leicht prominenter */
.h-activity-name {
  font-size: 15px;
  letter-spacing: -0.005em;
}

/* ============================================================
   Phase 32 · KPI-Chips Desktop 2x2 + Icon-Kachel + Trend-Pill
   ============================================================ */

@media (min-width: 1100px) {
  .h-kpis {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  .h-kpi {
    padding: 24px 22px;
    gap: 16px;
  }
  .h-kpi-icon {
    width: 50px;
    height: 50px;
  }
  .h-kpi-value {
    font-size: 40px;
    margin-bottom: 8px;
  }
}

/* Trend-Pill: Farb-Akzent fuer positiv/negativ/stabil */
.h-kpi-sub-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: rgba(0,0,0,0.05);
  color: var(--text-secondary);
}
.h-kpi-sub-pill.up {
  background: rgba(11,70,80,0.13);
  color: var(--sage-dark);
}
.h-kpi-sub-pill.down {
  background: rgba(200,170,34,0.13);
  color: var(--accent-hover);
}
.h-kpi-sub-pill strong {
  font-weight: 700;
  color: inherit;
}

/* ============================================================
   Phase 38 · Premium-SaaS-Polish (Mocks 33-36 in Real-Code)
   ============================================================ */

:root {
  --shadow-card: 0 1px 2px rgba(19,25,29,0.04), 0 4px 14px rgba(19,25,29,0.04);
  --shadow-card-hover: 0 2px 4px rgba(19,25,29,0.05), 0 12px 28px rgba(19,25,29,0.07);
}

.h-hero { padding: 22px 4px 14px; gap: 12px; }
.h-greet {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em !important;
  font-size: clamp(34px, 3.4vw, 48px) !important;
  line-height: 1.05;
}
.h-hero-lines {
  display: flex; flex-direction: column; gap: 4px;
  font-family: 'Inter', sans-serif;
  font-size: 16px; color: var(--text-secondary);
  line-height: 1.45; max-width: 620px;
}
.h-hero-lines strong { color: var(--text-primary); font-weight: 600; }
.h-hero-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.h-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-size: 12px; font-weight: 500;
  color: var(--text-secondary);
  background: rgba(255,255,255,0.85);
  border: 1px solid var(--border-light);
}
.h-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.65; }
.h-pill.live { color: var(--sage-dark); background: rgba(11,70,80,0.13); border-color: rgba(11,70,80,0.25); }
.h-pill.live::before { background: var(--sage-dark); opacity: 1; }

.h-section-sub {
  font-family: 'Inter', sans-serif;
  font-size: 14px; color: var(--text-secondary);
  margin: 0 0 12px 0; letter-spacing: -0.005em;
}

/* HOT-LEAD-CARDS */
.h-hotleads { display: flex; flex-direction: column; gap: 10px; }
.h-lead {
  background: var(--surface);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-light);
  border-left: 3px solid var(--accent-gold);
  padding: 14px 16px 14px 18px;
  display: grid;
  grid-template-columns: 40px 1fr auto auto;
  gap: 14px; align-items: center;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease;
}
.h-lead.anrufwunsch { border-left-color: var(--burnt-orange); }
.h-lead.interesse { border-left-color: var(--terracotta); }
.h-lead:hover { transform: translateY(-2px); box-shadow: var(--shadow-card-hover); }
.h-lead-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'Inter', sans-serif;
  font-size: 13px; font-weight: 700; color: #fff;
  flex-shrink: 0;
}
.h-lead.anrufwunsch .h-lead-avatar { background: var(--burnt-orange); }
.h-lead.interesse .h-lead-avatar { background: var(--accent); color: var(--accent-hover); }
.h-lead-text {
  font-family: 'Inter', sans-serif;
  font-size: 15px; font-weight: 500;
  color: var(--text-primary);
  line-height: 1.4; letter-spacing: -0.005em;
}
.h-lead-text strong { font-weight: 700; }
.h-lead-detail {
  display: block;
  font-size: 12.5px; color: var(--text-secondary);
  font-weight: 400; margin-top: 3px;
}
.h-lead-cta {
  background: var(--ink);
  color: #fff !important;
  padding: 9px 16px;
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-size: 12.5px; font-weight: 600;
  white-space: nowrap; text-decoration: none;
  transition: background .2s ease;
}
.h-lead-cta:hover { background: var(--accent-gold); }
.h-lead .h-lead-dot { display: none; }
.h-lead-wa {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  background: #25D366; color: #fff; text-decoration: none;
  transition: background .2s ease, transform .15s ease;
}
.h-lead-wa:hover { background: #1aab54; transform: scale(1.08); }

/* KPI-CARDS · runde Bubble */
.h-kpi {
  --kpi-color: var(--accent-gold);
  background: var(--surface) !important;
  border-radius: 14px !important;
  padding: 14px 16px !important;
  box-shadow: var(--shadow-card) !important;
  border: 1px solid var(--border-light) !important;
  border-top: none !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 8px !important;
  transition: transform .25s ease, box-shadow .25s ease;
}
.h-kpi:hover { transform: translateY(-2px); box-shadow: var(--shadow-card-hover) !important; }
.h-kpi-icon {
  width: 36px !important; height: 36px !important;
  border-radius: 50% !important;
  background: color-mix(in srgb, var(--kpi-color) 15%, transparent) !important;
  color: var(--kpi-color) !important;
}
.h-kpi-body {
  display: flex; flex-direction: column; gap: 2px; width: 100%;
}
.h-kpi-label {
  font-family: 'Inter', sans-serif !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  letter-spacing: -0.005em !important;
  color: var(--text-secondary) !important;
  text-transform: none !important;
  margin-bottom: 0 !important;
  order: 2;
}
.h-kpi-value {
  font-family: 'Inter', sans-serif !important;
  font-weight: 800 !important;
  letter-spacing: -0.025em !important;
  font-size: 32px !important;
  color: var(--text-primary);
  line-height: 1.0;
  order: 1;
  margin-bottom: 0 !important;
}
.h-kpi-sub { order: 3; margin-top: 4px; display: inline-block; }
.h-kpi-sub-pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-size: 11px; font-weight: 600;
  background: rgba(0,0,0,0.04);
  color: var(--text-secondary);
}
.h-kpi-sub-pill.up { background: rgba(11,70,80,0.13); color: var(--sage-dark); }
.h-kpi-sub-pill.down { background: rgba(200,170,34,0.13); color: var(--accent-hover); }
.h-kpi-sub-pill strong { color: inherit; font-weight: 700; }

/* Echte Netzwerk-Kennzahlen direkt unter dem Einstieg */
.h-network-overview .h-label {
  margin-bottom: 12px;
}
.h-network-overview .h-kpis {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.h-network-overview .h-kpi {
  min-height: 148px;
  padding: 17px 19px 16px !important;
  border: 1px solid rgba(44, 43, 40, 0.10) !important;
  border-radius: 14px !important;
  box-shadow: 0 8px 24px -22px rgba(23, 25, 26, 0.42) !important;
  gap: 0 !important;
}
.h-network-overview .h-kpi:hover {
  box-shadow: 0 10px 28px rgba(38, 35, 29, 0.08) !important;
}
.h-network-overview .h-kpi-icon {
  width: 32px !important;
  height: 32px !important;
  background: color-mix(in srgb, var(--kpi-color) 11%, transparent) !important;
}
.h-network-overview .h-kpi-body {
  gap: 0;
  margin-top: 15px;
}
.h-network-overview .h-kpi-value {
  font-size: 34px !important;
  font-weight: 650 !important;
  letter-spacing: -0.032em !important;
  line-height: 0.95;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.h-network-overview .h-kpi-label {
  margin-top: 9px !important;
  font-size: 14px !important;
  font-weight: 620 !important;
  letter-spacing: -0.01em !important;
  color: var(--ink-muted) !important;
}
.h-network-overview .h-kpi-sub {
  margin-top: 5px;
}
@media (max-width: 900px) {
  .h-network-overview .h-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .h-network-overview .h-kpis { grid-template-columns: 1fr; }
}

/* CONVERSION-TREPPE */
.h-conversion-stair {
  background: var(--bg-secondary);
  border-radius: 14px;
  padding: 20px 24px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-light);
  display: flex; flex-direction: column; gap: 2px;
}
.h-stair-row {
  display: flex; align-items: baseline; gap: 14px;
  padding: 4px 0;
}
.h-stair-num {
  font-family: 'Inter', sans-serif;
  font-size: 28px; font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.025em;
  min-width: 70px;
}
.h-stair-label {
  font-family: 'Inter', sans-serif;
  font-size: 14px; color: var(--text-secondary);
}
.h-stair-arrow {
  display: flex; align-items: center; gap: 8px;
  padding: 2px 0 2px 18px;
  color: var(--accent-gold);
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.04em;
  font-weight: 700;
}
.h-stair-arrow::before { content: '\2193'; font-size: 13px; opacity: 0.6; }

/* ACTIVITY-STREAM · TellScale-Card-Style */
.h-side-activity {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  padding: 0 !important;
}
.h-side-activity .h-timeline {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column;
  gap: 8px;
}
.h-activity-row {
  position: relative;
  background: var(--surface) !important;
  border: 1px solid var(--border-light) !important;
  border-left: 3px solid var(--act-color, var(--accent-gold)) !important;
  border-radius: 10px !important;
  box-shadow: var(--shadow-card) !important;
  padding: 11px 12px 11px 14px !important;
  display: grid !important;
  grid-template-columns: 36px minmax(0, 1fr) !important;
  gap: 10px !important;
  align-items: center;
  transition: transform .2s ease, box-shadow .2s ease;
  text-decoration: none;
}
.h-activity-row:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-card-hover) !important;
  background: var(--surface) !important;
}
.h-activity-row .h-activity-stripe { display: none !important; }
.h-activity-avatar {
  width: 36px !important; height: 36px !important;
  border-radius: 50% !important;
  display: inline-flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--act-color) 16%, transparent) !important;
  color: var(--act-color) !important;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 700;
  box-shadow: none !important;
  letter-spacing: -0.02em;
}
.h-activity-body {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
  min-width: 0;
}
.h-activity-top {
  display: flex !important;
  align-items: baseline !important;
  justify-content: space-between !important;
  gap: 6px;
  min-width: 0;
}
.h-activity-name {
  font-family: 'Inter', sans-serif !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: var(--text-primary) !important;
  letter-spacing: -0.005em;
  line-height: 1.25;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  min-width: 0;
  flex: 1 1 auto;
}
.h-activity-time {
  font-family: 'Inter', sans-serif !important;
  font-size: 10.5px !important;
  color: var(--text-secondary) !important;
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.h-activity-bottom {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  min-width: 0;
}
.h-activity-text {
  font-family: 'Inter', sans-serif !important;
  font-size: 11.5px !important;
  color: var(--text-secondary) !important;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex: 1 1 auto;
}
.h-activity-pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 1px 0;
  background: transparent;
  color: var(--act-color);
  border-radius: 0;
  font-family: 'Inter', sans-serif;
  font-size: 10.5px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}
.h-activity-pill i {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--act-color);
  display: inline-block;
}
.h-badge-new {
  background: color-mix(in srgb, var(--accent-gold) 18%, transparent);
  color: var(--accent-hover);
  letter-spacing: 0.08em;
  font-family: 'Inter', sans-serif;
  font-size: 8.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 999px;
  text-transform: uppercase;
}
.h-tl-all {
  margin-top: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--accent-gold);
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  padding: 0 4px;
}

/* ============================================================
   Phase 39 · Final Mikrojustierung + Lock
   ============================================================ */

/* A3 · Header Mikrojustierung */
.h-header-name {
  font-size: 16px !important;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.h-header-sub {
  font-size: 13px !important;
  font-weight: 500;
}

/* ============================================================
   Phase 40 · Activity-Feed 2.0 — Event-Icons + Unread-Indicator
   ============================================================ */

/* Activity-Pill mit Lucide-Icon statt Dot */
.h-activity-pill {
  padding: 1px 4px 1px 0 !important;
  gap: 5px !important;
}
.h-activity-pill svg {
  width: 12px;
  height: 12px;
  color: var(--act-color);
  flex-shrink: 0;
  display: block;
}
.h-activity-pill i { display: none !important; }

/* Activity-Card: Padding-Right für Eye-Indicator */
.h-activity-row.is-unread {
  padding-right: 26px !important;
}

/* Unread-Eye-Indicator unten rechts */
.h-activity-unread {
  position: absolute;
  bottom: 8px;
  right: 10px;
  color: var(--accent-gold);
  opacity: 0.55;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.h-activity-unread svg {
  width: 14px;
  height: 14px;
  display: block;
}
.h-activity-row:hover .h-activity-unread { opacity: 0.85; }

/* ============================================================
   Phase 41 · Activity-Feed Premium 2.0
   - Icon-Bubble 42px statt Initial-Avatar
   - Eye-Indicator 18px Sage Green
   - Feed-Spacing 16px zur Scrollbar
   ============================================================ */

/* Icon-Bubble: Avatar wird zur Event-Icon-Bubble */
.h-activity-row {
  grid-template-columns: 42px minmax(0, 1fr) !important;
  gap: 12px !important;
}
.h-activity-avatar {
  width: 42px !important;
  height: 42px !important;
  background: color-mix(in srgb, var(--act-color) 13%, transparent) !important;
  color: var(--act-color) !important;
  font-size: 0 !important;
}
.h-activity-avatar svg {
  width: 20px;
  height: 20px;
  display: block;
}

/* Pill ohne führendes Icon (Icon ist jetzt in Bubble) */
.h-activity-pill {
  padding: 1px 2px 1px 0 !important;
  gap: 0 !important;
}
.h-activity-pill::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--act-color);
  margin-right: 6px;
  flex-shrink: 0;
}
.h-activity-pill svg { display: none !important; }

/* Unread-Eye: 18px Sage Green statt Champagne, deutlich sichtbarer */
.h-activity-unread {
  color: var(--sage-dark) !important;
  opacity: 0.7;
  bottom: 9px !important;
  right: 11px !important;
}
.h-activity-unread svg {
  width: 18px !important;
  height: 18px !important;
}
.h-activity-row:hover .h-activity-unread { opacity: 1; }
.h-activity-row.is-unread {
  padding-right: 34px !important;
}

/* Feed-Spacing: Abstand zur Scrollbar */
@media (min-width: 1100px) {
  .h-side-activity {
    padding-right: 16px !important;
  }
}

/* ============================================================
   Phase 43 · Premium Micro-UX Polish
   - Border-Left 3->4px
   - Avatar 42->46px
   - NEU-Badge Spec: var(--dna-gold-tint-2) BG / var(--accent-hover) Text
   ============================================================ */

.h-activity-row {
  border-left-width: 4px !important;
  grid-template-columns: 46px minmax(0, 1fr) !important;
}
.h-activity-avatar {
  width: 46px !important;
  height: 46px !important;
}
.h-activity-avatar svg {
  width: 22px;
  height: 22px;
}

.h-badge-new {
  background: var(--dna-gold-tint-2) !important;
  color: var(--accent-hover) !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  padding: 2px 8px !important;
  border-radius: 999px !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase;
}

/* Button-Premium-Haptik */
.h-lead-cta,
.h-action-primary,
.h-chip {
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.h-lead-cta:hover,
.h-action-primary:hover {
  transform: scale(1.01);
}
.h-chip:active { transform: scale(0.98); }

/* ============================================================
   Phase 44 · Subtile Akzent-Layer
   Section-Eyebrow Mini-Strip (4px Champagne vor h-label)
   ============================================================ */

.h-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.h-label::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 10px;
  background: var(--accent-gold);
  border-radius: 2px;
  flex-shrink: 0;
}

/* ============================================================
   Phase 45 · Final Micro-Polish (Design-Freeze)
   ============================================================ */

/* NEU-Badge Premium: wärmeres Gold, dunkler Text, 700, mehr Spacing */
.h-badge-new {
  background: var(--accent) !important;
  color: var(--accent-hover) !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  padding: 2px 9px !important;
}

/* Activity-Avatar-Tint: stärkere Hierarchie (kunde+created stärker, opened mittel)

   Die Farbwerte hier sind dieselben wie in js/hub.js unter EVENT_META.
   JavaScript schreibt sie als --act-color ins style-Attribut, dieser
   Selektor liest sie dort wieder. Wird eine Farbe nur an einer der
   beiden Stellen geändert, greift die Tönung stillschweigend nicht
   mehr, ohne Fehlermeldung. */
.h-activity-row[style*="#0B4650"] .h-activity-avatar {
  background: color-mix(in srgb, var(--act-color) 20%, transparent) !important;
}
.h-activity-row[style*="#2E6E7A"] .h-activity-avatar {
  background: color-mix(in srgb, var(--act-color) 18%, transparent) !important;
}
.h-activity-row[style*="#5E939E"] .h-activity-avatar {
  background: color-mix(in srgb, var(--act-color) 16%, transparent) !important;
}

/* Activity-Pill: höherer Font-Weight für Lesbarkeit */
.h-activity-pill {
  font-weight: 700 !important;
  letter-spacing: 0.01em !important;
}

/* Hover-Haptik exakt 180ms */
.h-activity-row {
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease !important;
}
.h-activity-row:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(19,25,29,0.07), 0 2px 6px rgba(19,25,29,0.05) !important;
}

/* Feed-Spalte: zusätzliche Luft zur Scrollbar */
@media (min-width: 1100px) {
  .h-side-activity {
    padding-right: 28px !important;
  }
  .h-side-activity .h-timeline {
    padding-bottom: 16px;
  }
}

/* ============================================================
   Phase 46 · Activity-Feed Premium-Evolution
   ============================================================ */

/* Icon-Bubble 48px, extrem helle BG, größeres Icon */
.h-activity-row {
  grid-template-columns: 48px minmax(0, 1fr) !important;
  gap: 14px !important;
}
.h-activity-avatar {
  width: 48px !important;
  height: 48px !important;
  background: color-mix(in srgb, var(--act-color) 9%, transparent) !important;
  color: var(--act-color) !important;
}
.h-activity-avatar svg {
  width: 24px !important;
  height: 24px !important;
  stroke-width: 2 !important;
}

/* Status-Hierarchie via stärkere Tönung für Outcome-Events */
.h-activity-row[style*="#0B4650"] .h-activity-avatar { background: color-mix(in srgb, var(--act-color) 12%, transparent) !important; }
.h-activity-row[style*="#2E6E7A"] .h-activity-avatar { background: color-mix(in srgb, var(--act-color) 11%, transparent) !important; }
.h-activity-row[style*="#5E939E"] .h-activity-avatar { background: color-mix(in srgb, var(--act-color) 9%, transparent) !important; }
.h-activity-row[style*="#13191D"] .h-activity-avatar { background: color-mix(in srgb, var(--act-color) 9%, transparent) !important; }

/* Event-Titel stärker */
.h-activity-name {
  font-size: 14px !important;
  font-weight: 700 !important;
}
.h-activity-text {
  font-size: 12.5px !important;
  font-weight: 500 !important;
  color: var(--ink) !important;
}
.h-activity-pill {
  font-size: 11px !important;
  letter-spacing: 0.02em !important;
}

/* ============================================================
   Phase 50a · Berater-Admin
   ============================================================ */

.berater-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 24px 0 18px;
  padding: 0 4px;
}

.berater-add-btn {
  background: var(--ink, var(--ink));
  color: var(--bg, var(--bg));
  border: 0;
  padding: 12px 22px;
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}
.berater-add-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(19,25,29,0.25);
  background: #000;
}

.berater-count {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Berater-Karten: Profil statt technischer Datenmaske */
.cms-card.berater-card {
  background: var(--surface);
  border: 1px solid var(--hairline, var(--hairline));
  border-radius: 14px;
  box-shadow: var(--shadow-card, 0 4px 12px rgba(0,0,0,.04));
}
.cms-card.berater-card > summary {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) auto 36px;
  gap: 16px;
  align-items: center;
  min-height: 104px;
  padding: 17px 22px;
}
.cms-card.berater-card > summary::after {
  width: 34px;
  height: 34px;
  margin: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--hairline, var(--hairline));
  border-radius: 9px;
  font-size: 18px;
  line-height: 1;
}
.cms-card.berater-card.inaktiv > summary { opacity: .58; }
.cms-card.berater-card.inaktiv > summary .titel { text-decoration: line-through; }
.berater-card .cms-body {
  padding: 0;
  gap: 0;
  border-top: 1px solid var(--hairline, var(--hairline));
}

.berater-photo {
  width: 68px;
  height: 68px;
  overflow: hidden;
  border: 1px solid var(--hairline, var(--hairline));
  border-radius: 13px;
  background: var(--surface-2);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.berater-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
}
.berater-photo-placeholder,
.berater-photo-stage-placeholder {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  color: var(--text-secondary, var(--ink-muted));
}
.berater-photo-placeholder { font-size: 16px; }

.berater-summary-identity { min-width: 0; display: block; }
.berater-summary-main { display: flex; align-items: baseline; gap: 10px; min-width: 0; flex-wrap: wrap; }
.cms-card.berater-card > summary .titel {
  flex: 0 1 auto;
  font-size: 19px;
  font-weight: 750;
  letter-spacing: -.025em;
}
.berater-summary-role,
.berater-summary-email {
  color: var(--text-secondary, var(--ink-muted));
  font-size: 12.5px;
}
.berater-summary-email {
  display: block;
  margin-top: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* Phase 209: Die Anmeldeadresse, wenn sie von der Geschäftsadresse abweicht.
   Bewusst leiser als die Zeile darüber, sie ist eine Fußnote und keine
   zweite Kontaktangabe. */
.berater-summary-login {
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  color: var(--text-secondary, var(--ink-muted));
  opacity: .75;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.berater-summary-statuses { display: flex; align-items: center; gap: 8px; }
.berater-auth,
.berater-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-size: 11.5px;
  font-weight: 680;
  white-space: nowrap;
}
.berater-auth::before,
.berater-toggle::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: .7;
}
.berater-auth.ok,
.berater-toggle.on { background: rgba(11,70,80,.13); color: var(--ink-muted); }
.berater-auth.pending { background: rgba(200,170,34,.14); color: var(--accent-hover); }
.berater-toggle.off { background: rgba(157,34,53,.10); color: var(--err); }

.berater-section {
  margin: 0 26px;
  padding: 28px 0;
  border-bottom: 1px solid var(--hairline, var(--hairline));
}
.berater-section:last-of-type { border-bottom: 0; }
.berater-section-head { margin-bottom: 19px; }
.berater-section-head h3 {
  margin: 0;
  color: var(--ink, var(--ink));
  font-size: 16px;
  font-weight: 750;
  letter-spacing: -.015em;
}
.berater-section-head p {
  margin: 4px 0 0;
  color: var(--text-secondary, var(--ink-muted));
  font-size: 12.5px;
  line-height: 1.45;
}
.berater-profile-grid {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.berater-photo-card {
  padding: 14px;
  border: 1px solid var(--hairline, var(--hairline));
  border-radius: 12px;
  background: var(--surface-soft, var(--surface-soft));
}
.berater-photo-stage {
  height: 190px;
  overflow: hidden;
  border: 1px solid var(--hairline);
  border-radius: 9px;
  background: var(--surface-2);
  display: grid;
  place-items: end center;
}
.berater-photo-preview {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
}
.berater-photo-stage-placeholder { align-self: center; font-size: 26px; }
.berater-photo-actions { display: grid; gap: 6px; margin-top: 11px; }
.berater-photo-upload,
.berater-photo-remove {
  min-height: 39px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 680;
  text-align: center;
  cursor: pointer;
}
.berater-photo-upload {
  margin: 0 !important;
  display: grid !important;
  place-items: center;
  border: 1px solid var(--hairline, var(--hairline));
  background: var(--surface);
  color: var(--ink, var(--ink)) !important;
}
.berater-photo-remove {
  border: 0;
  background: transparent;
  color: var(--text-secondary, var(--ink-muted));
}
/* Bilder für die Präsentation (Phase 252): Vorschau, Hochladen und Entfernen
   in einer Zeile, damit die drei Felder nicht die Karte auseinanderziehen. */
.berater-bild-zeile {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.berater-bild-vorschau {
  width: 96px;
  height: 60px;
  border-radius: 8px;
  border: 1px solid var(--hairline, var(--hairline));
  object-fit: cover;
  background: var(--surface-2);
}
.berater-bild-vorschau[hidden] { display: none; }
.berater-bild-zeile .cms-upload-btn {
  margin: 0;
  min-height: 39px;
  padding: 8px 14px;
  display: grid;
  place-items: center;
  border: 1px solid var(--hairline, var(--hairline));
  border-radius: 8px;
  background: var(--surface);
  font-size: 12.5px;
  font-weight: 680;
  cursor: pointer;
}

.berater-photo-note {
  margin: 6px 0 0;
  color: var(--ink-soft, var(--ink-soft));
  font-size: 10.5px;
  line-height: 1.4;
  text-align: center;
}

.berater-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px 18px;
  align-content: start;
}
.berater-fields .wide { grid-column: 1 / -1; }
.berater-card .berater-fields label,
.berater-card .berater-tech-grid label,
.berater-card .berater-pw-field-label {
  display: block;
  margin: 0 0 7px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}
.berater-fields input,
.berater-fields select,
.berater-tech-grid input,
.berater-pw-row input {
  min-height: 47px;
  padding: 11px 14px;
  border-radius: 9px;
  background: var(--bg);
}
/* Phase 197 · Coach-Auswahl. Die Grundform kommt von den Textfeldern daneben,
   damit die Zeile nicht aus der Reihe fällt. */
.berater-fields select {
  width: 100%;
  border: 1px solid var(--hairline, var(--hairline));
  color: inherit;
  font: inherit;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-muted, var(--ink-muted)) 50%),
                    linear-gradient(135deg, var(--ink-muted, var(--ink-muted)) 50%, transparent 50%);
  background-position: calc(100% - 19px) calc(50% + 1px), calc(100% - 14px) calc(50% + 1px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 34px;
}
.berater-field-hint {
  display: block;
  margin-top: 6px;
  color: var(--ink-soft, var(--ink-soft));
  font-size: 10.5px;
  line-height: 1.4;
}

.berater-pw {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(220px, .72fr) minmax(0, 1.5fr);
  gap: 26px;
  align-items: start;
  padding: 20px;
  border: 1px solid var(--hairline, var(--hairline));
  border-radius: 12px;
  background: var(--surface-soft, var(--surface-soft));
}
.berater-pw-copy strong {
  display: block;
  margin: 9px 0 0;
  font-size: 15px;
  letter-spacing: -.01em;
}
.berater-login-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(0,0,0,.05);
  color: var(--text-secondary, var(--ink-muted));
  font-size: 11.5px;
  font-weight: 680;
}
.berater-login-status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: .7;
}
.berater-login-status.active { background: rgba(11,70,80,.13); color: var(--ink-muted); }
.berater-pw-intro {
  max-width: 340px;
  margin: 7px 0 0;
  color: var(--text-secondary, var(--ink-muted));
  font-size: 12.5px;
  line-height: 1.52;
}
.berater-pw-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px;
}
.berater-pw-row input { width: 100%; font-family: 'SF Mono', Menlo, Consolas, monospace; }
.berater-pw-generate,
.berater-pw-submit {
  min-height: 42px;
  padding: 9px 15px;
  border-radius: 9px;
  font-family: 'Inter', sans-serif;
  font-size: 12.5px;
  font-weight: 680;
  line-height: 1.3;
  cursor: pointer;
}
.berater-pw-generate {
  border: 1px solid var(--hairline, var(--hairline));
  background: var(--surface);
  color: var(--ink, var(--ink));
}
.berater-pw-submit-row { display: flex; justify-content: flex-end; margin-top: 9px; }
.berater-pw-submit {
  min-width: 210px;
  border: 1px solid var(--ink, var(--ink));
  background: var(--ink, var(--ink));
  color: #fff;
}
.berater-pw-submit:disabled { opacity: .6; cursor: wait; }
.berater-pw-note {
  margin-top: 9px;
  color: var(--text-secondary, var(--ink-muted));
  font-size: 11.5px;
  line-height: 1.45;
}
.berater-pw-result { margin-top: 12px; font-size: 13px; }

.berater-tech {
  margin-top: 16px;
  border: 1px solid var(--hairline, var(--hairline));
  border-radius: 10px;
  background: var(--surface);
}
.berater-tech summary {
  min-height: 0 !important;
  padding: 14px 16px !important;
  display: flex !important;
  color: var(--text-secondary, var(--ink-muted));
  font-size: 12.5px;
  font-weight: 680;
}
.berater-tech summary::after { margin-left: auto !important; border: 0 !important; width: auto !important; height: auto !important; }
.berater-card[open] .berater-tech:not([open]) > summary::after { content: '+'; }
.berater-card[open] .berater-tech[open] > summary::after { content: '−'; }
.berater-tech-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 0 16px 16px;
}
.berater-tech-value {
  min-height: 47px;
  padding: 14px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text-secondary, var(--ink-muted));
  font: 12px 'SF Mono', Menlo, Consolas, monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.berater-action-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 17px 26px;
  border-top: 1px solid var(--hairline, var(--hairline));
  background: var(--surface-2);
}
.berater-action-bar > span { color: var(--text-secondary, var(--ink-muted)); font-size: 11.5px; }
.berater-actions { display: flex; gap: 9px; align-items: center; }
.berater-actions .cms-save { border-radius: 9px; padding: 10px 17px; }

@media (max-width: 800px) {
  .cms-card.berater-card > summary { grid-template-columns: 58px minmax(0,1fr) 34px; gap: 11px; min-height: 88px; padding: 14px 15px; }
  .cms-card.berater-card > summary::after { grid-column: 3; grid-row: 1; }
  .berater-photo { width: 58px; height: 58px; }
  .berater-summary-statuses { grid-column: 2 / -1; justify-self: start; flex-wrap: wrap; }
  .berater-profile-grid,
  .berater-pw { grid-template-columns: 1fr; }
  .berater-photo-card { display: grid; grid-template-columns: 140px minmax(0,1fr); gap: 12px; align-items: center; }
  .berater-photo-stage { height: 145px; grid-row: 1 / span 2; }
  .berater-photo-actions { margin-top: 0; }
  .berater-photo-note { text-align: left; }
  .berater-section { margin: 0 17px; padding: 24px 0; }
}
@media (max-width: 560px) {
  .berater-summary-role { width: 100%; }
  .berater-fields,
  .berater-tech-grid { grid-template-columns: 1fr; }
  .berater-fields .wide { grid-column: auto; }
  .berater-photo-card { grid-template-columns: 118px minmax(0,1fr); }
  .berater-photo-stage { height: 128px; }
  .berater-pw { padding: 16px; }
  .berater-pw-row { grid-template-columns: minmax(0,1fr); }
  .berater-pw-row > * { min-width: 0; width: 100%; }
  .berater-pw-submit { width: 100%; min-width: 0; }
  .berater-action-bar { flex-direction: column; align-items: stretch; padding: 15px 17px; }
  .berater-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .berater-actions > * { width: 100%; }
}

.cms-toggle-aktiv {
  background: transparent;
  border: 1px solid var(--hairline, var(--hairline));
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color .18s ease, color .18s ease;
}
.cms-toggle-aktiv:hover {
  border-color: var(--ink, var(--ink));
  color: var(--ink, var(--ink));
}

/* ---------- Modal: Neuer Berater ---------- */
.berater-modal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 6vh 16px;
  overflow-y: auto;
  opacity: 0;
  transition: opacity .22s ease;
}
.berater-modal.open { opacity: 1; }
.berater-modal[hidden] { display: none; }

.berater-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10,10,11,0.42);
  backdrop-filter: blur(2px);
}

.berater-modal-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  background: var(--surface);
  border-radius: 16px;
  padding: 32px 28px 26px;
  box-shadow: 0 32px 80px -16px rgba(10,10,11,0.32);
  transform: translateY(8px) scale(0.985);
  transition: transform .26s cubic-bezier(0.22, 1, 0.36, 1);
}
.berater-modal.open .berater-modal-card {
  transform: translateY(0) scale(1);
}

.berater-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: transparent;
  border: 0;
  font-size: 24px;
  line-height: 1;
  color: var(--text-secondary);
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  transition: background .18s ease;
}
.berater-modal-close:hover { background: var(--hairline, rgba(0,0,0,0.06)); }

.berater-modal-title {
  font-family: 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--ink, var(--ink));
  margin: 0 0 22px;
}

.berater-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.berater-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.berater-form label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
}
.berater-form label > span { text-transform: uppercase; }
.berater-form input {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--ink, var(--ink));
  background: var(--bg, var(--bg));
  border: 1px solid var(--hairline, var(--hairline));
  border-radius: 8px;
  padding: 11px 14px;
  outline: 0;
  transition: border-color .18s ease;
  text-transform: none;
  letter-spacing: 0;
}
.berater-form input:focus { border-color: var(--ink, var(--ink)); }

.berater-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 6px;
}
.berater-form-cancel,
.berater-form-submit {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  border-radius: 10px;
  padding: 11px 22px;
  cursor: pointer;
  transition: background .18s ease, transform .18s ease;
}
.berater-form-cancel {
  background: transparent;
  border: 1px solid var(--hairline, var(--hairline));
  color: var(--text-secondary);
}
.berater-form-cancel:hover {
  border-color: var(--ink, var(--ink));
  color: var(--ink, var(--ink));
}
.berater-form-submit {
  background: var(--ink, var(--ink));
  border: 1px solid var(--ink, var(--ink));
  color: var(--bg, var(--bg));
}
.berater-form-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  background: #000;
}
.berater-form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.berater-form-err {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--err);
  min-height: 18px;
}

@media (max-width: 540px) {
  .berater-form-row { grid-template-columns: 1fr; }
}

/* ============================================================
   Phase 50a · Changelog-Page
   ============================================================ */

.changelog-content {
  max-width: 760px;
  margin: 32px 0 80px;
  padding: 32px 36px;
  background: var(--surface);
  border: 1px solid var(--hairline, var(--hairline));
  border-radius: 14px;
  box-shadow: var(--shadow-card, 0 4px 12px rgba(0,0,0,0.04));
}
.changelog-h1 {
  font-family: 'Inter', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--ink, var(--ink));
  margin: 0 0 4px;
  letter-spacing: -0.015em;
}
.changelog-h2 {
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink, var(--ink));
  margin: 36px 0 4px;
  letter-spacing: -0.01em;
}
.changelog-h2:first-child { margin-top: 0; }
.changelog-h3 {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-secondary, var(--ink-muted));
  margin: 24px 0 4px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.changelog-date {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent-gold, var(--accent));
  margin: 2px 0 14px;
  letter-spacing: 0.04em;
}
.changelog-p {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink, var(--ink));
  margin: 0 0 12px;
}
.changelog-list {
  margin: 6px 0 16px;
  padding-left: 22px;
}
.changelog-list li {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink, var(--ink));
  margin-bottom: 6px;
}
.changelog-list li code,
.changelog-content code {
  font-family: 'SF Mono', Menlo, monospace;
  font-size: 12.5px;
  background: var(--hairline, rgba(0,0,0,0.05));
  padding: 1.5px 6px;
  border-radius: 4px;
  color: var(--ink, var(--ink));
}
.changelog-hr {
  border: 0;
  height: 1px;
  background: var(--hairline, var(--hairline));
  margin: 32px 0;
}

/* ============================================================
   Phase 50d · Einladen-Button + Invite-Link-Modal
   ============================================================ */

.berater-invite-btn {
  background: var(--accent-gold, var(--accent));
  color: var(--ink, var(--ink));
  border: 0;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .18s ease, transform .18s ease;
  white-space: nowrap;
}
.berater-invite-btn:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-1px);
}
.berater-invite-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

.invite-modal-sub {
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-secondary, var(--ink-muted));
  margin: 0 0 18px;
}

.invite-link-row {
  display: flex;
  gap: 8px;
  margin: 0 0 18px;
}
.invite-link-input {
  flex: 1;
  font-family: 'SF Mono', Menlo, monospace;
  font-size: 12px;
  color: var(--ink, var(--ink));
  background: var(--bg, var(--bg));
  border: 1px solid var(--hairline, var(--hairline));
  border-radius: 8px;
  padding: 11px 14px;
  outline: 0;
  text-overflow: ellipsis;
}
.invite-link-copy {
  background: var(--ink, var(--ink));
  color: var(--bg, var(--bg));
  border: 0;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 11px 18px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: background .18s ease;
}
.invite-link-copy:hover { background: #000; }

.invite-share {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 14px;
}
.invite-wa,
.invite-mail {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background .18s ease, transform .18s ease;
}
.invite-wa {
  background: #25D366;
  color: #fff;
}
.invite-wa:hover {
  background: #1ebe5a;
  transform: translateY(-1px);
}
.invite-mail {
  background: transparent;
  border: 1px solid var(--hairline, var(--hairline));
  color: var(--ink, var(--ink));
}
.invite-mail:hover {
  border-color: var(--ink, var(--ink));
  background: var(--hairline, rgba(0,0,0,0.04));
}

.invite-modal-note {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: var(--text-secondary, var(--ink-muted));
  margin: 6px 0 0;
  text-align: center;
}

@media (max-width: 540px) {
  .berater-invite-btn {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

/* Re-Link-Variante: dezenter, weil schon Account vorhanden */
.berater-invite-btn.relink {
  background: transparent;
  color: var(--text-secondary, var(--ink-muted));
  border: 1px solid var(--hairline, var(--hairline));
}
.berater-invite-btn.relink:hover {
  background: var(--ink, var(--ink));
  color: var(--bg, var(--bg));
  border-color: var(--ink, var(--ink));
  transform: translateY(-1px);
}

/* ============================================================
   Phase 121 · Aktivitäts-Feed in der rechten Spalte lesbar machen
   ------------------------------------------------------------
   Problem: Der Feed stand in einer 300px-Spalte, von der nach Innen-
   abständen und Icon-Bubble nur ~170px für Text blieben. Weil die
   Zeile "Text + Status" auf flex-direction:column steht, die Kinder
   aber zentriert und auf nowrap standen, wurden sie so breit wie ihr
   Inhalt — breiter als die Karte. Ergebnis: Sätze und Status-Label
   liefen rechts aus der Karte heraus und wurden hart abgeschnitten
   (die Karte hat overflow:hidden), statt sauber umzubrechen.
   ============================================================ */

@media (min-width: 1100px) {
  /* Etwas mehr Grundbreite und weniger Luft zur Scrollleiste */
  .h-main-grid { grid-template-columns: minmax(0, 1fr) 340px; }
  .h-side-activity { padding-right: 14px !important; }

  /* Name darf umbrechen statt mitten im Wort zu enden — max. zwei Zeilen */
  .h-side-activity .h-activity-name {
    white-space: normal !important;
    overflow: hidden !important;
    text-overflow: clip !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 13.5px !important;
    line-height: 1.3;
  }

  /* Der Satz bricht um, statt abgeschnitten zu werden */
  .h-side-activity .h-activity-text {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    overflow-wrap: anywhere;
    line-height: 1.4;
  }

  /* Untere Zeile: linksbündig und auf Kartenbreite begrenzt.
     Ohne das zentriert der Browser die Kinder in einem Inhaltsbereich,
     der breiter als die Karte ist — dadurch rutscht das Status-Label
     nach rechts aus dem Bild. */
  .h-side-activity .h-activity-bottom {
    align-items: flex-start !important;
    width: 100%;
    min-width: 0;
    gap: 5px !important;
  }
  .h-side-activity .h-activity-text,
  .h-side-activity .h-activity-pill {
    max-width: 100%;
  }
  .h-side-activity .h-activity-pill {
    white-space: normal !important;
    text-align: left;
  }

  /* Datum bleibt oben rechts in der ersten Zeile stehen */
  .h-side-activity .h-activity-top { align-items: flex-start !important; }
  .h-side-activity .h-activity-time { padding-top: 1px; }
}

/* ============================================================
   Phase 126 · Themen-Editor entrümpelt
   ------------------------------------------------------------
   Die Labels standen in geschriebenen Großbuchstaben (verstößt gegen
   die Design-Regeln des Projekts) und trugen Fachbegriffe wie
   "Lucide-Name" oder "Hero-Body". Jetzt: normale Beschriftungen mit
   einem Hinweis darunter, gruppiert nach dem Ort der Wirkung.
   ============================================================ */

/* Labels wieder in Satzschrift statt Versalien */
.cms-body label {
  font-size: 13.5px !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: var(--ink, var(--ink)) !important;
  margin: 0 0 4px !important;
}
.cms-hint {
  display: block;
  font-size: 12px;
  color: var(--ink-soft, var(--ink-soft));
  margin-bottom: 6px;
  line-height: 1.4;
}

.cms-group {
  padding: 18px 0 6px;
  border-bottom: 1px solid var(--border-light);
}
.cms-group:last-of-type { border-bottom: 0; }
.cms-group-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent-hover, var(--accent-hover));
  margin-bottom: 2px;
}
.cms-group-sub {
  font-size: 12.5px;
  color: var(--ink-soft, var(--ink-soft));
  margin: 0 0 14px;
  line-height: 1.45;
}
.cms-field { margin-bottom: 14px; }
.cms-field:last-child { margin-bottom: 4px; }
.cms-field-schmal { max-width: 220px; }
.cms-body input:focus,
.cms-body textarea:focus {
  border-color: var(--accent, var(--accent));
  box-shadow: 0 0 0 3px var(--accent-soft, rgba(200,170,34,0.13));
}

/* Symbol-Auswahl statt Namen tippen */
.cms-symbols { display: flex; flex-wrap: wrap; gap: 8px; }
.cms-symbol {
  width: 42px; height: 42px;
  border-radius: 10px;
  border: 1px solid var(--border-light);
  background: var(--bg-secondary);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink-muted, var(--ink-muted));
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.cms-symbol:hover { border-color: var(--hairline-strong, var(--hairline-strong)); color: var(--ink, var(--ink)); }
.cms-symbol.active {
  border-color: var(--accent, var(--accent));
  background: var(--accent-soft, rgba(200,170,34,0.13));
  color: var(--accent-hover, var(--accent-hover));
}
.cms-symbol svg { width: 20px; height: 20px; }

/* Statuszeichen in der Kopfzeile */
.cms-pill {
  font-size: 11px; font-weight: 700;
  padding: 3px 10px; border-radius: 999px;
  background: var(--surface-2, var(--surface-2));
  color: var(--ink-muted, var(--ink-muted));
  white-space: nowrap;
}
.cms-pill.wip { background: var(--accent-bg); color: var(--accent-hover); }

/* "Noch in Arbeit" als Schalter statt Häkchen mit Klammersatz */
.cms-switch { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.cms-switch input { position: absolute; opacity: 0; pointer-events: none; }
.cms-switch-track {
  width: 42px; height: 24px; border-radius: 999px;
  background: var(--hairline-strong, var(--hairline-strong));
  position: relative; flex-shrink: 0;
  transition: background .18s ease;
}
.cms-switch-track::after {
  content: ''; position: absolute; top: 3px; left: 3px;
  width: 18px; height: 18px; border-radius: 50%; background: var(--surface);
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
  transition: transform .18s ease;
}
.cms-switch input:checked + .cms-switch-track { background: var(--accent, var(--accent)); }
.cms-switch input:checked + .cms-switch-track::after { transform: translateX(18px); }
.cms-switch-text strong { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink, var(--ink)); }
.cms-switch-text span { font-size: 12px; color: var(--ink-soft, var(--ink-soft)); line-height: 1.4; }

/* ============================================================
   Phase 141 · Teamübersicht
   ============================================================ */
.team-main { max-width: 1380px; padding-top: 38px; padding-bottom: 72px; }

.team-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}
.team-hero h1 {
  margin: 8px 0 0;
  font-size: clamp(29px, 3vw, 42px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.042em;
}
.team-hero p {
  max-width: 690px;
  margin: 11px 0 0;
  color: var(--ink-muted, var(--ink-muted));
  font-size: 14px;
  line-height: 1.58;
}
.team-range {
  display: flex;
  flex: 0 0 auto;
  gap: 5px;
  padding: 4px;
  border: 1px solid var(--hairline, var(--hairline));
  border-radius: 11px;
  background: var(--surface);
}
.team-range button {
  min-width: 66px;
  padding: 8px 11px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--ink-muted, var(--ink-muted));
  font-size: 11.5px;
  font-weight: 650;
  cursor: pointer;
}
.team-range button:hover { background: var(--surface-soft, var(--surface-soft)); color: var(--ink, var(--ink)); }
.team-range button.active { background: var(--ink, var(--ink)); color: #fff; }

.team-kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--hairline, var(--hairline));
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-card, 0 4px 12px rgba(0,0,0,.04));
}
.team-kpi { min-width: 0; min-height: 124px; padding: 21px 22px; }
.team-kpi + .team-kpi { border-left: 1px solid var(--hairline, var(--hairline)); }
.team-kpi-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.team-kpi-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  flex: 0 0 32px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--team-tone) 14%, white);
  color: var(--team-tone);
}
.team-kpi-icon svg { width: 16px; height: 16px; }
.team-kpi-note { overflow: hidden; color: var(--ink-soft, var(--ink-soft)); font-size: 10.5px; text-overflow: ellipsis; white-space: nowrap; }
.team-kpi-value {
  display: block;
  min-height: 37px;
  margin-top: 11px;
  font-size: 31px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.035em;
  font-variant-numeric: tabular-nums;
}
.team-kpi-label { display: block; margin-top: 5px; color: var(--ink-muted, var(--ink-muted)); font-size: 12.5px; }

.team-ranking {
  position: relative;
  margin-top: 14px;
  padding: 20px 22px 16px;
  overflow: hidden;
  border: 1px solid var(--hairline, var(--hairline));
  border-radius: 16px;
  background: linear-gradient(135deg, #FFF 0%, var(--bg) 62%, var(--surface-2) 100%);
  box-shadow: var(--shadow-card, 0 4px 12px rgba(0,0,0,.04));
}
.team-ranking::after { content: ''; position: absolute; z-index: 0; top: -126px; right: -92px; width: 280px; height: 280px; border-radius: 50%; background: rgba(200,170,34,.11); pointer-events: none; }
.team-ranking-head { position: relative; z-index: 1; display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.team-ranking-title { min-width: 0; display: flex; align-items: center; gap: 12px; }
.team-ranking-trophy { width: 40px; height: 40px; display: grid; place-items: center; flex: 0 0 40px; border: 1px solid rgba(200,170,34,.28); border-radius: 12px; background: var(--accent-bg, var(--surface-2)); color: var(--accent-hover, var(--accent-hover)); }
.team-ranking-title .h-label { margin-bottom: 3px; }
.team-ranking-title h2 { margin: 0; font-size: 17px; font-weight: 750; letter-spacing: -.02em; }
.team-ranking-title p { margin: 4px 0 0; color: var(--ink-muted, var(--ink-muted)); font-size: 10.5px; }
.team-ranking-metric { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
.team-ranking-metric button { padding: 7px 9px; border: 1px solid var(--hairline, var(--hairline)); border-radius: 8px; background: var(--surface); color: var(--ink-muted, var(--ink-muted)); font-size: 9.5px; font-weight: 700; cursor: pointer; }
.team-ranking-metric button:hover { border-color: var(--hairline-strong, var(--hairline-strong)); color: var(--ink, var(--ink)); }
.team-ranking-metric button.active { border-color: var(--ink, var(--ink)); background: var(--ink, var(--ink)); color: #FFF; }
.team-podium { position: relative; z-index: 1; max-width: 760px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 10px; margin: 11px auto 0; }
.team-podium.count-1 { max-width: 270px; grid-template-columns: 1fr; }
.team-podium.count-2 { max-width: 520px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.team-podium-place { min-width: 0; display: flex; flex-direction: column; padding: 0; border: 0; background: transparent; color: inherit; text-align: center; cursor: pointer; }
.team-podium-place.rank-2 { order: 1; }
.team-podium-place.rank-1 { order: 2; }
.team-podium-place.rank-3 { order: 3; }
.team-podium-person { min-width: 0; min-height: 82px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding: 5px 7px; }
.team-podium-avatar { width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: 6px; overflow: hidden; border: 1px solid var(--hairline); border-radius: 50%; background: var(--surface-2); color: var(--ink-muted); font-size: 10.5px; font-weight: 800; }
.team-podium-avatar img { width: 100%; height: 100%; object-fit: contain; object-position: center bottom; }
.team-podium-place.rank-1 .team-podium-avatar { width: 53px; height: 53px; border: 2px solid var(--accent); background: var(--surface-2); box-shadow: 0 0 0 4px rgba(200,170,34,.13), 0 9px 20px rgba(139,115,85,.11); }
.team-podium-person strong { max-width: 100%; overflow: hidden; font-size: 11.5px; text-overflow: ellipsis; white-space: nowrap; }
.team-podium-person small { max-width: 100%; overflow: hidden; margin-top: 3px; color: var(--ink-soft, var(--ink-soft)); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.team-podium-step { position: relative; min-height: 54px; display: flex; align-items: flex-end; justify-content: center; padding: 0 8px 10px; border: 1px solid var(--hairline); border-radius: 11px 11px 5px 5px; background: linear-gradient(180deg, #FFF, var(--surface-2)); box-shadow: 0 8px 18px rgba(32,29,24,.05); transition: transform .18s ease, box-shadow .18s ease; }
.team-podium-place.rank-1 .team-podium-step { min-height: 82px; border-color: var(--accent); background: linear-gradient(180deg, var(--surface-2), var(--accent)); }
.team-podium-place.rank-3 .team-podium-step { min-height: 44px; border-color: var(--accent); background: linear-gradient(180deg, var(--surface-2), var(--dna-gold-tint-2)); }
.team-podium-place:hover .team-podium-step { transform: translateY(-2px); box-shadow: var(--shadow-card-hover, 0 9px 24px rgba(19,25,29,.08)); }
.team-podium-step b { color: var(--ink-muted); font-size: 24px; line-height: 1; letter-spacing: -.05em; }
.team-podium-place.rank-1 .team-podium-step b { color: var(--accent-hover); font-size: 31px; }
.team-podium-place.rank-3 .team-podium-step b { color: var(--accent-hover); }
.team-podium-cup { position: absolute; top: 7px; left: 50%; display: grid; place-items: center; color: var(--accent-hover); transform: translateX(-50%); }
.team-ranking-note { position: relative; z-index: 1; margin: 10px 0 0; color: var(--ink-soft, var(--ink-soft)); font-size: 9.5px; text-align: center; }
.team-ranking-skeleton { grid-column: 1 / -1; height: 138px; border-radius: 12px; background: var(--surface-2); }

.team-cohort-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  color: var(--ink-soft, var(--ink-soft));
  font-size: 10.5px;
  line-height: 1.45;
}
.team-cohort-note > span:first-child { display: grid; place-items: center; flex: 0 0 18px; }

.team-grid { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 36px; margin-top: 34px; }
.team-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 15px; }
.team-section-head h2 { margin: 7px 0 0; font-size: 18px; font-weight: 750; letter-spacing: -.02em; }
.team-section-head p { margin: 5px 0 0; color: var(--ink-muted, var(--ink-muted)); font-size: 12px; line-height: 1.45; }
.team-section-head > span { color: var(--ink-soft, var(--ink-soft)); font-size: 10.5px; white-space: nowrap; }

.team-members { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.team-member {
  width: 100%;
  padding: 18px;
  border: 1px solid var(--hairline, var(--hairline));
  border-radius: 13px;
  background: var(--surface);
  box-shadow: var(--shadow-card, 0 4px 12px rgba(0,0,0,.04));
  color: var(--ink, var(--ink));
  text-align: left;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.team-member:hover { transform: translateY(-2px); box-shadow: var(--shadow-card-hover, 0 9px 24px rgba(19,25,29,.08)); }
.team-member.active { border-color: var(--accent, var(--accent)); box-shadow: 0 0 0 3px rgba(200,170,34,.13), var(--shadow-card, 0 4px 12px rgba(0,0,0,.04)); }
.team-member-head { display: flex; align-items: center; gap: 12px; }
.team-member-avatar,
.team-detail-avatar {
  overflow: hidden;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--hairline, var(--hairline));
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--ink-muted);
  font-weight: 750;
}
.team-member-avatar { width: 54px; height: 54px; }
.team-detail-avatar { width: 62px; height: 62px; }
.team-member-avatar img,
.team-detail-avatar img { width: 100%; height: 100%; object-fit: contain; object-position: center bottom; }
.team-member-identity { min-width: 0; }
.team-member-identity strong { display: block; overflow: hidden; font-size: 15px; font-weight: 750; letter-spacing: -.015em; text-overflow: ellipsis; white-space: nowrap; }
.team-member-identity span { display: block; overflow: hidden; margin-top: 4px; color: var(--ink-muted, var(--ink-muted)); font-size: 11.5px; text-overflow: ellipsis; white-space: nowrap; }
.team-member-status { width: 8px; height: 8px; margin-left: auto; align-self: flex-start; border-radius: 50%; background: var(--sage, var(--sage)); box-shadow: 0 0 0 4px rgba(11,70,80,.1); }
.team-member-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 17px; padding-top: 14px; border-top: 1px solid var(--hairline, var(--hairline)); }
.team-member-metrics > span { min-width: 0; padding: 0 7px; }
.team-member-metrics > span:first-child { padding-left: 0; }
.team-member-metrics > span + span { border-left: 1px solid var(--surface-2); }
.team-member-metrics b { display: block; overflow: hidden; font-size: 17px; font-weight: 750; letter-spacing: -.02em; text-overflow: ellipsis; }
.team-member-metrics small { display: block; overflow: hidden; margin-top: 3px; color: var(--ink-soft, var(--ink-soft)); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.team-member-more { display: flex; align-items: center; justify-content: flex-end; gap: 5px; margin-top: 12px; color: var(--accent-hover, var(--accent-hover)); font-size: 10.5px; font-weight: 700; }
.team-member-more svg { width: 14px; height: 14px; }

.team-activity { position: sticky; top: 92px; align-self: start; }
.team-activity-list { display: grid; gap: 8px; }
.team-activity-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  padding: 11px;
  border: 1px solid var(--hairline, var(--hairline));
  border-left: 3px solid var(--event-color);
  border-radius: 10px;
  background: var(--surface);
}
.team-activity-icon { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 50%; background: color-mix(in srgb, var(--event-color) 13%, white); color: var(--event-color); }
.team-activity-row > div > div { display: flex; justify-content: space-between; gap: 9px; }
.team-activity-row strong { overflow: hidden; font-size: 11.5px; text-overflow: ellipsis; white-space: nowrap; }
.team-activity-row time { color: var(--ink-soft, var(--ink-soft)); font-size: 9.5px; white-space: nowrap; }
.team-activity-row p { margin: 3px 0 0; color: var(--ink-muted, var(--ink-muted)); font-size: 10.5px; line-height: 1.35; }
.team-privacy { display: flex; align-items: flex-start; gap: 8px; margin-top: 10px; padding: 12px; border-radius: 10px; background: var(--surface-soft, var(--surface-soft)); color: var(--ink-muted, var(--ink-muted)); font-size: 10.5px; line-height: 1.45; }
.team-privacy > span:first-child { display: grid; flex: 0 0 18px; color: var(--sage, var(--sage)); }

.team-detail {
  margin-top: 28px;
  /* Beim Anspringen aus Liste oder Ranking bleibt oben etwas Luft, sonst
     klebt der Name am Bildschirmrand. */
  scroll-margin-top: 16px;
  padding: 24px;
  border: 1px solid var(--hairline, var(--hairline));
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-card, 0 4px 12px rgba(0,0,0,.04));
}
.team-detail-head { display: flex; align-items: center; gap: 14px; }
.team-detail-head h3 { margin: 6px 0 0; font-size: 20px; font-weight: 750; letter-spacing: -.025em; }
.team-detail-head p { margin: 4px 0 0; color: var(--ink-muted, var(--ink-muted)); font-size: 11.5px; }
.team-detail-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--hairline, var(--hairline)); }
.team-detail-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.team-detail-metrics > div { min-width: 0; padding: 13px; border-radius: 10px; background: var(--surface-soft, var(--surface-soft)); }
.team-detail-metrics b { display: block; overflow: hidden; font-size: 21px; font-weight: 780; letter-spacing: -.03em; text-overflow: ellipsis; }
.team-detail-metrics span { display: block; overflow: hidden; margin-top: 4px; color: var(--ink-muted, var(--ink-muted)); font-size: 9.5px; text-overflow: ellipsis; white-space: nowrap; }
.team-conversion { margin-top: 19px; }
.team-conversion > div:first-child { display: flex; justify-content: space-between; margin-bottom: 8px; color: var(--ink-muted, var(--ink-muted)); font-size: 10.5px; }
.team-conversion-track { height: 8px; overflow: hidden; border-radius: 999px; background: var(--surface-2); }
.team-conversion-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent, var(--accent)), var(--accent-hover, var(--accent-hover))); transition: width .35s ease; }
.team-personal-activity { display: grid; gap: 9px; }
.team-personal-event { display: flex; align-items: center; gap: 9px; padding-bottom: 9px; border-bottom: 1px solid var(--surface-2); color: var(--ink-muted, var(--ink-muted)); font-size: 10.5px; }
.team-personal-event:last-child { border-bottom: 0; }
.team-personal-event i { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: var(--event-color); }
.team-personal-event time { margin-left: auto; color: var(--ink-soft, var(--ink-soft)); white-space: nowrap; }

/* Phase 195 · Wer steht hinter den Zahlen: Promoter, Empfehlungen, Prämien
   und KIDZ-Anmeldungen des eigenen Astes, je ausgewählter Person. */
.team-detail-listen { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--hairline, var(--hairline)); }
.team-liste { min-width: 0; padding: 14px; border-radius: 10px; background: var(--surface-soft, var(--surface-soft)); }
.team-liste .h-label { margin-bottom: 6px; }
.team-liste-summe { display: block; margin-bottom: 10px; font-size: 24px; font-weight: 780; letter-spacing: -.03em; }
.team-liste ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.team-liste li { display: flex; gap: 7px; align-items: baseline; min-width: 0; }
.team-liste li b { flex: 0 0 auto; min-width: 1.4em; font-size: 11.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.team-liste li span { min-width: 0; color: var(--ink-muted, var(--ink-muted)); font-size: 10.5px; line-height: 1.45; }

/* Phase 199 · Umschalter "Meine" / "Mein Team" in Promoter- und
   Empfehlungsliste. Fremde Einträge sind sichtbar, aber nicht anklickbar:
   die Detailseite fände sie wegen der Leseregel nicht. */
.pr-scope, .ep-scope { flex: 0 0 auto; }
.promoter-card-fremd, .ep-row-fremd { cursor: default; opacity: .82; }
.promoter-card-fremd:hover, .ep-row-fremd:hover { transform: none; box-shadow: var(--shadow-card, 0 4px 12px rgba(0,0,0,.04)); }

.team-error { margin-bottom: 13px; padding: 14px 16px; border: 1px solid rgba(200,170,34,.22); border-radius: 10px; background: rgba(200,170,34,.07); color: var(--accent-hover); font-size: 12px; line-height: 1.5; }
.team-empty { padding: 18px; border: 1px solid var(--hairline, var(--hairline)); border-radius: 10px; background: var(--surface); color: var(--ink-muted, var(--ink-muted)); font-size: 12px; text-align: center; }
.team-empty.compact { padding: 12px; }
.team-member-skeleton,
.team-activity-skeleton { position: relative; overflow: hidden; border: 1px solid var(--hairline, var(--hairline)); border-radius: 12px; background: var(--surface-2); }
.team-member-skeleton { height: 174px; }
.team-activity-skeleton { height: 58px; }
.team-member-skeleton::after,
.team-activity-skeleton::after { content: ''; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.7), transparent); animation: team-shimmer 1.2s infinite; }
@keyframes team-shimmer { to { transform: translateX(100%); } }

/* Der Hub zeigt nur noch einen kompakten Einstieg in den neuen Teambereich. */
.h-team-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.h-team-head-row .h-section-sub { margin-bottom: 0; }
.h-team-link { display: inline-flex; align-items: center; gap: 5px; color: var(--accent-hover, var(--accent-hover)); font-size: 11.5px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.h-team-link:hover { color: var(--ink, var(--ink)); }

@media (max-width: 1120px) {
  .team-grid { grid-template-columns: 1fr; }
  .team-activity { position: static; }
  .team-activity-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .team-main { padding-top: 28px; }
  .team-hero { align-items: flex-start; flex-direction: column; }
  .team-kpi-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team-kpi:nth-child(3) { border-top: 1px solid var(--hairline, var(--hairline)); border-left: 0; }
  .team-kpi:nth-child(4) { border-top: 1px solid var(--hairline, var(--hairline)); }
  .team-ranking-head { align-items: flex-start; flex-direction: column; gap: 14px; }
  .team-ranking-metric { justify-content: flex-start; }
  .team-members { grid-template-columns: 1fr; }
  .team-detail-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .team-main { padding-inline: 16px; }
  .team-kpi { min-height: 112px; padding: 17px; }
  .team-kpi-value { font-size: 27px; }
  .team-kpi-note { max-width: 96px; }
  .team-ranking { padding: 16px 10px 13px; }
  .team-ranking-trophy { width: 34px; height: 34px; flex-basis: 34px; }
  .team-ranking-title p { display: none; }
  .team-ranking-metric { flex-wrap: nowrap; width: calc(100% + 10px); overflow-x: auto; padding-right: 10px; }
  .team-ranking-metric button { flex: 0 0 auto; }
  .team-podium { gap: 5px; }
  .team-podium-person { min-height: 70px; padding-inline: 2px; }
  .team-podium-avatar { width: 36px; height: 36px; }
  .team-podium-place.rank-1 .team-podium-avatar { width: 44px; height: 44px; }
  .team-podium-person strong { font-size: 9.5px; }
  .team-podium-person small { font-size: 7.8px; }
  .team-section-head { align-items: flex-start; flex-direction: column; gap: 7px; }
  .team-activity-list { grid-template-columns: 1fr; }
  .team-detail { padding: 18px; }
  .team-detail-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team-member-metrics > span { padding-inline: 5px; }
  .team-member-metrics small { font-size: 8.5px; }
  .h-team-head-row { align-items: flex-start; flex-direction: column; gap: 8px; }
}

/* ============================================================
   Phase 150 · HUB-Leichtigkeit
   Mehr Weiß, weniger Kartenlast und eindeutige Statusfarben.
   Fachlogik, Reihenfolge und Datenquellen bleiben unverändert.
   ============================================================ */

body[data-page="hub"] {
  --shadow-card: 0 1px 2px rgba(19,25,29,.025);
  --shadow-card-hover: 0 4px 14px rgba(19,25,29,.055);
  background: var(--bg);
}

body[data-page="hub"] .h-header {
  background: var(--surface);
  border-bottom-color: var(--surface-2);
}

body[data-page="hub"] .h-live {
  color: var(--sage-dark);
  font-weight: 650;
}

body[data-page="hub"] .h-live-dot {
  background: var(--sage-dark);
  box-shadow: 0 0 0 3px var(--dna-petrol-tint);
  animation: none;
}

body[data-page="hub"] .h-main-grid {
  background: var(--bg);
}

body[data-page="hub"] .h-greet {
  font-size: clamp(32px, 3.2vw, 44px) !important;
  font-weight: 700 !important;
  letter-spacing: -.04em !important;
}

body[data-page="hub"] .h-hero-lines {
  color: var(--ink-muted);
  font-size: 15px;
  line-height: 1.58;
}

body[data-page="hub"] .h-hero-lines strong {
  color: var(--ink);
  font-weight: 650;
}

body[data-page="hub"] .h-pill {
  padding: 7px 10px;
  border-color: var(--hairline);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink-muted);
  font-size: 11px;
}

body[data-page="hub"] .h-pill.live {
  border-color: var(--hairline-strong);
  background: var(--surface-2);
  color: var(--sage-dark);
  font-weight: 700;
}

body[data-page="hub"] .h-pill.live::before {
  background: var(--sage-dark);
  box-shadow: 0 0 0 2px var(--hairline);
}

body[data-page="hub"] .h-label {
  margin-left: 0;
  color: var(--accent-hover);
  font-size: 10px;
  letter-spacing: .14em;
}

body[data-page="hub"] .h-label::before {
  width: 3px;
  height: 11px;
  background: var(--accent);
}

body[data-page="hub"] .h-section-sub {
  color: var(--ink-soft);
  font-size: 13px;
}

body[data-page="hub"] .h-network-overview .h-kpis {
  gap: 10px;
}

body[data-page="hub"] .h-network-overview .h-kpi {
  position: relative;
  min-height: 136px;
  padding: 16px !important;
  border-color: var(--surface-2) !important;
  border-radius: 11px !important;
  background: var(--surface) !important;
  box-shadow: none !important;
}

body[data-page="hub"] .h-network-overview .h-kpi:hover {
  transform: translateY(-1px);
  border-color: var(--hairline) !important;
  box-shadow: var(--shadow-card-hover) !important;
}

body[data-page="hub"] .h-network-overview .h-kpi-icon {
  width: 29px !important;
  height: 29px !important;
  border-radius: 9px !important;
  background: color-mix(in srgb, var(--kpi-color) 9%, white) !important;
}

body[data-page="hub"] .h-network-overview .h-kpi-icon svg {
  width: 15px;
  height: 15px;
  stroke-width: 1.7;
}

body[data-page="hub"] .h-network-overview .h-kpi-body {
  margin-top: 16px;
}

body[data-page="hub"] .h-network-overview .h-kpi-value {
  color: var(--ink);
  font-size: 32px !important;
  font-weight: 700 !important;
  letter-spacing: -.04em !important;
}

body[data-page="hub"] .h-network-overview .h-kpi-label {
  margin-top: 7px !important;
  color: var(--ink-muted) !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
}

body[data-page="hub"] .h-network-overview .h-kpi-sub {
  position: absolute;
  top: 18px;
  right: 15px;
  margin: 0;
}

body[data-page="hub"] .h-network-overview .h-kpi-sub-pill {
  padding: 0;
  border-radius: 0;
  background: transparent !important;
  color: var(--ink-muted);
  font-size: 9.5px;
  font-weight: 650;
}

body[data-page="hub"] .h-network-overview .h-kpi-sub-pill.up {
  color: var(--ink-muted);
}

body[data-page="hub"] .h-network-overview .h-kpi-sub-pill.down {
  color: var(--accent-hover);
}

body[data-page="hub"] .h-network-overview .h-kpi-sub:has(.neutral) {
  position: static;
  margin-top: 5px;
}

body[data-page="hub"] .h-team-momentum {
  padding-top: 2px;
}

body[data-page="hub"] .h-activity-row {
  grid-template-columns: 32px minmax(0, 1fr) !important;
  gap: 10px !important;
  padding: 14px 2px !important;
  overflow: visible;
  border: 0 !important;
  border-bottom: 1px solid var(--surface-2) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body[data-page="hub"] .h-activity-row::before {
  content: '';
  position: absolute;
  top: 16px;
  left: -18px;
  width: 2px;
  height: 20px;
  border-radius: 2px;
  background: var(--act-color, var(--accent));
  opacity: .65;
}

body[data-page="hub"] .h-activity-row:hover {
  transform: none !important;
  background: rgba(255,255,255,.72) !important;
  box-shadow: none !important;
}

body[data-page="hub"] .h-activity-avatar {
  width: 30px !important;
  height: 30px !important;
  border-radius: 9px !important;
  background: color-mix(in srgb, var(--act-color) 8%, white) !important;
}

body[data-page="hub"] .h-activity-avatar svg {
  width: 15px !important;
  height: 15px !important;
  stroke-width: 1.7 !important;
}

body[data-page="hub"] .h-activity-name {
  font-size: 12px !important;
  font-weight: 650 !important;
}

body[data-page="hub"] .h-activity-time {
  color: var(--hairline-strong) !important;
  font-size: 9px !important;
}

body[data-page="hub"] .h-activity-text {
  color: var(--ink-muted) !important;
  font-size: 10.5px !important;
  font-weight: 500 !important;
}

body[data-page="hub"] .h-activity-pill {
  color: color-mix(in srgb, var(--act-color) 74%, #555) !important;
  font-size: 9px !important;
  font-weight: 650 !important;
}

body[data-page="hub"] .h-badge-new {
  padding: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--sage-dark) !important;
  font-size: 8px !important;
  font-weight: 800 !important;
  letter-spacing: .08em !important;
}

body[data-page="hub"] .h-activity-unread {
  color: var(--sage) !important;
  opacity: .52;
}

@media (min-width: 1100px) {
  body[data-page="hub"] .h-main-grid {
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 38px;
    max-width: 1380px;
  }

  body[data-page="hub"] .h-col-side {
    margin-top: -24px;
    margin-bottom: -24px;
    padding: 31px 18px 28px;
    border-left: 1px solid var(--surface-2);
    background: var(--bg);
  }

  body[data-page="hub"] .h-side-activity {
    top: 92px;
    padding: 0 !important;
  }

  body[data-page="hub"] .h-side-activity .h-timeline {
    gap: 0;
    padding-bottom: 0;
  }

  body[data-page="hub"] .h-side-activity .h-activity-row::before {
    left: -18px;
  }
}

@media (max-width: 1099px) {
  body[data-page="hub"] .h-col-side {
    padding: 22px 18px;
    border-top: 1px solid var(--surface-2);
    background: var(--bg);
  }

  body[data-page="hub"] .h-activity-row::before {
    left: -18px;
  }
}

@media (max-width: 560px) {
  body[data-page="hub"] .h-greet {
    font-size: 31px !important;
  }

  body[data-page="hub"] .h-network-overview .h-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  body[data-page="hub"] .h-network-overview .h-kpi {
    min-height: 128px;
    padding: 14px !important;
  }

  body[data-page="hub"] .h-network-overview .h-kpi-sub {
    position: static;
    margin-top: 5px;
  }

  body[data-page="hub"] .h-network-overview .h-kpi-value {
    font-size: 28px !important;
  }
}

/* ============================================================
   Phase 165 · Portal mobile-first (bis 600px)
   ------------------------------------------------------------
   Kais Rückmeldung vom iPhone: die Übersicht wirkte gequetscht.
   Kern war die "Warten auf dich"-Karte — Avatar, Text, WhatsApp
   und Aktionsknopf teilten sich EINE Zeile, der Name brach
   senkrecht um. Auf kleinen Schirmen stapelt die Karte jetzt:
   oben Avatar + Text in voller Breite, darunter die zwei
   Aktionen. Desktop und Tablet bleiben unverändert.
   ============================================================ */
@media (max-width: 600px) {
  /* Die Karte ist ein Grid mit vier Spalten (Avatar · Text · WhatsApp ·
     Knopf). Auf dem Handy wird daraus ein Grid mit zwei Zeilen: oben
     Avatar + Text in voller Breite, darunter WhatsApp + Aktionsknopf. */
  .h-lead {
    grid-template-columns: 40px minmax(0, 1fr);
    align-items: start;
    row-gap: 12px;
  }
  .h-lead-wa { grid-column: 1; width: 42px; height: 42px; }
  .h-lead-cta {
    grid-column: 2;
    justify-self: stretch;
    padding: 11px 16px;
    text-align: center;
  }

  /* Team-Kennzahlenkarten: die kleine Einordnung neben dem Symbol
     wurde abgeschnitten ("aus diesen Empf…"). Sie darf umbrechen. */
  .team-kpi-note {
    max-width: 128px;
    white-space: normal;
    text-align: right;
    line-height: 1.35;
  }
}
