    /* ─── CSS Variables ─── */
    :root {
      --bg: #0e0e0e;
      --panel: #161616;
      --border: rgba(160, 160, 160, 0.15);
      --text: #f0f0f0;
      --muted: #888888;
      --accent: #ff4d4d;
      --accent-strong: #e63946;
      --card: #1e1e1e;
      --sidebar-w: 220px;
      --sidebar-collapsed: 56px;
      --header-h: 0px;
      --radius: 12px;
      --accent-bg: rgba(255,77,77,0.10);
      --accent-bg-mid: rgba(255,77,77,0.15);
      --accent-border: rgba(255,77,77,0.30);
      --accent-glow: rgba(255,77,77,0.40);
      font-family: "Figtree", system-ui, -apple-system, sans-serif;
    }
    :root[data-theme="light"] {
      --bg: #f7f7f7;
      --panel: #ffffff;
      --border: rgba(0, 0, 0, 0.12);
      --text: #111111;
      --muted: #666666;
      --accent: #ef4b58;
      --accent-strong: #c9313e;
      --accent-bg: rgba(239,75,88,0.08);
      --accent-bg-mid: rgba(239,75,88,0.13);
      --accent-border: rgba(239,75,88,0.25);
      --accent-glow: rgba(239,75,88,0.30);
      --card: #efefef;
    }

    /* ─── Reset ─── */
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; font-family: inherit; }
    html, body { height: 100%; }
    body {
      background: var(--bg);
      color: var(--text);
      font-family: "Figtree", system-ui, -apple-system, sans-serif;
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      transition: background 0.3s, color 0.3s;
    }
    :root[data-theme="light"] body {
      background: var(--bg);
    }

    /* ═══════════════════════════════════════════
       HEADER
    ═══════════════════════════════════════════ */
    /* ─── Sidebar Top: Hamburger + Brand Logo ─── */
    .sidebar-top {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 10px 8px;
      border-bottom: 1px solid var(--border);
      flex-shrink: 0;
      overflow: hidden;
    }
    .hamburger {
      width: 32px; height: 32px;
      flex-shrink: 0;
      border: none;
      border-radius: 6px;
      background: transparent;
      color: var(--text);
      display: flex; align-items: center; justify-content: center;
      cursor: pointer;
      transition: background 0.2s;
    }
    .hamburger:hover { background: var(--card); }
    .hamburger svg { width: 20px; height: 20px; stroke: var(--muted); transition: stroke 0.3s; }
    .hamburger:hover svg { stroke: var(--text); }

    .sidebar-brand-link { display: flex; align-items: center; text-decoration: none; overflow: hidden; }
    .sidebar-brand-logo {
      height: 22px;
      width: auto;
      max-width: 120px;
      object-fit: contain;
      opacity: 0.9;
      transition: opacity 0.3s, max-width 0.26s, opacity 0.26s;
      white-space: nowrap;
    }
    .sidebar.collapsed .sidebar-brand-logo { max-width: 0; opacity: 0; }

    /* User avatar circle – wie Screenshot: kleiner Avatar-Kreis */
    .user-avatar {
      width: 30px; height: 30px;
      border-radius: 50%;
      background: linear-gradient(135deg, var(--accent), var(--accent-strong));
      display: flex; align-items: center; justify-content: center;
      cursor: pointer;
      font-size: 0.78rem;
      font-weight: 700;
      color: #fff;
      position: relative;
      margin-left: 4px;
      transition: box-shadow 0.2s;
    }
    .user-avatar:hover { box-shadow: 0 0 0 2px var(--accent); }

    /* Sidebar User Row */
    .sidebar-user-row {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 6px 10px;
      border-radius: 8px;
      cursor: pointer;
      transition: background 0.15s;
    }
    .sidebar-user-row:hover { background: var(--card); }
    .sidebar-user-name {
      font-size: 0.82rem;
      font-weight: 500;
      color: var(--muted);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .sidebar.collapsed .sidebar-user-name { opacity: 0; max-width: 0; }
    .sidebar.collapsed .sidebar-user-row { justify-content: center; padding: 6px 0; gap: 0; }

    /* Theme toggle im Dropdown */
    .dropdown-theme-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 8px 12px;
      border-radius: 7px;
      font-size: 0.88rem;
      color: var(--text);
      transition: background 0.15s;
    }
    .dropdown-theme-row:hover { background: var(--card); }
    .dropdown-theme-btn {
      width: 28px; height: 28px;
      border: none;
      border-radius: 6px;
      background: var(--card);
      color: var(--muted);
      display: flex; align-items: center; justify-content: center;
      cursor: pointer;
      transition: background 0.18s, color 0.18s;
    }
    .dropdown-theme-btn:hover { background: var(--border); color: var(--text); }

    /* User dropdown (Portal – position via JS gesetzt) */
    .user-dropdown {
      position: fixed;
      min-width: 220px;
      background: var(--panel);
      border: 1px solid var(--border);
      border-radius: 10px;
      box-shadow: 0 8px 24px rgba(0,0,0,0.25);
      padding: 6px;
      opacity: 0;
      pointer-events: none;
      transform: translateY(calc(-100% + 6px));
      transition: opacity 0.2s, transform 0.2s;
      z-index: 1000;
    }
    .user-dropdown.show { opacity: 1; pointer-events: auto; transform: translateY(-100%); }
    .user-dropdown a {
      display: block;
      padding: 8px 12px;
      border-radius: 7px;
      color: var(--text);
      text-decoration: none;
      font-size: 0.88rem;
      transition: background 0.15s;
    }
    .user-dropdown a:hover { background: var(--card); }

    /* Akzentfarbe-Picker im Dropdown */
    .color-picker-section {
      border-top: 1px solid var(--border);
      padding: 10px 10px 8px;
      margin-top: 2px;
    }
    .color-picker-label {
      font-size: 0.75rem;
      color: var(--muted);
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.6px;
      margin-bottom: 8px;
    }
    .color-swatches {
      display: flex;
      gap: 7px;
    }
    .color-swatch {
      width: 26px; height: 26px;
      border-radius: 50%;
      border: none;
      cursor: pointer;
      padding: 0;
      outline: none;
      transition: transform 0.15s, box-shadow 0.2s;
    }
    .color-swatch:hover { transform: scale(1.15); }
    .color-swatch.active {
      box-shadow: 0 0 0 2.5px var(--panel), 0 0 0 4.5px var(--text);
    }

    /* Language Picker */
    .lang-picker-section { border-top: 1px solid var(--border); padding: 10px 10px 8px; margin-top: 2px; }
    .lang-btns { display: flex; gap: 7px; margin-top: 6px; }
    .lang-btn { padding: 4px 12px; border-radius: 999px; font-size: 0.78rem; font-weight: 700;
      background: var(--card); border: 1px solid var(--border); color: var(--muted);
      cursor: pointer; transition: all 0.15s; }
    .lang-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }
    .lang-btn:hover:not(.active) { background: var(--border); color: var(--text); }

    /* ═══════════════════════════════════════════
       SIDEBAR
    ═══════════════════════════════════════════ */
    .sidebar {
      position: fixed;
      top: var(--header-h);
      left: 0;
      width: var(--sidebar-w);
      height: calc(100vh - var(--header-h));
      background: var(--panel);
      border-right: 1px solid var(--border);
      z-index: 50;
      display: flex;
      flex-direction: column;
      transition: width 0.26s cubic-bezier(.4,0,.2,1), background 0.3s, border-color 0.3s;
      overflow: hidden;
    }
    .sidebar.collapsed { width: var(--sidebar-collapsed); }

    /* Nav list – wie Screenshot: kompakt, keine Trennlinien */
    .sidebar-nav { list-style: none; padding: 10px 8px; flex: 1; overflow-y: auto; }
    .sidebar-nav li { margin-bottom: 2px; }
    .sidebar-nav a {
      display: flex;
      align-items: center;
      gap: 11px;
      padding: 9px 10px;
      border-radius: 999px;
      color: var(--muted);
      text-decoration: none;
      font-size: 0.9rem;
      font-weight: 500;
      white-space: nowrap;
      transition: background 0.15s, color 0.15s;
      overflow: visible;
    }
    .sidebar-nav a:hover {
      background: var(--card);
      color: var(--text);
    }
    /* Aktiver Menüpunkt: leichter Hintergrund + dunkler Text, wie Screenshot */
    .sidebar-nav a.active {
      background: var(--card);
      color: var(--text);
      font-weight: 600;
    }
    /* Kleiner farbiger Punkt links bei aktivem Item */
    .sidebar-nav a.active .sidebar-nav-icon svg {
      stroke: var(--accent-strong);
    }
    /* "Neu" Badge wie im Screenshot */
    .nav-badge {
      display: inline-block;
      padding: 2px 7px;
      border-radius: 999px;
      background: var(--accent-bg-mid);
      color: var(--accent);
      font-size: 0.75rem;
      font-weight: 700;
      letter-spacing: 0.3px;
      margin-left: auto;
      flex-shrink: 0;
    }
    .sidebar.collapsed .nav-badge { display: none; }

    .sidebar-nav-icon {
      flex-shrink: 0;
      min-width: 18px;
      width: 18px; height: 18px;
      display: flex; align-items: center; justify-content: center;
    }
    .sidebar-nav-icon svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

    .nav-label {
      opacity: 1;
      transition: opacity 0.16s, width 0.2s, max-width 0.2s;
      font-size: 0.88rem;
      overflow: hidden;
      white-space: nowrap;
      max-width: 200px;
    }
    .sidebar.collapsed .nav-label { opacity: 0; max-width: 0; pointer-events: none; }
    .sidebar.collapsed .sidebar-nav a { justify-content: center; padding: 9px 0; gap: 0; }

    /* ═══════════════════════════════════════════
       MAIN CONTENT
    ═══════════════════════════════════════════ */
    .main-wrap {
      margin-left: var(--sidebar-w);
      margin-top: var(--header-h);
      min-height: calc(100vh - var(--header-h));
      display: flex;
      flex-direction: column;
      transition: margin-left 0.28s cubic-bezier(.4,0,.2,1);
    }
    .sidebar.collapsed ~ .main-wrap { margin-left: var(--sidebar-collapsed); }

    .main-content {
      flex: 1;
      padding: 48px 40px 40px;
      max-width: 960px;
      width: 100%;
      margin: 0 auto;
    }

    /* ─── Page sections (each tool page) ─── */
    .page { display: none; animation: fadeIn 0.3s ease; }
    .page.active { display: block; }
    @keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

    /* ═══════════════════════════════════════════
       HOME / WILLKOMMEN
    ═══════════════════════════════════════════ */
    .home-hero {
      text-align: center;
      padding: 24px 24px 16px;
    }
    .home-hero .badge {
      display: inline-block;
      padding: 6px 16px;
      border-radius: 999px;
      background: var(--accent-bg);
      border: 1px solid var(--accent-border);
      color: var(--accent);
      font-size: 0.82rem;
      font-weight: 600;
      letter-spacing: 0.8px;
      text-transform: uppercase;
      margin-bottom: 24px;
    }
    .home-hero h1 {
      font-size: 2.4rem;
      font-weight: 800;
      line-height: 1.2;
      margin-bottom: 20px;
      letter-spacing: -0.3px;
    }
    .home-hero h1 span { color: var(--accent-strong); }
    .home-hero .subtitle {
      color: var(--muted);
      font-size: 1.05rem;
      line-height: 1.7;
      max-width: 680px;
      margin: 0 auto 48px;
    }

    /* Feature cards row */
    .feature-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 18px;
      max-width: 900px;
      margin: 0 auto 56px;
    }
    .feature-card {
      background: rgba(30, 30, 30, 0.65);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      border: 1px solid rgba(136, 146, 176, 0.15);
      border-radius: var(--radius);
      padding: 28px 20px 24px;
      text-align: center;
      text-decoration: none;
      color: var(--text);
      transition: border-color 0.25s, transform 0.2s, box-shadow 0.25s;
      cursor: pointer;
    }
    .feature-card:hover {
      border-color: var(--accent-border);
      transform: translateY(-4px);
      box-shadow: 0 8px 32px rgba(255,77,77,0.12), 0 0 0 1px var(--accent-border);
    }
    :root[data-theme="light"] .feature-card {
      background: rgba(255, 255, 255, 0.8);
      border-color: rgba(46, 64, 92, 0.12);
    }
    :root[data-theme="light"] .feature-card:hover {
      box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    }
    .feature-card .fc-icon {
      width: 48px; height: 48px;
      border-radius: 14px;
      background: var(--accent-bg);
      border: 1px solid var(--accent-border);
      display: flex; align-items: center; justify-content: center;
      margin: 0 auto 16px;
    }
    .feature-card .fc-icon svg { width: 24px; height: 24px; stroke: var(--accent); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
    .feature-card h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 6px; }
    .feature-card p { font-size: 0.84rem; color: var(--muted); line-height: 1.5; }
    .feature-card { position: relative; }
    .fc-cta {
      display: inline-block;
      margin-top: 18px;
      padding: 8px 18px;
      border-radius: 999px;
      background: var(--accent-bg);
      border: 1px solid var(--accent-border);
      color: var(--accent);
      font-size: 0.82rem;
      font-weight: 700;
      font-family: inherit;
      cursor: pointer;
      pointer-events: none;
      transition: background 0.15s, border-color 0.15s, color 0.15s;
    }
    .feature-card:hover .fc-cta {
      background: var(--accent);
      border-color: var(--accent);
      color: #fff;
    }
    .fc-cta--wip {
      background: transparent;
      border-color: var(--border);
      color: var(--muted);
    }
    .feature-card:hover .fc-cta--wip {
      background: transparent;
      border-color: var(--border);
      color: var(--muted);
    }
    .fc-wip-badge {
      position: absolute; top: 10px; right: 10px;
      background: rgba(251,191,36,0.15); border: 1px solid rgba(251,191,36,0.4);
      color: #d97706; font-size: 0.68rem; font-weight: 700;
      padding: 2px 8px; border-radius: 999px; letter-spacing: 0.4px;
      text-transform: uppercase; pointer-events: none;
    }

    /* Stats row */
    .stats-row {
      display: flex;
      gap: 18px;
      justify-content: center;
      flex-wrap: wrap;
      max-width: 900px;
      margin: 0 auto;
    }
    .stat-card {
      background: rgba(30, 30, 30, 0.65);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      border: 1px solid rgba(136, 146, 176, 0.15);
      border-radius: 14px;
      padding: 22px 28px;
      flex: 1;
      text-align: center;
    }
    .stat-card .stat-num {
      font-size: 1.7rem;
      font-weight: 800;
      color: var(--accent-strong);
    }
    .stat-card .stat-label {
      font-size: 0.82rem;
      color: var(--muted);
      margin-top: 4px;
    }
    .stat-card.kpi-highlight {
      border-color: var(--accent-border);
      background: var(--accent-bg);
    }
    .stat-card.kpi-highlight .stat-num {
      color: var(--accent-strong);
    }

    /* Newsletter Übersetzungsstatus-Karte */
    .nl-status-wrap {
      max-width: 900px;
      margin: 40px auto 0;
    }
    .nl-status-title {
      font-size: 1rem;
      font-weight: 700;
      margin-bottom: 14px;
      color: var(--text);
    }
    .nl-status-list {
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      overflow: hidden;
    }
    .nl-status-row {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 11px 16px;
      border-bottom: 1px solid var(--border);
    }
    .nl-status-row:last-child { border-bottom: none; }
    .nl-status-name {
      flex: 1;
      font-size: 0.875rem;
      font-weight: 600;
      color: var(--text);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .nl-status-meta {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-shrink: 0;
    }
    .nl-status-kw {
      font-size: 0.75rem;
      color: var(--muted);
    }
    .nl-status-badge {
      font-size: 0.72rem;
      font-weight: 600;
      padding: 2px 9px;
      border-radius: 20px;
      border: 1px solid;
    }
    .nl-status-badge--sent {
      background: rgba(16,185,129,0.12);
      border-color: rgba(16,185,129,0.35);
      color: #10b981;
    }
    .nl-status-badge--draft {
      background: rgba(251,191,36,0.12);
      border-color: rgba(251,191,36,0.35);
      color: #f59e0b;
    }
    .nl-status-langs {
      display: flex;
      gap: 4px;
      flex-wrap: wrap;
      flex-shrink: 0;
    }
    .nl-lang-badge {
      font-size: 0.68rem;
      font-weight: 700;
      padding: 2px 7px;
      border-radius: 20px;
      border: 1px solid;
      letter-spacing: 0.02em;
    }
    .nl-lang-badge--done {
      background: rgba(16,185,129,0.12);
      border-color: rgba(16,185,129,0.35);
      color: #10b981;
    }
    .nl-lang-badge--pending {
      background: rgba(251,191,36,0.12);
      border-color: rgba(251,191,36,0.35);
      color: #f59e0b;
    }
    .nl-lang-none { font-size: 0.8rem; color: var(--muted); }

    .nl-status-loading, .nl-status-empty {
      padding: 24px;
      text-align: center;
      color: var(--muted);
      font-size: 0.875rem;
    }

    /* ═══════════════════════════════════════════
       HERO SLIDER
    ═══════════════════════════════════════════ */
    #hero-slider-wrapper {
      display: block;
    }
    .hero-slider {
      position: relative;
      margin: 0;
      border-radius: 0;
      overflow: hidden;
      height: 380px;
      background: var(--card);
    }
    .hero-slide {
      position: absolute;
      inset: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      opacity: 0;
      transform: translateX(30px);
      transition: opacity 0.4s ease, transform 0.4s ease;
      pointer-events: none;
    }
    .hero-slide.active {
      opacity: 1;
      transform: translateX(0);
      pointer-events: auto;
    }
    /* Hintergrundbild-Schicht (optional, per inline style="background-image:url(...)") */
    .hero-slide-bg-img {
      position: absolute;
      inset: 0;
      z-index: 0;
      background-size: cover;
      background-position: center;
    }
    /* Gradient-Overlay liegt über dem Bild */
    .hero-slide-bg { position: absolute; inset: 0; z-index: 1; }
    .hero-slide-bg--newsletter { background: linear-gradient(100deg, rgba(14,14,14,0.95) 20%, rgba(255,77,77,0.18) 80%, rgba(230,57,70,0.25) 100%); }
    .hero-slide-bg--freisteller { background: linear-gradient(100deg, rgba(14,14,14,0.95) 20%, rgba(99,102,241,0.18) 80%, rgba(139,92,246,0.22) 100%); }
    .hero-slide-bg--agent       { background: linear-gradient(100deg, rgba(14,14,14,0.95) 20%, rgba(0,229,204,0.12) 80%, rgba(16,185,129,0.20) 100%); }
    .hero-slide-content {
      position: relative;
      z-index: 2;
      padding: 48px 56px;
      max-width: 580px;
      text-align: center;
    }
    .hero-slide-tag {
      display: inline-block;
      padding: 4px 12px;
      border-radius: 999px;
      background: var(--accent-bg);
      border: 1px solid var(--accent-border);
      color: var(--accent);
      font-size: 0.72rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.8px;
      margin-bottom: 16px;
    }
    .hero-slide-content h1 {
      font-size: 2rem;
      font-weight: 800;
      line-height: 1.2;
      margin-bottom: 12px;
      letter-spacing: -0.3px;
      color: var(--text);
    }
    .hero-slide-content h1 span { color: var(--accent-strong); }
    .hero-slide-content p {
      font-size: 0.92rem;
      color: var(--muted);
      line-height: 1.65;
      margin-bottom: 24px;
      max-width: 420px;
    }
    .hero-slide-cta {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 10px 22px;
      border-radius: 999px;
      background: var(--accent-strong);
      color: #fff;
      font-weight: 700;
      font-size: 0.88rem;
      border: none;
      cursor: pointer;
      font-family: inherit;
      transition: opacity 0.2s, transform 0.15s;
    }
    .hero-slide-cta:hover { opacity: 0.88; transform: translateY(-1px); }
    .hero-slide-deco {
      position: absolute;
      right: 56px;
      top: 50%;
      transform: translateY(-50%);
      z-index: 2;
      opacity: 0.06;
    }
    .hero-slide-deco svg { width: 180px; height: 180px; stroke: var(--text); fill: none; stroke-width: 0.8; stroke-linecap: round; stroke-linejoin: round; }
    .hero-slider-arrow {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      z-index: 10;
      width: 36px; height: 36px;
      border-radius: 50%;
      border: 1px solid var(--border);
      background: rgba(0,0,0,0.3);
      color: var(--text);
      display: flex; align-items: center; justify-content: center;
      cursor: pointer;
      transition: background 0.15s, border-color 0.15s;
    }
    .hero-slider-arrow:hover { background: var(--panel); border-color: var(--accent-border); }
    .hero-slider-arrow svg { width: 16px; height: 16px; }
    .hero-slider-prev { left: 14px; }
    .hero-slider-next { right: 14px; }
    .hero-slider-dots {
      position: absolute;
      bottom: 16px;
      left: 50%;
      transform: translateX(-50%);
      display: flex;
      gap: 7px;
      z-index: 10;
    }
    .hero-dot {
      width: 7px; height: 7px;
      border-radius: 50%;
      border: none;
      background: rgba(255,255,255,0.25);
      cursor: pointer;
      padding: 0;
      transition: background 0.2s, transform 0.2s;
    }
    .hero-dot.active { background: var(--accent); transform: scale(1.35); }

    /* ═══════════════════════════════════════════
       BILDVERWALTUNG
    ═══════════════════════════════════════════ */
    .imgmgr-toolbar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      flex-wrap: wrap;
      margin-bottom: 20px;
    }
    .imgmgr-stats {
      font-size: 0.875rem;
      color: var(--muted);
    }
    .imgmgr-unused-num { color: var(--accent-strong); font-weight: 700; }
    .imgmgr-actions {
      display: flex;
      align-items: center;
      gap: 12px;
      flex-wrap: wrap;
    }
    .imgmgr-filter-label {
      display: flex;
      align-items: center;
      gap: 6px;
      font-size: 0.875rem;
      color: var(--text);
      cursor: pointer;
    }
    .imgmgr-btn-danger {
      display: flex;
      align-items: center;
      gap: 6px;
      padding: 7px 14px;
      border-radius: 8px;
      border: 1px solid rgba(244,63,94,0.4);
      background: rgba(244,63,94,0.1);
      color: #f43f5e;
      font-size: 0.8rem;
      font-weight: 600;
      cursor: pointer;
      transition: background 0.15s, border-color 0.15s;
    }
    .imgmgr-btn-danger:hover:not(:disabled) {
      background: rgba(244,63,94,0.18);
      border-color: rgba(244,63,94,0.6);
    }
    .imgmgr-btn-danger:disabled { opacity: 0.4; cursor: default; }

    .imgmgr-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
      gap: 14px;
    }
    .imgmgr-card {
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      overflow: hidden;
      position: relative;
      transition: border-color 0.15s;
    }
    .imgmgr-card--unused {
      border-color: rgba(251,191,36,0.4);
    }
    .imgmgr-thumb {
      width: 100%;
      aspect-ratio: 1;
      background: var(--surface);
      overflow: hidden;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .imgmgr-thumb img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    .imgmgr-card-info {
      padding: 8px 10px;
    }
    .imgmgr-card-name {
      font-size: 0.72rem;
      color: var(--muted);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      margin-bottom: 4px;
    }
    .imgmgr-card-meta {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 6px;
    }
    .imgmgr-size {
      font-size: 0.7rem;
      color: var(--muted);
    }
    .imgmgr-badge {
      font-size: 0.65rem;
      font-weight: 700;
      padding: 1px 7px;
      border-radius: 20px;
      border: 1px solid;
      white-space: nowrap;
    }
    .imgmgr-badge--used {
      background: rgba(16,185,129,0.1);
      border-color: rgba(16,185,129,0.3);
      color: #10b981;
    }
    .imgmgr-badge--unused {
      background: rgba(251,191,36,0.1);
      border-color: rgba(251,191,36,0.35);
      color: #f59e0b;
    }
    .imgmgr-del-btn {
      position: absolute;
      top: 6px;
      right: 6px;
      width: 26px;
      height: 26px;
      border-radius: 6px;
      border: 1px solid rgba(244,63,94,0.35);
      background: rgba(244,63,94,0.12);
      color: #f43f5e;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      opacity: 0;
      transition: opacity 0.15s, background 0.15s;
    }
    .imgmgr-card:hover .imgmgr-del-btn { opacity: 1; }
    .imgmgr-del-btn:hover { background: rgba(244,63,94,0.25); }

    .imgmgr-loading, .imgmgr-empty {
      grid-column: 1 / -1;
      padding: 40px;
      text-align: center;
      color: var(--muted);
      font-size: 0.875rem;
    }

    /* ═══════════════════════════════════════════
       TOOL PLACEHOLDER PAGES
    ═══════════════════════════════════════════ */
    .tool-page-header {
      margin-bottom: 32px;
    }
    .tool-page-header h1 { font-size: 1.7rem; font-weight: 800; margin-bottom: 6px; }
    .tool-page-header p { color: var(--muted); font-size: 0.96rem; }

    .placeholder-box {
      background: var(--card);
      border: 1px dashed var(--border);
      border-radius: var(--radius);
      padding: 80px 40px;
      text-align: center;
      color: var(--muted);
    }
    .placeholder-box .ph-icon {
      width: 64px; height: 64px;
      border-radius: 18px;
      background: var(--accent-bg);
      border: 1px solid var(--accent-border);
      display: flex; align-items: center; justify-content: center;
      margin: 0 auto 20px;
    }
    .placeholder-box .ph-icon svg { width: 30px; height: 30px; stroke: var(--accent); fill: none; stroke-width: 1.8; }
    .placeholder-box h3 { color: var(--text); font-size: 1.1rem; margin-bottom: 8px; }
    .placeholder-box p { font-size: 0.92rem; max-width: 440px; margin: 0 auto; line-height: 1.6; }

    /* ═══════════════════════════════════════════
       CHAT WINDOW (Marketing-Agent)
    ═══════════════════════════════════════════ */
    .chat-layout {
      display: flex;
      flex-direction: column;
      height: calc(100vh - var(--header-h) - 140px);
      min-height: 440px;
      max-height: 720px;
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      overflow: hidden;
    }

    /* Chat Header-Bar */
    .chat-header {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 14px 18px;
      border-bottom: 1px solid var(--border);
      background: var(--panel);
      flex-shrink: 0;
    }
    .chat-header-avatar {
      width: 34px; height: 34px;
      border-radius: 10px;
      background: linear-gradient(135deg, var(--accent), var(--accent-strong));
      display: flex; align-items: center; justify-content: center;
      flex-shrink: 0;
    }
    .chat-header-avatar svg { width: 18px; height: 18px; stroke: #fff; fill: none; stroke-width: 2.2; }
    .chat-header-info h4 { font-size: 0.92rem; font-weight: 700; color: var(--text); margin: 0; }
    .chat-header-info span { font-size: 0.78rem; color: var(--muted); }
    .chat-status-dot {
      width: 8px; height: 8px;
      border-radius: 50%;
      background: #34d399;
      display: inline-block;
      margin-right: 5px;
      box-shadow: 0 0 6px rgba(52,211,153,0.5);
    }
    .chat-status-dot.offline { background: var(--muted); box-shadow: none; }

    /* Webhook-Bar entfernt – URL wird im JS als Konstante gesetzt */

    /* Message list */
    .chat-messages {
      flex: 1;
      overflow-y: auto;
      padding: 20px 18px;
      display: flex;
      flex-direction: column;
      gap: 16px;
      scroll-behavior: smooth;
    }
    .chat-messages::-webkit-scrollbar { width: 6px; }
    .chat-messages::-webkit-scrollbar-track { background: transparent; }
    .chat-messages::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

    /* einzelne Nachricht */
    .msg {
      display: flex;
      gap: 10px;
      align-items: flex-end;
    }
    .msg.user { flex-direction: row-reverse; }

    .msg-avatar {
      width: 28px; height: 28px;
      border-radius: 8px;
      flex-shrink: 0;
      display: flex; align-items: center; justify-content: center;
      font-size: 0.75rem; font-weight: 700;
    }
    .msg.bot .msg-avatar {
      background: linear-gradient(135deg, var(--accent), var(--accent-strong));
      color: #fff;
    }
    .msg.user .msg-avatar {
      background: var(--border);
      color: var(--text);
    }

    .msg-inner {
      max-width: 75%;
    }
    .msg-bubble {
      padding: 10px 14px;
      border-radius: 14px;
      font-size: 0.9rem;
      line-height: 1.55;
      overflow-wrap: break-word;
    }
    .msg.bot .msg-bubble {
      background: var(--panel);
      border: 1px solid var(--border);
      color: var(--text);
      border-bottom-left-radius: 4px;
    }
    .msg.user .msg-bubble {
      background: linear-gradient(135deg, var(--accent), var(--accent-strong));
      color: #fff;
      border: none;
      border-bottom-right-radius: 4px;
    }
    .msg-time {
      font-size: 0.75rem;
      color: var(--muted);
      margin-top: 3px;
      padding: 0 4px;
    }
    .msg.user .msg-time { text-align: right; }

    /* Markdown-Rendering in Bot-Bubbles */
    .msg.bot .msg-bubble p { margin: 0 0 0.5em; }
    .msg.bot .msg-bubble p:last-child { margin-bottom: 0; }
    .msg.bot .msg-bubble h3,
    .msg.bot .msg-bubble h4,
    .msg.bot .msg-bubble h5 { margin: 0.6em 0 0.2em; font-size: 0.95rem; }
    .msg.bot .msg-bubble ul,
    .msg.bot .msg-bubble ol { margin: 0.3em 0 0.5em 1.2em; padding: 0; }
    .msg.bot .msg-bubble li { margin-bottom: 0.15em; }
    .msg.bot .msg-bubble strong { font-weight: 600; }
    .msg.bot .msg-bubble em { font-style: italic; }
    .msg.bot .msg-bubble code {
      background: var(--bg);
      border: 1px solid var(--border);
      border-radius: 3px;
      padding: 1px 5px;
      font-size: 0.82em;
      font-family: monospace;
    }

    /* Typing-Indikator */
    .typing-bubble .msg-bubble {
      background: var(--panel);
      border: 1px solid var(--border);
      color: var(--muted);
      border-bottom-left-radius: 4px;
    }
    .dots {
      display: inline-flex; gap: 4px; align-items: center; padding: 2px 2px;
    }
    .dots span {
      width: 6px; height: 6px;
      border-radius: 50%;
      background: var(--muted);
      animation: dotPulse 1.2s infinite;
    }
    .dots span:nth-child(2) { animation-delay: 0.2s; }
    .dots span:nth-child(3) { animation-delay: 0.4s; }
    @keyframes dotPulse { 0%,60%,100% { opacity: 0.3; } 30% { opacity: 1; } }

    /* Eingabezeile */
    .chat-input-bar {
      display: flex;
      gap: 10px;
      align-items: center;
      padding: 12px 18px;
      border-top: 1px solid var(--border);
      background: var(--panel);
      flex-shrink: 0;
    }
    .chat-input-bar textarea {
      flex: 1;
      resize: none;
      max-height: 100px;
      padding: 10px 14px;
      border-radius: 10px;
      border: 1px solid var(--border);
      background: var(--card);
      color: var(--text);
      font-size: 0.9rem;
      font-family: inherit;
      outline: none;
      line-height: 1.5;
      transition: border-color 0.2s;
    }
    .chat-input-bar textarea:focus { border-color: var(--accent); }
    .chat-input-bar textarea::placeholder { color: var(--muted); }
    .chat-input-bar textarea:disabled { opacity: 0.5; cursor: not-allowed; }

    .chat-send-btn {
      width: 40px; height: 40px;
      border-radius: 999px;
      border: none;
      background: linear-gradient(135deg, var(--accent), var(--accent-strong));
      color: #fff;
      display: flex; align-items: center; justify-content: center;
      cursor: pointer;
      flex-shrink: 0;
      transition: transform 0.15s, box-shadow 0.15s;
    }
    .chat-send-btn:hover { transform: scale(1.05); box-shadow: 0 4px 14px var(--accent-glow); }
    .chat-send-btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }
    .chat-send-btn svg { width: 18px; height: 18px; stroke: #fff; fill: none; stroke-width: 2.2; }

    /* Fehlermeldung */
    .chat-error {
      background: rgba(239,68,68,0.12);
      border: 1px solid rgba(239,68,68,0.3);
      color: #f87171;
      border-radius: 8px;
      padding: 8px 12px;
      font-size: 0.82rem;
      margin: 0 18px 8px;
      display: none;
    }
    .chat-error.show { display: block; }

    /* ═══════════════════════════════════════════
       NEWSLETTER TOOL FORM
    ═══════════════════════════════════════════ */
    .nl-form { display: flex; flex-direction: column; gap: 24px; }

    .nl-section {
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 24px;
    }
    .nl-section-title {
      font-size: 0.8rem;
      font-weight: 700;
      color: var(--muted);
      text-transform: uppercase;
      letter-spacing: 0.7px;
      margin-bottom: 20px;
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .nl-section-title svg { width: 15px; height: 15px; stroke: var(--accent); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

    .nl-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
    @media (max-width: 640px) { .nl-row { grid-template-columns: 1fr; } }

    .nl-field { display: flex; flex-direction: column; gap: 6px; }
    .nl-label {
      font-size: 0.84rem;
      font-weight: 600;
      color: var(--text);
      display: flex;
      align-items: center;
      gap: 7px;
    }
    .nl-optional {
      font-size: 0.75rem;
      font-weight: 500;
      color: var(--muted);
      background: var(--border);
      padding: 1px 7px;
      border-radius: 999px;
    }
    .nl-lang-grid {
      display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px;
    }
    .nl-lang-chip {
      display: inline-flex; align-items: center; gap: 6px;
      border: 1px solid var(--border); border-radius: 8px;
      padding: 5px 12px; cursor: pointer;
      font-size: 0.82rem; font-weight: 600; color: var(--muted);
      background: var(--card); transition: border-color 0.18s, color 0.18s, background 0.18s;
      user-select: none;
    }
    .nl-lang-chip input[type="checkbox"] { display: none; }
    .nl-lang-chip:has(input:checked) {
      border-color: var(--accent); color: var(--accent);
      background: var(--accent-bg);
    }

    .nl-input, .nl-select, .nl-textarea {
      background: var(--panel);
      border: 1px solid var(--border);
      border-radius: 8px;
      color: var(--text);
      font-family: inherit;
      font-size: 0.9rem;
      padding: 9px 12px;
      outline: none;
      transition: border-color 0.2s;
      width: 100%;
    }
    .nl-input:focus, .nl-select:focus, .nl-textarea:focus { border-color: var(--accent); }
    .nl-input::placeholder, .nl-textarea::placeholder { color: var(--muted); }
    .nl-textarea { resize: vertical; min-height: 80px; line-height: 1.55; }
    .nl-select {
      appearance: none;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpolyline points='6 9 12 15 18 9' stroke='%237a7f8e' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: right 12px center;
      padding-right: 34px;
      cursor: pointer;
    }

    /* Template-Auswahlkacheln */
    .nl-template-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
      gap: 10px;
    }
    .nl-template-card {
      border: 1.5px solid var(--border);
      border-radius: 10px;
      padding: 14px 12px 12px;
      cursor: pointer;
      transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
      display: flex;
      flex-direction: column;
      gap: 6px;
      text-align: left;
      background: transparent;
      color: var(--text);
      font-family: inherit;
    }
    .nl-template-card:hover { border-color: var(--accent); background: var(--accent-bg); }
    .nl-template-card.selected {
      border-color: var(--accent-strong);
      background: var(--accent-bg-mid);
      box-shadow: 0 0 0 3px var(--accent-bg);
    }
    .nl-tpl-icon {
      width: 64px; height: 50px;
      border-radius: 5px;
      overflow: hidden;
      display: flex;
      align-items: center;
      justify-content: center;
      margin-bottom: 4px;
    }
    .nl-tpl-icon svg {
      width: 100%;
      height: 100%;
    }
    .nl-tpl-icon .tpl-bg { fill: var(--panel); }
    .nl-tpl-icon .tpl-stroke { stroke: var(--border); }
    .nl-tpl-icon .tpl-inner { fill: var(--border); }
    .nl-template-card.selected .nl-tpl-icon .tpl-bg { fill: var(--accent-bg); }
    .nl-template-card.selected .nl-tpl-icon .tpl-stroke { stroke: var(--accent-border); }
    .nl-template-card.selected .nl-tpl-icon .tpl-inner { fill: var(--accent); opacity: 0.4; }
    .nl-template-card:hover .nl-tpl-icon .tpl-inner { fill: var(--accent); opacity: 0.3; }
    .nl-tpl-name { font-size: 0.8rem; font-weight: 700; line-height: 1.2; }
    .nl-tpl-info { font-size: 0.75rem; color: var(--muted); }

    /* Produkt-Karten */
    .nl-products { display: flex; flex-direction: column; gap: 14px; }
    .nl-product-card {
      background: var(--panel);
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: 18px;
      min-width: 0;
      overflow: hidden;
    }
    .nl-product-head {
      font-size: 0.78rem;
      font-weight: 700;
      color: var(--accent);
      text-transform: uppercase;
      letter-spacing: 0.5px;
      margin-bottom: 14px;
      display: flex;
      align-items: center;
      gap: 6px;
    }
    .nl-product-head::after { content: ''; flex: 1; height: 1px; background: var(--border); }

    /* Toggle-Switch */
    .nl-toggle-row {
      display: flex;
      align-items: center;
      gap: 10px;
      padding-top: 4px;
    }
    .nl-toggle-label { font-size: 0.84rem; font-weight: 600; color: var(--text); cursor: pointer; user-select: none; }
    .nl-toggle {
      position: relative;
      width: 36px; height: 20px;
      flex-shrink: 0;
    }
    .nl-toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
    .nl-toggle-track {
      position: absolute;
      inset: 0;
      border-radius: 999px;
      background: var(--border);
      cursor: pointer;
      transition: background 0.2s;
    }
    .nl-toggle input:checked + .nl-toggle-track { background: var(--accent-strong); }
    .nl-toggle-track::after {
      content: '';
      position: absolute;
      left: 3px; top: 3px;
      width: 14px; height: 14px;
      border-radius: 50%;
      background: #fff;
      transition: transform 0.2s;
    }
    .nl-toggle input:checked + .nl-toggle-track::after { transform: translateX(16px); }

    /* Submit & Feedback */
    .nl-submit-btn {
      width: 100%;
      padding: 14px 20px;
      border-radius: 999px;
      border: none;
      background: linear-gradient(135deg, var(--accent), var(--accent-strong));
      color: #fff;
      font-family: inherit;
      font-size: 1rem;
      font-weight: 700;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      transition: transform 0.15s, box-shadow 0.15s;
    }
    .nl-submit-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px var(--accent-glow); }
    .nl-submit-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
    .nl-submit-btn svg { width: 18px; height: 18px; stroke: #fff; fill: none; stroke-width: 2.2; }
    .nl-feedback {
      border-radius: 8px;
      padding: 12px 16px;
      font-size: 0.88rem;
      font-weight: 500;
      display: none;
      margin-bottom: 12px;
      align-items: center;
      gap: 10px;
    }
    .nl-feedback svg { width: 18px; height: 18px; flex-shrink: 0; }
    .nl-feedback.success { display: flex; background: rgba(52,211,153,0.12); border: 1px solid rgba(52,211,153,0.3); color: #34d399; }
    .nl-feedback.error   { display: flex; background: rgba(239,68,68,0.12);  border: 1px solid rgba(239,68,68,0.3);  color: #f87171; }

    /* ── Newsletter: Zweispalten-Layout ── */
    .nl-layout {
      display: grid;
      grid-template-columns: 1fr 300px;
      gap: 24px;
      align-items: start;
    }
    @media (max-width: 800px) { .nl-layout { grid-template-columns: 1fr; } }

    /* Vorschau-Sidebar */
    .nl-preview {
      position: sticky;
      top: calc(var(--header-h) + 20px);
      display: flex;
      flex-direction: column;
      gap: 10px;
      max-height: calc(100vh - var(--header-h) - 40px);
      overflow: hidden;
    }
    .nl-preview-label {
      display: flex;
      align-items: center;
      justify-content: space-between;
      font-size: 0.78rem;
      font-weight: 700;
      color: var(--muted);
      text-transform: uppercase;
      letter-spacing: 0.7px;
      padding: 0 2px;
    }
    .nl-preview-live { font-size: 0.75rem; color: #34d399; font-weight: 700; }
    .nl-preview-card {
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      overflow-y: auto;
      flex: 1;
      min-height: 0;
    }
    .nl-preview-card::-webkit-scrollbar { width: 5px; }
    .nl-preview-card::-webkit-scrollbar-track { background: transparent; }
    .nl-preview-card::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
    .nlpv-email-head {
      background: var(--panel);
      border-bottom: 1px solid var(--border);
      padding: 12px 14px;
    }
    .nlpv-subject {
      font-size: 0.86rem;
      font-weight: 700;
      color: var(--text);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      margin-bottom: 2px;
    }
    .nlpv-subject.empty, .nlpv-campaign.empty { color: var(--muted); font-style: italic; font-weight: 400; }
    .nlpv-campaign { font-size: 0.74rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .nlpv-template { padding: 12px; display: flex; flex-direction: column; }
    .nlpv-empty { color: var(--muted); font-size: 0.82rem; text-align: center; padding: 36px 0; margin: 0; }
    .nlpv-grid { display: flex; flex-direction: column; gap: 5px; }
    .nlpv-row  { display: flex; gap: 5px; }
    .nlpv-tile {
      flex: 1;
      border-radius: 5px;
      background-color: var(--border);
      background-size: cover;
      background-position: center;
      position: relative;
      overflow: hidden;
    }
    .nlpv-tile-info {
      position: absolute;
      bottom: 0; left: 0; right: 0;
      background: rgba(255,255,255,0.92);
      backdrop-filter: blur(4px);
      padding: 3px 5px;
      font-size: 0.56rem;
      line-height: 1.5;
      color: #1a1b22;
    }
    .nlpv-tile-stars { color: #f59e0b; }
    .nlpv-tile-cat   { font-weight: 800; text-transform: uppercase; display: block; }
    .nlpv-tile-price { font-weight: 700; display: block; }
    .nlpv-tile-title { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; opacity: 0.7; }
    .nlpv-info {
      border-radius: 6px;
      background: var(--panel);
      border: 1px solid var(--border);
      padding: 12px;
      min-height: 80px;
    }
    .nlpv-info-headline { font-size: 0.8rem; font-weight: 800; color: var(--text); margin-bottom: 3px; }
    .nlpv-info-subline  { font-size: 0.75rem; font-weight: 600; color: var(--muted); margin-bottom: 5px; }
    .nlpv-info-body     { font-size: 0.68rem; color: var(--muted); line-height: 1.4; }
    .nlpv-container-sep {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 6px 0 4px;
      font-size: 0.65rem;
      font-weight: 700;
      color: var(--muted);
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }
    .nlpv-container-sep::before,
    .nlpv-container-sep::after {
      content: '';
      flex: 1;
      height: 1px;
      background: var(--border);
    }
    .nlpv-container-preview-wrap {
      cursor: pointer;
      border-radius: 8px;
      border: 2px solid transparent;
      transition: border-color 0.18s, box-shadow 0.18s;
      position: relative;
      overflow: hidden;
    }
    .nlpv-container-preview-wrap:hover {
      border-color: var(--accent);
      box-shadow: 0 0 0 3px var(--accent-glow, rgba(99,102,241,0.12));
    }
    .nlpv-container-preview-wrap::after {
      content: '✎ Bearbeiten';
      position: absolute; top: 6px; right: 8px;
      background: var(--accent); color: #fff;
      font-size: 0.65rem; font-weight: 700; letter-spacing: 0.3px;
      padding: 2px 8px; border-radius: 999px;
      opacity: 0; pointer-events: none;
      transition: opacity 0.18s;
    }
    .nlpv-container-preview-wrap:hover::after { opacity: 1; }

    .nlpv-send-info {
      display: flex;
      align-items: center;
      gap: 7px;
      padding: 9px 14px 10px;
      border-top: 1px solid var(--border);
      font-size: 0.78rem;
      color: var(--muted);
    }
    .nlpv-send-info svg { width: 13px; height: 13px; stroke: var(--accent); fill: none; stroke-width: 2; flex-shrink: 0; }
    .nl-payload-details {
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      overflow: hidden;
    }
    .nl-payload-details summary {
      padding: 9px 14px;
      font-size: 0.78rem;
      font-weight: 600;
      color: var(--muted);
      cursor: pointer;
      user-select: none;
      list-style: none;
      display: flex;
      align-items: center;
      gap: 7px;
    }
    .nl-payload-details summary::-webkit-details-marker { display: none; }
    .nl-payload-details summary::before { content: '▶'; font-size: 0.6rem; transition: transform 0.2s; display: inline-block; }
    .nl-payload-details[open] summary::before { transform: rotate(90deg); }
    .nl-payload-json {
      margin: 0;
      padding: 12px 14px;
      font-size: 0.75rem;
      color: var(--muted);
      background: var(--panel);
      border-top: 1px solid var(--border);
      overflow: auto;
      max-height: 220px;
      white-space: pre;
      font-family: 'SF Mono', 'Cascadia Code', 'Fira Code', monospace;
      line-height: 1.5;
    }

    /* Logo-Picker für Marken-Karten */

    /* ── Image Upload Dropzone ── */
    .nl-img-upload {
      display: flex;
      flex-direction: column;
      gap: 8px;
    }
    .nl-img-dropzone {
      position: relative;
      border: 2px dashed var(--border);
      border-radius: 10px;
      padding: 20px 16px;
      text-align: center;
      cursor: pointer;
      transition: border-color 0.2s, background 0.2s;
      min-height: 90px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 6px;
    }
    .nl-img-dropzone:hover,
    .nl-img-dropzone.dragover {
      border-color: var(--accent);
      background: var(--accent-bg);
    }
    .nl-img-dropzone.has-image {
      border-style: solid;
      border-color: var(--accent-border);
      padding: 8px;
      overflow: hidden;
    }
    .nl-img-dropzone input[type="file"] {
      position: absolute;
      width: 1px;
      height: 1px;
      opacity: 0;
      pointer-events: none;
    }
    .nl-img-dropzone-icon svg {
      width: 28px;
      height: 28px;
      stroke: var(--muted);
      fill: none;
      stroke-width: 1.5;
      stroke-linecap: round;
      stroke-linejoin: round;
    }
    .nl-img-dropzone:hover .nl-img-dropzone-icon svg,
    .nl-img-dropzone.dragover .nl-img-dropzone-icon svg {
      stroke: var(--accent);
    }
    .nl-img-dropzone-text {
      font-size: 0.82rem;
      color: var(--muted);
      line-height: 1.4;
    }
    .nl-img-dropzone-text strong {
      color: var(--accent);
    }
    .nl-img-dropzone-hint {
      font-size: 0.72rem;
      color: var(--muted);
      opacity: 0.7;
    }
    .nl-img-preview {
      width: 100%;
      max-height: 160px;
      object-fit: contain;
      border-radius: 6px;
      display: block;
    }
    .nl-img-preview-bar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      min-width: 0;
      overflow: hidden;
    }
    .nl-img-filename {
      font-size: 0.78rem;
      color: var(--muted);
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      flex: 1;
    }
    .nl-img-remove {
      background: none;
      border: none;
      color: var(--muted);
      cursor: pointer;
      padding: 4px;
      border-radius: 6px;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: background 0.15s, color 0.15s;
      flex-shrink: 0;
    }
    .nl-img-remove:hover {
      background: rgba(239,68,68,0.12);
      color: #f87171;
    }
    .nl-img-remove svg, .nl-img-recrop svg {
      width: 14px;
      height: 14px;
      stroke: currentColor;
      fill: none;
      stroke-width: 2;
    }
    .nl-img-recrop {
      background: none;
      border: none;
      color: var(--muted);
      cursor: pointer;
      padding: 4px;
      border-radius: 6px;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: background 0.15s, color 0.15s;
      flex-shrink: 0;
    }
    .nl-img-recrop:hover {
      background: rgba(59,130,246,0.12);
      color: #3b82f6;
    }
    .nl-img-upload-progress {
      height: 3px;
      border-radius: 2px;
      background: var(--border);
      overflow: hidden;
    }
    .nl-img-upload-progress-bar {
      height: 100%;
      background: var(--accent-strong);
      border-radius: 2px;
      transition: width 0.3s;
    }
    .nl-img-or-divider {
      display: flex;
      align-items: center;
      gap: 10px;
      font-size: 0.75rem;
      color: var(--muted);
      font-weight: 600;
    }
    .nl-img-or-divider::before,
    .nl-img-or-divider::after {
      content: '';
      flex: 1;
      height: 1px;
      background: var(--border);
    }
    .nl-img-size-hint {
      font-size: 0.72rem;
      color: var(--accent);
      font-weight: 600;
      margin-top: -2px;
    }

    /* ── Crop Modal ── */
    .crop-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,0.7);
      backdrop-filter: blur(6px);
      z-index: 10000;
      display: flex;
      align-items: center;
      justify-content: center;
      animation: fadeIn 0.2s ease;
    }
    .crop-modal {
      background: var(--panel);
      border: 1px solid var(--border);
      border-radius: 20px;
      padding: 28px;
      width: 90%;
      max-width: 600px;
      max-height: 90vh;
      overflow: auto;
      box-shadow: 0 24px 60px rgba(0,0,0,0.3);
    }
    .crop-modal-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 20px;
    }
    .crop-modal-header h3 {
      font-size: 1.1rem;
      font-weight: 800;
      color: var(--text);
    }
    .crop-modal-header .crop-dimensions {
      font-size: 0.82rem;
      color: var(--accent);
      font-weight: 600;
      background: var(--accent-bg);
      padding: 4px 12px;
      border-radius: 999px;
    }
    .crop-close {
      width: 32px; height: 32px;
      border-radius: 8px;
      border: none;
      background: transparent;
      color: var(--muted);
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: background 0.15s, color 0.15s;
    }
    .crop-close:hover { background: var(--card); color: var(--text); }
    .crop-close svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }
    .crop-container {
      position: relative;
      overflow: hidden;
      border-radius: 10px;
      border: 1px solid var(--border);
      background: #111;
      margin: 0 auto 16px;
      cursor: grab;
      touch-action: none;
      user-select: none;
      max-width: 100%;
    }
    .crop-container:active { cursor: grabbing; }
    .crop-container img {
      position: absolute;
      top: 0; left: 0;
      transform-origin: 0 0;
      pointer-events: none;
      user-select: none;
      -webkit-user-drag: none;
    }
    .crop-controls {
      display: flex;
      align-items: center;
      gap: 14px;
      margin-bottom: 20px;
    }
    .crop-controls label {
      font-size: 0.82rem;
      font-weight: 600;
      color: var(--muted);
      flex-shrink: 0;
    }
    .crop-zoom-slider {
      flex: 1;
      -webkit-appearance: none;
      appearance: none;
      height: 4px;
      border-radius: 2px;
      background: var(--border);
      outline: none;
    }
    .crop-zoom-slider::-webkit-slider-thumb {
      -webkit-appearance: none;
      appearance: none;
      width: 18px; height: 18px;
      border-radius: 50%;
      background: var(--accent-strong);
      cursor: pointer;
      border: 2px solid var(--panel);
      box-shadow: 0 1px 4px rgba(0,0,0,0.3);
    }
    .crop-zoom-slider::-moz-range-thumb {
      width: 18px; height: 18px;
      border-radius: 50%;
      background: var(--accent-strong);
      cursor: pointer;
      border: 2px solid var(--panel);
    }
    .crop-zoom-value {
      font-size: 0.82rem;
      font-weight: 700;
      color: var(--text);
      min-width: 40px;
      text-align: right;
    }
    .crop-actions {
      display: flex;
      gap: 10px;
      justify-content: flex-end;
    }
    .crop-cancel-btn {
      padding: 10px 20px;
      border-radius: 10px;
      border: 1px solid var(--border);
      background: var(--card);
      color: var(--text);
      font-family: inherit;
      font-size: 0.9rem;
      font-weight: 600;
      cursor: pointer;
      transition: border-color 0.2s;
    }
    .crop-cancel-btn:hover { border-color: var(--accent); }
    .crop-apply-btn {
      padding: 10px 24px;
      border-radius: 10px;
      border: none;
      background: linear-gradient(135deg, var(--accent), var(--accent-strong));
      color: #fff;
      font-family: inherit;
      font-size: 0.9rem;
      font-weight: 700;
      cursor: pointer;
      transition: transform 0.15s, box-shadow 0.15s;
    }
    .crop-apply-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 14px var(--accent-glow); }

    /* ── Erfolgs-Overlay nach NL-Erstellung ── */
    .nl-success-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,0.65);
      backdrop-filter: blur(8px);
      z-index: 9999;
      display: flex;
      align-items: center;
      justify-content: center;
      animation: fadeIn 0.3s ease;
    }
    .nl-success-card {
      background: var(--panel);
      border: 1px solid var(--border);
      border-radius: 24px;
      padding: 40px 36px;
      max-width: 460px;
      width: 90%;
      text-align: center;
      box-shadow: 0 24px 60px rgba(0,0,0,0.3);
    }
    .nl-success-icon {
      width: 64px; height: 64px;
      border-radius: 50%;
      background: linear-gradient(135deg, #34d399, #10b981);
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 0 auto 20px;
    }
    .nl-success-icon svg { width: 32px; height: 32px; stroke: #fff; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
    .nl-success-card h2 { font-size: 1.3rem; font-weight: 800; color: var(--text); margin: 0 0 8px; }
    .nl-success-card p { font-size: 0.92rem; color: var(--muted); margin: 0 0 28px; line-height: 1.5; }
    .nl-success-actions { display: flex; flex-direction: column; gap: 10px; }
    .nl-success-btn {
      padding: 13px 20px;
      border-radius: 12px;
      font-family: inherit;
      font-size: 0.92rem;
      font-weight: 700;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      transition: transform 0.15s, box-shadow 0.15s;
    }
    .nl-success-btn:hover { transform: translateY(-2px); }
    .nl-success-btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
    .nl-success-btn.primary {
      background: linear-gradient(135deg, var(--accent), var(--accent-strong));
      color: #fff;
      border: none;
    }
    .nl-success-btn.primary:hover { box-shadow: 0 4px 14px var(--accent-glow); }
    .nl-success-btn.primary svg { stroke: #fff; }
    .nl-success-btn.secondary {
      background: var(--card);
      color: var(--text);
      border: 1px solid var(--border);
    }
    .nl-success-btn.secondary:hover { border-color: var(--accent); }
    .nl-success-btn.ghost {
      background: transparent;
      color: var(--muted);
      border: none;
    }
    .nl-success-btn.ghost:hover { color: var(--text); }

    /* ── Export-Button Styles für Übersicht ── */
    .nlo-card-actions { display: flex; gap: 6px; margin-top: 6px; }
    .nlo-card-export {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 6px 14px;
      border-radius: 999px;
      border: 1px solid var(--border);
      background: var(--card);
      color: var(--text);
      font-family: inherit;
      font-size: 0.8rem;
      font-weight: 600;
      cursor: pointer;
      transition: border-color 0.18s, color 0.18s, transform 0.18s;
    }
    .nlo-card-export:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
    .nlo-card-export svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2; }
    .nlo-card-x {
      position: absolute; top: 8px; right: 8px;
      width: 24px; height: 24px; padding: 0;
      display: flex; align-items: center; justify-content: center;
      background: transparent; border: none; border-radius: 6px;
      cursor: pointer; color: var(--muted); opacity: 0;
      transition: opacity 0.2s, color 0.2s, background 0.2s;
    }
    .nlo-card:hover .nlo-card-x { opacity: 1; }
    .nlo-card-x:hover { color: #f43f5e; background: rgba(244,63,94,0.1); }
    .nlo-card-x svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2.5; }
    .nl-logo-picker { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 6px; }
    .nl-logo-btn {
      border: 2px solid var(--border);
      border-radius: 8px;
      padding: 10px 8px;
      cursor: pointer;
      transition: border-color 0.15s, box-shadow 0.15s;
      display: flex;
      align-items: center;
      justify-content: center;
      min-height: 52px;
      background-color: transparent;
    }
    .nl-logo-btn img { max-width: 100%; max-height: 30px; width: auto; object-fit: contain; pointer-events: none; }
    .nl-logo-btn:hover { border-color: var(--accent-border); }
    .nl-logo-btn.selected { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-bg); }
    /* Preview-Tile für Marken */
    .nlpv-tile-brand { display: flex !important; align-items: center; justify-content: center; }
    .nlpv-brand-logo { max-width: 70%; max-height: 55%; object-fit: contain; display: block; }

    /* ═══════════════════════════════════════════
       SIDEBAR SUB-NAV
    ═══════════════════════════════════════════ */
    .sidebar-subnav {
      list-style: none;
      padding: 0 8px 0 0;
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.25s ease;
    }
    .sidebar-subnav.open { max-height: 120px; }
    .sidebar-subnav a {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 7px 10px 7px 40px;
      border-radius: 999px;
      color: var(--muted);
      text-decoration: none;
      font-size: 0.82rem;
      font-weight: 500;
      white-space: nowrap;
      transition: background 0.15s, color 0.15s;
    }
    .sidebar-subnav a:hover { background: var(--card); color: var(--text); }
    .sidebar-subnav a.active { background: var(--card); color: var(--text); font-weight: 600; }
    .sidebar.collapsed .sidebar-subnav { max-height: 0 !important; }

    /* ═══════════════════════════════════════════
       NEWSLETTER OVERVIEW & DRAFTS
    ═══════════════════════════════════════════ */
    .nlo-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      margin-bottom: 24px;
      flex-wrap: wrap;
    }
    .nlo-header-left h1 { font-size: 1.7rem; font-weight: 800; margin-bottom: 4px; }
    .nlo-header-left p { color: var(--muted); font-size: 0.96rem; }
    .nlo-new-btn {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 10px 20px;
      border-radius: 999px;
      border: none;
      background: linear-gradient(135deg, var(--accent), var(--accent-strong));
      color: #fff;
      font-family: inherit;
      font-size: 0.9rem;
      font-weight: 700;
      cursor: pointer;
      transition: transform 0.15s, box-shadow 0.15s;
      text-decoration: none;
      flex-shrink: 0;
    }
    .nlo-new-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px var(--accent-glow); }
    .nlo-new-btn svg { width: 16px; height: 16px; stroke: #fff; fill: none; stroke-width: 2.5; }

    .nlo-toolbar {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 20px;
    }
    .nlo-sort-label {
      font-size: 0.82rem;
      font-weight: 600;
      color: var(--muted);
    }
    .nlo-sort-select {
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: 8px;
      color: var(--text);
      font-family: inherit;
      font-size: 0.84rem;
      padding: 7px 30px 7px 10px;
      outline: none;
      appearance: none;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpolyline points='6 9 12 15 18 9' stroke='%237a7f8e' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: right 10px center;
      cursor: pointer;
      transition: border-color 0.2s;
    }
    .nlo-sort-select:focus { border-color: var(--accent); }

    .nlo-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
      gap: 16px;
    }
    .nlo-card {
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 22px 20px;
      position: relative;
      transition: border-color 0.2s, box-shadow 0.2s;
      cursor: default;
    }
    .nlo-card:hover { border-color: var(--accent-border); }
    .nlo-card-name {
      font-size: 1rem;
      font-weight: 700;
      color: var(--text);
      margin-bottom: 4px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .nlo-card-subject {
      font-size: 0.86rem;
      color: var(--muted);
      margin-bottom: 12px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .nlo-card-meta {
      display: flex;
      align-items: center;
      gap: 12px;
      flex-wrap: wrap;
    }
    .nlo-card-tag {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      font-size: 0.78rem;
      color: var(--muted);
    }
    .nlo-card-tag svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2; flex-shrink: 0; }
    .nlo-card-badge {
      display: inline-block;
      padding: 2px 9px;
      border-radius: 999px;
      font-size: 0.75rem;
      font-weight: 700;
      letter-spacing: 0.3px;
    }
    .nlo-card-badge.draft {
      background: rgba(251,191,36,0.15);
      color: #fbbf24;
    }
    .nlo-card-badge.sent {
      background: rgba(52,211,153,0.15);
      color: #34d399;
    }

    /* ── Translation Chips (Übersichtskarte + Erfolgs-Overlay) ── */
    .nl-trans-chip {
      display: inline-flex; align-items: center;
      font-size: 0.72rem; font-weight: 700; letter-spacing: 0.3px;
      padding: 2px 8px; border-radius: 999px;
    }
    .nl-trans-chip.pending {
      background: rgba(251,191,36,0.15); color: #fbbf24;
    }
    .nl-trans-chip.done {
      background: rgba(52,211,153,0.15); color: #34d399;
    }
    .nlo-card-translations {
      display: flex; flex-wrap: wrap; align-items: center; gap: 4px;
      margin: 4px 0 2px;
    }
    .nlo-card-dl-trans {
      display: inline-flex; align-items: center; gap: 4px;
      font-size: 0.72rem; font-weight: 600; font-family: inherit;
      padding: 2px 8px; border-radius: 999px;
      border: 1px solid var(--border); background: var(--card);
      color: var(--muted); cursor: pointer;
      transition: border-color 0.15s, color 0.15s;
    }
    .nlo-card-dl-trans:hover { border-color: var(--accent); color: var(--accent); }
    .nlo-card-dl-trans svg { width: 11px; height: 11px; stroke: currentColor; fill: none; stroke-width: 2; }

    /* ── Translation-Info im Erfolgs-Overlay ── */
    .nl-success-translation {
      display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
      font-size: 0.82rem; color: var(--muted);
      background: var(--card); border: 1px solid var(--border);
      border-radius: 10px; padding: 8px 12px; margin-bottom: 16px;
    }
    .nl-success-translation svg {
      width: 15px; height: 15px; stroke: currentColor; fill: none;
      stroke-width: 2; stroke-linecap: round; flex-shrink: 0;
    }
    .nl-success-lang-chips { display: flex; flex-wrap: wrap; gap: 4px; }

    .nlo-card-edit {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 6px 14px;
      border-radius: 999px;
      border: none;
      background: var(--accent-strong);
      color: #fff;
      font-family: inherit;
      font-size: 0.8rem;
      font-weight: 600;
      cursor: pointer;
      transition: opacity 0.18s, transform 0.18s;
    }
    .nlo-card-edit:hover { transform: translateY(-1px); box-shadow: 0 2px 8px var(--accent-glow); }
    .nlo-card-edit svg { width: 13px; height: 13px; stroke: #fff; fill: none; stroke-width: 2; }

    .nlo-empty {
      text-align: center;
      padding: 60px 20px;
      color: var(--muted);
    }
    .nlo-empty svg { width: 48px; height: 48px; stroke: var(--border); fill: none; stroke-width: 1.5; margin-bottom: 16px; }
    .nlo-empty p { font-size: 0.92rem; }

    /* ── Ansichts-Toggle ── */
    .nlo-view-toggle {
      display: flex;
      margin-left: auto;
      border: 1px solid var(--border);
      border-radius: 999px;
      overflow: hidden;
    }
    .nlo-view-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 34px; height: 34px;
      border: none;
      background: none;
      color: var(--muted);
      cursor: pointer;
      transition: background 0.15s, color 0.15s;
    }
    .nlo-view-btn + .nlo-view-btn { border-left: 1px solid var(--border); }
    .nlo-view-btn:hover { background: var(--bg); color: var(--text); }
    .nlo-view-btn.active { background: var(--accent); color: #fff; }
    .nlo-view-btn svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; }

    /* ── Vorschau-Button auf Karten ── */
    .nlo-card-preview-btn {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 6px 12px;
      border-radius: 999px;
      border: 1px solid var(--border);
      background: none;
      color: var(--muted);
      font-family: inherit;
      font-size: 0.8rem;
      font-weight: 600;
      cursor: pointer;
      transition: border-color 0.18s, color 0.18s;
    }
    .nlo-card-preview-btn:hover { border-color: var(--accent); color: var(--accent); }
    .nlo-card-preview-btn svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2; flex-shrink: 0; }

    /* ── Visueller Modus: Grid + Karten ── */
    .nlo-grid.nlo-visual-mode { grid-template-columns: 1fr; max-width: 700px; }
    .nlo-visual-card {
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      overflow: hidden;
      transition: border-color 0.2s;
    }
    .nlo-visual-card:hover { border-color: var(--accent-border); }
    .nlo-visual-card-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 16px 20px 14px;
      border-bottom: 1px solid var(--border);
      gap: 12px;
      flex-wrap: wrap;
    }
    .nlo-visual-card-header .nlo-card-name { margin-bottom: 2px; }
    .nlo-visual-card-header .nlo-card-meta { margin-top: 4px; }
    .nlo-visual-body { overflow: hidden; }

    /* ── Newsletter-Übersicht: Visuelle Vorschau-Sektionen ── */
    /* Scope: .nlo-visual-body (Kartenvorschau) und .nlo-prev-modal-inner (Modal) */
    .nlo-visual-body .nlpv-section,
    .nlo-prev-modal-inner .nlpv-section { border-bottom: 1px solid var(--border); }
    .nlo-visual-body .nlpv-section:last-child,
    .nlo-prev-modal-inner .nlpv-section:last-child { border-bottom: none; }
    .nlo-visual-body .nlpv-label,
    .nlo-prev-modal-inner .nlpv-label {
      font-size: 0.68rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.8px;
      color: var(--muted);
      padding: 7px 14px 4px;
    }
    /* Überschreibt .nlpv-grid nur im Übersichts-Kontext (nicht im Newsletter-Tool-Preview) */
    .nlo-visual-body .nlpv-grid,
    .nlo-prev-modal-inner .nlpv-grid {
      display: grid;
      flex-direction: unset;
      grid-template-columns: repeat(var(--cols, 3), 1fr);
      gap: 2px;
      padding-bottom: 2px;
    }
    .nlo-visual-body .nlpv-product,
    .nlo-prev-modal-inner .nlpv-product { display: flex; flex-direction: column; }
    .nlo-visual-body .nlpv-product img,
    .nlo-prev-modal-inner .nlpv-product img { width: 100%; aspect-ratio: 3/4; object-fit: cover; display: block; }
    .nlo-visual-body .nlpv-no-img,
    .nlo-prev-modal-inner .nlpv-no-img {
      width: 100%;
      background: var(--bg);
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--muted);
      font-size: 0.68rem;
    }
    .nlo-visual-body .nlpv-hero img,
    .nlo-prev-modal-inner .nlpv-hero img { width: 100%; aspect-ratio: 16/7; object-fit: cover; display: block; }
    .nlo-visual-body .nlpv-product-meta,
    .nlo-prev-modal-inner .nlpv-product-meta { display: flex; flex-direction: column; padding: 4px 6px 6px; gap: 1px; }
    .nlo-visual-body .nlpv-cat,
    .nlo-prev-modal-inner .nlpv-cat { font-size: 0.63rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.4px; }
    .nlo-visual-body .nlpv-title,
    .nlo-prev-modal-inner .nlpv-title { font-size: 0.7rem; font-weight: 600; color: var(--text); line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .nlo-visual-body .nlpv-price,
    .nlo-prev-modal-inner .nlpv-price { font-size: 0.7rem; color: var(--accent); font-weight: 700; }
    .nlo-visual-body .nlpv-brand-cell,
    .nlo-prev-modal-inner .nlpv-brand-cell { position: relative; aspect-ratio: 1/1; overflow: hidden; background: #111; }
    .nlo-visual-body .nlpv-brand-cell img,
    .nlo-prev-modal-inner .nlpv-brand-cell img { width: 100%; height: 100%; object-fit: cover; }
    .nlo-visual-body .nlpv-brand-placeholder,
    .nlo-prev-modal-inner .nlpv-brand-placeholder {
      padding: 18px 20px;
      color: var(--muted);
      font-size: 0.8rem;
      font-style: italic;
      text-align: center;
    }
    /* Überschreibt .nlpv-info nur im Übersichts-Kontext */
    .nlo-visual-body .nlpv-info,
    .nlo-prev-modal-inner .nlpv-info { padding: 16px 20px 14px; }
    .nlo-visual-body .nlpv-info-h,
    .nlo-prev-modal-inner .nlpv-info-h { font-size: 0.95rem; font-weight: 700; margin-bottom: 6px; color: var(--text); }
    .nlo-visual-body .nlpv-info-p,
    .nlo-prev-modal-inner .nlpv-info-p { font-size: 0.82rem; color: var(--muted); line-height: 1.6; white-space: pre-wrap; }

    /* ── Newsletter-Vorschau-Modal ── */
    .nlo-prev-modal {
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,0.65);
      z-index: 10000;
      display: flex;
      align-items: flex-start;
      justify-content: center;
      padding: 40px 16px 60px;
      overflow-y: auto;
      backdrop-filter: blur(4px);
    }
    .nlo-prev-modal-inner {
      background: var(--card);
      border-radius: 16px;
      width: 100%;
      max-width: 660px;
      overflow: hidden;
      box-shadow: 0 24px 60px rgba(0,0,0,0.45);
      flex-shrink: 0;
    }
    .nlo-prev-modal-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 20px 24px 16px;
      border-bottom: 1px solid var(--border);
      gap: 12px;
    }
    .nlo-prev-modal-title { font-size: 1.05rem; font-weight: 700; color: var(--text); }
    .nlo-prev-modal-sub { font-size: 0.82rem; color: var(--muted); margin-top: 2px; }
    .nlo-prev-modal-close {
      display: flex; align-items: center; justify-content: center;
      width: 32px; height: 32px; border-radius: 8px;
      border: none; background: none; color: var(--muted);
      cursor: pointer; transition: color 0.15s, background 0.15s;
      flex-shrink: 0;
    }
    .nlo-prev-modal-close:hover { color: var(--text); background: var(--bg); }
    .nlo-prev-modal-close svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2.5; }

    /* ═══════════════════════════════════════════
       CONTAINER ADD BUTTON
    ═══════════════════════════════════════════ */
    .nl-add-container-btn {
      width: 100%;
      padding: 18px;
      border: 2px dashed var(--border);
      border-radius: var(--radius);
      background: transparent;
      color: var(--muted);
      font-family: inherit;
      font-size: 0.9rem;
      font-weight: 600;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      transition: border-color 0.2s, color 0.2s, background 0.2s;
    }
    .nl-add-container-btn:hover {
      border-color: var(--accent);
      color: var(--accent);
      background: var(--accent-bg);
    }
    .nl-add-container-btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }

    .nl-container-block {
      position: relative;
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 20px;
      background: var(--card);
      transition: opacity 0.2s, border-color 0.2s, box-shadow 0.2s;
    }
    .nl-container-header {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 16px;
    }
    .nl-container-header-actions {
      display: flex;
      align-items: center;
      gap: 4px;
      margin-left: auto;
    }
    .nl-container-title {
      font-size: 0.92rem;
      font-weight: 800;
      color: var(--accent);
      text-transform: uppercase;
      letter-spacing: 0.5px;
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .nl-container-number {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 24px;
      height: 24px;
      border-radius: 6px;
      background: var(--accent-bg);
      color: var(--accent);
      font-size: 0.78rem;
      font-weight: 800;
    }

    /* Container collapse */
    .nl-container-body {
      overflow: hidden;
      transition: max-height 0.3s ease, opacity 0.25s ease;
      max-height: 4000px;
      opacity: 1;
    }
    .nl-container-block.collapsed .nl-container-body {
      max-height: 0;
      opacity: 0;
    }
    .nl-container-block.collapsed .nl-container-header { margin-bottom: 0; }
    .nl-container-collapse-btn {
      width: 26px; height: 26px; border-radius: 6px; border: none;
      background: transparent; cursor: pointer; color: var(--muted);
      display: flex; align-items: center; justify-content: center;
      transition: color 0.18s, background 0.18s, transform 0.25s;
      flex-shrink: 0;
    }
    .nl-container-collapse-btn svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2.5; }
    .nl-container-collapse-btn:hover { color: var(--text); background: var(--border); }
    .nl-container-block.collapsed .nl-container-collapse-btn { transform: rotate(-90deg); }

    /* Sortable Container-Wrapper */
    .nl-containers-sortable {
      display: flex;
      flex-direction: column;
      gap: 20px;
    }
    .nl-containers-sortable > .nl-container-block:first-child {
      margin-top: 0;
    }
    .nl-container-block > .nl-section {
      border: none;
      padding: 0;
      background: transparent;
    }
    .nl-container-block > .nl-section + .nl-section {
      margin-top: 20px;
      padding-top: 20px;
      border-top: 1px solid var(--border);
    }

    /* Drag Handle */
    .nl-drag-handle {
      width: 28px; height: 28px;
      border-radius: 6px;
      border: none;
      background: transparent;
      color: var(--muted);
      display: flex; align-items: center; justify-content: center;
      cursor: grab;
      transition: background 0.15s, color 0.15s;
      flex-shrink: 0;
    }
    .nl-drag-handle:hover { background: var(--accent-bg); color: var(--accent); }
    .nl-drag-handle:active { cursor: grabbing; }
    .nl-drag-handle svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; pointer-events: none; }

    /* Drag-Zustände */
    .nl-container-block.dragging {
      opacity: 0.4;
      border-style: dashed;
    }
    .nl-container-block.drag-over {
      border-color: var(--accent);
      box-shadow: 0 0 0 2px var(--accent-bg);
    }
    .nl-drop-indicator {
      height: 3px;
      background: var(--accent-strong);
      border-radius: 2px;
      margin: -2px 0;
      transition: opacity 0.15s;
      pointer-events: none;
    }
    .nl-container-remove {
      width: 28px; height: 28px;
      border-radius: 6px;
      border: none;
      background: transparent;
      color: var(--muted);
      display: flex; align-items: center; justify-content: center;
      cursor: pointer;
      transition: background 0.15s, color 0.15s;
    }
    .nl-container-remove:hover { background: rgba(239,68,68,0.12); color: #f87171; }
    .nl-container-remove svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }

    /* ── Draft-Speichern Button ── */
    .nl-actions-row {
      display: flex;
      gap: 12px;
    }
    .nl-draft-btn {
      flex: 0 0 auto;
      padding: 14px 24px;
      border-radius: 999px;
      border: 1px solid var(--border);
      background: var(--card);
      color: var(--text);
      font-family: inherit;
      font-size: 0.9rem;
      font-weight: 600;
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 8px;
      transition: border-color 0.2s, background 0.2s;
    }
    .nl-draft-btn:hover { border-color: var(--accent); background: var(--accent-bg); }
    .nl-draft-btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }

    /* ═══════════════════════════════════════════
       LOGIN OVERLAY
    ═══════════════════════════════════════════ */
    .login-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,0.6);
      backdrop-filter: blur(8px);
      z-index: 9999;
      display: flex;
      align-items: center;
      justify-content: center;
      animation: fadeIn 0.3s ease;
    }
    .login-overlay.hidden { display: none; }
    .login-card {
      background: var(--panel);
      border: 1px solid var(--border);
      border-radius: 20px;
      padding: 48px 40px 40px;
      width: 100%;
      max-width: 400px;
      box-shadow: 0 24px 60px rgba(0,0,0,0.3);
      text-align: center;
    }
    .login-card .login-logo {
      height: 32px;
      width: auto;
      margin-bottom: 28px;
      display: block;
      margin-left: auto;
      margin-right: auto;
    }
    .login-card h2 {
      font-size: 1.4rem;
      font-weight: 800;
      margin-bottom: 6px;
    }
    .login-card .login-subtitle {
      color: var(--muted);
      font-size: 0.92rem;
      margin-bottom: 28px;
    }
    .login-field {
      text-align: left;
      margin-bottom: 16px;
    }
    .login-field label {
      display: block;
      font-size: 0.84rem;
      font-weight: 600;
      color: var(--text);
      margin-bottom: 6px;
    }
    .login-field input {
      width: 100%;
      padding: 10px 14px;
      border-radius: 10px;
      border: 1px solid var(--border);
      background: var(--card);
      color: var(--text);
      font-family: inherit;
      font-size: 0.9rem;
      outline: none;
      transition: border-color 0.2s;
    }
    .login-field input:focus { border-color: var(--accent); }
    .login-field input::placeholder { color: var(--muted); }
    .login-field input[type="password"] {
      letter-spacing: 2px;
    }
    .login-btn {
      width: 100%;
      padding: 13px;
      border-radius: 999px;
      border: none;
      background: linear-gradient(135deg, var(--accent), var(--accent-strong));
      color: #fff;
      font-family: inherit;
      font-size: 1rem;
      font-weight: 700;
      cursor: pointer;
      margin-top: 8px;
      transition: transform 0.15s, box-shadow 0.15s;
    }
    .login-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px var(--accent-glow); }
    .login-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
    .login-error {
      color: #f87171;
      font-size: 0.82rem;
      margin-top: 8px;
      display: none;
    }
    .login-error.show { display: block; }

    /* Profilbild auf den Newsletter-Karten */
    .nlo-card-author {
      display: flex;
      align-items: center;
      gap: 6px;
      margin-top: 10px;
      padding-top: 10px;
      border-top: 1px solid var(--border);
    }
    .nlo-card-author-avatar {
      width: 22px; height: 22px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.6rem;
      font-weight: 800;
      color: #fff;
      background: linear-gradient(135deg, var(--accent), var(--accent-strong));
      flex-shrink: 0;
      overflow: hidden;
    }
    .nlo-card-author-avatar img {
      width: 100%; height: 100%;
      object-fit: cover;
    }
    .nlo-card-author-name {
      font-size: 0.75rem;
      color: var(--muted);
      font-weight: 500;
    }

    /* ═══════════════════════════════════════════
       FOOTER
    ═══════════════════════════════════════════ */
    footer {
      background: var(--panel);
      border-top: 1px solid var(--border);
      padding: 28px 40px 22px;
      margin-top: auto;
      transition: background 0.3s, border-color 0.3s;
    }
    .footer-inner {
      max-width: 960px;
      margin: 0 auto;
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 16px;
    }
    .footer-links {
      display: flex;
      gap: 24px;
      flex-wrap: wrap;
    }
    .footer-links a {
      color: var(--muted);
      text-decoration: none;
      font-size: 0.88rem;
      transition: color 0.15s;
    }
    .footer-links a:hover { color: var(--accent-strong); }
    .footer-copy {
      color: var(--muted);
      font-size: 0.82rem;
    }

    /* ═══════════════════════════════════════════
       LIGHT MODE OVERRIDES
    ═══════════════════════════════════════════ */
    :root[data-theme="light"] .nav-badge {
      color: var(--accent-strong);
    }
    :root[data-theme="light"] .user-dropdown {
      box-shadow: 0 6px 18px rgba(0,0,0,0.1);
    }
    :root[data-theme="light"] .placeholder-box {
      border-color: #d0d5e0;
    }
    :root[data-theme="light"] .stat-card,
    :root[data-theme="light"] .feature-card {
      box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    }

    /* ═══════════════════════════════════════════
       RESPONSIVE
    ═══════════════════════════════════════════ */
    @media (max-width: 768px) {
      .sidebar { width: 0; overflow: hidden; }
      .sidebar.open { width: var(--sidebar-w); }
      .sidebar.collapsed { width: 0; }
      .main-wrap { margin-left: 0 !important; }
      .header-logo { left: 50% !important; }
      .main-content { padding: 36px 20px 32px; }
      .home-hero { padding: 40px 16px 28px; }
      .home-hero h1 { font-size: 1.7rem; }
      .hero-slider { height: 280px; }
      .hero-slide-content { padding: 32px 24px; }
      .hero-slide-content h1 { font-size: 1.5rem; }
      .hero-slide-deco { display: none; }
      footer { padding: 22px 20px 18px; }
      .footer-inner { flex-direction: column; align-items: flex-start; }
    }

    /* ═══════════════════════════════════════════
       BENUTZERVERWALTUNG
    ═══════════════════════════════════════════ */
    .um-page-header {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 16px;
      margin-bottom: 28px;
    }
    .um-page-header h1 { font-size: 1.6rem; font-weight: 700; margin-bottom: 4px; }
    .um-page-header p  { color: var(--muted); font-size: 0.9rem; }

    .um-new-btn {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 10px 18px;
      background: var(--accent-strong);
      color: #fff;
      border: none;
      border-radius: 10px;
      font-size: 0.9rem;
      font-weight: 600;
      cursor: pointer;
      transition: opacity 0.2s;
      white-space: nowrap;
      flex-shrink: 0;
    }
    .um-new-btn:hover { opacity: 0.85; }
    .um-new-btn svg { width: 16px; height: 16px; stroke: #fff; fill: none; stroke-width: 2.5; stroke-linecap: round; }

    .um-user-list { display: flex; flex-direction: column; gap: 10px; }
    .um-loading, .um-empty, .um-error {
      color: var(--muted);
      padding: 32px;
      text-align: center;
      font-size: 0.92rem;
    }
    .um-error { color: #f43f5e; }

    .um-user-row {
      display: flex;
      align-items: center;
      gap: 16px;
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 14px 18px;
      transition: border-color 0.15s;
    }
    .um-user-row:hover { border-color: var(--accent-border); }

    .um-user-avatar { flex-shrink: 0; }
    .um-avatar-circle {
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 700;
      color: #fff;
    }
    .um-avatar-img {
      border-radius: 50%;
      object-fit: cover;
      display: block;
    }

    .um-user-info { flex: 1; min-width: 0; }
    .um-user-name  { font-weight: 600; font-size: 0.95rem; }
    .um-user-email { color: var(--muted); font-size: 0.83rem; margin-top: 2px; }

    .um-user-role { flex-shrink: 0; }
    .um-role-badge {
      display: inline-block;
      padding: 3px 10px;
      border-radius: 20px;
      font-size: 0.78rem;
      font-weight: 600;
    }
    .um-role-admin { background: rgba(0,180,255,0.15); color: var(--accent-strong); }
    .um-role-user  { background: var(--card); border: 1px solid var(--border); color: var(--muted); }

    .um-user-actions { display: flex; gap: 8px; flex-shrink: 0; }
    .um-btn-edit, .um-btn-delete {
      width: 34px; height: 34px;
      border: 1px solid var(--border);
      border-radius: 8px;
      background: transparent;
      color: var(--muted);
      cursor: pointer;
      display: flex; align-items: center; justify-content: center;
      transition: background 0.15s, color 0.15s, border-color 0.15s;
    }
    .um-btn-edit svg, .um-btn-delete svg {
      width: 15px; height: 15px;
      stroke: currentColor; fill: none;
      stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
    }
    .um-btn-edit:hover  { background: var(--accent-bg); color: var(--accent-strong); border-color: var(--accent-border); }
    .um-btn-delete:hover{ background: rgba(244,63,94,0.1); color: #f43f5e; border-color: rgba(244,63,94,0.3); }

    /* ═══════════════════════════════════════════
       MODAL (Benutzer + Profil)
    ═══════════════════════════════════════════ */
    .um-modal-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,0.55);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 1000;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.2s;
    }
    .um-modal-overlay.show { opacity: 1; pointer-events: auto; }

    .um-modal-card {
      background: var(--panel);
      border: 1px solid var(--border);
      border-radius: 16px;
      width: 100%;
      max-width: 440px;
      box-shadow: 0 20px 60px rgba(0,0,0,0.35);
      transform: translateY(12px);
      transition: transform 0.2s;
    }
    .um-modal-overlay.show .um-modal-card { transform: translateY(0); }

    .um-modal-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 20px 24px 16px;
      border-bottom: 1px solid var(--border);
    }
    .um-modal-header h3 { font-size: 1.05rem; font-weight: 700; }
    .um-modal-close {
      width: 30px; height: 30px;
      border: none; background: transparent;
      color: var(--muted); cursor: pointer;
      border-radius: 6px;
      display: flex; align-items: center; justify-content: center;
      transition: background 0.15s, color 0.15s;
    }
    .um-modal-close:hover { background: var(--card); color: var(--text); }
    .um-modal-close svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2.5; stroke-linecap: round; }

    .um-modal-body { padding: 20px 24px; display: flex; flex-direction: column; gap: 16px; }
    .um-modal-footer {
      display: flex; justify-content: flex-end; gap: 10px;
      padding: 16px 24px 20px;
      border-top: 1px solid var(--border);
    }

    .um-form-field { display: flex; flex-direction: column; gap: 6px; }
    .um-form-field label { font-size: 0.83rem; font-weight: 600; color: var(--muted); }
    .um-form-row { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: end; }

    .um-input {
      background: var(--bg);
      border: 1px solid var(--border);
      border-radius: 8px;
      color: var(--text);
      font-size: 0.9rem;
      padding: 9px 12px;
      outline: none;
      transition: border-color 0.15s;
      width: 100%;
      font-family: inherit;
    }
    .um-input:focus { border-color: var(--accent-strong); }
    .um-select { appearance: none; cursor: pointer; }
    .um-color-input {
      width: 44px; height: 38px;
      border: 1px solid var(--border);
      border-radius: 8px;
      background: var(--bg);
      padding: 2px;
      cursor: pointer;
    }
    .um-optional { font-weight: 400; font-size: 0.78rem; color: var(--muted); }
    .um-modal-error { color: #f43f5e; font-size: 0.83rem; min-height: 18px; }

    .um-btn-primary {
      padding: 9px 20px;
      background: var(--accent-strong);
      color: #fff;
      border: none;
      border-radius: 8px;
      font-size: 0.9rem;
      font-weight: 600;
      cursor: pointer;
      transition: opacity 0.2s;
    }
    .um-btn-primary:hover { opacity: 0.85; }
    .um-btn-secondary {
      padding: 9px 20px;
      background: transparent;
      color: var(--text);
      border: 1px solid var(--border);
      border-radius: 8px;
      font-size: 0.9rem;
      font-weight: 600;
      cursor: pointer;
      transition: background 0.15s;
    }
    .um-btn-secondary:hover { background: var(--card); }

    /* Profil Modal – Avatar Bereich */
    .profile-avatar-section {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 12px;
      padding-bottom: 4px;
    }
    .profile-avatar-preview {
      width: 80px; height: 80px;
      border-radius: 50%;
      overflow: hidden;
      background: var(--card);
      display: flex; align-items: center; justify-content: center;
      border: 2px solid var(--border);
    }

    /* Berechtigungen Checkboxen */
    .um-perm-grid {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 6px;
    }
    .um-perm-chip {
      display: flex;
      align-items: center;
      gap: 6px;
      padding: 5px 12px;
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: 20px;
      font-size: 0.82rem;
      color: var(--text);
      cursor: pointer;
      transition: border-color 0.15s, background 0.15s;
      user-select: none;
    }
    .um-perm-chip:has(input:checked) {
      border-color: var(--accent);
      background: var(--accent-bg);
      color: var(--accent);
    }
    .um-perm-chip input[type="checkbox"] {
      accent-color: var(--accent);
      cursor: pointer;
    }

    /* ═══════════════════════════════════════════
       FEEDBACK – Sidebar-Button
    ═══════════════════════════════════════════ */
    .sidebar-bottom {
      padding: 8px 8px 14px;
      border-top: 1px solid var(--border);
      flex-shrink: 0;
      display: flex;
      flex-direction: column;
      gap: 2px;
    }
    .sidebar-feedback-btn {
      display: flex;
      align-items: center;
      gap: 11px;
      width: 100%;
      padding: 8px 10px;
      border: none;
      background: transparent;
      color: var(--muted);
      font-size: 0.82rem;
      font-family: inherit;
      font-weight: 500;
      border-radius: 8px;
      cursor: pointer;
      text-align: left;
      transition: background 0.15s, color 0.15s;
    }
    .sidebar-feedback-btn:hover {
      background: var(--card);
      color: var(--accent);
    }
    .sidebar-feedback-btn .sidebar-nav-icon svg { stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

    /* ═══════════════════════════════════════════
       FEEDBACK – Modal
    ═══════════════════════════════════════════ */
    .fb-modal-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,0.55);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 2000;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.2s;
    }
    .fb-modal-overlay.show {
      opacity: 1;
      pointer-events: auto;
    }
    .fb-modal-card {
      background: var(--panel);
      border: 1px solid var(--border);
      border-radius: 20px;
      width: 100%;
      max-width: 520px;
      max-height: 90vh;
      overflow-y: auto;
      box-shadow: 0 24px 60px rgba(0,0,0,0.35);
      transform: translateY(12px);
      transition: transform 0.2s;
    }
    .fb-modal-overlay.show .fb-modal-card { transform: translateY(0); }

    .fb-modal-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 20px 24px 16px;
      border-bottom: 1px solid var(--border);
    }
    .fb-modal-header h3 {
      font-size: 1rem;
      font-weight: 600;
      color: var(--text);
      margin: 0;
    }
    .fb-modal-body {
      padding: 20px 24px;
      display: flex;
      flex-direction: column;
      gap: 18px;
    }
    .fb-modal-footer {
      padding: 14px 24px 20px;
      display: flex;
      justify-content: flex-end;
      gap: 10px;
      border-top: 1px solid var(--border);
    }

    /* Kontext-Leiste */
    .fb-ctx-bar {
      background: var(--card);
      border-radius: 10px;
      padding: 10px 12px;
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      align-items: center;
    }
    .fb-ctx-label {
      font-size: 0.68rem;
      font-weight: 700;
      color: var(--muted);
      text-transform: uppercase;
      letter-spacing: 0.06em;
      margin-right: 2px;
    }
    #fb-context-items {
      display: flex;
      flex-wrap: wrap;
      gap: 5px;
    }
    .fb-ctx-chip {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      background: var(--panel);
      border: 1px solid var(--border);
      border-radius: 100px;
      padding: 2px 9px 2px 7px;
      font-size: 0.73rem;
      color: var(--text);
    }
    .fb-ctx-key {
      color: var(--muted);
      font-size: 0.65rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.04em;
    }

    /* Abschnitts-Label */
    .fb-section-label {
      font-size: 0.75rem;
      font-weight: 700;
      color: var(--muted);
      text-transform: uppercase;
      letter-spacing: 0.06em;
      margin-bottom: 8px;
    }
    .fb-optional { color: var(--muted); font-size: 0.72rem; font-weight: 400; text-transform: none; letter-spacing: 0; }

    /* Typ-Auswahl */
    .fb-type-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 8px;
    }
    .fb-type-btn {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 10px 14px;
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: 10px;
      color: var(--text);
      font-size: 0.82rem;
      font-family: inherit;
      cursor: pointer;
      transition: border-color 0.15s, background 0.15s;
      text-align: left;
    }
    .fb-type-btn:hover { border-color: var(--accent-border); background: var(--accent-bg); }
    .fb-type-btn.active {
      border-color: var(--accent-strong);
      background: var(--accent-bg-mid);
      color: var(--accent);
      font-weight: 600;
    }

    /* Textarea */
    .fb-title-input {
      width: 100%;
      padding: 10px 12px;
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: 10px;
      color: var(--text);
      font-family: inherit;
      font-size: 0.88rem;
      transition: border-color 0.15s;
      box-sizing: border-box;
    }
    .fb-title-input:focus { outline: none; border-color: var(--accent-border); }
    .fb-textarea {
      width: 100%;
      min-height: 100px;
      padding: 12px;
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: 10px;
      color: var(--text);
      font-family: inherit;
      font-size: 0.88rem;
      resize: vertical;
      transition: border-color 0.15s;
      box-sizing: border-box;
    }
    .fb-textarea:focus { outline: none; border-color: var(--accent-border); }

    /* Screenshot-Zone */
    .fb-screenshot-zone {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 12px 14px;
      background: var(--card);
      border: 1.5px dashed var(--border);
      border-radius: 10px;
      cursor: pointer;
      color: var(--muted);
      font-size: 0.82rem;
      transition: border-color 0.15s, color 0.15s;
      user-select: none;
    }
    .fb-screenshot-zone:hover { border-color: var(--accent-border); color: var(--accent); }
    .fb-screenshot-zone svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
    .fb-screenshot-thumb {
      position: relative;
      display: inline-block;
      border-radius: 8px;
      overflow: hidden;
      border: 1px solid var(--border);
    }
    .fb-screenshot-thumb img { display: block; max-width: 140px; max-height: 90px; object-fit: cover; }
    .fb-screenshot-remove {
      position: absolute;
      top: 4px; right: 4px;
      width: 20px; height: 20px;
      background: rgba(0,0,0,0.65);
      border: none;
      border-radius: 50%;
      color: #fff;
      font-size: 13px;
      line-height: 20px;
      text-align: center;
      cursor: pointer;
      padding: 0;
    }
    .fb-screenshot-size {
      position: absolute;
      bottom: 4px; left: 4px;
      background: rgba(0,0,0,0.55);
      color: #fff;
      font-size: 10px;
      padding: 1px 5px;
      border-radius: 4px;
      pointer-events: none;
    }

    /* Kontakt-Toggle */
    .fb-contact-row {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 0.82rem;
      color: var(--muted);
      cursor: pointer;
    }
    .fb-contact-row input[type="checkbox"] { accent-color: var(--accent-strong); width: 14px; height: 14px; cursor: pointer; flex-shrink: 0; }

    /* Fehler & Erfolg */
    .fb-error { font-size: 0.8rem; color: #f87171; min-height: 1em; }
    .fb-success {
      padding: 36px 24px 32px;
      text-align: center;
    }
    .fb-success-icon { font-size: 2.4rem; margin-bottom: 10px; }
    .fb-success h4 { font-size: 1.05rem; font-weight: 600; color: var(--text); margin: 0 0 6px; }
    .fb-success p { font-size: 0.84rem; color: var(--muted); margin: 0; }

    /* ═══════════════════════════════════════════
       HUB-AUSWAHL
    ═══════════════════════════════════════════ */

    .hub-select-wrap {
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
      padding: 2.5rem 2rem;
      width: 100%;
      max-width: 520px;
    }

    .hub-select-eyebrow {
      font-size: 0.78rem;
      font-weight: 700;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--accent);
      margin: 0 0 0.6rem;
    }

    .hub-select-title {
      font-size: 1.9rem;
      font-weight: 800;
      color: var(--text);
      margin: 0 0 0.5rem;
    }

    .hub-select-sub {
      color: var(--muted);
      font-size: 0.93rem;
      margin: 0 0 2.2rem;
      line-height: 1.5;
    }

    .hub-select-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 1rem;
      width: 100%;
    }

    .hub-card {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 0.9rem;
      padding: 2rem 1.5rem 1.6rem;
      border-radius: 18px;
      border: 1px solid var(--border);
      background: var(--panel);
      cursor: pointer;
      transition: border-color 0.2s, background 0.2s, transform 0.2s, box-shadow 0.2s;
      font-family: inherit;
    }

    .hub-card:hover {
      border-color: var(--accent);
      background: var(--accent-bg);
      transform: translateY(-3px);
      box-shadow: 0 10px 32px var(--accent-glow);
    }

    .hub-card-logo {
      height: 38px;
      width: auto;
      max-width: 160px;
      object-fit: contain;
    }

    .hub-card-label {
      font-size: 0.92rem;
      font-weight: 700;
      color: var(--text);
    }

    .hub-card-arrow {
      font-size: 1rem;
      color: var(--muted);
      transition: transform 0.2s, color 0.2s;
    }

    .hub-card:hover .hub-card-arrow {
      transform: translateX(4px);
      color: var(--accent);
    }

    /* Zurück-Button im Login-Formular */
    .hub-back-btn {
      display: flex;
      align-items: center;
      gap: 0.35rem;
      background: none;
      border: none;
      color: var(--muted);
      font-size: 0.8rem;
      font-weight: 500;
      cursor: pointer;
      padding: 0;
      margin-bottom: 18px;
      transition: color 0.2s;
      font-family: inherit;
      width: 100%;
      text-align: left;
    }

    .hub-back-btn:hover { color: var(--accent); }

    /* Hub-basierte Sichtbarkeit: Popken Hub blendet hs-hub-only aus */
    [data-hub="popken"] .hs-hub-only {
      display: none !important;
    }

/* ═══════════════════════════════════════════════════
   Freistellertool (bg-removal.js)
═══════════════════════════════════════════════════ */

.bgr-dropzone {
  border: 2px dashed var(--border);
  border-radius: 16px;
  padding: 60px 40px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  background: var(--surface);
  margin: 0 0 24px;
}
.bgr-dropzone:hover, .bgr-dropzone.dragover {
  border-color: var(--accent);
  background: var(--bg);
}
.bgr-dropzone-icon svg {
  width: 48px; height: 48px;
  stroke: var(--muted);
  margin-bottom: 16px;
}
.bgr-dropzone-text {
  font-size: 1rem;
  color: var(--text);
  margin: 0 0 6px;
}
.bgr-dropzone-link {
  color: var(--accent);
  font-weight: 600;
  cursor: pointer;
}
.bgr-dropzone-hint {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0;
}

.bgr-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 700px;
  margin: 0 auto 20px;
  gap: 12px;
}
.bgr-count {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 500;
}

.bgr-btn-primary {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 10px 22px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: opacity 0.2s;
}
.bgr-btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.bgr-btn-primary:hover:not(:disabled) { opacity: 0.85; }

.bgr-btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 10px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.2s;
}
.bgr-btn-secondary:hover { border-color: var(--accent); }

.bgr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
  max-width: 900px;
  margin: 0 auto 24px;
}

.bgr-card {
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
  border: 1.5px solid var(--border);
  display: flex;
  flex-direction: column;
}
.bgr-card--done { border-color: #22c55e; }
.bgr-card--error { border-color: #ef4444; }

.bgr-card-preview {
  position: relative;
  aspect-ratio: 1;
  background: repeating-conic-gradient(#ccc 0% 25%, #fff 0% 50%) 0 0 / 16px 16px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bgr-card--pending .bgr-card-preview,
.bgr-card--processing .bgr-card-preview {
  background: var(--bg);
}

.bgr-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bgr-card-img--result {
  object-fit: contain;
  padding: 4px;
}

.bgr-card-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}
.bgr-card-badge--done { background: #22c55e; color: #fff; }
.bgr-card-badge--error { background: #ef4444; color: #fff; }

.bgr-card-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.bgr-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: bgr-spin 0.8s linear infinite;
}
@keyframes bgr-spin { to { transform: rotate(360deg); } }

.bgr-card-error-icon {
  font-size: 2rem;
  color: #ef4444;
}

.bgr-card-name {
  padding: 8px 10px 6px;
  font-size: 0.72rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bgr-card-errmsg {
  padding: 0 10px 8px;
  font-size: 0.7rem;
  color: #ef4444;
}

.bgr-download-bar {
  display: flex;
  justify-content: center;
  max-width: 900px;
  margin: 0 auto;
  padding-top: 8px;
}

/* ═══════════════════════════════════════════
   Banner-Generator (.bn-*)
═══════════════════════════════════════════ */

/* Header */
.bn-header-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.bn-header-btn {
  padding: 8px 18px;
  border: none;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  background: var(--accent);
  color: #fff;
  transition: opacity 0.15s;
}
.bn-header-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.bn-header-btn:hover:not(:disabled) { opacity: 0.85; }
.bn-header-btn--secondary {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
}
.bn-header-btn--secondary:hover:not(:disabled) { border-color: var(--accent-border); }

/* Tabs */
.bn-tabs {
  display: flex;
  gap: 2px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.bn-tab {
  padding: 9px 20px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  font-family: inherit;
  transition: color 0.15s, border-color 0.15s;
}
.bn-tab:hover { color: var(--text); }
.bn-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.bn-tab-content { margin-bottom: 20px; }
.bn-tab-pane { display: none; }
.bn-tab-pane.active { display: block; }

/* Sections */
.bn-section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius, 12px);
  padding: 16px;
}
.bn-section-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

/* Fields */
.bn-field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 10px; }
.bn-field:last-child { margin-bottom: 0; }
.bn-label { font-size: 0.78rem; color: var(--muted); font-weight: 500; }
.bn-optional { opacity: 0.6; font-weight: 400; }
.bn-input {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.85rem;
  padding: 7px 10px;
  outline: none;
  transition: border-color 0.15s;
  width: 100%;
  box-sizing: border-box;
}
.bn-input:focus { border-color: var(--accent-border); }
.bn-color-input {
  width: 48px; height: 32px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2px;
  background: var(--panel);
  cursor: pointer;
}
.bn-range { width: 100%; accent-color: var(--accent); cursor: pointer; }

/* Bild-Upload */
.bn-upload-zone {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px dashed var(--border);
  border-radius: 8px;
  cursor: pointer;
  color: var(--muted);
  font-size: 0.82rem;
  transition: border-color 0.15s;
  margin-bottom: 10px;
}
.bn-upload-zone:hover { border-color: var(--accent-border); color: var(--text); }
.bn-image-preview {
  position: relative;
  margin-bottom: 10px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.bn-image-preview img {
  width: 100%;
  max-height: 160px;
  object-fit: cover;
  display: block;
}
.bn-image-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Format-Grid */
.bn-formats-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.bn-formats-header .bn-section-title { margin-bottom: 0; }
.bn-group-btns { display: flex; gap: 5px; flex-wrap: wrap; }
.bn-group-btn {
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--panel);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.bn-group-btn:hover { border-color: var(--accent-border); color: var(--text); }

.bn-format-grid { display: flex; gap: 12px; }
.bn-fmt-group { flex: 1; }
.bn-fmt-group-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.bn-fmt-item {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 0;
  cursor: pointer;
  border-radius: 6px;
  transition: color 0.12s;
}
.bn-fmt-item:hover { color: var(--accent); }
.bn-fmt-cb { accent-color: var(--accent); cursor: pointer; flex-shrink: 0; }
.bn-fmt-name { font-size: 0.80rem; flex: 1; }
.bn-fmt-dim { font-size: 0.70rem; color: var(--muted); white-space: nowrap; }

/* Vorschau-Grid */
.bn-preview-section { flex: 1; }
.bn-preview-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
}
.bn-preview-empty {
  color: var(--muted);
  font-size: 0.85rem;
  padding: 24px 0;
}
.bn-preview-item { display: flex; flex-direction: column; gap: 6px; }
.bn-preview-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
}
.bn-preview-size { color: var(--muted); font-weight: 400; opacity: 0.7; }
.bn-preview-canvas-wrap {
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  line-height: 0;
}
.bn-preview-canvas { display: block; }

/* Tool-Header mit Back-Link */
.bn-tool-header { margin-bottom: 28px; }
.bn-back-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 14px;
  transition: color 0.18s;
}
.bn-back-link:hover { color: var(--text); }
.bn-tool-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.bn-tool-header-row h1 { font-size: 1.7rem; font-weight: 800; margin-bottom: 4px; }
.bn-tool-header-row > div > p { color: var(--muted); font-size: 0.94rem; }

.bn-section { padding: 20px 22px; border-radius: 14px; }
.bn-section-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.bn-field { margin-bottom: 14px; gap: 6px; }
.bn-field:last-child { margin-bottom: 0; }
.bn-label { font-size: 0.82rem; font-weight: 600; color: var(--text); opacity: 0.75; }
.bn-input { padding: 9px 12px; font-size: 0.9rem; }

/* Responsive */
@media (max-width: 900px) {
  .bn-format-grid { flex-wrap: wrap; }
}
