/*
 * Startseite „Heute“ als Command Center (Aufgabe 7). Aussehen nach dem freigegebenen Prototyp
 * (docs/superpowers/prototype, Ansicht „Heute“). Nur Variablen aus tokens.css, keine festen Farbwerte.
 */

.cc-grid {
  display: grid;
  grid-template-columns: minmax(290px, 320px) minmax(0, 1fr) minmax(280px, 304px);
  grid-template-areas: 'next plan stats' 'next funnel stats';
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 24px;
}
.cc-grid[hidden], .cc-error[hidden] { display: none; }
.cc-next { grid-area: next; display: flex; flex-direction: column; }
.cc-plan { grid-area: plan; display: flex; flex-direction: column; }
.cc-stats { grid-area: stats; display: flex; flex-direction: column; }
.cc-funnel { grid-area: funnel; display: flex; flex-direction: column; }
.cc-view .card-head { margin-bottom: 18px; }
.cc-view .i-grad { stroke: url(#g-icon); }

/* ---------- Als Nächstes anrufen ---------- */
.next-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.next-empty { flex: 1; display: grid; place-items: center; }
.next-item {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: center;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--surface-inner);
  transition: transform var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.next-item:hover { transform: translateY(-1px); background: var(--surface-hover); }
.next-item:has(.next-open:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.next-item.is-first { border-color: transparent; background: var(--pill-active-bg); box-shadow: var(--glow); }
.next-item.is-first::before {
  content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px;
  background: var(--brand-gradient-diag);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
}
.avatar.avatar-lg { width: 44px; height: 44px; font-size: 15px; background: var(--surface-2); border: 1px solid var(--border); }
.avatar.avatar-ring { border-color: transparent; background: var(--surface-solid); }
.avatar.avatar-ring::before {
  content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px;
  background: var(--brand-gradient-diag);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.next-item .who { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; line-height: 1.35; }
/* Der Name ist der Knopf; seine Fläche deckt den ganzen Eintrag ab (Telefon-Link liegt darüber) */
.next-open { position: static; padding: 0; border: 0; background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; max-width: 100%; }
.next-open::after { content: ''; position: absolute; inset: 0; border-radius: inherit; z-index: 0; }
.next-open:focus-visible { outline: none; }
.next-open strong {
  font-size: 15px; font-weight: 600; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere;
}
.next-item .co { max-width: 100%; font-size: 13px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-item .tel {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: 6px; margin-top: 4px;
  font-size: 13px; color: var(--text-muted); white-space: nowrap; text-decoration: none;
}
.next-item .tel:hover { color: var(--text); }
.next-item .badge, .next-item .countdown { align-self: flex-start; margin-top: 8px; }
.next-item .countdown { height: 24px; padding: 0 9px; font-size: 12.5px; }
.next-item .countdown-accent { color: var(--accent-text); background: color-mix(in srgb, var(--accent-text) 12%, transparent); }
.btn-call { margin-top: 20px; }
.next-more {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  margin-top: 14px; min-height: 36px; font-size: 14px; font-weight: 500; color: var(--accent-text);
}
.next-more[hidden] { display: none; }

/* ---------- Tagesplan ---------- */
.cc-seg {
  display: inline-flex; gap: 4px; padding: 4px;
  border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border);
}
.cc-seg button {
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; gap: 7px;
  height: 34px; padding: 0 16px; border-radius: 999px; border: 0;
  background: transparent; color: var(--text-muted);
  font: inherit; font-size: 14px; font-weight: 500; white-space: nowrap; cursor: pointer;
  transition: color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}
.cc-seg button:hover { color: var(--text); }
.cc-seg button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.cc-seg button[aria-pressed='true'] { color: var(--text); background: var(--pill-active-bg); box-shadow: var(--glow); }
.cc-seg button[aria-pressed='true']::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: var(--brand-gradient);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
}
.cc-seg button[aria-pressed='true'] svg { stroke: url(#g-icon); }

.plan { position: relative; flex: 1; display: flex; flex-direction: column; min-height: 0; }
.plan-track { position: relative; margin: 0 22px; flex: 1; display: flex; flex-direction: column; }
.plan-hours { position: relative; height: 24px; }
.plan-hours span { position: absolute; top: 0; transform: translateX(-50%); font-size: 13px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.plan-hours span.is-hidden { visibility: hidden; }
.plan-calls { position: relative; height: 34px; }
.plan-calls::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--hairline); }
.plan-body {
  position: relative; flex: 1;
  --block-h: 62px;
  --lane-h: min(calc(100% / var(--lanes, 1)), 86px);
  min-height: calc(var(--lanes, 1) * 72px + 12px);
}
.plan-grid { position: absolute; inset: -34px 0 0; pointer-events: none; }
.plan-grid i { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--hairline); }
.plan-empty { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; padding: 0 16px; text-align: center; color: var(--text-muted); font-size: 14px; }
.plan-empty.is-list { position: static; display: block; padding: 4px 0 14px; text-align: left; }

/* JETZT-Linie: liegt hinter den Blöcken (z-index 1), das Etikett sitzt oben in der Stundenzeile.
   Einzige Dauerbewegung der Seite; der Punkt unten leuchtet still (kein Pulsieren). */
.now-line {
  position: absolute; top: -34px; bottom: 0; width: 2px; margin-left: -1px;
  background: var(--brand-gradient-v);
  box-shadow: 0 0 14px 1px var(--glow-color-strong);
  border-radius: 2px;
  z-index: 1;
  pointer-events: none;
  transition: left var(--dur-slow) var(--ease);
}
.now-line[hidden] { display: none; }
.now-line::after {
  content: ''; position: absolute; left: 50%; bottom: -5px; width: 10px; height: 10px; margin-left: -5px;
  border-radius: 999px; background: var(--brand-g3); box-shadow: 0 0 12px 2px var(--glow-color-strong);
}
.now-line .now-tag { position: absolute; top: -26px; left: 50%; transform: translateX(-50%); }
.now-line .now-tag.at-start { transform: translateX(-14px); }
.now-line .now-tag.at-end { transform: translateX(calc(-100% + 14px)); }
.now-tag {
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; gap: 6px;
  height: 26px; padding: 0 11px; border-radius: 999px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.04em;
  color: var(--btn-primary-text); background: var(--btn-primary-bg); box-shadow: var(--glow);
  white-space: nowrap;
}
.now-tag b { font-weight: 600; letter-spacing: 0; }
.now-tag::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: var(--brand-gradient);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}

/* Terminblöcke: deckende, getönte Glas-Pillen mit Kanal-Kachel und Glühen in der Kanalfarbe */
.appt {
  position: absolute;
  height: var(--block-h);
  display: flex; align-items: center; gap: 10px;
  padding: 0 12px 0 9px;
  border-radius: 15px;
  border: 1px solid color-mix(in srgb, var(--c) 40%, transparent);
  background:
    linear-gradient(180deg, var(--highlight), transparent 60%),
    color-mix(in srgb, var(--c) var(--block-tint), var(--surface-solid));
  box-shadow: 0 10px 26px -14px color-mix(in srgb, var(--c) 70%, transparent);
  color: var(--text);
  z-index: 2;
  overflow: hidden;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.plan-body .appt {
  top: calc((100% - var(--lanes, 1) * var(--lane-h)) / 2 + var(--lane, 0) * var(--lane-h) + (var(--lane-h) - var(--block-h)) / 2);
}
.appt:hover { transform: translateY(-1px); border-color: color-mix(in srgb, var(--c) 70%, transparent); box-shadow: 0 12px 30px -12px color-mix(in srgb, var(--c) 85%, transparent); }
.appt:has(.appt-link:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.appt.is-running { border-color: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 18%, transparent), 0 12px 32px -10px color-mix(in srgb, var(--c) 90%, transparent); }
.appt.is-past { box-shadow: none; border-color: var(--border); }
.appt.is-past .tile { box-shadow: none; }
/* Kanal-Kachel: gemeinsam mit den Terminblöcken des Kalenders (calendar.css) */
.appt .tile, .cal-ev .tile, .ag-card .tile {
  flex: none; display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 11px;
  background: var(--c); color: var(--c-on);
  box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--c) 90%, transparent), inset 0 1px 0 var(--highlight);
}
.appt .t { flex: 1; display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.appt .t strong {
  font-size: 14px; font-weight: 600; line-height: 1.22;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere;
}
.appt .t span { font-size: 13px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* kompakt (viele Termine auf schmaler Achse): ohne Kachel, Kanalfarbe als Randstreifen */
.appt.is-compact { padding: 0 8px 0 12px; gap: 6px; }
.appt.is-compact::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--c); }
.appt.is-compact .tile { display: none; }
.appt.is-compact .t strong { font-size: 13px; hyphens: auto; overflow-wrap: normal; word-break: normal; }
.appt.is-compact .appt-join { width: 28px; height: 28px; }
.appt-link { position: absolute; inset: 0; border-radius: inherit; z-index: 1; margin: 0; padding: 0; border: 0; background: transparent; font: inherit; color: inherit; cursor: pointer; }
.appt-link:focus-visible { outline: none; }
.appt-join {
  position: relative; z-index: 2; flex: none;
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px;
  color: var(--text); background: var(--surface-2); border: 1px solid var(--border);
}
.appt-join:hover { border-color: var(--c); }
.appt-join:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* Anruf-Punkte: klein und dezent; gebündelte tragen eine Zahl und ein Zeichen fürs Ergebnis */
.call-dot {
  position: absolute; top: 50%;
  width: 9px; height: 9px;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  z-index: 3;
}
.call-dot.r-ok, .mark.r-ok { background: var(--call-erreicht); box-shadow: 0 0 8px color-mix(in srgb, var(--call-erreicht) 70%, transparent); }
.call-dot.r-no, .mark.r-no { background: var(--surface-solid); box-shadow: inset 0 0 0 2px var(--call-nicht-erreicht); }
.call-dot.r-wrong, .mark.r-wrong { border-radius: 2px; background: var(--call-falsche-nummer); }
.call-dot.r-wrong { width: 8px; height: 8px; transform: translate(-50%, -50%) rotate(45deg); }
.mark.r-mixed { background: linear-gradient(90deg, var(--call-erreicht) 50%, var(--call-nicht-erreicht) 50%); }
.call-dot.is-cluster {
  display: inline-flex; align-items: center; gap: 5px;
  width: auto; height: 24px; padding: 0 8px 0 7px;
  font-size: 13px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums;
  color: var(--text); background: var(--surface-solid); border: 1px solid var(--border-strong);
}
.call-dot .mark { display: block; width: 8px; height: 8px; border-radius: 999px; flex: none; }
.call-dot .mark.r-wrong { width: 7px; height: 7px; border-radius: 2px; transform: rotate(45deg); }
.hide-appts .appt, .hide-appts .pl-appt, .hide-appts .plan-empty.is-list { display: none; }
/* Leerhinweise je Filter: „Alle“ zeigt den gemeinsamen, „Anrufe“/„Termine“ den passenden */
.plan-empty.for-calls, .plan-empty.for-appts { display: none; }
.hide-appts .plan-empty.for-calls, .hide-calls .plan-empty.for-appts { display: grid; }
.hide-appts .plan-empty.for-all, .hide-calls .plan-empty.for-all { display: none; }
.hide-calls .call-dot, .hide-calls .pl-calls { display: none; }

/* Tagesplan am Handy: senkrechte Liste nach Uhrzeit */
.plan-list { display: none; }
.pl-calls { padding: 14px 16px 8px; border-radius: 16px; border: 1px solid var(--border); background: var(--surface-inner); margin-bottom: 18px; }
.pl-calls-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14px; font-weight: 500; }
.pl-calls-head .num { color: var(--text-muted); font-size: 13px; }
.pl-calls-head strong { color: var(--text); font-size: 15px; }
/* Anrufe am Handy: je Stunde ein kleines Feld mit Zeichen fürs Ergebnis */
.pl-hours { list-style: none; margin: 10px 0 4px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pl-hour { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-2); font-size: 13px; }
.pl-hour time { color: var(--text-muted); }
.pl-hour .mark { display: block; width: 8px; height: 8px; border-radius: 999px; flex: none; }
.pl-hour .mark.r-wrong { width: 7px; height: 7px; border-radius: 2px; transform: rotate(45deg); }
.pl-calls-empty { margin: 8px 0 4px; font-size: 13px; color: var(--text-muted); }
.appt-live { font-weight: 700; color: var(--text); }
.call-dot.is-multi { width: 11px; height: 11px; }
.pl-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.pl-items li { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 10px; align-items: center; }
.pl-items time { font-size: 13px; font-weight: 600; color: var(--text-muted); }
.pl-items .appt { position: relative; width: 100%; min-height: var(--block-h); height: auto; padding-top: 10px; padding-bottom: 10px; --block-h: 62px; }
.pl-items .pl-now { display: flex; align-items: center; gap: 10px; margin: 2px 0; }
.pl-items .pl-now::after { content: ''; flex: 1; height: 2px; border-radius: 2px; background: var(--brand-gradient); box-shadow: 0 0 12px var(--glow-color-strong); }

/* ---------- Live-Statistik ---------- */
.live-badge { gap: 6px; }
.live-dot { width: 7px; height: 7px; border-radius: 999px; background: currentColor; box-shadow: 0 0 10px currentColor; }
.stat-list { display: flex; flex-direction: column; gap: 12px; flex: 1; }
.stat {
  flex: 1;
  display: flex; flex-direction: column; justify-content: center; gap: 10px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--surface-inner);
}
.stat-label { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 500; }
.stat-main { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.stat-value { font-family: var(--font-display); font-weight: var(--weight-display); font-size: 44px; line-height: 0.95; letter-spacing: -0.02em; padding-bottom: 2px; }
/* Kurve in fester Größe wie im Prototyp (nie gestreckt) */
.stat-spark { flex: none; display: flex; }
.stat-spark .sparkline { width: 132px; height: 44px; }
.goal { display: flex; align-items: center; gap: 12px; }
.goal[hidden] { display: none; }
.goal > span { font-size: 13px; color: var(--text-muted); white-space: nowrap; }
.goal strong { color: var(--text); font-weight: 700; }

/* ---------- Pipeline-Trichter: eine gemeinsame Form, Stufen greifen ineinander ---------- */
.funnel { position: relative; display: flex; flex: 1; min-height: 124px; --k: 28px; }
.funnel-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; filter: drop-shadow(0 0 16px var(--glow-color)); }
.funnel-seg { fill: color-mix(in srgb, var(--brand-g2) 6%, var(--surface-solid)); transition: fill var(--dur) var(--ease); }
.funnel-seg.seg-1 { fill: color-mix(in srgb, var(--brand-g2) 10%, var(--surface-solid)); }
.funnel-seg.seg-2 { fill: color-mix(in srgb, var(--brand-g3) 15%, var(--surface-solid)); }
.funnel:has([data-step="0"]:hover) .seg-0, .funnel:has([data-step="1"]:hover) .seg-1, .funnel:has([data-step="2"]:hover) .seg-2 { fill: color-mix(in srgb, var(--brand-g2) 22%, var(--surface-solid)); }
.funnel-div { fill: none; stroke-width: 1.25; opacity: 0.75; }
.funnel-line { fill: none; stroke-width: 1.5; }
.funnel-step { position: relative; flex: 1; min-width: 0; display: grid; place-items: center; color: var(--text); min-height: 124px; z-index: 1; text-decoration: none; }
.funnel-step:hover { text-decoration: none; }
.funnel-step:focus-visible { outline: 2px solid var(--focus); outline-offset: -6px; border-radius: 14px; }
/* Text mittig zwischen den Chevrons, mit Abstand zu beiden Linien */
.funnel-in { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0 calc(var(--k) + 6px); min-width: 0; max-width: 100%; }
.funnel-in .lbl { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.funnel-in .val { font-family: var(--font-display); font-weight: var(--weight-display); font-size: 44px; line-height: 1; letter-spacing: -0.02em; }
.funnel-rates { position: relative; height: 22px; margin-top: 16px; font-size: 13px; color: var(--text-muted); }
.funnel-rates span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.funnel-rates span:first-child { left: 33.3%; }
.funnel-rates span:last-child { left: 66.6%; }
.funnel-rates strong { color: var(--text); font-weight: 700; }

/* ---------- Außerdem heute (kompakte Leisten) ---------- */
.cc-strip { margin-top: 24px; padding: 8px; }
.cc-strip[hidden] { display: none; }
/* immer 4 gleich breite Felder wie im Prototyp: Zahl und Text bleiben nah beieinander */
.strip-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.strip-item {
  position: relative; display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; border: 0; border-radius: 16px; min-width: 0;
  background: transparent; color: var(--text); font: inherit; text-align: left; cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease);
}
.strip-item:hover, .strip-item[aria-expanded='true'] { background: var(--surface-hover); }
.strip-item:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.strip-item + .strip-item::before { content: ''; position: absolute; left: 0; top: 18px; bottom: 18px; width: 1px; background: var(--hairline); }
.strip-item .tile { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: var(--surface-2); border: 1px solid var(--border); }
.strip-item .txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.strip-item .txt strong { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.strip-item .txt span { font-size: 13px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.strip-item.tone-danger .txt span { color: var(--danger); }
.strip-item .count { margin-left: auto; font-family: var(--font-display); font-weight: var(--weight-display); font-size: 24px; }
.strip-item .chev { flex: none; color: var(--text-muted); transition: transform var(--dur-fast) var(--ease); }
.strip-item[aria-expanded='true'] .chev { transform: rotate(180deg); }
.strip-detail { margin: 6px 8px 8px; padding: 14px 8px 4px; border-top: 1px solid var(--hairline); }
.strip-detail[hidden] { display: none; }
.strip-detail-title { margin: 0 8px 6px; font-family: var(--font-display); font-weight: 700; font-size: 16px; }
.strip-sub { padding: 10px 8px 4px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); }
.strip-sub.is-danger { color: var(--danger); }
.strip-detail .task-list { display: grid; }
.strip-detail .task-row { padding: 10px 8px; border-top: 1px solid var(--hairline); }
.strip-list { list-style: none; margin: 0; padding: 0; display: grid; }
.strip-entry {
  display: grid; gap: 2px; width: 100%; padding: 10px 8px; border: 0; border-radius: 12px;
  background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; text-decoration: none;
}
.strip-entry:hover { background: var(--surface-hover); text-decoration: none; }
.strip-entry:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.strip-entry-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-weight: 500; overflow-wrap: anywhere; }
.strip-entry-sub { font-size: 13px; color: var(--text-muted); }
.strip-all { display: inline-flex; align-items: center; gap: 6px; margin: 10px 8px 6px; font-size: 14px; font-weight: 500; color: var(--accent-text); }

/* ---------- Mittlere Breiten ---------- */
@media (max-width: 1180px) {
  .cc-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: 'plan plan' 'next stats' 'funnel funnel'; grid-template-rows: auto; }
  .strip-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strip-item:nth-child(odd)::before { display: none; }
}

/* ---------- Handy ---------- */
@media (max-width: 767.98px) {
  .cc-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'next' 'plan' 'stats' 'funnel'; gap: 16px; }
  .cc-view .card-box { padding: 18px; }
  .cc-plan .card-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .cc-seg { align-self: stretch; }
  .cc-seg button { flex: 1; justify-content: center; padding: 0 10px; }
  .plan { display: none; }
  .plan-list { display: block; }
  .stat-list { gap: 10px; }
  .stat { padding: 14px 16px; gap: 6px; }
  .stat-value { font-size: 38px; }
  .stat-spark .sparkline { width: 120px; height: 40px; }
  .cc-view .card-title small { display: none; }
  .funnel { min-height: 104px; }
  .funnel-step { min-height: 104px; }
  .funnel-in { gap: 4px; padding: 0 calc(var(--k) + 4px); }
  .funnel { margin: 0 -6px; }
  .funnel-in .lbl { font-size: 12px; gap: 5px; }
  .funnel-in .lbl svg { display: none; }
  .funnel-in .val { font-size: 30px; }
  .funnel-rates { display: flex; justify-content: space-around; height: auto; }
  .funnel-rates span { position: static; transform: none; display: flex; flex-direction: column; align-items: center; line-height: 1.35; }
  .cc-strip { margin-top: 16px; padding: 6px; }
  .strip-row { grid-template-columns: minmax(0, 1fr); }
  .strip-item + .strip-item::before { left: 16px; right: 16px; top: 0; bottom: auto; width: auto; height: 1px; display: block; }
  .strip-item:nth-child(odd)::before { display: block; }
  .strip-item:first-child::before { display: none; }
}

/* Hinweisleiste oben (Mail-/Import-Fehler), nur mit Einträgen */
.cc-hints { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.cc-hints[hidden] { display: none; }
.cc-hint { padding: 8px 14px; align-items: center; border: 1px solid color-mix(in srgb, var(--warning) 30%, transparent); }

/* ---------- Neue Anzeigen-Leads anrufen (Funnel-Status „neu“) ---------- */
.cc-adleads { margin-bottom: 16px; padding: 8px 8px 4px; }
.cc-adleads[hidden] { display: none; }
.cc-adleads .card-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 4px; }
.cc-adleads .count { font-family: var(--font-display); font-weight: var(--weight-display); font-size: 24px; }
.adlead-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; }
.adlead-row .strip-entry { flex: 1 1 240px; width: auto; }
.adlead-row .tel { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; font-weight: 500; color: var(--accent-text); text-decoration: none; }
.adlead-row .tel:hover { text-decoration: underline; }
