/* ASAPlytics – Stylesheet, Richtung A „Werkzeug mit Aufwärts-Marke“ (freigegeben 11.11.2026)
 * Tokens: design/tokens.json. Familie: Werkzeug auf dem Handy (Tab-Leiste, Seitenleiste mit aktiver Pill).
 * Muster: Kennzahlen-Band, eine dunkle Karte. Signatur: die Spitze aus dem ASAP-Logo bei jedem echten Plus.
 * Bewegung: (1) verschachteltes Reveal Karte → Zahl, (2) Feder an der Spitze, (3) Feder an der Reaktion.
 */
@font-face { font-family: Jost; font-weight: 400; font-display: swap; src: url(fonts/jost-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: Jost; font-weight: 500; font-display: swap; src: url(fonts/jost-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: Jost; font-weight: 700; font-display: swap; src: url(fonts/jost-latin-700-normal.woff2) format("woff2"); }

:root {
  /* Farbe (Logo + asapmarketing.de) */
  --teal: #39b8be;          /* Akzent */
  --teal-ink: #17777c;      /* Teal als Text auf Hell, 5,3:1 */
  --on-teal: #102a2b;       /* Schrift auf Teal, 6,3:1 */
  --petrol: #1e3a3b;        /* die eine dunkle Karte, aktive Pill */
  --petrol-2: #2a4d4f;      /* Fläche in der dunklen Karte */
  --on-petrol-muted: #a9c2c3;
  --ink: #1b1d1e;
  --muted: #5d6467;         /* 5,6:1 auf Weiß */
  --line: #e6e9ea;
  --bg: #f2f4f5;
  --surface: #ffffff;
  --surface-2: #f2f4f5;
  --tint: #e6f4f5;          /* helle Teal-Fläche für Icon-Kacheln */
  --chart: #1a9ea6;
  --chart-area: rgba(26, 158, 166, .12);
  --good: #17777c;
  --bad: #b3412f;
  --shadow: 0 1px 2px rgba(20, 30, 32, .04), 0 6px 18px rgba(20, 30, 32, .06);
  /* Form */
  --r-surface: 24px;
  --r-tile: 20px;
  --r-icon: 12px;
  --r-control: 999px;
  --font: Jost, "Segoe UI", Arial, sans-serif;
  /* Bewegung (tokens.json → motion) */
  --m-entrance: .8s;
  --m-small: .5s;
  --m-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --m-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --m-stagger: .1s;
  --m-enter: 40px;
  --m-mobile: 24px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --teal-ink: #5fcfd4; --ink: #eceeef; --muted: #a3abae; --line: #2a3335; --bg: #0f1415;
    --surface: #182022; --surface-2: #1f292b; --tint: #1f3436; --petrol: #1e3a3b; --petrol-2: #2a4d4f;
    --chart: #39b8be; --chart-area: rgba(57, 184, 190, .16); --good: #5fcfd4; --bad: #f0907f;
    --shadow: 0 0 0 1px #243032; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --teal-ink: #5fcfd4; --ink: #eceeef; --muted: #a3abae; --line: #2a3335; --bg: #0f1415;
  --surface: #182022; --surface-2: #1f292b; --tint: #1f3436; --chart: #39b8be; --chart-area: rgba(57, 184, 190, .16);
  --good: #5fcfd4; --bad: #f0907f; --shadow: 0 0 0 1px #243032; color-scheme: dark;
}

/* ---------- Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 16px/1.55 var(--font); color: var(--ink); background: var(--bg); min-height: 100vh; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: var(--teal-ink); text-underline-offset: 3px; }
h1, h2, h3 { margin: 0; line-height: 1.15; font-weight: 500; letter-spacing: -.02em; }
h1 { font-size: clamp(1.9rem, 6vw, 2.5rem); }
p { margin: 0 0 1rem; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .85em; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 8px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }
.kicker { font-size: .85rem; font-weight: 500; color: var(--muted); margin-bottom: 6px; }

/* Signatur: die Spitze aus dem ASAP-Logo. Nur bei echtem Plus. */
.spitze { display: inline-block; width: .62em; height: .54em; background: var(--teal); clip-path: polygon(50% 0, 100% 100%, 0 100%); flex: none; }

/* ---------- Kopf ---------- */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.top-inner { max-width: 1040px; margin: 0 auto; padding: 12px 18px; padding-top: max(12px, env(safe-area-inset-top)); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { height: 32px; width: auto; max-width: 180px; object-fit: contain; }
.brand-feed { font-size: .78rem; color: var(--muted); border-left: 1px solid var(--line); padding-left: 10px; }
.brand-client strong { font-size: 1.05rem; font-weight: 500; }
.logo-dark { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo-light { display: none; } :root:not([data-theme="light"]) .logo-dark { display: block; } }
.ava { width: 42px; height: 42px; border-radius: 50%; background: var(--surface); box-shadow: var(--shadow); display: grid; place-items: center; text-decoration: none; color: var(--ink); font-weight: 500; flex: none; }
.ava[aria-current] { background: var(--petrol); color: #fff; }

/* ---------- Rahmen: Seitenleiste (breit) und Tab-Leiste (Handy) mit derselben aktiven Pill ---------- */
.shell { max-width: 1040px; margin: 0 auto; display: flex; gap: 24px; padding: 0 18px; }
.main { flex: 1; min-width: 0; padding: 8px 0 120px; }
.rail { display: none; }
.navlink { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 16px; border-radius: var(--r-control); color: var(--muted); text-decoration: none; font-weight: 500; font-size: .95rem; }
.navlink svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.navlink:hover { background: var(--surface-2); color: var(--ink); }
.navlink[aria-current] { background: var(--petrol); color: #fff; }
.navlink .badge { margin-left: auto; }
.badge { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; background: var(--teal); color: var(--on-teal); font-size: .74rem; font-weight: 700; }
.tabbar { position: fixed; left: 14px; right: 14px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 20; display: flex; gap: 4px; background: var(--surface); border-radius: 30px; padding: 6px; box-shadow: 0 8px 24px rgba(20, 30, 32, .12); }
.tabbar .navlink { flex: 1; flex-direction: column; gap: 2px; justify-content: center; min-height: 54px; padding: 0 4px; font-size: .72rem; border-radius: 24px; position: relative; }
.tabbar .navlink[aria-current] { flex: 1.35; }
.tabbar .badge { position: absolute; top: 4px; right: calc(50% - 22px); min-width: 18px; height: 18px; font-size: .66rem; }
@media (min-width: 900px) {
  .rail { display: flex; flex-direction: column; gap: 4px; width: 220px; flex: none; position: sticky; top: 80px; align-self: flex-start; background: var(--surface); border-radius: var(--r-surface); padding: 10px; box-shadow: var(--shadow); margin-top: 8px; }
  .tabbar { display: none; }
  .main { padding-bottom: 56px; }
}

.narrow { max-width: 560px; margin: 0 auto; }
.wide { max-width: 920px; margin: 0 auto; }

.flash { max-width: 640px; margin: 8px auto 12px; padding: 12px 16px; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); font-weight: 500; display: flex; gap: 10px; align-items: center; }
.flash::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--teal); flex: none; }
.flash-error::before { background: var(--bad); }
.flash-inline { width: 100%; margin: 0 0 16px; box-shadow: none; background: var(--surface-2); }

/* ---------- Buttons und Formulare ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: var(--r-control); font: 500 .95rem/1 var(--font); text-decoration: none; cursor: pointer; border: 0; transition: background-color .15s; }
.btn-primary { background: var(--teal); color: var(--on-teal); }
.btn-primary:hover { background: #4cc4ca; }
.btn-ghost { background: var(--surface-2); color: var(--ink); }
.btn-ghost:hover { background: var(--line); }
.btn-block { width: 100%; }
.link-btn { background: none; border: 0; padding: 6px 4px; font: 500 .85rem var(--font); color: var(--muted); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.link-btn.danger { color: var(--bad); }
.stack { display: flex; flex-direction: column; gap: 8px; }
.stack .btn { margin-top: 8px; }
label { font-weight: 500; font-size: .9rem; }
input, select, textarea { width: 100%; font: 400 1rem var(--font); color: var(--ink); background: var(--surface); border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 14px; min-height: 46px; }
input:focus, select:focus, textarea:focus { border-color: var(--teal); outline: none; box-shadow: 0 0 0 3px var(--ring, rgba(57, 184, 190, .25)); }
.check { display: flex; gap: 10px; align-items: center; font-weight: 400; }
.check input { width: 20px; height: 20px; min-height: 0; accent-color: var(--teal-ink); }
.inline { display: inline-flex; }
.row-2 { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.row-2 > div { display: flex; flex-direction: column; gap: 6px; min-width: 90px; }
.grow { flex: 1 1 180px; }
.row-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.top-gap { margin-top: 18px; }
.back { display: inline-block; margin-bottom: 16px; text-decoration: none; font-weight: 500; }

/* ---------- Öffentliche Seiten (Login, Einrichtung) ---------- */
.gate { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 16px; gap: 22px; }
.gate-logo { height: 40px; width: auto; }
.gate-card { width: 100%; max-width: 440px; background: var(--surface); border-radius: 28px; padding: 30px 26px; box-shadow: var(--shadow); }
.gate-card.install { max-width: 520px; }
.gate-card h1 { margin-bottom: 10px; font-size: clamp(1.7rem, 5vw, 2.1rem); }
.gate-client { display: block; max-height: 60px; max-width: 220px; width: auto; margin: 0 0 18px; object-fit: contain; }
.gate-foot { color: var(--muted); font-size: .8rem; text-align: center; max-width: 440px; }
.lead { font-size: 1.05rem; color: var(--muted); }
.sent-icon { width: 52px; height: 52px; border-radius: var(--r-icon); background: var(--tint); display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 14px; }

/* ---------- Feed ---------- */
.feed { max-width: 600px; margin: 0 auto; }
.feed-hello { margin: 14px 0 18px; }
.feed-hello p { margin: 6px 0 0; color: var(--muted); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 12px; scrollbar-width: none; }
.chip { flex: none; padding: 9px 16px; border-radius: var(--r-control); background: var(--surface); box-shadow: var(--shadow); text-decoration: none; color: var(--ink); font-weight: 500; font-size: .9rem; }
.chip[aria-current] { background: var(--petrol); color: #fff; }

/* Kennzahlen-Band */
.band { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.band-item { background: var(--surface); border-radius: var(--r-tile); padding: 14px 12px; box-shadow: var(--shadow); display: flex; flex-direction: column; min-width: 0; }
.band-label { font-size: .78rem; color: var(--muted); }
.band-value { font-size: clamp(1.5rem, 6.5vw, 1.9rem); font-weight: 500; letter-spacing: -.03em; line-height: 1.15; white-space: nowrap; }
.band-delta { font-size: .78rem; color: var(--muted); display: flex; align-items: center; gap: 4px; margin-top: 2px; }
.band-delta.up { color: var(--teal-ink); }
.band-delta.down { color: var(--bad); }
.band-note { font-size: .78rem; color: var(--muted); margin: -6px 2px 14px; }

.live { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; background: var(--surface); border-radius: 18px; box-shadow: var(--shadow); padding: 12px 16px; margin-bottom: 14px; color: var(--ink); text-decoration: none; font-size: .92rem; }
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line); flex: none; }
.live-dot.is-on { background: var(--teal); box-shadow: 0 0 0 4px rgba(57, 184, 190, .22); }
.live-sep { color: var(--muted); }

.cards { display: flex; flex-direction: column; gap: 12px; }
.card { position: relative; background: var(--surface); border-radius: var(--r-surface); padding: 18px 18px 12px; box-shadow: var(--shadow); scroll-margin-top: 90px; }
.card-empty { padding-bottom: 18px; }
.card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.avatar { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: var(--r-icon); background: var(--tint); font-size: 1.15rem; }
.avatar-asap { background: var(--petrol); }
.avatar-asap img { width: auto; height: 22px; }
.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; font-size: .85rem; color: var(--muted); line-height: 1.3; }
.card-cat { color: var(--muted); }
.dot-new { display: inline-block; padding: 1px 8px; border-radius: var(--r-control); background: var(--teal); color: var(--on-teal); font-size: .7rem; font-weight: 700; }
.card-title { font-size: 1.2rem; line-height: 1.25; margin-bottom: 8px; }
.card-body { color: var(--muted); line-height: 1.6; margin-bottom: 12px; }
.big { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 4px 0 6px; }
.big-num { font-size: clamp(2.6rem, 11vw, 3.2rem); font-weight: 500; line-height: 1; letter-spacing: -.04em; color: var(--ink); font-variant-numeric: tabular-nums; }
.big .spitze { font-size: 1.7rem; }
.big-label { flex-basis: 100%; color: var(--muted); font-size: .9rem; }
.card-chart { margin: 0 -4px 10px; }
.spark { width: 100%; height: 56px; }
.spark-line { fill: none; stroke: var(--chart); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.spark-area { fill: var(--chart-area); }
.spark-dot { fill: var(--chart); stroke: var(--surface); stroke-width: 2; }
.card-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 12px; }
.card-actions .btn, .card-actions form { flex: 1 1 160px; }
.card-actions form .btn { width: 100%; }

/* Die eine dunkle Karte: Wochenrückblick */
.card-rueckblick { background: var(--petrol); color: #fff; box-shadow: none; }
.card-rueckblick .avatar { background: var(--petrol-2); }
.card-rueckblick .card-meta, .card-rueckblick .card-cat, .card-rueckblick .card-body { color: var(--on-petrol-muted); }
.card-rueckblick .dot-new { background: var(--teal); }
.card-rueckblick .spark-line, .card-rueckblick .spark-dot { stroke: var(--teal); }
.card-rueckblick .spark-dot { fill: var(--teal); stroke: var(--petrol); }
.card-rueckblick .spark-area { fill: rgba(57, 184, 190, .18); }
.card-rueckblick .react { color: #d4e2e2; }
.card-rueckblick .react:hover { background: var(--petrol-2); }
.card-rueckblick .link-btn { color: var(--on-petrol-muted); }
.slides { display: grid; grid-auto-flow: column; grid-auto-columns: 46%; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 4px -18px 14px; padding: 2px 18px 6px; scrollbar-width: none; }
.slide { scroll-snap-align: start; background: var(--petrol-2); border-radius: var(--r-tile); padding: 14px; min-height: 118px; display: flex; flex-direction: column; gap: 2px; position: relative; }
.slide-step { display: none; }
.slide-label { font-size: .78rem; color: var(--on-petrol-muted); }
.slide-value { font-size: 1.45rem; font-weight: 500; letter-spacing: -.02em; line-height: 1.15; margin-top: auto; overflow-wrap: anywhere; }
.slide-note { font-size: .8rem; color: var(--on-petrol-muted); }

.reactions { display: flex; align-items: center; gap: 4px; padding-top: 2px; flex-wrap: wrap; }
.react-form { display: contents; }
.react { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; min-width: 48px; padding: 0 12px; border-radius: var(--r-control); border: 0; background: transparent; font: 500 .9rem var(--font); color: var(--muted); cursor: pointer; }
.react:hover { background: var(--surface-2); }
.react.is-on { background: var(--tint); color: var(--ink); box-shadow: 0 0 0 1.5px var(--teal) inset; }
.card-rueckblick .react.is-on { background: var(--petrol-2); color: #fff; }
.admin-inline { margin-left: auto; }

.feed-end { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 26px 0 6px; }
.feed-end-mark { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); box-shadow: var(--shadow); color: var(--teal-ink); font-weight: 700; font-size: 1.1rem; }
.powered { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: .8rem; color: var(--muted); margin: 22px 0 0; }
.powered img { height: 18px; width: auto; }
.ask { display: flex; gap: 14px; align-items: center; justify-content: space-between; margin-top: 18px; padding: 14px 14px 14px 20px; border-radius: var(--r-tile); background: var(--surface); box-shadow: var(--shadow); text-decoration: none; color: var(--ink); }
.ask strong { font-weight: 500; }
.ask-icon { order: 2; width: 40px; height: 40px; border-radius: 50%; background: var(--teal); color: var(--on-teal); display: grid; place-items: center; font-size: 1.3rem; flex: none; }
.quote { border-left: 3px solid var(--teal); padding: 6px 0 6px 16px; color: var(--muted); margin: 0 0 18px; }

/* ---------- Statistik ---------- */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin: 14px 0 16px; }
.page-head p { margin: 6px 0 0; }
.controls { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.controls select, .page-head select { width: auto; min-width: 180px; }
.seg { display: inline-flex; background: var(--surface); border-radius: var(--r-control); padding: 4px; box-shadow: var(--shadow); }
.seg a { padding: 0 14px; border-radius: var(--r-control); text-decoration: none; color: var(--muted); font-weight: 500; font-size: .9rem; min-height: 40px; display: inline-flex; align-items: center; }
.seg a[aria-current] { background: var(--petrol); color: #fff; }
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 8px; }
@media (min-width: 720px) { .tiles { grid-template-columns: repeat(5, 1fr); } }
.tile { background: var(--surface); border-radius: var(--r-tile); padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; box-shadow: var(--shadow); }
.tile-label { font-size: .8rem; color: var(--muted); }
.tile-value { font-size: clamp(1.6rem, 5vw, 2rem); font-weight: 500; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.delta { font-size: .8rem; font-weight: 500; display: inline-flex; align-items: center; gap: 4px; color: var(--muted); }
.delta.up { color: var(--good); }
.delta.down { color: var(--bad); }
.panel { background: var(--surface); border-radius: var(--r-surface); padding: 20px; margin-top: 12px; box-shadow: var(--shadow); }
.panel-title { font-size: 1.1rem; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.count { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 8px; border-radius: 12px; background: var(--surface-2); font-size: .8rem; font-weight: 500; }
.grid-2 { display: grid; gap: 0 12px; }
@media (min-width: 860px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.chart-wrap { overflow-x: auto; }
.barchart { position: relative; padding-top: 18px; }
.barchart-max { position: absolute; top: 0; right: 0; font-size: .75rem; color: var(--muted); }
.barchart-plot { display: flex; align-items: flex-end; gap: 3px; height: 170px; border-bottom: 1px solid var(--line); }
.bar { flex: 1 1 0; height: 100%; display: flex; align-items: flex-end; cursor: default; }
.bar:focus { outline: none; }
.bar:focus-visible .bar-mark, .bar:hover .bar-mark { background: var(--petrol); }
.bar-mark { display: block; width: 100%; max-width: 28px; margin: 0 auto; background: var(--chart); border-radius: 4px 4px 0 0; }
.barchart-axis { display: flex; justify-content: space-between; font-size: .75rem; color: var(--muted); margin-top: 6px; }
.table-toggle { margin-top: 12px; }
.table-toggle summary, .prompt-box summary { cursor: pointer; color: var(--teal-ink); font-weight: 500; font-size: .92rem; }
.tbl-scroll { overflow-x: auto; margin: 0 -20px; padding: 0 20px; }
.tbl { width: 100%; border-collapse: collapse; font-size: .92rem; }
.tbl th { text-align: left; font-size: .78rem; color: var(--muted); font-weight: 500; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 10px 10px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl .path { min-width: 180px; }
.path-title { display: block; font-weight: 500; }
.hbars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.hbars li { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; }
.hbar-label { font-weight: 500; overflow-wrap: anywhere; }
.hbar-value { font-variant-numeric: tabular-nums; font-size: .9rem; text-align: right; }
.hbar-track { grid-column: 1 / -1; height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.hbar-fill { display: block; height: 100%; background: var(--chart); border-radius: 4px; min-width: 4px; }
.tag { display: inline-block; font-size: .65rem; font-weight: 700; letter-spacing: .06em; padding: 1px 6px; border-radius: 6px; background: var(--petrol); color: #fff; vertical-align: 2px; }

.clicklist { list-style: none; margin: 0; padding: 0; }
.clicklist li { display: grid; grid-template-columns: 36px 1fr auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.click-icon { width: 36px; height: 36px; border-radius: var(--r-icon); background: var(--tint); display: grid; place-items: center; font-size: 1rem; }
.click-label { display: flex; flex-direction: column; font-weight: 500; overflow-wrap: anywhere; }
.click-n { font-weight: 500; font-variant-numeric: tabular-nums; }
.heat-open { margin: 12px 0 6px; }

/* ---------- Admin ---------- */
.subnav { margin-bottom: 12px; }
.draft { border-radius: var(--r-tile); padding: 14px; margin-bottom: 10px; display: flex; flex-direction: column; gap: 8px; background: var(--surface-2); }
.draft-meta { display: flex; align-items: center; gap: 10px; font-size: .9rem; }
.draft-meta .avatar { width: 34px; height: 34px; font-size: 1rem; }
.req { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.req p { margin: 6px 0 0; }
.req select { width: auto; }
.plain { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.plain.sub { margin: 6px 0 0 14px; gap: 4px; }
.user-row { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.snippet { display: block; background: var(--petrol); color: #e8eeee; padding: 14px; border-radius: 14px; overflow-x: auto; white-space: pre-wrap; word-break: break-all; margin: 8px 0 12px; font-size: .82rem; }
.snippet.prompt { max-height: 420px; overflow: auto; word-break: normal; font-size: .78rem; line-height: 1.5; }
.ok-text { color: var(--good); font-weight: 500; }
.warn-text { color: var(--bad); font-weight: 500; }
.empty { text-align: center; padding: 40px 0; }
.empty .sent-icon { margin: 0 auto 14px; }
.client-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); margin-top: 14px; }
.client-card { display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: var(--r-tile); background: var(--surface); box-shadow: var(--shadow); text-decoration: none; color: var(--ink); position: relative; }
.client-card::after { content: ""; position: absolute; right: 16px; top: 16px; width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.client-logo { display: grid; place-items: center start; width: 120px; height: 44px; margin-bottom: 6px; }
.client-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.client-initial { width: 42px; height: 42px; border-radius: var(--r-icon); display: grid; place-items: center; background: var(--c); color: #fff; font-weight: 700; font-size: 1.1rem; }
.client-name { font-weight: 500; font-size: 1.05rem; }
.client-hero { display: flex; align-items: center; gap: 18px; padding: 20px; border-radius: var(--r-surface); background: var(--surface); box-shadow: var(--shadow); flex-wrap: wrap; }
.client-hero h1 { margin-bottom: 2px; }
.client-hero p { margin: 0; }
.big-logo { width: 140px; height: 70px; background: #fff; border-radius: 16px; padding: 8px; box-shadow: 0 0 0 1px var(--line) inset; }
.step { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--petrol); color: #fff; font-size: .8rem; font-weight: 500; }
.color-input { width: 64px; padding: 4px; height: 46px; }
.brand-preview { border-radius: 18px; overflow: hidden; background: #f2f4f5; box-shadow: 0 0 0 1px var(--line) inset; }
.bp-top { background: #fff; padding: 10px 14px; min-height: 50px; display: flex; align-items: center; }
.bp-top img { max-height: 32px; max-width: 160px; object-fit: contain; }
.bp-card { margin: 12px; padding: 14px; background: #fff; border-radius: 18px; display: flex; flex-direction: column; gap: 6px; color: #1b1d1e; }
.bp-cat { font-size: .85rem; color: #5d6467; }
.bp-new { background: var(--c); color: var(--c-on); border-radius: 999px; padding: 1px 8px; font-size: .68rem; font-weight: 700; }
.bp-big { font-size: 1.9rem; font-weight: 500; display: flex; align-items: center; gap: 8px; }
.bp-big::after { content: ""; width: .6em; height: .52em; background: var(--c); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.bp-btn { align-self: flex-start; background: var(--c); color: var(--c-on); border-radius: 999px; padding: 8px 16px; font-weight: 500; font-size: .85rem; }

/* Tooltip für Diagramme */
.tip { position: fixed; z-index: 60; pointer-events: none; background: var(--petrol); color: #fff; font-size: .85rem; font-weight: 500; padding: 6px 10px; border-radius: 8px; box-shadow: 0 6px 20px rgba(0, 0, 0, .2); transform: translate(-50%, calc(-100% - 10px)); white-space: nowrap; }

/* ---------- Bewegung (nur transform/opacity, nur mit JavaScript, nie bei Reduced Motion) ---------- */
.motion [data-reveal] { opacity: 0; transform: translateY(var(--m-mobile)); }
@media (min-width: 900px) { .motion [data-reveal] { transform: translateY(var(--m-enter)); } }
.motion [data-reveal].is-in { opacity: 1; transform: none; transition: opacity var(--m-entrance) var(--m-ease), transform var(--m-entrance) var(--m-ease); transition-delay: var(--d, 0s); }
/* Verschachtelt: die große Zahl erst, wenn die Karte steht (ca. 80 % der Dauer) */
.motion [data-reveal] .big { opacity: 0; transform: translateY(12px); }
.motion [data-reveal].is-in .big { opacity: 1; transform: none; transition: opacity .5s var(--m-ease), transform .5s var(--m-ease); transition-delay: calc(var(--d, 0s) + .64s); }
/* Feder: die Spitze springt auf, wenn die Zahl steht */
.motion [data-reveal] .big .spitze { transform: scale(0); }
.motion [data-reveal].is-in .big .spitze { transform: scale(1); transition: transform var(--m-small) var(--m-spring); transition-delay: calc(var(--d, 0s) + 1.05s); }
.react.pop span:first-child { animation: pop var(--m-small) var(--m-spring); }
@keyframes pop { 0% { transform: scale(.6); } 100% { transform: scale(1); } }
.react span:first-child { display: inline-block; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
