:root{
  --sonnify:#0ea964;
  --sonnify-dark:#087a48;
  --sonnify-soft:#eaf8f1;
  --ink:#111827;
  --muted:#667085;
  --line:#e4e8ec;
  --page:#f6f8fa;
  --card:#ffffff;
  --blue:#1a73e8;
  --yellow:#b77900;
  --red:#b42318;
}

*{box-sizing:border-box}
body{background:var(--page); color:var(--ink)}
a{text-decoration:none; color:inherit}

main{width:100%; min-height:100vh; margin-left:0!important; left:0!important; position:relative}
.mode-switch{display:none!important}

.prenavi,
header,
header .flex,
nav,
.navi,
.topnavi{
  margin-left:0!important;
  left:auto!important;
  top:0!important;
}

.prenavi{
  top:0px!important;
}

body:has(.leftnavi) main .content{
  margin-left:190px;
  width:calc(100% - 190px);
  max-width:none;
  padding:24px;
}

.content{max-width:100%; padding:24px; margin-top:100px}
.article{margin:0}
.crm-page{padding:8px 0 46px}
.crm-shell{width:min(1500px,calc(100% - 8px)); margin:0 auto}

.crm-hero{
  position:relative;
  overflow:hidden;
  padding:28px;
  border:1px solid rgba(14,169,100,.16);
  border-radius:28px;
  background:
    radial-gradient(circle at top right,rgba(14,169,100,.18),transparent 34%),
    linear-gradient(135deg,#10251d,#0ea964);
  color:#fff;
  box-shadow:0 18px 50px rgba(15,23,42,.12);
}

.crm-hero--allinone{
  isolation:isolate;
  padding:34px;
  background:
    radial-gradient(circle at 86% 14%,rgba(255,255,255,.28),transparent 18%),
    radial-gradient(circle at 14% 100%,rgba(14,169,100,.42),transparent 34%),
    linear-gradient(135deg,#07131f 0%,#10251d 42%,#0ea964 120%);
}

.crm-hero--allinone:before{
  content:"";
  position:absolute;
  inset:auto -80px -140px auto;
  width:420px;
  height:420px;
  border-radius:999px;
  border:54px solid rgba(255,255,255,.08);
  z-index:-1;
}

.crm-hero--allinone:after{
  content:"";
  position:absolute;
  inset:24px 24px auto auto;
  width:180px;
  height:180px;
  border-radius:42px;
  background:
    linear-gradient(90deg,rgba(255,255,255,.12) 1px,transparent 1px),
    linear-gradient(0deg,rgba(255,255,255,.12) 1px,transparent 1px);
  background-size:22px 22px;
  opacity:.45;
  transform:rotate(7deg);
  z-index:-1;
}

.crm-hero-main{
  display:flex;
  justify-content:space-between;
  gap:24px;
  align-items:flex-start;
}

.crm-badge{
  display:inline-flex;
  width:max-content;
  max-width:100%;
  padding:7px 12px;
  border:1px solid rgba(255,255,255,.24);
  border-radius:999px;
  background:rgba(255,255,255,.12);
  color:#fff;
  font-size:12px;
  font-weight:900;
}

.crm-hero h1{
  margin:14px 0 10px;
  color:#fff;
  max-width:900px;
  font-size:clamp(32px,4.35vw,62px);
  line-height:1.05;
  letter-spacing:-.04em;
}

.crm-hero p{
  max-width:760px;
  margin:0;
  color:rgba(255,255,255,.88);
  line-height:1.55;
}

.crm-hero-actions,
.crm-toolbar-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
  justify-content:flex-end;
}

.crm-quick-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
  margin-top:24px;
}

.crm-quick-card{
  min-width:0;
  padding:15px;
  border:1px solid rgba(255,255,255,.18);
  border-radius:18px;
  background:rgba(255,255,255,.12);
  backdrop-filter:blur(8px);
}

.crm-quick-card span,
.crm-kpi-label{
  display:block;
  color:var(--muted);
  font-size:12px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.04em;
}

.crm-quick-card span{color:rgba(255,255,255,.72)}
.crm-quick-card strong{
  display:block;
  margin:8px 0 4px;
  color:#fff;
  font-size:28px;
  line-height:1;
}

.crm-quick-card small{color:rgba(255,255,255,.78); font-size:12px}

.crm-control-center{
  display:grid;
  grid-template-columns:minmax(300px,.75fr) minmax(0,1.25fr);
  gap:20px;
  margin:20px 0;
  align-items:stretch;
}

.crm-control-copy,
.crm-hub-map,
.crm-feature-card{
  border:1px solid var(--line);
  background:#fff;
  box-shadow:0 12px 34px rgba(15,23,42,.06);
}

.crm-control-copy{
  padding:26px;
  border-radius:26px;
  background:
    radial-gradient(circle at top left,rgba(14,169,100,.15),transparent 34%),
    #fff;
}

.crm-section-kicker{
  display:inline-flex;
  width:max-content;
  max-width:100%;
  padding:7px 11px;
  border-radius:999px;
  background:var(--sonnify-soft);
  color:var(--sonnify-dark);
  font-size:12px;
  font-weight:950;
  text-transform:uppercase;
  letter-spacing:.04em;
}

.crm-control-copy h2{
  margin:14px 0 12px;
  color:#07131f;
  font-size:clamp(24px,2.5vw,38px);
  line-height:1.03;
  letter-spacing:-.045em;
}

.crm-control-copy p{
  margin:0;
  color:#536271;
  font-size:16px;
  line-height:1.65;
}

.crm-control-center--compact{
  grid-template-columns:minmax(280px,420px) minmax(0,1fr);
}

.crm-control-center--compact .crm-control-copy h2{
  margin-bottom:8px;
  font-size:clamp(22px,2vw,30px);
}

.crm-control-center--compact .crm-control-copy p{
  font-size:14px;
  line-height:1.5;
}

.crm-task-list{
  display:grid;
  gap:9px;
  margin-top:18px;
}

.crm-task-list a{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:42px;
  padding:9px 10px;
  border:1px solid #e6eaee;
  border-radius:14px;
  background:#fff;
  color:#344054;
  font-size:14px;
  font-weight:850;
}

.crm-task-list a:hover{
  border-color:#bfe8cf;
  background:var(--sonnify-soft);
  color:var(--sonnify-dark);
}

.crm-task-list span{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:30px;
  height:30px;
  border-radius:999px;
  background:#07131f;
  color:#fff;
  font-size:13px;
  font-weight:950;
}

.crm-hub-map{
  position:relative;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  grid-template-areas:
    "lead center roof"
    "phone center project"
    "offer center service";
  gap:14px;
  min-height:440px;
  padding:20px;
  overflow:hidden;
  border-radius:28px;
  background:
    radial-gradient(circle at 50% 50%,rgba(14,169,100,.13),transparent 26%),
    linear-gradient(135deg,#ffffff,#f6fbf8);
}

.crm-hub-map:before,
.crm-hub-map:after{
  content:"";
  position:absolute;
  inset:52px 20%;
  border-top:2px dashed rgba(14,169,100,.3);
  border-bottom:2px dashed rgba(14,169,100,.3);
  pointer-events:none;
}

.crm-hub-map:after{
  inset:20% 36%;
  border:0;
  border-left:2px dashed rgba(14,169,100,.26);
  border-right:2px dashed rgba(14,169,100,.26);
}

.crm-hub-node,
.crm-hub-center{
  position:relative;
  z-index:1;
  min-width:0;
  border:1px solid #e5ece8;
  border-radius:22px;
  background:rgba(255,255,255,.88);
  backdrop-filter:blur(10px);
}

.crm-hub-node{
  display:grid;
  align-content:center;
  gap:6px;
  min-height:116px;
  padding:16px;
  transition:transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.crm-hub-node:hover{
  transform:translateY(-3px);
  border-color:#bfe8cf;
  box-shadow:0 18px 38px rgba(15,23,42,.1);
}

.crm-hub-node span{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:34px;
  height:34px;
  border-radius:999px;
  background:var(--sonnify-soft);
  color:var(--sonnify-dark);
  font-size:12px;
  font-weight:950;
}

.crm-hub-node strong{
  color:#101828;
  font-size:17px;
  line-height:1.15;
}

.crm-hub-node small{
  color:#667085;
  font-size:13px;
  line-height:1.35;
}

.crm-hub-node--lead{grid-area:lead}
.crm-hub-node--phone{grid-area:phone}
.crm-hub-node--offer{grid-area:offer}
.crm-hub-node--roof{grid-area:roof}
.crm-hub-node--project{grid-area:project}
.crm-hub-node--service{grid-area:service}

.crm-hub-center{
  grid-area:center;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:22px;
  text-align:center;
  border-color:#bfe8cf;
  background:
    radial-gradient(circle at 50% 30%,rgba(14,169,100,.16),transparent 48%),
    #fff;
  box-shadow:0 22px 52px rgba(14,169,100,.13);
}

.crm-hub-logo{
  color:#07131f;
  font-size:clamp(28px,3vw,42px);
  font-weight:950;
  letter-spacing:-.06em;
}

.crm-hub-logo span{color:var(--sonnify)}
.crm-hub-center p{margin:0; color:#536271; font-weight:850}

.crm-hub-pulse{
  width:54px;
  height:54px;
  border-radius:999px;
  background:var(--sonnify);
  box-shadow:0 0 0 12px rgba(14,169,100,.12),0 0 0 25px rgba(14,169,100,.07);
}

.crm-feature-strip{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
  margin:20px 0;
}

.crm-feature-card{
  display:grid;
  gap:8px;
  min-width:0;
  padding:18px;
  border-radius:22px;
  transition:transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.crm-feature-card:hover{
  transform:translateY(-2px);
  border-color:#bfe8cf;
  box-shadow:0 18px 36px rgba(15,23,42,.09);
}

.crm-feature-card span{
  color:var(--sonnify-dark);
  font-size:12px;
  font-weight:950;
  text-transform:uppercase;
  letter-spacing:.04em;
}

.crm-feature-card strong{
  color:#17212b;
  font-size:15px;
  line-height:1.4;
}

.crm-kpi-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
  margin:20px 0;
}

.crm-kpi-card{
  display:block;
  min-width:0;
  padding:18px;
  border:1px solid var(--line);
  border-radius:22px;
  background:var(--card);
  box-shadow:0 10px 28px rgba(15,23,42,.055);
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.crm-kpi-card:hover{
  transform:translateY(-2px);
  border-color:#bfe8cf;
  box-shadow:0 16px 34px rgba(15,23,42,.09);
}

.crm-kpi-value{
  margin-top:8px;
  color:var(--ink);
  font-size:34px;
  font-weight:950;
  line-height:1;
}

.crm-kpi-sub{margin-top:8px; color:var(--muted); font-size:13px}

.crm-toolbar{
  display:flex;
  justify-content:space-between;
  gap:16px;
  align-items:center;
  margin-bottom:16px;
  padding:16px;
  border:1px solid var(--line);
  border-radius:22px;
  background:#fff;
}

.crm-search{
  display:flex;
  align-items:center;
  gap:12px;
  flex:1;
  min-width:240px;
}

.crm-search label{
  flex:0 0 auto;
  color:#344054;
  font-size:13px;
  font-weight:900;
  white-space:nowrap;
}

.crm-search input{
  flex:1;
  width:100%;
  min-height:46px;
  padding:12px 14px;
  border:1px solid #d0d5dd;
  border-radius:14px;
  background:#fbfcfd;
  color:var(--ink);
  font:inherit;
}

.crm-search input:focus,
.crm-input:focus,
.crm-textarea:focus{
  outline:0;
  border-color:var(--sonnify);
  box-shadow:0 0 0 3px rgba(14,169,100,.13);
}

.crm-toolbar-note{
  display:inline-flex;
  align-items:center;
  white-space:nowrap;
  min-height:38px;
  padding:8px 12px;
  border-radius:999px;
  background:var(--sonnify-soft);
  color:var(--sonnify-dark);
  font-size:13px;
  font-weight:900;
}

.crm-filter-row{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-bottom:18px;
}

.crm-filter{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:40px;
  padding:9px 14px;
  border:1px solid var(--line);
  border-radius:999px;
  background:#fff;
  color:#344054;
  font-size:14px;
  font-weight:850;
}

.crm-filter:hover,
.crm-filter.active{
  border-color:#bfe8cf;
  background:var(--sonnify-soft);
  color:var(--sonnify-dark);
}

.crm-board{
  display:grid;
  grid-template-columns:repeat(4,minmax(260px,1fr));
  gap:16px;
  align-items:start;
}

.crm-column{
  min-width:0;
  min-height:480px;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:24px;
  background:linear-gradient(180deg,#fff,#f9fbfa);
  box-shadow:0 12px 34px rgba(15,23,42,.06);
}

.crm-column-head{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:center;
  padding:18px;
  border-bottom:1px solid #eef1f4;
  background:
    radial-gradient(circle at top left,rgba(14,169,100,.14),transparent 38%),
    #fff;
}

.crm-column-head span{
  display:block;
  margin-bottom:4px;
  color:var(--muted);
  font-size:11px;
  font-weight:900;
  text-transform:uppercase;
}

.crm-column-head h2{
  margin:0;
  color:#17212b;
  font-size:18px;
  font-weight:950;
}

.crm-column-count{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:34px;
  height:34px;
  padding:0 8px;
  border-radius:999px;
  background:var(--sonnify);
  color:#fff;
  box-shadow:0 8px 18px rgba(14,169,100,.22);
}

.crm-column-body{
  display:grid;
  gap:13px;
  padding:14px;
}

.crm-column-body.is-loading:before{
  content:"Lädt ...";
  display:block;
  padding:16px;
  border:1px dashed var(--line);
  border-radius:16px;
  color:var(--muted);
  text-align:center;
}

.crm-card{
  position:relative;
  display:block;
  overflow:hidden;
  padding:16px;
  border:1px solid #e6eaee;
  border-radius:20px;
  background:linear-gradient(180deg,#fff,#fbfdfc);
  box-shadow:0 8px 24px rgba(15,23,42,.055);
  transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.crm-card:before{
  content:"";
  position:absolute;
  inset:0 auto 0 0;
  width:5px;
  background:linear-gradient(180deg,var(--sonnify),var(--blue));
}

.crm-card:hover{
  transform:translateY(-3px);
  border-color:#cfe7d6;
  box-shadow:0 18px 42px rgba(15,23,42,.11);
}

.crm-card-top{
  position:relative;
  z-index:1;
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:flex-start;
  margin-bottom:12px;
}

.crm-card-step{
  display:inline-flex;
  align-items:center;
  gap:6px;
  margin-bottom:6px;
  color:var(--sonnify);
  font-size:11px;
  font-weight:950;
  text-transform:uppercase;
  letter-spacing:.05em;
}

.crm-card-title{
  margin:0;
  color:#17212b;
  font-size:17px;
  line-height:1.25;
  font-weight:950;
  letter-spacing:-.03em;
}

.crm-card-badges,
.crm-card-stats{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
}

.crm-card-badges{
  justify-content:flex-end;
  max-width:160px;
}

.crm-chip,
.crm-mini-stat{
  display:inline-flex;
  align-items:center;
  min-height:25px;
  padding:5px 9px;
  border:1px solid #e5e7eb;
  border-radius:999px;
  background:#fff;
  color:#64748b;
  font-size:11px;
  font-weight:850;
}

.crm-chip.active{
  border-color:#c9efd9;
  background:#e9f9f1;
  color:#0b8f52;
}

.crm-chip--angebot{border-color:#cfe0ff; background:#edf4ff; color:var(--blue)}
.crm-chip--auftrag{border-color:#bde7c9; background:#e6f8ed; color:#08783a}

.crm-card-location{
  position:relative;
  z-index:1;
  margin-bottom:12px;
  color:#64748b;
  font-size:14px;
}

.crm-card-stats{
  position:relative;
  z-index:1;
  margin-bottom:14px;
}

.crm-mini-stat--kontakt{background:#f8fafc}
.crm-mini-stat--hot-hot{border-color:#fecaca; background:#fff1f2; color:var(--red)}
.crm-mini-stat--hot-warm{border-color:#fed7aa; background:#fff7ed; color:#c2410c}
.crm-mini-stat--hot-lauwarm{border-color:#fde68a; background:#fffbeb; color:var(--yellow)}
.crm-mini-stat--hot-kalt{border-color:#dbeafe; background:#eff6ff; color:#1d4ed8}
.crm-mini-stat--stimmung{border-color:#ddd6fe; background:#f5f3ff; color:#6d28d9}

.crm-card-footer{
  position:relative;
  z-index:1;
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:center;
  padding-top:12px;
  border-top:1px solid #eef1f4;
}

.crm-card-date{color:#64748b; font-size:12px; line-height:1.35}
.crm-card-link{color:var(--sonnify); font-size:13px; font-weight:950}
.crm-card-link:after{content:" ->"}

.crm-empty{
  display:grid;
  gap:5px;
  padding:20px;
  border:1px dashed #cbd5e1;
  border-radius:16px;
  background:#fff;
  color:var(--muted);
  text-align:center;
}

.crm-empty strong{color:#344054}

.crm-info-banner{
  margin-top:18px;
  padding:16px;
  border:1px solid #bfe8cf;
  border-radius:18px;
  background:var(--sonnify-soft);
  color:#174a32;
}

.crm-legend-row{
  display:flex;
  flex-wrap:wrap;
  gap:9px;
  margin-top:10px;
}

.button,
.crm-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:11px 16px;
  border:0;
  border-radius:13px;
  background:var(--sonnify);
  color:#fff!important;
  font:inherit;
  font-weight:900;
  cursor:pointer;
  box-shadow:0 12px 24px rgba(14,169,100,.22);
}

.crm-btn:hover{background:#0b9357}
.crm-btn:disabled{opacity:.6; cursor:wait}
.crm-btn--secondary{
  border:1px solid #bfe8cf;
  background:#fff;
  color:var(--sonnify-dark)!important;
  box-shadow:none;
}
.crm-btn--secondary:hover{background:var(--sonnify-soft)}
.crm-btn--ghost{
  border:1px solid rgba(255,255,255,.28);
  background:rgba(255,255,255,.12);
  color:#fff!important;
  box-shadow:none;
}

.crm-modal{
  position:fixed;
  inset:0;
  z-index:9999;
  display:none;
  align-items:center;
  justify-content:center;
  padding:18px;
  background:rgba(15,23,42,.52);
}

.crm-modal-card{
  width:min(560px,100%);
  overflow:hidden;
  border-radius:22px;
  background:#fff;
  box-shadow:0 24px 70px rgba(15,23,42,.24);
  animation:crmModalIn .18s ease;
}

.crm-modal-head,
.crm-modal-footer{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:center;
  padding:18px 20px;
}

.crm-modal-head{border-bottom:1px solid var(--line)}
.crm-modal-footer{justify-content:flex-end; border-top:1px solid var(--line)}
.crm-modal-head h3{margin:0; font-size:19px}
.crm-modal-close{
  border:0;
  background:transparent;
  color:#667085;
  font-size:26px;
  cursor:pointer;
}

.crm-modal-body{
  display:grid;
  gap:16px;
  padding:20px;
}

.crm-form-group{
  display:grid;
  gap:7px;
}

.crm-form-group label{
  color:#475467;
  font-size:13px;
  font-weight:900;
}

.crm-input,
.crm-textarea,
.crm-select,
.iinp{
  width:100%;
  max-width:100%;
  padding:12px 13px;
  border:1px solid #d0d5dd;
  border-radius:13px;
  background:#fbfcfd;
  color:var(--ink);
  font:inherit;
}

.crm-textarea{min-height:132px; resize:vertical}
.crm-select{appearance:auto}

.iinp:focus,
.crm-select:focus,
.crm-input:focus,
.crm-textarea:focus{
  outline:0;
  border-color:var(--sonnify);
  box-shadow:0 0 0 3px rgba(14,169,100,.13);
}

.crm-error{
  display:none;
  padding:12px 14px;
  border:1px solid #f2b8b5;
  border-radius:14px;
  background:#fff2f1;
  color:#a1261b;
  font-size:14px;
}

.ad_var{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:10px 14px;
  border:1px solid var(--line);
  border-radius:12px;
  background:#fff;
  color:#344054;
  font-weight:850;
  cursor:pointer;
  transition:background .18s ease, border-color .18s ease, color .18s ease;
}

.ad_var:hover{
  border-color:#bfe8cf;
  background:var(--sonnify-soft);
  color:var(--sonnify-dark);
}

.ad_var-box{
  display:none;
  padding:20px;
  border:1px solid var(--line);
  border-radius:18px;
  background:#fff;
  box-shadow:0 12px 34px rgba(15,23,42,.08);
}

.grayback{
  border:1px solid var(--line);
  border-radius:14px;
  background:#f8f9fa;
}

.center{text-align:center}

.crm-back-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:36px;
  padding:8px 14px;
  border:1px solid #e5e7eb;
  border-radius:999px;
  background:#f3f4f6;
  color:#374151;
  font-size:13px;
  font-weight:850;
  text-decoration:none;
}

.crm-back-btn:hover{
  background:var(--sonnify-soft);
  color:var(--sonnify);
}

.leftnavi{
  float:left;
  width:190px;
  min-height:calc(100vh - 160px);
  padding:16px 10px;
  border-right:1px solid #e5e7eb;
  background:#fff;
  box-sizing:border-box;
  position:relative;
  top:30px;
  z-index:20;
}

.lnc{
  margin-bottom:18px;
  overflow:hidden;
  border:1px solid #eef0f2;
  border-radius:16px;
  background:#fafafa;
  box-shadow:0 6px 18px rgba(0,0,0,.04);
}

.lnc .grayback{
  padding:10px 8px;
  border:0;
  border-radius:14px;
  background:#f1f8f4;
  color:var(--sonnify);
  font-size:12px;
  font-weight:900;
  text-transform:uppercase;
}

.lnc-a{
  display:block;
  padding:12px 14px;
  border-top:1px solid #f1f3f5;
  color:#2b2b2b;
  font-size:14px;
  line-height:1.45;
  transition:all .18s ease;
}

.lnc-a:hover,
.lnc-a-chk{
  background:#f3faf6;
  color:var(--sonnify);
}

.lnc-a-chk{
  border-left:4px solid var(--sonnify);
  font-weight:800;
}

.msgs{
  display:inline-flex;
  padding:3px 7px;
  border-radius:999px;
  background:var(--sonnify);
  color:#fff;
  font-size:11px;
  font-weight:800;
}
.msgs.is-alert,
.crm-chip--message,
.crm-customer-message-badge{
  background:#e11d48 !important;
  color:#fff !important;
  border-color:#e11d48 !important;
}
.crm-customer-message-badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  min-height:28px;
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:900;
  line-height:1.1;
}
.crm-card.has-customer-message{
  border-color:#fecdd3;
  box-shadow:0 16px 36px rgba(225,29,72,.12);
}

@keyframes crmModalIn{
  from{transform:translateY(14px); opacity:0}
  to{transform:translateY(0); opacity:1}
}

@media(max-width:1280px){
  .crm-board,
  .crm-kpi-grid,
  .crm-feature-strip,
  .crm-quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .crm-control-center,
  .crm-control-center--compact{grid-template-columns:1fr}
}

@media(max-width:900px){
  body:has(.leftnavi) main .content{
    margin-left:0;
    width:100%;
    padding:14px;
  }
  .leftnavi{display:none}
  .content{margin-top:80px}
  .crm-hero-main,
  .crm-toolbar{flex-direction:column; align-items:stretch}
  .crm-search{
    display:grid;
    gap:7px;
  }
  .crm-search label{white-space:normal}
  .crm-hero-actions,
  .crm-toolbar-actions{justify-content:flex-start}
  .crm-hub-map{
    grid-template-columns:1fr;
    grid-template-areas:
      "center"
      "lead"
      "phone"
      "offer"
      "roof"
      "project"
      "service";
    min-height:0;
  }
  .crm-hub-map:before,
  .crm-hub-map:after{display:none}
}

/* Kompakte Leadkarten und Drag-and-drop der CRM-Pipeline */
.crm-column-body{align-content:start;min-height:390px;transition:background .18s ease,box-shadow .18s ease}
.crm-column-body.is-drag-over{background:rgba(14,169,100,.075);box-shadow:inset 0 0 0 2px rgba(14,169,100,.38)}
.crm-card{padding:15px 15px 14px 18px;border-radius:17px;background:#fff;box-shadow:0 7px 20px rgba(15,23,42,.05);cursor:grab}
.crm-card:active{cursor:grabbing}
.crm-card.is-dragging{opacity:.42;transform:rotate(1deg) scale(.985);box-shadow:0 20px 44px rgba(15,23,42,.16)}
.crm-card-drag{position:absolute;top:10px;right:12px;z-index:3;color:#a0aab5;font-size:15px;font-weight:900;letter-spacing:1px}
.crm-card-top{margin-bottom:10px;padding-right:18px}
.crm-card-badges{max-width:145px}
.crm-chip,.crm-mini-stat{min-height:23px;padding:4px 8px;font-size:10px}
.crm-card-location{margin-bottom:10px}
.crm-card-stats{margin-bottom:11px}
.crm-card-footer{padding-top:10px}
.crm-board-notice{position:fixed;right:22px;bottom:22px;z-index:10050;max-width:min(390px,calc(100vw - 32px));padding:13px 17px;border:1px solid #9fddbe;border-radius:14px;background:#effbf5;color:#087744;font-size:14px;font-weight:850;box-shadow:0 18px 48px rgba(15,23,42,.16);opacity:0;transform:translateY(16px);pointer-events:none;transition:opacity .18s ease,transform .18s ease}
.crm-board-notice.is-visible{opacity:1;transform:translateY(0)}
.crm-board-notice.is-error{border-color:#fecaca;background:#fff1f2;color:#b42318}

@media(max-width:700px){
  .crm-board,
  .crm-kpi-grid,
  .crm-feature-strip,
  .crm-quick-grid{grid-template-columns:1fr}
  .crm-hero,
  .crm-toolbar{border-radius:20px; padding:18px}
  .crm-column{min-height:auto}
  .crm-card-top,
  .crm-card-footer{flex-direction:column; align-items:flex-start}
  .crm-card-badges{justify-content:flex-start; max-width:none}
  .crm-btn{width:100%}
}
