/* ============================================================
   PRADS V2 — App-CSS (globale Tokens + Komponenten)
   Single Source of Truth. Wird von base_v2.html geladen.
   Nie page-spezifisch überschreiben.
   ============================================================ */

:root {
  /* ── Hintergründe ─────────────────────────────────────── */
  --bg:            #FFFFFF;
  --canvas:        #F2F1EC;
  --surface:       #FFFFFF;
  --surface-soft:  #F8F8F4;

  /* ── Ränder ───────────────────────────────────────────── */
  --border:        #E8E6DE;
  --border-soft:   #F0EEE7;

  /* ── Texte ────────────────────────────────────────────── */
  --text:          #1A1A14;
  --text-soft:     #5E5E52;
  --text-mute:     #A6A498;

  /* ── Hellgrün — NUR für Action-Buttons & CTAs ─────────── */
  --lime:          #B0DC5A;
  --lime-edge:     #5AA61A;
  --lime-soft:     #E4F5C8;
  --lime-faint:    #F2FAE6;
  --lime-bg-hover: #DDF0B8;

  /* ── Cappuccino ───────────────────────────────────────── */
  --capp:          #C4A57B;
  --capp-edge:     #A07830;
  --capp-soft:     #EDE0CC;
  --capp-faint:    #F6EFDF;

  /* ── CTA ──────────────────────────────────────────────── */
  --cta-bg:        #B0DC5A;
  --cta-bg-hover:  #9ED048;
  --cta-text:      #1A1A14;

  /* ── Status ───────────────────────────────────────────── */
  --ok:            #3AAF1E;
  --ok-soft:       #DDF0D0;
  --warn:          #D9A24A;
  --warn-soft:     #F7E9CC;
  --danger:        #C75A4B;
  --danger-soft:   #F4DAD4;

  /* ── Radien ───────────────────────────────────────────── */
  --radius:        18px;
  --radius-sm:     12px;
  --radius-xs:     8px;
  --pill:          999px;

  /* ── Abstände (Standard) ──────────────────────────────── */
  --heading-sub-gap: 10px;   /* Standard-Abstand Überschrift → Unterschrift */

  /* ── Typografie-Skala (Quelle: Plan-Reiter) ───────────── */
  --fs-title:   28px;    /* Seiten-Überschrift (H1) */
  --fs-value:   22px;    /* große Kennzahl */
  --fs-section: 15px;    /* Abschnitts-Titel */
  --fs-btn:     15.5px;  /* Action-Buttons — Mindestgröße */
  --fs-body:    14.5px;  /* Fließtext / Untertitel */
  --fs-meta:    13px;    /* kleine Zusatzinfo / Hinweise */
  --fs-label:   12px;    /* ALL-CAPS Labels */

  /* ── Icons ────────────────────────────────────────────── */
  /* Stift-Edit-Icon: Standardgröße + feste Ausrichtung (Spitze unten-links, Ende oben-rechts) */
  --icon-edit-size: 15px;
  --icon-edit-svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 3a2.828 2.828 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5L17 3z'/%3E%3Cpath d='M15 5l4 4'/%3E%3C/svg%3E");

  /* ── Prad-Sprechblase (Standard für ALLE Bubbles) ─────── */
  /* Max. so breit wie der rechte Seiten-Rand (Inhaltskachel → Bildschirmrand = --page-pad-x = 15%) */
  --bubble-width:      15vw;   /* Standard-Breite = rechter Gap */
  --bubble-radius:     16px;
  --bubble-tail:       15px;   /* Zipfel-Kantenlänge */
  --bubble-tail-out:   8px;    /* wie weit der Zipfel rausragt (Zipfellänge) */
  --bubble-tail-right: 30px;   /* Abstand des Zipfels von der rechten Kante */

  /* ── Schatten ─────────────────────────────────────────── */
  --shadow-1: 0 1px 2px rgba(26,26,20,0.04), 0 1px 3px rgba(26,26,20,0.03);
  --shadow-2: 0 8px 24px -8px rgba(26,26,20,0.10), 0 2px 6px rgba(26,26,20,0.05);
  --shadow-3: 0 24px 60px -16px rgba(90,166,26,0.18), 0 4px 12px rgba(26,26,20,0.06);

  /* ── Schrift ──────────────────────────────────────────── */
  --font: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', system-ui, sans-serif;

  /* ── Layout: Content-Breite ──────────────────────────── */
  /* Content = 70 % des Tabs; Padding je 15 % links + rechts  */
  --page-pad-x: 15%;

  /* ── Prad Safe-Zone ───────────────────────────────────── */
  --prad-safe-bottom: 180px;
  --prad-safe-right:  180px;
}

/* ── Stift-Edit-Icon (global) — Spitze unten-links, Ende oben-rechts ───
   Verwendung: <i class="edit-pencil"></i>. Erbt die Farbe (currentColor). */
.edit-pencil {
  display: inline-block; flex-shrink: 0;
  width: var(--icon-edit-size); height: var(--icon-edit-size);
  background-color: currentColor;
  -webkit-mask: var(--icon-edit-svg) center / contain no-repeat;
          mask: var(--icon-edit-svg) center / contain no-repeat;
  vertical-align: -0.15em;
}

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.005em;
  overflow: hidden;
}

/* ============================================================
   APP-SHELL — grid mit Sidebar + Content + optionalem Drawer
   ============================================================ */
.v2-shell {
  display: grid;
  grid-template-columns: 74px 1fr 0px;
  grid-template-rows: 100vh;
  height: 100vh;
  overflow: hidden;
  transition: grid-template-columns 280ms cubic-bezier(0.4,0,0.2,1);
}
.v2-shell:has(.v2-side:hover):not(.drawer-open) {
  grid-template-columns: 248px 1fr 0px;
}
.v2-shell.drawer-open {
  grid-template-columns: 74px 1fr var(--drawer-w, 380px);
}
.v2-shell.drawer-open:has(.v2-side:hover) {
  grid-template-columns: 248px 1fr var(--drawer-w, 380px);
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.v2-side {
  background: var(--surface);
  border-right: 1px solid var(--border-soft);
  display: flex; flex-direction: column;
  overflow: hidden; white-space: nowrap;
  padding: 6px 4px 10px;
  transition: all 240ms cubic-bezier(0.4,0,0.2,1);
  z-index: 20;
}

/* Logo */
.v2-logo {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 10px 10px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--border-soft);
}
.v2-logo-mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--capp);   /* Cappuccino-Braun statt Grün — passt zur Kaffeetasse */
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; flex-shrink: 0;
  line-height: 1;
}
.v2-logo-name {
  font-weight: 700; font-size: 13.5px; letter-spacing: -0.015em;
  opacity: 0; transition: opacity 200ms ease;
  transition-delay: 0ms;
}
.v2-shell:has(.v2-side:hover) .v2-logo-name { opacity: 1; transition-delay: 80ms; }

/* Reset-Button (Marke zurücksetzen → frischer neuer Nutzer) — neben „Prads" */
.dev-reset-btn {
  margin-left: auto; flex-shrink: 0;
  width: 26px; height: 26px; border-radius: 999px;
  border: none; background: var(--danger-soft); color: var(--danger);
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  padding: 0; opacity: 0; transition: opacity 200ms ease, background .15s, color .15s, transform .15s;
}
.v2-shell:has(.v2-side:hover) .dev-reset-btn { opacity: 1; transition-delay: 80ms; }
.dev-reset-btn:hover { background: var(--danger); color: #fff; transform: translateY(-1px); }
.v2-shell:not(:has(.v2-side:hover)) .dev-reset-btn { width: 0; overflow: hidden; margin: 0; }

/* Nav Groups */
.v2-nav-group { margin: 4px 0; }
.v2-nav-label {
  font-size: 10px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-mute);
  padding: 10px 16px 4px;
  opacity: 0; height: 0; overflow: hidden;
  transition: opacity 160ms ease, height 200ms ease;
}
.v2-shell:has(.v2-side:hover) .v2-nav-label {
  opacity: 1; height: 26px; transition-delay: 60ms;
}

/* Nav Links */
.v2-nav-link {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 12px; border-radius: 9px;
  cursor: pointer; color: var(--text-soft);
  font-size: 14px; font-weight: 500;
  text-decoration: none;
  transition: all 0.12s ease;
  margin: 1px 6px; position: relative;
}
.v2-nav-link:hover { background: var(--surface-soft); color: var(--text); }
.v2-nav-link.active {
  background: var(--lime-soft); color: var(--text); font-weight: 600;
}
.v2-nav-link.active .v2-ico { color: var(--lime-edge); }
.v2-ico {
  width: 20px; height: 20px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
}
.v2-ico svg { width: 18px; height: 18px; }
.v2-nav-text {
  opacity: 0; width: 0; overflow: hidden; white-space: nowrap;
  transition: opacity 180ms ease, width 200ms ease;
}
.v2-shell:has(.v2-side:hover) .v2-nav-text { opacity: 1; width: auto; transition-delay: 70ms; }

/* Collapsed: center icons */
.v2-shell:not(:has(.v2-side:hover)) .v2-nav-link { justify-content: center; padding: 8px; gap: 0; }
.v2-shell:not(:has(.v2-side:hover)) .v2-logo { justify-content: center; padding: 10px 8px; gap: 0; }
.v2-shell:not(:has(.v2-side:hover)) .v2-logo-name { width: 0; overflow: hidden; }
.v2-shell:not(:has(.v2-side:hover)) .v2-nav-label { height: 0; opacity: 0; }
.v2-shell:not(:has(.v2-side:hover)) .v2-user-row { justify-content: center; padding: 10px 8px; gap: 0; }
.v2-shell:not(:has(.v2-side:hover)) .v2-user-info { width: 0; overflow: hidden; }

/* Tooltip (collapsed) */
.v2-nav-link::after {
  content: attr(data-tip);
  position: absolute; left: calc(100% + 14px); top: 50%; transform: translateY(-50%);
  background: var(--text); color: white;
  padding: 5px 10px; border-radius: 7px;
  font-size: 12px; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity 120ms ease;
  box-shadow: var(--shadow-2); z-index: 100;
}
.v2-shell:not(:has(.v2-side:hover)) .v2-nav-link:hover::after { opacity: 1; }

/* Trennstrich zwischen Beratung und Werbung — nur eingeklappt */
.v2-side-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 14px;
  transition: opacity 0.2s;
}
.v2-shell:has(.v2-side:hover) .v2-side-divider { opacity: 0; }

/* Bottom-Bereich (Einstellungen + User) — mit margin-top:auto nach unten gedrückt */
.v2-side-bottom {
  margin-top: auto;
  display: flex; flex-direction: column;
}

/* User row at bottom */
.v2-user-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; margin: auto 6px 0;
  border-top: 1px solid var(--border-soft);
  cursor: pointer;
}
.v2-user-row:hover { background: var(--surface-soft); border-radius: 9px; }
.v2-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--capp-soft); color: var(--capp-edge);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; flex-shrink: 0;
}
.v2-user-info { opacity: 0; transition: opacity 180ms ease; }
.v2-shell:has(.v2-side:hover) .v2-user-info { opacity: 1; transition-delay: 70ms; }
.v2-user-name { font-size: 12.5px; font-weight: 600; line-height: 1.1; }
.v2-user-plan { font-size: 10.5px; color: var(--text-soft); margin-top: 2px; }

/* Chevron im Brand-Switcher (erscheint nur wenn Sidebar aufgeklappt) */
.v2-brand-switcher-chevron {
  margin-left: auto; flex-shrink: 0; opacity: 0;
  transition: opacity 180ms ease; color: var(--text-mute);
}
.v2-shell:has(.v2-side:hover) .v2-brand-switcher-chevron { opacity: 1; transition-delay: 70ms; }

/* Brand-Umschalter Popover — selber Stil wie .queue-pop.
   Fixed statt absolute: die Sidebar hat overflow:hidden und ist im Ruhezustand
   nur eine schmale Icon-Leiste — ein darin verankertes Popover wird
   abgeschnitten (öffnet unsichtbar, M3-Nachbesserung 2026-07-04). Es fliegt
   deshalb als freies Element rechts neben dem Trigger aus; die Koordinaten
   setzt das IIFE-Script beim Öffnen via getBoundingClientRect. */
.brand-pop {
  position: fixed; width: 230px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-3);
  z-index: 300;
  overflow: hidden;
}
.brand-pop-head {
  padding: 10px 14px 8px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-mute);
  border-bottom: 1px solid var(--border-soft);
}
.brand-pop-list {
  list-style: none; margin: 0; padding: 4px 0;
}
.brand-pop-item {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 14px; font-size: 13px; cursor: pointer;
  border-radius: 0;
  transition: background 120ms;
}
.brand-pop-item:hover { background: var(--surface-soft); }
.brand-pop-item.active { font-weight: 700; }
.brand-pop-item.active .brand-pop-check { color: var(--accent-lime-edge); }
.brand-pop-check { width: 14px; flex-shrink: 0; text-align: center; }
.brand-pop-loading { color: var(--text-mute); font-size: 12px; cursor: default; }
.brand-pop-footer {
  padding: 8px 14px 10px;
  border-top: 1px solid var(--border-soft);
}
/* „+ Neue Marke"-Button im Popover-Footer */
.brand-pop-new-btn {
  background: none; border: none; padding: 2px 0; cursor: pointer;
  font-size: 12px; color: var(--accent-lime-edge);
  font-weight: 600; letter-spacing: .01em;
  width: 100%; text-align: left;
}
.brand-pop-new-btn:hover { opacity: .8; }

/* Inline-Create-Formular */
.brand-pop-create-form {
  display: flex; flex-direction: column; gap: 6px; padding-top: 4px;
}
.brand-pop-name-input {
  width: 100%; box-sizing: border-box;
  padding: 5px 9px; font-size: 12.5px;
  border: 1px solid var(--border); border-radius: 20px;
  background: var(--surface-soft); color: var(--text);
  outline: none;
}
.brand-pop-name-input::placeholder { color: var(--text-mute); }
.brand-pop-create-submit {
  align-self: flex-start;
  padding: 5px 14px; border: none; border-radius: 20px; cursor: pointer;
  font-size: 12px; font-weight: 600;
  background: linear-gradient(90deg, var(--accent-lime-edge), var(--accent-cappuccino));
  color: #fff;
}
.brand-pop-create-submit:disabled { opacity: .5; cursor: default; }
.brand-pop-create-error {
  font-size: 11px; color: #d44; min-height: 14px; line-height: 1.3;
}

/* Wrapper für korrektes position:relative am Sidebar-Bottom */
.v2-side { position: relative; }

/* ============================================================
   MAIN AREA (Topbar + Page-Body)
   ============================================================ */
.v2-main {
  display: flex; flex-direction: column;
  min-width: 0; overflow: hidden;
  background: var(--bg);
}

/* Top-Bar */
.v2-topbar {
  height: 54px; flex-shrink: 0;
  border-bottom: 1px solid var(--border-soft);
  display: flex; align-items: center;
  padding: 0 24px; gap: 14px;
  background: var(--surface);
  position: sticky; top: 0; z-index: 10;
}
.v2-breadcrumb { font-size: 13px; color: var(--text-soft); }
.v2-breadcrumb-sep { color: var(--text-mute); margin: 0 7px; }
.v2-breadcrumb-current { color: var(--text); font-weight: 600; }
.v2-topbar-right { margin-left: auto; display: flex; gap: 10px; align-items: center; }

/* Prad Trigger Pill */
.prad-trigger {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 12px 5px 5px;
  height: 36px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--pill);
  cursor: pointer;
  font-size: 12px; font-weight: 600; color: var(--text-soft);
  transition: all 0.15s;
  box-shadow: var(--shadow-1);
  white-space: nowrap;
  font-family: inherit;
}
.prad-trigger:hover { border-color: var(--lime-edge); color: var(--text); background: var(--lime-faint); }
.prad-trigger.active { background: var(--lime-soft); border-color: var(--lime-edge); color: var(--text); }

/* Face-Wrapper mit Dot-Overlay */
.prad-trigger-face-wrap {
  position: relative; width: 26px; height: 26px; flex-shrink: 0;
}
.prad-trigger-face {
  width: 26px; height: 26px;
  border-radius: 50%; overflow: hidden;
  background: var(--capp-soft);
}
.prad-trigger-face img { width: 26px; height: 26px; object-fit: cover; border-radius: 50%; }
.prad-trigger-dot {
  position: absolute; bottom: 0; right: -1px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ok); border: 1.5px solid var(--surface);
  z-index: 2;
}

/* V2 FAB — Plus-Button mit Gradient, inline in Topbar */
.v2-fab-wrap {
  position: relative;
}
.v2-fab-main {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, #8DAE45 0%, #C8FA6E 35%, #DCEB8B 60%, #D9A074 100%);
  border: none; cursor: pointer;
  font-size: 22px; font-weight: 300; color: #1A1A1A;
  display: grid; place-items: center;
  box-shadow: 0 4px 14px -4px rgba(141,174,69,0.45), 0 2px 6px rgba(217,160,116,0.25);
  transition: transform 0.28s cubic-bezier(0.16,1,0.3,1), box-shadow 0.2s;
  flex-shrink: 0;
}
.v2-fab-main:hover {
  transform: scale(1.07);
  box-shadow: 0 6px 18px -4px rgba(141,174,69,0.55), 0 3px 8px rgba(217,160,116,0.3);
}
.v2-fab-icon {
  display: inline-block; line-height: 1;
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1);
}
.v2-fab-wrap.open .v2-fab-icon { transform: rotate(135deg); }

/* FAB Dropdown (öffnet nach unten) */
.v2-fab-menu {
  position: absolute; top: calc(100% + 10px); right: 0;
  display: flex; flex-direction: column; align-items: flex-end; gap: 8px;
  opacity: 0; pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 300;
}
.v2-fab-wrap.open .v2-fab-menu {
  opacity: 1; pointer-events: auto; transform: translateY(0);
}
.v2-fab-item {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 18px 9px 14px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--pill);
  font-family: inherit; font-size: 13px; font-weight: 600; color: var(--text);
  text-decoration: none; white-space: nowrap;
  box-shadow: 0 6px 18px -6px rgba(15,23,42,0.18);
  opacity: 0; transform: translateY(-4px);
  transition: border-color 0.15s, transform 0.18s cubic-bezier(0.16,1,0.3,1),
              opacity 0.18s ease, box-shadow 0.18s;
}
.v2-fab-wrap.open .v2-fab-item { opacity: 1; transform: translateY(0); }
.v2-fab-wrap.open .v2-fab-item:nth-child(1) { transition-delay: 0.04s; }
.v2-fab-wrap.open .v2-fab-item:nth-child(2) { transition-delay: 0.10s; }
.v2-fab-wrap.open .v2-fab-item:nth-child(3) { transition-delay: 0.16s; }
.v2-fab-item:hover { border-color: var(--capp); box-shadow: 0 8px 22px -6px rgba(15,23,42,0.22); }
.v2-fab-item-icon { font-size: 16px; line-height: 1; }
.v2-fab-item-disabled {
  color: var(--text-mute); cursor: not-allowed; border-color: var(--border-soft);
  box-shadow: none;
}
.v2-fab-item-disabled:hover { border-color: var(--border-soft); box-shadow: none; }
.v2-fab-item-disabled .v2-fab-item-icon { filter: grayscale(1); opacity: 0.5; }

/* Page Body (scrollable) */
.v2-body {
  flex: 1;
  overflow-y: auto; min-height: 0;
  padding: 24px var(--page-pad-x);
  padding-bottom: var(--prad-safe-bottom);
  scrollbar-width: none;
}
.v2-body::-webkit-scrollbar { display: none; }

/* ============================================================
   PRAD CHAT-DRAWER (right panel)
   ============================================================ */
.v2-drawer {
  position: relative;
  border-left: 1px solid var(--border-soft);
  background: var(--surface);
  display: flex; flex-direction: column;
  overflow: hidden;
  transition: width 280ms cubic-bezier(0.4,0,0.2,1);
  width: 0;
}

/* ── Drawer-Breite ziehen ─────────────────────────────────── */
/* Greifkante am linken Rand des Drawers. Ziehen nach links = breiter. */
.dc-resize {
  position: absolute; left: 0; top: 0; bottom: 0; width: 8px;
  cursor: ew-resize; z-index: 30; user-select: none;
}
.dc-resize::before {
  content: ''; position: absolute; left: 2px; top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 40px; border-radius: 2px;
  background: var(--border); opacity: 0; transition: opacity 0.15s;
}
.dc-resize:hover::before,
.v2-shell.is-resizing .dc-resize::before { opacity: 1; }
/* Während des Ziehens keine Animation + keine Textauswahl */
.v2-shell.is-resizing,
.v2-shell.is-resizing .v2-drawer { transition: none; }
.v2-shell.is-resizing { user-select: none; cursor: ew-resize; }
.v2-shell.drawer-open .v2-drawer { width: var(--drawer-w, 380px); overflow: visible; }

/* Drawer Header */
.dc-header {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px 12px;
  border-bottom: 1px solid var(--border-soft);
  flex-shrink: 0;
}
.dc-prad-fig {
  width: 36px; height: 36px; flex-shrink: 0;
  border-radius: 50%; overflow: hidden;
  background: var(--capp-soft);
}
.dc-prad-fig img { width: 36px; height: 36px; object-fit: cover; border-radius: 50%; }
.dc-prad-name { font-size: 13px; font-weight: 700; line-height: 1.1; }
.dc-prad-status { font-size: 10px; color: var(--ok); font-weight: 600; margin-top: 1px; }
.dc-close {
  margin-left: auto; background: none; border: none; cursor: pointer;
  color: var(--text-mute); font-size: 18px; line-height: 1;
  padding: 4px 6px; border-radius: 6px; font-family: inherit;
}
.dc-close:hover { background: var(--surface-soft); color: var(--text); }

/* Context Card (per-page content via Jinja block) */
.dc-context {
  margin: 0 0 4px;   /* sitzt jetzt im gepolsterten Scroll-Container #dcMsgs */
  background: var(--lime-faint);
  border: 1px solid var(--lime-soft);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  flex-shrink: 0;
}
.dc-context-label {
  font-size: 10px; font-weight: 700; letter-spacing: 0.10em;
  text-transform: uppercase; color: var(--lime-edge); margin-bottom: 8px;
  display: flex; align-items: center; gap: 6px;
}
.dc-context-label::before { content: '👁'; font-size: 11px; }
.dc-context-item { margin-bottom: 7px; }
.dc-context-q { font-size: 10px; font-weight: 700; color: var(--text-mute); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 2px; }
.dc-context-a { font-size: 13.5px; color: var(--text); line-height: 1.45; }

/* Chat Messages */
.dc-msgs {
  flex: 1; overflow-y: auto; padding: 14px;
  display: flex; flex-direction: column; gap: 10px;
  min-height: 0;
}
.dc-msg { display: flex; gap: 8px; align-items: flex-end; }
.dc-msg-prad { align-self: flex-start; }
.dc-msg-user { flex-direction: row-reverse; align-self: flex-end; }
.dc-avatar-sm {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--capp-soft); color: var(--capp-edge);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; flex-shrink: 0; overflow: hidden;
}
.dc-avatar-sm img { width: 24px; height: 24px; object-fit: cover; border-radius: 50%; }
.dc-bubble {
  /* wächst mit der Drawer-Breite (mehr Text pro Zeile beim Breiterziehen) */
  max-width: calc(var(--drawer-w, 380px) - 100px);
  padding: 9px 13px;
  border-radius: 14px; font-size: 13.5px; line-height: 1.45;
}
.dc-bubble-prad {
  background: var(--surface-soft);
  border: 1px solid var(--border-soft);
  border-bottom-left-radius: 4px;
  color: var(--text);
}
.dc-bubble-user {
  background: var(--lime-soft);
  border: 1px solid var(--lime-soft);
  border-bottom-right-radius: 4px;
  color: var(--text);
}
/* Markdown-Formatierung in Prads Antworten (Fett / Aufzählung / Überschrift) */
.dc-bubble-prad p { margin: 0 0 7px; }
.dc-bubble-prad p:last-child { margin-bottom: 0; }
.dc-bubble-prad strong { font-weight: 650; color: var(--text); }
.dc-bubble-prad .dc-h {
  font-weight: 700; font-size: 13.5px; margin: 9px 0 4px;
  letter-spacing: -0.01em;
}
.dc-bubble-prad .dc-h:first-child { margin-top: 0; }
.dc-bubble-prad .dc-ul { margin: 5px 0 7px; padding-left: 16px; }
.dc-bubble-prad .dc-ul:last-child { margin-bottom: 0; }
.dc-bubble-prad .dc-ul li { margin: 3px 0; }
.dc-typing {
  display: inline-flex; gap: 4px; padding: 2px 0;
}
.dc-typing span {
  width: 6px; height: 6px; border-radius: 50%; background: var(--text-mute);
  animation: dc-bounce 1.2s ease-in-out infinite;
}
.dc-typing span:nth-child(2) { animation-delay: 0.15s; }
.dc-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes dc-bounce { 0%,60%,100% { transform: translateY(0); } 30% { transform: translateY(-5px); } }

/* Chat Input */
.dc-input-row {
  padding: 10px 14px 14px;
  border-top: 1px solid var(--border-soft);
  display: flex; gap: 8px; align-items: flex-end;
  flex-shrink: 0;
}
.dc-input {
  flex: 1; padding: 9px 14px;
  border: 1px solid var(--border); border-radius: var(--pill);
  font-size: 13.5px; font-family: inherit; background: var(--surface-soft);
  outline: none; resize: none; line-height: 1.4; color: var(--text);
  transition: border-color 0.15s;
}
.dc-input:focus { border-color: var(--lime-edge); background: var(--surface); }
.dc-input::placeholder { color: var(--text-mute); }
/* In-App-Links in Prad-Antworten (z.B. [Kampagne erstellen](/v2/products?action=kampagne)) */
.dc-inapp-link {
  color: var(--lime-edge); font-weight: 700; text-decoration: none;
  border-bottom: 1.5px solid var(--lime-edge); padding-bottom: 1px;
}
.dc-inapp-link:hover { color: var(--text); border-bottom-color: var(--text); }
.dc-send {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--cta-bg); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: background 0.15s;
}
.dc-send:hover { background: var(--cta-bg-hover); }
.dc-send svg { width: 14px; height: 14px; }

/* Bild-Anhang (Screenshot-Upload) */
.dc-attach-btn {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--surface-soft); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; cursor: pointer; color: var(--text-mute);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.dc-attach-btn:hover { background: var(--lime-faint); color: var(--lime-edge); border-color: var(--lime-edge); }
.dc-attach-btn svg { width: 16px; height: 16px; }
.dc-attach-strip {
  display: flex; gap: 8px; flex-wrap: wrap;
  padding: 10px 14px 0; flex-shrink: 0;
}
.dc-attach-thumb {
  position: relative; width: 52px; height: 52px; border-radius: 8px;
  overflow: hidden; border: 1px solid var(--border-soft); flex-shrink: 0;
}
.dc-attach-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dc-attach-thumb-remove {
  position: absolute; top: 2px; right: 2px; width: 16px; height: 16px;
  border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; border: none;
  font-size: 10px; line-height: 1; display: flex; align-items: center;
  justify-content: center; cursor: pointer; padding: 0;
}
.dc-attach-thumb-remove:hover { background: rgba(0,0,0,.8); }
/* Anhänge in der eigenen (User-)Sprechblase */
.dc-bubble-user-imgs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.dc-bubble-user-imgs img {
  width: 64px; height: 64px; object-fit: cover; border-radius: 8px;
  border: 1px solid var(--border-soft); display: block;
}

/* ============================================================
   LOADING OVERLAY
   ============================================================ */
.v2-loading {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(26,26,20,0.35);
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(2px);
}
.v2-loading-box {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 40px 48px;
  min-width: 340px; max-width: 440px;
  text-align: center;
  box-shadow: var(--shadow-3);
}
.v2-loading-icon { font-size: 48px; margin-bottom: 8px; display: block; }
.v2-loading-bar-wrap {
  width: 48px; height: 3px; background: var(--border);
  border-radius: 2px; margin: 0 auto 20px; overflow: hidden;
}
.v2-loading-bar {
  height: 100%; width: 0; background: var(--lime-edge);
  border-radius: 2px;
  animation: v2-progress 2s ease-in-out infinite;
}
@keyframes v2-progress {
  0%   { width: 0%; margin-left: 0; }
  50%  { width: 80%; margin-left: 0; }
  100% { width: 0%; margin-left: 100%; }
}
.v2-loading-title { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 8px; }
.v2-loading-text  { font-size: 13px; color: var(--text-soft); min-height: 20px; transition: opacity 0.3s; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: var(--pill);
  font-size: 16px; font-weight: 600; cursor: pointer;
  border: 1px solid transparent; transition: all 0.15s;
  text-decoration: none; line-height: 1; font-family: inherit;
  white-space: nowrap;
}
.btn-primary { background: var(--cta-bg); color: var(--cta-text); }
.btn-primary:hover { background: var(--cta-bg-hover); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--text-soft); }
.btn-ghost { background: transparent; color: var(--text-soft); border-color: transparent; padding: 11px 14px; }
.btn-ghost:hover { background: var(--surface-soft); color: var(--text); }
.btn-danger { background: var(--danger-soft); color: var(--danger); }
.btn-danger:hover { background: var(--danger); color: white; }
.btn-lg { padding: 14px 28px; font-size: 17px; }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-xs { padding: 4px 10px; font-size: 11px; }
.btn-meta {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; font-size: 12px; font-weight: 600;
  background: rgba(176,220,90,0.10);
  border: 1.5px dashed var(--lime-edge);
  border-radius: var(--pill); color: var(--text);
  cursor: pointer; font-family: inherit; transition: all 0.15s;
}
.btn-meta::before { content: "🚀"; font-size: 13px; }
.btn-meta:hover { background: rgba(176,220,90,0.22); border-style: solid; }

/* ============================================================
   PROGRESS-STEPPER (global) — Standard-Fortschrittsanzeige
   Kreis + Verbinder, erledigt = ✓ (lime), aktiv = Nummer (dunkel).
   Wird im {% block stepper %}-Slot genutzt (Plan, Creative, Onboarding …).
   ============================================================ */
.onb-stepper {
  display: flex; align-items: center; gap: 0;
  padding: 10px var(--page-pad-x);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0; overflow-x: auto;
}
.onb-step {
  display: flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 600; white-space: nowrap;
  color: var(--text-mute); flex-shrink: 0;
}
.onb-step.done  { color: var(--lime-edge); cursor: pointer; }
.onb-step.done:hover { opacity: .75; }
.onb-step.active { color: var(--text); }
.onb-step-circle {
  width: 22px; height: 22px; border-radius: 50%;
  border: 1.5px solid currentColor;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; flex-shrink: 0;
  transition: background .15s;
}
.onb-step.done  .onb-step-circle { background: var(--lime-edge); border-color: var(--lime-edge); color: #fff; }
.onb-step.active .onb-step-circle { background: var(--text); border-color: var(--text); color: var(--bg); }
.onb-step-connector {
  flex: 1; min-width: 20px; max-width: 56px;
  height: 1px; background: var(--border); margin: 0 6px;
}
.onb-step-connector.done { background: var(--lime-soft); }

/* ============================================================
   PILLS / BADGES
   ============================================================ */
.pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: var(--pill);
  font-size: 10px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; white-space: nowrap;
  background: var(--surface-soft); color: var(--text-soft);
}
.pill-ok      { background: var(--ok-soft);    color: var(--ok); }
.pill-warn    { background: var(--warn-soft);   color: var(--warn); }
.pill-danger  { background: var(--danger-soft); color: var(--danger); }
.pill-lime    { background: var(--lime-soft);   color: var(--lime-edge); }
.pill-capp    { background: var(--capp-soft);   color: var(--capp-edge); }
.pill-neutral { background: var(--canvas);      color: var(--text-soft); }

/* Angle-Pill — hebt den psychologischen Winkel (Vs. Alternativen / Hero Shot /
   Testimonial …) prominent hervor. Cappuccino-getönt, damit sie als Gegenstück
   zur lime Format-Pill lesbar ist (Format = was, Winkel = warum/Psychologie).
   Gefüllt-flach (kein Verlauf — Color-Grading bleibt CTAs vorbehalten). */
.angle-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 13px; border-radius: var(--pill);
  background: var(--capp-faint); border: 1px solid var(--capp-soft);
  font-size: 12.5px; font-weight: 700; letter-spacing: -0.005em;
  color: var(--text); white-space: nowrap; line-height: 1;
}
.angle-pill::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--capp-edge); flex-shrink: 0;
}

/* ============================================================
   FILTER TABS
   ============================================================ */
.filter-tab {
  display: inline-flex; align-items: center;
  padding: 7px 15px; font-size: 13px; font-weight: 700;
  background: var(--surface-soft); border: 1px solid var(--border);
  border-radius: var(--pill); color: var(--text-soft);
  cursor: pointer; font-family: inherit; transition: all 0.12s;
  white-space: nowrap;
}
.filter-tab:hover { background: var(--lime-bg-hover); border-color: var(--lime-edge); color: var(--text); }
.filter-tab.active { background: #1A1A14; color: #fff; border-color: #1A1A14; }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px;
}
.card-soft {
  background: var(--surface-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 18px;
}
.card-lime {
  background: var(--lime-faint);
  border: 1px solid var(--lime-soft);
  border-radius: var(--radius-sm);
  padding: 18px;
}
.card-capp {
  background: var(--capp-faint);
  border: 1px solid var(--capp-soft);
  border-radius: var(--radius-sm);
  padding: 18px;
}

/* ============================================================
   INPUTS
   ============================================================ */
.input-naked {
  width: 100%; padding: 12px 18px;
  border: 1px solid var(--border); border-radius: var(--pill);
  font-size: 14px; background: var(--surface); color: var(--text);
  font-family: inherit; outline: none; transition: border-color 0.15s;
}
.input-naked:focus { border-color: var(--lime-edge); }
.input-naked::placeholder { color: var(--text-mute); }
.input-area {
  width: 100%; padding: 14px 18px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 14px; background: var(--surface); color: var(--text);
  font-family: inherit; outline: none; resize: vertical;
  transition: border-color 0.15s; line-height: 1.55;
}
.input-area:focus { border-color: var(--lime-edge); }

/* ============================================================
   TYPOGRAFIE
   ============================================================ */
.typo-h1 { font-size: 36px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; margin: 0 0 6px; }
.typo-h2 { font-size: 26px; font-weight: 700; letter-spacing: -0.025em; line-height: 1.15; margin: 0 0 6px; }
.typo-h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; margin: 0 0 6px; }
.typo-h4 { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; margin: 0 0 6px; }
.typo-body { font-size: 14px; line-height: 1.55; margin: 0 0 6px; }
.typo-body-sm { font-size: 13px; line-height: 1.55; color: var(--text-soft); margin: 0 0 6px; }
.typo-label { font-size: 11px; font-weight: 700; letter-spacing: 0.10em; text-transform: uppercase; color: var(--text-mute); display: block; margin: 0 0 6px; }
.typo-note { font-size: 11px; color: var(--text-mute); line-height: 1.5; margin: 0 0 6px; }

/* ============================================================
   PAGE HERO (jede V2-Seite)
   ============================================================ */
.v2-hero {
  margin-bottom: 28px;
}
.v2-hero h1 {
  font-size: 28px; font-weight: 700; letter-spacing: -0.025em; line-height: 1.1;
  margin: 0 0 4px;
}
.v2-hero .v2-hero-sub { font-size: 13px; color: var(--text-soft); }

/* ============================================================
   PRAD ACTION QUEUE — globaler To-Do-Zettel
   Button fixed oben rechts, öffnet Popover mit Action-Kacheln
   ============================================================ */

/* Topbar-Button mit Badge — gleich groß wie prad-trigger */
.queue-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 12px 5px 10px;
  height: 36px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--pill);
  cursor: pointer;
  font-size: 12px; font-weight: 600; color: var(--text-soft);
  transition: all 0.15s;
  box-shadow: var(--shadow-1);
  white-space: nowrap;
  font-family: inherit;
  position: relative;
}
.queue-btn:hover { border-color: var(--capp-edge); color: var(--text); background: var(--capp-faint); }
.queue-btn.has-items { border-color: var(--capp); }
.queue-btn-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 5px;
  background: var(--capp); color: white;
  border-radius: var(--pill); font-size: 10px; font-weight: 700;
  line-height: 1;
}
.queue-btn-badge.empty { background: var(--border); color: var(--text-mute); }

/* Popover Panel */
.queue-pop {
  position: absolute; top: calc(100% + 10px); right: 0;
  width: 420px; max-height: 70vh;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-3);
  z-index: 200;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.queue-pop-head {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px 12px;
  border-bottom: 1px solid var(--border-soft);
  flex-shrink: 0;
}
.queue-pop-title { font-size: 14px; font-weight: 700; flex: 1; }
.queue-pop-sub   { font-size: 11px; color: var(--text-mute); margin-top: 1px; }
.queue-pop-close {
  background: none; border: none; cursor: pointer;
  color: var(--text-mute); font-size: 18px; padding: 4px 6px;
  border-radius: 6px; line-height: 1; font-family: inherit;
}
.queue-pop-close:hover { background: var(--surface-soft); color: var(--text); }
.queue-pop-footer {
  flex-shrink: 0; padding: 10px 16px;
  border-top: 1px solid var(--border-soft);
  text-align: center;
}
.queue-footer-link {
  font-size: var(--fs-label); font-weight: 700; letter-spacing: .05em;
  color: var(--lime-edge); text-decoration: none;
}
.queue-footer-link:hover { text-decoration: underline; }

/* Scrollable list */
.queue-list {
  flex: 1; overflow-y: auto;
  padding: 8px 0;
}

/* Empty state */
.queue-empty {
  text-align: center; padding: 36px 24px;
  color: var(--text-mute);
}
.queue-empty-ico  { font-size: 28px; margin-bottom: 8px; }
.queue-empty-title{ font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.queue-empty-msg  { font-size: 12px; }

/* Action Tile */
.queue-tile {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--border-soft);
  transition: background 0.1s;
}
.queue-tile:last-child { border-bottom: none; }
.queue-tile:hover { background: var(--surface-soft); }
.queue-tile-ico {
  width: 32px; height: 32px; border-radius: 9px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
}
.queue-tile-ico.type-budget   { background: var(--lime-faint);  }
.queue-tile-ico.type-creative { background: var(--capp-faint);  }
.queue-tile-ico.type-setup    { background: var(--warn-soft);   }
.queue-tile-ico.type-nav      { background: var(--surface-soft);}
.queue-tile-body { flex: 1; min-width: 0; }
.queue-tile-title { font-size: 13px; font-weight: 600; line-height: 1.3; }
.queue-tile-sub   { font-size: 11px; color: var(--text-mute); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.queue-tile-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.queue-tile-btn {
  padding: 5px 12px; border-radius: var(--pill);
  font-size: 11px; font-weight: 600; cursor: pointer;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text); transition: all 0.12s; font-family: inherit;
  white-space: nowrap;
}
.queue-tile-btn.primary {
  background: var(--cta-bg); border-color: transparent; color: var(--cta-text);
}
.queue-tile-btn.primary:hover { background: var(--cta-bg-hover); }
.queue-tile-btn:not(.primary):hover { border-color: var(--text-soft); }
.queue-tile-skip {
  background: none; border: none; cursor: pointer; color: var(--text-mute);
  font-size: 15px; line-height: 1; padding: 4px; border-radius: 4px;
  font-family: inherit;
}
.queue-tile-skip:hover { background: var(--surface-soft); color: var(--danger); }

/* Wrapper für Topbar-Positionierung */
.queue-wrapper { position: relative; }

/* ============================================================
   UTILITIES
   ============================================================ */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.text-mute { color: var(--text-mute); }
.text-soft { color: var(--text-soft); }
.text-ok { color: var(--ok); }
.text-warn { color: var(--warn); }
.text-danger { color: var(--danger); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }

/* ============================================================
   PRAD-SPRECHBLASE — globales Standard-Design für ALLE Bubbles
   Breite + Zipfel über :root-Tokens (--bubble-*). Zipfel zeigt
   standardmäßig nach unten (zu Prad). Positionierung macht die Seite.
   ============================================================ */
.prad-bubble {
  position: relative;
  width: var(--bubble-width); max-width: var(--bubble-width);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--bubble-radius);
  padding: 13px 17px;
  box-shadow: 0 10px 28px -12px rgba(26,26,20,0.22);
  font-size: 14px; line-height: 1.5; color: var(--text);
}
.prad-bubble strong, .prad-bubble b { color: var(--lime-edge); font-weight: 700; }
/* Zipfel (45°-gedrehtes Quadrat, nur untere zwei Kanten umrandet) */
.prad-bubble::after {
  content: ''; position: absolute;
  right: var(--bubble-tail-right);
  bottom: calc(var(--bubble-tail-out) * -1);
  width: var(--bubble-tail); height: var(--bubble-tail);
  background: var(--surface);
  border-right: 1.5px solid var(--border);
  border-bottom: 1.5px solid var(--border);
  transform: rotate(45deg);
}

/* ── Floating Prad Mascot (bottom-right) ───────────────────── */
.prad-float {
  position: fixed;
  bottom: 0; right: 0;
  width: 210px; height: 240px;   /* 75% der Ursprungsgröße (war 280×320) */
  z-index: 99;
  cursor: pointer;
  overflow: hidden;
  transition: filter 0.18s ease, transform 0.18s ease;
}
.prad-float:hover { filter: drop-shadow(0 6px 14px rgba(0,0,0,0.12)); }
.prad-float:active { transform: scale(0.985); }
.prad-float img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  display: block; transform-origin: center bottom;
  animation: pradFloatBreathe 4.5s ease-in-out infinite;
  user-select: none; -webkit-user-drag: none;
}
@keyframes pradFloatBreathe {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.015); }
}
@media (prefers-reduced-motion: reduce) { .prad-float img { animation: none; } }

/* Chat-Drawer offen → schwebenden Prad + To-Do-Panel ausblenden,
   damit sie die Chat-Eingabezeile nicht verdecken. Beim X (Drawer zu) kommen sie zurück. */
.v2-shell.drawer-open ~ .prad-float,
.v2-shell.drawer-open ~ .prad-float-todo { display: none; }

/* ── Prad ein-/ausklappen (kleiner Kreis unten rechts) ─────── */
.prad-toggle {
  position: fixed; bottom: 16px; right: 18px; z-index: 100;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow-2);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-soft); cursor: pointer; transition: background .15s, color .15s;
}
.prad-toggle:hover { background: var(--surface-soft); color: var(--text); }
.prad-toggle svg { width: 15px; height: 15px; transition: transform .2s ease; }
/* versteckt → Pfeil dreht von runter auf hoch */
body.prad-hidden .prad-toggle svg { transform: rotate(180deg); }

/* Prad + To-Do-Panel + Sprechblase wegschieben/ausblenden, Toggle bleibt */
body.prad-hidden .prad-float { transform: translateY(112%); pointer-events: none; }
body.prad-hidden .prad-float-todo,
body.prad-hidden .prad-bubble { display: none; }

/* Chat offen → Toggle ebenfalls weg (Prad ist dann ohnehin verborgen) */
.v2-shell.drawer-open ~ .prad-toggle { display: none; }

/* ── Floating To-Do Panel (öffnet sich über Prad) ───────────── */
.prad-float-todo {
  position: fixed;
  right: 32px; bottom: 320px;
  width: 320px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-2);
  z-index: 100;
  overflow: hidden;
  display: none;
}
.prad-float-todo.is-open {
  display: block;
  animation: pradTodoIn 0.32s cubic-bezier(0.16,1,0.3,1) both;
}
@keyframes pradTodoIn {
  from { opacity: 0; transform: translateY(10px) scale(0.96); }
  to   { opacity: 1; transform: none; }
}
/* Eingeklappt: nur ein kleiner runder Pfeil-nach-oben-Button, oben rechts über Prads Kopf */
.prad-float-todo.is-collapsed {
  right: 64px; bottom: 250px;          /* über dem Kopf des Maskottchens */
  width: auto;
  background: transparent; border: none; box-shadow: none;
  overflow: visible;
}
.prad-float-todo.is-collapsed .prad-float-todo-list,
.prad-float-todo.is-collapsed .prad-float-todo-actions { display: none; }
.prad-float-todo.is-collapsed .prad-float-todo-head {
  padding: 0; border-bottom: none; background: transparent;
}
.prad-float-todo.is-collapsed .prad-float-todo-head > div { display: none; }  /* Titel + Sub */
.prad-float-todo.is-collapsed .prad-float-todo-chevron {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow-2); color: var(--text-soft);
  transform: rotate(-180deg);          /* Pfeil zeigt nach oben = ausklappen */
}
.prad-float-todo.is-collapsed .prad-float-todo-chevron:hover {
  background: var(--surface-soft); border-color: var(--text-soft); color: var(--text);
}

.prad-float-todo-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 13px 14px;
  border-bottom: 1px solid var(--border-soft);
  background: var(--surface-soft);
}
.prad-float-todo-title { font-size: 13px; font-weight: 700; color: var(--text); letter-spacing: -0.01em; }
.prad-float-todo-sub { font-size: 11px; color: var(--text-mute); margin-top: 2px; }
.prad-float-todo-chevron {
  width: 26px; height: 26px;
  border: none; background: transparent; cursor: pointer;
  color: var(--text-mute); border-radius: 6px;
  display: grid; place-items: center;
  transition: background 0.15s, transform 0.2s;
}
.prad-float-todo-chevron:hover { background: var(--border-soft); }

.prad-float-todo-list { list-style: none; margin: 0; padding: 6px 0; }
.prad-float-todo-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; cursor: pointer;
  border-left: 2px solid transparent;
  transition: background 0.15s;
  text-decoration: none; color: var(--text);
}
.prad-float-todo-item:hover { background: var(--lime-faint); border-left-color: var(--lime-edge); }
.prad-float-todo-check {
  width: 20px; height: 20px;
  border-radius: 50%; border: 1.5px solid var(--border);
  flex-shrink: 0; position: relative;
  background: var(--surface);
  transition: background 0.15s, border-color 0.15s;
}
.prad-float-todo-item[data-status="done"] .prad-float-todo-check { background: var(--ok); border-color: var(--ok); }
.prad-float-todo-item[data-status="done"] .prad-float-todo-check::after {
  content: ''; position: absolute;
  left: 6px; top: 3px; width: 5px; height: 9px;
  border: solid #fff; border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.prad-float-todo-item[data-status="done"] { opacity: 0.6; }
.prad-float-todo-item[data-status="done"] .prad-float-todo-label { text-decoration: line-through; color: var(--text-mute); }
.prad-float-todo-body { flex: 1; min-width: 0; }
.prad-float-todo-label { font-size: 13px; font-weight: 600; line-height: 1.3; }
.prad-float-todo-hint { font-size: 11px; color: var(--text-mute); margin-top: 2px; }
.prad-float-todo-arrow { color: var(--text-mute); font-size: 15px; flex-shrink: 0; }

/* Aktionsbereich unter der To-Do-Liste: 2 Pills */
.prad-float-todo-actions {
  display: flex; gap: 8px;
  padding: 14px;
  border-top: 1px solid var(--border-soft);
}
.ptodo-pill {
  flex: 1; padding: 9px 12px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; cursor: pointer;
  font-family: inherit; text-align: center;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  transition: background 0.15s, border-color 0.15s;
}
.ptodo-pill:hover { background: var(--surface-soft); border-color: var(--text-soft); }
.ptodo-pill-primary {
  background: var(--cta-bg); border-color: transparent; color: var(--cta-text);
}
.ptodo-pill-primary:hover { background: var(--cta-bg-hover); border-color: transparent; }

/* ── Prad-Fazit-Box (globale Komponente, überall nutzbar) ─────────────
   Nutzung:
   <div class="prad-fazit">
     <div class="prad-fazit-fig">
       <img src="/static/assets/prad-greeting-cutout.png" alt="Prad"
            onerror="this.style.display='none';this.parentElement.textContent='☕'">
     </div>
     <div class="prad-fazit-body">
       <div class="prad-fazit-label">Prads Fazit</div>
       <div class="prad-fazit-text">…</div>
     </div>
   </div>
────────────────────────────────────────────────────────────────────── */
.prad-fazit {
  display: flex; gap: 13px; align-items: flex-start;
  padding: 16px 18px;
  background: var(--capp-faint); border: 1px solid var(--capp-soft);
  border-radius: var(--radius);
}
.prad-fazit-fig {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0; overflow: hidden;
  background: var(--surface); display: flex; align-items: center; justify-content: center;
}
.prad-fazit-fig img { width: 100%; height: 100%; object-fit: cover; }
.prad-fazit-body { flex: 1; min-width: 0; }
.prad-fazit-label {
  font-size: var(--fs-label); font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--capp-edge); margin-bottom: 4px;
}
.prad-fazit-text {
  font-size: var(--fs-body); color: var(--text); line-height: 1.55;
}
.prad-fazit-text b { font-weight: 700; }
.prad-fazit-note { color: var(--text-soft); }

/* ══════════════════════════════════════════════════════════
   GLOBALE KOMPONENTE — Prad-Empfehlungskacheln (fn-rec-*)
   Wird von /v2/funnel und /v2/customers genutzt.
   ══════════════════════════════════════════════════════════ */
.fn-actions-label {
  font-size: var(--fs-label); font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--capp-edge); margin: 0 0 12px;
}
.fn-todos { display: flex; flex-direction: column; gap: 10px; }

.fn-todo {
  display: flex; align-items: center; gap: 14px; cursor: pointer;
  border: 1px solid var(--capp-soft); border-radius: var(--radius-sm);
  padding: 15px 18px; background: #FCFAF4;
  transition: border-color .15s, box-shadow .15s;
}
.fn-todo:hover { border-color: var(--capp-edge); box-shadow: var(--shadow-1); }
.fn-todo.is-open { border-radius: var(--radius-sm) var(--radius-sm) 0 0; border-bottom-color: transparent; }

.fn-todo-icon {
  width: 38px; height: 38px; border-radius: 11px; flex-shrink: 0;
  background: var(--surface-soft); border: 1px solid var(--border-soft);
  display: grid; place-items: center; font-size: 18px;
}
.fn-todo-body { flex: 1; min-width: 0; }
.fn-todo-title { font-size: var(--fs-section); font-weight: 700; color: var(--text); letter-spacing: -.01em; }
.fn-todo-desc { font-size: var(--fs-meta); color: var(--text-soft); margin-top: 3px; line-height: 1.45; }
.fn-todo-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.fn-todo-time {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: var(--fs-label); color: var(--text-soft);
  background: var(--surface-soft); border: 1px solid var(--border);
  padding: 5px 11px; border-radius: var(--pill); white-space: nowrap;
}
.fn-todo-btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--cta-bg); color: var(--cta-text);
  font-size: var(--fs-btn); font-weight: 700;
  padding: 10px 18px; border-radius: var(--pill); border: none;
  cursor: pointer; white-space: nowrap; transition: background .15s;
}
.fn-todo-btn:hover { background: var(--cta-bg-hover); }
.fn-todo-btn.done {
  background: var(--surface-soft); color: var(--text-mute);
  border: 1px solid var(--border); cursor: pointer;
}
.fn-todo-btn.done:hover { background: var(--surface); color: var(--text-soft); }
.fn-act.is-done-act { opacity: 0.5; transition: opacity .3s; }
.fn-act.is-done-act .fn-todo { background: var(--surface-soft); border-color: var(--border); cursor: default; }
.fn-act.is-done-act .fn-todo-title { color: var(--text-mute); text-decoration: line-through; }
.fn-act.is-done-act .fn-todo-desc { color: var(--text-mute); }
.fn-act.is-done-act .fn-todo-icon { background: var(--lime-soft); border-color: var(--lime-edge); }
.fn-done-row {
  margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border-soft);
  display: flex; justify-content: center;
}
.fn-done-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--text); color: #fff;
  font-size: var(--fs-meta); font-weight: 600;
  padding: 7px 14px; border-radius: var(--pill); border: none;
  cursor: pointer; white-space: nowrap; transition: opacity .15s;
}
.fn-done-btn:hover { opacity: .82; }

.fn-act-body {
  display: none; background: var(--surface);
  border: 1px solid var(--capp-soft); border-top: 0;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  padding: 18px 20px 20px;
}
.fn-act-body.open { display: block; animation: fnSlide .2s ease both; }
@keyframes fnSlide { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

.fn-step-list { margin-bottom: 0; }
.fn-step { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--border-soft); }
.fn-step:last-child { border-bottom: 0; padding-bottom: 0; }
.fn-step-num {
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0; margin-top: 2px;
  background: var(--lime); color: var(--text);
  font-size: 10px; font-weight: 800; display: grid; place-items: center;
}
.fn-step-text { font-size: 13.5px; color: var(--text); line-height: 1.55; flex: 1; }
.fn-step-text strong { font-weight: 700; }
.fn-chip-ui {
  display: inline-flex; align-items: center; background: var(--canvas);
  border: 1px solid var(--border-soft); border-radius: 5px; padding: 1px 7px;
  font-size: 11px; font-family: 'SF Mono','Monaco',monospace; color: var(--text-soft); margin: 0 2px;
}

/* ── Verbindungs-Warnpill (base_v2.html Topbar) ───────────────── */
.conn-warn-wrap { position: relative; display: none; }
.conn-warn-wrap.visible { display: block; }
.conn-warn-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 11px; border-radius: var(--pill);
  background: var(--warn-soft); color: var(--warn);
  border: 1.5px solid #E8C070; font-family: inherit;
  font-size: var(--fs-meta); font-weight: 700; cursor: pointer;
  transition: background .12s; white-space: nowrap;
}
.conn-warn-btn:hover { background: #F3DFA8; }
.conn-warn-ico { font-size: 11px; }
.conn-warn-pop {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 500;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-2);
  min-width: 270px; padding: 8px 0; display: none;
}
.conn-warn-pop.open { display: block; }
.conn-warn-item {
  padding: 10px 15px; display: flex; flex-direction: column; gap: 3px;
  border-bottom: 1px solid var(--border-soft);
}
.conn-warn-item:last-child { border-bottom: none; }
.conn-warn-item-label { font-size: var(--fs-body); font-weight: 700; color: var(--warn); display: flex; align-items: center; gap: 6px; }
.conn-warn-item-detail { font-size: var(--fs-meta); color: var(--text-soft); line-height: 1.45; }
.conn-warn-item-fix { margin-top: 4px; font-size: var(--fs-meta); font-weight: 700; color: var(--lime-edge); text-decoration: none; }
.conn-warn-item-fix:hover { text-decoration: underline; }

/* ── Caffeine-Waiting-Box — GLOBALE Komponente (Michelle-Regel 2026-07-04:
   NIE eigene Warte-Popups bauen — immer diese Vorlage. Übernommen 1:1 aus
   creative_skripte_v2.html .cs-waiting; die cs-Variante dort kann bei
   Gelegenheit auf diese globalen Klassen migriert werden). ─────────────── */
.v2-waiting {
  display: flex; justify-content: center; align-items: center; padding: 48px 0;
}
.v2-waiting-box {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 36px;
  width: 320px; aspect-ratio: 1 / 1; flex-shrink: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; box-shadow: var(--shadow-2);
}
.v2-waiting-icon { font-size: 42px; display: block; margin-bottom: 6px; }
.v2-waiting-bar {
  width: 48px; height: 3px; background: var(--border);
  border-radius: 2px; margin: 0 auto 18px; overflow: hidden;
}
.v2-waiting-bar-fill {
  height: 100%; width: 0; background: var(--lime-edge);
  border-radius: 2px;
  animation: v2-progress 2s ease-in-out infinite;
}
@keyframes v2-progress {
  0%   { width: 0%; margin-left: 0; }
  50%  { width: 80%; margin-left: 0; }
  100% { width: 0%; margin-left: 100%; }
}
.v2-waiting-title { font-size: 17px; font-weight: 700; letter-spacing: -.02em; margin: 0 0 6px; color: var(--text); }
.v2-waiting-text  { font-size: 13px; color: var(--text-soft); line-height: 1.5; }


/* ── Stift-im-Kreis — GLOBALE Komponente (Muster: .pa-edit-icon aus
   produkt_analyse_v2.html; dort bei Gelegenheit migrieren). Verwendung:
   <button class="v2-edit-icon"><i class="edit-pencil"></i></button> ─────── */
.v2-edit-icon {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-mute); font-size: 14px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s, border-color .15s, color .15s;
  flex-shrink: 0;
}
.v2-edit-icon:hover { background: var(--surface-soft); border-color: var(--capp-soft); color: var(--text-soft); }
.v2-edit-icon .edit-pencil { --icon-edit-size: 17px; }


/* ── V3-Abzeichen — nur in der V3-Kopie vorhanden; macht auf einen Blick
   sichtbar, welche Version man benutzt (Michelle 2026-07-04). ──────────── */
.v3-badge {
  display: inline-block; margin-left: 4px; padding: 1px 7px;
  border-radius: var(--pill); background: var(--lime-soft);
  color: var(--lime-edge); font-size: 10px; font-weight: 800;
  letter-spacing: .06em; vertical-align: middle;
}

/* ── Video-Format-Wahl-Modal (global) ────────────────────────────────────
   Verschoben aus produkt_analyse_v2.html — steht jetzt in base_v2.html
   und wird von allen v2-Seiten geladen. ──────────────────────────────── */
.vid-modal-backdrop {
  position: fixed; inset: 0; z-index: 620; background: rgba(26,26,20,.35); backdrop-filter: blur(2px);
  display: none; align-items: center; justify-content: center; padding: 32px;
}
.vid-modal-backdrop.open { display: flex; }
.vid-modal-card {
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-3);
  width: 100%; max-width: 560px; padding: 28px 30px 24px; position: relative;
}
.vid-modal-eyebrow { font-size: var(--fs-label); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-mute); margin-bottom: 5px; }
.vid-modal-title { font-size: 20px; font-weight: 800; letter-spacing: -.02em; color: var(--text); margin-bottom: 4px; }
.vid-modal-sub { font-size: 13px; color: var(--text-soft); margin-bottom: 20px; line-height: 1.5; }
.vid-modal-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.vid-modal-opt {
  border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px 17px;
  display: flex; flex-direction: column; gap: 7px; transition: border-color .15s, box-shadow .15s;
  text-decoration: none; cursor: pointer; background: var(--surface);
}
.vid-modal-opt.active { border-color: var(--lime); background: var(--lime-faint); cursor: pointer; }
.vid-modal-opt.active:hover { box-shadow: var(--shadow-2); border-color: var(--lime-edge); }
.vid-modal-opt.active.selected { border-color: var(--lime-edge); background: var(--lime-soft); box-shadow: var(--shadow-2); }
.vid-modal-opt.muted { background: var(--surface-soft); border-style: dashed; opacity: .75; cursor: default; }
.vid-modal-opt-head { display: flex; align-items: center; gap: 8px; }
.vid-modal-opt-icon { font-size: 18px; line-height: 1; }
.vid-modal-opt-title { font-size: 14px; font-weight: 800; letter-spacing: -.01em; color: var(--text); }
.vid-modal-opt-desc { font-size: 12.5px; color: var(--text-soft); line-height: 1.45; }
.vid-modal-badge {
  font-size: 9.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  padding: 3px 9px; border-radius: var(--pill);
  background: var(--capp-faint); color: var(--capp-edge); border: 1px solid var(--capp-soft);
  align-self: flex-start; margin-top: 2px;
}
/* Empfehlungs-Badge — grün, aus Farb-Tokens (kein neues Hex) */
.vid-modal-rec-badge {
  font-size: 9.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  padding: 3px 9px; border-radius: var(--pill);
  background: var(--lime-soft); color: var(--lime-edge); border: 1px solid var(--lime);
  align-self: flex-start; margin-top: 2px;
}
/* Footer: Abbrechen links, CTA rechts — Muster von .fco-footer */
.vid-modal-foot {
  margin-top: 0; padding-top: 14px; border-top: 1px solid var(--border-soft);
  display: flex; align-items: center; justify-content: space-between;
}
.vid-modal-cancel {
  padding: 9px 18px; border-radius: var(--pill); border: 1px solid var(--border); background: transparent;
  font-size: 13px; font-weight: 600; color: var(--text-soft); cursor: pointer; font-family: inherit;
  transition: border-color .15s, color .15s;
}
.vid-modal-cancel:hover { border-color: var(--capp-soft); color: var(--text); }
.vid-modal-cta {
  padding: 10px 22px; border-radius: var(--pill); border: none;
  background: var(--cta-bg); color: var(--cta-text);
  font-size: 13px; font-weight: 700; cursor: pointer; font-family: inherit;
  transition: background .15s, opacity .15s;
}
.vid-modal-cta:hover:not(:disabled) { background: var(--cta-bg-hover); }
.vid-modal-cta:disabled { opacity: .45; cursor: not-allowed; }
