/* styles.css — WasteWarrior Backoffice. Gleiche Farbtokens wie die Haupt-App (css/styles.css). */

:root {
  --bg: #0b1a12;
  --bg-2: #0f2418;
  --card: #14311f;
  --card-2: #1b3d28;
  --accent: #38e07b;
  --accent-2: #2bb35f;
  --gold: #ffce4d;
  --text: #eaf5ee;
  --muted: #8fb39c;
  --danger: #ff6b6b;
  --line: rgba(143, 179, 156, 0.18);
  --radius: 16px;
  --shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

body { background: radial-gradient(ellipse at top, var(--bg-2), var(--bg) 60%) fixed; }

.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }

h1 { font-size: 1.5rem; margin: 0 0 6px; }
h2 { font-size: 1.15rem; margin: 0; }
h3 { font-size: 1.1rem; margin: 0; }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
  background: var(--bg);
  padding: 1px 5px;
  border-radius: 5px;
}

.code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  overflow-x: auto;
}

/* ---------- Kopfzeile ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(11, 26, 18, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.brand-mark { font-size: 1.4rem; }
.brand-name { font-size: 1.05rem; }
.brand-sub { color: var(--accent); font-weight: 600; margin-left: 4px; }

.user-box { display: flex; align-items: center; gap: 10px; min-width: 0; }
.user-email {
  color: var(--muted);
  font-size: 0.85rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 40vw;
}

/* ---------- Layout ---------- */
.wrap {
  max-width: 1272px; /* 1240 px Inhalt + Rand; alle Karten gleich breit wie die Nutzertabelle */
  margin: 0 auto;
  padding: 20px 16px 60px;
}

.view { display: flex; flex-direction: column; gap: 16px; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card-pad { padding: 20px; }

.auth-card { max-width: 420px; width: 100%; margin: 6vh auto 0; }

.block-head {
  display: flex;
  flex-wrap: wrap; /* schmale Bildschirme: Button unter den Titel statt aus der Karte */
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  margin-bottom: 12px;
}
.block-head h2 { min-width: 0; margin: 0; }
.block-head > .btn { flex: none; white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  border: none;
  border-radius: 12px;
  padding: 11px 18px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  background: var(--card-2);
  cursor: pointer;
  transition: transform 0.08s ease, background 0.15s ease, opacity 0.15s ease;
}
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--accent); color: #06210f; }
.btn-primary:hover:not(:disabled) { background: #4ff08e; }
.btn-ghost { background: transparent; border: 1px solid var(--line); }
.btn-ghost:hover:not(:disabled) { background: var(--card-2); }
.btn-warn { background: transparent; border: 1px solid rgba(255, 107, 107, 0.5); color: var(--danger); }
.btn-warn:hover:not(:disabled) { background: rgba(255, 107, 107, 0.1); }
.btn-sm { padding: 7px 12px; font-size: 0.85rem; border-radius: 10px; }
.btn-block { width: 100%; }

.link {
  background: none;
  border: none;
  color: var(--accent);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}
.link:hover { text-decoration: underline; }

/* ---------- Formulare ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field > span { font-size: 0.85rem; color: var(--muted); font-weight: 600; }

input, textarea {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 12px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
textarea { resize: vertical; min-height: 60px; }
input:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(56, 224, 123, 0.18);
}
input::placeholder, textarea::placeholder { color: #5d7a68; }
input[type="date"] { color-scheme: dark; }

.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.row-form { display: flex; gap: 10px; margin-top: 12px; }
.row-form input { flex: 1; min-width: 0; }

.inline-error {
  background: rgba(255, 107, 107, 0.12);
  border: 1px solid rgba(255, 107, 107, 0.4);
  color: #ffb3b3;
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 0.88rem;
  margin: 4px 0 12px;
}

.switch-line { text-align: center; margin: 16px 0 0; color: var(--muted); font-size: 0.9rem; }

/* ---------- Firma ---------- */
.company-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.company-name { font-size: 1.2rem; font-weight: 700; }

/* ---------- Pills / Chips ---------- */
.pill {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.pill-ok { background: rgba(56, 224, 123, 0.15); color: var(--accent); }
.pill-off { background: rgba(143, 179, 156, 0.15); color: var(--muted); }

.chip {
  display: inline-block;
  font-size: 0.82rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px 9px;
}
.chip-label { color: var(--muted); }

/* ---------- Angebots-Liste ---------- */
.batches-hint { margin: -4px 0 14px; }
.empty-state {
  text-align: center;
  padding: 28px 12px;
  border: 1px dashed var(--line);
  border-radius: 12px;
}

.batch-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }

.batch-item {
  background: var(--card-2);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  padding: 14px 16px;
}
.batch-inactive { border-left-color: #4a5e52; opacity: 0.72; }

.batch-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.batch-title { font-weight: 700; font-size: 1.05rem; word-break: break-word; }
.batch-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.batch-note { margin: 10px 0 0; white-space: pre-wrap; word-break: break-word; }
.batch-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }

/* ---------- Modal ---------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(3px);
}
.modal {
  width: 100%;
  max-width: 480px;
  max-height: 92vh;
  overflow-y: auto;
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.modal-body { padding: 18px 20px 20px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 60;
  max-width: min(520px, calc(100vw - 32px));
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.92rem;
  box-shadow: var(--shadow);
  background: var(--card-2);
  border: 1px solid var(--line);
}
.toast-success { border-color: rgba(56, 224, 123, 0.5); color: var(--accent); }
.toast-error { border-color: rgba(255, 107, 107, 0.5); color: #ffb3b3; }

/* ---------- Mobil ---------- */
@media (max-width: 520px) {
  .field-grid { grid-template-columns: 1fr; gap: 0; }
  .row-form { flex-direction: column; }
  .brand-sub { display: none; }
  .user-email { max-width: 34vw; }
  .batch-actions { justify-content: stretch; }
  .batch-actions .btn { flex: 1; }
}

/* ---------- Google-Login ---------- */
.google-btn { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 6px; }
.g-mark { width: 22px; height: 22px; border-radius: 50%; background: #fff; color: #4285f4;
  display: inline-grid; place-items: center; font-weight: 800; font-size: 0.85rem; }
.divider { display: flex; align-items: center; gap: 10px; margin: 16px 0; color: var(--muted); font-size: 0.82rem; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* ---------- Admin: Firmenliste ---------- */
.admin-list { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.admin-item { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--bg);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.admin-item .a-name { font-weight: 700; }
.admin-item .a-meta { font-size: 0.82rem; color: var(--muted); margin-top: 2px; word-break: break-all; }
.admin-item .a-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.code-chip { font-family: ui-monospace, Menlo, monospace; letter-spacing: 0.08em; cursor: pointer; }

/* ---------- Admin: Nutzerübersicht ---------- */
/* Breiter als die 760px-Spalte, damit die 15 Spalten auf dem Desktop ohne Scrollen passen. */
.users-summary { font-size: 0.88rem; color: var(--muted); margin: 4px 0 10px; }
.users-search { width: 100%; margin-bottom: 10px; }
.users-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; max-height: 70vh; overflow-y: auto; }
.users-table { width: 100%; border-collapse: collapse; font-size: 0.84rem; }
.users-table th, .users-table td { padding: 7px 8px; text-align: left; white-space: nowrap; border-bottom: 1px solid var(--line); }
.users-table th { position: sticky; top: 0; background: var(--card-2); color: var(--muted); font-weight: 600;
  cursor: pointer; user-select: none; }
.users-table th:hover { color: var(--text); }
.users-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.users-table tbody tr:hover { background: var(--bg-2); }

/* ---------- Ort & Radius im Angebots-Dialog ---------- */
.geo-search { display: flex; gap: 8px; }
.geo-search input { flex: 1; min-width: 0; }
.geo-map { height: 220px; border-radius: 10px; border: 1px solid var(--line); margin-top: 8px; z-index: 0; }
.geo-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 8px; }
.geo-radius { display: flex; align-items: center; gap: 6px; font-size: 0.85rem; color: var(--muted); }
.geo-radius input { width: 90px; padding: 7px 9px; }
.modal { max-height: 92vh; overflow-y: auto; }

/* ---------- Emoji-Auswahl ---------- */
.emoji-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.emoji-opt { width: 40px; height: 40px; font-size: 1.3rem; border-radius: 10px; cursor: pointer;
  background: var(--bg); border: 1px solid var(--line); line-height: 1; padding: 0; }
.emoji-opt.selected { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(56, 224, 123, 0.35); }
.emoji-input { width: 64px !important; text-align: center; font-size: 1.2rem; padding: 7px !important; }

/* ---------- Credits-Richtwerte ---------- */
.field-hint { display: block; margin-top: 4px; font-size: 0.78rem; color: var(--muted); line-height: 1.35; }
.credit-ref { margin: -4px 0 14px; font-size: 0.85rem; }
.credit-ref-hint { color: var(--accent); margin-bottom: 6px; }
.credit-ref summary { cursor: pointer; color: var(--muted); }
.credit-ref-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 14px; }
.credit-ref-list li { display: flex; justify-content: space-between; gap: 8px; border-bottom: 1px dashed var(--line); padding: 3px 0; }
.credit-ref summary { color: var(--accent); }
.credit-ref-val { display: inline-flex; align-items: baseline; gap: 6px; white-space: nowrap; }
.credit-ref-count { color: var(--accent); font-size: 1rem; min-width: 2.6em; text-align: right; }
.credit-ref-val small { color: var(--muted); font-size: 0.75rem; }
@media (max-width: 520px) { .credit-ref-list { grid-template-columns: 1fr; } }

/* Angebots-Dialog breiter, damit die Richtwerte je Zeile passen */
#batch-modal .modal { max-width: 660px; }
.credit-ref-list li > span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }

/* Ref-Links */
.ref-link {
  margin: 8px 0 10px; padding: 10px 12px; border-radius: 10px; background: var(--bg-2);
  font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.85rem;
  word-break: break-all; user-select: all;
}

/* ---------- Admin-Tabs ---------- */
.admin-tabs {
  display: flex; gap: 6px; padding: 6px; overflow-x: auto; scrollbar-width: none;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  position: sticky; top: 8px; z-index: 20; box-shadow: var(--shadow);
}
.admin-tabs::-webkit-scrollbar { display: none; }
.admin-tabs button, .an-tabs button, .an-seg button {
  flex: none; border: none; background: transparent; color: var(--muted); font: inherit;
  font-weight: 600; font-size: 0.92rem; padding: 9px 16px; border-radius: 999px; cursor: pointer; white-space: nowrap;
}
.admin-tabs button:hover, .an-tabs button:hover, .an-seg button:hover { color: var(--text); background: var(--card-2); }
.admin-tabs button.active { background: var(--accent); color: #06210f; }
/* Nur Karten des aktiven Tabs zeigen (gilt nur, wenn view-app ein data-tab hat = Admin). */
#view-app[data-tab="analytics"] > [data-tab]:not([data-tab="analytics"]),
#view-app[data-tab="nutzer"] > [data-tab]:not([data-tab="nutzer"]),
#view-app[data-tab="firmen"] > [data-tab]:not([data-tab="firmen"]),
#view-app[data-tab="growth"] > [data-tab]:not([data-tab="growth"]),
#view-app[data-tab="refs"] > [data-tab]:not([data-tab="refs"]) { display: none !important; }

/* Analytics-Ausschluss in der Nutzertabelle */
.track-toggle { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: 0.82rem; }
.track-toggle input { accent-color: var(--accent); width: 16px; height: 16px; cursor: pointer; }
.track-toggle.off { color: var(--danger); }

/* ---------- Analytics ---------- */
.analytics { display: flex; flex-direction: column; gap: 16px; }
.an-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 12px 14px; }
.an-seg { display: inline-flex; gap: 2px; padding: 3px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 999px; }
.an-seg button { padding: 7px 14px; font-size: 0.86rem; }
.an-seg button.active { background: var(--card-2); color: var(--text); box-shadow: inset 0 0 0 1px rgba(56, 224, 123, 0.45); }
.an-seg-sm button { padding: 5px 11px; font-size: 0.8rem; }
.an-meta { flex: 1; min-width: 200px; color: var(--muted); font-size: 0.82rem; }
.an-bar-right { display: flex; align-items: center; gap: 10px; }
.an-live { font-size: 0.85rem; font-weight: 600; color: var(--accent); white-space: nowrap; }
.an-tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.an-tabs::-webkit-scrollbar { display: none; }
.an-tabs button { border-radius: 10px; padding: 8px 14px; }
.an-tabs button.active { color: var(--text); background: var(--card-2); box-shadow: inset 0 -2px 0 var(--accent); }
.an-body { display: flex; flex-direction: column; gap: 16px; }
.an-card { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.an-card-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; }
.an-card-head h3 { margin: 0; font-size: 1.02rem; }
.an-card-head p { margin: 0; flex-basis: 100%; }
.an-card-head .an-seg { margin-left: auto; }
.an-grid { display: grid; gap: 16px; }
.an-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 860px) { .an-grid-2 { grid-template-columns: 1fr; } }
.an-empty { margin: 6px 0; }

/* KPI-Kacheln */
.an-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 900px) { .an-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.an-kpi {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 14px 10px;
  display: flex; flex-direction: column; gap: 4px; min-width: 0; cursor: help;
}
.an-kpi-label { color: var(--muted); font-size: 0.82rem; font-weight: 600; }
.an-kpi-value { font-size: 1.7rem; font-weight: 800; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.an-kpi-delta { font-size: 0.78rem; color: var(--muted); }
.an-kpi-delta.good { color: var(--accent); }
.an-kpi-delta.bad { color: var(--danger); }
.an-spark { width: 100%; height: 28px; color: var(--accent); opacity: 0.85; margin-top: 4px; }

/* Linienchart */
.an-chart svg { width: 100%; height: auto; display: block; }
.an-grid-line { stroke: var(--line); stroke-width: 1; }
.an-axis { fill: var(--muted); font-size: 11px; }
.an-line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.an-area { fill: rgba(56, 224, 123, 0.12); }
.an-cross { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 3; }
.an-dot { fill: var(--accent); stroke: var(--card); stroke-width: 2; }

/* Balken + Funnel */
.an-bars, .an-funnel { display: flex; flex-direction: column; gap: 8px; }
.an-bar-row, .an-funnel-row { display: grid; grid-template-columns: minmax(90px, 30%) 1fr auto; align-items: center; gap: 10px; font-size: 0.86rem; }
.an-funnel-row { grid-template-columns: minmax(110px, 22%) 1fr minmax(0, auto); }
.an-bar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.an-bar-track { height: 12px; background: var(--bg-2); border-radius: 4px; overflow: hidden; }
.an-bar-fill { height: 100%; background: var(--accent); border-radius: 0 4px 4px 0; }
.an-bar-val { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; font-size: 0.82rem; }
@media (max-width: 600px) {
  .an-funnel-row { grid-template-columns: 1fr; gap: 4px; }
  .an-funnel-row .an-bar-val { white-space: normal; }
}

/* Retention + Heatmap: eine Farbe, Deckkraft = Wert */
.an-ret-cell { background: rgba(56, 224, 123, calc(var(--a, 0) * 0.85)); color: var(--text); }
.an-ret-na { background: transparent; }
.an-heat-wrap { overflow-x: auto; }
.an-heat { display: grid; grid-template-columns: 28px repeat(24, minmax(14px, 1fr)); gap: 2px; min-width: 420px; }
.an-heat-h { font-size: 0.7rem; color: var(--muted); text-align: left; }
.an-heat-d { font-size: 0.75rem; color: var(--muted); align-self: center; }
.an-heat-c { height: 20px; border-radius: 3px; background: rgba(56, 224, 123, var(--a, 0)); box-shadow: inset 0 0 0 1px var(--line); }

/* Tabellen */
.an-table { max-height: 420px; }
.an-table td:first-child { white-space: normal; max-width: 360px; }

/* Live-Stream */
.an-stream { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; max-height: 520px; overflow-y: auto; }
.an-stream li {
  display: grid; grid-template-columns: 82px minmax(120px, 180px) 1fr auto; gap: 10px; align-items: baseline;
  padding: 7px 4px; border-bottom: 1px solid var(--line); font-size: 0.85rem;
}
.an-stream-time { color: var(--muted); font-variant-numeric: tabular-nums; }
.an-stream-what { font-weight: 600; }
.an-stream-detail { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.an-stream-who { color: var(--muted); white-space: nowrap; font-size: 0.8rem; }
@media (max-width: 600px) {
  .an-stream li { grid-template-columns: 70px 1fr; }
  .an-stream-detail, .an-stream-who { grid-column: 2; }
}

/* Ausschlüsse */
.an-ex-form { gap: 8px; }
.an-ex-select {
  flex: 1; min-width: 0; background: var(--bg-2); color: var(--text); border: 1px solid var(--line);
  border-radius: 12px; padding: 12px; font: inherit;
}
.an-ex-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.an-ex-list li {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px;
}
.an-ex-mail { font-weight: 600; word-break: break-all; }

/* Tooltip */
.an-tip {
  position: fixed; z-index: 1000; pointer-events: none; max-width: 260px;
  background: #0a1610; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px;
  font-size: 0.8rem; box-shadow: var(--shadow);
}
.an-tip-title { color: var(--muted); margin-bottom: 2px; }
.an-ret-strong { color: #06210f; font-weight: 700; }
.an-seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.an-seg::-webkit-scrollbar { display: none; }

/* Demo-Daten-Schalter */
.an-demo-toggle {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font: inherit; font-size: 0.85rem; font-weight: 600;
  color: var(--muted); background: transparent; border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 12px 6px 6px; white-space: nowrap; flex: none;
}
.an-demo-toggle::before {
  content: ""; flex: none; width: 30px; height: 18px; border-radius: 999px; box-sizing: border-box;
  background: var(--bg-2) radial-gradient(circle at 9px 50%, var(--muted) 0 6px, transparent 6.5px);
  border: 1px solid var(--line); transition: background 0.15s;
}
.an-demo-toggle.on { color: var(--gold); border-color: rgba(255, 206, 77, 0.5); }
.an-demo-toggle.on::before { background: var(--gold) radial-gradient(circle at 20px 50%, #06210f 0 6px, transparent 6.5px); border-color: var(--gold); }
.an-demo-banner {
  border: 1px dashed rgba(255, 206, 77, 0.6); background: rgba(255, 206, 77, 0.08); color: var(--gold);
  border-radius: 12px; padding: 10px 14px; font-size: 0.88rem;
}
.an-bar-right { flex-wrap: wrap; min-width: 0; max-width: 100%; }
.an-bar-right .btn { white-space: nowrap; }
@media (max-width: 600px) {
  .an-bar-right { width: 100%; justify-content: space-between; }
}

/* ---------- Admin: Growth ---------- */
.growth { display: flex; flex-direction: column; gap: 16px; }
.g-intro h2 { margin-bottom: 8px; }
.g-lead { color: var(--text); line-height: 1.55; margin: 0 0 16px; max-width: 900px; }
.g-rec { background: var(--bg-2); border: 1px solid rgba(56, 224, 123, 0.35); border-radius: 12px; padding: 14px 16px; }
.g-rec h3 { margin: 0 0 6px; font-size: 1rem; color: var(--accent); }
.g-rec p { margin: 0 0 10px; line-height: 1.5; }
.g-plan { margin: 0; padding-left: 0; list-style: none; display: grid; gap: 6px; }
.g-plan li { line-height: 1.45; font-size: 0.92rem; }
.g-plan b { display: inline-block; min-width: 82px; color: var(--gold); }
.g-jump { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.g-jump a { font-size: 0.82rem; color: var(--muted); text-decoration: none; border: 1px solid var(--line);
  border-radius: 999px; padding: 5px 11px; }
.g-jump a:hover { color: var(--text); background: var(--card-2); }
.g-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; align-items: start; }
@media (max-width: 520px) { .g-grid { grid-template-columns: 1fr; } }
.g-tile { scroll-margin-top: 80px; }
.g-head { display: flex; }
.g-tag { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--accent); background: rgba(56, 224, 123, 0.12); border-radius: 999px; padding: 3px 9px; }
.g-tag-off { color: var(--muted); background: rgba(143, 179, 156, 0.15); }
.g-title { margin: 10px 0 4px; font-size: 1.1rem; }
.g-tagline { margin: 0 0 12px; color: var(--muted); line-height: 1.45; }
.g-scores { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.g-score { display: inline-flex; align-items: center; gap: 6px; font-size: 0.76rem; color: var(--muted);
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 8px; padding: 4px 8px; }
.g-dots { display: inline-flex; gap: 3px; }
.g-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.g-dots i.on { background: var(--accent); }
.g-sec { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 10px; }
.g-sec h4 { margin: 0 0 6px; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.g-sec p { margin: 0; line-height: 1.5; font-size: 0.92rem; }
.g-sec ol { margin: 0; padding-left: 20px; display: grid; gap: 5px; font-size: 0.92rem; line-height: 1.45; }
.g-list { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 8px; line-height: 1.45; font-size: 0.92rem; }
/* Google Identity Services: offizieller Knopf, alter Weg nur als Ausweich-Link */
.social-login { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.gsi-holder { display: flex; justify-content: center; min-height: 44px; width: 100%; }
.google-btn.gsi-fallback { background: none; border: none; box-shadow: none; color: var(--muted, #8fb39c);
  font-size: 0.8rem; font-weight: 600; text-decoration: underline; padding: 4px; width: auto; }
.app-link { margin-left: auto; margin-right: 10px; text-decoration: none; }
