/* Leadsupporter Network Tool — © 2026 Andreas Riez. Alle Rechte vorbehalten.
   Urheberrechtlich geschützt. Vervielfältigung, Nachbau, Reverse Engineering
   oder Weitergabe ohne ausdrückliche schriftliche Genehmigung ist untersagt. */
:root {
  /* Farbsystem — futuristisches KI-Leitstand-HUD: tiefes Weltraum-Navy als
     Basis, leuchtendes Cyan als KI-Signalfarbe, warmes Gold als Gegenpol für
     "menschliche" Erfolge (Kunden/Partner) — die Dualität kühl/warm spiegelt
     genau das Zusammenspiel wider, um das es in diesem Tool geht. */
  --primary: #3EE8DE;
  --primary-dark: #1FA69E;
  --primary-tint: rgba(62, 232, 222, 0.12);
  --ink: #EAF2F7;
  --bg: #070B12;
  --surface: #101825;
  --surface-sunken: #0B121C;
  --border: #1E2B3D;
  --text: #D7E1EA;
  --text-muted: #7E8FA6;

  --gold: #E8A94A;
  --gold-bg: rgba(232, 169, 74, 0.14);
  --gold-fg: #F0BC70;

  --grau-bg: rgba(126, 143, 166, 0.14); --grau-fg: #A7B4C6;
  --gruen-bg: rgba(74, 222, 148, 0.14); --gruen-fg: #4ADE94;
  --gelb-bg: rgba(240, 188, 112, 0.14); --gelb-fg: #F0BC70;
  --blau-bg: rgba(93, 157, 255, 0.14);  --blau-fg: #7FB0FF;
  --rot-bg: rgba(255, 92, 114, 0.14);   --rot-fg: #FF7A8E;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.55);

  --radius: 14px;
  --radius-lg: 20px;

  --font-display: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Space Grotesk', monospace;

  /* Nutzer-einstellbare Helligkeit, Standard leicht heller als reines Dunkel. */
  --ui-brightness: 1.12;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  background:
    radial-gradient(circle at 12% -10%, rgba(62, 232, 222, 0.08), transparent 45%),
    radial-gradient(circle at 92% 5%, rgba(232, 169, 74, 0.06), transparent 42%),
    var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  filter: brightness(var(--ui-brightness, 1.12));
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--surface-sunken); }
::-webkit-scrollbar-thumb { background: #42566E; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.01em; }

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

html, body { height: 100%; overflow: hidden; }
.app { height: 100vh; display: flex; flex-direction: column; overflow: hidden; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(62,232,222,0.06) inset, 0 4px 20px rgba(0,0,0,0.35);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand-dot {
  width: 13px; height: 13px; border-radius: 50%;
  background: conic-gradient(from 210deg, #C7FFFA, var(--primary), #0F5A55, var(--primary), #C7FFFA);
  box-shadow: 0 0 8px rgba(62,232,222,0.65), inset 0 0 0 1px rgba(255,255,255,0.2);
}
.brand h1 { font-size: 18px; margin: 0; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; }

.btn {
  position: relative;
  border: none;
  border-radius: 10px;
  padding: 10px 18px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  overflow: hidden;
  transition: background .15s ease, transform .05s ease, box-shadow .15s ease, border-color .15s ease;
}
.btn-primary {
  background: linear-gradient(180deg, #8FF6EE 0%, var(--primary) 55%, var(--primary-dark) 100%);
  color: #04141A;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), inset 0 -2px 3px rgba(0,0,0,0.15), 0 0 16px rgba(62,232,222,0.3);
}
.btn-primary:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), inset 0 -2px 3px rgba(0,0,0,0.2), 0 0 22px rgba(62,232,222,0.45); }
.btn:active { transform: scale(0.98); }
.btn-ghost {
  background: var(--surface-sunken);
  border: 1px solid var(--border);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}
.btn-ghost:hover { background: var(--primary-tint); border-color: var(--primary); }

.content {
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px 28px 76px;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: #42566E #0B121C;
}

/* Standalone-Panels oben (90-Tage, Team, Content) dürfen NICHT zusammengequetscht
   werden: feste natürliche Höhe, die Seite scrollt stattdessen. */
.content > .panel { flex: 0 0 auto; }

/* ---------- App-Layout: Seitenleiste + Inhalt ---------- */
.app-body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: stretch;
}

.sidebar {
  flex: 0 0 236px;
  width: 236px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 14px 10px 20px;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 18px;
  scrollbar-width: thin;
  scrollbar-color: #42566E #0B121C;
}
/* Kategorien sind <details>-Elemente: einzeln auf-/zuklappbar per Klick auf
   den Titel, ohne zusätzliches JS. "Start" ist per [open]-Attribut im HTML
   voreingeklappt offen, alle anderen starten zu — hält die Seitenleiste
   auf den ersten Blick übersichtlich. */
.sidebar-group { display: flex; flex-direction: column; gap: 3px; }
.sidebar-group-label {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 6px 12px;
  cursor: pointer;
  user-select: none;
  border-radius: 8px;
  list-style: none; /* Standard-Dreieck (Chrome/Safari) entfernen */
}
.sidebar-group-label::-webkit-details-marker { display: none; }
.sidebar-group-label::after {
  content: '▾'; font-size: 11px; color: var(--text-muted);
  transition: transform 0.15s ease;
}
.sidebar-group[open] > .sidebar-group-label::after { transform: rotate(180deg); }
.sidebar-group-label:hover { background: var(--surface-sunken); color: var(--text); }
.sidebar-group:not([open]) { gap: 0; }

/* Startseite: standardmäßig ist nur die Morgen-Routine sichtbar, alles
   andere (KI-Upline, Abend-Routine, Co-Pilot, KPIs, Kontaktübersicht)
   steckt hier drin und wird erst auf Klick sichtbar. Für alle anderen
   Ansichten (Kontakte/Zahlen/Kunden/90-Tage-Plan/Team/Posts) öffnet
   switchView() dasselbe Element zwangsweise (siehe app.js). */
.dashboard-more { margin-top: 4px; }
.dashboard-more-label {
  display: flex; align-items: center; gap: 8px; justify-content: center;
  cursor: pointer; user-select: none; list-style: none;
  padding: 12px; border-radius: 12px; border: 1px dashed var(--border);
  color: var(--text-muted); font-size: 13px; font-weight: 600;
  transition: background .12s ease, color .12s ease;
}
.dashboard-more-label::-webkit-details-marker { display: none; }
.dashboard-more-label::after { content: '▾'; transition: transform 0.15s ease; }
.dashboard-more[open] > .dashboard-more-label::after { transform: rotate(180deg); }
.dashboard-more-label:hover { background: var(--surface-sunken); color: var(--ink); }
.dashboard-more[open] > .dashboard-more-label { margin-bottom: 16px; }
/* Auf anderen Ansichten (Kontakte/Zahlen/...) wird das Element per JS
   zwangsgeöffnet — die Zusammenfassungszeile ergibt dort keinen Sinn mehr. */
body[data-view]:not([data-view="dashboard"]) .dashboard-more-label { display: none; }
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  border-radius: 9px;
  padding: 9px 12px;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: background .12s ease, color .12s ease;
}
.sidebar-link:hover { background: var(--surface-sunken); color: var(--ink); }
.sidebar-link.active { background: var(--primary-tint); color: var(--primary); font-weight: 600; }

/* ---------- Morgen-Banner: das Herzstück, jeden Tag der erste Blick ---------- */
.morning-banner {
  flex: 0 0 auto;
  background:
    radial-gradient(circle at 100% 0%, rgba(62, 232, 222, 0.16), transparent 55%),
    radial-gradient(circle at 0% 100%, rgba(232, 169, 74, 0.08), transparent 50%),
    linear-gradient(135deg, #0F1B2A 0%, #060A12 100%);
  border-radius: var(--radius-lg);
  padding: 26px 30px;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(62, 232, 222, 0.2);
}
.morning-top { display: flex; flex-direction: column; gap: 10px; }
.morning-header-row { display: flex; align-items: center; gap: 16px; }

.profile-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  background: radial-gradient(circle at 35% 30%, #B8FFF9, var(--primary) 65%, #0C3A38 100%);
  color: #04141A;
  box-shadow:
    0 0 0 3px rgba(255,255,255,0.12),
    0 0 0 5px rgba(0,0,0,0.4),
    0 0 20px rgba(62,232,222,0.4),
    inset 0 2px 3px rgba(255,255,255,0.35);
}

.morning-top h2 { margin: 0 0 3px; font-size: 22px; font-weight: 700; }
.morning-name { font-size: 12.5px; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; opacity: 0.7; margin: 0 0 5px; }
.morning-name:empty { display: none; }
.morning-streak-tip { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.morning-streak {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(232, 169, 74, 0.16); border: 1px solid rgba(232, 169, 74, 0.4);
  color: var(--gold-fg); border-radius: 999px; padding: 3px 10px;
  font-size: 12.5px; font-weight: 700; white-space: nowrap;
}
.morning-streak-off { background: rgba(126, 143, 166, 0.14); border-color: var(--border); color: var(--text-muted); }
.morning-record {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(93, 157, 255, 0.14); border: 1px solid rgba(93, 157, 255, 0.35);
  color: var(--blau-fg); border-radius: 999px; padding: 3px 10px;
  font-size: 12.5px; font-weight: 700; white-space: nowrap;
}
.morning-tip { font-size: 13px; line-height: 1.4; opacity: 0.92; }
.morning-datetime {
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  opacity: 0.95;
  background: rgba(0,0,0,0.18);
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.2);
}
.morning-summary { margin: 0; font-size: 14px; opacity: 0.92; line-height: 1.5; }
.morning-quote {
  margin: 0;
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 500;
  font-style: normal;
  line-height: 1.5;
  opacity: 0.9;
  border-left: 3px solid rgba(255,255,255,0.55);
  padding-left: 12px;
}
.morning-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.morning-angst {
  background: rgba(232, 169, 74, 0.08);
  border: 1px solid rgba(232, 169, 74, 0.22);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.morning-angst-label {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.85;
  margin-bottom: 4px;
}
.morning-angst-title { font-size: 13px; font-weight: 700; line-height: 1.35; }
.morning-angst-affirmation { font-size: 12px; opacity: 0.9; font-style: italic; margin: 4px 0 8px; line-height: 1.4; }
.morning-angst-btn {
  border: 1px solid rgba(255,255,255,0.28);
  background: rgba(255,255,255,0.08);
  color: inherit;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  padding: 5px 12px;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.morning-angst-btn:hover { background: rgba(255,255,255,0.16); border-color: rgba(255,255,255,0.45); }
.morning-focus {
  background: rgba(62,232,222,0.06);
  border: 1px solid rgba(62,232,222,0.15);
  border-radius: var(--radius);
  padding: 14px 16px;
  max-height: 260px;
  overflow-y: auto;
  backdrop-filter: blur(6px);
}
.morning-focus h3 {
  margin: 0 0 10px; font-size: 12px; font-family: var(--font-body); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em; opacity: 0.85;
}
.focus-list { list-style: none; margin: 0; padding: 0; }
.focus-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  font-size: 13.5px;
}
.focus-item:last-child { border-bottom: none; }
.focus-name { font-weight: 600; }
.focus-reason {
  font-size: 11px;
  font-weight: 600;
  background: rgba(255,255,255,0.2);
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}
.focus-item-right { display: flex; align-items: center; gap: 8px; }
.focus-msg-toggle {
  font-size: 11px; font-weight: 700; color: var(--primary); cursor: pointer;
  border: none; background: none; padding: 0; white-space: nowrap;
}
.focus-msg {
  flex-basis: 100%; margin-top: 4px; padding: 9px 11px;
  background: rgba(0,0,0,0.25); border: 1px solid rgba(255,255,255,0.12); border-radius: 8px;
}
.focus-msg-text { margin: 0; white-space: pre-wrap; font-family: var(--font-body); font-size: 12.5px; line-height: 1.45; color: var(--text); }
.focus-msg-copy {
  margin-top: 6px; font-size: 11px; font-weight: 700; color: var(--primary);
  cursor: pointer; border: none; background: none; padding: 0;
}
.focus-replied-btn {
  font-size: 11px; font-weight: 700; color: var(--gruen-fg); cursor: pointer;
  border: 1px solid rgba(74,222,148,.4); background: rgba(74,222,148,.12);
  border-radius: 999px; padding: 3px 8px; white-space: nowrap;
}
.focus-replied-btn:hover { background: rgba(74,222,148,.22); }
.focus-noreply-btn {
  font-size: 11px; font-weight: 700; color: var(--text-muted); cursor: pointer;
  border: 1px solid var(--border); background: rgba(126,143,166,.1);
  border-radius: 999px; padding: 3px 8px; white-space: nowrap;
}
.focus-noreply-btn:hover { color: var(--rot-fg); border-color: rgba(255,92,114,.45); background: var(--rot-bg); }
.focus-noreply-options {
  flex-basis: 100%; margin-top: 6px; padding: 8px 10px;
  background: rgba(0,0,0,0.2); border: 1px solid rgba(255,255,255,0.12); border-radius: 8px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
}
.focus-noreply-label { font-size: 11px; color: var(--text-muted); font-weight: 600; }
.focus-noreply-option {
  font-size: 11px; font-weight: 700; color: var(--text); cursor: pointer;
  border: 1px solid var(--border); background: var(--surface);
  border-radius: 999px; padding: 3px 9px; white-space: nowrap;
}
.focus-noreply-option:hover { border-color: var(--rot-fg); color: var(--rot-fg); }

/* ---------- So startest du (einfache 3-Schritte-Anleitung) ---------- */
.start-strip {
  flex: 0 0 auto;
  background: linear-gradient(135deg, rgba(62,232,222,0.07), rgba(232,169,74,0.05)), var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
}
.start-strip-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.start-strip-title { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--ink); }
.start-strip-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.start-step { display: flex; gap: 10px; align-items: flex-start; }
.start-step-num {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 14px;
  color: #04141A; background: var(--primary);
}
.start-step b { font-size: 13px; color: var(--ink); }
.start-step-sub { font-size: 12px; color: var(--text-muted); margin-top: 2px; line-height: 1.4; }
@media (max-width: 700px) { .start-strip-steps { grid-template-columns: 1fr; } }

/* ---------- Hilfe: alles in einfachen Worten ---------- */
.help-section { margin-bottom: 18px; }
.help-section:last-child { margin-bottom: 0; }
.help-section-title {
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--text-muted); margin-bottom: 8px;
}
.help-list { display: flex; flex-direction: column; gap: 8px; }
.help-item {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--surface-sunken); border: 1px solid var(--border);
  border-radius: 10px; padding: 10px 12px;
}
.help-item-icon { font-size: 20px; line-height: 1.3; flex-shrink: 0; }
.help-item-name { font-size: 13px; font-weight: 700; color: var(--ink); }
.help-item-text { font-size: 12.5px; color: var(--text-muted); margin-top: 2px; line-height: 1.45; }

/* ---------- KPI-Instrumententafel (Cockpit-Gauges) ---------- */
.kpis {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  padding: 14px 20px;
  background: linear-gradient(180deg, #0B111B 0%, #05070C 100%);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(62,232,222,0.05);
}

.kpi-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: transform .15s ease;
}
.kpi-card:hover { transform: translateY(-2px); }
.kpi-card-clickable { cursor: pointer; }

/* Signature-Element: leuchtender HUD-Ring statt Messing-Zeiger — dünner
   Glow-Bogen auf dunklem Glas, Ziffern im Mono-Font wie ein echtes Readout. */
.kpi-gauge {
  position: relative;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  padding: 6px;
  background: conic-gradient(var(--primary) calc(var(--pct, 0) * 1%), rgba(255,255,255,0.06) 0);
  box-shadow: 0 0 14px rgba(62,232,222,0.3), inset 0 0 0 1px rgba(255,255,255,0.04);
  transition: background 0.4s ease;
}
.kpi-gauge::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  z-index: -1;
  box-shadow: 0 0 0 1px rgba(62,232,222,0.15), 0 0 18px rgba(62,232,222,0.12);
}
.kpi-gauge-face {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #17222F, #0A1119 75%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.6), inset 0 -1px 0 rgba(255,255,255,0.03);
}
.kpi-value { font-family: var(--font-mono); font-size: 17px; font-weight: 700; color: var(--primary); text-shadow: 0 0 10px rgba(62,232,222,0.5); }
.kpi-label {
  color: rgba(234,242,247,0.55);
  font-size: 10.5px;
  font-weight: 600;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  max-width: 90px;
  line-height: 1.2;
}

.usage-headline { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.usage-rate { font-family: var(--font-mono); font-size: 28px; font-weight: 700; color: var(--primary); text-shadow: 0 0 14px rgba(62,232,222,0.4); }
.usage-rate-label { color: var(--text-muted); font-size: 13px; }
.usage-bar-track { height: 14px; background: var(--surface-sunken); border: 1px solid var(--border); border-radius: 999px; overflow: hidden; margin-bottom: 6px; }
.usage-bar-fill { height: 100%; background: linear-gradient(90deg, var(--primary), var(--gold)); transition: width .4s ease; }
.usage-bar-fill.warning { background: linear-gradient(90deg, var(--gelb-fg), var(--rot-fg)); }
.usage-bar-note { font-size: 12px; color: var(--text-muted); margin-bottom: 18px; }
.usage-warning-banner {
  background: var(--rot-bg); color: var(--rot-fg); border-radius: 10px;
  padding: 10px 14px; font-size: 13px; font-weight: 600; margin-bottom: 16px;
}
.usage-topup-title { font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.usage-pkg-name {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  background: rgba(62,232,222,0.08);
  border: 1px solid rgba(62,232,222,0.25);
  border-radius: 8px;
  padding: 8px 12px;
}
.usage-pkg-name b { color: var(--ink); }
.usage-topup-row { display: flex; gap: 8px; margin-bottom: 18px; }
.usage-topup-row button {
  flex: 1; border: 1px solid var(--border); border-radius: 10px; padding: 12px 8px;
  background: var(--surface-sunken); color: #fff; font-weight: 700; font-size: 14px; cursor: pointer;
  transition: background .12s ease, border-color .12s ease, color .12s ease;
}
.usage-topup-row button:hover { background: var(--primary-tint); border-color: var(--primary); }
.usage-events { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.usage-events li { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--text-muted); }

/* ---------- Cockpit-Grid: die drei Arbeitsspalten unten ----------
   Jedes Panel scrollt bei Bedarf intern; die Seite selbst scrollt vertikal,
   damit kein Panel gequetscht oder abgeschnitten wird. */
.cockpit-grid {
  flex: 1 1 auto;
  min-height: 560px;
  display: grid;
  grid-template-columns: 1.9fr 1fr 1fr;
  gap: 14px;
}

.col-stack { display: flex; flex-direction: column; gap: 14px; min-height: 0; }
.col-stack .panel { flex: 1 1 0; min-height: 0; }

.cockpit-grid .panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.cockpit-grid .panel > *:not(.panel-header) {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}

/* ---------- Untere 3er-Reihe: 90-Tage / Team / Content nebeneinander ---------- */
.bottom-row {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  align-items: start;
}
.bottom-row .panel { min-width: 0; margin-bottom: 0; }

/* ---------- Fokus-Ansicht: jede Funktion als eigene Seite ----------
   Auf allen Voll-Ansichten ist ausschließlich die angeklickte Funktion
   sichtbar — alle übrigen Tool-Funktionen (KI-Upline, Abend-Routine,
   Co-Pilot-Panel, Co-Pilot-Leiste, Tool-Assistent, Coach) werden ausgeblendet.
   Nur die Startseite zeigt den vollen Überblick. */

/* Überblick-Sektionen erscheinen nur auf der Startseite. */
body[data-view]:not([data-view="dashboard"]) #morningBanner,
body[data-view]:not([data-view="dashboard"]) #startStrip,
body[data-view]:not([data-view="dashboard"]) #kpis,
body[data-view]:not([data-view="dashboard"]) #uplinePanel,
body[data-view]:not([data-view="dashboard"]) #eveningPanel,
body[data-view]:not([data-view="dashboard"]) #copilotPanel,
body[data-view]:not([data-view="dashboard"]) #copilotBar,
body[data-view]:not([data-view="dashboard"]) #coachWidget {
  display: none !important;
}

/* Kompakte persönliche Kopfzeile: nur außerhalb der Startseite sichtbar.
   Sie klebt beim Scrollen oben fest, damit Name + Uhrzeit immer sichtbar sind. */
#viewHeader { display: none; }
body[data-view]:not([data-view="dashboard"]) #viewHeader {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  margin-bottom: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: sticky;
  top: 0;
  z-index: 15;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, padding .2s ease, gap .2s ease, margin-bottom .2s ease;
}
body[data-view]:not([data-view="dashboard"]) #viewHeader:hover {
  border-color: var(--primary);
  background: var(--primary-tint);
}
.view-header-home { margin-left: auto; font-size: 15px; opacity: 0.55; transition: opacity .15s ease; }
#viewHeader:hover .view-header-home { opacity: 1; }
.view-header-avatar { width: 38px; height: 38px; font-size: 18px; transition: width .2s ease, height .2s ease, font-size .2s ease; }
.view-header-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.view-header-title { font-weight: 700; font-size: 16px; color: var(--ink); line-height: 1.2; transition: font-size .2s ease; }
.view-header-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; transition: gap .2s ease; }
.view-header-name { font-size: 12.5px; color: var(--text-muted); font-weight: 600; transition: font-size .2s ease; }
.view-header-datetime { font-size: 12.5px; color: var(--text-muted); font-weight: 600; letter-spacing: 0.02em; transition: font-size .2s ease; }

/* Schlanke Variante beim Scrollen (nach ~100 px): weniger Platz, gleiche Info. */
body[data-view]:not([data-view="dashboard"]) #viewHeader.compact {
  padding: 5px 14px;
  margin-bottom: 8px;
  gap: 9px;
  border-radius: 10px;
}
#viewHeader.compact .view-header-avatar { width: 28px; height: 28px; font-size: 13px; }
#viewHeader.compact .view-header-title { font-size: 14px; }
#viewHeader.compact .view-header-meta { gap: 5px; }
#viewHeader.compact .view-header-name { font-size: 11.5px; }
#viewHeader.compact .view-header-datetime { font-size: 11px; }
#viewHeader.compact .view-header-home { font-size: 13px; }
.view-header-name:empty { display: none; }
.view-header-name:not(:empty) + .view-header-datetime::before { content: '·'; margin-right: 8px; color: var(--text-muted); }

/* Kontakte: volle Breite, Rest ausgeblendet. */
body[data-view="contacts"] .cockpit-grid { grid-template-columns: 1fr; }
body[data-view="contacts"] #colStackOne,
body[data-view="contacts"] #colStackTwo,
body[data-view="contacts"] .bottom-row { display: none; }

/* Meine Zahlen: nur die Analyse. */
body[data-view="insights"] .cockpit-grid { grid-template-columns: 1fr; }
body[data-view="insights"] .col-contacts,
body[data-view="insights"] #colStackOne,
body[data-view="insights"] #customersPanel,
body[data-view="insights"] .bottom-row { display: none; }

/* Kunden & Partner: nur die Übersicht. */
body[data-view="customers"] .cockpit-grid { grid-template-columns: 1fr; }
body[data-view="customers"] .col-contacts,
body[data-view="customers"] #colStackOne,
body[data-view="customers"] #insightsPanel,
body[data-view="customers"] .bottom-row { display: none; }

/* 90-Tage-Plan: untere Reihe auf eine Spalte. */
body[data-view="breakthrough"] .cockpit-grid { display: none; }
body[data-view="breakthrough"] .bottom-row { grid-template-columns: 1fr; }
body[data-view="breakthrough"] #teamPanel,
body[data-view="breakthrough"] #contentPanel { display: none; }

/* Team: nur das Team-Panel. */
body[data-view="team"] .cockpit-grid { display: none; }
body[data-view="team"] .bottom-row { grid-template-columns: 1fr; }
body[data-view="team"] #breakthroughPanel,
body[data-view="team"] #contentPanel { display: none; }

/* Posts erstellen: nur die Content-Engine. */
body[data-view="content"] .cockpit-grid { display: none; }
body[data-view="content"] .bottom-row { grid-template-columns: 1fr; }
body[data-view="content"] #breakthroughPanel,
body[data-view="content"] #teamPanel { display: none; }

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.panel-header {
  flex: 0 0 auto;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.panel-header h2 { margin: 0; font-size: 14.5px; font-weight: 700; color: var(--ink); }

.toggle-row { display: flex; gap: 14px; }
.toggle {
  display: flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 500; color: var(--text-muted);
  cursor: pointer; user-select: none;
}
.toggle input[type="checkbox"] {
  appearance: none; -webkit-appearance: none;
  width: 34px; height: 19px; border-radius: 999px;
  background: var(--surface-sunken);
  border: 1px solid var(--border);
  position: relative; cursor: pointer;
  transition: background .15s ease;
  flex-shrink: 0;
}
.toggle input[type="checkbox"]::before {
  content: '';
  position: absolute; top: 1px; left: 1px;
  width: 15px; height: 15px; border-radius: 50%;
  background: linear-gradient(180deg, #E8EDF4, #B8C4D2);
  box-shadow: 0 1px 2px rgba(0,0,0,0.4);
  transition: transform .15s ease;
}
.toggle input[type="checkbox"]:checked { background: var(--gold); border-color: var(--gold); }
.toggle input[type="checkbox"]:checked::before { transform: translateX(15px); }
.dashboard-settings-toggle {
  display: flex; justify-content: space-between; padding: 10px 4px;
  border-bottom: 1px solid var(--border); font-size: 14px; color: var(--text);
}
.dashboard-settings-toggle:last-child { border-bottom: none; }
.toggle-group-title {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--text-muted); padding: 12px 22px 6px;
}

.filter-row { display: flex; gap: 8px; }
.filter-row input, .filter-row select {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  font-family: var(--font-body);
  font-size: 13px;
  background: var(--surface-sunken);
  color: var(--text);
}
.filter-row input::placeholder { color: var(--text-muted); }
.filter-row input:focus, .filter-row select:focus { background: var(--surface); }

.contact-list, .task-list, .customer-list, .feedback-list { list-style: none; margin: 0; padding: 0; }

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  border-bottom: 1px solid var(--border);
  transition: background .12s ease;
  cursor: pointer;
}
.contact-item:hover { background: var(--surface-sunken); }
.contact-item:last-child { border-bottom: none; }
.contact-list-more { padding: 10px 18px; text-align: center; }
.contact-list-more .btn { width: 100%; }
.contact-actions-wrap { position: relative; }
.contact-actions-menu { z-index: 60; }

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #1B5E59);
  color: #04141A;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.2), 0 0 10px rgba(62,232,222,0.25);
}

/* Automatische Stufen: Bronze = Neu, Silber = warmer Kontakt, Gold = Kunde/Team-Partner
   — als leuchtende Medaillons statt Metall-Prägung, passend zum HUD-Look. */
.avatar-tier-bronze {
  background: radial-gradient(circle at 32% 28%, #F5C494, #C97A3D 60%, #5A3010 100%);
  color: #2A1608;
  box-shadow: 0 0 12px rgba(224,141,74,0.4), inset 0 1px 1px rgba(255,255,255,0.25);
}
.avatar-tier-silver {
  background: radial-gradient(circle at 32% 28%, #F5F8FA, #A6B2BF 60%, #4A5563 100%);
  color: #1A222C;
  box-shadow: 0 0 12px rgba(190,205,220,0.35), inset 0 1px 1px rgba(255,255,255,0.3);
}
.avatar-tier-gold, .avatar-gold {
  background: radial-gradient(circle at 32% 28%, #FCE7B0, var(--gold) 60%, #7A5416 100%);
  color: #2C1D06;
  box-shadow: 0 0 14px rgba(232,169,74,0.5), inset 0 1px 1px rgba(255,255,255,0.3);
}

.contact-info { flex: 1; min-width: 0; }
.contact-name { font-weight: 600; font-size: 14px; color: var(--ink); }
.contact-sub { color: var(--text-muted); font-size: 12.5px; margin-top: 2px; }
.contact-time { color: var(--text-muted); font-size: 12px; margin-top: 4px; }

.status-pill {
  border: none;
  border-radius: 999px;
  padding: 6px 13px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-body);
  white-space: nowrap;
  transition: filter .12s ease;
}
.status-pill:hover { filter: brightness(0.96); }
.status-grau  { background: var(--grau-bg);  color: var(--grau-fg); }
.status-gruen { background: var(--gruen-bg); color: var(--gruen-fg); }
.status-gelb  { background: var(--gelb-bg);  color: var(--gelb-fg); }
.status-blau  { background: var(--blau-bg);  color: var(--blau-fg); }

.action-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-sunken);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03), inset 0 -1px 1px rgba(0,0,0,0.3);
  cursor: pointer;
  font-size: 15px;
  flex-shrink: 0;
  transition: background .12s ease, border-color .12s ease, transform .08s ease;
}
.action-btn:hover { background: var(--primary-tint); border-color: var(--primary); }
.action-btn:active { transform: translateY(1px); box-shadow: inset 0 1px 2px rgba(0,0,0,0.4); }

.task-item {
  padding: 9px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.task-item:last-child { border-bottom: none; }
.task-item.overdue { background: var(--rot-bg); }

.task-checkbox { margin-top: 3px; cursor: pointer; accent-color: var(--primary); }
.task-title { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.task-meta { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.task-item.overdue .task-meta { color: var(--rot-fg); font-weight: 600; }
.task-body { flex: 1; min-width: 0; }
.task-msg-toggle {
  margin-top: 6px; font-size: 12px; color: var(--primary); font-weight: 700;
  cursor: pointer; border: none; background: none; padding: 0;
}
.task-msg {
  margin-top: 8px; padding: 10px 12px;
  background: var(--surface-sunken); border: 1px solid var(--border); border-radius: 8px;
}
.task-msg-text { margin: 0; white-space: pre-wrap; font-family: var(--font-body); font-size: 13px; line-height: 1.5; color: var(--text); }
.task-msg-copy {
  margin-top: 8px; font-size: 12px; color: var(--primary); font-weight: 700;
  cursor: pointer; border: none; background: none; padding: 0;
}

.empty-state { padding: 26px 20px; color: var(--text-muted); font-size: 13px; text-align: center; }

/* Steuerzentrale: Besucher-Analytics */
.steuer-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.steuer-table th, .steuer-table td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--border); }
.steuer-table th { color: var(--text-muted); font-weight: 600; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.04em; }
.steuer-table td { color: var(--text); }
.steuer-table tbody tr:hover { background: rgba(62,232,222,0.04); }
.ta-right { text-align: right !important; }

/* Empfehlungs-Programm */
.referral-link-row { display: flex; gap: 8px; margin-top: 4px; }
.referral-link-row input { flex: 1; min-width: 0; }
.steuer-kpi-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin-bottom: 14px; }
.steuer-kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; }
.steuer-kpi b { display: block; font-size: 20px; color: var(--primary); }
.steuer-kpi span { font-size: 11.5px; color: var(--text-muted); }

/* ---------- Erfolgsanalyse ---------- */
.insights-body { padding: 14px 18px; display: flex; flex-direction: column; gap: 12px; }
.insights-headline { display: flex; align-items: baseline; gap: 12px; }
.insights-rate { font-family: var(--font-mono); font-size: 32px; font-weight: 700; color: var(--primary); text-shadow: 0 0 14px rgba(62,232,222,0.4); }
.insights-rate-label { color: var(--text-muted); font-size: 13px; }

.insights-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.insights-stat-card { background: var(--surface-sunken); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; }
.insights-stat-title { font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); margin-bottom: 6px; font-weight: 700; }
.insights-stat-row { display: flex; justify-content: space-between; font-size: 13px; padding: 3px 0; }
.insights-stat-row .rate { font-weight: 700; color: var(--primary); }

.insights-recommendations { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.insights-recommendations li {
  background: var(--blau-bg); color: var(--blau-fg);
  border-radius: 10px; padding: 11px 14px; font-size: 13px; line-height: 1.45; font-weight: 500;
}

.insights-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.badge-pill {
  background: var(--gold-bg); color: var(--gold-fg);
  border-radius: 999px; padding: 6px 12px; font-size: 12px; font-weight: 700;
}

.sequence-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.sequence-step { display: flex; gap: 10px; align-items: flex-start; }
.sequence-step-icon { font-size: 15px; flex-shrink: 0; margin-top: 1px; }
.sequence-step-title { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.sequence-step-title small { font-weight: 500; color: var(--text-muted); }
.sequence-step-message { font-size: 12.5px; color: var(--text-muted); margin-top: 2px; line-height: 1.4; }
.sequence-step.done .sequence-step-title { color: var(--text-muted); text-decoration: line-through; }

.sequence-picker { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.sequence-picker-item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--surface-sunken); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px;
}
.sequence-picker-name { font-weight: 700; font-size: 13.5px; color: var(--ink); }
.sequence-picker-name small { font-weight: 500; color: var(--text-muted); }
.sequence-picker-steps { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

.sequence-stats-row { display: flex; justify-content: space-between; font-size: 12.5px; padding: 4px 0; }
.sequence-stats-row .rate { font-weight: 700; color: var(--primary); }

.funnel { display: flex; flex-direction: column; gap: 8px; }
.funnel-row { display: grid; grid-template-columns: 130px 1fr 70px; align-items: center; gap: 10px; }
.funnel-label { font-size: 12px; color: var(--text-muted); font-weight: 600; }
.funnel-track { height: 10px; background: var(--surface-sunken); border-radius: 999px; overflow: hidden; border: 1px solid var(--border); }
.funnel-fill { height: 100%; background: linear-gradient(90deg, var(--primary), var(--gold)); transition: width .4s ease; }
.funnel-count { font-size: 12px; font-weight: 700; color: var(--ink); text-align: right; }
.funnel-count small { font-weight: 500; color: var(--text-muted); }

.trend-chart { display: flex; align-items: flex-end; gap: 6px; height: 70px; }
.trend-bar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.trend-bar-fill { width: 100%; max-width: 18px; background: linear-gradient(180deg, var(--gold), var(--gold-fg)); border-radius: 4px 4px 0 0; }
.trend-bar-label { font-size: 9.5px; color: var(--text-muted); margin-top: 3px; }
.best-week { margin-top: 8px; font-size: 12px; font-weight: 600; color: var(--gold-fg); }

.feedback-item {
  padding: 13px 22px;
  border-bottom: 1px solid var(--border);
}
.feedback-item:last-child { border-bottom: none; }
.feedback-name { font-weight: 600; font-size: 13.5px; color: var(--ink); }
.feedback-meta { font-size: 12px; color: var(--text-muted); margin: 2px 0 10px; }
.feedback-actions { display: flex; gap: 8px; }
.feedback-actions button {
  flex: 1; border: 1px solid var(--border); border-radius: 8px; padding: 7px 8px;
  font-size: 12px; font-weight: 600; cursor: pointer; background: var(--surface);
  transition: background .12s ease, border-color .12s ease, color .12s ease;
}
.feedback-actions button.yes:hover { background: var(--gruen-bg); border-color: var(--gruen-fg); color: var(--gruen-fg); }
.feedback-actions button.no:hover { background: var(--surface-sunken); }

/* ---------- Modal ---------- */
.modal-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(2, 4, 8, 0.7);
  backdrop-filter: blur(3px);
  align-items: center;
  justify-content: center;
  z-index: 100;
}
.modal-overlay.open { display: flex; }

.modal {
  background: var(--surface);
  border-radius: var(--radius-lg);
  width: 440px;
  max-width: 92vw;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
}
.modal-header h3 { margin: 0; font-size: 17px; font-weight: 700; color: var(--ink); flex: 1; }
.modal-close {
  border: none; background: none; font-size: 20px; cursor: pointer; color: var(--text-muted);
  width: 32px; height: 32px; border-radius: 8px; transition: background .12s ease;
}
.modal-close:hover { background: var(--surface-sunken); }
.modal-back-btn {
  display: flex; align-items: center; gap: 4px; flex-shrink: 0;
  border: none; background: none; cursor: pointer; color: var(--text-muted);
  font-family: var(--font-body); font-size: 13px; font-weight: 600;
  padding: 6px 10px 6px 6px; border-radius: 8px; margin-right: 8px;
  transition: background .12s ease, color .12s ease;
}
.modal-back-btn:hover { background: var(--surface-sunken); color: var(--ink); }
.modal-body { padding: 22px; display: flex; flex-direction: column; gap: 14px; }

.modal-wide { width: 620px; }

.detail-personal {
  font-size: 13.5px; color: var(--primary); font-weight: 600;
  background: var(--surface-sunken); border: 1px solid var(--border);
  border-radius: 10px; padding: 10px 14px;
}
.detail-top { display: flex; align-items: center; gap: 16px; }
.detail-avatar {
  width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0;
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 20px;
}
.detail-meta { color: var(--text-muted); font-size: 13px; margin-top: 3px; }

.detail-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
  background: var(--surface-sunken); border: 1px solid var(--border);
  border-radius: 10px; padding: 14px 16px;
}
.detail-field-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.03em; color: var(--text-muted); font-weight: 700; }
.detail-field-value { font-size: 13.5px; color: var(--text); margin-top: 2px; }
.detail-link { display: inline-block; margin-top: 6px; font-size: 12.5px; color: var(--primary); text-decoration: none; font-weight: 600; }
.detail-link:hover { text-decoration: underline; }

.detail-section-title { font-size: 13px; font-weight: 700; color: var(--ink); margin: 4px 0 -4px; }

.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.timeline li {
  border-left: 2px solid var(--border); padding-left: 12px; font-size: 13px; position: relative;
}
.timeline li::before {
  content: ''; position: absolute; left: -5px; top: 4px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--primary);
}
.timeline-desc { color: var(--text); }
.timeline-time { color: var(--text-muted); font-size: 11.5px; margin-top: 1px; }

.detail-tasks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.detail-tasks li {
  display: flex; justify-content: space-between; gap: 8px;
  background: var(--surface-sunken); border: 1px solid var(--border);
  border-radius: 8px; padding: 8px 12px; font-size: 13px;
}
.detail-tasks .done { text-decoration: line-through; color: var(--text-muted); }

.followup-round {
  background: var(--surface-sunken); border: 1px solid var(--border);
  border-radius: 10px; padding: 14px 16px;
}
.followup-round-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.followup-round-badge {
  background: var(--primary-tint); color: var(--primary);
  font-size: 12.5px; font-weight: 700; border-radius: 999px; padding: 4px 12px;
}
.followup-round-note { font-size: 12px; color: var(--text-muted); }
.followup-round-msg {
  font-size: 13.5px; line-height: 1.55; color: var(--text);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; padding: 10px 12px; white-space: pre-wrap;
}

.icebreaker-item {
  background: var(--surface-sunken);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 13.5px;
  line-height: 1.55;
  position: relative;
}
.icebreaker-copy {
  margin-top: 10px;
  font-size: 12px;
  color: var(--primary);
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
  font-weight: 700;
}
.icebreaker-text {
  margin: 0; white-space: pre-wrap; font-family: var(--font-body); font-size: 13.5px; line-height: 1.55;
}

.channel-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.channel-tab {
  flex: 1 1 auto; min-width: 90px; border: 1px solid var(--border); background: var(--surface-sunken);
  border-radius: 8px; padding: 8px 6px; font-size: 12.5px; font-weight: 600;
  color: var(--text-muted); cursor: pointer; transition: all .12s ease;
}
.channel-tab.active { background: var(--primary); border-color: var(--primary); color: #04141A; }

.icebreaker-followup {
  margin-top: 14px; padding: 14px 16px;
  background: var(--gold-bg); border: 1px solid rgba(232,169,74,.35); border-radius: 10px;
}

/* ---------- Freisprech-Assistent ---------- */
/* Trigger-Button lebt in der Kopfzeile (.topbar-actions), Panel hängt wie
   der Tool-Assistent oben rechts darunter — bewusst NICHT mehr als
   schwebender FAB, der hatte Seitenleiste/Copilot-Leiste überdeckt. */
.voice-assistant-mic-btn { position: relative; }
.voice-assistant-mic-btn.listening::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%; z-index: -1;
  background: inherit; opacity: 0.55;
  animation: voice-assistant-pulse 1.4s ease-out infinite;
  will-change: transform, opacity;
}
/* transform+opacity statt box-shadow: läuft auf dem Compositor-Thread,
   ruckelt nicht (box-shadow-Animationen erzwingen Repaints pro Frame). */
@keyframes voice-assistant-pulse {
  0% { transform: scale(1); opacity: 0.55; }
  100% { transform: scale(1.5); opacity: 0; }
}
.voice-assistant-panel {
  display: none;
  position: fixed; top: 64px; right: 18px; bottom: auto; left: auto;
  width: 320px; max-width: calc(100vw - 32px);
  z-index: 215; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden;
}
.voice-assistant-panel.open { display: block; }
@media (max-width: 520px) {
  .voice-assistant-panel { left: 12px; right: 12px; width: auto; top: 62px; }
}
.voice-assistant-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; background: var(--surface-sunken); border-bottom: 1px solid var(--border);
}
.voice-assistant-title { font-size: 13px; font-weight: 700; color: var(--ink); }
.voice-assistant-close { border: none; background: none; color: var(--text-muted); font-size: 18px; cursor: pointer; line-height: 1; }
.voice-assistant-body { padding: 14px; font-size: 13px; max-height: min(60vh, 380px); overflow-y: auto; }
.voice-assistant-status { text-align: center; color: var(--text-muted); font-size: 12.5px; margin-bottom: 10px; }
.voice-assistant-mic-btn {
  display: block; margin: 0 auto 12px; width: 64px; height: 64px; border-radius: 50%;
  border: none; background: var(--primary); color: #04141A; font-size: 26px; cursor: pointer;
}
.voice-assistant-mic-btn.listening { background: var(--rot-fg); }
.voice-assistant-dots span { display: inline-block; animation: voice-assistant-dot 1.2s ease-in-out infinite; opacity: 0.2; }
.voice-assistant-dots span:nth-child(2) { animation-delay: .2s; }
.voice-assistant-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes voice-assistant-dot { 0%, 80%, 100% { opacity: 0.2; } 40% { opacity: 1; } }
.voice-assistant-log { display: flex; flex-direction: column; gap: 8px; }
.voice-assistant-bubble { border-radius: 10px; padding: 8px 12px; font-size: 12.5px; line-height: 1.45; }
.voice-assistant-bubble.user { background: var(--surface-sunken); color: var(--text); align-self: flex-end; text-align: right; }
.voice-assistant-bubble.assistant { background: var(--primary-tint); color: var(--ink); align-self: flex-start; }

.notice-box {
  margin-bottom: 14px; padding: 12px 16px;
  background: var(--gold-bg); border: 1px solid rgba(232,169,74,.35); border-radius: 10px;
  font-size: 13px; line-height: 1.5; color: var(--text);
}
.notice-box strong { color: var(--gold-fg); }
.notice-box ul { margin: 6px 0 0; padding-left: 18px; }
.notice-box li { margin-bottom: 3px; }
.icebreaker-followup-title { font-size: 14px; font-weight: 700; color: var(--gold-fg); margin-bottom: 4px; }
.icebreaker-followup-text { font-size: 13px; color: var(--text); margin-bottom: 12px; line-height: 1.45; }
.icebreaker-followup-options { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.icebreaker-followup-custom { display: flex; gap: 8px; align-items: center; }
.icebreaker-followup-custom input {
  flex: 1; border: 1px solid var(--border); border-radius: 8px; padding: 9px 11px;
  font-family: var(--font-body); font-size: 13px; background: var(--surface-sunken); color: var(--text);
}
.icebreaker-followup-done { margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--gruen-fg); }

/* Antwort-Coach */
.reply-coach-hint { font-size: 12.5px; color: var(--text-muted); line-height: 1.5; margin-bottom: 14px; }
.reply-coach-label { display: block; font-size: 12px; font-weight: 700; color: var(--text-muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .03em; }
.reply-coach-select,
.reply-coach-input {
  width: 100%; box-sizing: border-box; border: 1px solid var(--border); border-radius: 8px;
  padding: 10px 12px; font-family: var(--font-body); font-size: 13.5px;
  background: var(--surface-sunken); color: var(--text); margin-bottom: 14px;
}
.reply-coach-input { resize: vertical; min-height: 90px; line-height: 1.5; }
.reply-coach-actions { display: flex; justify-content: flex-end; margin-bottom: 14px; }
.reply-coach-objections { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 12px; }
.reply-coach-objection {
  background: var(--rot-bg); color: var(--rot-fg); border-radius: 999px;
  padding: 4px 11px; font-size: 12px; font-weight: 700;
}
.reply-coach-objection.neutral { background: var(--gruen-bg); color: var(--gruen-fg); }
.reply-coach-nextstep {
  margin-top: 10px; font-size: 12.5px; color: var(--blau-fg); background: var(--blau-bg);
  border-radius: 8px; padding: 9px 12px; line-height: 1.5;
}
.reply-coach-manual { margin-top: 10px; font-size: 11.5px; color: var(--text-muted); }
.reply-coach-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: -4px 0 14px; }
.reply-coach-chips-label { flex-basis: 100%; font-size: 11.5px; font-weight: 700; color: var(--text-muted); margin-bottom: 2px; }
.reply-coach-chip {
  border: 1px solid var(--border); background: var(--surface-sunken); color: var(--text);
  border-radius: 999px; padding: 5px 11px; font-size: 12px; cursor: pointer;
  font-family: var(--font-body); transition: border-color .15s, background .15s;
}
.reply-coach-chip:hover { border-color: var(--accent, #4f7cff); background: var(--blau-bg); }
.reply-coach-termin { margin-top: 12px; border: 1px dashed var(--border); border-radius: 10px; padding: 12px; }
.reply-coach-termin-title { font-size: 12.5px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.reply-coach-termin-hint { font-size: 11.5px; color: var(--text-muted); line-height: 1.5; margin-bottom: 10px; }
.reply-coach-termin-controls button:disabled { opacity: .5; cursor: not-allowed; }
.reply-coach-termin #replyCoachTerminDoneBtn { margin-top: 12px; width: 100%; }
.reply-coach-termin-confirmed { margin-top: 10px; font-size: 12.5px; font-weight: 700; color: var(--gruen-fg); background: var(--gruen-bg); border-radius: 8px; padding: 9px 12px; }
.reply-coach-termin-controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.reply-coach-termin-controls input[type="date"],
.reply-coach-termin-controls select {
  border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px;
  font-family: var(--font-body); font-size: 13px; background: var(--surface-sunken); color: var(--text);
}
.reply-coach-calltype { margin-bottom: 10px; }
.reply-coach-calltype-label { display: block; font-size: 11.5px; font-weight: 700; color: var(--text-muted); margin-bottom: 6px; }
.calltype-toggle { display: flex; gap: 8px; flex-wrap: wrap; }
.calltype-option {
  flex: 1; min-width: 140px;
  border: 1px solid var(--border); background: var(--surface-sunken); color: var(--text);
  border-radius: 9px; padding: 9px 12px; font-size: 13px; font-weight: 700; cursor: pointer;
  font-family: var(--font-body); transition: border-color .15s, background .15s, color .15s;
}
.calltype-option:hover { border-color: var(--accent, #4f7cff); }
.calltype-option.active {
  border-color: var(--accent, #4f7cff); background: var(--blau-bg); color: var(--blau-fg);
}

.next-action-headline { font-family: var(--font-display); font-size: 19px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.next-action-deadline {
  display: inline-block; background: var(--gold-bg); color: var(--gold-fg);
  border-radius: 999px; padding: 4px 12px; font-size: 12px; font-weight: 700; margin-bottom: 12px;
}
.next-action-reasoning { color: var(--text-muted); font-size: 13px; line-height: 1.5; margin-bottom: 14px; }

#newLeadForm label, #meetingForm label, #profileAnalysisForm label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 12px;
}
#newLeadForm input, #newLeadForm select, #newLeadForm textarea, #meetingForm input,
#profileAnalysisForm input, #profileAnalysisForm select, #profileAnalysisForm textarea {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 11px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text);
  background: var(--surface-sunken);
  resize: vertical;
  width: 100%;
  box-sizing: border-box;
}
#newLeadForm input:focus, #newLeadForm select:focus, #newLeadForm textarea:focus, #meetingForm input:focus,
#profileAnalysisForm input:focus, #profileAnalysisForm select:focus, #profileAnalysisForm textarea:focus {
  background: var(--surface);
  border-color: var(--primary);
}
.lead-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.lead-wizard-hint {
  font-size: 13px; color: var(--text); line-height: 1.45;
  background: var(--primary-tint); border: 1px solid rgba(62,232,222,.25);
  border-radius: 8px; padding: 10px 12px; margin-bottom: 14px;
}
.lead-big-label { font-size: 15px; font-weight: 600; color: var(--ink); }
#newLeadForm .lead-big-label input { font-size: 16px; padding: 12px 13px; }
.lead-optional { font-weight: 400; font-size: 12px; color: var(--text-muted); }
.lead-more-toggle { width: 100%; margin-bottom: 14px; }
.lead-more { border-top: 1px dashed var(--border); padding-top: 14px; }
.lead-more-hint { font-size: 12.5px; color: var(--text-muted); margin-bottom: 12px; }
.lead-next-text { font-size: 14px; color: var(--text); line-height: 1.5; margin: 0; }
.lead-next-actions { display: flex; flex-direction: column; gap: 10px; }
.lead-next-actions .btn { width: 100%; }

.dm-inbox {
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-sunken);
}
.dm-inbox-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.dm-inbox-item {
  padding: 6px 0;
  border-top: 1px solid var(--border);
}
.dm-inbox-text { font-size: 13px; color: var(--text); }
.dm-inbox-meta { font-size: 11px; color: var(--text-muted); margin-top: 2px; word-break: break-all; }

.meta-conn-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.meta-conn-row:last-child { border-bottom: none; }
.meta-conn-label { font-size: 14px; font-weight: 600; color: var(--text); }
.meta-conn-state { font-size: 12px; margin-top: 4px; }

.topbar-actions { display: flex; gap: 10px; align-items: center; }
.current-user { font-size: 13px; font-weight: 600; color: var(--text-muted); margin-left: 4px; }

.system-status-badge {
  display: flex; align-items: center; gap: 7px;
  border: 1px solid var(--border); background: var(--surface-sunken);
  border-radius: 999px; padding: 7px 13px; font-size: 12.5px; font-weight: 600;
  color: var(--text-muted); cursor: pointer;
}
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gruen-fg); flex-shrink: 0; }
.status-dot.warn { background: var(--gelb-fg); }
.status-dot.error { background: var(--rot-fg); }

.system-log-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.system-log-item {
  border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px;
  background: var(--surface-sunken);
}
.system-log-item.ok { border-left: 3px solid var(--gruen-fg); }
.system-log-item.fail { border-left: 3px solid var(--rot-fg); }
.system-log-item.warn { border-left: 3px solid var(--gelb-fg); }
.system-log-row { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 6px 12px; }
.system-log-expand { font-size: 11.5px; padding: 2px 8px; margin-left: auto; }
.system-log-details { margin-top: 8px; padding: 8px 12px; background: rgba(0,0,0,0.04); border-radius: 8px; font-size: 12.5px; display: flex; flex-direction: column; gap: 4px; }
.system-log-detail-item { padding: 3px 0; border-bottom: 1px solid var(--border); }
.system-log-detail-item:last-child { border-bottom: none; }
.system-log-detail-item.ok { color: var(--gruen-fg); }
.system-log-detail-item.fail { color: var(--rot-fg); }
.customer-actions { display: flex; gap: 8px; margin-top: 8px; }
.customer-actions .btn { padding: 6px 12px; font-size: 12.5px; }
.system-log-type { font-size: 11px; text-transform: uppercase; font-weight: 700; color: var(--text-muted); letter-spacing: 0.03em; }
.system-log-summary { font-size: 13.5px; font-weight: 600; color: var(--ink); margin: 3px 0; }
.system-log-time { font-size: 11.5px; color: var(--text-muted); }
.system-run-check-btn { margin-bottom: 16px; }

/* Launch-Preis-Zähler (Steuerzentrale) */
.founder-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.founder-stat {
  border: 1px solid var(--border); border-radius: 10px; padding: 12px; text-align: center;
  background: var(--surface-sunken);
}
.founder-stat span { display: block; font-size: 11.5px; color: var(--text-muted); margin-bottom: 4px; }
.founder-stat strong { font-size: 22px; color: var(--text); }
.founder-stat.ok strong { color: var(--gruen-fg); }
.founder-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.founder-set { border: 1px dashed var(--border); border-radius: 10px; padding: 12px; font-size: 13px; color: var(--text-muted); }
.founder-waitlist-admin { border: 1px solid var(--border); border-radius: 10px; padding: 14px; margin-top: 14px; background: var(--surface); }
.founder-waitlist-admin-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.founder-waitlist-admin-desc { font-size: 12.5px; color: var(--text-muted); line-height: 1.5; margin-bottom: 10px; }
.founder-buyers { border: 1px solid var(--border); border-radius: 10px; padding: 14px; margin-top: 14px; background: var(--surface); }
.founder-buyers-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 10px; flex-wrap: wrap; }
.founder-buyers-sub { font-size: 12px; font-weight: 600; color: var(--text-muted); }
.founder-buyers-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.founder-buyers-table th, .founder-buyers-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); }
.founder-buyers-table th { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); }
.founder-buyers-table tr:last-child td { border-bottom: none; }
.founder-buyers-table td:first-child { font-weight: 700; color: var(--text); }
.founder-buyers-tools { margin-bottom: 10px; }
.founder-buyers-search {
  width: 100%; max-width: 360px; border: 1px solid var(--border); border-radius: 8px;
  padding: 9px 12px; font-family: var(--font-body); font-size: 13.5px;
  background: var(--surface-sunken); color: var(--text); box-sizing: border-box;
}
.founder-buyers-search::placeholder { color: var(--text-muted); }
.founder-buyers-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.founder-buyers-badge.active { background: var(--gruen-bg); color: var(--gruen-fg); }
.founder-buyers-badge.canceled { background: var(--rot-bg); color: var(--rot-fg); }
.founder-buyers-badge.pastdue { background: var(--gelb-bg); color: var(--gelb-fg); }
.founder-buyers-badge.none { background: var(--grau-bg); color: var(--grau-fg); }

/* Support-Ticket-Übersicht (Steuerzentrale) */
.support-tickets-summary { font-size: 12.5px; font-weight: 700; color: var(--text-muted); margin: 14px 0 8px; }
.support-tickets-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.support-ticket-item {
  border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px;
  background: var(--surface-sunken);
}
.support-ticket-item.is-open { border-left: 3px solid var(--gelb-fg); }
.support-ticket-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.support-ticket-num { font-family: var(--font-mono); font-size: 13px; font-weight: 700; color: var(--primary); }
.support-ticket-badge { font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.support-ticket-badge.open { background: var(--gelb-bg); color: var(--gelb-fg); }
.support-ticket-badge.progress { background: var(--blau-bg); color: var(--blau-fg); }
.support-ticket-badge.done { background: var(--gruen-bg); color: var(--gruen-fg); }
.support-ticket-customer { display: flex; align-items: baseline; gap: 10px; margin-top: 6px; flex-wrap: wrap; }
.support-ticket-customer strong { font-size: 13.5px; color: var(--ink); }
.support-ticket-customer a { font-size: 12.5px; color: var(--primary); text-decoration: none; }
.support-ticket-customer a:hover { text-decoration: underline; }
.support-ticket-message {
  margin-top: 8px; font-size: 13px; color: var(--text); background: var(--surface);
  border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; white-space: pre-wrap;
}
.support-ticket-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.support-ticket-date { font-size: 11.5px; color: var(--text-muted); }
.support-ticket-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.support-ticket-actions .btn { padding: 6px 12px; font-size: 12.5px; }

.checkbox-label { flex-direction: row !important; align-items: center; gap: 8px !important; }
.checkbox-label input[type="checkbox"] { width: auto; accent-color: var(--primary); }

.profile-analysis-hint {
  font-size: 12.5px; color: var(--text-muted); line-height: 1.5;
  background: var(--surface-sunken); border: 1px solid var(--border);
  border-radius: 8px; padding: 10px 12px; margin: 0 0 16px;
}

.profile-score-headline { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.profile-score-circle {
  width: 76px; height: 76px; border-radius: 50%; flex-shrink: 0;
  background: conic-gradient(var(--gold) calc(var(--score, 0) * 1%), var(--surface-sunken) 0);
  display: flex; align-items: center; justify-content: center; padding: 5px;
  box-shadow: 0 0 0 2px rgba(0,0,0,0.3), 0 0 16px rgba(232,169,74,0.3);
}
.profile-score-circle-inner {
  width: 100%; height: 100%; border-radius: 50%; background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-weight: 700; font-size: 17px; color: var(--gold-fg);
}
.profile-score-rating { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--ink); }
.profile-score-sub { color: var(--text-muted); font-size: 12.5px; margin-top: 2px; }

.profile-categories { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.profile-cat-row { display: grid; grid-template-columns: 150px 1fr 40px; align-items: center; gap: 10px; }
.profile-cat-label { font-size: 12.5px; font-weight: 600; color: var(--text); }
.profile-cat-track { height: 8px; background: var(--surface-sunken); border-radius: 999px; overflow: hidden; border: 1px solid var(--border); }
.profile-cat-fill { height: 100%; background: linear-gradient(90deg, var(--primary), var(--gold)); }
.profile-cat-score { font-size: 12px; font-weight: 700; color: var(--text-muted); text-align: right; }

.profile-improvements { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.profile-improvements li {
  background: var(--blau-bg); color: var(--blau-fg);
  border-radius: 10px; padding: 10px 13px; font-size: 13px; line-height: 1.45; font-weight: 500;
}
.profile-analysis-actions { margin-top: 16px; }

@media (max-width: 960px) {
  .kpis { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  /* Auf kleinen Bildschirmen ist eine erzwungene No-Scroll-Cockpit-Ansicht
     unbenutzbar — hier darf die Seite wieder ganz normal scrollen. */
  html, body { height: auto; overflow: visible; }
  .app { height: auto; overflow: visible; }
  .content { height: auto; overflow: visible; padding: 18px; }
  /* Auf Mobil scrollt der Body (nicht .content) und die Topbar klebt bereits
     oben — die View-Kopfzeile hier nicht doppelt fixieren, sonst überlagern sie sich. */
  body[data-view]:not([data-view="dashboard"]) #viewHeader { position: static; }
  .cockpit-grid { grid-template-columns: 1fr; height: auto; }
  .col-stack .panel, .cockpit-grid .panel { flex: none; }
  .cockpit-grid .panel > *:not(.panel-header) { overflow-y: visible; max-height: none; }
  .bottom-row { grid-template-columns: 1fr; }
  .morning-cards { grid-template-columns: 1fr; }
  .topbar { padding: 14px 18px; flex-wrap: wrap; gap: 10px; }
  .topbar-actions { flex-wrap: wrap; flex: 1 1 100%; }
  .app-body { flex-direction: column; }

  /* Mobiles Menü: Seitenleiste wird zur Schublade statt komplett zu
     verschwinden — ohne dies gäbe es auf schmalen Bildschirmen keinen
     Zugriff mehr auf die 26 Funktionen der Seitenleiste. Bleibt bewusst
     immer im Layout (display:flex) und nur per transform außerhalb des
     sichtbaren Bereichs geparkt — display:none lässt sich nicht animieren
     bzw. verursachte hier hängende Animationszustände. */
  .sidebar {
    display: flex; position: fixed; top: 0; left: 0; bottom: 0; z-index: 300;
    width: 260px; max-width: 82vw; box-shadow: var(--shadow-lg);
    transform: translateX(-100%);
    transition: transform 0.2s ease;
  }
  .sidebar.mobile-open { transform: translateX(0); }
  .mobile-menu-btn { display: inline-flex; }
  .sidebar-backdrop.open {
    display: block; position: fixed; inset: 0; z-index: 290;
    background: rgba(0,0,0,0.5);
  }
}
.mobile-menu-btn {
  display: none; border: none; background: none; color: var(--text);
  font-size: 20px; cursor: pointer; padding: 4px 8px; border-radius: 8px;
  margin-right: 4px;
}
.mobile-menu-btn:hover { background: var(--surface-sunken); }
.sidebar-backdrop { display: none; }

@media (max-width: 520px) {
  .topbar-actions .btn, .topbar-actions .user-chip { padding: 8px 11px; font-size: 12.5px; }
  .brand h1 { font-size: 15px; }
  #dashboardSettingsBtn { display: none; }
}

@media (max-width: 520px) {
  .kpis { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

.source-badge {
  display: inline-block; font-size: 11px; font-weight: 700; border-radius: 999px;
  padding: 4px 10px; margin-bottom: 10px;
}
.source-badge.ai { background: var(--blau-bg); color: var(--blau-fg); }
.source-badge.rule { background: var(--surface-sunken); color: var(--text-muted); border: 1px solid var(--border); }
.source-badge-cost { font-size: 11px; color: var(--text-muted); margin: -4px 0 10px; }

.forecast-section-title { font-size: 13px; font-weight: 700; color: var(--ink); margin: 18px 0 10px; }
.forecast-section-title:first-child { margin-top: 0; }

.heat-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.heat-item {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface-sunken); border: 1px solid var(--border);
  border-radius: 10px; padding: 10px 14px;
}
.heat-score-badge {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 13px; color: #fff;
}
.heat-score-badge { font-family: var(--font-mono); }
.heat-score-badge.hot { background: radial-gradient(circle at 35% 30%, #FF9DAE, var(--rot-fg)); box-shadow: 0 0 12px rgba(255,122,142,0.45); }
.heat-score-badge.warm { background: radial-gradient(circle at 35% 30%, #F7D49E, var(--gelb-fg)); box-shadow: 0 0 12px rgba(240,188,112,0.4); color: #2C1D06; }
.heat-score-badge.lukewarm { background: radial-gradient(circle at 35% 30%, #C7CFD8, #6B7A8C); box-shadow: 0 0 10px rgba(126,143,166,0.35); }
.heat-score-badge.cold { background: radial-gradient(circle at 35% 30%, #A9CFFF, var(--blau-fg)); box-shadow: 0 0 10px rgba(127,176,255,0.35); color: #0A1420; }
.heat-item-name { font-weight: 700; font-size: 13.5px; color: var(--ink); }
.heat-item-meta { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

.ghosting-item { align-items: flex-start; }
.ghosting-item-body { flex: 1; min-width: 0; }
.ghosting-item-body .icebreaker-text { margin: 8px 0; }
.ghosting-item-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.heat-score-badge.ghosting-days {
  background: radial-gradient(circle at 35% 30%, #D9C7FF, #7A5CC7);
  box-shadow: 0 0 10px rgba(122,92,199,0.35); font-size: 11px;
}
.btn-sm { padding: 6px 10px; font-size: 12px; }

.week-plan { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.week-plan-day { background: var(--surface-sunken); border: 1px solid var(--border); border-radius: 10px; padding: 8px; min-height: 70px; }
.week-plan-date { font-size: 10.5px; font-weight: 700; color: var(--text-muted); margin-bottom: 6px; text-transform: uppercase; }
.week-plan-lead { font-size: 11.5px; padding: 3px 0; color: var(--text); border-top: 1px solid var(--border); }
.week-plan-lead:first-of-type { border-top: none; }
.week-plan-empty { font-size: 11px; color: var(--text-muted); font-style: italic; }

@media (max-width: 860px) {
  .week-plan { grid-template-columns: repeat(2, 1fr); }
}

.assistant-fab-wrap { position: relative; display: inline-block; }
.coach-bubble {
  position: absolute; top: calc(100% + 12px); right: 0; width: 280px; z-index: 250;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 14px 30px 14px 14px; display: none;
  animation: coach-bubble-pop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.coach-bubble.open { display: flex; gap: 10px; align-items: flex-start; }
.coach-bubble::before {
  content: ''; position: absolute; top: -8px; right: 22px;
  width: 16px; height: 16px; background: var(--surface);
  border-left: 1px solid var(--border); border-top: 1px solid var(--border);
  transform: rotate(45deg);
}
@keyframes coach-bubble-pop {
  from { transform: translateY(-8px) scale(0.92); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
.coach-bubble-icon { font-size: 20px; line-height: 1; }
.coach-bubble-text { font-size: 13px; line-height: 1.45; color: var(--ink); }
.coach-bubble-line { display: block; cursor: pointer; }
.coach-bubble-action-btn {
  display: inline-block; margin-top: 8px; font-size: 12.5px; font-weight: 700;
  color: #04141A; background: var(--primary); border: none; border-radius: 6px;
  padding: 6px 12px; cursor: pointer;
}
.coach-bubble-action-btn:hover { filter: brightness(1.08); }
.focus-item-highlight { animation: focus-item-flash 1s ease 2; border-radius: 8px; }
@keyframes focus-item-flash {
  0%, 100% { background: transparent; }
  50% { background: rgba(62, 232, 222, 0.18); }
}
.coach-bubble-close {
  position: absolute; top: 6px; right: 8px; border: none; background: none;
  color: var(--text-muted); font-size: 16px; cursor: pointer; line-height: 1; padding: 4px;
}
.coach-bubble-close:hover { color: var(--ink); }
/* Farbcodierung nach Absender: Türkis = Tool-Assistent, Gold = KI-Upline,
   Violett = Freisprech-Assistent — macht auf einen Blick klar, wer spricht. */
.coach-bubble-teal .coach-bubble-icon { color: var(--primary); }
.coach-bubble-teal::before { border-color: var(--primary); }
.coach-bubble-teal { border-color: var(--primary); }
.coach-bubble-gold .coach-bubble-icon { color: var(--gold); }
.coach-bubble-gold::before { border-color: var(--gold); }
.coach-bubble-gold { border-color: var(--gold); }
.coach-bubble-violet .coach-bubble-icon { color: #a78bfa; }
.coach-bubble-violet::before { border-color: #a78bfa; }
.coach-bubble-violet { border-color: #a78bfa; }
.coach-bubble-cyan .coach-bubble-icon { color: #22d3ee; }
.coach-bubble-cyan::before { border-color: #22d3ee; }
.coach-bubble-cyan { border-color: #22d3ee; }
/* Zeiger nach unten statt oben — für Elemente, die am unteren Bildschirmrand
   sitzen (z. B. die Co-Pilot-Leiste), damit die Blase darüber aufploppt. */
.coach-bubble-up { top: auto; bottom: calc(100% + 12px); }
.coach-bubble-up::before { top: auto; bottom: -8px; border-left: none; border-top: none; border-right: 1px solid; border-bottom: 1px solid; }
.coach-bubble-up.coach-bubble-cyan::before { border-color: #22d3ee; }
/* Für Anker nahe am linken Bildschirmrand (Co-Pilot-Leiste unten links) —
   sonst ragt die Blase mit right:0 über den linken Rand hinaus. */
.coach-bubble-left { right: auto; left: 0; }
.coach-bubble-left::before { right: auto; left: 22px; }
@media (max-width: 720px) {
  .coach-bubble { position: fixed; top: 60px; left: 12px; right: 12px; width: auto; }
  .coach-bubble::before { display: none; }
}

.coach-widget {
  position: fixed; bottom: 72px; right: 20px; width: 300px; z-index: 200;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); display: none;
  animation: coach-slide-in 0.3s ease;
}
.coach-widget.open { display: block; }
@keyframes coach-slide-in {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.coach-widget-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, var(--primary), var(--gold)); color: #0B0E14;
  border-radius: var(--radius) var(--radius) 0 0;
}
.coach-widget-title { font-size: 13px; font-weight: 700; }
.coach-widget-close { border: none; background: none; color: #0B0E14; font-size: 18px; cursor: pointer; line-height: 1; opacity: 0.7; }
.coach-widget-close:hover { opacity: 1; }
.coach-widget-body { padding: 14px; font-size: 13px; }
.coach-widget-action { font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.coach-widget-reasoning { color: var(--text-muted); font-size: 12px; line-height: 1.45; margin-bottom: 10px; }
.coach-widget-body .btn { width: 100%; font-size: 12.5px; padding: 8px; }

@media (max-width: 520px) {
  .coach-widget { left: 12px; right: 12px; width: auto; bottom: 68px; }
}

/* ---------- Tool-Assistent ---------- */
.assistant-widget {
  position: fixed; top: 64px; right: 18px; bottom: auto; left: auto;
  width: 340px; max-height: calc(100vh - 84px); z-index: 215;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); display: none; flex-direction: column; overflow: hidden;
  animation: coach-slide-in 0.25s ease;
}
.assistant-widget.open { display: flex; }
.assistant-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, var(--primary), var(--gold)); color: #0B0E14;
  border-radius: var(--radius) var(--radius) 0 0;
}
.assistant-title { font-size: 13px; font-weight: 700; }
.assistant-close { border: none; background: none; color: #0B0E14; font-size: 18px; cursor: pointer; line-height: 1; opacity: 0.7; }
.assistant-close:hover { opacity: 1; }
.assistant-chat {
  max-height: 300px; min-height: 120px; overflow-y: auto; padding: 12px;
  display: flex; flex-direction: column; gap: 8px; font-size: 13px;
}
.assistant-msg {
  max-width: 90%; padding: 9px 12px; border-radius: 12px; line-height: 1.45;
  white-space: pre-wrap; word-break: break-word;
}
.assistant-msg.bot { align-self: flex-start; background: var(--surface-sunken); border: 1px solid var(--border); }
.assistant-msg.user { align-self: flex-end; background: var(--primary); color: #0B0E14; font-weight: 600; }
.assistant-src { font-size: 10.5px; color: var(--text-muted); margin-top: 6px; font-weight: 400; }
.assistant-action {
  align-self: flex-start; margin-top: 2px; padding: 7px 12px; border-radius: 999px;
  border: 1px solid var(--primary); background: var(--primary-tint); color: var(--primary);
  font-size: 12.5px; font-weight: 700; cursor: pointer; transition: all .12s ease;
}
.assistant-action:hover { background: var(--primary); color: #0B0E14; }
.assistant-action.support { border-color: var(--gold); color: var(--gold-fg); }
.assistant-action.support:hover { background: var(--gold); color: #0B0E14; }
.assistant-support { padding: 0 12px 10px; }
.assistant-support-link {
  border: none; background: none; padding: 0; cursor: pointer;
  font-size: 11.5px; color: var(--text-muted); text-decoration: underline;
}
.assistant-support-link:hover { color: var(--primary); }
.assistant-support-form {
  align-self: stretch; background: var(--surface-sunken); border: 1px solid var(--border);
  border-radius: 10px; padding: 10px; display: flex; flex-direction: column; gap: 8px;
}
.assistant-support-form-title { font-size: 12px; font-weight: 700; color: var(--text); }
.assistant-support-form textarea {
  width: 100%; box-sizing: border-box; resize: vertical; font: inherit; font-size: 12.5px;
  padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px;
  background: var(--surface); color: var(--text);
}
.assistant-support-form-actions { display: flex; gap: 8px; }
.assistant-support-form-actions .btn { font-size: 12.5px; padding: 7px 12px; }
.assistant-ticket {
  align-self: flex-start; margin-top: 4px; padding: 6px 10px; border-radius: 8px;
  background: rgba(26,127,55,.12); border: 1px solid rgba(26,127,55,.35);
  color: #1a7f37; font-size: 12px; font-weight: 700; letter-spacing: .02em;
}
.assistant-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 12px 10px; align-items: center; }
.assistant-chips-title {
  width: 100%; font-size: 10.5px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.04em; color: var(--text-muted); margin-bottom: 2px;
}
.assistant-chip {
  border: 1px solid var(--border); background: var(--surface-sunken); color: var(--text);
  border-radius: 999px; padding: 5px 10px; font-size: 11.5px; cursor: pointer; transition: all .12s ease;
}
.assistant-chip:hover { border-color: var(--primary); color: var(--primary); }
.assistant-input-row { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--border); }
.assistant-input-row input { flex: 1; min-width: 0; }

@media (max-width: 520px) {
  .assistant-widget { left: 12px; right: 12px; width: auto; top: 62px; bottom: auto; max-height: calc(100vh - 80px); }
}

.persona-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.persona-card {
  background: var(--surface-sunken); border: 1px solid var(--border); border-radius: 10px;
  padding: 14px 12px; text-align: center; cursor: pointer; transition: all .12s ease;
}
.persona-card:hover { border-color: var(--primary); background: var(--primary-tint); }
.persona-emoji { font-size: 28px; margin-bottom: 6px; }
.persona-name { font-weight: 700; font-size: 12.5px; color: var(--ink); }
.persona-sub { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.persona-category-badge {
  display: inline-block; margin-top: 8px; padding: 3px 9px; border-radius: 999px;
  font-size: 10.5px; font-weight: 700; border: 1px solid var(--border);
  color: var(--text-muted); background: var(--surface);
}
.persona-category-badge.recruiting { color: var(--primary); border-color: rgba(62,232,222,.4); }
.persona-category-badge.produkt { color: var(--gold-fg); border-color: rgba(232,169,74,.4); }
.sim-category-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sim-category-option { cursor: pointer; opacity: 0.7; }
.sim-category-option:hover { border-color: var(--primary); opacity: 0.9; }
.sim-category-option.practiced { opacity: 1; }
@media (max-width: 520px) { .sim-category-grid { grid-template-columns: 1fr; } }

.sim-chat { display: flex; flex-direction: column; height: 420px; }
.sim-messages { flex: 1; overflow-y: auto; padding: 12px; background: var(--surface-sunken); border-radius: 10px; border: 1px solid var(--border); margin-bottom: 10px; display: flex; flex-direction: column; gap: 10px; }
.sim-msg { max-width: 75%; padding: 9px 13px; border-radius: 12px; font-size: 13.5px; line-height: 1.45; }
.sim-msg.persona { align-self: flex-start; background: var(--surface); border: 1px solid var(--border); border-bottom-left-radius: 3px; }
.sim-msg.user { align-self: flex-end; background: var(--primary); color: #04141A; border-bottom-right-radius: 3px; }
.sim-input-row { display: flex; gap: 8px; }
.sim-input-row input { flex: 1; border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; font-family: var(--font-body); font-size: 14px; background: var(--surface); color: var(--text); }
.sim-input-row input::placeholder { color: var(--text-muted); }
.sim-end-btn { margin-top: 10px; }

.feedback-grid { display: flex; flex-direction: column; gap: 10px; }
.feedback-card { background: var(--surface-sunken); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; }
.feedback-card-title { font-size: 11px; text-transform: uppercase; font-weight: 700; color: var(--text-muted); margin-bottom: 4px; letter-spacing: 0.03em; }
.feedback-card-text { font-size: 13px; color: var(--text); line-height: 1.5; }
.category-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.category-card {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--surface-sunken); border: 1px solid var(--border); border-radius: 10px;
  padding: 12px 14px; opacity: 0.55;
}
.category-card.practiced { border-color: var(--primary); opacity: 1; background: var(--primary-tint); }
.category-emoji { font-size: 22px; line-height: 1; }
.category-label { font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 3px; }
.category-card.practiced .category-label { color: var(--primary); }
.category-hint { font-size: 12px; color: var(--text-muted); line-height: 1.45; }
.category-detected { margin-top: 10px; font-size: 12.5px; color: var(--text-muted); }
.category-detected strong { color: var(--ink); }
.goal-stat { margin-top: 12px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border); }
.goal-stat-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; color: var(--text-muted); margin-bottom: 4px; }
.goal-stat-result { font-size: 13px; line-height: 1.5; font-weight: 600; }
.goal-stat.goal-ok { border-color: rgba(74,222,148,.4); background: var(--gruen-bg); }
.goal-stat.goal-ok .goal-stat-result { color: var(--gruen-fg); }
.goal-stat.goal-drift { border-color: rgba(240,188,112,.45); background: var(--gelb-bg); }
.goal-stat.goal-drift .goal-stat-result { color: var(--gelb-fg); }
.goal-stat.goal-unknown { border-color: var(--border); background: var(--grau-bg); }
.goal-stat.goal-unknown .goal-stat-result { color: var(--grau-fg); }
@media (max-width: 520px) { .category-grid { grid-template-columns: 1fr; } }

.capture-field { margin-bottom: 16px; }
.capture-field-label { font-size: 12px; font-weight: 700; color: var(--text-muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.03em; }
.capture-field-row { display: flex; gap: 8px; }
.capture-qr-wrap {
  display: flex; justify-content: center; align-items: center;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; margin: 8px 0;
}
.capture-qr-wrap svg { max-width: 220px; height: auto; }
.capture-qr-actions { display: flex; justify-content: center; margin: -2px 0 10px; }
.capture-field-row input, .capture-field-row textarea {
  flex: 1; border: 1px solid var(--border); border-radius: 8px; padding: 9px 11px;
  font-family: var(--font-body); font-size: 13px; background: var(--surface-sunken); color: var(--text);
  resize: vertical;
}
.capture-copy-btn {
  border: 1px solid var(--border); border-radius: 8px; padding: 8px 12px;
  background: var(--surface); cursor: pointer; font-size: 12px; font-weight: 700; white-space: nowrap;
}
.capture-copy-btn:hover { background: var(--primary-tint); border-color: var(--primary); }

/* ---------- Share-Vorlagen für den Lead-Link (Onboarding-Schritt 4) ---------- */
.share-template { border: 1px solid var(--border); border-radius: 10px; padding: 12px; margin-bottom: 12px; background: var(--surface); }
.share-template-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.share-template-label { font-size: 13.5px; font-weight: 700; color: var(--text); }
.share-template-hint { font-size: 11.5px; color: var(--text-muted); margin-bottom: 8px; }
.share-template textarea {
  width: 100%; border: 1px solid var(--border); border-radius: 8px; padding: 9px 11px;
  font-family: var(--font-body); font-size: 13px; line-height: 1.5; background: var(--surface-sunken);
  color: var(--text); resize: vertical; box-sizing: border-box;
}
.share-copy-btn { white-space: nowrap; }

/* ---------- Pre-Checkout: Live-Platz-Countdown ---------- */
.checkout-countdown { text-align: center; padding: 14px 10px 18px; }
.checkout-countdown-big { font-size: 24px; font-weight: 800; color: var(--text); letter-spacing: -0.01em; }
.checkout-countdown-sub { font-size: 13px; color: var(--text-muted); line-height: 1.5; margin-top: 6px; }
.checkout-countdown-bar { height: 8px; border-radius: 999px; background: var(--border); overflow: hidden; margin-top: 14px; }
.checkout-countdown-fill { height: 100%; background: var(--primary); border-radius: 999px; transition: width 0.6s ease; }
.checkout-countdown.urgent .checkout-countdown-big { color: #F0BC70; }
.checkout-countdown.urgent .checkout-countdown-fill { background: #F0BC70; }
.checkout-countdown.soldout .checkout-countdown-big { color: var(--text-muted); }
.checkout-countdown.soldout .checkout-countdown-fill { background: var(--text-muted); }
.checkout-buy-btn { width: 100%; }
.checkout-cancel-btn { width: 100%; margin-top: 8px; }
.checkout-waitlist { border-top: 1px dashed var(--border); margin-top: 6px; padding: 12px 2px 4px; display: flex; flex-direction: column; gap: 8px; }
.checkout-waitlist-title { font-size: 13px; font-weight: 700; color: var(--text); line-height: 1.4; }
.checkout-waitlist input[type="email"] {
  width: 100%; border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px;
  font-family: var(--font-body); font-size: 13.5px; background: var(--surface-sunken); color: var(--text); box-sizing: border-box;
}
.checkout-waitlist-consent { font-size: 12px; color: var(--text-muted); display: flex; gap: 8px; align-items: flex-start; line-height: 1.4; }
.checkout-waitlist-msg { font-size: 13px; font-weight: 600; color: var(--text); min-height: 18px; }

/* ---------- Tools- & Profil-Dropdown (Kopfzeile aufgeräumt) ---------- */
.dropdown-wrap { position: relative; }
.dropdown-menu {
  display: none;
  position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; box-shadow: var(--shadow-lg);
  min-width: 200px; padding: 6px; z-index: 50;
}
.dropdown-menu.open { display: block; }
.dropdown-menu button {
  width: 100%; text-align: left; border: none; background: none;
  color: var(--text); font-family: var(--font-body); font-size: 13.5px; font-weight: 600;
  padding: 10px 12px; border-radius: 8px; cursor: pointer;
  display: flex; align-items: center; gap: 10px;
  transition: background .12s ease;
}
.dropdown-menu button:hover { background: var(--primary-tint); color: var(--primary); }

.user-chip {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--border); background: var(--surface-sunken);
  border-radius: 999px; padding: 6px 8px 6px 6px; cursor: pointer;
  font-size: 13px; font-weight: 600; color: var(--text);
}
.user-chip-avatar {
  width: 24px; height: 24px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--gold));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 11px; color: #0B0E14;
  overflow: hidden;
}
.avatar-img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }

.brightness-control {
  padding: 10px 12px 6px; border-top: 1px solid var(--border); margin-top: 4px;
}
.brightness-control-label {
  display: flex; justify-content: space-between; font-size: 11.5px; font-weight: 600;
  color: var(--text-muted); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.03em;
}
.brightness-slider {
  width: 100%; height: 4px; border-radius: 999px; appearance: none; -webkit-appearance: none;
  background: linear-gradient(90deg, var(--surface-sunken), var(--primary));
  cursor: pointer; outline: none;
}
.brightness-slider::-webkit-slider-thumb {
  appearance: none; -webkit-appearance: none;
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--primary); box-shadow: 0 0 8px rgba(62,232,222,0.6), 0 0 0 2px var(--surface);
  cursor: pointer;
}
.brightness-slider::-moz-range-thumb {
  width: 15px; height: 15px; border-radius: 50%; border: none;
  background: var(--primary); box-shadow: 0 0 8px rgba(62,232,222,0.6), 0 0 0 2px var(--surface);
  cursor: pointer;
}

.funktionscheck-progress {
  display: flex; align-items: center; gap: 12px; margin: 4px 0 18px;
  font-size: 13px; color: var(--text-muted); font-family: var(--font-mono);
}
.funktionscheck-progress-bar {
  flex: 1; height: 8px; border-radius: 999px; background: var(--surface-sunken);
  border: 1px solid var(--border); overflow: hidden;
}
.funktionscheck-progress-fill {
  height: 100%; background: linear-gradient(90deg, var(--primary-dark), var(--primary));
  box-shadow: 0 0 8px rgba(62,232,222,0.5); transition: width .25s ease;
}
.funktionscheck-kategorie { margin-bottom: 20px; }
.funktionscheck-kategorie h4 {
  font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--primary); margin: 0 0 8px; border-bottom: 1px solid var(--border); padding-bottom: 6px;
}
.funktionscheck-item {
  display: flex; align-items: flex-start; gap: 10px; padding: 7px 4px;
  font-size: 13.5px; color: var(--text); cursor: pointer; border-radius: 6px;
}
.funktionscheck-item:hover { background: var(--primary-tint); }
.funktionscheck-item input[type="checkbox"] { margin-top: 2px; accent-color: var(--primary); cursor: pointer; }
.funktionscheck-item.checked span { color: var(--text-muted); text-decoration: line-through; }

.hidden { display: none !important; }

.billing-banner {
  flex: 0 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--rot-bg); border: 1px solid rgba(255,122,142,0.35);
  color: var(--rot-fg); border-radius: var(--radius); padding: 12px 18px;
  font-size: 13.5px; font-weight: 600;
}
.trial-banner {
  flex: 0 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  background: var(--gold-bg); border: 1px solid rgba(232,169,74,0.4);
  color: var(--gold-fg); border-radius: var(--radius); padding: 12px 18px;
  font-size: 13.5px; font-weight: 600;
}
.trial-banner .btn { flex: 0 0 auto; }

/* KI-Opt-in-Banner: Der Kunde entscheidet selbst, ob Kontaktdaten an Anthropic duerfen */
.ki-optin-banner {
  flex: 0 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  background: linear-gradient(135deg, rgba(94,234,212,0.12), rgba(93,132,255,0.12));
  border: 1px solid rgba(94,234,212,0.4);
  color: var(--text); border-radius: var(--radius); padding: 12px 18px;
  font-size: 13.5px;
}
.ki-optin-text { display: flex; align-items: flex-start; gap: 12px; min-width: 0; flex: 1 1 320px; }
.ki-optin-text strong { display: block; color: var(--primary); margin-bottom: 2px; }
.ki-optin-text span { line-height: 1.5; color: var(--text-dim); }
.ki-optin-icon { font-size: 22px; line-height: 1; }
.ki-optin-actions { display: flex; gap: 8px; flex: 0 0 auto; }

/* Upgrade-Vorschlag: automatisch anhand echter Nutzung, nicht zufällig */
.upgrade-suggestion-banner {
  flex: 0 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  background: linear-gradient(135deg, var(--gold-bg), rgba(94,234,212,0.10));
  border: 1px solid rgba(232,169,74,0.4);
  color: var(--text); border-radius: var(--radius); padding: 12px 18px;
  font-size: 13.5px;
}
.upgrade-suggestion-text { display: flex; align-items: flex-start; gap: 12px; min-width: 0; flex: 1 1 320px; }
.upgrade-suggestion-text strong { display: block; color: var(--gold-fg); margin-bottom: 2px; }
.upgrade-suggestion-text > span > span { line-height: 1.5; color: var(--text-dim); }
.upgrade-suggestion-icon { font-size: 22px; line-height: 1; }
.upgrade-suggestion-actions { display: flex; gap: 8px; flex: 0 0 auto; }

/* KI & Datenschutz-Modal */
.ki-settings-toggle { margin-top: 14px; font-weight: 600; }
.ki-settings-note { margin-top: 12px; font-size: 12.5px; color: var(--text-dim); line-height: 1.6; }
.ki-settings-note a { color: var(--primary); }

/* Erster Erfolg: geführtes 3-Schritte-Onboarding */
.onboarding-overlay { z-index: 90; }
.ob-intro { font-size: 13.5px; line-height: 1.55; color: var(--text); margin-bottom: 14px; }
.ob-step {
  display: flex; gap: 12px; padding: 12px;
  border: 1px solid var(--border); border-radius: 12px; margin-bottom: 10px;
  background: var(--surface-sunken);
}
.ob-step.done { border-color: var(--gruen-fg); background: var(--gruen-bg); }
.ob-step-num {
  flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%;
  background: var(--primary); color: #04141A; font-weight: 800;
  display: flex; align-items: center; justify-content: center; font-size: 14px;
}
.ob-step-num.done { background: var(--gruen-fg); }
.ob-step-body { flex: 1; }
.ob-step-title { font-size: 14.5px; font-weight: 700; color: var(--text); }
.ob-step-desc { font-size: 12.5px; color: var(--text-muted); line-height: 1.45; margin-top: 2px; margin-bottom: 8px; }
.ob-step-btn { width: 100%; }
.ob-note { font-size: 11.5px; color: var(--text-muted); margin-top: 10px; text-align: center; }
.ob-success { text-align: center; padding: 10px 4px; }
.ob-success-emoji { font-size: 40px; }
.ob-success-title { font-size: 18px; font-weight: 800; color: var(--text); margin: 10px 0 6px; }
.ob-success-text { font-size: 13.5px; color: var(--text-muted); line-height: 1.55; margin-bottom: 14px; }

/* ---------- Einklappbares Onboarding-Panel (Dashboard) ---------- */
.ob-panel { border: 1px solid var(--border); border-radius: 14px; background: var(--surface); margin-bottom: 14px; overflow: hidden; }
.ob-panel-head {
  width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  background: var(--surface-sunken); border: none; cursor: pointer; text-align: left;
  font-family: var(--font-body);
}
.ob-panel-head:hover { background: var(--surface); }
.ob-panel-icon { font-size: 18px; }
.ob-panel-head-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ob-panel-title { font-size: 14.5px; font-weight: 700; color: var(--text); }
.ob-panel-progress { font-size: 12px; color: var(--text-muted); }
.ob-panel-bar { flex: 0 0 90px; height: 6px; border-radius: 999px; background: var(--border); overflow: hidden; }
.ob-panel-bar-fill { height: 100%; background: var(--primary); border-radius: 999px; transition: width 0.4s ease; }
.ob-panel-chevron { font-size: 12px; color: var(--text-muted); transition: transform .15s ease; }
.ob-panel-body { display: none; padding: 12px 14px; border-top: 1px solid var(--border); }
.ob-panel.expanded .ob-panel-body { display: block; }
.ob-panel-step {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px;
  border: 1px solid var(--border); border-radius: 10px; margin-bottom: 8px; background: var(--surface-sunken);
}
.ob-panel-step:last-child { margin-bottom: 0; }
.ob-panel-step.done { border-color: var(--gruen-fg); background: var(--gruen-bg); }
.ob-panel-step-title { flex: 1; font-size: 13.5px; font-weight: 600; color: var(--text); }
.ob-panel-step-btn { white-space: nowrap; }
.ob-panel-done { color: var(--gruen-fg); font-weight: 800; font-size: 15px; }

.steuerzentrale-tabs {
  display: flex; gap: 4px; padding: 0 20px; border-bottom: 1px solid var(--border);
  background: var(--surface-sunken);
}
.steuerzentrale-tab {
  border: none; background: transparent; padding: 12px 16px; font-size: 13.5px; font-weight: 600;
  color: var(--text-muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px;
  font-family: var(--font-body);
}
.steuerzentrale-tab:hover { color: var(--text); }
.steuerzentrale-tab.active { color: var(--primary); border-bottom-color: var(--primary); }

/* ---------- 90-Tage-Durchbruch ---------- */
.breakthrough-panel { margin-bottom: 16px; }
.breakthrough-body { padding: 16px 18px; display: flex; flex-direction: column; gap: 14px; max-height: 280px; overflow-y: auto; }
.bt-topline { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.bt-day { font-family: var(--font-mono); font-size: 26px; font-weight: 700; color: var(--primary); text-shadow: 0 0 14px rgba(62,232,222,0.4); }
.bt-day small { font-size: 12px; color: var(--text-muted); font-weight: 500; font-family: var(--font-body); }
.bt-phase { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.bt-phase-badge { background: var(--gold-bg); color: var(--gold-fg); border-radius: 999px; padding: 5px 12px; font-size: 12px; font-weight: 700; }
.bt-phase-hint { font-size: 12px; color: var(--text-muted); }

.progress-track { height: 10px; border-radius: 999px; background: var(--surface-sunken); overflow: hidden; border: 1px solid var(--border); }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--primary), var(--gold)); border-radius: 999px; transition: width 0.4s ease; }
.progress-labels { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--text-muted); margin-top: 4px; }

.bt-goal { display: flex; align-items: baseline; gap: 8px; font-size: 13.5px; }
.bt-goal strong { font-size: 18px; color: var(--ink); font-family: var(--font-mono); }

.mission-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.mission-item { display: flex; align-items: center; gap: 10px; background: var(--surface-sunken); border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; }
.mission-check { width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; background: var(--surface); border: 1px solid var(--border); color: var(--text-muted); }
.mission-item.done .mission-check { background: var(--gruen-fg); color: #06231a; border-color: transparent; }
.mission-label { flex: 1; font-size: 13.5px; color: var(--ink); font-weight: 500; }
.mission-count { font-size: 12.5px; color: var(--text-muted); font-family: var(--font-mono); }
.mission-item.done .mission-count { color: var(--gruen-fg); font-weight: 700; }

.bt-status { border-radius: 10px; padding: 11px 14px; font-size: 13px; font-weight: 600; line-height: 1.45; }
.bt-status.ok { background: var(--gruen-bg); color: var(--gruen-fg); }
.bt-status.warn { background: var(--blau-bg); color: var(--blau-fg); }
.bt-status.win { background: var(--gold-bg); color: var(--gold-fg); }

.bt-footer { display: flex; justify-content: flex-end; gap: 12px; }
.bt-link { background: none; border: none; color: var(--text-muted); font-size: 12px; text-decoration: underline; cursor: pointer; font-family: var(--font-body); }
.bt-link:hover { color: var(--text); }

/* ---------- Team & Duplikation (Leader-Stufe) ---------- */
.team-panel { margin-bottom: 16px; }
.team-body { padding: 16px 18px; display: flex; flex-direction: column; gap: 16px; max-height: 280px; overflow-y: auto; }
.team-section-title { margin: 4px 0 0; font-size: 13px; font-weight: 700; color: var(--ink); text-transform: uppercase; letter-spacing: 0.04em; }
.team-hint { margin: 4px 0 0; font-size: 12.5px; color: var(--text-muted); line-height: 1.5; }
.team-hint.ok { color: var(--gruen-fg); }

.team-report { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.team-report-stat { background: var(--surface-sunken); border: 1px solid var(--border); border-radius: 10px; padding: 12px; text-align: center; }
.team-report-value { font-family: var(--font-mono); font-size: 24px; font-weight: 700; color: var(--primary); text-shadow: 0 0 12px rgba(62,232,222,0.35); }
.team-report-label { font-size: 11.5px; color: var(--text-muted); margin-top: 2px; }

.team-invite { background: var(--surface-sunken); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; }
.team-invite-label { font-size: 12px; font-weight: 700; color: var(--gold-fg); margin-bottom: 8px; }
.team-invite-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.team-code { font-family: var(--font-mono); font-size: 18px; font-weight: 700; letter-spacing: 0.06em; color: var(--ink); background: var(--surface); border: 1px dashed var(--primary); border-radius: 8px; padding: 8px 14px; }

.team-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.team-member { display: flex; align-items: center; gap: 12px; background: var(--surface-sunken); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; }
.team-member-info { flex: 1; min-width: 0; }
.team-member-name { font-size: 14px; font-weight: 700; color: var(--ink); }
.team-member-sub { font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }
.team-member-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 6px; font-size: 11.5px; color: var(--text-muted); }
.team-activity { font-weight: 600; }
.team-activity.aktiv { color: var(--gruen-fg); }
.team-activity.pausiert { color: var(--gold-fg); }
.team-needs-help { color: var(--rot-fg); font-weight: 600; }
.team-remove-btn { color: var(--text-muted); flex-shrink: 0; }
.team-remove-btn:hover { color: var(--rot-fg); border-color: var(--rot-fg); }

.team-my-leader { background: var(--surface-sunken); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; }
.team-my-leader-head { display: flex; align-items: baseline; gap: 8px; font-size: 13px; color: var(--text-muted); }
.team-my-leader-head strong { font-size: 16px; color: var(--ink); }
.team-my-leader-actions { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }

.team-join { background: var(--surface-sunken); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; }
.team-join-row { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.team-join-input { flex: 1; min-width: 180px; background: var(--surface); border: 1px solid var(--border); color: var(--ink); border-radius: 8px; padding: 9px 12px; font-family: var(--font-mono); font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; }
.team-join-input:focus { outline: 2px solid var(--primary); }

.team-upsell { background: linear-gradient(180deg, var(--gold-bg), transparent); border: 1px solid var(--gold); border-radius: 12px; padding: 16px 18px; }
.team-upsell h4 { margin: 0 0 6px; font-size: 15px; color: var(--gold-fg); }
.team-upsell-list { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.team-upsell-list li { font-size: 13px; color: var(--ink); }

/* ---------- Content-Engine ---------- */
.content-panel { margin-bottom: 16px; }
.content-industry { font-size: 12px; font-weight: 500; color: var(--primary); }
.content-hint { font-size: 11.5px; color: var(--text-muted); }
.content-ai-notice {
  background: var(--gold-bg);
  border: 1px solid var(--gold);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.content-ai-copy {
  align-self: flex-start;
  background: var(--gold);
  color: #04141A;
  border: none;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-body);
}
.content-ai-copy:hover { filter: brightness(1.05); }

/* ---------- Erfolgs-Journal ---------- */
.journal-streak {
  background: var(--gold-bg);
  border: 1px solid var(--gold);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13.5px;
  color: var(--text);
  margin-bottom: 14px;
}
.journal-streak b { color: var(--gold-fg); }
#journalForm { display: flex; flex-direction: column; gap: 12px; margin-bottom: 12px; }
.journal-print-btn { align-self: flex-start; margin-bottom: 4px; }
.journal-week-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin: 14px 0 8px;
}
.journal-week-title span { font-weight: 500; color: var(--text-muted); }
.journal-week { display: flex; flex-direction: column; gap: 6px; }
.journal-day {
  display: grid;
  grid-template-columns: 130px 90px 1fr;
  gap: 10px;
  align-items: baseline;
  background: var(--surface-sunken);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 12.5px;
}
.journal-day-empty { opacity: 0.55; }
.journal-day-label { font-weight: 600; color: var(--ink); }
.journal-day-profit { color: var(--gruen-fg); font-weight: 700; white-space: nowrap; }
.journal-day-successes { color: var(--text-muted); line-height: 1.45; word-break: break-word; }

/* ---------- Profit-Tracking ---------- */
.profit-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.profit-kpi {
  background: var(--surface-sunken);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  text-align: center;
}
.profit-kpi b { display: block; font-family: var(--font-mono); font-size: 18px; font-weight: 700; color: var(--ink); }
.profit-kpi.pos b { color: var(--gruen-fg); }
.profit-kpi.neg b { color: var(--rot-fg); }
.profit-kpi span { font-size: 11px; color: var(--text-muted); }
#profitCapitalForm { display: flex; align-items: flex-end; gap: 12px; margin-bottom: 14px; }
#profitCapitalForm label { flex: 1; }
.profit-chart-title { font-size: 13px; font-weight: 700; color: var(--ink); margin: 6px 0 10px; }
.profit-chart {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 140px;
  padding: 8px 6px 0;
  background: var(--surface-sunken);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.profit-bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  gap: 4px;
}
.profit-bar { width: 100%; max-width: 26px; border-radius: 4px 4px 0 0; min-height: 3px; }
.profit-bar.pos { background: var(--gruen-fg); }
.profit-bar.neg { background: var(--rot-fg); }
.profit-bar.zero { background: #42566E; }
.profit-bar-label { font-size: 9px; color: var(--text-muted); }
.profit-hint { margin-top: 12px; font-size: 12px; color: var(--text-muted); line-height: 1.5; }

.content-body { padding: 16px 18px; display: flex; flex-direction: column; gap: 14px; max-height: 640px; overflow-y: auto; }
.content-today { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.content-card { background: var(--surface-sunken); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; transition: border-color .2s ease, opacity .2s ease; }
.content-card.done { border-color: var(--gruen-fg); opacity: 0.82; }
.content-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.content-card-label { font-size: 13px; font-weight: 700; color: var(--ink); }
.content-done-btn { background: var(--surface); border: 1px solid var(--border); color: var(--text-muted); border-radius: 999px; padding: 5px 11px; font-size: 11.5px; font-weight: 600; cursor: pointer; font-family: var(--font-body); }
.content-done-btn:hover { border-color: var(--gruen-fg); color: var(--gruen-fg); }
.content-done-btn.checked { background: var(--gruen-bg); border-color: var(--gruen-fg); color: var(--gruen-fg); }
.content-text { margin: 0; white-space: pre-wrap; word-break: break-word; font-family: var(--font-body); font-size: 12.5px; line-height: 1.55; color: var(--text); max-height: 150px; overflow-y: auto; padding-right: 6px; }
.content-card-actions { display: flex; justify-content: flex-end; }
.content-copy-btn { background: var(--primary); color: #04141A; border: none; }
.content-design { display: flex; flex-direction: column; gap: 8px; }
.content-design-img { width: 100%; height: 280px; object-fit: cover; object-position: top; border-radius: 10px; border: 1px solid var(--border); display: block; background: #070B12; }
.content-design-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.content-design-actions .btn { padding: 5px 11px; font-size: 12px; }
.content-upcoming { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.content-upcoming-label { font-size: 12px; font-weight: 600; color: var(--text-muted); margin-right: 2px; }
.content-day-pill { background: var(--surface-sunken); border: 1px solid var(--border); border-radius: 999px; padding: 5px 11px; font-size: 11.5px; color: var(--text-muted); }
.content-day-pill.full { border-color: var(--gruen-fg); color: var(--gruen-fg); }

/* ---------- Content-Bibliothek ---------- */
.lib-toolbar { display: flex; flex-direction: column; gap: 12px; margin-bottom: 14px; }
.lib-folders { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.lib-pill-wrap { display: inline-flex; align-items: center; gap: 2px; }
.lib-pill {
  background: var(--surface-sunken); border: 1px solid var(--border);
  color: var(--text); border-radius: 999px; padding: 6px 12px; font-size: 12px;
  font-weight: 600; cursor: pointer; font-family: var(--font-body);
}
.lib-pill em { font-style: normal; color: var(--text-muted); font-size: 11px; margin-left: 4px; }
.lib-pill:hover { border-color: var(--primary); }
.lib-pill.active { background: var(--primary-tint); border-color: var(--primary); color: var(--primary); }
.lib-folder-del { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 12px; padding: 2px 4px; border-radius: 6px; }
.lib-folder-del:hover { color: var(--rot-fg); background: var(--rot-bg); }
.lib-toolbar-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.lib-card {
  background: var(--surface-sunken); border: 1px solid var(--border); border-radius: 12px;
  padding: 10px; display: flex; flex-direction: column; gap: 8px; min-width: 0;
}
.lib-thumb { width: 100%; height: 150px; object-fit: cover; object-position: top; border-radius: 8px; border: 1px solid var(--border); background: #070B12; }
.lib-card-title { font-size: 12.5px; font-weight: 700; color: var(--ink); line-height: 1.35; word-break: break-word; }
.lib-card-meta { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.lib-card-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.lib-card-actions .btn, .lib-card-foot .btn { padding: 4px 9px; font-size: 11.5px; }
.lib-card-foot { display: flex; gap: 6px; align-items: center; }
.lib-move {
  flex: 1; min-width: 0; background: var(--surface); border: 1px solid var(--border);
  color: var(--text); border-radius: 8px; padding: 5px 8px; font-size: 11.5px; font-family: var(--font-body);
}
.lib-text-preview { margin: 0; white-space: pre-wrap; word-break: break-word; font-family: var(--font-body); font-size: 11.5px; line-height: 1.5; color: var(--text-muted); max-height: 120px; overflow: hidden; }
.lib-file-icon { font-size: 28px; }

/* ---------- Textbausteine & Datei-Ablage ---------- */
.dm-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: -6px; }
.dm-select {
  flex: 1; min-width: 140px;
  background: var(--surface-sunken); border: 1px solid var(--border);
  color: var(--ink); border-radius: 8px; padding: 8px 10px;
  font-family: var(--font-body); font-size: 13px;
}
.dm-attach-note { font-size: 12.5px; color: var(--primary); margin-top: 2px; }
.asset-list { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.asset-item { display: flex; align-items: center; gap: 10px; background: var(--surface-sunken); border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; }
.asset-item-main { flex: 1; min-width: 0; }
.asset-item-title { font-size: 13.5px; font-weight: 600; color: var(--ink); word-break: break-word; }
.asset-item-meta { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.asset-item-del { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 16px; }
.asset-item-del:hover { color: var(--rot-fg); }

/* ---------- Co-Pilot (Mission Control) ---------- */
.copilot-panel {
  flex: 0 0 auto;
  background:
    radial-gradient(circle at 100% 0%, rgba(232, 169, 74, 0.14), transparent 55%),
    radial-gradient(circle at 0% 100%, rgba(62, 232, 222, 0.12), transparent 50%),
    linear-gradient(135deg, #0E1B2B 0%, #070B14 100%);
  border: 1px solid rgba(232, 169, 74, 0.28);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  box-shadow: var(--shadow-lg);
}
.copilot-body { display: flex; flex-direction: column; gap: 12px; color: var(--ink); }

.copilot-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.copilot-head-left { display: flex; flex-direction: column; gap: 3px; }
.copilot-title { font-family: var(--font-display); font-size: 20px; font-weight: 700; letter-spacing: 0.01em; }
.copilot-dayline { font-size: 12.5px; opacity: 0.85; color: var(--gold-fg); font-weight: 600; }
.copilot-head-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.copilot-status {
  font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 999px;
  border: 1px solid transparent; background: rgba(0,0,0,0.25);
}
.copilot-status.copilot-tone-green { color: var(--gruen-fg); border-color: rgba(76, 201, 140, 0.4); background: rgba(76, 201, 140, 0.12); }
.copilot-status.copilot-tone-blue { color: #6FC6FF; border-color: rgba(111, 198, 255, 0.4); background: rgba(111, 198, 255, 0.12); }
.copilot-status.copilot-tone-amber { color: var(--gold-fg); border-color: rgba(232, 169, 74, 0.4); background: rgba(232, 169, 74, 0.12); }
.copilot-status.copilot-tone-red { color: var(--rot-fg); border-color: rgba(255, 122, 142, 0.4); background: rgba(255, 122, 142, 0.12); }
.copilot-streak { font-size: 13px; font-weight: 700; color: #FFD98A; }

.copilot-goal { background: rgba(0,0,0,0.22); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius); padding: 10px 14px; }
.copilot-goal-row { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 6px; }

.copilot-coach {
  font-size: 13.5px; line-height: 1.5; padding: 10px 14px; border-radius: var(--radius);
  border-left: 3px solid var(--gold); background: rgba(0,0,0,0.22);
}
.copilot-coach.copilot-tone-green { border-left-color: var(--gruen-fg); }
.copilot-coach.copilot-tone-red { border-left-color: var(--rot-fg); }

.copilot-start-btn {
  background: linear-gradient(90deg, var(--primary), #0B9E96); color: #04141A; border: none;
  font-family: var(--font-display); font-weight: 700; font-size: 14px;
  padding: 12px 16px; border-radius: var(--radius); cursor: pointer;
  box-shadow: 0 6px 18px rgba(62, 232, 222, 0.25);
}
.copilot-start-btn:hover { filter: brightness(1.06); }

.copilot-missions { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.copilot-mission {
  background: rgba(0,0,0,0.22); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius);
  padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; transition: border-color .2s ease, box-shadow .2s ease;
}
.copilot-mission.active { border-color: rgba(232, 169, 74, 0.55); box-shadow: 0 0 0 1px rgba(232, 169, 74, 0.25), 0 8px 22px rgba(0,0,0,0.35); }
.copilot-mission.complete { border-color: rgba(76, 201, 140, 0.4); opacity: 0.92; }
.copilot-mission-head { display: flex; align-items: flex-start; gap: 10px; }
.copilot-mission-badge {
  flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 13px; color: var(--text-muted); background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.15);
}
.copilot-mission.active .copilot-mission-badge { color: #04141A; background: var(--gold); border-color: var(--gold); }
.copilot-mission.complete .copilot-mission-badge { color: #04141A; background: var(--gruen-fg); border-color: var(--gruen-fg); }
.copilot-mission-titles { flex: 1; min-width: 0; }
.copilot-mission-title { font-weight: 700; font-size: 14px; color: var(--ink); }
.copilot-mission-subtitle { font-size: 11.5px; color: var(--text-muted); margin-top: 2px; line-height: 1.35; }
.copilot-mission-count { font-weight: 700; font-size: 13px; color: var(--ink); white-space: nowrap; }
.copilot-mission-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 2px; }

.copilot-action-btn {
  background: var(--surface); border: 1px solid var(--border); color: var(--ink);
  border-radius: 999px; padding: 8px 14px; font-size: 13px; font-weight: 600; cursor: pointer; font-family: var(--font-body);
  transition: border-color .15s ease, transform .15s ease;
}
.copilot-action-btn:hover { border-color: var(--primary); transform: translateY(-1px); }
.copilot-action-btn.small { padding: 5px 11px; font-size: 12px; }
.copilot-action-btn.reply { color: var(--gruen-fg); border-color: rgba(76, 201, 140, 0.35); background: rgba(76, 201, 140, 0.08); }
.copilot-action-btn.noreply { color: var(--text-muted); }
.copilot-action-btn.noreply:hover { color: var(--rot-fg); border-color: var(--rot-fg); }

.copilot-hint { font-size: 11.5px; color: var(--text-muted); line-height: 1.4; }
.copilot-done-note { font-size: 12px; color: var(--gruen-fg); font-weight: 600; }
.copilot-empty-leads { font-size: 12px; color: var(--text-muted); line-height: 1.4; }

.copilot-leads { display: flex; flex-direction: column; gap: 6px; }
.copilot-lead { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; background: rgba(255,255,255,0.03); border-radius: 8px; padding: 6px 10px; }
.copilot-lead.copilot-followup { flex-direction: column; align-items: stretch; }
.copilot-lead-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.copilot-lead-name { font-size: 13px; font-weight: 600; color: var(--ink); word-break: break-word; }
.copilot-lead-reason { font-size: 11px; color: var(--gold-fg); white-space: nowrap; }
.copilot-lead-btns { display: flex; flex-wrap: wrap; gap: 6px; }

.copilot-msg { display: flex; flex-direction: column; gap: 6px; margin-top: 2px; }
.copilot-msg-text {
  margin: 0; white-space: pre-wrap; word-break: break-word; font-family: var(--font-body);
  font-size: 12px; line-height: 1.5; color: var(--text); background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; padding: 8px 10px; max-height: 140px; overflow-y: auto;
}
.copilot-noreply-options { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 2px; }
.copilot-noreply-label { font-size: 11.5px; color: var(--text-muted); }

.copilot-streak-block { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 10px; }
.copilot-streak-label { font-size: 12.5px; color: var(--text-muted); }
.copilot-calendar { display: flex; gap: 5px; }
.copilot-day {
  width: 24px; height: 24px; border-radius: 6px; display: flex; align-items: center; justify-content: center;
  font-size: 10.5px; font-weight: 700;
}
.copilot-day.done { background: rgba(76, 201, 140, 0.2); color: var(--gruen-fg); border: 1px solid rgba(76, 201, 140, 0.4); }
.copilot-day.miss { background: rgba(0,0,0,0.3); color: var(--text-muted); border: 1px solid rgba(255,255,255,0.1); }
.copilot-day.today { border-color: var(--gold); color: var(--gold-fg); }

@media (max-width: 720px) {
  .copilot-missions { grid-template-columns: 1fr; }
  .copilot-streak-block { flex-direction: column; align-items: flex-start; }
}

/* ---------- Co-Pilot-Leiste (immer sichtbar) ---------- */
.copilot-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
  display: flex; align-items: center; gap: 12px;
  padding: 8px 16px;
  background: linear-gradient(135deg, #0E1B2B 0%, #070B14 100%);
  border-top: 1px solid rgba(232, 169, 74, 0.35);
  box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.35);
  color: var(--ink);
  font-size: 13px;
}
.copilot-bar[data-tone="green"] { border-top-color: rgba(76, 201, 140, 0.55); }
.copilot-bar[data-tone="red"] { border-top-color: rgba(255, 122, 142, 0.55); }
.copilot-bar-main { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.copilot-bar-icon { font-size: 15px; }
.copilot-bar-status { font-weight: 700; color: var(--gold-fg); white-space: nowrap; }
.copilot-bar[data-tone="green"] .copilot-bar-status { color: var(--gruen-fg); }
.copilot-bar[data-tone="red"] .copilot-bar-status { color: var(--rot-fg); }
.copilot-bar-streak { font-weight: 700; color: #FFD98A; white-space: nowrap; }
.copilot-bar-next { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0; }
.copilot-bar-next-label { color: var(--text-muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.05em; white-space: nowrap; }
.copilot-bar-next-text { font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.copilot-bar-btn {
  flex-shrink: 0; background: linear-gradient(90deg, var(--primary), #0B9E96); color: #04141A;
  border: none; border-radius: 999px; padding: 8px 18px; font-family: var(--font-display);
  font-weight: 700; font-size: 13px; cursor: pointer; box-shadow: 0 4px 12px rgba(62, 232, 222, 0.25);
}
.copilot-bar-btn:hover { filter: brightness(1.06); }

@media (max-width: 720px) {
  .copilot-bar { flex-wrap: wrap; gap: 6px 10px; padding: 8px 12px; }
  .copilot-bar-next { order: 3; flex-basis: 100%; }
  .copilot-bar-next-label { display: none; }
  .copilot-bar-btn { margin-left: auto; }
}

/* ---------- Wachstums-Helfer: Einwand-Bibliothek, Mindset-Coach, Momentum ---------- */
.growth-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.growth-tab {
  border: 1px solid var(--border); background: var(--surface-sunken); color: var(--text);
  border-radius: 999px; padding: 7px 14px; font-size: 12.5px; font-weight: 700; cursor: pointer;
  font-family: var(--font-body);
}
.growth-tab.active { background: var(--blau-bg); color: var(--blau-fg); border-color: transparent; }
.growth-search {
  width: 100%; box-sizing: border-box; border: 1px solid var(--border); border-radius: 8px;
  padding: 10px 12px; font-family: var(--font-body); font-size: 13.5px;
  background: var(--surface-sunken); color: var(--text); margin-bottom: 14px;
}
.growth-cards { display: flex; flex-direction: column; gap: 14px; }
.growth-card {
  border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px;
  background: var(--surface);
}
.growth-card-title { font-size: 14px; font-weight: 800; color: var(--text); margin-bottom: 4px; }
.growth-card-question { font-size: 12.5px; color: var(--text-muted); font-style: italic; margin-bottom: 10px; }
.growth-cat { margin-top: 10px; }
.growth-cat-title { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); margin-bottom: 8px; }
.growth-answer {
  border: 1px solid var(--border); border-radius: 10px; padding: 12px; margin-bottom: 8px;
  background: var(--surface-sunken);
}
.growth-answer-text { font-size: 13.5px; line-height: 1.55; color: var(--text); margin-bottom: 6px; }
.growth-answer-tipp { font-size: 12px; color: var(--blau-fg); background: var(--blau-bg); border-radius: 8px; padding: 6px 10px; margin-bottom: 8px; }
.growth-copy { font-size: 12.5px; }
.angst-eyebrow { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); margin-bottom: 6px; }
.angst-affirmation {
  margin-top: 12px; font-size: 13.5px; font-weight: 700; font-style: italic; color: var(--gruen-fg);
  background: var(--gruen-bg); border-radius: 8px; padding: 10px 12px; line-height: 1.5;
}
.angst-note { margin-top: 12px; font-size: 12px; color: var(--text-muted); }
.angst-rejection-intro { font-size: 13px; color: var(--text-muted); margin-bottom: 12px; line-height: 1.5; }
.angst-step { display: flex; gap: 12px; margin-bottom: 12px; align-items: flex-start; }
.angst-step-num {
  flex: 0 0 26px; height: 26px; border-radius: 50%; background: var(--blau-bg); color: var(--blau-fg);
  font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center;
}
.angst-step-text { font-size: 13.5px; line-height: 1.5; color: var(--text); }
.angst-step-body { font-size: 12.5px; color: var(--text-muted); margin-top: 3px; }
.angst-timer { margin-top: 12px; border: 1px solid var(--border); border-radius: 10px; padding: 12px; }
.angst-timer-step { font-size: 11px; font-weight: 800; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px; }
.angst-timer-text { font-size: 14px; font-weight: 700; color: var(--text); line-height: 1.5; margin-bottom: 10px; }
.angst-timer-bar { height: 6px; border-radius: 999px; background: var(--surface-sunken); overflow: hidden; }
.angst-timer-bar div { height: 100%; background: var(--blau-fg); transition: width 1s linear; }
.angst-timer-done { font-size: 13.5px; font-weight: 700; color: var(--gruen-fg); }
.momentum-note { font-size: 12px; color: var(--text-muted); margin-bottom: 12px; }
.momentum-inputs { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin-bottom: 14px; }
.momentum-input {
  border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; text-align: center;
  background: var(--surface-sunken);
}
.momentum-input span { display: block; font-size: 11px; color: var(--text-muted); margin-bottom: 4px; }
.momentum-input strong { font-size: 18px; color: var(--text); }
.momentum-warn { font-size: 12.5px; color: var(--rot-fg); background: var(--rot-bg); border-radius: 8px; padding: 9px 12px; margin-bottom: 14px; }
.momentum-projection-title { font-size: 13px; font-weight: 800; color: var(--text); margin-bottom: 10px; }
.momentum-projection { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 8px; margin-bottom: 14px; }
.momentum-big {
  border: 1px solid var(--border); border-radius: 12px; padding: 16px 8px; text-align: center;
  background: var(--surface);
}
.momentum-big span { font-size: 22px; display: block; margin-bottom: 4px; }
.momentum-big strong { display: block; font-size: 26px; color: var(--text); line-height: 1.1; }
.momentum-big small { display: block; font-size: 11.5px; color: var(--text-muted); margin-top: 2px; }
.momentum-nudge { font-size: 12.5px; color: var(--text-muted); line-height: 1.5; }
.momentum-goal {
  font-size: 13.5px; line-height: 1.5; color: var(--text);
  background: var(--blau-bg); color: var(--blau-fg); border-radius: 10px; padding: 12px 14px; margin-bottom: 10px;
}
.momentum-goal.on-track { background: var(--gruen-bg); color: var(--gruen-fg); }
.momentum-goal strong { font-weight: 800; }
.momentum-assumption { font-size: 11.5px; color: var(--text-muted); margin: 0 0 10px; }
#momentumAdoptBtn { margin-bottom: 8px; }
.momentum-adopt-done { font-size: 13px; font-weight: 700; color: var(--gruen-fg); background: var(--gruen-bg); border-radius: 8px; padding: 9px 12px; margin-bottom: 10px; }

/* Proaktiver Mindset-Coach-Hinweis (Toast) */
.angst-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: min(560px, calc(100vw - 32px));
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  padding: 12px 14px;
  font-size: 13.5px;
  color: var(--text);
  line-height: 1.45;
}
.angst-toast span { flex: 1; }
#angstToastBtn {
  white-space: nowrap;
  border: none;
  background: var(--blau-fg);
  color: #fff;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
#angstToastBtn:hover { filter: brightness(1.08); }
#angstToastClose {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 4px;
}
#angstToastClose:hover { color: var(--text); }

/* ============================================================
   Funktionen aus der Seitenleiste: Vollbild statt kleinem Dialog.
   Nur die angeklickte Funktion ist sichtbar (body.function-view).
   ============================================================ */
body.function-view .modal-overlay.open:not(.onboarding-overlay) {
  align-items: stretch;
  justify-content: stretch;
  z-index: 250; /* über den schwebenden Assistenten (z 200/215) */
}
body.function-view .modal-overlay.open:not(.onboarding-overlay) .modal {
  width: 100%;
  max-width: 100%;
  height: 100vh;
  max-height: 100vh;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
body.function-view .modal-overlay.open:not(.onboarding-overlay) .modal-header {
  flex: 0 0 auto;
  padding: 18px 30px;
}
body.function-view .modal-overlay.open:not(.onboarding-overlay) .modal-body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 26px 32px;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

/* ============================================================
   Morgen-Routine v2 — groß, klar, motivierend (Startseite)
   Überschreibt die kompakte Banner-Variante weiter oben.
   ============================================================ */
.morning-banner {
  padding: 46px 48px 42px;
  gap: 28px;
  background:
    radial-gradient(1100px 520px at 92% -12%, rgba(62, 232, 222, 0.2), transparent 62%),
    radial-gradient(820px 420px at 4% 112%, rgba(232, 169, 74, 0.13), transparent 56%),
    linear-gradient(140deg, #10233A 0%, #081020 55%, #060A12 100%);
  border: 1px solid rgba(62, 232, 222, 0.28);
  box-shadow: var(--shadow-lg), 0 0 70px rgba(62, 232, 222, 0.09);
  animation: morningIn .5s ease;
}
@keyframes morningIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

.morning-hero { display: flex; flex-direction: column; gap: 20px; }
.morning-header-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }

.morning-avatar {
  width: 78px; height: 78px; font-size: 34px;
  box-shadow:
    0 0 0 3px rgba(255,255,255,0.14),
    0 0 0 6px rgba(0,0,0,0.4),
    0 0 26px rgba(62,232,222,0.45),
    inset 0 2px 3px rgba(255,255,255,0.35);
}
.morning-heading { flex: 1 1 auto; min-width: 220px; }
.morning-heading h2 {
  margin: 0 0 6px;
  font-size: clamp(30px, 4.5vw, 46px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: var(--ink);
  text-shadow: 0 0 28px rgba(62, 232, 222, 0.35);
}
.morning-name {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.85;
  color: var(--primary);
  margin: 0;
}
.morning-datetime {
  font-size: 15px;
  padding: 8px 18px;
  background: rgba(0,0,0,0.28);
  border: 1px solid rgba(255,255,255,0.24);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

.morning-streak-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.morning-streak {
  font-size: 16px;
  padding: 9px 18px;
  gap: 8px;
  background: linear-gradient(135deg, rgba(232,169,74,0.28), rgba(232,169,74,0.1));
  border-color: rgba(232,169,74,0.55);
  box-shadow: 0 0 18px rgba(232,169,74,0.25);
  animation: flamePulse 2.4s ease-in-out infinite;
}
@keyframes flamePulse {
  0%, 100% { box-shadow: 0 0 14px rgba(232,169,74,0.22); }
  50%      { box-shadow: 0 0 26px rgba(232,169,74,0.5); }
}
.morning-streak-off {
  background: rgba(126,143,166,0.14); border-color: var(--border); color: var(--text-muted);
  box-shadow: none; animation: none;
}
.morning-record {
  font-size: 15px;
  padding: 8px 16px;
}
.morning-tip { font-size: 15px; line-height: 1.5; }

.morning-streak-bar-wrap {
  height: 12px;
  border-radius: 999px;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.14);
  overflow: hidden;
}
.morning-streak-bar-fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), #FFD98A);
  box-shadow: 0 0 14px rgba(232,169,74,0.55);
  transition: width .8s cubic-bezier(.2,.8,.2,1);
}

.morning-summary {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 16px;
  line-height: 1.55;
}
.morning-summary-line { font-weight: 700; color: var(--ink); }
.morning-summary-go { font-weight: 700; color: var(--primary); }
.morning-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  border: 1px solid transparent;
}
.morning-chip-btn { font-family: inherit; cursor: pointer; transition: transform 0.15s ease, filter 0.15s ease; }
.morning-chip-btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.morning-chip-rot { background: var(--rot-bg); border-color: rgba(255,92,114,0.45); color: var(--rot-fg); }
.morning-chip-blau { background: var(--blau-bg); border-color: rgba(93,157,255,0.45); color: var(--blau-fg); }
.morning-chip-gruen { background: var(--gruen-bg); border-color: rgba(74,222,148,0.45); color: var(--gruen-fg); }

.morning-quote {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(16px, 1.9vw, 20px);
  font-weight: 500;
  font-style: italic;
  line-height: 1.65;
  color: #E9F2F9;
  border-left: 5px solid var(--gold);
  padding: 8px 0 8px 22px;
  background: linear-gradient(90deg, rgba(232,169,74,0.12), transparent 70%);
  border-radius: 0 10px 10px 0;
}

.morning-cta-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 6px; }
.morning-cta {
  border: none;
  border-radius: 16px;
  padding: 16px 30px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  color: #04141A;
  background: linear-gradient(180deg, #8FF6EE 0%, var(--primary) 55%, var(--primary-dark) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), inset 0 -2px 3px rgba(0,0,0,0.15), 0 0 22px rgba(62,232,222,0.35);
  transition: transform .08s ease, box-shadow .2s ease;
}
.morning-cta:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), inset 0 -2px 3px rgba(0,0,0,0.2), 0 0 30px rgba(62,232,222,0.5); }
.morning-cta:active { transform: scale(0.98); }
.morning-cta-hint { font-size: 14px; opacity: 0.9; }

/* Fokus-Liste: große, klare Karten statt kompakter Zeilen */
.morning-cards {
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 24px;
}
.morning-focus {
  padding: 24px 26px;
  max-height: 420px;
  background: rgba(62,232,222,0.07);
  border: 1px solid rgba(62,232,222,0.2);
}
.morning-focus h3 {
  margin: 0 0 12px;
  font-size: 13.5px;
  letter-spacing: 0.07em;
}
.morning-focus .focus-item {
  padding: 15px 2px;
  gap: 8px 12px;
  font-size: 15px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.morning-focus .focus-name { font-size: 15.5px; font-weight: 700; color: var(--ink); }
.morning-focus .focus-reason {
  font-size: 11.5px;
  font-weight: 700;
  background: rgba(0,0,0,0.28);
  border: 1px solid rgba(255,255,255,0.16);
  color: var(--text);
  padding: 3px 10px;
  border-radius: 999px;
}
.morning-focus .focus-msg-toggle,
.morning-focus .focus-replied-btn,
.morning-focus .focus-noreply-btn { font-size: 12px; padding: 4px 10px; }
.morning-focus .focus-msg { padding: 11px 13px; }
.morning-focus .focus-msg-text { font-size: 13.5px; }

.morning-angst { padding: 24px 26px; }
.morning-angst-label { font-size: 12px; }
.morning-angst-title { font-size: 16px; }
.morning-angst-affirmation { font-size: 13.5px; }
.morning-angst-btn { font-size: 12.5px; padding: 6px 14px; }

/* Auf breiten Monitoren nicht endlos lange Zeilen: Lesebreite begrenzen. */
.morning-summary,
.morning-quote { max-width: 940px; }

/* Einstellung „Fokus-Liste ausblenden" respektieren. */
.morning-banner.morning-banner-no-focus #morningFocusPanel { display: none; }
.morning-banner.morning-banner-no-focus .morning-cards { grid-template-columns: 1fr; }

@media (max-width: 900px) {
  .morning-cards { grid-template-columns: 1fr; }
  .morning-banner { padding: 34px 26px 32px; }
  .morning-avatar { width: 62px; height: 62px; font-size: 27px; }
}

/* ============================================================
   KI-Upline: Der Leader-Check — alle Prozesse auf einen Blick
   ============================================================ */
.upline-panel {
  flex: 0 0 auto;
  background: linear-gradient(140deg, #0C1522 0%, #081020 60%, #060A12 100%);
  border: 1px solid rgba(232,169,74,0.25);
  border-radius: var(--radius-lg);
  padding: 26px 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: var(--shadow-lg);
}
.upline-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(232,169,74,0.2);
}
.upline-head-icon {
  flex-shrink: 0;
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  background: linear-gradient(135deg, rgba(232,169,74,0.25), rgba(232,169,74,0.08));
  border: 1px solid rgba(232,169,74,0.5);
  border-radius: 13px;
  box-shadow: 0 0 18px rgba(232,169,74,0.2);
}
.upline-head-text { flex: 1 1 auto; min-width: 0; }
.upline-head-title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-transform: uppercase;
}
.upline-head-sub { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.upline-head-badge {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em;
  background: rgba(62,232,222,0.12);
  border: 1px solid rgba(62,232,222,0.4);
  color: var(--primary);
  border-radius: 999px;
  padding: 4px 12px;
}

.upline-locked {
  margin-top: 16px;
  padding: 28px 24px;
  text-align: center;
  border: 1px dashed rgba(120,130,160,0.35);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(120,130,160,0.06), rgba(120,130,160,0.02));
}
.upline-locked-icon { font-size: 34px; }
.upline-locked-title {
  font-family: var(--font-display);
  font-size: 17px; font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-top: 8px;
  text-transform: uppercase;
}
.upline-locked-text {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 520px;
  margin: 8px auto 0;
}
.upline-locked-btn { margin-top: 16px; }
.upline-locked-note { font-size: 12px; color: var(--text-muted); margin-top: 10px; opacity: 0.85; }

.upline-verdict {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.55;
  padding: 14px 18px;
  border-radius: var(--radius);
  border: 1px solid transparent;
}
.upline-verdict-dot { flex-shrink: 0; width: 12px; height: 12px; border-radius: 50%; margin-top: 5px; box-shadow: 0 0 10px currentColor; }
.upline-verdict-inner { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.upline-verdict-badge {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  border-radius: 999px;
  padding: 3px 11px;
  border: 1px solid;
}
.upline-verdict-badge.ai {
  background: rgba(62,232,222,0.12);
  border-color: rgba(62,232,222,0.45);
  color: var(--primary);
}
.upline-verdict-badge.rule {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.2);
  color: var(--text-muted);
}
.upline-verdict-red    { background: rgba(255,92,114,0.12); border-color: rgba(255,92,114,0.4);  color: #FFB3BE; }
.upline-verdict-red .upline-verdict-dot    { background: var(--rot-fg); }
.upline-verdict-amber  { background: rgba(232,169,74,0.12);  border-color: rgba(232,169,74,0.4);  color: #F5CD96; }
.upline-verdict-amber .upline-verdict-dot  { background: var(--gold); }
.upline-verdict-green  { background: rgba(74,222,148,0.1);   border-color: rgba(74,222,148,0.35); color: #9BE8C4; }
.upline-verdict-green .upline-verdict-dot  { background: var(--gruen-fg); }

.upline-checks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}
.upline-check {
  background: var(--surface-sunken);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-left: 3px solid var(--border);
}
.upline-check-red   { border-left-color: var(--rot-fg);   background: rgba(255,92,114,0.05); }
.upline-check-amber { border-left-color: var(--gold);     background: rgba(232,169,74,0.05); }
.upline-check-green { border-left-color: var(--gruen-fg); background: rgba(74,222,148,0.04); }
.upline-check-head { display: flex; align-items: center; gap: 8px; }
.upline-check-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.upline-check-red .upline-check-dot   { background: var(--rot-fg);   box-shadow: 0 0 8px var(--rot-fg); }
.upline-check-amber .upline-check-dot { background: var(--gold);     box-shadow: 0 0 8px var(--gold); }
.upline-check-green .upline-check-dot { background: var(--gruen-fg); box-shadow: 0 0 8px var(--gruen-fg); }
.upline-check-title { font-size: 13.5px; font-weight: 700; color: var(--ink); flex: 1 1 auto; }
.upline-check-count {
  font-family: var(--font-mono);
  font-size: 12.5px; font-weight: 700;
  background: rgba(0,0,0,0.35);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px 9px;
}
.upline-check-expl { font-size: 12.5px; line-height: 1.5; color: var(--text); opacity: 0.92; }
.upline-check-action { font-size: 12.5px; font-weight: 700; color: var(--primary); line-height: 1.45; }
.upline-leads { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 2px; }
.upline-check-execute { margin-top: 8px; font-size: 12.5px; padding: 6px 14px; }
.upline-lead {
  font-size: 11.5px; font-weight: 600;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px 9px;
  color: var(--text);
}

@media (max-width: 700px) {
  .upline-panel { padding: 20px 18px; }
  .upline-verdict { font-size: 14.5px; padding: 12px 14px; }
}
/* ---------------------------------------------------------------------------
   Abend-Routine (zweiter Leader-Baustein) — Nacht-Blau statt Gold, gleiche
   Sprach-DNA wie die KI-Upline: ehrlich, kompakt, handlungsorientiert.
--------------------------------------------------------------------------- */
.evening-panel {
  flex: 0 0 auto;
  background: linear-gradient(140deg, #0B1220 0%, #080D18 60%, #050810 100%);
  border: 1px solid rgba(93,157,255,0.28);
  border-radius: var(--radius-lg);
  padding: 26px 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: var(--shadow-lg);
}
.evening-icon {
  background: linear-gradient(135deg, rgba(93,157,255,0.25), rgba(93,157,255,0.08));
  border-color: rgba(93,157,255,0.5);
  box-shadow: 0 0 18px rgba(93,157,255,0.22);
}
.evening-panel .upline-head { border-bottom-color: rgba(93,157,255,0.22); }
.evening-panel .upline-head-badge {
  background: rgba(93,157,255,0.14);
  border-color: rgba(93,157,255,0.45);
  color: var(--blau-fg);
}

.evening-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  align-items: start;
}
.evening-block {
  background: var(--surface-sunken);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  border-top: 3px solid var(--border);
}
.evening-block-overdue { border-top-color: var(--rot-fg);   background: rgba(255,92,114,0.05); }
.evening-block-preview { border-top-color: var(--blau-fg);  background: rgba(93,157,255,0.05); }
.evening-block-head {
  font-size: 13.5px; font-weight: 700; color: var(--ink);
  display: flex; align-items: center; gap: 8px;
}
.evening-count {
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 700;
  background: rgba(0,0,0,0.35);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 1px 8px;
  color: var(--text);
}
.evening-actions { display: flex; flex-direction: column; gap: 6px; }
.evening-stat {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-size: 13px; color: var(--text);
}
.evening-stat b { font-family: var(--font-mono); font-size: 14px; color: var(--primary); }
.evening-total { font-size: 12.5px; color: var(--text-muted); }
.evening-total b { color: var(--ink); }
.evening-note { font-size: 12.5px; color: var(--text-muted); line-height: 1.5; }
.evening-journal {
  border-top: 1px dashed var(--border);
  padding-top: 9px;
  display: flex; flex-direction: column; gap: 6px;
}
.evening-block-title { font-size: 12px; font-weight: 700; color: var(--gold-fg); }
.evening-journal-item { font-size: 12.5px; line-height: 1.5; color: var(--text); }
.evening-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text);
  padding: 5px 0;
  border-bottom: 1px dashed rgba(255,255,255,0.06);
}
.evening-item:last-child { border-bottom: none; }
.evening-item-icon { flex-shrink: 0; }
.evening-item-name { flex: 1 1 auto; min-width: 0; line-height: 1.4; }
.evening-item-meta {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 700;
  color: var(--rot-fg);
  background: rgba(255,92,114,0.1);
  border: 1px solid rgba(255,92,114,0.35);
  border-radius: 999px;
  padding: 2px 8px;
}

@media (max-width: 700px) {
  .evening-panel { padding: 20px 18px; }
  .evening-grid { grid-template-columns: 1fr; }
}

