/* KompassCS CRM – Marke: Blau · leichter Lavendel · Gold (sparsam/schnell) */
:root {
  color-scheme: dark;
  --brand-blue: #1e60f2;
  --brand-blue-deep: #003399;
  --brand-blue-soft: #7aa7ff;
  --brand-rosa: #e8b4d4;
  --brand-lavender: #d8c4f0;
  --brand-violet: #8b7cc9;
  --brand-gold: #c5a02d;
  --brand-gold-soft: #e8c45a;
  --bg: #0b1428;
  --bg2: #121c36;
  --card: rgba(148, 180, 255, 0.09);
  --card-hover: rgba(148, 180, 255, 0.15);
  --border: rgba(148, 180, 255, 0.24);
  --text: #f1f5fb;
  --muted: #a3b4cb;
  --accent: var(--brand-blue);
  --accent2: var(--brand-blue-soft);
  --kompass-blue: var(--brand-blue);
  --kompass-blue-deep: var(--brand-blue-deep);
  --kompass-gold: var(--brand-gold);
  --kompass-gold-soft: var(--brand-gold-soft);
  --kompass-lavender: var(--brand-lavender);
  --green: #34d399;
  --amber: #fbbf24;
  --rose: #fb7185;
  --radius: 14px;
  --shadow: 0 4px 14px rgba(5, 12, 32, 0.22);
  --glow-blue: 0 0 0 1px rgba(30, 96, 242, 0.32);
  --glow-gold: 0 0 0 1px rgba(197, 160, 45, 0.38);
  --glow-rosa: 0 0 0 1px rgba(232, 180, 212, 0.2);
  --field-bg: #121c36;
  --field-text: #f8fafc;
  --select-bg: #f4f7fb;
  --select-text: #0f172a;
  --select-border: #94a3b8;
  --section-mark: var(--brand-gold);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "DM Sans", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
}

a { color: #c5d4f0; text-decoration: none; }
a:hover { color: var(--accent2); text-decoration: underline; }

.bg-glow {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse 55% 40% at 8% 0%, rgba(30, 96, 242, 0.28), transparent 58%),
    radial-gradient(ellipse 45% 35% at 92% 8%, rgba(232, 180, 212, 0.14), transparent 55%),
    var(--bg);
}
.bg-glow::before,
.bg-glow::after { content: none; display: none; }

.layout {
  position: relative; z-index: 1;
  min-height: 100vh;
}
@media (min-width: 1101px) {
  .layout {
    margin-left: 260px;
  }
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 260px;
    z-index: 50;
    overflow: hidden;
  }
}
.sidebar {
  border-right: 1px solid rgba(148, 180, 255, 0.22);
  padding: 1.75rem 1.25rem 0;
  background:
    linear-gradient(180deg, rgba(30, 96, 242, 0.16), transparent 32%),
    var(--bg2);
  box-shadow: inset -1px 0 0 rgba(197, 160, 45, 0.14);
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.brand { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.25rem; flex-shrink: 0; }
.brand-logo {
  width: 64px; height: 64px; border-radius: 12px; object-fit: contain;
  background: #fff; padding: 3px;
  border: 1px solid rgba(30, 96, 242, 0.35);
}
.brand-icon {
  width: 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(135deg, var(--kompass-blue), var(--kompass-blue-deep));
  display: grid; place-items: center; font-weight: 700; font-size: 1.1rem; color: var(--kompass-gold);
  box-shadow: var(--glow-blue);
  border: 1px solid rgba(197, 160, 45, 0.45);
}
.brand h1 { font-size: 1.05rem; font-weight: 700; line-height: 1.2; }
.brand p { font-size: 0.875rem; color: var(--muted); }

.nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  flex: 1 1 auto;
  min-height: 0;
  margin: 0;
  padding: 0 0 0.75rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}
.nav::-webkit-scrollbar { display: none; }
.nav li {
  display: block;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0.85rem;
  border-radius: 10px;
  color: #e2e8f0;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.25;
  min-height: 2.4rem;
  box-sizing: border-box;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.15s;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.03);
  margin-bottom: 0.2rem;
}
.nav a.active {
  border-color: rgba(197, 160, 45, 0.5);
  background: linear-gradient(135deg, #6b8fff, #2a6af5);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(197, 160, 45, 0.28), 0 4px 14px rgba(30, 96, 242, 0.28);
  font-weight: 650;
  text-decoration: none;
}
@media (hover: hover) and (pointer: fine) {
  .nav a:hover {
    background: rgba(30, 96, 242, 0.2);
    border-color: rgba(148, 180, 255, 0.32);
    color: #fff;
    text-decoration: none;
    transform: translateX(4px);
  }
}

.sidebar-foot {
  flex-shrink: 0;
  margin-top: 0;
  padding: 0.85rem 0.15rem 1.1rem;
  font-size: 0.72rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 2;
}
.sidebar-foot > div {
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 0.35rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sidebar-foot a { color: var(--muted); font-size: 0.95rem; }
.sidebar-foot a:hover { color: var(--text); }

.demo-banner { display: none; }
.demo-start-banner { display: none; }
.demo-foot-bar { display: none !important; }
.demo-start-panel {
  border-color: rgba(139, 92, 246, 0.45);
  background: rgba(139, 92, 246, 0.08);
}
.sidebar-demo-toggle,
.nav-demo,
.nav-demo-btn,
.nav-demo-btn-exit,
.mobile-demo-form,
.mobile-demo-chip { display: none !important; }
.demo-active-panel {
  border-color: rgba(139, 92, 246, 0.35);
  background: rgba(34, 211, 238, 0.06);
}
.nav-demo-top { margin-bottom: 0.35rem; }
.demo-start-wrap { display: none; }
.demo-chip-form {
  position: fixed;
  top: 0.85rem;
  right: 1rem;
  z-index: 460;
  margin: 0;
}
.demo-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.85rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.88);
  color: var(--text);
  font: inherit;
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
}
.demo-chip.is-active {
  border-color: rgba(34, 211, 238, 0.55);
  background: rgba(34, 211, 238, 0.14);
}

.main {
  padding: 1.75rem 2rem 2.5rem;
  overflow: auto;
  background-image:
    linear-gradient(rgba(148, 180, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 180, 255, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
}

.topbar {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 1rem; margin-bottom: 1.75rem; flex-wrap: wrap;
}
.topbar h2 {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #f8f5ff;
}
.topbar p { color: var(--muted); font-size: 0.95rem; margin-top: 0.25rem; }
.task-contact { display: flex; flex-wrap: wrap; gap: 0.35rem 0.9rem; margin-top: 0.45rem; color: var(--text); font-size: 1rem; }
.task-contact a { font-size: 1rem; }
.topbar {
  position: relative;
  z-index: 40;
}
.topbar-actions { display: flex; gap: 0.65rem; flex-wrap: wrap; align-items: center; position: relative; z-index: 41; }
.company-hub-header { position: relative; z-index: 40; }

.topbar-more { position: relative; display: inline-block; }
.topbar-more > summary { list-style: none; cursor: pointer; }
.topbar-more > summary::-webkit-details-marker { display: none; }
.topbar-more-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.35rem);
  z-index: 80;
  min-width: 14rem;
  max-width: min(20rem, 86vw);
  padding: 0.35rem;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: #0c1630;
  color: #fff;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  display: grid;
  gap: 0.1rem;
}
details.topbar-more:not([open]) > .topbar-more-menu,
.topbar-more:not([open]) > .topbar-more-menu,
.topbar-more:not([open]) .topbar-more-menu {
  display: none !important;
  pointer-events: none !important;
}
dialog:not([open]) {
  display: none !important;
}
.topbar-more-menu a,
.topbar-more-menu .topbar-more-btn,
.topbar-more-menu button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.5rem 0.7rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #fff;
  -webkit-text-fill-color: #fff;
  font: inherit;
  font-size: 0.88rem;
  text-decoration: none;
  cursor: pointer;
}
.topbar-more-menu a:hover,
.topbar-more-menu button:hover { background: rgba(255,255,255,0.08); }
.topbar-more-menu form { margin: 0; }
.topbar-more-danger { color: #fb7185 !important; -webkit-text-fill-color: #fb7185 !important; }

:where(
  input:not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="file"]):not([type="hidden"]):not([type="range"]),
  textarea
) {
  color: var(--field-text) !important;
  -webkit-text-fill-color: var(--field-text) !important;
  background-color: var(--field-bg) !important;
  caret-color: var(--field-text);
}
/* Selects hell: native Windows/Edge-Dropdowns bleiben lesbar (kein weißer Text auf weiß) */
:where(select) {
  color: var(--select-text) !important;
  -webkit-text-fill-color: var(--select-text) !important;
  background-color: var(--select-bg) !important;
  caret-color: var(--select-text);
  color-scheme: light;
}
select option,
select optgroup {
  background-color: #ffffff;
  color: #0f172a;
}

.live-badge {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.4rem 0.75rem; border-radius: 999px;
  background: rgba(52, 211, 153, 0.12); border: 1px solid rgba(52, 211, 153, 0.25);
  color: var(--green); font-size: 0.78rem; font-weight: 600;
}
.live-badge::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
}

.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem; margin-bottom: 1.5rem;
}
.stat {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.15rem 1.25rem;
  transition: background 0.15s, border-color 0.15s;
}
.stat:hover {
  background: var(--card-hover);
  border-color: rgba(30, 96, 242, 0.35);
}
.stat-label { font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.stat-value { font-size: 2rem; font-weight: 700; margin: 0.35rem 0 0.15rem; line-height: 1; }
.stat-sub { font-size: 0.8rem; color: var(--muted); }
.stat-icon { float: right; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; font-size: 1.1rem; }
.icon-cyan { background: rgba(30, 96, 242, 0.16); color: var(--accent2); }
.icon-purple { background: rgba(197, 160, 45, 0.14); color: var(--kompass-gold-soft); }
.icon-green { background: rgba(52, 211, 153, 0.12); color: var(--green); }
.icon-amber { background: rgba(251, 191, 36, 0.12); color: var(--amber); }
.icon-rose { background: rgba(251, 113, 133, 0.12); color: var(--rose); }

.grid-2 { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 1.25rem; margin-bottom: 1.25rem; }

.panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 42%),
    var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem;
  margin-bottom: 1.25rem;
}
.panel:last-child { margin-bottom: 0; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; margin-bottom: 1rem; flex-wrap: wrap; }
.panel-head h3 {
  font-size: 1.05rem;
  font-weight: 650;
  padding-left: 0.65rem;
  border-left: 3px solid var(--section-mark);
  line-height: 1.25;
}
.panel-head span { font-size: 0.95rem; color: var(--muted); }

.company-name-cell strong {
  display: block;
  margin-bottom: 0.45rem;
}

.company-list-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.15rem;
}

.company-list-actions .btn-danger {
  font-weight: 700;
}

.table-wrap .company-name-cell .company-list-actions {
  margin-top: 0.5rem;
}

@media (max-width: 900px) {
  .table-wrap .company-name-cell .company-list-actions .btn {
    flex: 1 1 auto;
    min-width: 5.5rem;
    justify-content: center;
  }
  .table-wrap .company-name-cell .company-list-actions .btn-danger {
    flex: 1 1 100%;
  }
}

.table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid rgba(148, 180, 255, 0.1);
  background: rgba(0, 0, 0, 0.12);
}
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th {
  text-align: left; padding: 0.75rem 0.85rem; color: #b8c7de;
  font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em;
  border-bottom: 1px solid rgba(197, 160, 45, 0.28);
  white-space: nowrap;
  background: rgba(30, 96, 242, 0.08);
  font-weight: 650;
}
td { padding: 0.8rem 0.85rem; border-bottom: 1px solid rgba(255, 255, 255, 0.045); vertical-align: middle; }
tr:hover td {
  background: rgba(30, 96, 242, 0.08);
}

.form-grid { display: grid; gap: 0.85rem; max-width: 640px; }
.company-form-wrap .form-grid { max-width: none; }
.contact-formset .form-grid-2 { max-width: none; }
.contact-formset input[type="text"],
.contact-formset input[type="email"],
.contact-formset input[type="tel"] {
  width: 100%;
  background: var(--field-bg);
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: var(--field-text);
  border-radius: var(--radius);
  padding: 0.45rem 0.6rem;
  font-size: 0.9rem;
  color-scheme: dark;
}
.contact-formset select {
  width: 100%;
  background: var(--select-bg);
  border: 1px solid var(--select-border);
  color: var(--select-text);
  border-radius: var(--radius);
  padding: 0.45rem 0.6rem;
  font-size: 0.9rem;
  color-scheme: light;
}
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; }
.form-group { display: grid; gap: 0.35rem; }
.form-group label { font-size: 0.95rem; color: var(--muted); font-weight: 500; }

input, textarea {
  width: 100%; padding: 0.65rem 0.85rem; border-radius: 10px;
  border: 1px solid rgba(148, 180, 255, 0.28);
  background: var(--field-bg);
  color: var(--field-text);
  font: inherit; font-size: 1rem; transition: 0.2s;
  color-scheme: dark;
}
select {
  width: 100%; padding: 0.65rem 0.85rem; border-radius: 10px;
  border: 1px solid var(--select-border);
  background: var(--select-bg);
  color: var(--select-text);
  font: inherit; font-size: 1rem; transition: 0.2s;
  color-scheme: light;
  font-weight: 600;
}
textarea { min-height: 100px; resize: vertical; }
input[type="checkbox"], input[type="radio"] {
  width: auto; flex: 0 0 auto; padding: 0; margin: 0.15rem 0 0;
  accent-color: var(--kompass-blue);
}
.checkbox-label { display: flex; align-items: flex-start; gap: 0.5rem; }
input:focus, textarea:focus {
  outline: none; border-color: rgba(30, 96, 242, 0.75);
  box-shadow: 0 0 0 2px rgba(30, 96, 242, 0.35);
}
select:focus {
  outline: none; border-color: var(--kompass-blue);
  box-shadow: 0 0 0 2px rgba(197, 160, 45, 0.4);
}
select option,
select optgroup {
  background-color: #ffffff;
  color: #0f172a;
}
select option:checked,
select option:hover {
  background-color: #1e60f2;
  color: #ffffff;
}
input::placeholder,
textarea::placeholder {
  color: #94a3b8;
  opacity: 1;
}
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill {
  -webkit-text-fill-color: #f8fafc;
  box-shadow: 0 0 0 1000px var(--field-bg) inset;
  transition: background-color 99999s ease-out;
}
select:-webkit-autofill {
  -webkit-text-fill-color: var(--select-text);
  box-shadow: 0 0 0 1000px var(--select-bg) inset;
  transition: background-color 99999s ease-out;
}
.form-actions { display: flex; gap: 0.65rem; flex-wrap: wrap; margin-top: 0.5rem; }
.form-errors {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
}
.field-error { color: #ef4444; font-size: 0.88rem; margin: 0.2rem 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.7rem 1rem; border: 0; border-radius: 10px; cursor: pointer;
  font: inherit; font-weight: 600; font-size: 0.95rem;
  background: linear-gradient(135deg, #6b8fff, #1e60f2);
  color: #fff;
  transition: transform 0.15s, filter 0.15s, box-shadow 0.15s;
  text-decoration: none;
  box-shadow: 0 0 0 1px rgba(197, 160, 45, 0.42), 0 6px 16px rgba(30, 96, 242, 0.28);
}
.btn:hover {
  filter: brightness(1.08);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(232, 196, 90, 0.55), 0 8px 18px rgba(30, 96, 242, 0.34);
}
.btn-secondary {
  background: linear-gradient(135deg, #243556, #1c2a44);
  color: #e8eef4;
  box-shadow: none;
}
.btn-secondary:hover {
  filter: brightness(1.08);
}
.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  box-shadow: none;
}
.btn-ghost:hover {
  border-color: rgba(30, 96, 242, 0.5);
  background: rgba(30, 96, 242, 0.12);
  transform: none;
}
.btn-danger { background: linear-gradient(135deg, var(--rose), #e11d48); color: #fff; }
.btn-sm { padding: 0.45rem 0.75rem; font-size: 0.95rem; }

.tags { display: flex; gap: 0.35rem; flex-wrap: wrap; }
.tag, .badge {
  display: inline-flex; align-items: center;
  font-size: 0.875rem; padding: 0.2rem 0.45rem; border-radius: 6px;
  font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em;
}
.tag-ok, .badge-success { background: rgba(52, 211, 153, 0.15); color: var(--green); }
.tag-warn, .badge-warning { background: rgba(251, 191, 36, 0.15); color: var(--amber); }
.tag-danger, .badge-danger { background: rgba(251, 113, 133, 0.15); color: var(--rose); }
.tag-info, .badge-info { background: rgba(30, 96, 242, 0.18); color: var(--accent2); }
.tag-muted, .badge-muted { background: rgba(148, 163, 184, 0.15); color: var(--muted); }

.avatar {
  width: 40px; height: 40px; border-radius: 11px; flex-shrink: 0;
  display: grid; place-items: center; font-weight: 700; font-size: 0.82rem;
  background: linear-gradient(135deg, rgba(30, 96, 242, 0.35), rgba(197, 160, 45, 0.22));
  border: 1px solid rgba(30, 96, 242, 0.35);
}

.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.detail-item label {
  display: block; font-size: 0.875rem; color: var(--muted);
  text-transform: none; letter-spacing: 0; margin-bottom: 0.25rem;
}
.detail-item p { font-size: 1rem; }
.empty-state {
  color: var(--muted);
  font-size: 0.95rem;
  padding: 2.1rem 1.25rem;
  text-align: center;
  line-height: 1.5;
}

.toast-wrap {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.5rem;
  margin: 0 0 1rem;
  max-width: 42rem;
}
.toast {
  padding: 0.8rem 1.05rem; border-radius: 12px; font-size: 0.88rem;
  border: 1px solid rgba(148, 180, 255, 0.22);
  background: rgba(12, 22, 48, 0.96);
  box-shadow: 0 8px 22px rgba(5, 12, 32, 0.28);
}
.toast.success { background: rgba(52, 211, 153, 0.14); color: var(--green); border-color: rgba(52, 211, 153, 0.35); }
.toast.error, .toast.danger { background: rgba(251, 113, 133, 0.14); color: var(--rose); border-color: rgba(251, 113, 133, 0.35); }
.toast.warning { background: rgba(251, 191, 36, 0.14); color: var(--amber); border-color: rgba(251, 191, 36, 0.35); }
.toast.info { background: rgba(30, 96, 242, 0.16); color: var(--accent2); border-color: rgba(30, 96, 242, 0.4); }

.error-banner {
  background: rgba(251, 113, 133, 0.12); border: 1px solid rgba(251, 113, 133, 0.3);
  color: var(--rose); padding: 1.25rem; border-radius: var(--radius); margin-bottom: 1.25rem;
}

.kanban-board { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; align-items: start; }
.kanban-column {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius); min-height: 420px; display: flex; flex-direction: column;
}
.kanban-column-head {
  padding: 0.85rem 1rem; border-bottom: 1px solid rgba(197, 160, 45, 0.22);
  display: flex; justify-content: space-between; align-items: center;
}
.kanban-column-head h4 { font-size: 0.88rem; font-weight: 600; }
.kanban-count { font-size: 0.72rem; color: var(--muted); background: var(--card); padding: 0.15rem 0.45rem; border-radius: 999px; }
.kanban-column-body { padding: 0.75rem; display: grid; gap: 0.65rem; flex: 1; min-height: 120px; }
.kanban-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  padding: 0.85rem; cursor: grab; transition: 0.2s;
}
.kanban-card:hover {
  background: var(--card-hover);
  border-color: rgba(30, 96, 242, 0.4);
  box-shadow: 0 0 20px rgba(30, 96, 242, 0.12);
}
.kanban-card:active { cursor: grabbing; }
.kanban-card-title { font-size: 0.9rem; font-weight: 600; margin-bottom: 0.35rem; }
.kanban-card-meta { font-size: 0.75rem; color: var(--muted); }
.kanban-card.sortable-ghost { opacity: 0.4; }
.kanban-card.sortable-drag { box-shadow: var(--shadow); }
.kanban-card-overdue { border-color: rgba(251, 113, 133, 0.45); background: rgba(251, 113, 133, 0.06); }

.login-body .bg-glow {
  background:
    radial-gradient(ellipse 50% 42% at 12% 18%, rgba(232, 180, 212, 0.35), transparent 55%),
    radial-gradient(ellipse 48% 40% at 88% 12%, rgba(30, 96, 242, 0.45), transparent 52%),
    linear-gradient(145deg, #1e60f2 0%, #3b6ef0 42%, #7a6fc4 78%, #c9a8de 100%);
}
.login-body .bg-glow::before {
  content: "";
  display: block;
  position: absolute; inset: 0;
  opacity: 0.14;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.55) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.55) 1px, transparent 1px);
  background-size: 56px 56px;
}
.login-page {
  position: relative; z-index: 1;
  min-height: 100vh; display: grid; place-items: center; padding: 1.5rem;
}
.login-peaks {
  display: block;
  width: min(100%, 440px);
  height: 34px;
  margin: 0 auto 0.85rem;
  pointer-events: none;
}
.login-card {
  position: relative;
  width: 100%; max-width: 440px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 18px;
  padding: 2.15rem 2rem 2rem;
  box-shadow: 0 22px 50px rgba(20, 30, 80, 0.28);
  overflow: hidden;
}
.login-card::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(180deg, var(--brand-gold-soft), var(--brand-blue), var(--brand-rosa));
}
.login-card .brand { justify-content: center; margin-bottom: 1.35rem; }
.login-card .brand-logo {
  width: 88px; height: 88px;
  box-shadow: 0 10px 28px rgba(0, 40, 120, 0.22), 0 0 0 1px rgba(197, 160, 45, 0.35);
}
.login-card .brand h1 { color: #0f172a; font-size: 1.4rem; }
.login-card .brand p { color: #334155; font-weight: 600; letter-spacing: 0.04em; }
.login-card h2 {
  text-align: center;
  font-size: 2rem;
  font-weight: 750;
  letter-spacing: -0.035em;
  margin-bottom: 0.4rem;
  color: #0b1220;
}
.login-card .subtitle {
  text-align: center;
  color: #475569;
  font-size: 0.95rem;
  margin: 0 auto 1.7rem;
  max-width: 22rem;
  line-height: 1.45;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(15, 23, 42, 0.1);
}
.login-body { color-scheme: light; }
.login-card .form-group label { color: #334155; font-weight: 600; }
.login-card input,
.login-card input:focus,
.login-card input:-webkit-autofill,
.login-card input:-webkit-autofill:hover,
.login-card input:-webkit-autofill:focus,
.login-card input:autofill {
  background: #ffffff !important;
  background-color: #ffffff !important;
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
  caret-color: #0f172a;
  border-color: rgba(15, 23, 42, 0.22) !important;
  color-scheme: light;
  /* Browser-Autofill malt sonst das dunkle CRM-Feld hinter die Schrift. */
  box-shadow: 0 0 0 1000px #ffffff inset !important;
  transition: background-color 99999s ease-out;
}
.login-card input:focus,
.login-card input:-webkit-autofill:focus {
  border-color: rgba(30, 96, 242, 0.75) !important;
  box-shadow: 0 0 0 1000px #ffffff inset, 0 0 0 2px rgba(30, 96, 242, 0.35) !important;
}
.login-card .btn {
  margin-top: 0.35rem;
  min-height: 2.85rem;
  font-size: 1.02rem;
}

.calendar-mini { display: grid; gap: 0.55rem; }
.calendar-item {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.65rem 0.75rem; border-radius: 10px;
  background: rgba(255, 255, 255, 0.02); border: 1px solid transparent; transition: 0.2s;
}
.calendar-item:hover { border-color: var(--border); background: rgba(255, 255, 255, 0.04); }
.calendar-date { width: 44px; text-align: center; flex-shrink: 0; }
.calendar-date strong { display: block; font-size: 1.1rem; line-height: 1; }
.calendar-date small { font-size: 0.68rem; color: var(--muted); text-transform: uppercase; }
.calendar-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.dot-blue { background: var(--accent); }
.dot-green { background: var(--green); }
.dot-red { background: var(--rose); }
.dot-yellow { background: var(--amber); }

.task-company,
.task-company a {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 650;
  text-decoration: none;
}
.task-company a:hover { text-decoration: underline; }

.search-bar { display: flex; gap: 0.65rem; margin-bottom: 1.25rem; flex-wrap: wrap; align-items: stretch; }
.search-bar input[type="search"],
.search-bar input[type="text"] { flex: 1; min-width: 12rem; }
.search-bar select { width: auto; min-width: 8rem; flex-shrink: 0; }

.search-suggest {
  position: fixed;
  z-index: 90;
  max-height: min(22rem, 60vh);
  overflow: auto;
  padding: 0.35rem;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: #0c1630;
  color: #fff;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}
.search-suggest-item {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
}
.search-suggest-item.is-active,
.search-suggest-item:hover {
  background: rgba(29, 78, 216, 0.45);
  color: #fff;
  text-decoration: none;
}
.search-suggest-kind {
  flex: 0 0 auto;
  margin-top: 0.15rem;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.search-suggest-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  color: #fff;
}
.search-suggest-text strong {
  font-size: 0.9rem;
  font-weight: 650;
  color: #fff;
}
.search-suggest-text small {
  color: #cbd5e1;
  font-size: 0.78rem;
}

.mobile-topbar {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: 2.75rem;
  padding: 0 0.65rem;
  align-items: center;
  gap: 0.5rem;
  background: rgba(11, 20, 40, 0.97);
  border-bottom: 1px solid rgba(148, 180, 255, 0.18);
  box-shadow: 0 4px 14px rgba(5, 12, 32, 0.2);
}
.mobile-brand {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  min-width: 0;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  line-height: 1.1;
}
.mobile-brand .brand-title { font-size: 1rem; }
.mobile-brand .brand-sub { font-size: 0.68rem; font-weight: 500; color: var(--muted); }
.mobile-brand:hover { text-decoration: none; }
.mobile-search-btn {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  text-decoration: none;
  font-size: 1rem;
}
.mobile-nav-toggle {
  display: grid;
  gap: 0.28rem;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0.55rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}
.mobile-nav-toggle-bar {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}
.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(0, 0, 0, 0.55);
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.sidebar-backdrop.is-visible {
  display: block;
}
body.nav-open { overflow: hidden; touch-action: none; }

.mobile-bottom-nav { display: none !important; }
.mobile-module-nav { display: none !important; }

@media (max-width: 1100px) {
  .layout { margin-left: 0; }
  .mobile-topbar {
    display: flex;
    top: 0;
    left: 0;
    right: 0;
    padding-top: env(safe-area-inset-top, 0px);
    padding-left: 0.65rem;
    padding-right: 0.65rem;
    padding-bottom: 0;
    height: calc(2.75rem + env(safe-area-inset-top, 0px));
    min-height: calc(2.75rem + env(safe-area-inset-top, 0px));
    z-index: 450;
    box-sizing: border-box;
  }
  .demo-chip-form {
    top: calc(0.45rem + env(safe-area-inset-top, 0px));
    right: 3.35rem;
  }
  .main {
    position: relative;
    z-index: 10;
    /* Nur Topbar-Höhe + winziger Abstand — kein doppeltes Safe-Area */
    padding-top: calc(2.85rem + env(safe-area-inset-top, 0px));
    padding-left: 0.85rem;
    padding-right: 0.85rem;
    padding-bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
  }
  .main a,
  .main button,
  .main .btn,
  .main input,
  .main select,
  .main label,
  .mobile-topbar a,
  .mobile-topbar button {
    touch-action: manipulation;
  }
  .sidebar-backdrop {
    z-index: 430;
  }
  .sidebar {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(300px, 86vw);
    z-index: 440;
    overflow: hidden;
    -webkit-overflow-scrolling: touch;
    padding: calc(0.65rem + env(safe-area-inset-top, 0px)) 1rem max(1rem, env(safe-area-inset-bottom));
    box-shadow: var(--shadow);
    background: rgba(11, 15, 25, 0.98);
    border-right: 1px solid var(--border);
    transform: translate3d(-105%, 0, 0);
    transition: transform 0.2s ease;
    pointer-events: none;
    visibility: visible;
  }
  .sidebar.is-open {
    transform: translate3d(0, 0, 0);
    pointer-events: auto;
  }
  .sidebar .brand { display: flex !important; margin-bottom: 0.75rem; }
  .sidebar .brand-logo { width: 40px; height: 40px; }
  .sidebar .nav a {
    min-height: 2.75rem;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    z-index: 1;
  }
  .sidebar .nav a:focus,
  .sidebar .nav a:focus-visible {
    outline: none;
  }
  .topbar {
    position: relative;
    top: auto;
    z-index: 1;
    background: transparent;
    backdrop-filter: none;
    margin: 0 0 0.65rem;
    padding: 0;
    border-bottom: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
  }
  .topbar h2 { font-size: 1.2rem; margin: 0; }
  .topbar p { margin-top: 0.15rem; }
  .topbar-actions {
    width: 100%;
    gap: 0.4rem;
  }
  .topbar-actions .btn {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 0.82rem;
    padding: 0.45rem 0.65rem;
  }
  .grid-2, .form-grid-2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .panel { padding: 1rem; }
  .kanban-board { overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 0.5rem; }
}

@media (max-width: 768px) {
  .form-grid { max-width: none; }
  .form-grid-2 { grid-template-columns: 1fr; }
  input, textarea, select { font-size: 16px; }
  a, button, .btn, input, select, label, .mobile-module-link {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }
  .btn { min-height: 44px; touch-action: manipulation; }
  .btn-sm { min-height: 38px; padding: 0.5rem 0.65rem; }
  .search-bar .btn { width: 100%; }
  .search-bar select { width: 100%; }
  .table-wrap { overflow-x: visible; margin: 0; }
  .table-wrap table { display: block; width: 100%; border-collapse: separate; border-spacing: 0; }
  .table-wrap thead { display: none; }
  .table-wrap tbody { display: flex; flex-direction: column; gap: 0.75rem; }
  .table-wrap tr {
    display: block;
    padding: 0.85rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
  }
  .table-wrap td {
    display: block;
    padding: 0.25rem 0;
    border: none;
    font-size: 0.88rem;
  }
  .table-wrap td:first-child {
    font-size: 0.95rem;
    margin-bottom: 0.35rem;
  }
  .table-wrap td:last-child {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.65rem;
    padding-top: 0.65rem;
    border-top: 1px solid var(--border);
  }
  .table-wrap td:last-child .btn { flex: 1 1 calc(33% - 0.25rem); min-width: calc(33% - 0.25rem); }
  .table-wrap .company-row-actions .btn-danger { flex: 1 1 100%; min-width: 100%; margin-top: 0.25rem; }
  .table-wrap .empty-state { display: block; text-align: center; }
  .topbar-actions { flex-direction: column; align-items: stretch; }
  .topbar-actions .btn { min-width: 100%; width: 100%; justify-content: center; }
  .form-actions {
    flex-direction: column;
    align-items: stretch;
    position: sticky;
    bottom: 0;
    z-index: 30;
    background: rgba(11, 15, 25, 0.96);
    padding: 0.75rem 0;
    margin-top: 1rem;
    border-top: 1px solid var(--border);
  }
  .form-actions .btn { width: 100%; justify-content: center; }
  .stats { grid-template-columns: 1fr; }
  .toast-wrap { max-width: none; margin-bottom: 0.75rem; }
  .dash-modal { width: 100%; max-height: 95vh; border-radius: 12px; }
  .detail-grid { grid-template-columns: 1fr; }
  .panel-head { flex-direction: column; align-items: flex-start; }
}

@media (min-width: 1101px) {
  .mobile-topbar { display: none !important; }
  .mobile-module-nav { display: none !important; }
  .sidebar-backdrop { display: none !important; }
}

.monitor-panel .panel-head span { font-size: 0.85rem; color: var(--muted); }
.monitor-watchdog {
  padding: 0 1rem 0.75rem;
  font-size: 0.82rem;
  color: var(--muted);
}
.monitor-server.monitor-pending {
  border-color: rgba(234, 179, 8, 0.45);
}

.offer-design-intro-body { padding: 0 1rem 1rem; color: var(--muted); font-size: 0.9rem; }
.offer-design-intro-body p { margin: 0 0 0.75rem; }
.offer-design-intro-body ul { margin: 0; padding-left: 1.2rem; }
.offer-design-intro-body li { margin-bottom: 0.35rem; }
.offer-design-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}
.offer-design-form { padding: 0 1rem 1rem; max-width: none; }
.offer-design-form .form-hint { font-size: 0.78rem; color: var(--muted); margin: 0; }
.table-actions { display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; }
.inline-form { display: inline; margin: 0; }
.monitor-alert-count { color: var(--rose); font-weight: 600; }
.monitor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.85rem;
  padding: 0 1rem 1rem;
}
.monitor-server {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  transition: 0.2s;
}
.monitor-server-link {
  display: block;
  text-decoration: none;
  color: inherit;
  flex: 1;
}
.monitor-ack-form { margin: 0.75rem 0 0; }
.monitor-ack-form .btn { width: 100%; }
.monitor-server:hover {
  background: var(--card-hover);
  transform: translateY(-1px);
}
.monitor-server.monitor-critical {
  border-color: rgba(251, 113, 133, 0.55);
  background: rgba(251, 113, 133, 0.08);
  box-shadow: inset 0 0 0 1px rgba(251, 113, 133, 0.15);
}
.monitor-server-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}
.monitor-server-head strong { font-size: 0.95rem; flex: 1; }
.monitor-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.monitor-status-label {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.65rem;
}
.monitor-status-label.is-critical { color: var(--rose); font-weight: 600; }
.monitor-metrics { display: flex; flex-direction: column; gap: 0.45rem; }
.monitor-metric-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 0.2rem;
}
.monitor-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.monitor-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--green);
  transition: width 0.4s ease;
}
.monitor-bar-fill.bar-warn { background: var(--amber); }
.monitor-bar-fill.bar-critical { background: var(--rose); }

.monitor-alert-panel {
  border-color: rgba(251, 113, 133, 0.45);
  background: rgba(251, 113, 133, 0.06);
}
.monitor-alert-list { padding: 0 1rem 1rem; display: flex; flex-direction: column; gap: 0.65rem; }
.monitor-alert-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(251, 113, 133, 0.25);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.15);
}
.monitor-alert-body p { margin: 0.25rem 0; font-size: 0.88rem; }
.monitor-alert-body small { color: var(--muted); font-size: 0.75rem; }
.notify-watchdog {
  padding: 0 1rem 0.75rem;
  font-size: 0.82rem;
  color: var(--muted);
}
.notify-type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.5rem 1rem;
}
.notify-check {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
  cursor: pointer;
}
.notify-check input { width: auto; margin: 0; }

.server-form { max-width: 720px; padding: 1rem; }
.form-section {
  grid-column: 1 / -1;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1rem 0.75rem;
  margin: 0;
}
.form-section legend {
  padding: 0 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
}
.form-hint {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0 0 0.65rem;
}

.monitor-row-critical { background: rgba(251, 113, 133, 0.08); }
.monitor-row-warning { background: rgba(251, 191, 36, 0.06); }

.form-group-full { grid-column: 1 / -1; }

.dashboard-overdue-panel {
  border-color: rgba(251, 113, 133, 0.35);
  background: rgba(251, 113, 133, 0.06);
}
.dashboard-task-overdue {
  border-left: 3px solid var(--rose);
  padding-left: 0.5rem;
  background: rgba(251, 113, 133, 0.04);
  border-radius: 8px;
}
.task-row-overdue {
  background: rgba(251, 113, 133, 0.08);
}
.task-row-overdue td:first-child {
  border-left: 3px solid var(--rose);
}
.task-row-handed {
  background: rgba(52, 211, 153, 0.14);
}
.task-row-handed td:first-child {
  border-left: 3px solid var(--green);
}
.task-row-high-win {
  background: rgba(52, 211, 153, 0.08);
}
.task-row-high-win td:first-child {
  border-left: 3px solid var(--green);
}
.kanban-card-high-win {
  border-color: rgba(52, 211, 153, 0.45);
  box-shadow: 0 0 0 1px rgba(52, 211, 153, 0.12);
}
.badge.win-prob-high {
  font-weight: 600;
}
.dashboard-task-healthy {
  border-left: 3px solid var(--green);
  padding-left: 0.5rem;
  background: rgba(52, 211, 153, 0.04);
  border-radius: 8px;
}
.dashboard-task-stale {
  border-left: 3px solid var(--amber);
  padding-left: 0.5rem;
  background: rgba(96, 165, 250, 0.04);
  border-radius: 8px;
}
.dot-amber {
  background: var(--amber);
}
.dot-rose {
  background: var(--rose);
}

.company-list-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
  padding: 0.65rem 1rem;
  margin-bottom: 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--card);
  font-size: 0.82rem;
  color: var(--muted);
}
.company-list-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.legend-swatch {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 3px;
  flex-shrink: 0;
}
.legend-swatch-hot { background: var(--green); box-shadow: 0 0 0 1px rgba(52, 211, 153, 0.5); }
.legend-swatch-ok { background: rgba(52, 211, 153, 0.5); }
.legend-swatch-warn { background: #fbbf24; }
.legend-swatch-alert { background: var(--rose); }

.company-row-hot td {
  background: rgba(52, 211, 153, 0.12) !important;
  box-shadow: inset 4px 0 0 var(--green);
}
.company-list-legend-sort {
  color: var(--text);
  margin-right: 0.35rem;
}

.company-row-ok td {
  background: rgba(52, 211, 153, 0.06) !important;
  box-shadow: inset 4px 0 0 var(--green);
}

.company-row-stale td {
  background: rgba(251, 191, 36, 0.1) !important;
  box-shadow: inset 4px 0 0 #fbbf24;
}

.company-row-alert td {
  background: rgba(251, 113, 133, 0.12) !important;
  box-shadow: inset 4px 0 0 var(--rose);
}

/* Gelb klar als Warnung (nicht Blau) */
.badge-warning,
.tag-warn {
  background: rgba(251, 191, 36, 0.2) !important;
  color: #fbbf24 !important;
  border: 1px solid rgba(251, 191, 36, 0.35);
}

/* Buttons in Kunden-/Unternehmensliste: Schrift immer lesbar */
.company-list-panel .btn,
.company-hub .btn,
.company-hub-actions .btn,
.topbar-actions .btn {
  font-weight: 700;
  -webkit-text-fill-color: currentColor;
}

.company-list-panel .btn-ghost,
.company-hub .btn-ghost,
.company-hub-actions .btn-ghost,
.topbar-actions .btn-ghost,
.company-row-actions .btn-ghost {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

.company-list-panel .btn-ghost:hover,
.company-hub .btn-ghost:hover,
.company-row-actions .btn-ghost:hover,
.topbar-actions .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

.company-list-panel .btn-secondary,
.company-hub .btn-secondary,
.company-hub-actions .btn-secondary,
.company-row-actions .btn-secondary {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  border: 1px solid transparent;
}

.company-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  white-space: nowrap;
}
.company-inline-signal {
  display: inline-block;
  margin-left: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  vertical-align: middle;
}
.company-inline-signal-hot { color: var(--green); }
.company-inline-signal-alert { color: var(--rose); }

.badge-danger {
  background: rgba(251, 113, 133, 0.2);
  color: var(--rose);
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.78rem;
}

.dash-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(8, 14, 28, 0.78);
}
.dash-modal-backdrop.is-open { display: flex; }
body.dash-modal-open {
  overflow: hidden;
  touch-action: none;
}
body.dash-modal-open .mobile-bottom-nav,
body.dash-modal-open .demo-foot-bar {
  pointer-events: none;
}
.dash-modal {
  width: min(520px, 100%);
  max-height: 90vh;
  overflow: auto;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.dash-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}
.dash-modal-head h3 { font-size: 1.05rem; }
.dash-modal-body { padding: 1.25rem; }
.dash-modal-body .form-group { margin-bottom: 1rem; }
.dash-modal-body label { display: block; margin-bottom: 0.35rem; font-size: 0.88rem; color: var(--muted); }
.dash-modal-body textarea,
.dash-modal-body input[type="file"] {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  padding: 0.65rem 0.75rem;
}
.dash-modal-body textarea { min-height: 120px; resize: vertical; max-height: 40vh; }
.dash-modal-foot {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  padding: 0 1.25rem 1.25rem;
}
.dash-modal-close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
  min-width: 44px;
  min-height: 44px;
}

@media (min-width: 1101px) {
  .sidebar { transform: none !important; }
}

/* Mehrfach-Zuständige (Checkboxen) */
.cal-assignee-checks div,
.cal-assignee-checks {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.cal-assignee-checks label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 400;
  cursor: pointer;
}
.cal-assignee-checks input[type="checkbox"] {
  width: auto;
  margin: 0;
}

.js-dictate-btn.is-listening {
  color: var(--rose, #b42318);
  border-color: var(--rose, #b42318);
  font-weight: 600;
}

.flow-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0.75rem 1rem; margin-bottom: 0.75rem; }
.flow-position-form { margin-top: 0.35rem; }
.flow-position-form select {
  width: 100%;
  max-width: 22rem;
  font-size: 0.82rem;
  padding: 0.35rem 0.5rem;
}
.flow-card label { display: block; font-size: 0.75rem; color: var(--muted); margin-bottom: 0.15rem; }
.flow-card p { margin: 0; font-weight: 600; font-size: 0.92rem; }
.flow-card-current p { color: var(--accent); }
.flow-card-wait { background: rgba(251, 191, 36, 0.12); border-radius: 8px; padding: 0.45rem 0.6rem; }
.flow-note { margin: 0 0 0.75rem; color: var(--muted); font-size: 0.95rem; }
.flow-reminder { margin: 0 0 0.4rem; padding: 0.45rem 0.7rem; border-radius: 8px; background: rgba(251, 191, 36, 0.12); font-size: 0.88rem; }
.flow-list { display: flex; flex-direction: column; }
.flow-step { display: flex; align-items: flex-start; gap: 0.5rem; padding: 0.22rem 0.15rem; border-top: 1px solid var(--border); }
.flow-done { margin: 0 0 0.35rem; }
.flow-done > summary { cursor: pointer; color: var(--muted); font-size: 0.84rem; padding: 0.2rem 0; }
.project-fold { margin-top: 0.6rem; padding: 0.65rem 1rem; }
.project-fold > summary { cursor: pointer; font-weight: 650; }
.flow-step-current { background: rgba(139, 92, 246, 0.12); border-radius: 8px; padding-left: 0.55rem; box-shadow: inset 3px 0 0 var(--accent); }
.flow-step-title { font-size: 1rem; }
.flow-step-done .flow-step-title { color: var(--muted); }
.flow-step-meta { color: var(--muted); font-size: 0.95rem; font-weight: 400; margin-top: 0.1rem; }
.flow-check {
  width: 1.4rem; height: 1.4rem; border-radius: 4px; border: 1px solid var(--border);
  background: transparent; color: var(--green, #1a7a3c); font-weight: 700; cursor: pointer;
  line-height: 1; padding: 0; flex: 0 0 auto;
}
.flow-step-done .flow-check { background: rgba(52, 211, 153, 0.2); }
.flow-edit { margin-top: 0.8rem; }
.flow-edit summary { cursor: pointer; font-size: 0.88rem; color: var(--accent); }
.flow-edit-row { display: flex; gap: 0.5rem; align-items: center; margin: 0.35rem 0; }
.flow-edit-row input[type="number"] { width: 4.2rem; }
.flow-edit-row input[type="text"] { flex: 1; }
.flow-inline-check { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.82rem; font-weight: 400; white-space: nowrap; }
.flow-inline-check input { width: auto; margin: 0; }
.flow-deposit-form { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; margin: 0 0 1rem; }
.flow-deposit-form input { width: 6rem; }
.flow-item-form { margin-top: 0.5rem; min-width: 16rem; }
.flow-step-body { flex: 1; min-width: 0; }
.flow-guide {
  border: 1px solid var(--border);
  border-radius: 10px;
  margin: 0.55rem 0;
  padding: 0.15rem 0.85rem 0.75rem;
}
.flow-step .flow-guide { margin: 0; padding: 0; border: 0; border-radius: 0; }
.flow-guide summary { cursor: pointer; font-weight: 500; font-size: 0.78rem; color: var(--muted); padding: 0.05rem 0; }
.flow-guide-remove {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.6rem;
  align-items: baseline;
  margin-top: 0.35rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--border);
  font-size: 0.84rem;
  font-weight: 500;
}
.flow-guide-remove input { width: auto; margin: 0; }
.flow-guide-remove span { flex-basis: 100%; color: var(--muted); font-weight: 400; font-size: 0.78rem; }
.flow-doc-list { margin: 0.25rem 0 0.5rem; padding-left: 1.1rem; }
.flow-doc-list li { margin: 0.15rem 0; }

.nav a,
.sidebar-foot,
.sidebar-foot a,
.topbar p,
.panel-head span,
table,
th,
td,
.form-group label,
.btn,
.btn-sm,
.detail-item label,
.detail-item p,
.flow-card label,
.flow-card p,
.flow-step-title,
.flow-step-meta,
.flow-note,
.flow-done > summary,
.flow-edit summary,
.flow-guide summary,
.flow-guide-remove,
.flow-guide-remove span,
.empty-state,
.task-contact,
.task-contact a {
  font-size: 0.95rem;
}
.topbar h2 { font-size: 1.35rem; }
.panel-head h3 { font-size: 1.05rem; }

.projects-page .btn { padding: 0.32rem 0.65rem; }
.projects-page input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.projects-page select { padding: 0.28rem 0.5rem; border-radius: 8px; }
.projects-page .topbar { margin-bottom: 0.65rem; align-items: center; }
.projects-page .topbar h2 { font-size: 1.2rem; line-height: 1.2; }
.projects-page .topbar p { margin-top: 0.1rem; }
.projects-page .panel {
  padding: 0.55rem 0.75rem;
  margin-bottom: 0.5rem;
  border-radius: 12px;
  box-shadow: none;
}
.projects-page .panel-head { margin-bottom: 0.35rem; }
.projects-page .search-bar { margin-bottom: 0.45rem; padding-bottom: 0.35rem !important; }
.projects-page th,
.projects-page td { padding: 0.32rem 0.45rem; }
.projects-page .empty-state { padding: 0.6rem 0.5rem; }
.projects-page .detail-grid { gap: 0.35rem 0.8rem; }
.projects-page .flow-strip { gap: 0.35rem 0.7rem; margin-bottom: 0.35rem; }
.projects-page .flow-step { padding: 0.04rem 0; }
.projects-page .flow-edit { margin-top: 0.3rem; }
.projects-page .flow-guide summary { padding: 0; }
.projects-page .project-fold,
.projects-page #bezahlt,
.projects-page #abrechnung,
.projects-page #notizen { margin-top: 0.45rem; }
.project-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.85rem;
  margin: 0 0 0.65rem;
  font-size: 0.86rem;
}
.project-jump a { color: var(--muted); text-decoration: none; }
.project-jump a:hover { color: var(--text); }
.project-fold > summary {
  cursor: pointer;
  list-style: none;
  padding: 0.75rem 1rem;
  font-weight: 600;
}
.project-fold > summary::-webkit-details-marker { display: none; }
.project-fold-body { padding: 0 0.65rem 0.75rem; }
.project-fold-hint {
  padding: 0 1rem;
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.85rem;
}
.plan-layout { padding: 0 1rem 1rem; }
.plan-between { margin: 0.8rem 0 0; }
.plan-hint { margin: 0 0 0.35rem; color: var(--muted); font-size: 0.85rem; padding: 0 1rem; }
.interim-step {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 11rem auto;
  gap: 0.5rem;
  align-items: center;
  margin: 0.75rem 1rem 0.35rem;
}
.interim-step input { min-height: 2rem; width: 100%; }
@media (max-width: 800px) {
  .interim-step { grid-template-columns: 1fr; }
}
.plan-line input[type="text"] { min-height: 2rem; width: 100%; }
.plan-slot { width: 1rem; }
.plan-main { display: grid; gap: 0.4rem; }
.plan-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 11rem auto;
  gap: 0.65rem;
  align-items: center;
  padding: 0.4rem 0.65rem;
  border: 1px solid var(--border);
  border-left-width: 4px;
  border-radius: 8px;
  background: rgba(255,255,255,0.02);
}
.plan-actions { display: flex; gap: 0.35rem; align-items: center; justify-content: flex-end; }
.plan-actions select { min-height: 2rem; max-width: 9rem; }
.plan-state { color: var(--muted); font-size: 0.8rem; white-space: nowrap; }
.plan-line.who-stefan { border-left-color: #2563eb; }
.plan-line.who-jakob { border-left-color: #c026d3; }
.plan-line.who-both { border-left-color: #7c6ad6; }
.plan-name { min-width: 0; display: grid; }
.plan-name span { color: var(--muted); font-size: 0.8rem; }
.plan-line input[type="date"] { min-height: 2rem; }
@media (max-width: 800px) {
  .plan-layout { grid-template-columns: 1fr; }
  .plan-line { grid-template-columns: minmax(0, 1fr); }
  .plan-actions { justify-content: flex-start; }
}
.calendar-step-list { list-style: none; margin: 0 1rem 0.5rem; padding: 0; display: grid; gap: 0.35rem; }
.calendar-step-list li { display: flex; justify-content: space-between; gap: 0.5rem; align-items: center; min-width: 0; }
.calendar-step-list form { margin: 0; flex: 0 0 auto; }
.calendar-step-list span { min-width: 0; }
.project-inner-fold {
  margin: 0 1rem 0.75rem;
}
.project-inner-fold > summary {
  cursor: pointer;
  color: var(--muted);
}
.panel-nested {
  margin: 0.55rem 0 0;
  border-style: dashed;
}
.projects-page .note-entry { padding: 0.4rem 0 !important; }
.project-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.35rem;
}
.project-metrics > div {
  padding: 0.35rem 0.55rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}
.project-metrics > div.is-on { box-shadow: inset 0 -2px 0 #e8b931; }
.project-metrics a { color: inherit; }
.list-edit input[type="text"] { width: 6.5rem; min-height: 1.8rem; }
.list-intern { white-space: nowrap; }
.list-intern input[type="text"] { width: 4.4rem; min-height: 1.8rem; padding: 0.05rem 0.3rem; }
.list-intern input + input { margin-left: 0.25rem; }
.list-edit .chip { font-size: 0.78rem; padding: 0.1rem 0.4rem; }
.project-metrics span { display: block; color: var(--muted); font-size: 0.78rem; line-height: 1.2; }
.project-metrics strong { display: block; font-size: 1rem; font-weight: 650; line-height: 1.25; }
.project-metrics em {
  display: block;
  margin-top: 0.15rem;
  font-style: normal;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.25;
}
.project-metrics .is-plus { color: #8fbfa2; }
.project-metrics .is-minus { color: #d7a0a0; }
.project-tabs { display: flex; gap: 0.9rem; margin: 0 0 0.85rem; font-size: 0.95rem; }
.project-tabs a { color: var(--muted); text-decoration: none; padding-bottom: 0.15rem; }
.project-tabs a.is-on { color: var(--text); font-weight: 650; box-shadow: inset 0 -2px 0 #e8b931; }
.cost-add { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: end; margin-top: 0.55rem; }
.cost-add input[type="text"] { min-width: 14rem; min-height: 2rem; }
.cost-add input[type="number"], .cost-add select { min-height: 2rem; }
.cost-add input[type="number"] { width: 7rem; }
.cost-sums { display: flex; flex-wrap: wrap; gap: 0.8rem 1.2rem; margin: 0; color: var(--muted); font-size: 0.85rem; }
.cost-sums strong { color: var(--text); }
.project-cash { margin-top: 0.35rem; }
.project-cash > summary { cursor: pointer; color: var(--muted); font-size: 0.85rem; }
.project-cash-form { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: end; margin-top: 0.4rem; }
.project-cash-form label { display: grid; gap: 0.1rem; font-size: 0.78rem; color: var(--muted); }
.project-cash-form input { width: 8rem; min-height: 2rem; }
.project-cash-note { flex: 1 0 100%; margin: 0.15rem 0 0; font-size: 0.78rem; color: var(--muted); }
.projects-page .flow-position-form { margin: 0.1rem 0 0; }
.projects-page .flow-position-form select { max-width: 18rem; min-height: 1.7rem; padding: 0.1rem 0.35rem; }
.project-cell a { text-decoration: none; }
.project-row-actions { white-space: nowrap; }
.project-row-actions .btn { padding: 0.15rem 0.4rem; min-height: 0; }
.project-stale { margin-top: 0.45rem; }
@media (max-width: 800px) {
  .project-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Qualitätsprüfung / kompakte Projektaufgaben */
.overview-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.overview-list li { font-size: 0.95rem; }
.overview-list a { text-decoration: none; }
.task-filter-links { display: inline-flex; flex-wrap: wrap; gap: 0.65rem; font-size: 0.9rem; }
.task-filter-links a { color: var(--muted); text-decoration: none; }
.task-filter-links a.is-active { color: var(--text); font-weight: 600; }
.task-cards { display: grid; gap: 0.55rem; }
.task-card {
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
}
.task-card-head { display: flex; justify-content: space-between; gap: 0.5rem; align-items: flex-start; margin-bottom: 0.25rem; }
.task-actions { display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; margin: 0.45rem 0; }
.task-actions .inline-action { display: inline-flex; flex-wrap: wrap; gap: 0.25rem; align-items: center; margin: 0; }
.task-actions input[type="text"] { min-width: 10rem; min-height: 2rem; }
.task-more-actions { font-size: 0.9rem; color: var(--muted); }
.task-more-actions summary { cursor: pointer; }
.task-more-actions[open] { display: grid; gap: 0.35rem; width: 100%; }
.flow-check-item {
  display: flex;
  gap: 0.45rem;
  align-items: flex-start;
  padding: 0.2rem 0;
  font-size: 0.95rem;
}
.flow-check-item input { margin-top: 0.2rem; }
/* Kompakte Usability: Übersicht, Zuweisung, Aufgaben */
.overview-compact { padding-top: 0.45rem; padding-bottom: 0.45rem; }
.overview-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.5rem 0.75rem;
}
.overview-strip > div { min-width: 0; }
.overview-strip strong { display: block; font-size: 0.95rem; line-height: 1.3; }
.overview-billed {
  margin: 0.55rem 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.55rem;
}
.overview-billed label { font-size: 0.85rem; color: var(--muted); }
.overview-billed input {
  width: 7.5rem;
  max-width: 100%;
  padding: 0.3rem 0.45rem;
}
.overview-alerts { margin: 0.4rem 0 0; display: flex; flex-wrap: wrap; gap: 0.35rem; }
.howto-fold {
  padding: 0.45rem 0.75rem;
  margin-bottom: 0.5rem;
}
.howto-fold > summary {
  cursor: pointer;
  font-size: 0.92rem;
  color: var(--muted);
}
.howto-tip { margin: 0; font-size: 0.9rem; line-height: 1.4; color: var(--muted); }
.howto-tip strong { color: var(--text); }
.step-quick {
  margin: 0.35rem 0 0.2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}
.step-quick select { min-height: 2rem; max-width: 14rem; }
.step-quick-people {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.65rem;
  border: 1px solid rgba(148, 180, 255, 0.22);
  border-radius: 999px;
  font-size: 0.88rem;
  cursor: pointer;
  user-select: none;
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s, transform 0.18s;
}
.chip:hover,
.chip:has(input:checked) {
  border-color: rgba(30, 96, 242, 0.5);
  background: rgba(30, 96, 242, 0.16);
  transform: translateY(-1px);
}
.chip input { margin: 0; }
.step-quick-actions { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.step-quick-hint {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--muted);
}
.step-check-inline {
  margin: 0.25rem 0 0.35rem;
  display: grid;
  gap: 0.15rem;
}
@media (max-width: 800px) {
  .overview-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.prep-list { display: grid; gap: 0.55rem; margin-bottom: 0.75rem; }
.prep-card {
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
}
.prep-card-head {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: flex-start;
  margin-bottom: 0.25rem;
}
.prep-preview { margin-top: 0.35rem; }
.prep-subtitle {
  margin: 0.75rem 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 600;
}
.meeting-card { padding: 0.45rem 0.15rem; border-top: 1px solid var(--border); }
.meeting-action-row { padding: 0.35rem 0; border-top: 1px dashed var(--border); }
.task-card.status-in_review { box-shadow: inset 3px 0 0 var(--accent); }
.task-card.status-rework,
.task-card.status-clarification { box-shadow: inset 3px 0 0 var(--amber); }
.task-card.status-done { opacity: 0.72; }
@media (max-width: 800px) {
  .task-actions { flex-direction: column; align-items: stretch; }
  .task-actions input[type="text"] { min-width: 0; width: 100%; }
}

/* —— Feinschliff Optik —— */
.brand h1 { letter-spacing: -0.02em; }
.search-bar {
  padding: 0.55rem;
  border-radius: 12px;
  border: 1px solid rgba(148, 180, 255, 0.14);
  background: rgba(30, 96, 242, 0.04);
}
.detail-item {
  padding: 0.6rem 0.7rem;
  border-radius: 10px;
  background: rgba(30, 96, 242, 0.04);
  border: 1px solid rgba(148, 180, 255, 0.12);
}
.empty-state {
  border: 1px dashed rgba(148, 180, 255, 0.28);
  border-radius: 12px;
  background: rgba(30, 96, 242, 0.06);
}
.page-greeting {
  margin: 0;
  font-size: 1.65rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  color: #f7fafc;
}
.page-greeting-sub {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 36rem;
}
.suggest-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.75rem;
}
.suggest-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 180, 255, 0.28);
  background: rgba(30, 96, 242, 0.08);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s, border-color 0.15s, background 0.15s;
}
.suggest-chip:hover {
  text-decoration: none;
  transform: translateY(-1px);
  border-color: rgba(30, 96, 242, 0.5);
  background: rgba(30, 96, 242, 0.18);
  color: #fff;
}
.dash-peaks {
  display: block;
  width: 100%;
  max-width: 42rem;
  height: 36px;
  margin: 0 0 1.15rem;
  pointer-events: none;
}
/* Dezenter Maus-Schimmer (nur Desktop, kein Punkt) */
.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 220px;
  height: 220px;
  margin: -110px 0 0 -110px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 4;
  opacity: 0;
  background:
    radial-gradient(circle, rgba(30, 96, 242, 0.14) 0%, rgba(232, 180, 212, 0.08) 42%, transparent 70%);
  transition: opacity 0.2s ease;
  will-change: transform;
}
.cursor-glow.is-on { opacity: 1; }
@media (pointer: coarse), (prefers-reduced-motion: reduce) {
  .cursor-glow { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  .nav a:hover,
  .chip:hover,
  .suggest-chip:hover,
  .btn:hover {
    transform: none;
  }
}
.flow-step-current,
.flow-card-current {
  box-shadow: 0 0 0 1px rgba(30, 96, 242, 0.4);
  background: rgba(30, 96, 242, 0.1);
}
a.btn:visited { color: inherit; }

/* Bereichsfarben – nur CSS-Variablen, keine Bilder/JS */
body.section-dashboard {
  --card: rgba(30, 96, 242, 0.08);
  --card-hover: rgba(30, 96, 242, 0.13);
  --border: rgba(148, 180, 255, 0.22);
  --section-mark: var(--brand-blue-soft);
}
body.section-offers,
body.section-billing {
  --card: rgba(197, 160, 45, 0.08);
  --card-hover: rgba(197, 160, 45, 0.13);
  --border: rgba(197, 160, 45, 0.24);
  --section-mark: var(--brand-gold);
}
body.section-projects,
body.section-tasks {
  --card: rgba(52, 211, 153, 0.07);
  --card-hover: rgba(52, 211, 153, 0.12);
  --border: rgba(52, 211, 153, 0.22);
  --section-mark: var(--green);
}
body.section-calendar,
body.section-timetracking {
  --card: rgba(122, 167, 255, 0.08);
  --card-hover: rgba(122, 167, 255, 0.13);
  --border: rgba(122, 167, 255, 0.24);
  --section-mark: var(--brand-blue-soft);
}
body.section-leads,
body.section-companies,
body.section-contacts {
  --card: rgba(232, 180, 212, 0.07);
  --card-hover: rgba(232, 180, 212, 0.12);
  --border: rgba(232, 180, 212, 0.22);
  --section-mark: var(--brand-rosa);
}
body.section-monitoring,
body.section-reports {
  --card: rgba(96, 165, 250, 0.07);
  --card-hover: rgba(96, 165, 250, 0.12);
  --border: rgba(96, 165, 250, 0.22);
  --section-mark: #60a5fa;
}
body.section-strategy,
body.section-marketing,
body.section-content {
  --card: rgba(139, 124, 201, 0.08);
  --card-hover: rgba(139, 124, 201, 0.13);
  --border: rgba(139, 124, 201, 0.24);
  --section-mark: var(--brand-violet);
}
