/* ============================================================
   FONTS · lokal gehostet (D-17 — kein Render-Blocking + kein IP-Leak/DSGVO)
   Plus Jakarta Sans = Variable Font (ein File deckt 400–800 ab),
   Space Mono = statisch (400/700). unicode-range lässt den Browser nur den
   benötigten Subset laden (i. d. R. latin).
   ============================================================ */
@font-face {
  font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url('../fonts/plus-jakarta-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url('../fonts/plus-jakarta-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Space Mono'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/space-mono-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Mono'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/space-mono-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Space Mono'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('../fonts/space-mono-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Mono'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('../fonts/space-mono-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ============================================================
   MEINFLUSS SYSTEM · App-Refresh
   Designsprache übernommen aus "Modern Social Premium" (Referenz)
   Light = Default · Dark = [data-theme="dark"] auf <html>
   ============================================================ */

/* ---------- TOKENS ---------- */
:root {
  --bg: #FBFAF6;
  --bg-2: #FFFFFF;
  --panel: #FFFFFF;
  --surface: #F1EEE7;
  --well: #ECE8DF;
  --ink: #15140F;
  --ink-2: #3C3A33;
  --muted: #6E6A5E;
  --line: rgba(21,20,15,0.12);
  --line-soft: rgba(21,20,15,0.07);
  --scrim: rgba(255,255,255,0.72);

  --accent: #8C6A2A;
  --accent-2: #BE9C67;
  --accent-ink: #6E4F16;
  --accent-soft: rgba(190,156,103,0.12);
  --accent-line: rgba(190,156,103,0.34);
  --grad-accent: linear-gradient(135deg, #E8D5A8, #BE9C67 58%, #8F7344);

  --gold: #BE9C67;
  --ok: #18A957;
  --ok-soft: rgba(24,169,87,0.12);
  --ok-line: rgba(24,169,87,0.30);

  /* sidebar — theme-aware (flips with light/dark) */
  --side-bg: #F4F1E9;
  --side-bg-2: #FBFAF6;
  --side-ink: #15140F;
  --side-muted: #6E6A5E;
  --side-line: rgba(21,20,15,0.09);
  --side-hover: rgba(21,20,15,0.045);
  --side-active: rgba(190,156,103,0.16);
  --side-active-line: rgba(190,156,103,0.42);

  --font-display: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-mono: "Space Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(.16,1,.3,1);
  --shadow-card: 0 22px 60px -34px rgba(21,20,15,0.30);
  --shadow-pop: 0 40px 110px -40px rgba(21,20,15,0.42);

  --sidebar-w: 300px;
}

html[data-theme="dark"] {
  --bg: #0B0B0F;
  --bg-2: #121219;
  --panel: #15151D;
  --surface: #1A1A24;
  --well: #16161E;
  --ink: #F3F1EA;
  --ink-2: #CFCCC2;
  --muted: #9A958A;
  --line: rgba(255,255,255,0.13);
  --line-soft: rgba(255,255,255,0.06);
  --scrim: rgba(10,10,14,0.72);

  --accent: #D8B873;
  --accent-2: #E8D5A8;
  --accent-ink: #E8D5A8;
  --accent-soft: rgba(190,156,103,0.16);
  --accent-line: rgba(190,156,103,0.34);

  --gold: #D8B873;
  --ok: #34D17F;
  --ok-soft: rgba(52,209,127,0.14);
  --ok-line: rgba(52,209,127,0.30);

  --side-bg: #070709;
  --side-bg-2: #0E0E14;
  --side-line: rgba(255,255,255,0.07);

  --side-bg: #08080B;
  --side-bg-2: #0F0F15;
  --side-ink: #F3F1EA;
  --side-muted: #8E887B;
  --side-line: rgba(255,255,255,0.08);
  --side-hover: rgba(255,255,255,0.045);
  --side-active: rgba(190,156,103,0.16);
  --side-active-line: rgba(190,156,103,0.34);

  --shadow-card: 0 26px 70px -36px rgba(0,0,0,0.8);
  --shadow-pop: 0 50px 130px -40px rgba(0,0,0,0.9);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  transition: background .5s ease, color .5s ease;
}
h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.025em; line-height: 1.06; margin: 0; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--accent-soft); }

/* page texture (matches reference light atmosphere) */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 45% at 92% 2%, rgba(190,156,103,0.10), transparent 60%),
    radial-gradient(50% 40% at 18% 100%, rgba(190,156,103,0.05), transparent 60%);
  transition: opacity .5s ease;
}
html[data-theme="dark"] body::before {
  background: radial-gradient(70% 50% at 88% 0%, rgba(190,156,103,0.12), transparent 60%);
}

/* ---------- SHARED PRIMITIVES ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--accent); font-weight: 700;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--accent); }
.mono { font-family: var(--font-mono); }
.accent-text { color: var(--accent); }

/* ============================================================
   APP SHELL
   ============================================================ */
.app {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  min-height: 100vh;
  position: relative; z-index: 1;
}

/* ---------- SIDEBAR ---------- */
.sidebar {
  position: sticky; top: 0; align-self: start;
  height: 100vh; display: flex; flex-direction: column;
  background: var(--side-bg);
  border-right: 1px solid var(--side-line);
  color: var(--side-ink);
  overflow: hidden;
}
.sidebar::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(80% 30% at 50% 0%, rgba(190,156,103,0.10), transparent 62%);
}
.side-head {
  display: flex; align-items: center; gap: 10px;
  padding: 26px 22px 22px; position: relative;
}
.side-logo { display: flex; align-items: center; }
.side-logo img { height: 30px; width: auto; display: block; }
.side-logo .logo-dark { display: block; }
.side-logo .logo-light { display: none; }
html[data-theme="dark"] .side-logo .logo-dark { display: none; }
html[data-theme="dark"] .side-logo .logo-light { display: block; }

/* mini score widget */
.side-score {
  margin: 4px 18px 6px; padding: 16px 18px; position: relative;
  border-radius: 16px; border: 1px solid var(--side-active-line);
  background: linear-gradient(160deg, rgba(190,156,103,0.14), rgba(190,156,103,0.03));
}
.side-score .ss-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.side-score .ss-label {
  font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--side-muted); line-height: 1.4; max-width: 9ch;
}
.side-score .ss-val { font-family: var(--font-display); font-weight: 800; font-size: 1.9rem; color: var(--accent); letter-spacing: -0.03em; }
html[data-theme="dark"] .side-score .ss-val { color: var(--gold); }
.side-score .ss-bar { margin-top: 12px; height: 6px; border-radius: 4px; background: color-mix(in srgb, var(--side-ink) 9%, transparent); overflow: hidden; }
.side-score .ss-bar i { display: block; height: 100%; width: 0; border-radius: 4px; background: var(--grad-accent); transition: width 1.4s var(--ease); }
.side-score .ss-meta { margin-top: 10px; font-size: 0.74rem; color: var(--side-muted); font-family: var(--font-mono); letter-spacing: 0.02em; }

/* nav */
.side-nav { flex: 1; overflow-y: auto; padding: 14px 16px 8px; scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--side-ink) 12%, transparent) transparent; }
.side-nav::-webkit-scrollbar { width: 6px; }
.side-nav::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--side-ink) 10%, transparent); border-radius: 4px; }
.nav-group { margin-top: 16px; }
.nav-group:first-child { margin-top: 4px; }
.nav-group-label {
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--side-muted); padding: 0 12px 8px;
}
.nav-item {
  display: flex; align-items: center; gap: 13px; width: 100%;
  padding: 12px 14px; margin-bottom: 3px; border-radius: 12px;
  background: transparent; border: 1px solid transparent; color: var(--side-muted);
  font-size: 0.96rem; font-weight: 500; text-align: left;
  transition: background .3s var(--ease), color .3s, border-color .3s, transform .3s;
}
.nav-item svg { width: 20px; height: 20px; flex: none; stroke-width: 1.8; opacity: .85; }
.nav-item:hover { color: var(--side-ink); background: var(--side-hover); }
.nav-item.active {
  color: var(--accent); background: var(--side-active);
  border-color: var(--side-active-line); font-weight: 600;
}
html[data-theme="dark"] .nav-item.active { color: var(--gold); }
.nav-item.active svg { color: var(--accent); opacity: 1; }
html[data-theme="dark"] .nav-item.active svg { color: var(--gold); }
.nav-item.active::before {
  content: ""; position: absolute; left: 0; width: 3px; height: 20px; border-radius: 0 3px 3px 0;
  background: var(--accent); margin-left: -14px;
}
.nav-item { position: relative; }

/* sidebar footer */
.side-legal { padding: 12px 18px; display: flex; flex-wrap: wrap; gap: 4px 12px; }
.side-legal a { color: var(--side-muted); font-size: 0.72rem; text-decoration: none; transition: color .15s var(--ease); }
.side-legal a:hover { color: var(--accent); }
.side-foot { padding: 14px 18px 18px; border-top: 1px solid var(--side-line); display: flex; align-items: center; gap: 12px; }
.side-user { display: flex; align-items: center; gap: 11px; min-width: 0; flex: 1; }
.side-user .av {
  width: 38px; height: 38px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: var(--grad-accent); color: #1a1404; font-family: var(--font-mono); font-weight: 700; font-size: 0.8rem;
}
.side-user .su-name { color: var(--side-ink); font-size: 0.88rem; font-weight: 600; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-user .su-role { color: var(--side-muted); font-size: 0.72rem; font-family: var(--font-mono); letter-spacing: 0.06em; }
.theme-switch {
  width: 40px; height: 40px; border-radius: 11px; flex: none; display: grid; place-items: center;
  background: var(--side-hover); border: 1px solid var(--side-line); color: var(--side-ink);
  transition: background .3s, border-color .3s, color .3s, transform .3s;
}
.theme-switch:hover { border-color: var(--side-active-line); color: var(--gold); transform: translateY(-1px); }
.theme-switch .ico { width: 18px; height: 18px; }
.theme-switch .ico-sun { display: none; }
html[data-theme="dark"] .theme-switch .ico-sun { display: block; }
html[data-theme="dark"] .theme-switch .ico-moon { display: none; }

/* ---------- MAIN ---------- */
.main { min-width: 0; display: flex; flex-direction: column; }
.main-inner { padding: clamp(28px, 4vw, 56px) clamp(22px, 4vw, 56px) 80px; max-width: 1320px; width: 100%; }

.view { display: none; }
.view.active { display: block; }

/* page header */
.page-head { margin-bottom: 30px; }
.page-head h1 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); letter-spacing: -0.035em; }
.page-head h1 .dot { color: var(--accent); }
.page-head p { color: var(--muted); margin: 12px 0 0; font-size: clamp(1rem, 1.4vw, 1.12rem); max-width: 72ch; line-height: 1.55; }
.page-head p a { color: var(--accent); font-weight: 600; }

/* ============================================================
   REVEAL / MOTION
   ============================================================ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ============================================================
   CARDS / SURFACES
   ============================================================ */
.card {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 20px;
  box-shadow: var(--shadow-card);
}
.card-pad { padding: clamp(22px, 2.4vw, 30px); }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.card-h h2, .card-h h3 { font-size: 1.28rem; letter-spacing: -0.02em; }
.card-h .meta { font-size: 0.84rem; color: var(--muted); font-family: var(--font-mono); }

/* hover-lift utility for interactive cards */
.lift { transition: transform .5s var(--ease), border-color .4s, box-shadow .4s; }
.lift:hover { transform: translateY(-5px); border-color: var(--accent-line); box-shadow: var(--shadow-pop); }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-body); font-weight: 600; border-radius: 12px;
  padding: 13px 22px; font-size: 0.95rem; border: 1px solid transparent;
  transition: transform .3s var(--ease), background .3s, box-shadow .3s, border-color .3s, color .3s;
}
.btn svg { width: 17px; height: 17px; }
/* Lade-Spinner im Button (1.4). currentColor -> passt sich an Button-Farbe an. */
.btn-spinner { display: inline-block; width: 15px; height: 15px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: btnSpin .6s linear infinite; }
@keyframes btnSpin { to { transform: rotate(360deg); } }
.btn.is-loading, .onb-finish.is-loading { cursor: progress; opacity: .9; }
.btn-primary {
  background: var(--accent-2); color: #1a1404; font-weight: 700;
  box-shadow: 0 12px 30px -14px color-mix(in srgb, var(--accent-2) 75%, transparent);
}
.btn-primary:hover { transform: translateY(-2px); background: color-mix(in srgb, var(--accent-2) 90%, #fff); box-shadow: 0 18px 40px -14px color-mix(in srgb, var(--accent-2) 80%, transparent); }
.btn-ghost { background: var(--bg-2); border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn-block { width: 100%; }

/* ---------- BADGES / PILLS ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 100px;
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700;
}
/* Icon in einer Pille begrenzen – sonst lädt ein <use>-SVG (z. B. Abgeschlossen-Haken)
   ohne feste Größe riesig und sprengt das Layout. */
.pill svg { width: 13px; height: 13px; flex: none; }
.pill-accent { background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent-ink); }
html[data-theme="dark"] .pill-accent { color: var(--accent-2); }
.pill-ok { background: var(--ok-soft); border: 1px solid var(--ok-line); color: var(--ok); }
.pill-flag { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 100px;
  background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent-ink);
  font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; }
html[data-theme="dark"] .pill-flag { color: var(--accent-2); }
.pill-flag svg { width: 13px; height: 13px; }
.pill-soft { background: var(--surface); border: 1px solid var(--line); color: var(--muted); }

/* ============================================================
   DASHBOARD — score hero
   ============================================================ */
.score-hero {
  position: relative; overflow: hidden;
  border-radius: 24px; padding: clamp(26px, 3vw, 40px);
  background: linear-gradient(135deg, #1a1813 0%, #0E0D0A 70%);
  border: 1px solid rgba(190,156,103,0.22);
  box-shadow: var(--shadow-pop);
  color: #F3F1EA;
}
.score-hero::after {
  content: ""; position: absolute; right: -120px; top: -140px; width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(190,156,103,0.20), transparent 70%); pointer-events: none;
}
.score-hero .sh-grid { position: relative; z-index: 1; display: flex; align-items: center; gap: clamp(24px, 4vw, 54px); flex-wrap: wrap; }
.score-hero .sh-label {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: #B8AD97; display: inline-flex; align-items: center; gap: 9px;
}
.score-hero .sh-num { display: flex; align-items: flex-start; gap: 12px; margin: 14px 0 4px; }
.score-hero .sh-num b { font-family: var(--font-display); font-weight: 800; font-size: clamp(3.4rem, 8vw, 5rem); line-height: 0.9; color: var(--gold); letter-spacing: -0.04em; }
.score-hero .sh-info {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; margin-top: 6px;
  border: 1px solid rgba(190,156,103,0.4); color: var(--gold); font-family: var(--font-mono); font-size: 0.9rem; cursor: help;
}
.score-hero .sh-phase { color: #B8AD97; font-size: 0.96rem; }
.score-hero .sh-bar { margin-top: 22px; height: 10px; border-radius: 6px; background: rgba(255,255,255,0.08); overflow: hidden; max-width: 640px; }
.score-hero .sh-bar i { display: block; height: 100%; width: 0; border-radius: 6px; background: var(--grad-accent); box-shadow: 0 0 22px -2px rgba(190,156,103,0.6); transition: width 1.5s var(--ease); }
.score-hero .sh-body { flex: 1; min-width: 260px; }

/* score ring (from reference) */
.ring {
  --p: 0; width: 132px; height: 132px; border-radius: 50%; flex: none; position: relative;
  background: conic-gradient(var(--gold) calc(var(--p)*1%), rgba(255,255,255,0.10) 0);
  display: grid; place-items: center;
}
.ring::before { content: ""; position: absolute; inset: 12px; border-radius: 50%; background: #0E0D0A; }
.ring .rv { position: relative; font-family: var(--font-mono); font-weight: 700; font-size: 2.7rem; color: var(--gold); }

/* KPI cards */
.kpi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.kpi {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 18px;
  padding: 22px 24px; box-shadow: var(--shadow-card);
  transition: transform .5s var(--ease), border-color .4s, box-shadow .4s;
}
.kpi:hover { transform: translateY(-4px); border-color: var(--accent-line); box-shadow: var(--shadow-pop); }
.kpi .k-label { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.kpi .k-val { font-family: var(--font-display); font-weight: 800; font-size: 2.4rem; letter-spacing: -0.04em; margin-top: 12px; line-height: 1; }
.kpi .k-sub { font-size: 0.82rem; color: var(--muted); margin-top: 8px; }
.kpi .k-val.accent { color: var(--accent); }

/* two-col layout */
.grid-2 { display: grid; grid-template-columns: 1.55fr 1fr; gap: 18px; align-items: start; }

/* empty state */
.empty {
  border: 1.5px dashed var(--line); border-radius: 16px; background: var(--surface);
  padding: clamp(34px, 5vw, 56px) 24px; text-align: center;
}
.empty .e-ico { color: var(--accent); margin-bottom: 16px; display: inline-grid; place-items: center; }
.empty .e-ico svg { width: 40px; height: 40px; stroke-width: 1.5; }
.empty .e-title { font-size: 1.12rem; font-weight: 700; color: var(--ink); }
.empty p { color: var(--muted); margin: 8px auto 0; max-width: 48ch; font-size: 0.95rem; }
.empty.sparkle .e-ico { color: var(--accent); }

/* activity feed */
.feed { display: flex; flex-direction: column; }
.feed-item { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line-soft); }
.feed-item:last-child { border-bottom: none; padding-bottom: 0; }
.feed-item:first-child { padding-top: 0; }
.feed-ico {
  width: 40px; height: 40px; border-radius: 11px; flex: none; display: grid; place-items: center;
  background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent);
}
.feed-ico svg { width: 19px; height: 19px; }
.feed-body { min-width: 0; }
.feed-body .f-title { font-weight: 700; font-size: 0.95rem; color: var(--ink); }
.feed-body .f-text { color: var(--muted); font-size: 0.9rem; margin-top: 3px; line-height: 1.45; }
.feed-body .f-time { color: var(--muted); font-size: 0.74rem; font-family: var(--font-mono); margin-top: 6px; opacity: 0.8; }

/* ============================================================
   EXPERTEN
   ============================================================ */
.banner {
  display: flex; align-items: flex-start; gap: 18px; padding: 22px 26px;
  border-radius: 18px; border: 1px solid var(--accent-line);
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 10%, var(--bg-2)), var(--bg-2) 70%);
  box-shadow: var(--shadow-card);
}
.banner .b-ico {
  width: 48px; height: 48px; border-radius: 13px; flex: none; display: grid; place-items: center;
  background: var(--grad-accent); color: #1a1404; box-shadow: 0 12px 30px -12px color-mix(in srgb, var(--accent) 60%, transparent);
}
.banner .b-ico svg { width: 24px; height: 24px; }
.banner h3 { font-size: 1.12rem; margin-bottom: 6px; }
.banner p { color: var(--muted); font-size: 0.95rem; line-height: 1.55; margin: 0; max-width: 90ch; }

.expert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.expert-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 20px;
  padding: 26px 26px 24px; box-shadow: var(--shadow-card);
  transition: transform .5s var(--ease), border-color .4s, box-shadow .4s;
  cursor: pointer; min-height: 270px;
}
.expert-card:hover { transform: translateY(-6px); border-color: var(--accent-line); box-shadow: var(--shadow-pop); }
.expert-card .ec-ico {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px;
  background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent);
  transition: background .4s, color .4s;
}
.expert-card:hover .ec-ico { background: var(--grad-accent); color: #1a1404; border-color: transparent; }
.expert-card .ec-ico svg { width: 27px; height: 27px; }
.expert-card h3 { font-size: 1.32rem; letter-spacing: -0.02em; margin-bottom: 10px; }
.expert-card .ec-desc { color: var(--muted); font-size: 0.95rem; line-height: 1.5; }
.expert-card .ec-flag { margin-bottom: 12px; align-self: flex-start; }
.expert-card .ec-foot { margin-top: auto; padding-top: 18px; }
.expert-card .ec-score-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; }
.expert-card .ec-score-row .lbl { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.expert-card .ec-score-row .val { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; }
.expert-card .ec-bar { height: 7px; border-radius: 4px; background: var(--well); overflow: hidden; }
.expert-card .ec-bar i { display: block; height: 100%; width: 0; border-radius: 4px; background: var(--grad-accent); transition: width 1.3s var(--ease); }
.expert-card .ec-status { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; }
.expert-card .ec-status .s-txt { font-size: 0.82rem; color: var(--muted); }
.expert-card .ec-arrow { color: var(--muted); transition: transform .4s var(--ease), color .4s; }
.expert-card:hover .ec-arrow { color: var(--accent); transform: translateX(4px); }

/* ============================================================
   PROFIL — forms
   ============================================================ */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.field { margin-bottom: 18px; }
.field:last-child { margin-bottom: 0; }
.field label { display: block; font-weight: 700; font-size: 0.92rem; margin-bottom: 9px; color: var(--ink); }
.field .hint { font-weight: 400; color: var(--muted); font-size: 0.86rem; margin: 0 0 12px; line-height: 1.5; }
.input, .textarea {
  width: 100%; font-family: var(--font-body); font-size: 0.98rem; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 13px 15px; transition: border-color .3s, box-shadow .3s, background .3s;
}
.input:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); background: var(--bg-2); }
.textarea { resize: vertical; min-height: 120px; line-height: 1.55; }

/* ============================================================
   MEMORY-BOXEN (klickbar) + Editor-Popup
   ============================================================ */
.memory-input {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.memory-box {
  position: relative; width: 100%; text-align: left; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 15px 42px; min-height: 96px;
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.memory-box:hover { border-color: var(--accent-line); background: var(--bg-2); }
.memory-box:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.memory-box-text {
  font-family: var(--font-body); font-size: 0.98rem; color: var(--ink); line-height: 1.55;
  white-space: pre-wrap; word-break: break-word;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.memory-box-text.is-empty { color: var(--muted); }
.memory-box-cta {
  position: absolute; left: 15px; bottom: 12px;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.82rem; font-weight: 700; color: var(--accent);
  opacity: .85; transition: opacity .3s;
}
.memory-box-cta svg { width: 15px; height: 15px; }
.memory-box:hover .memory-box-cta { opacity: 1; }

.mf-modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 24px; }
.mf-modal[hidden] { display: none; }
.mf-modal-scrim { position: absolute; inset: 0; background: rgba(10,10,14,0.55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.mf-modal-panel {
  position: relative; z-index: 1; display: flex; flex-direction: column;
  width: min(760px, 100%); max-height: min(80vh, 720px);
  background: var(--panel); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow-pop); overflow: hidden;
  animation: mfModalIn .28s var(--ease, ease) both;
}
@keyframes mfModalIn { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
.mf-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; border-bottom: 1px solid var(--line-soft, var(--line)); }
.mf-modal-head h3 { margin: 0; font-size: 1.08rem; }
.mf-modal-x {
  flex: none; width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface); color: var(--muted); font-size: 1.4rem; line-height: 1; cursor: pointer;
  transition: color .2s, border-color .2s, background .2s;
}
.mf-modal-x:hover { color: var(--ink); border-color: var(--accent-line); background: var(--bg-2); }
.mf-modal-body { padding: 18px 20px; overflow: auto; flex: 1; }
.mf-modal-textarea { min-height: 320px; height: 46vh; resize: none; }
.mf-modal-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 20px; border-top: 1px solid var(--line-soft, var(--line)); flex-wrap: wrap; }
.mf-modal-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.mf-modal-count { font-size: 0.84rem; color: var(--muted); }
.mf-modal-count strong { color: var(--ink); font-weight: 700; }
body.mf-modal-open { overflow: hidden; }

@media (max-width: 640px) {
  .mf-modal { padding: 0; }
  .mf-modal-panel { width: 100%; max-height: 100%; height: 100%; border-radius: 0; border: 0; }
  .mf-modal-textarea { height: auto; flex: 1; }
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--bg-2); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; transition: border-color .4s, box-shadow .4s; }
.faq-item.open { border-color: var(--accent-line); box-shadow: var(--shadow-card); }
.faq-q {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%;
  padding: 20px 24px; background: transparent; border: none; text-align: left;
  font-family: var(--font-display); font-weight: 700; font-size: 1.06rem; color: var(--ink); letter-spacing: -0.01em;
}
.faq-q .pm { color: var(--accent); flex: none; transition: transform .4s var(--ease); }
.faq-item.open .faq-q .pm { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .5s var(--ease); }
.faq-a-inner { padding: 0 24px 22px; color: var(--muted); font-size: 0.98rem; line-height: 1.62; }

.support-card .sc-mail { margin: 18px 0 22px; }
.support-card h4 { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.support-card ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 0.92rem; line-height: 1.9; }

/* ============================================================
   TABLES
   ============================================================ */
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; }
.tbl thead th {
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); font-weight: 700; text-align: left; padding: 0 18px 14px;
}
.tbl thead th.right, .tbl td.right { text-align: right; }
.tbl tbody tr { transition: background .25s; }
.tbl tbody tr:hover { background: var(--surface); }
.tbl tbody td { padding: 15px 18px; border-top: 1px solid var(--line-soft); vertical-align: middle; font-size: 0.94rem; }
.tbl .u-cell { display: flex; align-items: center; gap: 13px; }
.tbl .u-name { font-weight: 700; color: var(--ink); }
.tbl .u-mail { color: var(--muted); }
.avatar {
  width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: var(--grad-accent); color: #1a1404; font-family: var(--font-mono); font-weight: 700; font-size: 0.82rem;
}
.avatar.ghost { background: var(--surface); border: 1px solid var(--line); color: var(--accent); }
.row-action {
  width: 38px; height: 38px; border-radius: 10px; display: inline-grid; place-items: center;
  background: var(--bg-2); border: 1px solid var(--line); color: var(--muted);
  transition: border-color .3s, color .3s, background .3s, transform .3s;
}
.row-action:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); transform: translateY(-1px); }
.row-action svg { width: 16px; height: 16px; }
.row-actions { display: inline-flex; gap: 8px; }
.link-btn {
  display: inline-flex; align-items: center; gap: 7px; padding: 9px 15px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--bg-2); color: var(--ink); font-size: 0.86rem; font-weight: 600;
  transition: border-color .3s, color .3s, background .3s, transform .3s;
}
.link-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); transform: translateY(-1px); }
.link-btn svg { width: 14px; height: 14px; transition: transform .3s var(--ease); }
.link-btn:hover svg { transform: translateX(3px); }

/* ---------- SEARCH ---------- */
.searchbar { display: flex; gap: 12px; align-items: center; }
.search-input { position: relative; flex: 1; }
.search-input svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); }
.search-input input {
  width: 100%; padding: 14px 16px 14px 46px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--bg-2); color: var(--ink); font-family: var(--font-body); font-size: 0.96rem;
  transition: border-color .3s, box-shadow .3s;
}
.search-input input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.search-btn { width: 50px; height: 50px; flex: none; border-radius: 12px; background: var(--accent-2); color: #1a1404; border: none; display: grid; place-items: center; transition: transform .3s, background .3s; }
.search-btn:hover { transform: translateY(-2px); background: color-mix(in srgb, var(--accent-2) 90%, #fff); }
.search-btn svg { width: 19px; height: 19px; }

/* ============================================================
   CHARTS (CSS-only bars)
   ============================================================ */
.bar-chart { display: flex; align-items: flex-end; gap: clamp(4px, 1vw, 10px); height: 200px; padding-top: 10px; }
.bar-chart .bar { flex: 1; border-radius: 6px 6px 3px 3px; background: var(--grad-accent); min-height: 4px; height: 0; transition: height 1s var(--ease); opacity: 0.92; }
.bar-chart .bar:hover { opacity: 1; }
.chart-axis { display: flex; justify-content: space-between; margin-top: 12px; font-family: var(--font-mono); font-size: 0.74rem; color: var(--muted); }

.quality-num { font-family: var(--font-display); font-weight: 800; font-size: clamp(3rem, 6vw, 4rem); color: var(--accent); letter-spacing: -0.04em; line-height: 1; }
.quality-num span { font-size: 0.4em; color: var(--muted); font-weight: 700; }

/* ranked list (Themen pro Experte) */
.rank-list { display: flex; flex-direction: column; gap: 16px; }
.rank-row .rr-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.rank-row .rr-name { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 0.95rem; }
.rank-row .rr-name svg { width: 17px; height: 17px; color: var(--accent); }
.rank-row .rr-val { font-family: var(--font-mono); font-weight: 700; color: var(--ink); }
.rank-row .rr-bar { height: 8px; border-radius: 4px; background: var(--well); overflow: hidden; }
.rank-row .rr-bar i { display: block; height: 100%; width: 0; border-radius: 4px; background: var(--grad-accent); transition: width 1.1s var(--ease); }

/* filter selects */
.select-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.select-row label { display: block; font-weight: 700; font-size: 0.92rem; margin-bottom: 9px; }
.select {
  width: 100%; padding: 13px 15px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--bg-2); color: var(--ink); font-family: var(--font-body); font-size: 0.96rem;
  appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236E6A5E' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

.cat-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.cat-tag {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 15px; border-radius: 100px;
  background: var(--surface); border: 1px solid var(--line); font-size: 0.86rem; font-weight: 600; color: var(--ink-2);
}
.cat-tag b { font-family: var(--font-mono); color: var(--accent); font-weight: 700; }

/* small kpi (admin 4-up) */
.kpi-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

/* ---------- proof strip (dezente Ergänzung) ---------- */
.proof-strip { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; padding: 16px 22px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line-soft); }
.proof-strip .ps-item { display: flex; align-items: center; gap: 10px; font-size: 0.86rem; color: var(--muted); }
.proof-strip .ps-item b { color: var(--accent); font-family: var(--font-mono); }
.proof-strip .ps-item svg { width: 17px; height: 17px; color: var(--accent); }
.proof-strip .ps-sep { width: 1px; height: 22px; background: var(--line); }

.stack { display: flex; flex-direction: column; gap: 18px; }
.mt-18 { margin-top: 18px; }
.mt-26 { margin-top: 26px; }
.mt-40 { margin-top: clamp(30px, 4vw, 48px); }

/* ============================================================
   PRIDE / PROOF ZONE  (Claims · Proofs · Weltbühne)
   Bringt die Wirkung der Referenz ins System.
   ============================================================ */
.in-sec-head { max-width: 760px; margin-bottom: 26px; }
.in-sec-head .eyebrow { margin-bottom: 14px; }
.in-sec-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); letter-spacing: -0.03em; line-height: 1.08; }
.in-sec-head h2 .accent-text { color: var(--accent); }
.in-sec-head p { color: var(--muted); margin: 14px 0 0; font-size: clamp(1rem, 1.4vw, 1.12rem); line-height: 1.55; max-width: 64ch; }

/* dark premium claim band */
.pride-band {
  position: relative; overflow: hidden; border-radius: 24px;
  padding: clamp(28px, 3.4vw, 46px);
  background: linear-gradient(135deg, #1a1813 0%, #0E0D0A 72%);
  border: 1px solid rgba(190,156,103,0.22); box-shadow: var(--shadow-pop); color: #F3F1EA;
}
.pride-band::after {
  content: ""; position: absolute; left: -120px; bottom: -160px; width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(190,156,103,0.18), transparent 70%); pointer-events: none;
}
.pride-band .pb-eyebrow { color: var(--gold); }
.pride-band .pb-eyebrow::before { background: var(--gold); }
.pride-band h2 { font-size: clamp(1.7rem, 3.4vw, 2.7rem); letter-spacing: -0.035em; margin-top: 14px; max-width: 20ch; line-height: 1.06; }
.pride-band h2 .accent-text { color: var(--gold); }
.pride-band .pb-sub { color: #B8AD97; margin: 16px 0 0; font-size: clamp(1rem, 1.4vw, 1.12rem); line-height: 1.55; max-width: 62ch; }
.pride-band .pb-sub strong { color: #F3F1EA; font-weight: 600; }

.proof-stats { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 36px); margin-top: clamp(26px, 3vw, 40px); }
.proof-stat { position: relative; }
.proof-stat + .proof-stat::before { content: ""; position: absolute; left: clamp(-18px, -1.2vw, -8px); top: 6px; bottom: 6px; width: 1px; background: rgba(255,255,255,0.12); }
.proof-stat .ps-val { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 4.4vw, 3.1rem); color: var(--gold); letter-spacing: -0.04em; line-height: 1; }
.proof-stat .ps-lbl { color: #B8AD97; font-size: clamp(0.82rem, 1.1vw, 0.95rem); margin-top: 9px; }
@media (max-width: 620px) {
  .proof-stats { grid-template-columns: 1fr; gap: 22px; }
  .proof-stat + .proof-stat::before { display: none; }
  .proof-stat + .proof-stat { padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.12); }
}

/* "bekannt aus" marquee */
.proofbar-row { display: flex; align-items: center; gap: clamp(16px, 3vw, 40px); flex-wrap: wrap; padding: 18px 0; }
.proofbar-row .pb-label { font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted); letter-spacing: 0.02em; white-space: nowrap; flex: none; }
.proofbar-row .pb-label b { color: var(--accent); }
.marquee { flex: 1; min-width: 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee-track { display: flex; gap: clamp(30px, 4vw, 58px); width: max-content; align-items: center; animation: marquee 34s linear infinite; }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.logo-marquee .logo { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.05rem, 1.8vw, 1.5rem); color: var(--ink); opacity: 0.4; white-space: nowrap; transition: opacity .3s, color .3s; }
.logo-marquee .logo:hover { opacity: 1; color: var(--accent); }

/* celebrity / weltbühne carousel */
.celeb-track-wrap { position: relative; }
.celeb-track {
  display: flex; gap: 18px; padding: 4px 0 8px; overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none; -ms-overflow-style: none;
}
.celeb-track::-webkit-scrollbar { display: none; }
.celeb-card {
  flex: 0 0 clamp(248px, 26vw, 310px); scroll-snap-align: center;
  border-radius: 20px; overflow: hidden; position: relative;
  border: 1px solid var(--line); background: var(--bg-2); box-shadow: var(--shadow-card);
  display: flex; flex-direction: column;
  transition: transform .55s var(--ease), box-shadow .55s var(--ease), opacity .55s var(--ease), border-color .4s;
  opacity: 0.66; transform: scale(0.94);
}
.celeb-card.is-focus { opacity: 1; transform: scale(1); border-color: var(--accent-line); box-shadow: var(--shadow-pop), 0 0 56px -26px color-mix(in srgb, var(--accent) 50%, transparent); }
@media (prefers-reduced-motion: reduce) { .celeb-card { opacity: 1; transform: none; transition: none; } }
.celeb-card .cc-pic { position: relative; aspect-ratio: 4/5; background: var(--well); overflow: hidden; }
.celeb-card .cc-pic img { width: 100%; height: 100%; object-fit: cover; object-position: center 16%; }
.celeb-card .cc-body { padding: 18px 20px 22px; }
.celeb-card .cc-role { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.celeb-card h3 { font-size: 1.3rem; margin: 7px 0 7px; letter-spacing: -0.02em; }
.celeb-card .cc-fame { display: inline-block; font-size: 0.76rem; color: var(--ink-2); font-weight: 600; margin-bottom: 11px; }
.celeb-card .cc-what { color: var(--muted); font-size: 0.88rem; line-height: 1.5; }
.celeb-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; }
.celeb-dots { display: flex; gap: 7px; flex-wrap: wrap; }
.celeb-dots .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--line); border: none; cursor: pointer; padding: 0; transition: background .3s, width .3s; }
.celeb-dots .dot.active { background: var(--accent); width: 22px; border-radius: 4px; }
.celeb-arrows { display: flex; gap: 8px; flex: none; }
.celeb-arrows button {
  width: 44px; height: 44px; border-radius: 12px; cursor: pointer; display: grid; place-items: center;
  background: var(--bg-2); border: 1px solid var(--line); color: var(--ink);
  transition: border-color .3s, color .3s, background .3s, transform .3s;
}
.celeb-arrows button:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); transform: translateY(-1px); }
.celeb-arrows button svg { width: 19px; height: 19px; }

/* avatar proof strip (Experten banner) */
.proof-avatars { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 18px; }
.av-stack { display: flex; }
.av-stack img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: center 18%; border: 2px solid var(--bg-2); margin-left: -12px; box-shadow: 0 4px 12px -4px rgba(0,0,0,0.35); }
.av-stack.heads img { object-position: center 32%; }
.av-stack img:first-child { margin-left: 0; }
.proof-avatars .pa-text { font-size: 0.9rem; color: var(--muted); line-height: 1.45; }
.proof-avatars .pa-text b { color: var(--ink); font-weight: 700; }

/* mini testimonial card */
.testi-card { display: flex; flex-direction: column; }
.testi-card .stars { color: var(--accent); letter-spacing: 2px; font-size: 0.92rem; margin-bottom: 14px; }
.testi-card blockquote { margin: 0; font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; font-size: clamp(1.05rem, 1.5vw, 1.28rem); line-height: 1.42; color: var(--ink); }
.testi-card blockquote .em { color: var(--accent); }
.testi-card .who { display: flex; align-items: center; gap: 13px; margin-top: 20px; }
.testi-card .who img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent-line); }
.testi-card .who b { display: block; color: var(--ink); font-weight: 700; font-size: 0.96rem; }
.testi-card .who span span { color: var(--muted); font-size: 0.82rem; }

/* ============================================================
   SCORE-HERO command-center additions
   ============================================================ */
.sh-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.sh-next { margin-top: 18px; font-size: 0.92rem; color: #B8AD97; display: flex; align-items: center; gap: 9px; }
.sh-next b { color: var(--gold); font-weight: 700; }
.sh-next svg { width: 16px; height: 16px; color: var(--gold); }
.btn-on-dark { background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.16); color: #F3F1EA; }
.btn-on-dark:hover { background: rgba(255,255,255,0.12); border-color: var(--gold); color: #fff; transform: translateY(-2px); }
.score-hero .ring::before { background: #110F0B; }
.score-hero .ring { background: conic-gradient(var(--gold) calc(var(--p)*1%), rgba(255,255,255,0.09) 0); }

/* ============================================================
   JOURNEY ROADMAP  ("Von der Aktivierung zur Autorität")
   ============================================================ */
.journey-track { display: grid; grid-template-columns: repeat(4, 1fr); position: relative; margin-top: 10px; }
.journey-line { position: absolute; top: 27px; left: 12.5%; right: 12.5%; height: 3px; background: var(--well); border-radius: 3px; overflow: hidden; }
.journey-line i { display: block; height: 100%; width: 0; background: var(--grad-accent); border-radius: 3px; transition: width 1.5s var(--ease); box-shadow: 0 0 16px -2px color-mix(in srgb, var(--accent) 60%, transparent); }
.jstep { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 12px; position: relative; }
.jnum {
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-mono); font-weight: 700; font-size: 1.1rem;
  background: var(--bg-2); border: 2px solid var(--line); color: var(--muted);
  position: relative; z-index: 1; transition: background .5s var(--ease), color .5s, border-color .5s, box-shadow .5s;
}
.jnum svg { width: 22px; height: 22px; }
.jstep.done .jnum { background: var(--grad-accent); color: #1a1404; border-color: transparent; }
.jstep.active .jnum { background: var(--bg-2); border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 6px var(--accent-soft); }
.jstep .jphase { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-top: 16px; }
.jstep.active .jphase { color: var(--accent); }
.jstep .jt { font-weight: 700; font-size: 1.05rem; margin-top: 6px; color: var(--ink); letter-spacing: -0.01em; }
.jstep.active .jt { color: var(--accent); }
.jstep .jd { color: var(--muted); font-size: 0.85rem; margin-top: 7px; line-height: 1.45; max-width: 22ch; }
@media (max-width: 760px) {
  .journey-track { grid-template-columns: 1fr 1fr; gap: 30px 0; }
  .journey-line { display: none; }
}

/* ============================================================
   PRINCIPLES (Kodex) — "Worauf dein System gebaut ist"
   ============================================================ */
.principles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.principle {
  padding: 22px; border-radius: 16px; border: 1px solid var(--line); background: var(--bg-2);
  transition: border-color .4s, transform .4s, box-shadow .4s;
}
.principle:hover { border-color: var(--accent-line); transform: translateY(-4px); box-shadow: var(--shadow-card); }
.principle .pico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent); margin-bottom: 16px; }
.principle .pico svg { width: 21px; height: 21px; }
.principle h4 { font-size: 1.02rem; letter-spacing: -0.01em; }
.principle p { color: var(--muted); font-size: 0.86rem; margin-top: 8px; line-height: 1.5; }
@media (max-width: 900px) { .principles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .principles { grid-template-columns: 1fr; } }

/* ---------- mobile ---------- */
.mobile-bar { display: none; }
@media (max-width: 1080px) {
  .grid-2 { grid-template-columns: 1fr; }
  .kpi-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .expert-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 920px) {
  :root { --sidebar-w: 0px; }
  .app { grid-template-columns: 1fr; z-index: auto; }
  .sidebar {
    position: fixed; top: 0; left: 0; width: 290px; z-index: 60;
    transform: translateX(-100%); transition: transform .4s var(--ease);
  }
  body.nav-open .sidebar { transform: none; }
  .nav-scrim { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 55; opacity: 0; pointer-events: none; transition: opacity .4s; }
  body.nav-open .nav-scrim { opacity: 1; pointer-events: auto; }
  .mobile-bar {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    padding: 14px 18px; position: sticky; top: 0; z-index: 40;
    background: color-mix(in srgb, var(--bg) 84%, transparent);
    backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%);
    border-bottom: 1px solid var(--line-soft);
  }
  .mobile-bar .mb-logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; letter-spacing: 0.2em; font-size: 0.9rem; }
  .mobile-bar .mb-logo img { height: 26px; }
  .hamburger { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); color: var(--ink); }
  .hamburger svg { width: 20px; height: 20px; }
  .main-inner { padding: 24px 18px 70px; }
}
@media (max-width: 720px) {
  .kpi-grid { grid-template-columns: 1fr; }
  .kpi-grid-4 { grid-template-columns: 1fr 1fr; }
  .expert-grid { grid-template-columns: 1fr; }
  .form-grid, .select-row { grid-template-columns: 1fr; }
}

/* ============================================================
   CINEMATIC INTRO — der erste "Wow"-Moment
   ============================================================ */
#intro {
  position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center;
  background: #08080B; color: #F3F1EA; overflow: hidden;
  transition: opacity .9s var(--ease), transform 1.15s var(--ease), visibility .9s;
}
#intro::before {
  content: ""; position: absolute; inset: -20%;
  background:
    radial-gradient(48% 40% at 50% 42%, rgba(190,156,103,0.28), transparent 60%),
    radial-gradient(36% 30% at 74% 82%, rgba(190,156,103,0.12), transparent 60%),
    radial-gradient(30% 26% at 22% 24%, rgba(190,156,103,0.08), transparent 60%);
  animation: introGlow 1.3s var(--ease) both, introDrift 14s ease-in-out infinite alternate;
}
#intro::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 120% at 50% 48%, transparent 54%, rgba(0,0,0,0.72));
}
#intro.done { opacity: 0; visibility: hidden; transform: scale(1.08); pointer-events: none; }
.intro-inner { position: relative; z-index: 1; text-align: center; padding: 0 26px; max-width: 1100px; }
.intro-mark { width: 58px; height: auto; margin: 0 auto 30px; display: block; opacity: 0; transform: translateY(16px) scale(.86); animation: introUp 1s var(--ease) .12s both, markFloat 5s ease-in-out 1.2s infinite alternate; filter: drop-shadow(0 12px 36px rgba(190,156,103,0.42)); }
.intro-eyebrow { display: block; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.36em; text-transform: uppercase; color: var(--gold); opacity: 0; margin-bottom: 26px; animation: introUp .9s var(--ease) .4s both; }
.intro-claim { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.045em; line-height: 1.0; font-size: clamp(2.3rem, 7vw, 5.4rem); }
.intro-claim .l { display: block; overflow: hidden; padding-bottom: 0.06em; }
.intro-claim .l span { display: block; transform: translateY(115%); animation: introLine 1s var(--ease) both; }
.intro-claim .l1 { color: rgba(243,241,234,0.62); font-weight: 700; font-size: 0.5em; letter-spacing: -0.02em; margin-bottom: 0.12em; }
.intro-claim .l1 span { animation-delay: .85s; }
.intro-claim .l2 { line-height: 1.04; }
.intro-claim .l2 span { animation-delay: 1.5s; }
.intro-claim .payoff {
  display: inline-block; font-weight: 800; font-size: 1.12em; letter-spacing: -0.05em;
  background: linear-gradient(105deg, #B68F52 0%, #C9A569 28%, #F6E6BE 47%, #FFF6DE 50%, #F6E6BE 53%, #C9A569 72%, #B68F52 100%);
  background-size: 320% 100%; background-position: 130% 0;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
  filter: drop-shadow(0 6px 26px rgba(190,156,103,0.30));
  animation: payoffPunch 1.05s var(--ease) 1.5s both, payoffShimmer 2.9s cubic-bezier(.4,0,.2,1) 1.85s both;
}
.intro-line { width: 0; height: 2px; margin: 42px auto 0; background: var(--grad-accent); border-radius: 2px; box-shadow: 0 0 22px -2px rgba(190,156,103,0.75); animation: introSweep 1.2s var(--ease) 2.15s both; }
.intro-skip { position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%); font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(243,241,234,0.4); opacity: 0; animation: introUp .8s ease 2.7s both; transition: color .3s; cursor: pointer; }
.intro-skip:hover { color: var(--gold); }
@keyframes introUp { to { opacity: 1; transform: none; } }
@keyframes introLine { to { transform: none; } }
@keyframes introSweep { to { width: min(460px, 74%); } }
@keyframes introGlow { from { opacity: 0; } to { opacity: 1; } }
@keyframes introDrift { from { transform: translate3d(-2%, -1%, 0) scale(1); } to { transform: translate3d(3%, 2%, 0) scale(1.08); } }
@keyframes markFloat { from { transform: translateY(0); } to { transform: translateY(-7px); } }
@keyframes payoffPunch { 0% { transform: scale(.8); } 58% { transform: scale(1.05); } 100% { transform: scale(1); } }
@keyframes payoffShimmer { 0% { background-position: 130% 0; } 100% { background-position: -70% 0; } }
@media (prefers-reduced-motion: reduce) { #intro { display: none !important; } }

/* ============================================================
   CINEMATIC INTRO 2.0 — Onboarding-Auftakt & System-Eintritt
   Partikelfeld (Canvas) + akteweise Texte; Steuerung via JS-Klassen.
   ============================================================ */
.cine-intro {
  position: fixed; inset: 0; z-index: 10000; overflow: hidden;
  background: #050507; color: #F3F1EA;
  display: grid; place-items: center;
  transition: opacity 1.1s var(--ease), transform 1.2s var(--ease), filter 1.1s var(--ease), visibility 1.1s;
}
.cine-intro.done { opacity: 0; visibility: hidden; transform: scale(1.12); filter: blur(10px); pointer-events: none; }
body.cine-active { overflow: hidden; }

/* Partikelfeld: die graue Masse – ein goldener Funke bist du (Konzept A). */
/* Vignette LIEGT HINTER dem Partikelfeld, damit die grauen Punkte am Rand
   nicht weggedunkelt werden. */
.cine-veil { position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 50% at 50% 46%, rgba(201,165,105,0.08), transparent 70%),
    radial-gradient(125% 125% at 50% 50%, transparent 62%, rgba(0,0,0,0.72));
}
.cine-field { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1;
  opacity: 0; animation: cineFieldIn 1.8s var(--ease) .15s forwards; }
/* Weiches Gold-Aufglühen (kein harter Blitz) – nur beim Climax "Jetzt wird es ernst.". */
.cine-flash { position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0;
  background: radial-gradient(58% 58% at 50% 50%, rgba(246,228,184,0.68), rgba(246,228,184,0) 72%);
}
.cine-flash.go { animation: cineFlash 1.5s ease-out; }

.cine-stage { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; padding: 0 26px;
  opacity: 1; transition: opacity .6s var(--ease); }
.cine-intro[data-phase="boot"] .cine-stage { opacity: 0; }

/* Eine "Bühne" pro Akt – alle im selben Grid-Feld, weiche Kreuzblende. */
.scr { grid-area: 1 / 1; width: min(1080px, 92vw); text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .72s var(--ease), transform .9s var(--ease), filter .72s var(--ease), visibility .72s;
}
.scr.is-in { opacity: 1; visibility: visible; transform: none; }
.scr.is-out { opacity: 0; visibility: hidden; transform: scale(1.08) translateY(-10px); filter: blur(9px); }

.scr-line { margin: 0; font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em;
  line-height: 1.16; font-size: clamp(1.5rem, 3.4vw, 2.6rem);
}
/* Typing-Reveal: Zeichen werden einzeln "reingeschrieben" (statt Block-Einblendung). */
.scr-line .ch, .scr-line .tok { opacity: 0; }
.scr-line .ch.on { opacity: 1; transition: opacity .12s linear; }
.scr-line .tok.on { opacity: 1; }
.cine-dim { color: rgba(243,241,234,0.58); font-weight: 600; }
.cine-sub { color: rgba(243,241,234,0.66); font-family: var(--font-body); font-weight: 400;
  font-size: clamp(1rem, 1.9vw, 1.26rem); letter-spacing: 0; }

.cine-greet { font-family: var(--font-mono); font-weight: 400; letter-spacing: 0.05em;
  color: var(--gold); font-size: clamp(1.1rem, 2.2vw, 1.6rem); }

.cine-turn { font-weight: 800; font-size: clamp(2rem, 5.4vw, 4rem); letter-spacing: -0.04em; line-height: 1.04; }
.cine-big { font-size: clamp(2.6rem, 7.4vw, 5.4rem); }

.cine-gold { display: inline-block; font-weight: 800;
  background: linear-gradient(105deg, #B68F52 0%, #C9A569 28%, #F6E6BE 47%, #FFF6DE 50%, #F6E6BE 53%, #C9A569 72%, #B68F52 100%);
  background-size: 320% 100%; background-position: 50% 0;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
  filter: drop-shadow(0 6px 26px rgba(201,165,105,0.32));
}
.cine-gold.on { animation: cineGoldReveal 1.9s var(--ease) both, cineShimmer 3.6s cubic-bezier(.4,0,.2,1) .6s both; }

/* Proof-Montage: Zusammenarbeit mit den Besten (Bilder werden gefächert eingeblendet). */
.cine-proof { display: flex; justify-content: center; align-items: flex-end; gap: clamp(8px, 1.4vw, 18px);
  margin-top: 18px; flex-wrap: wrap; }
.cine-shot { margin: 0; width: clamp(104px, 14.5vw, 178px); aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden;
  background: #14141a; border: 1px solid rgba(201,165,105,0.34);
  box-shadow: 0 24px 54px -22px rgba(0,0,0,0.82), inset 0 0 0 1px rgba(255,255,255,0.04);
  opacity: 0; transform: translateY(28px) rotate(calc((var(--i) - 2) * 3.2deg)) scale(.88);
  transition: opacity .9s var(--ease), transform 1s var(--ease);
  transition-delay: calc(var(--i) * 130ms + 180ms);
}
.scr.is-in .cine-shot { opacity: 1; transform: translateY(0) rotate(calc((var(--i) - 2) * 3.2deg)) scale(1); }
.cine-shot img { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(.22) contrast(1.05);
  transform-origin: center; }   /* per-Bild-Zoom via inline transform: scale() */

/* Zahlen, die wirken – animierter Count-up. */
.cine-stats { display: flex; justify-content: center; align-items: flex-start; gap: clamp(30px, 7vw, 88px); flex-wrap: wrap; }
.cine-stat { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .9s var(--ease); }
.cine-stat:nth-child(2) { transition-delay: .14s; }
.scr.is-in .cine-stat { opacity: 1; transform: none; }
.cine-stat-num { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.03em; line-height: 1;
  font-size: clamp(2.6rem, 6.4vw, 4.8rem);
  background: linear-gradient(105deg, #B68F52 0%, #C9A569 28%, #F6E6BE 47%, #FFF6DE 50%, #F6E6BE 53%, #C9A569 72%, #B68F52 100%);
  background-size: 320% 100%; background-position: 50% 0;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
  filter: drop-shadow(0 8px 30px rgba(201,165,105,0.34));
}
.cine-stat-pre, .cine-stat-suf { font-size: 0.46em; font-weight: 700; }
.cine-stat-label { margin-top: 14px; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: rgba(243,241,234,0.6); }

/* Lade-Schritt beim System-Eintritt. */
.cine-progress { width: min(360px, 70vw); height: 4px; border-radius: 999px; margin-top: 28px;
  background: rgba(243,241,234,0.12); overflow: hidden; }
.cine-progress-bar { display: block; height: 100%; width: 0; border-radius: 999px;
  background: var(--grad-accent, linear-gradient(90deg, #B68F52, #F6E6BE));
  box-shadow: 0 0 18px -2px rgba(201,165,105,0.85); transition: width 3s cubic-bezier(.4,0,.2,1); }
.cine-progress-bar.fill { width: 100%; }
.cine-progress-pct { margin-top: 12px; font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.14em; color: var(--gold); }

/* CTA in den Chat + dezenter Skip. */
.cine-cta { margin-top: 28px; display: inline-flex; align-items: center; gap: 10px; padding: 15px 30px;
  border: 0; border-radius: 999px; background: var(--accent-2, #C9A569); color: #1a1404;
  font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; cursor: pointer;
  box-shadow: 0 20px 50px -18px rgba(201,165,105,0.85);
  opacity: 0; transform: translateY(16px);
  transition: opacity .8s var(--ease) .55s, transform .8s var(--ease) .55s, box-shadow .25s;
}
.scr.is-in .cine-cta { opacity: 1; transform: none; }
.cine-cta:hover { transform: translateY(-2px); box-shadow: 0 30px 66px -18px rgba(201,165,105,0.98); }
.cine-cta svg { width: 18px; height: 18px; }

.cine-skip { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 4;
  border: 0; background: transparent; color: rgba(243,241,234,0.4); cursor: pointer;
  font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.18em; text-transform: uppercase;
  opacity: 0; animation: cineFadeIn .8s ease 2.4s forwards; transition: color .3s;
}
.cine-skip:hover { color: var(--gold); }

@keyframes cineFieldIn { to { opacity: 1; } }
/* "Du nicht." blüht langsam & würdevoll auf – wächst leicht heran und glüht. */
@keyframes cineGoldReveal {
  0%   { opacity: 0; transform: scale(1.05); filter: drop-shadow(0 6px 22px rgba(201,165,105,0)); letter-spacing: 0.03em; }
  100% { opacity: 1; transform: scale(1); filter: drop-shadow(0 10px 38px rgba(201,165,105,0.5)); letter-spacing: -0.02em; }
}
@keyframes cineFlash { 0% { opacity: 0; } 32% { opacity: .42; } 100% { opacity: 0; } }
@keyframes cineShimmer { 0% { background-position: 130% 0; } 100% { background-position: -60% 0; } }
@keyframes cineFadeIn { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .cine-intro { display: none !important; } }

/* ============================================================
   APP-INTEGRATION (Laravel-spezifische Ergänzungen)
   ============================================================ */
.mf-flash {
  padding: 14px 18px; border-radius: 14px; margin-bottom: 22px; font-size: 0.94rem; font-weight: 600;
  border: 1px solid var(--line); background: var(--bg-2); color: var(--ink); box-shadow: var(--shadow-card);
}
.mf-flash.ok  { border-color: var(--ok-line); background: var(--ok-soft); color: var(--ok); }
.mf-flash.err { border-color: rgba(168,48,48,.32); background: rgba(168,48,48,.08); color: #C0392B; }
html[data-theme="dark"] .mf-flash.err { color: #ff8a80; }

/* Validierungsfehler unter Feldern */
.field-hint { color: var(--muted); font-size: 0.82rem; line-height: 1.5; margin: 7px 0 0; }
.field-error { color: #C0392B; font-size: 0.84rem; margin-top: 7px; font-weight: 600; }
html[data-theme="dark"] .field-error { color: #ff8a80; }
.input.is-invalid, .textarea.is-invalid, .select.is-invalid { border-color: rgba(168,48,48,.55); }

/* Journey-Track Varianten (reale Phasenanzahl statt fixer 4) */
.journey-track.cols-3 { grid-template-columns: repeat(3, 1fr); }
.journey-track.cols-3 .journey-line { left: 16.66%; right: 16.66%; }
.journey-track.cols-2 { grid-template-columns: repeat(2, 1fr); }
.journey-track.cols-2 .journey-line { left: 25%; right: 25%; }

/* Pagination */
.mf-pagination { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 22px; align-items: center; }
.mf-pagination .pg-link {
  min-width: 40px; height: 40px; padding: 0 12px; border-radius: 11px; display: inline-grid; place-items: center;
  border: 1px solid var(--line); background: var(--bg-2); color: var(--ink); font-family: var(--font-mono);
  font-size: 0.86rem; font-weight: 700; transition: border-color .3s, color .3s, background .3s, transform .3s;
}
a.pg-link:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); transform: translateY(-1px); }
.mf-pagination .pg-link.active { background: var(--accent-2); color: #1a1404; border-color: transparent; }
.mf-pagination .pg-link.disabled { opacity: 0.4; cursor: default; }
.mf-pagination .pg-link.dots { border: none; background: transparent; color: var(--muted); }

/* ============================================================
   CHAT (agents/show) — im Designsystem, JS-Klassen unveraendert
   ============================================================ */
.chat-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.chat-head .ch-ico { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent); flex: none; }
.chat-head .ch-ico svg { width: 25px; height: 25px; }

.mf-chat-layout { display: grid; grid-template-columns: 280px 1fr; gap: 18px; align-items: stretch; height: calc(100vh - 210px); min-height: 460px; }

/* session list */
.mf-chat-sessions { display: flex; flex-direction: column; background: var(--bg-2); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-card); overflow: hidden; }
.mf-chat-sessions-head { padding: 18px 20px 12px; }
.mf-chat-sessions-head .title { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.mf-chat-sessions-list { flex: 1; overflow-y: auto; padding: 4px 12px 14px; scrollbar-width: thin; }
.mf-chat-sessions-label { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); padding: 14px 8px 8px; }
.mf-chat-session-item { display: block; padding: 12px 14px; border-radius: 13px; border: 1px solid transparent; margin-bottom: 4px; transition: background .3s, border-color .3s; }
.mf-chat-session-item:hover { background: var(--surface); }
.mf-chat-session-item.active { background: var(--accent-soft); border-color: var(--accent-line); }
.mf-chat-session-item .title-text { font-weight: 600; font-size: 0.9rem; color: var(--ink); display: flex; align-items: center; gap: 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mf-chat-session-item .title-text svg { width: 15px; height: 15px; color: var(--accent); flex: none; }
.mf-chat-session-item .meta { display: flex; justify-content: space-between; gap: 8px; margin-top: 5px; font-size: 0.72rem; color: var(--muted); font-family: var(--font-mono); }
.mf-chat-new .title-text { color: var(--accent); }

/* chat panel */
.mf-chat-panel { display: flex; flex-direction: column; min-width: 0; background: var(--bg-2); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-card); overflow: hidden; }
.mf-chat-header { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-bottom: 1px solid var(--line-soft); }
.mf-chat-header .icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--grad-accent); color: #1a1404; flex: none; }
.mf-chat-header .icon svg { width: 21px; height: 21px; }
.mf-chat-header .name { font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; color: var(--ink); }
.mf-chat-header .desc { font-size: 0.8rem; color: var(--muted); }
.mf-chat-header form { margin: 0; }

.mf-chat-messages { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 24px clamp(16px, 3vw, 32px); display: flex; flex-direction: column; gap: 18px; scrollbar-width: thin; }
.mf-message { display: flex; flex-direction: column; max-width: 760px; }
.mf-message.user { align-self: flex-end; align-items: flex-end; }
.mf-message.assistant { align-self: flex-start; align-items: flex-start; }
.mf-bubble { padding: 14px 18px; border-radius: 16px; font-size: 0.96rem; line-height: 1.6; max-width: 100%; word-wrap: break-word; }
.mf-message.user .mf-bubble { background: var(--grad-accent); color: #1a1404; border-bottom-right-radius: 5px; font-weight: 500; }
.mf-message.assistant .mf-bubble { background: var(--surface); border: 1px solid var(--line); color: var(--ink); border-bottom-left-radius: 5px; }
.mf-bubble-error { background: rgba(168,48,48,.08) !important; border: 1px solid rgba(168,48,48,.25) !important; color: #C0392B !important; }
html[data-theme="dark"] .mf-bubble-error { color: #ff8a80 !important; }
.mf-msg-meta { font-size: 0.68rem; color: var(--muted); font-family: var(--font-mono); margin-top: 6px; padding: 0 4px; display: flex; align-items: center; gap: 8px; }

/* markdown */
.mf-md > *:first-child { margin-top: 0; }
.mf-md > *:last-child { margin-bottom: 0; }
.mf-md h1, .mf-md h2, .mf-md h3, .mf-md h4 { font-family: var(--font-display); margin: 16px 0 8px; line-height: 1.25; }
.mf-md h1 { font-size: 1.2rem; } .mf-md h2 { font-size: 1.1rem; } .mf-md h3 { font-size: 1rem; }
.mf-md p { margin: 0 0 10px; }
.mf-md ul, .mf-md ol { margin: 0 0 10px; padding-left: 22px; }
.mf-md li { margin-bottom: 5px; }
.mf-md strong { font-weight: 700; color: var(--ink); }
.mf-md a { color: var(--accent); font-weight: 600; text-decoration: underline; }
.mf-md code { font-family: var(--font-mono); font-size: 0.86em; background: var(--well); padding: 2px 6px; border-radius: 6px; }
.mf-md pre { background: var(--well); padding: 14px 16px; border-radius: 12px; overflow-x: auto; margin: 0 0 10px; }
.mf-md pre code { background: none; padding: 0; }
.mf-md blockquote { border-left: 3px solid var(--accent-line); padding-left: 14px; margin: 0 0 10px; color: var(--muted); }

/* rating */
.mf-rating-wrap { margin-top: 8px; padding: 0 4px; }
.mf-rating { display: flex; align-items: center; gap: 3px; }
.mf-rating .star { background: none; border: none; padding: 2px; font-size: 1.05rem; line-height: 1; color: var(--line); transition: color .2s, transform .2s; }
.mf-rating .star:hover { transform: scale(1.15); }
.mf-rating .star.filled { color: var(--accent); }
.mf-rating-saved { margin-left: 8px; font-size: 0.72rem; color: var(--ok); font-family: var(--font-mono); }
.mf-rating-reason { display: none; width: 100%; max-width: 420px; margin-top: 10px; padding: 10px 13px; border-radius: 11px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-family: var(--font-body); font-size: 0.88rem; resize: vertical; }
.mf-rating-reason:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

/* copy message */
.mf-copy-btn { display: inline-flex; align-items: center; justify-content: center; background: none; border: none; padding: 1px; color: var(--muted); cursor: pointer; transition: color .2s, transform .2s; }
.mf-copy-btn svg { width: 14px; height: 14px; display: block; }
.mf-copy-btn:hover { color: var(--accent); transform: scale(1.12); }
.mf-copy-btn.copied { color: var(--ok); }

/* typing indicator */
.mf-chat-typing { align-self: flex-start; display: flex; gap: 5px; padding: 14px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; border-bottom-left-radius: 5px; }
.mf-chat-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: mfTyping 1.2s infinite ease-in-out; }
.mf-chat-typing span:nth-child(2) { animation-delay: .15s; }
.mf-chat-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes mfTyping { 0%, 60%, 100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-5px); opacity: 1; } }
/* Text-Indikator statt Punkte (z. B. während der Bildanalyse) */
.mf-chat-typing-label { font-family: var(--font-body); font-size: 0.92rem; font-style: italic; color: var(--muted); gap: 8px; animation: mfPulse 1.4s ease-in-out infinite; }
@keyframes mfPulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
/* Eigenes Tooltip (an <body>, position:fixed) für [data-tip] */
.mf-tip { position: fixed; z-index: 1000; max-width: 300px; padding: 10px 13px; display: none;
  background: #1d1a14; color: #f3ece0; border: 1px solid rgba(190,156,103,0.35); border-radius: 10px;
  font-family: var(--font-body); font-size: 0.82rem; line-height: 1.5; text-align: left; white-space: normal;
  box-shadow: var(--shadow-pop); pointer-events: none; opacity: 0; transform: translateY(4px);
  transition: opacity .16s var(--ease), transform .16s var(--ease); }
.mf-tip.below { transform: translateY(-4px); }
.mf-tip.visible { opacity: 1; transform: none; }
[data-tip] { cursor: help; }

/* empty state */
.mf-chat-empty { margin: auto; text-align: center; max-width: 420px; padding: 30px 20px; }
.mf-chat-empty .icon { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; margin: 0 auto 18px; background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent); }
.mf-chat-empty .icon svg { width: 30px; height: 30px; }
.mf-chat-empty h3 { font-size: 1.2rem; margin-bottom: 8px; }
.mf-chat-empty p { color: var(--muted); font-size: 0.92rem; margin: 0 auto; }

/* input */
.mf-chat-input { flex: none; display: flex; align-items: flex-end; gap: 12px; padding: 16px 20px; border-top: 1px solid var(--line-soft); background: var(--bg-2); }
.mf-chat-input textarea { flex: 1; resize: none; max-height: 140px; padding: 13px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-family: var(--font-body); font-size: 0.96rem; line-height: 1.5; }
.mf-chat-input textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); background: var(--bg-2); }
.mf-chat-send { width: 50px; height: 50px; flex: none; border-radius: 13px; border: none; background: var(--accent-2); color: #1a1404; display: grid; place-items: center; transition: transform .25s, background .25s, opacity .25s; }
.mf-chat-send:hover { transform: translateY(-2px); background: color-mix(in srgb, var(--accent-2) 90%, #fff); }
.mf-chat-send:disabled { opacity: .5; cursor: default; transform: none; }
.mf-chat-send svg { width: 20px; height: 20px; }
.mf-chat-attach { width: 50px; height: 50px; flex: none; border-radius: 13px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); display: grid; place-items: center; cursor: pointer; transition: transform .25s, color .25s, border-color .25s, background .25s; }
.mf-chat-attach:hover { transform: translateY(-2px); color: var(--accent); border-color: var(--accent); background: var(--bg-2); }
.mf-chat-attach svg { width: 21px; height: 21px; }
.mf-chat-attachment { display: flex; align-items: center; gap: 12px; margin: 0 20px -4px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-2); }
.mf-chat-attachment[hidden] { display: none; }
.mf-chat-attachment img { width: 46px; height: 46px; object-fit: cover; border-radius: 9px; flex: none; }
.mf-chat-attachment .name { flex: 1; min-width: 0; font-size: 0.88rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mf-chat-attachment button { flex: none; width: 30px; height: 30px; border-radius: 8px; border: none; background: transparent; color: var(--muted); font-size: 1.3rem; line-height: 1; cursor: pointer; transition: color .2s, background .2s; }
.mf-chat-attachment button:hover { color: #C0392B; background: rgba(168,48,48,.08); }
.mf-chat-attachment .doc-icon { width: 46px; height: 46px; flex: none; border-radius: 9px; display: grid; place-items: center; background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent); }
.mf-chat-attachment .doc-icon svg { width: 22px; height: 22px; }
.mf-chat-attachment .doc-icon[hidden], .mf-chat-attachment img[hidden] { display: none; }

/* Voice Note: Mikro-Button + Aufnahme-Leiste */
.mf-chat-mic { width: 50px; height: 50px; flex: none; border-radius: 13px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); display: grid; place-items: center; cursor: pointer; touch-action: none; -webkit-user-select: none; user-select: none; transition: transform .25s, color .25s, border-color .25s, background .25s; }
.mf-chat-mic:hover { transform: translateY(-2px); color: var(--accent); border-color: var(--accent); background: var(--bg-2); }
.mf-chat-mic svg { width: 21px; height: 21px; pointer-events: none; }
.mf-chat-mic.recording { color: #fff; background: #C0392B; border-color: #C0392B; transform: scale(1.08); animation: mfRecPulse 1.2s ease-in-out infinite; }
@keyframes mfRecPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(192,57,43,.35); } 50% { box-shadow: 0 0 0 9px rgba(192,57,43,0); } }
.mf-chat-recording { display: flex; align-items: center; gap: 10px; flex: none; margin: 0 20px 10px; padding: 10px 14px; border: 1px solid rgba(192,57,43,.35); border-radius: 14px; background: rgba(192,57,43,.06); }
.mf-chat-recording[hidden] { display: none; }
.mf-chat-recording .rec-dot { width: 10px; height: 10px; border-radius: 50%; background: #C0392B; flex: none; animation: mfPulse 1s ease-in-out infinite; }
.mf-chat-recording .rec-time { font-family: var(--font-mono, monospace); font-size: 0.9rem; color: var(--ink); flex: none; }
.mf-chat-recording .rec-hint { font-size: 0.85rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mf-chat-count { padding: 4px 20px 8px; text-align: right; font-family: var(--font-mono); font-size: 0.7rem; color: var(--muted); }
.mf-chat-count.warn { color: #C0392B; }
.mf-chat-count[hidden] { display: none; }
.mf-message .mf-bubble-image { display: block; max-width: 240px; max-height: 240px; width: auto; height: auto; border-radius: 12px; margin-bottom: 8px; }
.mf-message .mf-bubble-image:last-child { margin-bottom: 0; }
/* PDF-Anhang-Chip in der User-Blase */
.mf-message .mf-bubble-file { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; padding: 8px 11px; border-radius: 10px; background: rgba(0,0,0,.14); font-size: 0.86rem; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mf-message .mf-bubble-file svg { width: 17px; height: 17px; flex: none; }
.mf-message .mf-bubble-file:last-child { margin-bottom: 0; }
#mf-chat { position: relative; }
#mf-chat.mf-chat-dragover::after { content: "Bild hier ablegen"; position: absolute; inset: 6px; display: grid; place-items: center; border: 2px dashed var(--accent); border-radius: 14px; background: var(--accent-soft); color: var(--accent); font-weight: 600; font-size: 0.95rem; pointer-events: none; z-index: 5; }

/* mobile session selector */
.mf-chat-sessions-mobile { margin-bottom: 16px; }
@media (min-width: 921px) { .mf-chat-sessions-mobile { display: none; } }
@media (max-width: 920px) {
  .mf-chat-sessions { display: none; }
  /* 100dvh statt 100vh: auf Mobile zählt 100vh die Browser-UI-Leisten mit,
     wodurch der Composer unter die Faltkante rutscht (D-05). dvh = sichtbare
     Höhe, so bleibt das Eingabefeld am unteren Rand erreichbar. */
  .mf-chat-layout { grid-template-columns: 1fr; height: calc(100dvh - 200px); min-height: 360px; }
  /* Kleiner horizontaler Überlauf (u. a. Marquee) auf Mobile wegclippen.
     overflow-x: clip statt hidden, damit position: sticky weiter funktioniert (D-15). */
  body { overflow-x: clip; }
}

/* Kompakter Chat-Composer auf schmalen Screens: seit dem Mikro-Button sind es
   3 Buttons in der Eingabezeile – mit 50px + 12px Gaps bleibt bei 390px nur
   noch ~65px fürs Textfeld. Kleinere Buttons/Abstände geben dem Textfeld
   wieder nutzbare Breite; 16px Schrift verhindert zudem den iOS-Auto-Zoom
   beim Fokussieren des Feldes. */
@media (max-width: 640px) {
  .mf-chat-input { padding: 10px 12px; gap: 8px; }
  .mf-chat-attach, .mf-chat-mic, .mf-chat-send { width: 42px; height: 42px; border-radius: 11px; }
  .mf-chat-attach svg, .mf-chat-mic svg, .mf-chat-send svg { width: 18px; height: 18px; }
  .mf-chat-input textarea { padding: 10px 12px; font-size: 16px; border-radius: 12px; }
  .mf-chat-messages { padding: 16px 12px; gap: 14px; }
  .mf-chat-attachment { margin: 0 12px -2px; }
  .mf-chat-recording { margin: 0 12px 8px; }
  .mf-chat-recording .rec-hint { font-size: 0.8rem; }
  .chat-head .ch-ico { width: 42px; height: 42px; border-radius: 12px; }
  .chat-head .ch-ico svg { width: 21px; height: 21px; }
}

/* ============================================================
   AUTH (Login / Onboarding) — aus dem Designsystem abgeleitet
   ============================================================ */
.auth-shell { min-height: 100dvh; height: 100dvh; position: relative; z-index: 1; display: grid; overflow: hidden; }
.auth-split { grid-template-columns: 1.05fr 1fr; }
@media (max-width: 880px) { .auth-split { grid-template-columns: 1fr; } }

/* linke Markenseite (dunkel, premium) */
.auth-art {
  position: relative; overflow: hidden; padding: clamp(36px, 5vw, 72px);
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  background: linear-gradient(150deg, #1a1813 0%, #0E0D0A 72%); color: #F3F1EA;
}
.auth-art::before {
  content: ""; position: absolute; inset: -10%;
  background: radial-gradient(46% 38% at 30% 24%, rgba(190,156,103,0.22), transparent 60%),
              radial-gradient(40% 34% at 82% 86%, rgba(190,156,103,0.14), transparent 60%);
  pointer-events: none;
}
@media (max-width: 880px) { .auth-art { display: none; } }
.auth-art .aa-top, .auth-art .aa-bottom { position: relative; z-index: 1; }
.auth-art .aa-top img { height: 34px; width: auto; }
.auth-art .aa-claim { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.04em; font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1.05; max-width: 16ch; }
.auth-art .aa-claim .accent-text { color: var(--gold); }
.auth-art .aa-sub { color: #B8AD97; margin-top: 18px; font-size: clamp(1rem, 1.3vw, 1.1rem); line-height: 1.55; max-width: 46ch; }
.auth-art .aa-proof { display: flex; align-items: center; gap: 14px; }
.auth-art .aa-proof .av-stack img { width: 46px; height: 46px; }
.auth-form-wrap { overflow-y: auto; }

/* rechte Formularseite */
.auth-form-wrap { display: grid; place-items: center; padding: clamp(28px, 5vw, 60px); background: var(--bg); }
.auth-card { width: 100%; max-width: 420px; }
.auth-card .ac-logo { height: 36px; margin-bottom: 26px; }
.auth-card h1 { font-size: clamp(1.7rem, 3vw, 2.1rem); letter-spacing: -0.03em; }
.auth-card .ac-lead { color: var(--muted); margin: 10px 0 26px; font-size: 0.98rem; }
.auth-card .ac-foot { color: var(--muted); font-size: 0.82rem; margin-top: 26px; line-height: 1.6; }
.auth-card .ac-foot a { color: var(--accent); font-weight: 600; }

/* checkbox */
.check-row { display: flex; align-items: center; gap: 9px; margin: 4px 0 8px; }
.check-row input { width: 17px; height: 17px; accent-color: var(--accent); }
.check-row label { font-size: 0.88rem; color: var(--muted); }

/* zentriertes Onboarding */
.auth-center { place-items: center; padding: clamp(28px, 5vw, 60px); }
.onb-card { width: 100%; max-width: 620px; }
.onb-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.onb-head img { height: 40px; }

/* Auth-Logo Theme-Umschaltung (analog zu .side-logo) */
.ac-logo.logo-light { display: none; }
html[data-theme="dark"] .ac-logo.logo-dark { display: none; }
html[data-theme="dark"] .ac-logo.logo-light { display: block; }

/* Destruktiver Button + Gefahrenzone */
.btn-danger { background: rgba(168,48,48,.10); border: 1px solid rgba(168,48,48,.35); color: #C0392B; }
.btn-danger:hover { background: rgba(168,48,48,.16); border-color: rgba(168,48,48,.55); transform: translateY(-2px); }
html[data-theme="dark"] .btn-danger { color: #ff8a80; }
.danger-zone { border-color: rgba(168,48,48,.28); }

/* ============================================================
   ADMIN · JOURNEY-DETAIL (datendichte Analyse)
   ============================================================ */
.text-muted { color: var(--muted); }

.mf-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 100px; font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 700; background: var(--surface); border: 1px solid var(--line); color: var(--muted); }
.mf-pill-ok { background: var(--ok-soft); border-color: var(--ok-line); color: var(--ok); }
.mf-pill-open { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent-ink); }
html[data-theme="dark"] .mf-pill-open { color: var(--accent-2); }
.mf-pill-muted { background: var(--surface); border-color: var(--line); color: var(--muted); }

.mf-jbreak-item { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-top: 1px solid var(--line-soft); font-size: 0.88rem; }
.mf-jbreak-item:first-of-type { border-top: none; }
.mf-jbreak-item .k { color: var(--muted); }
.mf-jbreak-item .v { font-weight: 600; color: var(--ink); font-family: var(--font-mono); text-align: right; }

.mf-jstep-label { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.05rem; margin-bottom: 16px; }
.mf-jstep-label .badge-step { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--grad-accent); color: #1a1404; font-family: var(--font-mono); font-weight: 700; font-size: 0.9rem; flex: none; }

.mf-jadmin-agent { border: 1px solid var(--line); border-radius: 14px; padding: 0; margin-bottom: 12px; overflow: hidden; background: var(--bg-2); }
.mf-jadmin-agent > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 18px; background: var(--surface); }
.mf-jadmin-agent > summary::-webkit-details-marker { display: none; }
.mf-jadmin-agent > summary svg { width: 16px; height: 16px; color: var(--accent); vertical-align: -2px; margin-right: 4px; }
.mf-jagent-score { font-family: var(--font-display); font-weight: 800; color: var(--accent); }
.mf-jadmin-agent[open] > summary { border-bottom: 1px solid var(--line-soft); }

.mf-formula { font-family: var(--font-mono); font-size: 0.82rem; color: var(--ink-2); background: var(--well); border-radius: 10px; padding: 12px 14px; margin: 16px 18px 0; line-height: 1.6; }
.mf-formula strong { color: var(--accent); }

.mf-jgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; padding: 16px 18px; }
.mf-jbox { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: var(--bg-2); }
.mf-jbox .t { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; font-weight: 700; }

.mf-crit { list-style: none; padding: 0; margin: 10px 0 16px; }
.mf-crit li { position: relative; padding: 5px 0 5px 26px; font-size: 0.88rem; color: var(--ink-2); }
.mf-crit li::before { content: ""; position: absolute; left: 4px; top: 9px; width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid var(--line); }
.mf-crit li.is-done { color: var(--ink); }
.mf-crit li.is-done::before { background: var(--ok); border-color: var(--ok); }
.mf-crit li.is-open::before { background: transparent; }
.mf-crit { padding: 0 18px; }

/* Passwort-Reset-Karten + zentrierte Auth-Seiten dürfen wachsen/scrollen */
.auth-shell.auth-center { height: auto; min-height: 100dvh; overflow: visible; }
.auth-pw-card { width: 100%; max-width: 460px; }
.auth-pw-card .ac-logo { height: 34px; margin-bottom: 22px; }


/* ============================================================
   ONBOARDING — Gespräch direkt auf dem Hintergrund (keine Boxen)
   Der Chat ist das zentrale Element; die Kontextfelder bleiben
   hintergründig. Bewusst ohne Blasen/Karten/Überschriften.
   ============================================================ */
.onb-body { background: var(--bg); }
.onb-stage { position: relative; min-height: 100dvh; overflow: hidden; background: var(--bg); }

/* Atmosphärischer Hintergrund: weiche, langsam driftende Farbverläufe + Korn. */
.onb-aura {
  position: absolute; inset: -25%; z-index: 0; pointer-events: none; filter: blur(50px);
  background:
    radial-gradient(38% 48% at 24% 26%, color-mix(in srgb, var(--accent-2) 42%, transparent), transparent 70%),
    radial-gradient(46% 56% at 82% 72%, color-mix(in srgb, var(--accent) 32%, transparent), transparent 72%),
    radial-gradient(60% 60% at 50% 114%, color-mix(in srgb, var(--accent-2) 24%, transparent), transparent 72%);
  animation: onbDrift 24s ease-in-out infinite;
}
@keyframes onbDrift { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-2.5%,2.5%) scale(1.06); } }
.onb-stage::after {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(72% 64% at 50% 40%, transparent 42%, color-mix(in srgb, var(--bg) 78%, transparent) 100%);
}
.onb-grain {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .045; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (prefers-reduced-motion: reduce) { .onb-aura { animation: none; } }

/* Dezente Steuerung oben rechts (keine Überschrift, keine Brand-Leiste). */
.onb-utils { position: fixed; top: clamp(14px, 2.4vh, 26px); right: clamp(16px, 3vw, 34px); z-index: 5; display: flex; align-items: center; gap: 4px; }
.onb-util { border: none; background: transparent; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 10px; font-family: var(--font-body); font-size: .84rem; cursor: pointer; transition: color .2s, background .2s; }
.onb-util:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 7%, transparent); }
.onb-util svg { width: 18px; height: 18px; }

/* Zentrale Chat-Spalte, frei zentriert. */
.onb-center { position: relative; z-index: 2; width: min(720px, 100%); height: 100dvh; margin: 0 auto; display: flex; flex-direction: column; padding: clamp(64px, 10vh, 120px) 12px clamp(22px, 4vh, 44px); }
.onb-chat { display: flex; flex-direction: column; flex: 1; min-height: 0; animation: onbRise 1s cubic-bezier(.2,.7,.2,1) both; }
@keyframes onbRise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* Nachrichten: reiner Text auf dem Hintergrund – keine Blasen, keine Boxen. */
.onb-chat .onb-messages { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 6px 10px 6px 4px; display: flex; flex-direction: column; gap: 26px; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--ink) 16%, transparent) transparent; }
.onb-chat .onb-messages::-webkit-scrollbar { width: 8px; }
.onb-chat .onb-messages::-webkit-scrollbar-track { background: transparent; }
.onb-chat .onb-messages::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--ink) 14%, transparent); border-radius: 999px; border: 2px solid transparent; background-clip: padding-box; }
.onb-chat .onb-messages::-webkit-scrollbar-thumb:hover { background: color-mix(in srgb, var(--ink) 26%, transparent); background-clip: padding-box; }
.onb-chat .mf-message { max-width: 100%; animation: onbMsgIn .55s ease both; }
@keyframes onbMsgIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.onb-chat .mf-message.assistant { align-self: stretch; color: var(--ink); }
.onb-chat .mf-message.user { align-self: flex-end; max-width: 82%; color: var(--ink); }
.onb-chat .mf-bubble { background: transparent !important; border: 0 !important; padding: 0 !important; margin: 0 !important; box-shadow: none !important; border-radius: 0 !important; max-width: none; color: inherit; }
.onb-chat .mf-message.assistant .mf-bubble { font-size: clamp(1.04rem, 1.6vw, 1.22rem); line-height: 1.72; font-weight: 400; }
.onb-chat .mf-message.user .mf-bubble { text-align: right; font-size: 1.02rem; line-height: 1.6; font-weight: 500; color: #5A3D0A; }
[data-theme="dark"] .onb-chat .mf-message.user .mf-bubble { color: var(--accent); }
.onb-chat .mf-message.assistant .mf-bubble > :first-child { margin-top: 0; }
.onb-chat .mf-message.assistant .mf-bubble > :last-child { margin-bottom: 0; }
.onb-chat .mf-msg-meta { display: none; }
.onb-chat .mf-bubble-error { color: #c0392b; font-size: .98rem; }
[data-theme="dark"] .onb-chat .mf-bubble-error { color: #e88; }

/* Tipp-Indikator ohne Box. */
.onb-chat .mf-chat-typing { align-self: flex-start; background: transparent; border: 0; padding: 8px 2px; }

/* Eingabe: schwebende Zeile statt Box. */
/* Eingabezeile fix am unteren Rand: flex:none, damit der Verlauf niemals darunter
   reicht und ein einzelnes Leerzeichen (Auto-Resize) das Layout nicht verschiebt (1.3). */
.onb-composer { flex: none; display: flex; align-items: flex-end; gap: 10px; padding: 14px 4px 0; margin-top: 8px; }
.onb-composer textarea { flex: 1; resize: none; max-height: 168px; padding: 12px 2px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); font-family: var(--font-body); font-size: 1.06rem; line-height: 1.5; transition: border-color .25s; }
.onb-composer textarea:focus { outline: none; border-bottom-color: var(--accent); }
.onb-composer textarea::placeholder { color: var(--muted); }
.onb-send { width: 46px; height: 46px; flex: none; border: 0; background: transparent; color: var(--accent-ink); display: grid; place-items: center; border-radius: 50%; cursor: pointer; transition: transform .25s, background .25s, opacity .2s; }
.onb-send:hover { background: var(--accent-soft); transform: translateY(-1px); }
.onb-send:disabled { opacity: .4; cursor: default; transform: none; background: transparent; }
.onb-send svg { width: 22px; height: 22px; }

/* Hintergründiges Kontext-Panel (display:contents am Form-Wrapper). */
.onb-context { display: contents; }
.onb-ghost { position: fixed; top: 50%; right: clamp(18px, 3vw, 46px); transform: translateY(-50%); width: 232px; z-index: 2; display: flex; flex-direction: column; gap: 24px; opacity: .3; transition: opacity .45s; }
.onb-ghost:hover, .onb-ghost:focus-within { opacity: 1; }
#mf-onb-context.is-ready .onb-ghost { opacity: .58; }
.onb-ghost-field label { display: block; font-family: var(--font-mono); font-size: .62rem; text-transform: uppercase; letter-spacing: .18em; color: var(--muted); margin-bottom: 7px; }
.onb-ghost-input { width: 100%; resize: none; border: 0; border-left: 2px solid transparent; background: transparent; color: var(--ink); font-family: var(--font-body); font-size: .82rem; line-height: 1.55; padding: 0; transition: border-color .3s, padding-left .3s; }
.onb-ghost-input:focus { outline: none; border-left-color: var(--accent); padding-left: 10px; }
.onb-ghost-input::placeholder { color: var(--muted); font-style: italic; }
.onb-field-pulse { animation: onbGhostPulse 1.6s ease-out; }
@keyframes onbGhostPulse { 0% { border-left-color: var(--accent); padding-left: 10px; } 100% { border-left-color: transparent; padding-left: 0; } }

/* Abschluss-Button: erscheint dezent, sobald beide Felder gefüllt sind. */
.onb-finish { position: fixed; bottom: clamp(20px, 5vh, 40px); right: clamp(18px, 3vw, 46px); z-index: 4; display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border: 0; border-radius: 999px; background: var(--accent-2); color: #1a1404; font-family: var(--font-display); font-weight: 600; font-size: .92rem; cursor: pointer; opacity: 0; transform: translateY(14px); pointer-events: none; box-shadow: 0 16px 40px -18px var(--accent); transition: opacity .45s, transform .45s, box-shadow .25s; }
#mf-onb-context.is-ready .onb-finish { opacity: 1; transform: none; pointer-events: auto; }
.onb-finish:hover { transform: translateY(-2px); box-shadow: 0 24px 54px -18px var(--accent); }
.onb-finish svg { width: 17px; height: 17px; }

.onb-flash { position: fixed; left: 50%; bottom: clamp(20px, 5vh, 40px); transform: translateX(-50%); z-index: 6; margin: 0; max-width: min(560px, 92vw); }

/* Mobil: Kontextfelder + Abschluss rücken unter den Chat (im DOM dahinter). */
@media (max-width: 1080px) {
  .onb-center { height: auto; min-height: auto; padding-bottom: 18px; }
  .onb-chat { min-height: 78dvh; }
  /* Mobil scrollt die SEITE, nicht die Nachrichtenliste. Ohne dieses Override
     bleibt sie ein (kaum scrollbarer) Scroll-Container mit overscroll-behavior:
     contain und schluckt jede Touch-Geste — die Seite ließe sich nicht scrollen. */
  .onb-chat .onb-messages { overflow-y: visible; overscroll-behavior: auto; }
  .onb-ghost { position: static; transform: none; width: 100%; max-width: 720px; margin: 4px auto 0; padding: 0 16px; opacity: .6; flex-direction: row; gap: 22px; }
  #mf-onb-context.is-ready .onb-ghost { opacity: .8; }
  .onb-ghost-field { flex: 1; }
  .onb-finish { position: static; margin: 20px auto clamp(28px, 6vh, 44px); opacity: 1; transform: none; pointer-events: auto; }
  #mf-onb-context:not(.is-ready) .onb-finish { display: none; }
}
@media (max-width: 540px) {
  .onb-ghost { flex-direction: column; gap: 18px; }
}

/* Profil: Onboarding neu starten – dezente Sekundär-Aktion unter dem Kontext-Formular. */
.onb-restart-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line-soft); }
.onb-restart-text { display: flex; flex-direction: column; gap: 3px; max-width: 460px; }
.onb-restart-text strong { font-family: var(--font-display); font-size: .95rem; }
.onb-restart-text span { color: var(--muted); font-size: .84rem; line-height: 1.5; }
.onb-restart-row form { flex: none; }
