/* ME INDUSTRIE MARKETING – Akquise
   Design-System: Gold/Schwarz der Marke + Apple-Designsprache
   (Glas-Flächen mit Blur, Pillen-Controls, weiche Federn-Animationen) */

:root {
  --bg: #0b0906;
  --ink: #f2ecdf;
  --muted: #9a8f7a;
  --gold-hi: #8ab8ff;
  --gold: #4f8ff7;
  --gold-lo: #2f6ad1;
  --hairline: rgba(var(--acc-rgb), .22);
  --hairline-soft: rgba(var(--acc-rgb), .12);
  --glass: rgba(26, 21, 14, .72);
  --glass-hi: rgba(38, 31, 20, .78);
  --field: rgba(12, 10, 6, .8);
  --hot: #ff6f61;
  --warm: var(--gold);
  --cold: #7d8aa0;
  --gruen: #34c77b;
  --rot: #ff5d5d;
  --ease: cubic-bezier(.32, .72, .28, 1);
}

* { box-sizing: border-box; margin: 0; -webkit-tap-highlight-color: transparent; }

/* Overscroll (Gummiband) zeigt sonst weiße Ränder: html dunkel hinterlegen
   und das vertikale Durchreißen am Rand unterbinden */
html {
  scroll-behavior: smooth;
  background: var(--bg);
  overscroll-behavior-y: none;
}
html, body { overflow-x: clip; }

body {
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(var(--acc-rgb), .14), transparent 60%),
    radial-gradient(700px 420px at -10% 30%, rgba(var(--acc-rgb), .07), transparent 60%),
    linear-gradient(180deg, #100d08 0%, var(--bg) 40%);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  font-size: 16px; line-height: 1.45;
  min-height: 100vh;
}

/* ---------- Layout (Cockpit-Muster): Desktop Sidebar + main, Handy Topbar + Bottom-Tabs ---------- */
main {
  margin-left: 250px;
  max-width: 1100px;
  padding: 22px 22px calc(28px + env(safe-area-inset-bottom));
}

.sidebar {
  width: 250px; height: 100vh; position: fixed; left: 0; top: 0; z-index: 100;
  background: rgba(16, 13, 8, .92);
  border-right: 1px solid var(--hairline-soft);
  display: flex; flex-direction: column; padding: 22px 0;
  overflow-y: auto;
}
.side-logo { text-align: center; padding: 0 20px 20px; }
.side-logo img {
  width: 74px; height: 74px; border-radius: 18px; margin-bottom: 10px;
  box-shadow: 0 8px 26px rgba(0, 0, 0, .5), 0 0 0 1px var(--hairline-soft);
}
.brand-marke {
  font-family: Georgia, "Times New Roman", serif;
  font-size: .62rem; letter-spacing: 3px; color: var(--gold);
  text-transform: uppercase; white-space: nowrap;
}
.brand-titel {
  font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.2;
  background: linear-gradient(180deg, var(--ink), #cfc4ab);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.badge {
  display: inline-block; min-width: 22px; text-align: center;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold-lo));
  color: #17130e; border-radius: 999px; padding: 1px 8px;
  font-size: .72rem; font-weight: 800; vertical-align: 4px;
  -webkit-text-fill-color: #17130e;
}
.sidebar nav { flex: 1; }
.nav-item {
  display: block; padding: 13px 22px; color: var(--muted);
  font-weight: 600; font-size: .98rem; cursor: pointer;
  border-left: 3px solid transparent;
  transition: color .2s, background .2s, border-color .2s;
}
.nav-item:hover { color: var(--ink); background: rgba(var(--acc-rgb), .06); text-decoration: none; }
.nav-item.active {
  color: var(--gold-hi);
  background: linear-gradient(90deg, rgba(var(--acc-rgb), .12), transparent);
  border-left-color: var(--gold);
}
.side-foot { padding: 14px 22px 0; border-top: 1px solid var(--hairline-soft); }
.side-foot a { color: var(--muted); font-size: .82rem; font-weight: 600; }
.side-foot a:hover { color: var(--gold-hi); text-decoration: none; }

/* Mobile-Elemente auf dem Desktop aus */
.m-top, .m-tabs, #ptr { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; border: none; cursor: pointer; text-decoration: none;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold-lo));
  color: #17130e; font: inherit; font-weight: 700; font-size: .92rem;
  padding: 11px 20px; border-radius: 13px;
  box-shadow: 0 4px 16px rgba(var(--acc-rgb), .25), inset 0 1px 0 rgba(255, 255, 255, .35);
  transition: transform .15s var(--ease), box-shadow .2s, opacity .2s;
}
.btn:active { transform: scale(.96); }
.btn:disabled { opacity: .45; cursor: default; }
.btn.ghost {
  background: var(--glass); color: var(--ink); font-weight: 600;
  border: 1px solid var(--hairline-soft); box-shadow: none;
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.btn.ghost:hover { border-color: var(--hairline); }

/* ---------- Glas-Karten (Container) ---------- */
.karte {
  background: var(--glass);
  border: 1px solid var(--hairline-soft); border-radius: 22px;
  padding: 18px; margin-bottom: 16px;
  backdrop-filter: blur(24px) saturate(1.3); -webkit-backdrop-filter: blur(24px) saturate(1.3);
  box-shadow: 0 10px 34px rgba(0, 0, 0, .35);
}
h2 { font-size: 1rem; font-weight: 700; letter-spacing: -.01em; margin-bottom: 12px; }

/* ---------- Formularfelder (immer dunkel) ---------- */
input, textarea, select,
input[type="password"], input[type="text"], input[type="search"], input[type="email"] {
  background: var(--field); color: var(--ink);
  border: 1px solid rgba(var(--acc-rgb), .18); border-radius: 12px;
  padding: 10px 12px; font: inherit; width: 100%;
  transition: border-color .2s, box-shadow .2s;
}
input:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(var(--acc-rgb), .15);
}
label { display: block; font-size: .82rem; color: var(--muted); }
label textarea, label input { margin-top: 6px; }
.dezent { color: var(--muted); font-size: .84rem; }
.fett { font-weight: 700; }

/* ---------- Stufen- & Prio-Chips ---------- */
.filter-row {
  position: sticky; top: 0; z-index: 5;
  margin: 0 -22px; padding: 8px 22px 10px;
  background: linear-gradient(180deg, rgba(11, 9, 6, .92) 70%, transparent);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.stage-row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.stage-row::-webkit-scrollbar { display: none; }
.s-chip {
  flex: none; display: inline-flex; align-items: center; gap: 7px;
  background: var(--glass); color: var(--muted);
  border: 1px solid var(--hairline-soft); border-radius: 999px;
  padding: 9px 16px; font: inherit; font-size: .86rem; font-weight: 600;
  white-space: nowrap; cursor: pointer;
  transition: all .25s var(--ease);
}
.s-chip b { color: var(--gold-hi); font-weight: 800; }
.s-chip.on {
  background: linear-gradient(180deg, rgba(var(--acc-rgb), .22), rgba(var(--acc-rgb), .16));
  border-color: var(--hairline); color: var(--ink);
  box-shadow: 0 2px 14px rgba(var(--acc-rgb), .18);
}
.prio-row { display: flex; gap: 6px; margin-top: 8px; }
.p-chip {
  background: transparent; color: var(--muted);
  border: 1px solid var(--hairline-soft); border-radius: 999px;
  padding: 5px 13px; font: inherit; font-size: .74rem; font-weight: 700;
  cursor: pointer; transition: all .2s;
}
.p-chip.on { border-color: var(--gold); color: var(--gold-hi); }
.p-chip.HOT.on { border-color: var(--hot); color: var(--hot); }
.p-chip.COLD.on { border-color: var(--cold); color: var(--cold); }

/* ---------- Lead-Karten ---------- */
#pipeline { display: grid; gap: 12px; }
.lead-card {
  background: var(--glass);
  border: 1px solid var(--hairline-soft); border-radius: 20px;
  padding: 16px; position: relative; overflow: hidden;
  backdrop-filter: blur(24px) saturate(1.3); -webkit-backdrop-filter: blur(24px) saturate(1.3);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .32);
  animation: card-in .45s var(--ease) backwards;
}
@keyframes card-in { from { opacity: 0; transform: translateY(14px) scale(.985); } }
.lead-card:nth-child(1) { animation-delay: .02s; }
.lead-card:nth-child(2) { animation-delay: .06s; }
.lead-card:nth-child(3) { animation-delay: .10s; }
.lead-card:nth-child(4) { animation-delay: .14s; }
.lead-card:nth-child(5) { animation-delay: .18s; }
/* Prio-Filter-Wechsel: Karten sollen stehen, nicht neu reinhüpfen */
#pipeline.ohne-anim .lead-card { animation: none; }
.lead-card::before {
  /* Prio-Lichtkante links */
  content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px;
  border-radius: 3px; background: var(--gold);
}
.lead-card.prio-HOT::before { background: linear-gradient(180deg, var(--hot), #c94436); }
.lead-card.prio-WARM::before { background: linear-gradient(180deg, var(--gold-hi), var(--gold-lo)); }
.lead-card.prio-COLD::before { background: var(--cold); }

.lead-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.lead-name { font-weight: 700; font-size: 1.04rem; letter-spacing: -.01em; }
.lead-meta { color: var(--muted); font-size: .8rem; margin-top: 3px; }

.score-pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .68rem; font-weight: 800; letter-spacing: .04em;
  border-radius: 7px; padding: 2.5px 8px; margin-right: 7px; vertical-align: 2px;
}
.score-pill.HOT { background: rgba(var(--hot-rgb), .16); color: var(--hot); box-shadow: inset 0 0 0 1px rgba(var(--hot-rgb), .35); }
.score-pill.WARM { background: rgba(var(--acc-rgb), .16); color: var(--gold-hi); box-shadow: inset 0 0 0 1px var(--hairline); }
.score-pill.COLD { background: rgba(125, 138, 160, .14); color: var(--cold); box-shadow: inset 0 0 0 1px rgba(125, 138, 160, .3); }

.call-fab {
  flex: none; display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(180deg, var(--gruen), var(--gruen-lo));
  font-size: 1.35rem; text-decoration: none;
  box-shadow: 0 6px 18px rgba(var(--ok-rgb), .35), inset 0 1px 0 rgba(255, 255, 255, .3);
  transition: transform .15s var(--ease);
}
.call-fab:active { transform: scale(.92); }
.no-tel { color: var(--muted); font-size: .74rem; align-self: center; }

.hints { display: flex; flex-wrap: wrap; gap: 6px; margin: 11px 0; }
.hint {
  background: rgba(var(--acc-rgb), .09); border: 1px solid var(--hairline-soft);
  color: var(--gold-hi); border-radius: 8px; padding: 3px 9px; font-size: .72rem; font-weight: 600;
}

/* Ausgang-Buttons */
.oc-stack { position: relative; }
.oc-stack .confirm-row { position: absolute; inset: 0; opacity: 0; pointer-events: none; transform: translateY(4px); }
.oc-stack.flipped .primary { opacity: 0; pointer-events: none; }
.oc-stack.flipped .confirm-row { opacity: 1; pointer-events: auto; transform: none; }
.outcome-row { display: flex; gap: 8px; transition: opacity .22s var(--ease), transform .22s var(--ease); }
.o-btn {
  flex: 1; border: 1px solid var(--hairline-soft);
  background: var(--field); color: var(--ink);
  border-radius: 12px; padding: 11px 8px; font: inherit; font-size: .86rem; font-weight: 600;
  cursor: pointer; transition: all .2s var(--ease);
}
.o-btn:active { transform: scale(.97); }
.o-btn.ok { border-color: rgba(var(--ok-rgb), .4); color: var(--gruen); }
.o-btn.win { border-color: rgba(var(--ok-rgb), .5); background: rgba(var(--ok-rgb), .12); color: var(--gruen); }
.o-btn.miss.on, .o-btn.wait.on { background: rgba(var(--acc-rgb), .14); border-color: var(--hairline); color: var(--gold-hi); }
.o-btn.lose { border-color: rgba(255, 93, 93, .35); color: var(--rot); }
.o-btn.back { flex: 0 0 48px; }
.outcome-row.await .o-btn.ok { animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 4px rgba(var(--ok-rgb), .18); } }

.btn-details {
  width: 100%; margin-top: 9px; background: transparent; border: none;
  color: var(--muted); font: inherit; font-size: .78rem; font-weight: 600;
  cursor: pointer; padding: 6px; transition: color .2s;
}
.btn-details:hover { color: var(--gold-hi); }
.lead-card .detail { display: none; }
.lead-card.open .detail {
  display: block; border-top: 1px solid var(--hairline-soft);
  padding-top: 12px; margin-top: 6px;
  animation: detail-in .3s var(--ease);
}
@keyframes detail-in { from { opacity: 0; transform: translateY(-4px); } }
.phone-line { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; font-size: 1.02rem; font-weight: 600; }
.btn-copy {
  background: var(--field); border: 1px solid var(--hairline-soft); color: var(--ink);
  border-radius: 9px; padding: 5px 11px; cursor: pointer; width: auto; font-size: .9rem;
}
.link-line { font-size: .85rem; margin-bottom: 12px; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.note-row { display: flex; gap: 8px; }
.note-row .note-save { flex: 0 0 48px; padding: 9px; border-radius: 12px; }
.history {
  margin-top: 12px; color: var(--muted); font-size: .76rem;
  display: grid; gap: 5px; max-height: 170px; overflow-y: auto;
  border-left: 2px solid var(--hairline-soft); padding-left: 10px;
}

.empty-state { text-align: center; color: var(--muted); padding: 56px 16px; font-size: .95rem; }

a { color: var(--gold-hi); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Lead-Detail-Fenster ---------- */
.modal-back {
  position: fixed; inset: 0; z-index: 340;
  background: rgba(5, 4, 2, .55);
  display: flex; align-items: flex-end; justify-content: center;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.modal-back[hidden] { display: none; }
.lead-modal {
  position: relative; width: 100%; max-width: 560px; margin: 0;
  max-height: 86dvh; overflow-y: auto;
  border-radius: 24px 24px 0 0;
  padding: 20px 18px calc(20px + env(safe-area-inset-bottom));
  animation: modal-rauf .3s var(--ease);
}
@keyframes modal-rauf { from { opacity: 0; transform: translateY(40px); } }
@media (min-width: 700px) {
  .modal-back { align-items: center; padding: 24px; }
  .lead-modal { border-radius: 24px; max-height: 82vh; }
}
.lm-x {
  position: absolute; top: 12px; right: 12px;
  background: var(--field); border: 1px solid var(--hairline-soft); color: var(--muted);
  border-radius: 50%; width: 34px; height: 34px; font: inherit; font-size: .9rem;
  cursor: pointer; display: grid; place-items: center;
}
.lm-kopf { padding-right: 40px; margin-bottom: 4px; }
.lm-info { display: grid; gap: 9px; margin: 12px 0 14px; }
.lm-zeile { font-size: .92rem; }
.lm-zeile .btn-copy { margin-left: 8px; }
.lm-warn { color: var(--hot); font-size: .78rem; font-weight: 700; }
.lm-aktionen { display: flex; gap: 10px; margin-bottom: 14px; }
.lm-aktionen .btn { flex: 1; text-align: center; }
.lm-call { background: linear-gradient(180deg, var(--gruen), var(--gruen-lo)); box-shadow: 0 4px 16px rgba(var(--ok-rgb), .3), inset 0 1px 0 rgba(255, 255, 255, .35); }
.lead-modal .history { max-height: 150px; }
.ck-row { cursor: pointer; }
.lead-card { cursor: pointer; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(26px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  background: var(--glass-hi); border: 1px solid var(--hairline);
  color: var(--ink); border-radius: 999px; padding: 11px 22px;
  font-size: .9rem; font-weight: 600; z-index: 30;
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 10px 32px rgba(0, 0, 0, .5);
  animation: toast-in .3s var(--ease);
}
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 10px); } }

/* ---------- Statistik ---------- */
.totals-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 10px; }
.total-tile {
  background: var(--field); border: 1px solid var(--hairline-soft); border-radius: 16px;
  padding: 14px 10px; text-align: center; color: var(--muted); font-size: .78rem; font-weight: 600;
}
.total-tile b {
  display: block; font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold-lo));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.total-tile .tile-sub { display: block; color: var(--muted); font-size: .68rem; font-weight: 600; margin-top: 2px; }
#st-kpis { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { #st-kpis { grid-template-columns: repeat(4, 1fr); } }

/* Funnel */
.fu-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.fu-row:last-child { margin-bottom: 0; }
.fu-name { flex: 0 0 92px; color: var(--muted); font-size: .8rem; font-weight: 600; text-align: right; }
.fu-track { flex: 1; height: 18px; background: var(--field); border-radius: 4px; overflow: hidden; }
.fu-track i { display: block; height: 100%; border-radius: 0 4px 4px 0; transition: width .6s var(--ease); }
.fu-val { flex: 0 0 86px; font-size: .88rem; font-weight: 700; }
.fu-val em { font-style: normal; color: var(--muted); font-size: .72rem; font-weight: 600; margin-left: 6px; }

/* Säulen-SVG (Anrufe pro Tag) */
.ch-svg { width: 100%; height: auto; display: block; }
.ch-grid { stroke: rgba(242, 236, 223, .08); stroke-width: 1; }
.ch-achse { stroke: rgba(242, 236, 223, .18); stroke-width: 1; }
.ch-tick { fill: var(--muted); font-size: 11px; font-family: inherit; }
.ch-heute { fill: var(--gold-hi); font-weight: 700; }
.ch-ziel { stroke: rgba(var(--hot-rgb), .55); stroke-width: 1; }
.ch-ziel-txt { fill: rgba(var(--hot-rgb), .8); font-size: 11px; font-weight: 600; }

/* Legende */
.ch-legende { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 12px; }
.lg-item { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: .76rem; font-weight: 600; }
.lg-item i { width: 10px; height: 10px; border-radius: 3px; }
.lg-item b { color: var(--ink); }

/* Nach Gewerk: gestapelte Balken */
.gw-row { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; }
.gw-row:last-child { margin-bottom: 0; }
.gw-name { flex: 0 0 118px; font-size: .8rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gw-track { display: flex; gap: 2px; height: 16px; min-width: 12px; }
.gw-track i { border-radius: 2px; min-width: 4px; }
.gw-track i:first-child { border-radius: 4px 2px 2px 4px; }
.gw-track i:last-child { border-radius: 2px 4px 4px 2px; }
.gw-val { color: var(--muted); font-size: .8rem; font-weight: 700; }

/* Prio-100%-Balken */
.prio-balken { display: flex; gap: 2px; height: 26px; margin-bottom: 12px; }
.prio-balken i {
  display: flex; align-items: center; justify-content: center;
  border-radius: 3px; min-width: 6px; overflow: hidden;
}
.prio-balken i:first-child { border-radius: 7px 3px 3px 7px; }
.prio-balken i:last-child { border-radius: 3px 7px 7px 3px; }
.prio-balken b { font-size: .7rem; font-weight: 800; letter-spacing: .03em; white-space: nowrap; }
.ch-leer { padding: 6px 0; }

/* Diagramm-Tooltip */
.chart-tip {
  position: fixed; z-index: 320; pointer-events: none;
  background: var(--glass-hi); border: 1px solid var(--hairline);
  color: var(--ink); border-radius: 10px; padding: 7px 12px;
  font-size: .8rem; font-weight: 600; white-space: nowrap;
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 26px rgba(0, 0, 0, .5);
}

/* ---------- Heute-Cockpit ---------- */
.cockpit-hero { padding: 22px 20px; }
.cockpit-datum {
  color: var(--muted); font-size: .82rem; font-weight: 600;
  text-transform: capitalize; margin-bottom: 10px;
}
.ziel-zeile { display: flex; align-items: baseline; gap: 8px; }
.ziel-zahl b {
  font-size: 3.2rem; font-weight: 800; letter-spacing: -.03em; line-height: 1;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold-lo));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.ziel-von { color: var(--muted); font-size: 1rem; font-weight: 600; margin-left: 6px; }
.ziel-edit {
  background: none; border: none; cursor: pointer; padding: 0 2px;
  color: var(--ink); font: inherit; font-weight: 800;
  border-bottom: 1px dashed var(--hairline);
}
.ziel-input { width: 74px !important; padding: 4px 8px; font-weight: 800; text-align: center; }
.ziel-balken {
  height: 10px; background: var(--field); border-radius: 6px;
  overflow: hidden; margin: 14px 0 16px;
}
.ziel-balken i {
  display: block; height: 100%; border-radius: 6px; width: 0;
  background: linear-gradient(90deg, var(--gold-lo), var(--gold-hi));
  box-shadow: 0 0 14px rgba(var(--acc-rgb), .5);
  transition: width .7s var(--ease);
}
.ziel-balken i.voll { background: linear-gradient(90deg, var(--gruen-lo), var(--gruen)); box-shadow: 0 0 14px rgba(var(--ok-rgb), .5); }
/* Heute = Erster-Blick-Seite: Abarbeit-Blöcke mit Lead-Zeilen */
.ck-kompakt { padding: 18px 20px 16px; }
.ck-kompakt .ziel-zahl b { font-size: 2.3rem; }
.ck-kompakt .ziel-balken { margin: 10px 0 8px; }
.ck-kompakt .cockpit-heute-erfolge { margin-top: 4px; text-align: left; }
.ck-block { padding: 14px 16px; }
.ck-block-kopf { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.ck-block-kopf h2 { margin-bottom: 0; }
.ck-block-kopf h2 b { color: var(--gold-hi); }
.ck-gesehen {
  background: transparent; border: 1px solid var(--hairline-soft); color: var(--muted);
  border-radius: 999px; padding: 4px 12px; font: inherit; font-size: .74rem; font-weight: 600;
  cursor: pointer; transition: all .2s;
}
.ck-gesehen:hover { color: var(--gold-hi); border-color: var(--hairline); }
.ck-row {
  display: flex; align-items: center; gap: 10px; padding: 10px 0;
  border-bottom: 1px solid var(--hairline-soft);
}
.ck-block .ck-row:last-of-type { border-bottom: none; }
.ck-row .score-pill { flex: none; }
.ck-row-txt { flex: 1; min-width: 0; }
.ck-row-txt b { display: block; font-size: .94rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ck-row-txt span { display: block; color: var(--muted); font-size: .76rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ck-call {
  flex: none; display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 50%; border: none; cursor: pointer;
  background: linear-gradient(180deg, var(--gruen), var(--gruen-lo)); font-size: 1.1rem;
  box-shadow: 0 4px 14px rgba(var(--ok-rgb), .3), inset 0 1px 0 rgba(255, 255, 255, .3);
  transition: transform .15s var(--ease);
}
.ck-call:active { transform: scale(.92); }
.ck-mini-oc { display: flex; gap: 6px; flex: none; }
.ck-mini-oc .o-btn { flex: none; width: 44px; padding: 9px 0; }
.ck-mehr {
  display: block; text-align: center; padding: 9px 0 2px;
  color: var(--muted); font-size: .8rem; font-weight: 600;
}
.ck-mehr:hover { color: var(--gold-hi); text-decoration: none; }
.ck-leer { text-align: center; color: var(--muted); font-size: .9rem; padding: 10px 0; }
.session-btn {
  width: 100%; padding: 17px; font-size: 1.06rem; border-radius: 17px;
  letter-spacing: .01em;
}
.queue-n { font-weight: 600; opacity: .75; font-size: .88rem; }
.cockpit-heute-erfolge {
  margin-top: 14px; text-align: center; color: var(--muted);
  font-size: .84rem; font-weight: 600; min-height: 1.2em;
}
.wv-datum { color: var(--gold-hi); font-weight: 700; }
.wv-faellig { color: var(--hot); font-weight: 700; }
.wv-row { margin-top: 8px; }

/* ---------- Call-Modus (Vollbild) ---------- */
.call-mode {
  position: fixed; inset: 0; z-index: 300;
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(var(--acc-rgb), .16), transparent 60%),
    linear-gradient(180deg, #100d08 0%, var(--bg) 40%);
  display: flex; flex-direction: column;
  padding: calc(14px + env(safe-area-inset-top)) 16px calc(20px + env(safe-area-inset-bottom));
  animation: call-auf .35s var(--ease);
}
.call-mode[hidden] { display: none; }
@keyframes call-auf { from { opacity: 0; transform: translateY(30px); } }
body.call-offen { overflow: hidden; }
.call-kopf { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.call-schliessen, .call-skip {
  background: var(--glass); border: 1px solid var(--hairline-soft); color: var(--muted);
  border-radius: 999px; padding: 8px 15px; font: inherit; font-size: .82rem; font-weight: 600;
  cursor: pointer; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.call-fortschritt { color: var(--gold-hi); font-weight: 800; font-size: .92rem; letter-spacing: .04em; }
.call-body { flex: 1; display: flex; flex-direction: column; justify-content: center; overflow-y: auto; }
.call-lead {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px;
  animation: lead-rein .3s var(--ease);
}
@keyframes lead-rein { from { opacity: 0; transform: translateX(46px); } }
.call-lead.raus { transition: transform .25s ease, opacity .25s ease; transform: translateX(-60px); opacity: 0; }
.call-tags { display: flex; gap: 8px; align-items: center; }
.call-grund {
  background: rgba(var(--hot-rgb), .14); color: var(--hot);
  border-radius: 8px; padding: 3px 10px; font-size: .72rem; font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(var(--hot-rgb), .35);
}
.call-name { font-size: 1.65rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.call-meta { color: var(--muted); font-size: .86rem; }
.call-hints { justify-content: center; margin: 2px 0; }
.call-notiz-alt {
  color: var(--gold-hi); font-size: .82rem; font-weight: 600;
  background: rgba(var(--acc-rgb), .09); border: 1px solid var(--hairline-soft);
  border-radius: 10px; padding: 7px 13px; max-width: 100%;
}
.call-riesig, .call-riesig:hover {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  margin: 16px 0 10px; text-decoration: none;
}
.call-riesig-icon {
  display: grid; place-items: center; width: 108px; height: 108px; border-radius: 50%;
  background: linear-gradient(180deg, var(--gruen), var(--gruen-lo)); font-size: 2.6rem;
  box-shadow: 0 12px 36px rgba(var(--ok-rgb), .45), inset 0 2px 0 rgba(255, 255, 255, .3);
  transition: transform .15s var(--ease);
}
.call-riesig:active .call-riesig-icon { transform: scale(.92); }
.call-riesig-nr { color: var(--ink); font-size: 1.15rem; font-weight: 700; letter-spacing: .02em; }
.call-oc { width: 100%; max-width: 460px; }
.o-btn.gross { padding: 15px 6px; font-size: .92rem; border-radius: 14px; }
.call-note { width: 100%; max-width: 460px; margin-top: 4px; }
.call-summary {
  display: flex; flex-direction: column; align-items: center; gap: 20px;
  text-align: center; animation: lead-rein .3s var(--ease);
}
.summary-titel { font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; }
.summary-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; width: 100%; max-width: 460px; }
.summary-ziel { color: var(--muted); font-size: .92rem; font-weight: 600; }
.summary-ziel b { color: var(--gold-hi); }
#summary-fertig { min-width: 180px; }

/* ---------- Scraper-Seite ---------- */
.lauf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lauf-leiste { margin-top: 14px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.fortschritt { margin-top: 14px; }
.balken { height: 8px; background: var(--field); border-radius: 4px; overflow: hidden; margin-bottom: 8px; }
.balken > div {
  height: 100%; width: 0; border-radius: 4px;
  background: linear-gradient(90deg, var(--gold-lo), var(--gold-hi));
  box-shadow: 0 0 12px rgba(var(--acc-rgb), .5);
  transition: width .5s var(--ease);
}
#laufLog {
  background: var(--field); border: 1px solid var(--hairline-soft); border-radius: 12px;
  padding: 12px; margin-top: 8px; font-size: .74rem; color: var(--muted);
  max-height: 190px; overflow-y: auto; white-space: pre-wrap;
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
}
.warnung {
  background: rgba(255, 93, 93, .1); border: 1px solid rgba(255, 93, 93, .35);
  color: #ffb3b3; border-radius: 14px; padding: 11px 15px; margin-bottom: 12px; font-size: .88rem;
}
.tabelle-kopf { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; flex-wrap: wrap; gap: 8px; }
.filter { display: flex; gap: 8px; }
.filter select { width: auto; }
.tabelle-wrap { overflow-x: auto; margin: 0 -18px; padding: 0 18px; }
table { border-collapse: collapse; width: 100%; font-size: .84rem; }
th, td { padding: 9px 10px; text-align: left; border-bottom: 1px solid var(--hairline-soft); white-space: nowrap; }
th { color: var(--muted); font-weight: 700; font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; }
.prio { padding: 2px 8px; border-radius: 7px; font-size: .68rem; font-weight: 800; }
.prio.HOT { background: rgba(var(--hot-rgb), .16); color: var(--hot); }
.prio.WARM { background: rgba(var(--acc-rgb), .16); color: var(--gold-hi); }
.prio.COLD { background: rgba(125, 138, 160, .14); color: var(--cold); }
.hot-tag { color: var(--hot); font-weight: 800; font-size: .74rem; }

/* ---------- Login ---------- */
.login-body { display: grid; place-items: center; min-height: 92vh; }
.login-karte { width: min(380px, 92vw); display: grid; gap: 16px; text-align: center; padding: 28px; }
.login-karte img {
  width: 108px; height: 108px; border-radius: 26px; margin: 0 auto;
  box-shadow: 0 14px 44px rgba(0, 0, 0, .55), 0 0 0 1px var(--hairline-soft);
}
.login-karte h1 {
  font-family: Georgia, "Times New Roman", serif; font-size: 1.05rem;
  letter-spacing: 4px; color: var(--gold); font-weight: 400;
}
.login-karte label { text-align: left; }

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

/* ---------- Handy-Layout (Cockpit-Muster: Topbar + schwebende Glas-Tab-Bar) ---------- */
@media (max-width: 900px) {
  html, body { overscroll-behavior-y: none; }
  .sidebar { display: none; }
  main {
    margin: 0; max-width: none;
    padding: calc(62px + env(safe-area-inset-top)) 14px calc(96px + env(safe-area-inset-bottom));
  }

  /* Topbar: Liquid Glass mit Licht-Sheen */
  .m-top {
    display: flex; position: fixed; top: 0; left: 0; right: 0; z-index: 200;
    align-items: center; gap: 12px; padding: 9px 16px;
    padding-top: calc(9px + env(safe-area-inset-top));
    background: linear-gradient(135deg, rgba(48, 39, 24, .62), rgba(16, 13, 8, .45));
    -webkit-backdrop-filter: blur(20px) saturate(1.8) brightness(1.12);
    backdrop-filter: blur(20px) saturate(1.8) brightness(1.12);
    border-bottom: 1px solid rgba(var(--acc-rgb), .14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 8px 26px rgba(0, 0, 0, .3);
  }
  .m-top::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(120deg, rgba(255, 255, 255, .09), transparent 42%);
  }
  .m-top img {
    height: 34px; width: 34px; border-radius: 9px; position: relative; z-index: 1;
    box-shadow: 0 0 0 1px var(--hairline-soft);
  }
  .m-titel {
    position: relative; z-index: 1;
    font-size: 1.1rem; font-weight: 800; letter-spacing: -.01em;
  }

  /* Bottom-Tab-Bar: schwebende Glas-Insel mit goldenem Aktiv-Pill */
  .m-tabs {
    display: flex;
    position: fixed; left: 10px; right: 10px; z-index: 200;
    bottom: max(8px, calc(env(safe-area-inset-bottom) - 14px));
    padding: 5px;
    background: linear-gradient(135deg, rgba(52, 42, 26, .64), rgba(16, 13, 8, .46));
    -webkit-backdrop-filter: blur(22px) saturate(1.8) brightness(1.12);
    backdrop-filter: blur(22px) saturate(1.8) brightness(1.12);
    border: 1px solid rgba(var(--acc-rgb), .18);
    border-radius: 28px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 -1px 0 rgba(255, 255, 255, .04),
      0 14px 38px rgba(0, 0, 0, .55), 0 0 0 .5px rgba(0, 0, 0, .4);
  }
  .m-tabs::after {
    content: ""; position: absolute; inset: 0; border-radius: 28px; pointer-events: none;
    background: linear-gradient(125deg, rgba(255, 255, 255, .1), transparent 38%);
  }
  .mtab {
    position: relative; z-index: 1;
    flex: 1 1 0; min-width: 0;
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    padding: 8px 2px 7px; font-size: .66rem; font-weight: 700; letter-spacing: .3px;
    color: var(--muted); cursor: pointer; user-select: none;
    overflow: hidden; white-space: nowrap;
    border-radius: 22px; text-decoration: none;
  }
  .mtab:hover { text-decoration: none; }
  .mtab .ic { font-size: 21px; line-height: 1; }
  .mtab.active {
    color: var(--gold-hi);
    background: linear-gradient(135deg, rgba(var(--acc-rgb), .36), rgba(var(--acc-rgb), .14));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 2px 12px rgba(var(--acc-rgb), .22);
    text-shadow: 0 0 12px rgba(var(--acc-rgb), .35);
  }

  /* Fallback ohne backdrop-filter (iOS-Stromsparmodus): fast blickdicht statt durchsichtig */
  @supports not (backdrop-filter: blur(1px)) {
    .m-top { background: linear-gradient(135deg, rgba(48, 39, 24, .96), rgba(16, 13, 8, .94)); }
    .m-tabs { background: linear-gradient(135deg, rgba(52, 42, 26, .97), rgba(16, 13, 8, .95)); }
  }

  /* Stufen-Chips kleben unter der Topbar */
  .filter-row {
    top: calc(52px + env(safe-area-inset-top));
    margin: 0 -14px; padding: 8px 14px 10px;
  }

  /* Pull-to-Refresh: Ring kommt beim Ziehen runter, wird beim Loslassen
     grün (= jetzt greift's) und dreht sich beim Laden */
  #ptr {
    display: flex; position: fixed; left: 50%; z-index: 190;
    top: calc(56px + env(safe-area-inset-top));
    translate: -50% -90px;
    align-items: center; justify-content: center;
  }
  #ptr .ptr-ring {
    width: 30px; height: 30px; border-radius: 50%;
    border: 3px solid rgba(242, 236, 223, .16);
    border-top-color: var(--gold-hi);
    filter: drop-shadow(0 3px 9px rgba(0, 0, 0, .5));
    transition: transform .15s;
  }
  #ptr.ready .ptr-ring { transform: scale(1.18); border-top-color: var(--gruen); }
  #ptr.spin { animation: ptr-spin .7s linear infinite; }
  @keyframes ptr-spin { to { rotate: 360deg; } }
}

/* =====================================================================
   v13 – Cockpit-Umbau: Navigation, Wochen-Strip, Formulare, Termine, Kunden
   ===================================================================== */

/* Sidebar: Gruppen-Überschrift + Zähler */
.nav-gruppe {
  padding: 16px 22px 4px; color: var(--muted); font-size: .66rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
}
.nav-n[hidden] { display: none; }
.nav-n {
  display: inline-block; min-width: 20px; text-align: center; margin-left: 6px;
  background: rgba(var(--hot-rgb), .18); color: var(--hot); border-radius: 999px;
  padding: 0 7px; font-size: .7rem; font-weight: 800; vertical-align: 2px;
}

/* Formularfelder: auch Datum/Zahl/Suche immer dunkel */
input[type="date"], input[type="datetime-local"], input[type="number"], input[type="search"] {
  background: var(--field); color: var(--ink); color-scheme: dark;
  border: 1px solid rgba(var(--acc-rgb), .18); border-radius: 12px; padding: 10px 12px; font: inherit; width: 100%;
}
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="datetime-local"]::-webkit-calendar-picker-indicator { filter: invert(.8) sepia(.6); cursor: pointer; }

/* Wochen-Strip im Heute-Hero */
.woche-strip { margin-top: 14px; border-top: 1px solid var(--hairline-soft); padding-top: 12px; }
.wk-balken { display: flex; gap: 6px; height: 44px; align-items: flex-end; }
.wk-tag { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 3px; cursor: default; }
.wk-tag i {
  display: block; width: 100%; max-width: 34px; border-radius: 4px 4px 2px 2px;
  background: rgba(var(--acc-rgb), .35); transition: height .5s var(--ease);
}
.wk-tag i.voll { background: linear-gradient(180deg, var(--gruen), var(--gruen-lo)); }
.wk-tag.heute i { background: linear-gradient(180deg, var(--gold-hi), var(--gold-lo)); box-shadow: 0 0 10px rgba(var(--acc-rgb), .4); }
.wk-tag.heute i.voll { background: linear-gradient(180deg, var(--gruen), var(--gruen-lo)); }
.wk-tag.unter i { background: rgba(var(--hot-rgb), .28); }
.wk-tag span { font-size: .62rem; font-weight: 700; color: var(--muted); }
.wk-tag.heute span { color: var(--gold-hi); }
.wk-zahlen { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 10px; color: var(--muted); font-size: .78rem; font-weight: 600; }
.wk-zahlen b { color: var(--ink); font-size: .9rem; }
.wk-zahlen em { font-style: normal; color: var(--gold-hi); font-size: .7rem; margin-left: 2px; }

/* Stufen-Info auf Karten (Termin/Angebot/Kunde) */
.card-info { font-size: .84rem; margin: 10px 0 11px; line-height: 1.5; }
.card-info .hint { vertical-align: 1px; margin-right: 2px; }
.card-info b { color: var(--gold-hi); }

/* Heute: Warnungen + Aufgaben */
.ck-warn { border-color: rgba(var(--hot-rgb), .35); box-shadow: 0 10px 34px rgba(0, 0, 0, .35), inset 0 0 0 1px rgba(var(--hot-rgb), .12); }
.ck-warn h2 b { color: var(--hot); }
.warn-txt { color: #ffb3a8; }
.ck-row.ueberfaellig .ck-row-txt b { color: #ffb3a8; }
.check {
  flex: none; width: 30px; height: 30px; border-radius: 50%; cursor: pointer;
  border: 2px solid var(--hairline); background: transparent; color: #17130e;
  font: inherit; font-weight: 800; font-size: .9rem; display: grid; place-items: center;
  transition: all .2s var(--ease);
}
.check.on { background: linear-gradient(180deg, var(--gruen), var(--gruen-lo)); border-color: transparent; }
.ck-row.done .ck-row-txt b { text-decoration: line-through; color: var(--muted); }
.o-btn em { font-style: normal; font-size: .72rem; margin-left: 4px; color: var(--muted); }
.o-btn em.wv-faellig { color: var(--hot); }
.ck-block-kopf .ck-gesehen + .ck-gesehen { margin-left: 6px; }

/* Sheet: Blöcke im Lead-Detail + Formulare */
.lm-block {
  background: var(--field); border: 1px solid var(--hairline-soft); border-radius: 14px;
  padding: 11px 13px; margin: 10px 0; font-size: .88rem; line-height: 1.5;
}
.lm-block b { color: var(--gold-hi); }
.lm-block .hint { vertical-align: 1px; }
.lm-block-btns { display: flex; gap: 8px; margin-top: 9px; }
.lm-block-btns .o-btn { padding: 8px 6px; font-size: .8rem; text-align: center; }
.lm-aktionen.sekundaer { flex-wrap: wrap; gap: 8px; }
.lm-aktionen.sekundaer .o-btn { flex: 1 1 auto; min-width: 0; padding: 9px 8px; font-size: .8rem; }
.f-titel { font-size: 1.25rem; font-weight: 800; letter-spacing: -.02em; margin: 0 40px 4px 0; }
.f-lead { color: var(--muted); font-size: .84rem; margin-bottom: 14px; }
.f-feld { display: block; margin-bottom: 12px; }
.f-feld > input, .f-feld > select, .f-feld > .chip-row { margin-top: 6px; }
.f-zwei { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.f-btns { display: flex; gap: 10px; margin-top: 6px; }
.f-btns .btn { flex: 1; text-align: center; }
.f-btns .btn.ghost.armed { border-color: rgba(255, 93, 93, .5); color: var(--rot); }
.f-stack { display: grid; gap: 8px; }
.f-stack .o-btn { text-align: left; padding-left: 14px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-row .p-chip { padding: 7px 13px; font-size: .8rem; }
.f-module { display: grid; gap: 8px; margin-bottom: 12px; }
.f-modul {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  background: var(--field); border: 1px solid var(--hairline-soft); border-radius: 12px;
  padding: 10px 12px; font-size: .9rem; color: var(--ink); transition: all .2s;
}
.f-modul input { width: 18px; height: 18px; margin: 0; accent-color: var(--gold); flex: none; }
.f-modul span { flex: 1; font-weight: 600; }
.f-modul em { font-style: normal; color: var(--muted); font-size: .78rem; white-space: nowrap; }
.f-modul.on { border-color: var(--hairline); background: rgba(var(--acc-rgb), .1); }
.f-modul.on em { color: var(--gold-hi); }
.f-liste { margin-top: 10px; max-height: 50vh; overflow-y: auto; }
.f-liste .ck-row { cursor: pointer; }
.f-liste .ck-row:hover { background: rgba(var(--acc-rgb), .05); }
.lead-modal h2.f-titel { margin-bottom: 4px; }

/* Termine-Seite */
.tm-kopf { display: grid; gap: 14px; }
.tm-kpis { grid-template-columns: repeat(4, 1fr); }
.tm-kpis .total-tile b { font-size: 1.35rem; }
.termin-row { cursor: pointer; }
.termin-zeit { flex: none; width: 52px; text-align: center; }
.termin-zeit b { display: block; font-size: 1rem; font-weight: 800; color: var(--gold-hi); }
.termin-zeit span { display: block; font-size: .66rem; color: var(--muted); font-weight: 600; white-space: nowrap; }
.termin-row.ueberfaellig .termin-zeit b { color: var(--hot); }
.erg-pill {
  flex: none; font-size: .7rem; font-weight: 800; border-radius: 8px; padding: 3px 9px;
  background: rgba(var(--acc-rgb), .14); color: var(--gold-hi);
}
.erg-pill.erg-kunde { background: rgba(var(--ok-rgb), .14); color: var(--gruen); }
.erg-pill.erg-verloren, .erg-pill.erg-no_show { background: rgba(255, 93, 93, .12); color: var(--rot); }

/* Kunden-Seite */
.kd-kpis { grid-template-columns: repeat(2, 1fr); }
.kd-kpis .total-tile b { font-size: 1.35rem; }
.kd-grid { display: grid; gap: 12px; }
.kd-card { animation: none; }
.kd-edit { flex: none; padding: 7px 12px; }
.ob-kopf { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: .82rem; font-weight: 600; color: var(--muted); margin: 4px 0 10px; }
.ob-kopf b { color: var(--ink); }
.ob-bar { flex: 1; height: 8px; background: var(--field); border-radius: 5px; overflow: hidden; }
.ob-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-lo), var(--gold-hi)); transition: width .5s var(--ease); }
.ob-bar i.voll { background: linear-gradient(90deg, var(--gruen-lo), var(--gruen)); }
.ob-liste { display: grid; gap: 4px; margin-bottom: 12px; }
.ob-row {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  padding: 6px 8px; border-radius: 10px; font-size: .86rem; transition: background .2s;
}
.ob-row:hover { background: rgba(var(--acc-rgb), .06); }
.ob-row .check { width: 24px; height: 24px; font-size: .75rem; }
.ob-row span { flex: 1; }
.ob-row.done span { color: var(--muted); text-decoration: line-through; }
.ob-row em { font-style: normal; color: var(--muted); font-size: .72rem; }

@media (min-width: 700px) {
  .tm-kopf { grid-template-columns: 1fr auto; align-items: center; }
  .kd-kpis { grid-template-columns: repeat(4, 1fr); }
  .kd-grid { grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); }
}
@media (max-width: 700px) {
  .tm-kpis { grid-template-columns: repeat(2, 1fr); }
  #st-kpis { grid-template-columns: repeat(2, 1fr); }
}
/* Einzel-Aktion in einer Heute-Zeile: kompakt, nicht volle Breite */
.ck-row > .o-btn { flex: none; width: 44px; padding: 9px 0; text-align: center; }

/* =====================================================================
   v14 – Design-Überarbeitung: sachlich, ruhig, erwachsen.
   Linien-Icons statt Emojis, flache Flächen, kleine Radien, Gold nur als
   Akzent, kein Glow, keine Verlaufs-Schrift. Überschreibt die Regeln oben.
   ===================================================================== */
:root {
  --bg: #0c0b09;
  --ink: #ebe6db;
  --muted: #8f8778;
  --dim: #5f594e;
  --gold: #4f8ff7;
  --gold-hi: #8ab8ff;
  --gold-lo: #2f6ad1;
  --surface: #14120e;
  --surface-hi: #1b1813;
  --line: rgba(255, 255, 255, .07);
  --line-hi: rgba(255, 255, 255, .12);
  --hairline: var(--line-hi);
  --hairline-soft: var(--line);
  --glass: var(--surface);
  --glass-hi: var(--surface-hi);
  --field: #0f0e0b;
  --hot: #e0705f;
  --warm: var(--gold);
  --cold: #7c8594;
  --gruen: #3fbf80;
  --rot: #e06060;
  --r-card: 14px;
  --r-btn: 10px;
  --r-pill: 5px;
}
html { scroll-behavior: auto; }
body { background: var(--bg); font-size: 15px; -webkit-font-smoothing: antialiased; }

/* Icons */
.ic {
  display: inline-block; width: 1.05em; height: 1.05em; vertical-align: -.17em;
  fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round;
  flex: none;
}
h2 .ic, .ck-block-kopf h2 .ic { width: 15px; height: 15px; color: var(--muted); margin-right: 4px; vertical-align: -2px; }

/* ---------- Layout ---------- */
.sidebar { background: #0e0d0a; border-right: 1px solid var(--line); padding: 26px 0 18px; }
.side-logo img { width: 56px; height: 56px; border-radius: 12px; box-shadow: none; border: 1px solid var(--line-hi); }
.brand-marke { font-size: .58rem; letter-spacing: 3px; color: var(--gold); }
.brand-titel {
  font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em;
  background: none; -webkit-text-fill-color: var(--ink); color: var(--ink);
}
.badge { background: var(--gold); -webkit-text-fill-color: #17130e; border-radius: 5px; font-size: .68rem; padding: 1px 6px; vertical-align: 3px; }
.nav-item {
  display: flex; align-items: center; gap: 11px; padding: 10px 22px; font-size: .92rem; font-weight: 500;
  border-left: 2px solid transparent; color: var(--muted);
}
.nav-item .ic { width: 17px; height: 17px; opacity: .8; }
.nav-item:hover { background: rgba(255, 255, 255, .03); color: var(--ink); }
.nav-item.active { background: rgba(var(--acc-rgb), .07); border-left-color: var(--gold); color: var(--ink); }
.nav-item.active .ic { color: var(--gold-hi); opacity: 1; }
.nav-gruppe { padding: 18px 24px 6px; font-size: .62rem; color: var(--dim); }
.nav-n { background: rgba(var(--hot-rgb), .14); color: var(--hot); border-radius: 4px; font-size: .66rem; margin-left: auto; }
.side-foot a { display: inline-flex; align-items: center; gap: 8px; }

/* ---------- Buttons ---------- */
.btn {
  background: var(--gold); color: #171307; font-weight: 600; font-size: .9rem;
  padding: 11px 18px; border-radius: var(--r-btn); box-shadow: none;
}
.btn:hover { background: var(--gold-hi); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-hi); backdrop-filter: none; -webkit-backdrop-filter: none; }
.btn.ghost:hover { background: rgba(255, 255, 255, .03); }
.session-btn { padding: 15px; font-size: 1rem; border-radius: 12px; display: flex; align-items: center; justify-content: center; gap: 10px; }
.queue-n { font-weight: 500; opacity: .7; font-size: .85rem; }

/* ---------- Karten ---------- */
.karte, .lead-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
  backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none;
}
.karte { padding: 18px 18px; margin-bottom: 12px; }
.lead-card { padding: 15px 16px; animation: none; }
.lead-card::before { width: 2px; top: 16px; bottom: 16px; border-radius: 2px; }
.lead-card.prio-HOT::before { background: var(--hot); }
.lead-card.prio-WARM::before { background: var(--gold); }
.lead-card.prio-COLD::before { background: var(--cold); }
#pipeline { gap: 10px; }
h2 { font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
h2 .dezent { text-transform: none; letter-spacing: 0; font-weight: 500; font-size: .76rem; color: var(--dim); }
.ck-block-kopf h2 { color: var(--ink); font-size: .82rem; }
.ck-block-kopf h2 b { color: var(--gold-hi); font-weight: 600; margin-left: 2px; }
.ck-warn { border-color: rgba(var(--hot-rgb), .3); box-shadow: none; }
.ck-warn h2 .ic { color: var(--hot); }
.warn-txt { color: #e8a094; }

/* ---------- Felder ---------- */
input, textarea, select,
input[type="password"], input[type="text"], input[type="search"], input[type="email"],
input[type="date"], input[type="datetime-local"], input[type="number"] {
  border: 1px solid var(--line-hi); border-radius: var(--r-btn); padding: 10px 12px; background: var(--field);
}
input:focus, textarea:focus, select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(var(--acc-rgb), .12); }

/* ---------- Chips / Pills ---------- */
.s-chip {
  background: transparent; border: 1px solid var(--line); border-radius: 8px;
  padding: 8px 13px; font-size: .84rem; font-weight: 500; color: var(--muted);
}
.s-chip b { font-weight: 600; color: var(--muted); }
.s-chip.on { background: rgba(var(--acc-rgb), .1); border-color: rgba(var(--acc-rgb), .35); color: var(--ink); box-shadow: none; }
.s-chip.on b { color: var(--gold-hi); }
.p-chip { border-radius: 6px; font-weight: 600; letter-spacing: .04em; }
.filter-row { background: linear-gradient(180deg, var(--bg) 75%, transparent); backdrop-filter: none; -webkit-backdrop-filter: none; }
.score-pill, .prio {
  background: transparent; box-shadow: none; border: 1px solid currentColor;
  border-radius: var(--r-pill); font-size: .6rem; letter-spacing: .1em; padding: 2px 6px; opacity: .95;
}
.score-pill.HOT, .prio.HOT { color: var(--hot); }
.score-pill.WARM, .prio.WARM { color: var(--gold); }
.score-pill.COLD, .prio.COLD { color: var(--cold); }
.hint { background: transparent; border: 1px solid var(--line-hi); color: var(--muted); border-radius: var(--r-pill); font-weight: 500; font-size: .7rem; }
.hint .ic { width: .95em; height: .95em; }
.card-info b { color: var(--ink); font-weight: 600; }
.card-info .hint { color: var(--gold); border-color: rgba(var(--acc-rgb), .3); }

/* ---------- Aktions-Buttons ---------- */
.o-btn {
  background: transparent; border: 1px solid var(--line-hi); border-radius: var(--r-btn);
  padding: 10px 8px; font-size: .84rem; font-weight: 500; color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.o-btn .ic { width: 15px; height: 15px; }
.o-btn:hover { background: rgba(255, 255, 255, .03); }
.o-btn.ok { border-color: rgba(var(--ok-rgb), .35); color: var(--gruen); }
.o-btn.win { border-color: rgba(var(--ok-rgb), .45); background: rgba(var(--ok-rgb), .08); color: var(--gruen); font-weight: 600; }
.o-btn.lose { border-color: rgba(224, 96, 96, .3); color: var(--rot); }
.o-btn.miss.on, .o-btn.wait.on { background: rgba(var(--acc-rgb), .1); border-color: rgba(var(--acc-rgb), .35); color: var(--gold-hi); }
.o-btn.gross { padding: 14px 6px; font-size: .9rem; border-radius: 11px; }
.outcome-row.await .o-btn.ok { animation: pulse-soft 1.4s ease-in-out infinite; }
@keyframes pulse-soft { 50% { border-color: rgba(var(--ok-rgb), .8); } }
.call-fab, .ck-call {
  border-radius: 11px; background: rgba(var(--ok-rgb), .12); border: 1px solid rgba(var(--ok-rgb), .35);
  color: var(--gruen); box-shadow: none; font-size: 1rem;
}
.call-fab { width: 46px; height: 46px; }
.ck-call { width: 40px; height: 40px; }
.call-fab .ic, .ck-call .ic { width: 19px; height: 19px; }
.call-fab:hover, .ck-call:hover { background: rgba(var(--ok-rgb), .18); }
.ck-row > .o-btn { width: 40px; height: 40px; padding: 0; border-radius: 11px; }
.ck-mini-oc .o-btn { width: 40px; height: 40px; padding: 0; border-radius: 11px; }
.ck-mini-oc { gap: 6px; }
.no-tel { color: var(--dim); }
.btn-details { font-weight: 500; font-size: .76rem; }
.btn-copy { border-radius: 8px; }
.ck-gesehen { border-radius: 8px; font-weight: 500; display: inline-flex; align-items: center; gap: 5px; }
.check { border-radius: 7px; border-width: 1.5px; border-color: var(--line-hi); width: 26px; height: 26px; font-size: .8rem; }
.check.on { background: var(--gruen); }
.ob-row .check { width: 22px; height: 22px; border-radius: 6px; }

/* ---------- Heute-Hero ---------- */
.ck-kompakt { padding: 18px 18px 16px; }
.cockpit-datum { font-size: .76rem; font-weight: 500; letter-spacing: .04em; color: var(--muted); text-transform: uppercase; }
.ziel-zahl b, .ck-kompakt .ziel-zahl b {
  font-size: 2.6rem; font-weight: 600; letter-spacing: -.03em;
  background: none; -webkit-text-fill-color: var(--ink); color: var(--ink);
}
.ziel-von { font-size: .92rem; font-weight: 500; }
.ziel-edit { border-bottom: 1px dashed var(--line-hi); font-weight: 600; }
.ziel-balken { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .06); margin: 12px 0 10px; }
.ziel-balken i { background: var(--gold); box-shadow: none; border-radius: 3px; }
.ziel-balken i.voll { background: var(--gruen); box-shadow: none; }
.cockpit-heute-erfolge { font-weight: 500; font-size: .82rem; }
.woche-strip { border-top-color: var(--line); }
.wk-tag i { background: rgba(255, 255, 255, .1); border-radius: 3px 3px 1px 1px; max-width: 28px; }
.wk-tag.heute i { background: var(--gold); box-shadow: none; }
.wk-tag i.voll, .wk-tag.heute i.voll { background: var(--gruen); }
.wk-tag.unter i { background: rgba(var(--hot-rgb), .35); }
.wk-tag span { font-size: .6rem; font-weight: 600; color: var(--dim); }
.wk-zahlen { font-weight: 500; font-size: .76rem; }
.wk-zahlen b { font-weight: 600; }
.wk-zahlen em { color: var(--gold); }

/* ---------- Zeilen ---------- */
.ck-row { padding: 10px 0; border-bottom-color: var(--line); }
.ck-row-txt b { font-weight: 600; font-size: .92rem; }
.ck-row-txt span { font-size: .76rem; }
.ck-mehr { font-weight: 500; font-size: .78rem; }
.wv-datum { color: var(--gold); font-weight: 600; }
.wv-faellig { color: var(--hot); font-weight: 600; }
.lead-name { font-weight: 600; font-size: 1rem; }
.lead-meta { font-size: .78rem; }
.lead-meta .ic { width: .9em; height: .9em; opacity: .7; }
.termin-zeit b { font-weight: 600; color: var(--gold-hi); }
.erg-pill { border-radius: var(--r-pill); font-weight: 600; letter-spacing: .04em; }

/* ---------- KPI-Kacheln ---------- */
.total-tile { background: transparent; border: 1px solid var(--line); border-radius: 12px; padding: 14px 10px; font-weight: 500; font-size: .74rem; }
.total-tile b {
  font-size: 1.5rem; font-weight: 600; letter-spacing: -.02em;
  background: none; -webkit-text-fill-color: var(--ink); color: var(--ink); margin-bottom: 2px;
}
.tm-kpis .total-tile b, .kd-kpis .total-tile b { font-size: 1.3rem; }
.total-tile .tile-sub { font-weight: 500; color: var(--dim); }
.summary-grid .total-tile b { font-size: 1.6rem; }

/* ---------- Diagramme ---------- */
.fu-track { border-radius: 3px; background: rgba(255, 255, 255, .05); height: 14px; }
.fu-name { font-weight: 500; }
.gw-name { font-weight: 500; }
.ch-legende .lg-item { font-weight: 500; }

/* ---------- Sheet / Formulare ---------- */
.modal-back { background: rgba(0, 0, 0, .6); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.lead-modal { border-radius: 18px 18px 0 0; border: 1px solid var(--line-hi); border-bottom: 0; padding: 20px 18px calc(22px + env(safe-area-inset-bottom)); }
@media (min-width: 700px) { .lead-modal { border-radius: 16px; border-bottom: 1px solid var(--line-hi); } }
.lm-x { border-radius: 8px; width: 32px; height: 32px; }
.lm-block { background: rgba(255, 255, 255, .025); border-color: var(--line); border-radius: 11px; }
.lm-block b { color: var(--ink); font-weight: 600; }
.lm-block-btns .o-btn { padding: 8px 6px; }
.lm-zeile .ic { width: 15px; height: 15px; color: var(--muted); margin-right: 4px; }
.lm-warn { color: var(--hot); font-weight: 600; }
.lm-call { background: rgba(var(--ok-rgb), .14); border: 1px solid rgba(var(--ok-rgb), .45); color: var(--gruen); box-shadow: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.lm-call:hover { background: rgba(var(--ok-rgb), .2); }
.lm-aktionen .btn.ghost { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.f-titel { font-size: 1.15rem; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.f-titel .ic { color: var(--muted); width: 18px; height: 18px; }
.f-modul { border-radius: 10px; border-color: var(--line); }
.f-modul.on { border-color: rgba(var(--acc-rgb), .4); background: rgba(var(--acc-rgb), .07); }
.f-modul span { font-weight: 500; }
.f-btns .btn { border-radius: var(--r-btn); }
.f-stack .o-btn { justify-content: flex-start; padding: 12px 14px; }
.history { font-size: .74rem; border-left-color: var(--line); }
.history .ic { width: .95em; height: .95em; opacity: .75; }
.note-row .note-save { border-radius: var(--r-btn); }
.toast { border-radius: 10px; background: var(--surface-hi); border-color: var(--line-hi); backdrop-filter: none; -webkit-backdrop-filter: none; font-weight: 500; font-size: .86rem; box-shadow: 0 8px 28px rgba(0, 0, 0, .5); }
.chart-tip { border-radius: 8px; background: var(--surface-hi); border-color: var(--line-hi); backdrop-filter: none; -webkit-backdrop-filter: none; font-weight: 500; }

/* ---------- Call-Modus ---------- */
.call-mode { background: var(--bg); }
.call-schliessen, .call-skip { background: transparent; border-color: var(--line-hi); border-radius: 8px; font-weight: 500; backdrop-filter: none; -webkit-backdrop-filter: none; }
.call-fortschritt { font-weight: 600; letter-spacing: .06em; font-size: .8rem; }
.call-grund { border-radius: var(--r-pill); box-shadow: none; border: 1px solid rgba(var(--hot-rgb), .4); background: transparent; font-weight: 600; letter-spacing: .04em; display: inline-flex; align-items: center; gap: 5px; }
.call-name { font-weight: 600; font-size: 1.5rem; }
.call-notiz-alt { background: rgba(255, 255, 255, .03); border-color: var(--line); color: var(--ink); font-weight: 400; border-radius: 10px; }
.call-riesig-icon {
  width: 92px; height: 92px; border-radius: 26px; font-size: 2rem; color: var(--gruen);
  background: rgba(var(--ok-rgb), .12); border: 1px solid rgba(var(--ok-rgb), .4); box-shadow: none;
}
.call-riesig-icon .ic { width: 40px; height: 40px; }
.call-riesig-nr { font-weight: 500; font-size: 1.05rem; letter-spacing: .03em; }
.summary-titel { font-weight: 600; font-size: 1.5rem; }

/* ---------- Werkzeuge ---------- */
#laufLog { border-radius: 10px; }
.warnung { border-radius: 10px; }
.balken > div { box-shadow: none; }
th { color: var(--dim); }

/* ---------- Login ---------- */
.login-karte img { border-radius: 18px; box-shadow: none; border: 1px solid var(--line-hi); }

/* ---------- Handy ---------- */
@media (max-width: 900px) {
  .m-top {
    background: rgba(12, 11, 9, .94); border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: none;
  }
  .m-top::after { content: none; }
  .m-top img { border-radius: 8px; height: 30px; width: 30px; box-shadow: none; border: 1px solid var(--line-hi); }
  .m-titel { font-weight: 600; font-size: 1.02rem; }
  .m-tabs {
    left: 12px; right: 12px; padding: 4px; border-radius: 16px;
    background: rgba(18, 16, 12, .92); border: 1px solid var(--line-hi);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
  }
  .m-tabs::after { content: none; }
  .mtab { border-radius: 12px; font-size: .62rem; font-weight: 500; letter-spacing: .02em; gap: 4px; padding: 8px 2px 6px; color: var(--muted); }
  .mtab .ic-wrap { display: block; line-height: 0; }
  .mtab .ic { width: 21px; height: 21px; stroke-width: 1.7; }
  .mtab.active { background: rgba(var(--acc-rgb), .1); color: var(--gold-hi); box-shadow: none; text-shadow: none; }
  @supports not (backdrop-filter: blur(1px)) {
    .m-top { background: rgba(12, 11, 9, .98); }
    .m-tabs { background: rgba(18, 16, 12, .98); }
  }
  .filter-row { margin: 0 -14px; padding: 8px 14px 10px; }
  #ptr .ptr-ring { border-width: 2px; }
}
/* Aktions-Reihen: Buttons teilen sich die Breite, kein Überlauf */
.outcome-row .o-btn { flex: 1 1 0; min-width: 0; padding: 10px 4px; font-size: .8rem; white-space: nowrap; }
.outcome-row .o-btn.back { flex: 0 0 44px; }
.outcome-row .o-btn em { white-space: nowrap; }
.kd-card .outcome-row .o-btn em { display: none; }

/* =====================================================================
   v15 – Farbwelt: kühles Graphit + Blau als einziger Akzent (kein Gold).
   Alle Akzentfarben laufen über diese Variablen.
   ===================================================================== */
:root {
  --acc-rgb: 79, 143, 247;
  --ok-rgb: 52, 196, 138;
  --hot-rgb: 224, 107, 95;
  --bg: #0b0d10;
  --ink: #e9ecf1;
  --muted: #8b93a1;
  --dim: #5c6472;
  --gold: #4f8ff7;        /* Akzent */
  --gold-hi: #8ab8ff;     /* Akzent hell */
  --gold-lo: #2f6ad1;     /* Akzent dunkel */
  --surface: #12151a;
  --surface-hi: #181c22;
  --line: rgba(255, 255, 255, .07);
  --line-hi: rgba(255, 255, 255, .12);
  --field: #0e1014;
  --hot: #e06b5f;
  --warm: #4f8ff7;
  --cold: #6b7686;
  --gruen: #34c48a;
  --gruen-lo: #1f9a68;
  --rot: #e06060;
}
body { background: var(--bg); }
.sidebar { background: #0d1014; }
.brand-marke { color: var(--muted); }
.badge { background: var(--gold); -webkit-text-fill-color: #0b0d10; color: #0b0d10; }
.btn { color: #0b0d10; }
.btn.ghost { color: var(--ink); }
.score-pill.WARM, .prio.WARM { color: var(--gold); }
.total-tile b { -webkit-text-fill-color: var(--ink); }
.ziel-zahl b, .ck-kompakt .ziel-zahl b { -webkit-text-fill-color: var(--ink); }
.brand-titel { -webkit-text-fill-color: var(--ink); }
.ch-ziel { stroke: rgba(var(--hot-rgb), .55); }
.ch-ziel-txt { fill: rgba(var(--hot-rgb), .8); }
.login-karte h1 { color: var(--muted); }
@media (max-width: 900px) {
  .m-top { background: rgba(11, 13, 16, .94); }
  .m-tabs { background: rgba(18, 21, 26, .92); }
  @supports not (backdrop-filter: blur(1px)) {
    .m-top { background: rgba(11, 13, 16, .98); }
    .m-tabs { background: rgba(18, 21, 26, .98); }
  }
}

/* v16: Logo in der Sidebar größer */
.side-logo { padding: 0 20px 22px; }
.side-logo img { width: 96px; height: 96px; border-radius: 20px; margin-bottom: 14px; }
@media (max-width: 900px) { .m-top img { height: 36px; width: 36px; border-radius: 9px; } }

/* v19: aktiver Navigationspunkt mit glänzendem Blau-Schriftlook */
.nav-item.active, .mtab.active { color: var(--gold-hi); }
.nav-item.active span:not(.nav-n), .nav-item.active { font-weight: 600; }
.nav-item.active {
  background: linear-gradient(90deg, rgba(var(--acc-rgb), .14), rgba(var(--acc-rgb), .02));
  border-left-color: var(--gold-hi);
  text-shadow: 0 0 12px rgba(var(--acc-rgb), .55);
}
.nav-item.active .ic, .mtab.active .ic {
  color: var(--gold-hi);
  filter: drop-shadow(0 0 5px rgba(var(--acc-rgb), .65));
}
.mtab.active {
  background: linear-gradient(180deg, rgba(var(--acc-rgb), .22), rgba(var(--acc-rgb), .08));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
  text-shadow: 0 0 10px rgba(var(--acc-rgb), .6);
  font-weight: 600;
}

/* v20: Websites-Seite – Vorschaukarten */
.ws-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .ws-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); } }
.ws-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; display: flex; flex-direction: column; }
.ws-card.inaktiv { opacity: .6; }
.ws-bild { display: block; aspect-ratio: 16 / 10; background: #0e1014; border-bottom: 1px solid var(--line); overflow: hidden; position: relative; }
.ws-bild img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; transition: transform .4s var(--ease); }
.ws-card:hover .ws-bild img { transform: scale(1.02); }
.ws-leer { position: absolute; inset: 0; display: grid; place-items: center; color: var(--dim); font-size: .82rem; font-weight: 500; }
.ws-card.laden .ws-bild::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); animation: ws-lauf 1.2s linear infinite; }
@keyframes ws-lauf { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.ws-body { padding: 12px 14px 14px; display: grid; gap: 6px; }
.ws-titel { font-size: .98rem; cursor: pointer; }
.ws-titel b { font-weight: 600; }
.ws-meta { font-size: .78rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; }
.ws-status { font-size: .76rem; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.ws-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: var(--dim); }
.ws-dot.ok { background: var(--gruen); box-shadow: 0 0 6px rgba(var(--ok-rgb), .6); }
.ws-dot.down { background: var(--rot); box-shadow: 0 0 6px rgba(224, 96, 96, .6); }
.ws-dot.grau { background: var(--dim); }
.ws-btns { display: flex; gap: 6px; margin-top: 4px; }
.ws-btns .o-btn { flex: 1; padding: 8px 4px; font-size: .78rem; }
input[type="url"] { background: var(--field); color: var(--ink); border: 1px solid var(--line-hi); border-radius: var(--r-btn); padding: 10px 12px; font: inherit; width: 100%; }

/* v21: Website-Detail – Technik + Tracking */
.ws-dot.warn { background: #e0a94f; box-shadow: 0 0 6px rgba(224, 169, 79, .6); }
.wsd-zurueck { display: inline-block; padding: 0 0 10px; text-align: left; }
.wsd-head { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 700px) { .wsd-head { grid-template-columns: 280px 1fr; align-items: start; } }
.wsd-thumb { display: block; aspect-ratio: 16 / 10; background: #0e1014; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; position: relative; }
.wsd-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.wsd-info { display: grid; gap: 6px; align-content: start; }
.wsd-info .ws-btns { margin-top: 6px; max-width: 420px; }
.wsd-tech { display: grid; gap: 2px; }
@media (min-width: 900px) { .wsd-tech { grid-template-columns: 1fr 1fr; column-gap: 24px; } }
.wsd-punkt { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .86rem; }
.wsd-punkt .ic { width: 16px; height: 16px; flex: none; }
.wsd-punkt.ok .ic { color: var(--gruen); }
.wsd-punkt.warn .ic { color: #e0a94f; }
.wsd-punkt.fail .ic { color: var(--rot); }
.wsd-punkt.info .ic { color: var(--dim); }
.wsd-label { flex: 1; font-weight: 500; }
.wsd-detail { color: var(--muted); font-size: .78rem; text-align: right; max-width: 55%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wsd-punkt.fail .wsd-detail { color: var(--rot); }
.wsd-kpis { margin-bottom: 14px; }
.total-tile em { font-style: normal; font-weight: 600; }
.total-tile em.up { color: var(--gruen); }
.total-tile em.down { color: var(--rot); }
.wsd-chart { display: flex; gap: 3px; height: 120px; align-items: flex-end; margin: 6px 0 10px; }
.wsd-bar { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; gap: 3px; min-width: 0; }
.wsd-bar i { display: block; width: 100%; max-width: 22px; background: var(--gold); border-radius: 3px 3px 1px 1px; opacity: .85; transition: height .5s var(--ease); }
.wsd-bar:last-child i { background: var(--gold-hi); opacity: 1; }
.wsd-bar span { font-size: .58rem; color: var(--dim); height: 12px; white-space: nowrap; }
.wsd-geraete { margin-top: 6px; }
.wsd-geraete .prio-balken { height: 14px; margin-bottom: 8px; }
.g-mobile { background: var(--gold); }
.g-desktop { background: var(--gold-lo); }
.g-tablet { background: #6b7686; }
.lg-item i.g-mobile, .lg-item i.g-desktop, .lg-item i.g-tablet { width: 10px; height: 10px; border-radius: 3px; }
.wsd-zwei { display: grid; gap: 12px; }
@media (min-width: 900px) { .wsd-zwei { grid-template-columns: 1fr 1fr; } }
.wsd-tab { width: 100%; border-collapse: collapse; font-size: .84rem; }
.wsd-tab th { text-align: left; color: var(--dim); font-size: .66rem; text-transform: uppercase; letter-spacing: .06em; padding: 4px 6px; border-bottom: 1px solid var(--line); }
.wsd-tab th:not(:first-child), .wsd-tab td:not(:first-child) { text-align: right; width: 80px; }
.wsd-tab td { padding: 7px 6px; border-bottom: 1px solid var(--line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 0; }
.wsd-tab td:first-child { max-width: 260px; }
.wsd-code { background: var(--field); border: 1px solid var(--line); border-radius: 10px; padding: 12px; font-size: .78rem; overflow-x: auto; white-space: pre; font-family: ui-monospace, "SF Mono", Consolas, monospace; color: var(--gold-hi); }
code { font-family: ui-monospace, "SF Mono", Consolas, monospace; font-size: .8em; background: rgba(255, 255, 255, .06); padding: 1px 5px; border-radius: 4px; }

/* v22: Zurück-Link in der Website-Detailansicht deutlich sichtbar */
.wsd-zurueck {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 14px; padding: 9px 14px;
  border: 1px solid var(--line-hi); border-radius: var(--r-btn); color: var(--ink);
  font-size: .92rem; font-weight: 600;
  /* auch als <button> nutzbar - sonst malt der Browser eine weisse Flaeche */
  background: transparent; font-family: inherit; cursor: pointer;
}
.wsd-zurueck:hover { background: rgba(255, 255, 255, .04); color: var(--gold-hi); text-decoration: none; }

/* v24: Kundenprofile + Kundenakte */
textarea { min-height: 70px; resize: vertical; }
.kp-grid { display: grid; gap: 12px; }
@media (min-width: 700px) { .kp-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); } }
.kp-karte {
  display: block; background: var(--field); border: 1px solid var(--line); border-radius: 12px; padding: 14px;
  color: var(--ink); text-decoration: none; transition: border-color .2s, background .2s;
}
.kp-karte:hover { border-color: rgba(var(--acc-rgb), .5); background: rgba(var(--acc-rgb), .04); text-decoration: none; }
.kp-karte.inaktiv { opacity: .6; }
.kp-kopf { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.kp-avatar {
  flex: none; width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(var(--acc-rgb), .35), rgba(var(--acc-rgb), .1));
  border: 1px solid rgba(var(--acc-rgb), .35); color: var(--gold-hi); font-weight: 700; font-size: .95rem; letter-spacing: .02em;
}
.kp-avatar.gross { width: 64px; height: 64px; border-radius: 16px; font-size: 1.3rem; }
.kp-avatar.klein { width: 34px; height: 34px; border-radius: 9px; font-size: .78rem; }
.kp-titel { flex: 1; min-width: 0; }
.kp-titel b { display: block; font-size: 1rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kp-titel span { display: block; color: var(--muted); font-size: .76rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kp-zahlen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.kp-zahlen > div { border: 1px solid var(--line); border-radius: 9px; padding: 8px 6px; text-align: center; }
.kp-zahlen b { display: block; font-size: .95rem; font-weight: 600; }
.kp-zahlen span { display: block; color: var(--dim); font-size: .64rem; font-weight: 500; }
.kp-module { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 10px; }
.kp-fuss { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: .74rem; color: var(--muted); }
.kp-ob { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.kp-ob i { display: block; width: 50px; height: 5px; background: rgba(255, 255, 255, .06); border-radius: 3px; overflow: hidden; }
.kp-ob b { display: block; height: 100%; background: var(--gold); }
/* Akte */
.kp-head { padding: 18px; }
.kp-head-top { display: flex; align-items: flex-start; gap: 14px; }
.kp-head-txt { flex: 1; min-width: 0; display: grid; gap: 4px; }
.kp-name { font-size: 1.35rem; font-weight: 600; letter-spacing: -.01em; }
.kp-links { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .84rem; }
.kp-links a { display: inline-flex; align-items: center; gap: 5px; color: var(--ink); }
.kp-links a:hover { color: var(--gold-hi); text-decoration: none; }
.kp-links .ic { color: var(--muted); }
.kp-head-zahlen { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 16px 0 12px; }
@media (min-width: 700px) { .kp-head-zahlen { grid-template-columns: repeat(6, 1fr); } }
.kp-head-zahlen > div { border: 1px solid var(--line); border-radius: 10px; padding: 10px 8px; text-align: center; }
.kp-head-zahlen b { display: block; font-size: 1rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kp-head-zahlen span { display: block; color: var(--dim); font-size: .66rem; font-weight: 500; margin-top: 2px; }
.kp-ws { font-size: .82rem !important; display: inline-flex; align-items: center; gap: 6px; justify-content: center; }
.kp-aktionen { display: flex; flex-wrap: wrap; gap: 8px; }
.kp-aktionen .o-btn { flex: 1 1 auto; min-width: 120px; }
.kp-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 0 12px; padding-bottom: 2px; }
.kp-tabs::-webkit-scrollbar { display: none; }
.kp-tab {
  flex: none; display: inline-flex; align-items: center; gap: 7px; background: transparent; color: var(--muted);
  border: 1px solid var(--line); border-radius: 9px; padding: 9px 14px; font: inherit; font-size: .84rem; font-weight: 500; cursor: pointer; white-space: nowrap;
}
.kp-tab .ic { width: 15px; height: 15px; }
.kp-tab.on { background: rgba(var(--acc-rgb), .12); border-color: rgba(var(--acc-rgb), .4); color: var(--gold-hi); }
.kp-zwei { display: grid; gap: 12px; }
@media (min-width: 900px) { .kp-zwei { grid-template-columns: 1fr 1fr; } }
.kp-kvs { display: grid; gap: 0; }
.kp-kv { display: grid; grid-template-columns: 150px 1fr; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .86rem; }
.kp-kv:last-child { border-bottom: 0; }
.kp-kv > span { color: var(--muted); font-weight: 500; }
.kp-kv > b { font-weight: 500; min-width: 0; overflow-wrap: anywhere; }
.kp-modul { display: inline-flex; align-items: center; gap: 6px; border: 1px solid rgba(var(--acc-rgb), .3); color: var(--gold); border-radius: 6px; padding: 2px 8px; font-size: .78rem; margin: 0 4px 4px 0; }
.kp-modul em { font-style: normal; color: var(--muted); font-size: .7rem; }
.kp-text { font-size: .9rem; line-height: 1.55; }
.kp-ap { align-items: center; }
.kp-zeit { display: grid; gap: 0; }
.kp-zeit-row { display: grid; grid-template-columns: 18px 84px 1fr; gap: 10px; align-items: start; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: .84rem; }
.kp-zeit-row .ic { width: 15px; height: 15px; color: var(--muted); margin-top: 2px; }
.kp-zeit-datum { color: var(--dim); font-weight: 500; white-space: nowrap; }
.kp-dok-gruppe { margin-bottom: 10px; }
.kp-dok-titel { font-size: .68rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); padding: 8px 0 2px; }
.kp-dok > .ic { width: 18px; height: 18px; color: var(--muted); flex: none; }
.kp-gespraech { padding: 10px 0; border-bottom: 1px solid var(--line); }
.kp-gespraech:last-child { border-bottom: 0; }
.kp-gespraech-kopf { font-size: .8rem; font-weight: 600; margin-bottom: 4px; display: flex; align-items: center; gap: 5px; }
.kp-gespraech.gross .kp-text { background: rgba(255, 255, 255, .025); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
input[type="file"] { padding: 8px; font-size: .84rem; }
input[type="file"]::file-selector-button { background: transparent; color: var(--ink); border: 1px solid var(--line-hi); border-radius: 7px; padding: 6px 10px; margin-right: 10px; font: inherit; font-size: .8rem; cursor: pointer; }

/* v27: Desktop kompakter – breitere Hauptfläche, Heute-Blöcke in zwei Spalten */
@media (min-width: 1200px) {
  main { max-width: 1440px; }
  #view-heute .ck-kompakt { padding: 14px 20px 12px; }
  #view-heute .ck-kompakt .ziel-zahl b { font-size: 2rem; }
  #view-heute .woche-strip { margin-top: 8px; }
  #ck-bloecke { column-count: 2; column-gap: 12px; }
  #ck-bloecke .ck-block { break-inside: avoid; -webkit-column-break-inside: avoid; display: inline-block; width: 100%; box-sizing: border-box; margin-bottom: 12px; }
  #ck-bloecke .ck-row { padding: 7px 0; }
  #ck-bloecke .ck-call { width: 38px; height: 38px; }
  #ck-bloecke .ck-mini-oc .o-btn, #ck-bloecke .ck-row > .o-btn { width: 40px; padding: 7px 0; }
  #view-heute .session-btn { display: none; }
}
@media (min-width: 1700px) {
  main { max-width: 1700px; }
  #ck-bloecke { column-count: 3; }
}
/* v28: Call Hustle nur am Handy – am Desktop (Sidebar-Layout) ausgeblendet */
@media (min-width: 901px) { #view-heute .session-btn { display: none; } }
/* v30: Kunden-Logo im Avatar (Upload oder automatisch von der Website), Initialen als Fallback */
.kp-avatar { position: relative; overflow: hidden; }
.kp-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #0e1116; padding: 3px; box-sizing: border-box; }
.kp-avatar.gross img { padding: 5px; }
.kp-logo-wahl { cursor: pointer; display: block; flex: none; }
.kp-logo-wahl:hover .kp-avatar { box-shadow: 0 0 0 2px rgba(var(--acc-rgb), .5); }
.kp-karte .kp-avatar { width: 56px; height: 56px; border-radius: 14px; }

/* v25: Content-Freigabe (Reiter „Content" in der Kundenakte) */
.cn-grid { display: grid; gap: 12px; }
@media (min-width: 700px) { .cn-grid { grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); } }
.cn-kachel {
  display: flex; flex-direction: column; background: var(--field); border: 1px solid var(--line);
  border-radius: 12px; overflow: hidden; cursor: pointer; transition: border-color .2s, background .2s;
}
.cn-kachel:hover { border-color: rgba(var(--acc-rgb), .5); background: rgba(var(--acc-rgb), .04); }
.cn-thumb {
  position: relative; aspect-ratio: 4 / 3; background: #0e1116; display: grid; place-items: center; overflow: hidden;
}
.cn-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cn-leer-thumb .ic { width: 34px; height: 34px; color: var(--dim); }
.cn-zahl {
  position: absolute; top: 8px; right: 8px; min-width: 22px; padding: 2px 7px; border-radius: 999px;
  background: rgba(8, 9, 12, .8); border: 1px solid var(--line-hi); color: var(--ink);
  font-size: .7rem; font-weight: 600; text-align: center;
}
.cn-play { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.cn-play .ic { width: 38px; height: 38px; color: rgba(255, 255, 255, .88); filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .7)); }
.cn-play.klein .ic { width: 22px; height: 22px; }
.cn-body { padding: 11px 12px 12px; display: grid; gap: 6px; }
.cn-titel { font-size: .92rem; font-weight: 600; overflow-wrap: anywhere; }
.cn-pillen { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.cn-typ, .cn-status {
  display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px;
  border: 1px solid var(--line-hi); color: var(--muted); font-size: .7rem; font-weight: 600; white-space: nowrap;
}
.cn-typ .ic, .cn-status .ic { width: 12px; height: 12px; }
.cn-status.st-entwurf { color: var(--dim); }
.cn-status.st-beim_kunden { color: var(--gold-hi); border-color: rgba(var(--acc-rgb), .45); background: rgba(var(--acc-rgb), .12); }
.cn-status.st-gefaellt { color: var(--gruen); border-color: rgba(52, 199, 123, .4); background: rgba(52, 199, 123, .12); }
.cn-status.st-aenderung { color: #ffb37a; border-color: rgba(255, 179, 122, .4); background: rgba(255, 179, 122, .12); }
.cn-status.st-veroeffentlicht { color: var(--gruen); border-color: rgba(52, 199, 123, .3); }
.cn-meta { color: var(--muted); font-size: .76rem; }
.cn-fb { border-radius: 10px; padding: 8px 10px; display: grid; gap: 3px; font-size: .8rem; }
.cn-fb.gut { background: rgba(52, 199, 123, .1); border: 1px solid rgba(52, 199, 123, .28); }
.cn-fb.aendern { background: rgba(255, 179, 122, .1); border: 1px solid rgba(255, 179, 122, .3); }
.cn-fb b { display: flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 600; }
.cn-fb b .ic { width: 13px; height: 13px; }
.cn-fb b em { font-style: normal; color: var(--muted); font-weight: 500; margin-left: auto; font-size: .7rem; }
.cn-fb span { color: var(--ink); overflow-wrap: anywhere; }

/* Detail eines Bündels */
.cn-kopf { display: flex; align-items: flex-start; gap: 12px; margin: 4px 0 12px; }
.cn-kopf-txt { flex: 1; min-width: 0; display: grid; gap: 7px; }
.cn-kopf-titel { font-size: 1.15rem; font-weight: 600; overflow-wrap: anywhere; }
.cn-caption, .cn-hinweis {
  margin-top: 12px; padding: 11px 13px; border-radius: 10px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, .025); font-size: .88rem; line-height: 1.55;
}
.cn-caption > span, .cn-hinweis > span {
  display: block; font-size: .66rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--dim); margin-bottom: 5px;
}
.cn-aktionen { margin-top: 14px; }
.cn-token { display: flex; align-items: center; gap: 8px; }
.cn-token code { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: .78rem; padding: 8px 10px; border-radius: 8px; }
.cn-token .o-btn { flex: none; width: 44px; }

/* Datei-Liste mit Ziehen */
.cn-drop {
  display: grid; gap: 3px; justify-items: center; text-align: center; cursor: pointer;
  padding: 18px 14px; margin-bottom: 12px; border: 1px dashed var(--line-hi); border-radius: 12px;
  background: rgba(255, 255, 255, .02); transition: border-color .2s, background .2s;
}
.cn-drop:hover, .cn-drop.ueber { border-color: rgba(var(--acc-rgb), .6); background: rgba(var(--acc-rgb), .07); }
.cn-drop.laedt { opacity: .6; pointer-events: none; }
.cn-drop b { display: flex; align-items: center; gap: 7px; font-size: .9rem; font-weight: 600; }
.cn-drop b .ic { width: 16px; height: 16px; color: var(--gold); }
.cn-drop span { color: var(--muted); font-size: .78rem; }
.cn-dateien { display: grid; gap: 8px; }
.cn-datei {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px;
  background: var(--field); border: 1px solid var(--line); border-radius: 11px;
}
.cn-datei.zieht { border-color: rgba(var(--acc-rgb), .6); background: rgba(var(--acc-rgb), .08); }
.cn-grip {
  flex: none; width: 30px; height: 38px; display: grid; place-items: center; cursor: grab;
  background: transparent; border: none; color: var(--dim); padding: 0;
  touch-action: none;   /* sonst scrollt iOS statt zu sortieren */
}
.cn-grip:active { cursor: grabbing; }
.cn-grip .ic { width: 18px; height: 18px; }
.cn-datei-thumb {
  position: relative; flex: none; width: 56px; height: 56px; border-radius: 9px; overflow: hidden; background: #0e1116;
}
.cn-datei-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cn-datei-txt { flex: 1; min-width: 0; }
.cn-datei-txt b { display: block; font-size: .86rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cn-datei-txt span { display: block; color: var(--muted); font-size: .74rem; }
.cn-del-datei { flex: none; width: 40px; }
